You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 446 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for json-c 0.13.
  4. #
  5. # Report bugs to <json-c@googlegroups.com>.
  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 \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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
  259. $0: json-c@googlegroups.com about your system, including
  260. $0: any error possibly output before this message. Then
  261. $0: install a modern shell, or manually run the script
  262. $0: under such a shell if you do 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='json-c'
  542. PACKAGE_TARNAME='json-c'
  543. PACKAGE_VERSION='0.13'
  544. PACKAGE_STRING='json-c 0.13'
  545. PACKAGE_BUGREPORT='json-c@googlegroups.com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. JSON_BSYMBOLIC_LDFLAGS
  586. OTOOL64
  587. OTOOL
  588. LIPO
  589. NMEDIT
  590. DSYMUTIL
  591. MANIFEST_TOOL
  592. RANLIB
  593. ac_ct_AR
  594. AR
  595. DLLTOOL
  596. OBJDUMP
  597. LN_S
  598. NM
  599. ac_ct_DUMPBIN
  600. DUMPBIN
  601. LD
  602. FGREP
  603. SED
  604. LIBTOOL
  605. LIBOBJS
  606. EGREP
  607. GREP
  608. CPP
  609. am__fastdepCC_FALSE
  610. am__fastdepCC_TRUE
  611. CCDEPMODE
  612. am__nodep
  613. AMDEPBACKSLASH
  614. AMDEP_FALSE
  615. AMDEP_TRUE
  616. am__quote
  617. am__include
  618. DEPDIR
  619. OBJEXT
  620. EXEEXT
  621. ac_ct_CC
  622. CPPFLAGS
  623. LDFLAGS
  624. CFLAGS
  625. CC
  626. host_os
  627. host_vendor
  628. host_cpu
  629. host
  630. build_os
  631. build_vendor
  632. build_cpu
  633. build
  634. AM_BACKSLASH
  635. AM_DEFAULT_VERBOSITY
  636. AM_DEFAULT_V
  637. AM_V
  638. am__untar
  639. am__tar
  640. AMTAR
  641. am__leading_dot
  642. SET_MAKE
  643. AWK
  644. mkdir_p
  645. MKDIR_P
  646. INSTALL_STRIP_PROGRAM
  647. STRIP
  648. install_sh
  649. MAKEINFO
  650. AUTOHEADER
  651. AUTOMAKE
  652. AUTOCONF
  653. ACLOCAL
  654. VERSION
  655. PACKAGE
  656. CYGPATH_W
  657. am__isrc
  658. INSTALL_DATA
  659. INSTALL_SCRIPT
  660. INSTALL_PROGRAM
  661. target_alias
  662. host_alias
  663. build_alias
  664. LIBS
  665. ECHO_T
  666. ECHO_N
  667. ECHO_C
  668. DEFS
  669. mandir
  670. localedir
  671. libdir
  672. psdir
  673. pdfdir
  674. dvidir
  675. htmldir
  676. infodir
  677. docdir
  678. oldincludedir
  679. includedir
  680. localstatedir
  681. sharedstatedir
  682. sysconfdir
  683. datadir
  684. datarootdir
  685. libexecdir
  686. sbindir
  687. bindir
  688. program_transform_name
  689. prefix
  690. exec_prefix
  691. PACKAGE_URL
  692. PACKAGE_BUGREPORT
  693. PACKAGE_STRING
  694. PACKAGE_VERSION
  695. PACKAGE_TARNAME
  696. PACKAGE_NAME
  697. PATH_SEPARATOR
  698. SHELL'
  699. ac_subst_files=''
  700. ac_user_opts='
  701. enable_option_checking
  702. enable_silent_rules
  703. enable_threading
  704. enable_rdrand
  705. enable_dependency_tracking
  706. enable_shared
  707. enable_static
  708. with_pic
  709. enable_fast_install
  710. with_gnu_ld
  711. with_sysroot
  712. enable_libtool_lock
  713. enable_Bsymbolic
  714. '
  715. ac_precious_vars='build_alias
  716. host_alias
  717. target_alias
  718. CC
  719. CFLAGS
  720. LDFLAGS
  721. LIBS
  722. CPPFLAGS
  723. CPP'
  724. # Initialize some variables set by options.
  725. ac_init_help=
  726. ac_init_version=false
  727. ac_unrecognized_opts=
  728. ac_unrecognized_sep=
  729. # The variables have the same names as the options, with
  730. # dashes changed to underlines.
  731. cache_file=/dev/null
  732. exec_prefix=NONE
  733. no_create=
  734. no_recursion=
  735. prefix=NONE
  736. program_prefix=NONE
  737. program_suffix=NONE
  738. program_transform_name=s,x,x,
  739. silent=
  740. site=
  741. srcdir=
  742. verbose=
  743. x_includes=NONE
  744. x_libraries=NONE
  745. # Installation directory options.
  746. # These are left unexpanded so users can "make install exec_prefix=/foo"
  747. # and all the variables that are supposed to be based on exec_prefix
  748. # by default will actually change.
  749. # Use braces instead of parens because sh, perl, etc. also accept them.
  750. # (The list follows the same order as the GNU Coding Standards.)
  751. bindir='${exec_prefix}/bin'
  752. sbindir='${exec_prefix}/sbin'
  753. libexecdir='${exec_prefix}/libexec'
  754. datarootdir='${prefix}/share'
  755. datadir='${datarootdir}'
  756. sysconfdir='${prefix}/etc'
  757. sharedstatedir='${prefix}/com'
  758. localstatedir='${prefix}/var'
  759. includedir='${prefix}/include'
  760. oldincludedir='/usr/include'
  761. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  762. infodir='${datarootdir}/info'
  763. htmldir='${docdir}'
  764. dvidir='${docdir}'
  765. pdfdir='${docdir}'
  766. psdir='${docdir}'
  767. libdir='${exec_prefix}/lib'
  768. localedir='${datarootdir}/locale'
  769. mandir='${datarootdir}/man'
  770. ac_prev=
  771. ac_dashdash=
  772. for ac_option
  773. do
  774. # If the previous option needs an argument, assign it.
  775. if test -n "$ac_prev"; then
  776. eval $ac_prev=\$ac_option
  777. ac_prev=
  778. continue
  779. fi
  780. case $ac_option in
  781. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  782. *=) ac_optarg= ;;
  783. *) ac_optarg=yes ;;
  784. esac
  785. # Accept the important Cygnus configure options, so we can diagnose typos.
  786. case $ac_dashdash$ac_option in
  787. --)
  788. ac_dashdash=yes ;;
  789. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  790. ac_prev=bindir ;;
  791. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  792. bindir=$ac_optarg ;;
  793. -build | --build | --buil | --bui | --bu)
  794. ac_prev=build_alias ;;
  795. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  796. build_alias=$ac_optarg ;;
  797. -cache-file | --cache-file | --cache-fil | --cache-fi \
  798. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  799. ac_prev=cache_file ;;
  800. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  801. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  802. cache_file=$ac_optarg ;;
  803. --config-cache | -C)
  804. cache_file=config.cache ;;
  805. -datadir | --datadir | --datadi | --datad)
  806. ac_prev=datadir ;;
  807. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  808. datadir=$ac_optarg ;;
  809. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  810. | --dataroo | --dataro | --datar)
  811. ac_prev=datarootdir ;;
  812. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  813. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  814. datarootdir=$ac_optarg ;;
  815. -disable-* | --disable-*)
  816. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  817. # Reject names that are not valid shell variable names.
  818. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  819. as_fn_error $? "invalid feature name: $ac_useropt"
  820. ac_useropt_orig=$ac_useropt
  821. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  822. case $ac_user_opts in
  823. *"
  824. "enable_$ac_useropt"
  825. "*) ;;
  826. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  827. ac_unrecognized_sep=', ';;
  828. esac
  829. eval enable_$ac_useropt=no ;;
  830. -docdir | --docdir | --docdi | --doc | --do)
  831. ac_prev=docdir ;;
  832. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  833. docdir=$ac_optarg ;;
  834. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  835. ac_prev=dvidir ;;
  836. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  837. dvidir=$ac_optarg ;;
  838. -enable-* | --enable-*)
  839. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  840. # Reject names that are not valid shell variable names.
  841. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  842. as_fn_error $? "invalid feature name: $ac_useropt"
  843. ac_useropt_orig=$ac_useropt
  844. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  845. case $ac_user_opts in
  846. *"
  847. "enable_$ac_useropt"
  848. "*) ;;
  849. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  850. ac_unrecognized_sep=', ';;
  851. esac
  852. eval enable_$ac_useropt=\$ac_optarg ;;
  853. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  854. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  855. | --exec | --exe | --ex)
  856. ac_prev=exec_prefix ;;
  857. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  858. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  859. | --exec=* | --exe=* | --ex=*)
  860. exec_prefix=$ac_optarg ;;
  861. -gas | --gas | --ga | --g)
  862. # Obsolete; use --with-gas.
  863. with_gas=yes ;;
  864. -help | --help | --hel | --he | -h)
  865. ac_init_help=long ;;
  866. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  867. ac_init_help=recursive ;;
  868. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  869. ac_init_help=short ;;
  870. -host | --host | --hos | --ho)
  871. ac_prev=host_alias ;;
  872. -host=* | --host=* | --hos=* | --ho=*)
  873. host_alias=$ac_optarg ;;
  874. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  875. ac_prev=htmldir ;;
  876. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  877. | --ht=*)
  878. htmldir=$ac_optarg ;;
  879. -includedir | --includedir | --includedi | --included | --include \
  880. | --includ | --inclu | --incl | --inc)
  881. ac_prev=includedir ;;
  882. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  883. | --includ=* | --inclu=* | --incl=* | --inc=*)
  884. includedir=$ac_optarg ;;
  885. -infodir | --infodir | --infodi | --infod | --info | --inf)
  886. ac_prev=infodir ;;
  887. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  888. infodir=$ac_optarg ;;
  889. -libdir | --libdir | --libdi | --libd)
  890. ac_prev=libdir ;;
  891. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  892. libdir=$ac_optarg ;;
  893. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  894. | --libexe | --libex | --libe)
  895. ac_prev=libexecdir ;;
  896. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  897. | --libexe=* | --libex=* | --libe=*)
  898. libexecdir=$ac_optarg ;;
  899. -localedir | --localedir | --localedi | --localed | --locale)
  900. ac_prev=localedir ;;
  901. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  902. localedir=$ac_optarg ;;
  903. -localstatedir | --localstatedir | --localstatedi | --localstated \
  904. | --localstate | --localstat | --localsta | --localst | --locals)
  905. ac_prev=localstatedir ;;
  906. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  907. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  908. localstatedir=$ac_optarg ;;
  909. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  910. ac_prev=mandir ;;
  911. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  912. mandir=$ac_optarg ;;
  913. -nfp | --nfp | --nf)
  914. # Obsolete; use --without-fp.
  915. with_fp=no ;;
  916. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  917. | --no-cr | --no-c | -n)
  918. no_create=yes ;;
  919. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  920. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  921. no_recursion=yes ;;
  922. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  923. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  924. | --oldin | --oldi | --old | --ol | --o)
  925. ac_prev=oldincludedir ;;
  926. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  927. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  928. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  929. oldincludedir=$ac_optarg ;;
  930. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  931. ac_prev=prefix ;;
  932. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  933. prefix=$ac_optarg ;;
  934. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  935. | --program-pre | --program-pr | --program-p)
  936. ac_prev=program_prefix ;;
  937. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  938. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  939. program_prefix=$ac_optarg ;;
  940. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  941. | --program-suf | --program-su | --program-s)
  942. ac_prev=program_suffix ;;
  943. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  944. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  945. program_suffix=$ac_optarg ;;
  946. -program-transform-name | --program-transform-name \
  947. | --program-transform-nam | --program-transform-na \
  948. | --program-transform-n | --program-transform- \
  949. | --program-transform | --program-transfor \
  950. | --program-transfo | --program-transf \
  951. | --program-trans | --program-tran \
  952. | --progr-tra | --program-tr | --program-t)
  953. ac_prev=program_transform_name ;;
  954. -program-transform-name=* | --program-transform-name=* \
  955. | --program-transform-nam=* | --program-transform-na=* \
  956. | --program-transform-n=* | --program-transform-=* \
  957. | --program-transform=* | --program-transfor=* \
  958. | --program-transfo=* | --program-transf=* \
  959. | --program-trans=* | --program-tran=* \
  960. | --progr-tra=* | --program-tr=* | --program-t=*)
  961. program_transform_name=$ac_optarg ;;
  962. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  963. ac_prev=pdfdir ;;
  964. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  965. pdfdir=$ac_optarg ;;
  966. -psdir | --psdir | --psdi | --psd | --ps)
  967. ac_prev=psdir ;;
  968. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  969. psdir=$ac_optarg ;;
  970. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  971. | -silent | --silent | --silen | --sile | --sil)
  972. silent=yes ;;
  973. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  974. ac_prev=sbindir ;;
  975. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  976. | --sbi=* | --sb=*)
  977. sbindir=$ac_optarg ;;
  978. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  979. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  980. | --sharedst | --shareds | --shared | --share | --shar \
  981. | --sha | --sh)
  982. ac_prev=sharedstatedir ;;
  983. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  984. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  985. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  986. | --sha=* | --sh=*)
  987. sharedstatedir=$ac_optarg ;;
  988. -site | --site | --sit)
  989. ac_prev=site ;;
  990. -site=* | --site=* | --sit=*)
  991. site=$ac_optarg ;;
  992. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  993. ac_prev=srcdir ;;
  994. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  995. srcdir=$ac_optarg ;;
  996. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  997. | --syscon | --sysco | --sysc | --sys | --sy)
  998. ac_prev=sysconfdir ;;
  999. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1000. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1001. sysconfdir=$ac_optarg ;;
  1002. -target | --target | --targe | --targ | --tar | --ta | --t)
  1003. ac_prev=target_alias ;;
  1004. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1005. target_alias=$ac_optarg ;;
  1006. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1007. verbose=yes ;;
  1008. -version | --version | --versio | --versi | --vers | -V)
  1009. ac_init_version=: ;;
  1010. -with-* | --with-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=\$ac_optarg ;;
  1025. -without-* | --without-*)
  1026. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1029. as_fn_error $? "invalid package name: $ac_useropt"
  1030. ac_useropt_orig=$ac_useropt
  1031. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1032. case $ac_user_opts in
  1033. *"
  1034. "with_$ac_useropt"
  1035. "*) ;;
  1036. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1037. ac_unrecognized_sep=', ';;
  1038. esac
  1039. eval with_$ac_useropt=no ;;
  1040. --x)
  1041. # Obsolete; use --with-x.
  1042. with_x=yes ;;
  1043. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1044. | --x-incl | --x-inc | --x-in | --x-i)
  1045. ac_prev=x_includes ;;
  1046. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1047. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1048. x_includes=$ac_optarg ;;
  1049. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1050. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1051. ac_prev=x_libraries ;;
  1052. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1053. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1054. x_libraries=$ac_optarg ;;
  1055. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1056. Try \`$0 --help' for more information"
  1057. ;;
  1058. *=*)
  1059. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1060. # Reject names that are not valid shell variable names.
  1061. case $ac_envvar in #(
  1062. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1063. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1064. esac
  1065. eval $ac_envvar=\$ac_optarg
  1066. export $ac_envvar ;;
  1067. *)
  1068. # FIXME: should be removed in autoconf 3.0.
  1069. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1070. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1072. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1073. ;;
  1074. esac
  1075. done
  1076. if test -n "$ac_prev"; then
  1077. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1078. as_fn_error $? "missing argument to $ac_option"
  1079. fi
  1080. if test -n "$ac_unrecognized_opts"; then
  1081. case $enable_option_checking in
  1082. no) ;;
  1083. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1084. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1085. esac
  1086. fi
  1087. # Check all directory arguments for consistency.
  1088. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1089. datadir sysconfdir sharedstatedir localstatedir includedir \
  1090. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1091. libdir localedir mandir
  1092. do
  1093. eval ac_val=\$$ac_var
  1094. # Remove trailing slashes.
  1095. case $ac_val in
  1096. */ )
  1097. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1098. eval $ac_var=\$ac_val;;
  1099. esac
  1100. # Be sure to have absolute directory names.
  1101. case $ac_val in
  1102. [\\/$]* | ?:[\\/]* ) continue;;
  1103. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1104. esac
  1105. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1106. done
  1107. # There might be people who depend on the old broken behavior: `$host'
  1108. # used to hold the argument of --host etc.
  1109. # FIXME: To remove some day.
  1110. build=$build_alias
  1111. host=$host_alias
  1112. target=$target_alias
  1113. # FIXME: To remove some day.
  1114. if test "x$host_alias" != x; then
  1115. if test "x$build_alias" = x; then
  1116. cross_compiling=maybe
  1117. elif test "x$build_alias" != "x$host_alias"; then
  1118. cross_compiling=yes
  1119. fi
  1120. fi
  1121. ac_tool_prefix=
  1122. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1123. test "$silent" = yes && exec 6>/dev/null
  1124. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1125. ac_ls_di=`ls -di .` &&
  1126. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1127. as_fn_error $? "working directory cannot be determined"
  1128. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1129. as_fn_error $? "pwd does not report name of working directory"
  1130. # Find the source files, if location was not specified.
  1131. if test -z "$srcdir"; then
  1132. ac_srcdir_defaulted=yes
  1133. # Try the directory containing this script, then the parent directory.
  1134. ac_confdir=`$as_dirname -- "$as_myself" ||
  1135. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1136. X"$as_myself" : 'X\(//\)[^/]' \| \
  1137. X"$as_myself" : 'X\(//\)$' \| \
  1138. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1139. $as_echo X"$as_myself" |
  1140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)[^/].*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\/\)$/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\).*/{
  1153. s//\1/
  1154. q
  1155. }
  1156. s/.*/./; q'`
  1157. srcdir=$ac_confdir
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. srcdir=..
  1160. fi
  1161. else
  1162. ac_srcdir_defaulted=no
  1163. fi
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1166. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1167. fi
  1168. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1169. ac_abs_confdir=`(
  1170. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1171. pwd)`
  1172. # When building in place, set srcdir=.
  1173. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1174. srcdir=.
  1175. fi
  1176. # Remove unnecessary trailing slashes from srcdir.
  1177. # Double slashes in file names in object file debugging info
  1178. # mess up M-x gdb in Emacs.
  1179. case $srcdir in
  1180. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1181. esac
  1182. for ac_var in $ac_precious_vars; do
  1183. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_env_${ac_var}_value=\$${ac_var}
  1185. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1186. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1187. done
  1188. #
  1189. # Report the --help message.
  1190. #
  1191. if test "$ac_init_help" = "long"; then
  1192. # Omit some internal or obsolete options to make the list less imposing.
  1193. # This message is too long to be a string in the A/UX 3.1 sh.
  1194. cat <<_ACEOF
  1195. \`configure' configures json-c 0.13 to adapt to many kinds of systems.
  1196. Usage: $0 [OPTION]... [VAR=VALUE]...
  1197. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1198. VAR=VALUE. See below for descriptions of some of the useful variables.
  1199. Defaults for the options are specified in brackets.
  1200. Configuration:
  1201. -h, --help display this help and exit
  1202. --help=short display options specific to this package
  1203. --help=recursive display the short help of all the included packages
  1204. -V, --version display version information and exit
  1205. -q, --quiet, --silent do not print \`checking ...' messages
  1206. --cache-file=FILE cache test results in FILE [disabled]
  1207. -C, --config-cache alias for \`--cache-file=config.cache'
  1208. -n, --no-create do not create output files
  1209. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1210. Installation directories:
  1211. --prefix=PREFIX install architecture-independent files in PREFIX
  1212. [$ac_default_prefix]
  1213. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1214. [PREFIX]
  1215. By default, \`make install' will install all the files in
  1216. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1217. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1218. for instance \`--prefix=\$HOME'.
  1219. For better control, use the options below.
  1220. Fine tuning of the installation directories:
  1221. --bindir=DIR user executables [EPREFIX/bin]
  1222. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1223. --libexecdir=DIR program executables [EPREFIX/libexec]
  1224. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1225. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1226. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1227. --libdir=DIR object code libraries [EPREFIX/lib]
  1228. --includedir=DIR C header files [PREFIX/include]
  1229. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1230. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1231. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1232. --infodir=DIR info documentation [DATAROOTDIR/info]
  1233. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1234. --mandir=DIR man documentation [DATAROOTDIR/man]
  1235. --docdir=DIR documentation root [DATAROOTDIR/doc/json-c]
  1236. --htmldir=DIR html documentation [DOCDIR]
  1237. --dvidir=DIR dvi documentation [DOCDIR]
  1238. --pdfdir=DIR pdf documentation [DOCDIR]
  1239. --psdir=DIR ps documentation [DOCDIR]
  1240. _ACEOF
  1241. cat <<\_ACEOF
  1242. Program names:
  1243. --program-prefix=PREFIX prepend PREFIX to installed program names
  1244. --program-suffix=SUFFIX append SUFFIX to installed program names
  1245. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1246. System types:
  1247. --build=BUILD configure for building on BUILD [guessed]
  1248. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1249. _ACEOF
  1250. fi
  1251. if test -n "$ac_init_help"; then
  1252. case $ac_init_help in
  1253. short | recursive ) echo "Configuration of json-c 0.13:";;
  1254. esac
  1255. cat <<\_ACEOF
  1256. Optional Features:
  1257. --disable-option-checking ignore unrecognized --enable/--with options
  1258. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1259. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1260. --enable-silent-rules less verbose build output (undo: "make V=1")
  1261. --disable-silent-rules verbose build output (undo: "make V=0")
  1262. --enable-threading Enable code to support partly multi-threaded use
  1263. --enable-rdrand Enable RDRAND Hardware RNG Hash Seed generation on
  1264. supported x86/x64 platforms.
  1265. --enable-dependency-tracking
  1266. do not reject slow dependency extractors
  1267. --disable-dependency-tracking
  1268. speeds up one-time build
  1269. --enable-shared[=PKGS] build shared libraries [default=yes]
  1270. --enable-static[=PKGS] build static libraries [default=yes]
  1271. --enable-fast-install[=PKGS]
  1272. optimize for fast installation [default=yes]
  1273. --disable-libtool-lock avoid locking (might break parallel builds)
  1274. --disable-Bsymbolic Avoid linking with -Bsymbolic-function
  1275. Optional Packages:
  1276. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1277. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1278. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1279. both]
  1280. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1281. --with-sysroot=DIR Search for dependent libraries within DIR
  1282. (or the compiler's sysroot if not specified).
  1283. Some influential environment variables:
  1284. CC C compiler command
  1285. CFLAGS C compiler flags
  1286. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1287. nonstandard directory <lib dir>
  1288. LIBS libraries to pass to the linker, e.g. -l<library>
  1289. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1290. you have headers in a nonstandard directory <include dir>
  1291. CPP C preprocessor
  1292. Use these variables to override the choices made by `configure' or to help
  1293. it to find libraries and programs with nonstandard names/locations.
  1294. Report bugs to <json-c@googlegroups.com>.
  1295. _ACEOF
  1296. ac_status=$?
  1297. fi
  1298. if test "$ac_init_help" = "recursive"; then
  1299. # If there are subdirs, report their specific --help.
  1300. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1301. test -d "$ac_dir" ||
  1302. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1303. continue
  1304. ac_builddir=.
  1305. case "$ac_dir" in
  1306. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1307. *)
  1308. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1309. # A ".." for each directory in $ac_dir_suffix.
  1310. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1311. case $ac_top_builddir_sub in
  1312. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1313. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1314. esac ;;
  1315. esac
  1316. ac_abs_top_builddir=$ac_pwd
  1317. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1318. # for backward compatibility:
  1319. ac_top_builddir=$ac_top_build_prefix
  1320. case $srcdir in
  1321. .) # We are building in place.
  1322. ac_srcdir=.
  1323. ac_top_srcdir=$ac_top_builddir_sub
  1324. ac_abs_top_srcdir=$ac_pwd ;;
  1325. [\\/]* | ?:[\\/]* ) # Absolute name.
  1326. ac_srcdir=$srcdir$ac_dir_suffix;
  1327. ac_top_srcdir=$srcdir
  1328. ac_abs_top_srcdir=$srcdir ;;
  1329. *) # Relative name.
  1330. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1331. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1332. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1333. esac
  1334. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1335. cd "$ac_dir" || { ac_status=$?; continue; }
  1336. # Check for guested configure.
  1337. if test -f "$ac_srcdir/configure.gnu"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1340. elif test -f "$ac_srcdir/configure"; then
  1341. echo &&
  1342. $SHELL "$ac_srcdir/configure" --help=recursive
  1343. else
  1344. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1345. fi || ac_status=$?
  1346. cd "$ac_pwd" || { ac_status=$?; break; }
  1347. done
  1348. fi
  1349. test -n "$ac_init_help" && exit $ac_status
  1350. if $ac_init_version; then
  1351. cat <<\_ACEOF
  1352. json-c configure 0.13
  1353. generated by GNU Autoconf 2.69
  1354. Copyright (C) 2012 Free Software Foundation, Inc.
  1355. This configure script is free software; the Free Software Foundation
  1356. gives unlimited permission to copy, distribute and modify it.
  1357. _ACEOF
  1358. exit
  1359. fi
  1360. ## ------------------------ ##
  1361. ## Autoconf initialization. ##
  1362. ## ------------------------ ##
  1363. # ac_fn_c_try_compile LINENO
  1364. # --------------------------
  1365. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1366. ac_fn_c_try_compile ()
  1367. {
  1368. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1369. rm -f conftest.$ac_objext
  1370. if { { ac_try="$ac_compile"
  1371. case "(($ac_try" in
  1372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1373. *) ac_try_echo=$ac_try;;
  1374. esac
  1375. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1376. $as_echo "$ac_try_echo"; } >&5
  1377. (eval "$ac_compile") 2>conftest.err
  1378. ac_status=$?
  1379. if test -s conftest.err; then
  1380. grep -v '^ *+' conftest.err >conftest.er1
  1381. cat conftest.er1 >&5
  1382. mv -f conftest.er1 conftest.err
  1383. fi
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } && {
  1386. test -z "$ac_c_werror_flag" ||
  1387. test ! -s conftest.err
  1388. } && test -s conftest.$ac_objext; then :
  1389. ac_retval=0
  1390. else
  1391. $as_echo "$as_me: failed program was:" >&5
  1392. sed 's/^/| /' conftest.$ac_ext >&5
  1393. ac_retval=1
  1394. fi
  1395. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1396. as_fn_set_status $ac_retval
  1397. } # ac_fn_c_try_compile
  1398. # ac_fn_c_try_cpp LINENO
  1399. # ----------------------
  1400. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_cpp ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1405. case "(($ac_try" in
  1406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1407. *) ac_try_echo=$ac_try;;
  1408. esac
  1409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1410. $as_echo "$ac_try_echo"; } >&5
  1411. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1412. ac_status=$?
  1413. if test -s conftest.err; then
  1414. grep -v '^ *+' conftest.err >conftest.er1
  1415. cat conftest.er1 >&5
  1416. mv -f conftest.er1 conftest.err
  1417. fi
  1418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1419. test $ac_status = 0; } > conftest.i && {
  1420. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1421. test ! -s conftest.err
  1422. }; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: failed program was:" >&5
  1426. sed 's/^/| /' conftest.$ac_ext >&5
  1427. ac_retval=1
  1428. fi
  1429. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1430. as_fn_set_status $ac_retval
  1431. } # ac_fn_c_try_cpp
  1432. # ac_fn_c_try_run LINENO
  1433. # ----------------------
  1434. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1435. # that executables *can* be run.
  1436. ac_fn_c_try_run ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. if { { ac_try="$ac_link"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_link") 2>&5
  1447. ac_status=$?
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1450. { { case "(($ac_try" in
  1451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. *) ac_try_echo=$ac_try;;
  1453. esac
  1454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. $as_echo "$ac_try_echo"; } >&5
  1456. (eval "$ac_try") 2>&5
  1457. ac_status=$?
  1458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1459. test $ac_status = 0; }; }; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: program exited with status $ac_status" >&5
  1463. $as_echo "$as_me: failed program was:" >&5
  1464. sed 's/^/| /' conftest.$ac_ext >&5
  1465. ac_retval=$ac_status
  1466. fi
  1467. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1468. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1469. as_fn_set_status $ac_retval
  1470. } # ac_fn_c_try_run
  1471. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1472. # -------------------------------------------------------
  1473. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1474. # the include files in INCLUDES and setting the cache variable VAR
  1475. # accordingly.
  1476. ac_fn_c_check_header_mongrel ()
  1477. {
  1478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1479. if eval \${$3+:} false; then :
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1481. $as_echo_n "checking for $2... " >&6; }
  1482. if eval \${$3+:} false; then :
  1483. $as_echo_n "(cached) " >&6
  1484. fi
  1485. eval ac_res=\$$3
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1487. $as_echo "$ac_res" >&6; }
  1488. else
  1489. # Is the header compilable?
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1491. $as_echo_n "checking $2 usability... " >&6; }
  1492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1493. /* end confdefs.h. */
  1494. $4
  1495. #include <$2>
  1496. _ACEOF
  1497. if ac_fn_c_try_compile "$LINENO"; then :
  1498. ac_header_compiler=yes
  1499. else
  1500. ac_header_compiler=no
  1501. fi
  1502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1504. $as_echo "$ac_header_compiler" >&6; }
  1505. # Is the header present?
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1507. $as_echo_n "checking $2 presence... " >&6; }
  1508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1509. /* end confdefs.h. */
  1510. #include <$2>
  1511. _ACEOF
  1512. if ac_fn_c_try_cpp "$LINENO"; then :
  1513. ac_header_preproc=yes
  1514. else
  1515. ac_header_preproc=no
  1516. fi
  1517. rm -f conftest.err conftest.i conftest.$ac_ext
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1519. $as_echo "$ac_header_preproc" >&6; }
  1520. # So? What about this header?
  1521. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1522. yes:no: )
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1524. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1526. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1527. ;;
  1528. no:yes:* )
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1530. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1532. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1534. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1536. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1538. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1539. ( $as_echo "## -------------------------------------- ##
  1540. ## Report this to json-c@googlegroups.com ##
  1541. ## -------------------------------------- ##"
  1542. ) | sed "s/^/$as_me: WARNING: /" >&2
  1543. ;;
  1544. esac
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1546. $as_echo_n "checking for $2... " >&6; }
  1547. if eval \${$3+:} false; then :
  1548. $as_echo_n "(cached) " >&6
  1549. else
  1550. eval "$3=\$ac_header_compiler"
  1551. fi
  1552. eval ac_res=\$$3
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1554. $as_echo "$ac_res" >&6; }
  1555. fi
  1556. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1557. } # ac_fn_c_check_header_mongrel
  1558. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1559. # -------------------------------------------------------
  1560. # Tests whether HEADER exists and can be compiled using the include files in
  1561. # INCLUDES, setting the cache variable VAR accordingly.
  1562. ac_fn_c_check_header_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1566. $as_echo_n "checking for $2... " >&6; }
  1567. if eval \${$3+:} false; then :
  1568. $as_echo_n "(cached) " >&6
  1569. else
  1570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1571. /* end confdefs.h. */
  1572. $4
  1573. #include <$2>
  1574. _ACEOF
  1575. if ac_fn_c_try_compile "$LINENO"; then :
  1576. eval "$3=yes"
  1577. else
  1578. eval "$3=no"
  1579. fi
  1580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1581. fi
  1582. eval ac_res=\$$3
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1584. $as_echo "$ac_res" >&6; }
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. } # ac_fn_c_check_header_compile
  1587. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1588. # -------------------------------------------
  1589. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1590. # variable VAR accordingly.
  1591. ac_fn_c_check_type ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1595. $as_echo_n "checking for $2... " >&6; }
  1596. if eval \${$3+:} false; then :
  1597. $as_echo_n "(cached) " >&6
  1598. else
  1599. eval "$3=no"
  1600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1601. /* end confdefs.h. */
  1602. $4
  1603. int
  1604. main ()
  1605. {
  1606. if (sizeof ($2))
  1607. return 0;
  1608. ;
  1609. return 0;
  1610. }
  1611. _ACEOF
  1612. if ac_fn_c_try_compile "$LINENO"; then :
  1613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1614. /* end confdefs.h. */
  1615. $4
  1616. int
  1617. main ()
  1618. {
  1619. if (sizeof (($2)))
  1620. return 0;
  1621. ;
  1622. return 0;
  1623. }
  1624. _ACEOF
  1625. if ac_fn_c_try_compile "$LINENO"; then :
  1626. else
  1627. eval "$3=yes"
  1628. fi
  1629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1630. fi
  1631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1637. } # ac_fn_c_check_type
  1638. # ac_fn_c_try_link LINENO
  1639. # -----------------------
  1640. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1641. ac_fn_c_try_link ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. rm -f conftest.$ac_objext conftest$ac_exeext
  1645. if { { ac_try="$ac_link"
  1646. case "(($ac_try" in
  1647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1648. *) ac_try_echo=$ac_try;;
  1649. esac
  1650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1651. $as_echo "$ac_try_echo"; } >&5
  1652. (eval "$ac_link") 2>conftest.err
  1653. ac_status=$?
  1654. if test -s conftest.err; then
  1655. grep -v '^ *+' conftest.err >conftest.er1
  1656. cat conftest.er1 >&5
  1657. mv -f conftest.er1 conftest.err
  1658. fi
  1659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1660. test $ac_status = 0; } && {
  1661. test -z "$ac_c_werror_flag" ||
  1662. test ! -s conftest.err
  1663. } && test -s conftest$ac_exeext && {
  1664. test "$cross_compiling" = yes ||
  1665. test -x conftest$ac_exeext
  1666. }; then :
  1667. ac_retval=0
  1668. else
  1669. $as_echo "$as_me: failed program was:" >&5
  1670. sed 's/^/| /' conftest.$ac_ext >&5
  1671. ac_retval=1
  1672. fi
  1673. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1674. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1675. # interfere with the next link command; also delete a directory that is
  1676. # left behind by Apple's compiler. We do this before executing the actions.
  1677. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1678. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1679. as_fn_set_status $ac_retval
  1680. } # ac_fn_c_try_link
  1681. # ac_fn_c_check_func LINENO FUNC VAR
  1682. # ----------------------------------
  1683. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1684. ac_fn_c_check_func ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1688. $as_echo_n "checking for $2... " >&6; }
  1689. if eval \${$3+:} false; then :
  1690. $as_echo_n "(cached) " >&6
  1691. else
  1692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1693. /* end confdefs.h. */
  1694. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1695. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1696. #define $2 innocuous_$2
  1697. /* System header to define __stub macros and hopefully few prototypes,
  1698. which can conflict with char $2 (); below.
  1699. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1700. <limits.h> exists even on freestanding compilers. */
  1701. #ifdef __STDC__
  1702. # include <limits.h>
  1703. #else
  1704. # include <assert.h>
  1705. #endif
  1706. #undef $2
  1707. /* Override any GCC internal prototype to avoid an error.
  1708. Use char because int might match the return type of a GCC
  1709. builtin and then its argument prototype would still apply. */
  1710. #ifdef __cplusplus
  1711. extern "C"
  1712. #endif
  1713. char $2 ();
  1714. /* The GNU C library defines this for functions which it implements
  1715. to always fail with ENOSYS. Some functions are actually named
  1716. something starting with __ and the normal name is an alias. */
  1717. #if defined __stub_$2 || defined __stub___$2
  1718. choke me
  1719. #endif
  1720. int
  1721. main ()
  1722. {
  1723. return $2 ();
  1724. ;
  1725. return 0;
  1726. }
  1727. _ACEOF
  1728. if ac_fn_c_try_link "$LINENO"; then :
  1729. eval "$3=yes"
  1730. else
  1731. eval "$3=no"
  1732. fi
  1733. rm -f core conftest.err conftest.$ac_objext \
  1734. conftest$ac_exeext conftest.$ac_ext
  1735. fi
  1736. eval ac_res=\$$3
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1738. $as_echo "$ac_res" >&6; }
  1739. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1740. } # ac_fn_c_check_func
  1741. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1742. # ---------------------------------------------
  1743. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1744. # accordingly.
  1745. ac_fn_c_check_decl ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1749. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1751. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1752. if eval \${$3+:} false; then :
  1753. $as_echo_n "(cached) " >&6
  1754. else
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. $4
  1758. int
  1759. main ()
  1760. {
  1761. #ifndef $as_decl_name
  1762. #ifdef __cplusplus
  1763. (void) $as_decl_use;
  1764. #else
  1765. (void) $as_decl_name;
  1766. #endif
  1767. #endif
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_compile "$LINENO"; then :
  1773. eval "$3=yes"
  1774. else
  1775. eval "$3=no"
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1778. fi
  1779. eval ac_res=\$$3
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1781. $as_echo "$ac_res" >&6; }
  1782. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1783. } # ac_fn_c_check_decl
  1784. cat >config.log <<_ACEOF
  1785. This file contains any messages produced by compilers while
  1786. running configure, to aid debugging if configure makes a mistake.
  1787. It was created by json-c $as_me 0.13, which was
  1788. generated by GNU Autoconf 2.69. Invocation command line was
  1789. $ $0 $@
  1790. _ACEOF
  1791. exec 5>>config.log
  1792. {
  1793. cat <<_ASUNAME
  1794. ## --------- ##
  1795. ## Platform. ##
  1796. ## --------- ##
  1797. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1798. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1799. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1800. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1801. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1802. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1803. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1804. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1805. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1806. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1807. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1808. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1809. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1810. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1811. _ASUNAME
  1812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1813. for as_dir in $PATH
  1814. do
  1815. IFS=$as_save_IFS
  1816. test -z "$as_dir" && as_dir=.
  1817. $as_echo "PATH: $as_dir"
  1818. done
  1819. IFS=$as_save_IFS
  1820. } >&5
  1821. cat >&5 <<_ACEOF
  1822. ## ----------- ##
  1823. ## Core tests. ##
  1824. ## ----------- ##
  1825. _ACEOF
  1826. # Keep a trace of the command line.
  1827. # Strip out --no-create and --no-recursion so they do not pile up.
  1828. # Strip out --silent because we don't want to record it for future runs.
  1829. # Also quote any args containing shell meta-characters.
  1830. # Make two passes to allow for proper duplicate-argument suppression.
  1831. ac_configure_args=
  1832. ac_configure_args0=
  1833. ac_configure_args1=
  1834. ac_must_keep_next=false
  1835. for ac_pass in 1 2
  1836. do
  1837. for ac_arg
  1838. do
  1839. case $ac_arg in
  1840. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1841. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1842. | -silent | --silent | --silen | --sile | --sil)
  1843. continue ;;
  1844. *\'*)
  1845. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1846. esac
  1847. case $ac_pass in
  1848. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1849. 2)
  1850. as_fn_append ac_configure_args1 " '$ac_arg'"
  1851. if test $ac_must_keep_next = true; then
  1852. ac_must_keep_next=false # Got value, back to normal.
  1853. else
  1854. case $ac_arg in
  1855. *=* | --config-cache | -C | -disable-* | --disable-* \
  1856. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1857. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1858. | -with-* | --with-* | -without-* | --without-* | --x)
  1859. case "$ac_configure_args0 " in
  1860. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1861. esac
  1862. ;;
  1863. -* ) ac_must_keep_next=true ;;
  1864. esac
  1865. fi
  1866. as_fn_append ac_configure_args " '$ac_arg'"
  1867. ;;
  1868. esac
  1869. done
  1870. done
  1871. { ac_configure_args0=; unset ac_configure_args0;}
  1872. { ac_configure_args1=; unset ac_configure_args1;}
  1873. # When interrupted or exit'd, cleanup temporary files, and complete
  1874. # config.log. We remove comments because anyway the quotes in there
  1875. # would cause problems or look ugly.
  1876. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1877. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1878. trap 'exit_status=$?
  1879. # Save into config.log some information that might help in debugging.
  1880. {
  1881. echo
  1882. $as_echo "## ---------------- ##
  1883. ## Cache variables. ##
  1884. ## ---------------- ##"
  1885. echo
  1886. # The following way of writing the cache mishandles newlines in values,
  1887. (
  1888. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1889. eval ac_val=\$$ac_var
  1890. case $ac_val in #(
  1891. *${as_nl}*)
  1892. case $ac_var in #(
  1893. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1894. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1895. esac
  1896. case $ac_var in #(
  1897. _ | IFS | as_nl) ;; #(
  1898. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1899. *) { eval $ac_var=; unset $ac_var;} ;;
  1900. esac ;;
  1901. esac
  1902. done
  1903. (set) 2>&1 |
  1904. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1905. *${as_nl}ac_space=\ *)
  1906. sed -n \
  1907. "s/'\''/'\''\\\\'\'''\''/g;
  1908. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1909. ;; #(
  1910. *)
  1911. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1912. ;;
  1913. esac |
  1914. sort
  1915. )
  1916. echo
  1917. $as_echo "## ----------------- ##
  1918. ## Output variables. ##
  1919. ## ----------------- ##"
  1920. echo
  1921. for ac_var in $ac_subst_vars
  1922. do
  1923. eval ac_val=\$$ac_var
  1924. case $ac_val in
  1925. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1926. esac
  1927. $as_echo "$ac_var='\''$ac_val'\''"
  1928. done | sort
  1929. echo
  1930. if test -n "$ac_subst_files"; then
  1931. $as_echo "## ------------------- ##
  1932. ## File substitutions. ##
  1933. ## ------------------- ##"
  1934. echo
  1935. for ac_var in $ac_subst_files
  1936. do
  1937. eval ac_val=\$$ac_var
  1938. case $ac_val in
  1939. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1940. esac
  1941. $as_echo "$ac_var='\''$ac_val'\''"
  1942. done | sort
  1943. echo
  1944. fi
  1945. if test -s confdefs.h; then
  1946. $as_echo "## ----------- ##
  1947. ## confdefs.h. ##
  1948. ## ----------- ##"
  1949. echo
  1950. cat confdefs.h
  1951. echo
  1952. fi
  1953. test "$ac_signal" != 0 &&
  1954. $as_echo "$as_me: caught signal $ac_signal"
  1955. $as_echo "$as_me: exit $exit_status"
  1956. } >&5
  1957. rm -f core *.core core.conftest.* &&
  1958. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1959. exit $exit_status
  1960. ' 0
  1961. for ac_signal in 1 2 13 15; do
  1962. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1963. done
  1964. ac_signal=0
  1965. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1966. rm -f -r conftest* confdefs.h
  1967. $as_echo "/* confdefs.h */" > confdefs.h
  1968. # Predefined preprocessor variables.
  1969. cat >>confdefs.h <<_ACEOF
  1970. #define PACKAGE_NAME "$PACKAGE_NAME"
  1971. _ACEOF
  1972. cat >>confdefs.h <<_ACEOF
  1973. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1974. _ACEOF
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1977. _ACEOF
  1978. cat >>confdefs.h <<_ACEOF
  1979. #define PACKAGE_STRING "$PACKAGE_STRING"
  1980. _ACEOF
  1981. cat >>confdefs.h <<_ACEOF
  1982. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1983. _ACEOF
  1984. cat >>confdefs.h <<_ACEOF
  1985. #define PACKAGE_URL "$PACKAGE_URL"
  1986. _ACEOF
  1987. # Let the site file select an alternate cache file if it wants to.
  1988. # Prefer an explicitly selected file to automatically selected ones.
  1989. ac_site_file1=NONE
  1990. ac_site_file2=NONE
  1991. if test -n "$CONFIG_SITE"; then
  1992. # We do not want a PATH search for config.site.
  1993. case $CONFIG_SITE in #((
  1994. -*) ac_site_file1=./$CONFIG_SITE;;
  1995. */*) ac_site_file1=$CONFIG_SITE;;
  1996. *) ac_site_file1=./$CONFIG_SITE;;
  1997. esac
  1998. elif test "x$prefix" != xNONE; then
  1999. ac_site_file1=$prefix/share/config.site
  2000. ac_site_file2=$prefix/etc/config.site
  2001. else
  2002. ac_site_file1=$ac_default_prefix/share/config.site
  2003. ac_site_file2=$ac_default_prefix/etc/config.site
  2004. fi
  2005. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2006. do
  2007. test "x$ac_site_file" = xNONE && continue
  2008. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2010. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2011. sed 's/^/| /' "$ac_site_file" >&5
  2012. . "$ac_site_file" \
  2013. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2015. as_fn_error $? "failed to load site script $ac_site_file
  2016. See \`config.log' for more details" "$LINENO" 5; }
  2017. fi
  2018. done
  2019. if test -r "$cache_file"; then
  2020. # Some versions of bash will fail to source /dev/null (special files
  2021. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2022. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2024. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2025. case $cache_file in
  2026. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2027. *) . "./$cache_file";;
  2028. esac
  2029. fi
  2030. else
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2032. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2033. >$cache_file
  2034. fi
  2035. # Check that the precious variables saved in the cache have kept the same
  2036. # value.
  2037. ac_cache_corrupted=false
  2038. for ac_var in $ac_precious_vars; do
  2039. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2040. eval ac_new_set=\$ac_env_${ac_var}_set
  2041. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2042. eval ac_new_val=\$ac_env_${ac_var}_value
  2043. case $ac_old_set,$ac_new_set in
  2044. set,)
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2046. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2047. ac_cache_corrupted=: ;;
  2048. ,set)
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2050. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2051. ac_cache_corrupted=: ;;
  2052. ,);;
  2053. *)
  2054. if test "x$ac_old_val" != "x$ac_new_val"; then
  2055. # differences in whitespace do not lead to failure.
  2056. ac_old_val_w=`echo x $ac_old_val`
  2057. ac_new_val_w=`echo x $ac_new_val`
  2058. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2060. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2061. ac_cache_corrupted=:
  2062. else
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2064. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2065. eval $ac_var=\$ac_old_val
  2066. fi
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2068. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2070. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2071. fi;;
  2072. esac
  2073. # Pass precious variables to config.status.
  2074. if test "$ac_new_set" = set; then
  2075. case $ac_new_val in
  2076. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2077. *) ac_arg=$ac_var=$ac_new_val ;;
  2078. esac
  2079. case " $ac_configure_args " in
  2080. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2081. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2082. esac
  2083. fi
  2084. done
  2085. if $ac_cache_corrupted; then
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2089. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2090. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2091. fi
  2092. ## -------------------- ##
  2093. ## Main body of script. ##
  2094. ## -------------------- ##
  2095. ac_ext=c
  2096. ac_cpp='$CPP $CPPFLAGS'
  2097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2100. am__api_version='1.14'
  2101. ac_aux_dir=
  2102. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2103. if test -f "$ac_dir/install-sh"; then
  2104. ac_aux_dir=$ac_dir
  2105. ac_install_sh="$ac_aux_dir/install-sh -c"
  2106. break
  2107. elif test -f "$ac_dir/install.sh"; then
  2108. ac_aux_dir=$ac_dir
  2109. ac_install_sh="$ac_aux_dir/install.sh -c"
  2110. break
  2111. elif test -f "$ac_dir/shtool"; then
  2112. ac_aux_dir=$ac_dir
  2113. ac_install_sh="$ac_aux_dir/shtool install -c"
  2114. break
  2115. fi
  2116. done
  2117. if test -z "$ac_aux_dir"; then
  2118. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2119. fi
  2120. # These three variables are undocumented and unsupported,
  2121. # and are intended to be withdrawn in a future Autoconf release.
  2122. # They can cause serious problems if a builder's source tree is in a directory
  2123. # whose full name contains unusual characters.
  2124. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2125. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2126. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2127. # Find a good install program. We prefer a C program (faster),
  2128. # so one script is as good as another. But avoid the broken or
  2129. # incompatible versions:
  2130. # SysV /etc/install, /usr/sbin/install
  2131. # SunOS /usr/etc/install
  2132. # IRIX /sbin/install
  2133. # AIX /bin/install
  2134. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2135. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2136. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2137. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2138. # OS/2's system install, which has a completely different semantic
  2139. # ./install, which can be erroneously created by make from ./install.sh.
  2140. # Reject install programs that cannot install multiple files.
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2142. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2143. if test -z "$INSTALL"; then
  2144. if ${ac_cv_path_install+:} false; then :
  2145. $as_echo_n "(cached) " >&6
  2146. else
  2147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2148. for as_dir in $PATH
  2149. do
  2150. IFS=$as_save_IFS
  2151. test -z "$as_dir" && as_dir=.
  2152. # Account for people who put trailing slashes in PATH elements.
  2153. case $as_dir/ in #((
  2154. ./ | .// | /[cC]/* | \
  2155. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2156. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2157. /usr/ucb/* ) ;;
  2158. *)
  2159. # OSF1 and SCO ODT 3.0 have their own names for install.
  2160. # Don't use installbsd from OSF since it installs stuff as root
  2161. # by default.
  2162. for ac_prog in ginstall scoinst install; do
  2163. for ac_exec_ext in '' $ac_executable_extensions; do
  2164. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2165. if test $ac_prog = install &&
  2166. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2167. # AIX install. It has an incompatible calling convention.
  2168. :
  2169. elif test $ac_prog = install &&
  2170. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2171. # program-specific install script used by HP pwplus--don't use.
  2172. :
  2173. else
  2174. rm -rf conftest.one conftest.two conftest.dir
  2175. echo one > conftest.one
  2176. echo two > conftest.two
  2177. mkdir conftest.dir
  2178. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2179. test -s conftest.one && test -s conftest.two &&
  2180. test -s conftest.dir/conftest.one &&
  2181. test -s conftest.dir/conftest.two
  2182. then
  2183. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2184. break 3
  2185. fi
  2186. fi
  2187. fi
  2188. done
  2189. done
  2190. ;;
  2191. esac
  2192. done
  2193. IFS=$as_save_IFS
  2194. rm -rf conftest.one conftest.two conftest.dir
  2195. fi
  2196. if test "${ac_cv_path_install+set}" = set; then
  2197. INSTALL=$ac_cv_path_install
  2198. else
  2199. # As a last resort, use the slow shell script. Don't cache a
  2200. # value for INSTALL within a source directory, because that will
  2201. # break other packages using the cache if that directory is
  2202. # removed, or if the value is a relative name.
  2203. INSTALL=$ac_install_sh
  2204. fi
  2205. fi
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2207. $as_echo "$INSTALL" >&6; }
  2208. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2209. # It thinks the first close brace ends the variable substitution.
  2210. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2211. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2212. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2214. $as_echo_n "checking whether build environment is sane... " >&6; }
  2215. # Reject unsafe characters in $srcdir or the absolute working directory
  2216. # name. Accept space and tab only in the latter.
  2217. am_lf='
  2218. '
  2219. case `pwd` in
  2220. *[\\\"\#\$\&\'\`$am_lf]*)
  2221. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2222. esac
  2223. case $srcdir in
  2224. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2225. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2226. esac
  2227. # Do 'set' in a subshell so we don't clobber the current shell's
  2228. # arguments. Must try -L first in case configure is actually a
  2229. # symlink; some systems play weird games with the mod time of symlinks
  2230. # (eg FreeBSD returns the mod time of the symlink's containing
  2231. # directory).
  2232. if (
  2233. am_has_slept=no
  2234. for am_try in 1 2; do
  2235. echo "timestamp, slept: $am_has_slept" > conftest.file
  2236. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2237. if test "$*" = "X"; then
  2238. # -L didn't work.
  2239. set X `ls -t "$srcdir/configure" conftest.file`
  2240. fi
  2241. if test "$*" != "X $srcdir/configure conftest.file" \
  2242. && test "$*" != "X conftest.file $srcdir/configure"; then
  2243. # If neither matched, then we have a broken ls. This can happen
  2244. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2245. # broken ls alias from the environment. This has actually
  2246. # happened. Such a system could not be considered "sane".
  2247. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2248. alias in your environment" "$LINENO" 5
  2249. fi
  2250. if test "$2" = conftest.file || test $am_try -eq 2; then
  2251. break
  2252. fi
  2253. # Just in case.
  2254. sleep 1
  2255. am_has_slept=yes
  2256. done
  2257. test "$2" = conftest.file
  2258. )
  2259. then
  2260. # Ok.
  2261. :
  2262. else
  2263. as_fn_error $? "newly created file is older than distributed files!
  2264. Check your system clock" "$LINENO" 5
  2265. fi
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2267. $as_echo "yes" >&6; }
  2268. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2269. # generated files are strictly newer.
  2270. am_sleep_pid=
  2271. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2272. ( sleep 1 ) &
  2273. am_sleep_pid=$!
  2274. fi
  2275. rm -f conftest.file
  2276. test "$program_prefix" != NONE &&
  2277. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2278. # Use a double $ so make ignores it.
  2279. test "$program_suffix" != NONE &&
  2280. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2281. # Double any \ or $.
  2282. # By default was `s,x,x', remove it if useless.
  2283. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2284. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2285. # Expand $ac_aux_dir to an absolute path.
  2286. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2287. if test x"${MISSING+set}" != xset; then
  2288. case $am_aux_dir in
  2289. *\ * | *\ *)
  2290. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2291. *)
  2292. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2293. esac
  2294. fi
  2295. # Use eval to expand $SHELL
  2296. if eval "$MISSING --is-lightweight"; then
  2297. am_missing_run="$MISSING "
  2298. else
  2299. am_missing_run=
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2301. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2302. fi
  2303. if test x"${install_sh}" != xset; then
  2304. case $am_aux_dir in
  2305. *\ * | *\ *)
  2306. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2307. *)
  2308. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2309. esac
  2310. fi
  2311. # Installed binaries are usually stripped using 'strip' when the user
  2312. # run "make install-strip". However 'strip' might not be the right
  2313. # tool to use in cross-compilation environments, therefore Automake
  2314. # will honor the 'STRIP' environment variable to overrule this program.
  2315. if test "$cross_compiling" != no; then
  2316. if test -n "$ac_tool_prefix"; then
  2317. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2318. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2320. $as_echo_n "checking for $ac_word... " >&6; }
  2321. if ${ac_cv_prog_STRIP+:} false; then :
  2322. $as_echo_n "(cached) " >&6
  2323. else
  2324. if test -n "$STRIP"; then
  2325. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2326. else
  2327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2328. for as_dir in $PATH
  2329. do
  2330. IFS=$as_save_IFS
  2331. test -z "$as_dir" && as_dir=.
  2332. for ac_exec_ext in '' $ac_executable_extensions; do
  2333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2334. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2336. break 2
  2337. fi
  2338. done
  2339. done
  2340. IFS=$as_save_IFS
  2341. fi
  2342. fi
  2343. STRIP=$ac_cv_prog_STRIP
  2344. if test -n "$STRIP"; then
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2346. $as_echo "$STRIP" >&6; }
  2347. else
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2349. $as_echo "no" >&6; }
  2350. fi
  2351. fi
  2352. if test -z "$ac_cv_prog_STRIP"; then
  2353. ac_ct_STRIP=$STRIP
  2354. # Extract the first word of "strip", so it can be a program name with args.
  2355. set dummy strip; ac_word=$2
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2357. $as_echo_n "checking for $ac_word... " >&6; }
  2358. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2359. $as_echo_n "(cached) " >&6
  2360. else
  2361. if test -n "$ac_ct_STRIP"; then
  2362. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2363. else
  2364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2365. for as_dir in $PATH
  2366. do
  2367. IFS=$as_save_IFS
  2368. test -z "$as_dir" && as_dir=.
  2369. for ac_exec_ext in '' $ac_executable_extensions; do
  2370. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2371. ac_cv_prog_ac_ct_STRIP="strip"
  2372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2373. break 2
  2374. fi
  2375. done
  2376. done
  2377. IFS=$as_save_IFS
  2378. fi
  2379. fi
  2380. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2381. if test -n "$ac_ct_STRIP"; then
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2383. $as_echo "$ac_ct_STRIP" >&6; }
  2384. else
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2386. $as_echo "no" >&6; }
  2387. fi
  2388. if test "x$ac_ct_STRIP" = x; then
  2389. STRIP=":"
  2390. else
  2391. case $cross_compiling:$ac_tool_warned in
  2392. yes:)
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2395. ac_tool_warned=yes ;;
  2396. esac
  2397. STRIP=$ac_ct_STRIP
  2398. fi
  2399. else
  2400. STRIP="$ac_cv_prog_STRIP"
  2401. fi
  2402. fi
  2403. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2405. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2406. if test -z "$MKDIR_P"; then
  2407. if ${ac_cv_path_mkdir+:} false; then :
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_prog in mkdir gmkdir; do
  2416. for ac_exec_ext in '' $ac_executable_extensions; do
  2417. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2418. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2419. 'mkdir (GNU coreutils) '* | \
  2420. 'mkdir (coreutils) '* | \
  2421. 'mkdir (fileutils) '4.1*)
  2422. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2423. break 3;;
  2424. esac
  2425. done
  2426. done
  2427. done
  2428. IFS=$as_save_IFS
  2429. fi
  2430. test -d ./--version && rmdir ./--version
  2431. if test "${ac_cv_path_mkdir+set}" = set; then
  2432. MKDIR_P="$ac_cv_path_mkdir -p"
  2433. else
  2434. # As a last resort, use the slow shell script. Don't cache a
  2435. # value for MKDIR_P within a source directory, because that will
  2436. # break other packages using the cache if that directory is
  2437. # removed, or if the value is a relative name.
  2438. MKDIR_P="$ac_install_sh -d"
  2439. fi
  2440. fi
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2442. $as_echo "$MKDIR_P" >&6; }
  2443. for ac_prog in gawk mawk nawk awk
  2444. do
  2445. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2446. set dummy $ac_prog; ac_word=$2
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2448. $as_echo_n "checking for $ac_word... " >&6; }
  2449. if ${ac_cv_prog_AWK+:} false; then :
  2450. $as_echo_n "(cached) " >&6
  2451. else
  2452. if test -n "$AWK"; then
  2453. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2454. else
  2455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2456. for as_dir in $PATH
  2457. do
  2458. IFS=$as_save_IFS
  2459. test -z "$as_dir" && as_dir=.
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2462. ac_cv_prog_AWK="$ac_prog"
  2463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. fi
  2471. AWK=$ac_cv_prog_AWK
  2472. if test -n "$AWK"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2474. $as_echo "$AWK" >&6; }
  2475. else
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. test -n "$AWK" && break
  2480. done
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2482. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2483. set x ${MAKE-make}
  2484. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2485. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2486. $as_echo_n "(cached) " >&6
  2487. else
  2488. cat >conftest.make <<\_ACEOF
  2489. SHELL = /bin/sh
  2490. all:
  2491. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2492. _ACEOF
  2493. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2494. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2495. *@@@%%%=?*=@@@%%%*)
  2496. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2497. *)
  2498. eval ac_cv_prog_make_${ac_make}_set=no;;
  2499. esac
  2500. rm -f conftest.make
  2501. fi
  2502. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2504. $as_echo "yes" >&6; }
  2505. SET_MAKE=
  2506. else
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2508. $as_echo "no" >&6; }
  2509. SET_MAKE="MAKE=${MAKE-make}"
  2510. fi
  2511. rm -rf .tst 2>/dev/null
  2512. mkdir .tst 2>/dev/null
  2513. if test -d .tst; then
  2514. am__leading_dot=.
  2515. else
  2516. am__leading_dot=_
  2517. fi
  2518. rmdir .tst 2>/dev/null
  2519. # Check whether --enable-silent-rules was given.
  2520. if test "${enable_silent_rules+set}" = set; then :
  2521. enableval=$enable_silent_rules;
  2522. fi
  2523. case $enable_silent_rules in # (((
  2524. yes) AM_DEFAULT_VERBOSITY=0;;
  2525. no) AM_DEFAULT_VERBOSITY=1;;
  2526. *) AM_DEFAULT_VERBOSITY=1;;
  2527. esac
  2528. am_make=${MAKE-make}
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2530. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2531. if ${am_cv_make_support_nested_variables+:} false; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if $as_echo 'TRUE=$(BAR$(V))
  2535. BAR0=false
  2536. BAR1=true
  2537. V=1
  2538. am__doit:
  2539. @$(TRUE)
  2540. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2541. am_cv_make_support_nested_variables=yes
  2542. else
  2543. am_cv_make_support_nested_variables=no
  2544. fi
  2545. fi
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2547. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2548. if test $am_cv_make_support_nested_variables = yes; then
  2549. AM_V='$(V)'
  2550. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2551. else
  2552. AM_V=$AM_DEFAULT_VERBOSITY
  2553. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2554. fi
  2555. AM_BACKSLASH='\'
  2556. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2557. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2558. # is not polluted with repeated "-I."
  2559. am__isrc=' -I$(srcdir)'
  2560. # test to see if srcdir already configured
  2561. if test -f $srcdir/config.status; then
  2562. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2563. fi
  2564. fi
  2565. # test whether we have cygpath
  2566. if test -z "$CYGPATH_W"; then
  2567. if (cygpath --version) >/dev/null 2>/dev/null; then
  2568. CYGPATH_W='cygpath -w'
  2569. else
  2570. CYGPATH_W=echo
  2571. fi
  2572. fi
  2573. # Define the identity of the package.
  2574. PACKAGE='json-c'
  2575. VERSION='0.13'
  2576. cat >>confdefs.h <<_ACEOF
  2577. #define PACKAGE "$PACKAGE"
  2578. _ACEOF
  2579. cat >>confdefs.h <<_ACEOF
  2580. #define VERSION "$VERSION"
  2581. _ACEOF
  2582. # Some tools Automake needs.
  2583. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2584. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2585. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2586. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2587. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2588. # For better backward compatibility. To be removed once Automake 1.9.x
  2589. # dies out for good. For more background, see:
  2590. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2591. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2592. mkdir_p='$(MKDIR_P)'
  2593. # We need awk for the "check" target. The system "awk" is bad on
  2594. # some platforms.
  2595. # Always define AMTAR for backward compatibility. Yes, it's still used
  2596. # in the wild :-( We should find a proper way to deprecate it ...
  2597. AMTAR='$${TAR-tar}'
  2598. # We'll loop over all known methods to create a tar archive until one works.
  2599. _am_tools='gnutar pax cpio none'
  2600. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2601. # POSIX will say in a future version that running "rm -f" with no argument
  2602. # is OK; and we want to be able to make that assumption in our Makefile
  2603. # recipes. So use an aggressive probe to check that the usage we want is
  2604. # actually supported "in the wild" to an acceptable degree.
  2605. # See automake bug#10828.
  2606. # To make any issue more visible, cause the running configure to be aborted
  2607. # by default if the 'rm' program in use doesn't match our expectations; the
  2608. # user can still override this though.
  2609. if rm -f && rm -fr && rm -rf; then : OK; else
  2610. cat >&2 <<'END'
  2611. Oops!
  2612. Your 'rm' program seems unable to run without file operands specified
  2613. on the command line, even when the '-f' option is present. This is contrary
  2614. to the behaviour of most rm programs out there, and not conforming with
  2615. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2616. Please tell bug-automake@gnu.org about your system, including the value
  2617. of your $PATH and any error possibly output before this message. This
  2618. can help us improve future automake versions.
  2619. END
  2620. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2621. echo 'Configuration will proceed anyway, since you have set the' >&2
  2622. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2623. echo >&2
  2624. else
  2625. cat >&2 <<'END'
  2626. Aborting the configuration process, to ensure you take notice of the issue.
  2627. You can download and install GNU coreutils to get an 'rm' implementation
  2628. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2629. If you want to complete the configuration process using your problematic
  2630. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2631. to "yes", and re-run configure.
  2632. END
  2633. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2634. fi
  2635. fi
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2637. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2638. set x ${MAKE-make}
  2639. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2640. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. cat >conftest.make <<\_ACEOF
  2644. SHELL = /bin/sh
  2645. all:
  2646. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2647. _ACEOF
  2648. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2649. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2650. *@@@%%%=?*=@@@%%%*)
  2651. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2652. *)
  2653. eval ac_cv_prog_make_${ac_make}_set=no;;
  2654. esac
  2655. rm -f conftest.make
  2656. fi
  2657. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2659. $as_echo "yes" >&6; }
  2660. SET_MAKE=
  2661. else
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2663. $as_echo "no" >&6; }
  2664. SET_MAKE="MAKE=${MAKE-make}"
  2665. fi
  2666. # Make sure we can run config.sub.
  2667. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2668. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2670. $as_echo_n "checking build system type... " >&6; }
  2671. if ${ac_cv_build+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. ac_build_alias=$build_alias
  2675. test "x$ac_build_alias" = x &&
  2676. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2677. test "x$ac_build_alias" = x &&
  2678. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2679. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2680. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2681. fi
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2683. $as_echo "$ac_cv_build" >&6; }
  2684. case $ac_cv_build in
  2685. *-*-*) ;;
  2686. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2687. esac
  2688. build=$ac_cv_build
  2689. ac_save_IFS=$IFS; IFS='-'
  2690. set x $ac_cv_build
  2691. shift
  2692. build_cpu=$1
  2693. build_vendor=$2
  2694. shift; shift
  2695. # Remember, the first character of IFS is used to create $*,
  2696. # except with old shells:
  2697. build_os=$*
  2698. IFS=$ac_save_IFS
  2699. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2701. $as_echo_n "checking host system type... " >&6; }
  2702. if ${ac_cv_host+:} false; then :
  2703. $as_echo_n "(cached) " >&6
  2704. else
  2705. if test "x$host_alias" = x; then
  2706. ac_cv_host=$ac_cv_build
  2707. else
  2708. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2709. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2710. fi
  2711. fi
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2713. $as_echo "$ac_cv_host" >&6; }
  2714. case $ac_cv_host in
  2715. *-*-*) ;;
  2716. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2717. esac
  2718. host=$ac_cv_host
  2719. ac_save_IFS=$IFS; IFS='-'
  2720. set x $ac_cv_host
  2721. shift
  2722. host_cpu=$1
  2723. host_vendor=$2
  2724. shift; shift
  2725. # Remember, the first character of IFS is used to create $*,
  2726. # except with old shells:
  2727. host_os=$*
  2728. IFS=$ac_save_IFS
  2729. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2730. # Check whether --enable-threading was given.
  2731. if test "${enable_threading+set}" = set; then :
  2732. enableval=$enable_threading; if test x$enableval = xyes; then
  2733. enable_threading=yes
  2734. $as_echo "#define ENABLE_THREADING 1" >>confdefs.h
  2735. fi
  2736. fi
  2737. if test "x$enable_threading" = "xyes"; then
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Partial multi-threaded support enabled." >&5
  2739. $as_echo "Partial multi-threaded support enabled." >&6; }
  2740. else
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Multi-threaded support disabled. Use --enable-threading to enable." >&5
  2742. $as_echo "Multi-threaded support disabled. Use --enable-threading to enable." >&6; }
  2743. fi
  2744. # Check whether --enable-rdrand was given.
  2745. if test "${enable_rdrand+set}" = set; then :
  2746. enableval=$enable_rdrand; if test x$enableval = xyes; then
  2747. enable_rdrand=yes
  2748. $as_echo "#define ENABLE_RDRAND 1" >>confdefs.h
  2749. fi
  2750. fi
  2751. if test "x$enable_rdrand" = "xyes"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&5
  2753. $as_echo "RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&5
  2756. $as_echo "RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&6; }
  2757. fi
  2758. # enable silent build by default
  2759. # Check whether --enable-silent-rules was given.
  2760. if test "${enable_silent_rules+set}" = set; then :
  2761. enableval=$enable_silent_rules;
  2762. fi
  2763. case $enable_silent_rules in # (((
  2764. yes) AM_DEFAULT_VERBOSITY=0;;
  2765. no) AM_DEFAULT_VERBOSITY=1;;
  2766. *) AM_DEFAULT_VERBOSITY=0;;
  2767. esac
  2768. am_make=${MAKE-make}
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2770. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2771. if ${am_cv_make_support_nested_variables+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if $as_echo 'TRUE=$(BAR$(V))
  2775. BAR0=false
  2776. BAR1=true
  2777. V=1
  2778. am__doit:
  2779. @$(TRUE)
  2780. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2781. am_cv_make_support_nested_variables=yes
  2782. else
  2783. am_cv_make_support_nested_variables=no
  2784. fi
  2785. fi
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2787. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2788. if test $am_cv_make_support_nested_variables = yes; then
  2789. AM_V='$(V)'
  2790. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2791. else
  2792. AM_V=$AM_DEFAULT_VERBOSITY
  2793. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2794. fi
  2795. AM_BACKSLASH='\'
  2796. # Checks for programs.
  2797. # Checks for libraries.
  2798. # Checks for header files.
  2799. DEPDIR="${am__leading_dot}deps"
  2800. ac_config_commands="$ac_config_commands depfiles"
  2801. am_make=${MAKE-make}
  2802. cat > confinc << 'END'
  2803. am__doit:
  2804. @echo this is the am__doit target
  2805. .PHONY: am__doit
  2806. END
  2807. # If we don't find an include directive, just comment out the code.
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2809. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2810. am__include="#"
  2811. am__quote=
  2812. _am_result=none
  2813. # First try GNU make style include.
  2814. echo "include confinc" > confmf
  2815. # Ignore all kinds of additional output from 'make'.
  2816. case `$am_make -s -f confmf 2> /dev/null` in #(
  2817. *the\ am__doit\ target*)
  2818. am__include=include
  2819. am__quote=
  2820. _am_result=GNU
  2821. ;;
  2822. esac
  2823. # Now try BSD make style include.
  2824. if test "$am__include" = "#"; then
  2825. echo '.include "confinc"' > confmf
  2826. case `$am_make -s -f confmf 2> /dev/null` in #(
  2827. *the\ am__doit\ target*)
  2828. am__include=.include
  2829. am__quote="\""
  2830. _am_result=BSD
  2831. ;;
  2832. esac
  2833. fi
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2835. $as_echo "$_am_result" >&6; }
  2836. rm -f confinc confmf
  2837. # Check whether --enable-dependency-tracking was given.
  2838. if test "${enable_dependency_tracking+set}" = set; then :
  2839. enableval=$enable_dependency_tracking;
  2840. fi
  2841. if test "x$enable_dependency_tracking" != xno; then
  2842. am_depcomp="$ac_aux_dir/depcomp"
  2843. AMDEPBACKSLASH='\'
  2844. am__nodep='_no'
  2845. fi
  2846. if test "x$enable_dependency_tracking" != xno; then
  2847. AMDEP_TRUE=
  2848. AMDEP_FALSE='#'
  2849. else
  2850. AMDEP_TRUE='#'
  2851. AMDEP_FALSE=
  2852. fi
  2853. ac_ext=c
  2854. ac_cpp='$CPP $CPPFLAGS'
  2855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2858. if test -n "$ac_tool_prefix"; then
  2859. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2860. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2862. $as_echo_n "checking for $ac_word... " >&6; }
  2863. if ${ac_cv_prog_CC+:} false; then :
  2864. $as_echo_n "(cached) " >&6
  2865. else
  2866. if test -n "$CC"; then
  2867. ac_cv_prog_CC="$CC" # Let the user override the test.
  2868. else
  2869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2870. for as_dir in $PATH
  2871. do
  2872. IFS=$as_save_IFS
  2873. test -z "$as_dir" && as_dir=.
  2874. for ac_exec_ext in '' $ac_executable_extensions; do
  2875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2876. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2878. break 2
  2879. fi
  2880. done
  2881. done
  2882. IFS=$as_save_IFS
  2883. fi
  2884. fi
  2885. CC=$ac_cv_prog_CC
  2886. if test -n "$CC"; then
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2888. $as_echo "$CC" >&6; }
  2889. else
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2891. $as_echo "no" >&6; }
  2892. fi
  2893. fi
  2894. if test -z "$ac_cv_prog_CC"; then
  2895. ac_ct_CC=$CC
  2896. # Extract the first word of "gcc", so it can be a program name with args.
  2897. set dummy gcc; ac_word=$2
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2899. $as_echo_n "checking for $ac_word... " >&6; }
  2900. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. if test -n "$ac_ct_CC"; then
  2904. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2905. else
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2913. ac_cv_prog_ac_ct_CC="gcc"
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. fi
  2921. fi
  2922. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2923. if test -n "$ac_ct_CC"; then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2925. $as_echo "$ac_ct_CC" >&6; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. fi
  2930. if test "x$ac_ct_CC" = x; then
  2931. CC=""
  2932. else
  2933. case $cross_compiling:$ac_tool_warned in
  2934. yes:)
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2937. ac_tool_warned=yes ;;
  2938. esac
  2939. CC=$ac_ct_CC
  2940. fi
  2941. else
  2942. CC="$ac_cv_prog_CC"
  2943. fi
  2944. if test -z "$CC"; then
  2945. if test -n "$ac_tool_prefix"; then
  2946. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2947. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2949. $as_echo_n "checking for $ac_word... " >&6; }
  2950. if ${ac_cv_prog_CC+:} false; then :
  2951. $as_echo_n "(cached) " >&6
  2952. else
  2953. if test -n "$CC"; then
  2954. ac_cv_prog_CC="$CC" # Let the user override the test.
  2955. else
  2956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH
  2958. do
  2959. IFS=$as_save_IFS
  2960. test -z "$as_dir" && as_dir=.
  2961. for ac_exec_ext in '' $ac_executable_extensions; do
  2962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2963. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2965. break 2
  2966. fi
  2967. done
  2968. done
  2969. IFS=$as_save_IFS
  2970. fi
  2971. fi
  2972. CC=$ac_cv_prog_CC
  2973. if test -n "$CC"; then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2975. $as_echo "$CC" >&6; }
  2976. else
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2978. $as_echo "no" >&6; }
  2979. fi
  2980. fi
  2981. fi
  2982. if test -z "$CC"; then
  2983. # Extract the first word of "cc", so it can be a program name with args.
  2984. set dummy cc; ac_word=$2
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2986. $as_echo_n "checking for $ac_word... " >&6; }
  2987. if ${ac_cv_prog_CC+:} false; then :
  2988. $as_echo_n "(cached) " >&6
  2989. else
  2990. if test -n "$CC"; then
  2991. ac_cv_prog_CC="$CC" # Let the user override the test.
  2992. else
  2993. ac_prog_rejected=no
  2994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2995. for as_dir in $PATH
  2996. do
  2997. IFS=$as_save_IFS
  2998. test -z "$as_dir" && as_dir=.
  2999. for ac_exec_ext in '' $ac_executable_extensions; do
  3000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3001. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3002. ac_prog_rejected=yes
  3003. continue
  3004. fi
  3005. ac_cv_prog_CC="cc"
  3006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3007. break 2
  3008. fi
  3009. done
  3010. done
  3011. IFS=$as_save_IFS
  3012. if test $ac_prog_rejected = yes; then
  3013. # We found a bogon in the path, so make sure we never use it.
  3014. set dummy $ac_cv_prog_CC
  3015. shift
  3016. if test $# != 0; then
  3017. # We chose a different compiler from the bogus one.
  3018. # However, it has the same basename, so the bogon will be chosen
  3019. # first if we set CC to just the basename; use the full file name.
  3020. shift
  3021. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3022. fi
  3023. fi
  3024. fi
  3025. fi
  3026. CC=$ac_cv_prog_CC
  3027. if test -n "$CC"; then
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3029. $as_echo "$CC" >&6; }
  3030. else
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3032. $as_echo "no" >&6; }
  3033. fi
  3034. fi
  3035. if test -z "$CC"; then
  3036. if test -n "$ac_tool_prefix"; then
  3037. for ac_prog in cl.exe
  3038. do
  3039. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3040. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3042. $as_echo_n "checking for $ac_word... " >&6; }
  3043. if ${ac_cv_prog_CC+:} false; then :
  3044. $as_echo_n "(cached) " >&6
  3045. else
  3046. if test -n "$CC"; then
  3047. ac_cv_prog_CC="$CC" # Let the user override the test.
  3048. else
  3049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3050. for as_dir in $PATH
  3051. do
  3052. IFS=$as_save_IFS
  3053. test -z "$as_dir" && as_dir=.
  3054. for ac_exec_ext in '' $ac_executable_extensions; do
  3055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3056. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3058. break 2
  3059. fi
  3060. done
  3061. done
  3062. IFS=$as_save_IFS
  3063. fi
  3064. fi
  3065. CC=$ac_cv_prog_CC
  3066. if test -n "$CC"; then
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3068. $as_echo "$CC" >&6; }
  3069. else
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3071. $as_echo "no" >&6; }
  3072. fi
  3073. test -n "$CC" && break
  3074. done
  3075. fi
  3076. if test -z "$CC"; then
  3077. ac_ct_CC=$CC
  3078. for ac_prog in cl.exe
  3079. do
  3080. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3081. set dummy $ac_prog; ac_word=$2
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3083. $as_echo_n "checking for $ac_word... " >&6; }
  3084. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3085. $as_echo_n "(cached) " >&6
  3086. else
  3087. if test -n "$ac_ct_CC"; then
  3088. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3089. else
  3090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3091. for as_dir in $PATH
  3092. do
  3093. IFS=$as_save_IFS
  3094. test -z "$as_dir" && as_dir=.
  3095. for ac_exec_ext in '' $ac_executable_extensions; do
  3096. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3097. ac_cv_prog_ac_ct_CC="$ac_prog"
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3099. break 2
  3100. fi
  3101. done
  3102. done
  3103. IFS=$as_save_IFS
  3104. fi
  3105. fi
  3106. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3107. if test -n "$ac_ct_CC"; then
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3109. $as_echo "$ac_ct_CC" >&6; }
  3110. else
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3112. $as_echo "no" >&6; }
  3113. fi
  3114. test -n "$ac_ct_CC" && break
  3115. done
  3116. if test "x$ac_ct_CC" = x; then
  3117. CC=""
  3118. else
  3119. case $cross_compiling:$ac_tool_warned in
  3120. yes:)
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3123. ac_tool_warned=yes ;;
  3124. esac
  3125. CC=$ac_ct_CC
  3126. fi
  3127. fi
  3128. fi
  3129. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3131. as_fn_error $? "no acceptable C compiler found in \$PATH
  3132. See \`config.log' for more details" "$LINENO" 5; }
  3133. # Provide some information about the compiler.
  3134. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3135. set X $ac_compile
  3136. ac_compiler=$2
  3137. for ac_option in --version -v -V -qversion; do
  3138. { { ac_try="$ac_compiler $ac_option >&5"
  3139. case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3144. $as_echo "$ac_try_echo"; } >&5
  3145. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3146. ac_status=$?
  3147. if test -s conftest.err; then
  3148. sed '10a\
  3149. ... rest of stderr output deleted ...
  3150. 10q' conftest.err >conftest.er1
  3151. cat conftest.er1 >&5
  3152. fi
  3153. rm -f conftest.er1 conftest.err
  3154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3155. test $ac_status = 0; }
  3156. done
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. ac_clean_files_save=$ac_clean_files
  3167. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3168. # Try to create an executable without -o first, disregard a.out.
  3169. # It will help us diagnose broken compilers, and finding out an intuition
  3170. # of exeext.
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3172. $as_echo_n "checking whether the C compiler works... " >&6; }
  3173. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3174. # The possible output files:
  3175. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3176. ac_rmfiles=
  3177. for ac_file in $ac_files
  3178. do
  3179. case $ac_file in
  3180. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3181. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3182. esac
  3183. done
  3184. rm -f $ac_rmfiles
  3185. if { { ac_try="$ac_link_default"
  3186. case "(($ac_try" in
  3187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3188. *) ac_try_echo=$ac_try;;
  3189. esac
  3190. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3191. $as_echo "$ac_try_echo"; } >&5
  3192. (eval "$ac_link_default") 2>&5
  3193. ac_status=$?
  3194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3195. test $ac_status = 0; }; then :
  3196. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3197. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3198. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3199. # so that the user can short-circuit this test for compilers unknown to
  3200. # Autoconf.
  3201. for ac_file in $ac_files ''
  3202. do
  3203. test -f "$ac_file" || continue
  3204. case $ac_file in
  3205. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3206. ;;
  3207. [ab].out )
  3208. # We found the default executable, but exeext='' is most
  3209. # certainly right.
  3210. break;;
  3211. *.* )
  3212. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3213. then :; else
  3214. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3215. fi
  3216. # We set ac_cv_exeext here because the later test for it is not
  3217. # safe: cross compilers may not add the suffix if given an `-o'
  3218. # argument, so we may need to know it at that point already.
  3219. # Even if this section looks crufty: it has the advantage of
  3220. # actually working.
  3221. break;;
  3222. * )
  3223. break;;
  3224. esac
  3225. done
  3226. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3227. else
  3228. ac_file=''
  3229. fi
  3230. if test -z "$ac_file"; then :
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3232. $as_echo "no" >&6; }
  3233. $as_echo "$as_me: failed program was:" >&5
  3234. sed 's/^/| /' conftest.$ac_ext >&5
  3235. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3236. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3237. as_fn_error 77 "C compiler cannot create executables
  3238. See \`config.log' for more details" "$LINENO" 5; }
  3239. else
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3241. $as_echo "yes" >&6; }
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3244. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3246. $as_echo "$ac_file" >&6; }
  3247. ac_exeext=$ac_cv_exeext
  3248. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3249. ac_clean_files=$ac_clean_files_save
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3251. $as_echo_n "checking for suffix of executables... " >&6; }
  3252. if { { ac_try="$ac_link"
  3253. case "(($ac_try" in
  3254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3255. *) ac_try_echo=$ac_try;;
  3256. esac
  3257. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3258. $as_echo "$ac_try_echo"; } >&5
  3259. (eval "$ac_link") 2>&5
  3260. ac_status=$?
  3261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3262. test $ac_status = 0; }; then :
  3263. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3264. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3265. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3266. # `rm'.
  3267. for ac_file in conftest.exe conftest conftest.*; do
  3268. test -f "$ac_file" || continue
  3269. case $ac_file in
  3270. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3271. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3272. break;;
  3273. * ) break;;
  3274. esac
  3275. done
  3276. else
  3277. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3278. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3279. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3280. See \`config.log' for more details" "$LINENO" 5; }
  3281. fi
  3282. rm -f conftest conftest$ac_cv_exeext
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3284. $as_echo "$ac_cv_exeext" >&6; }
  3285. rm -f conftest.$ac_ext
  3286. EXEEXT=$ac_cv_exeext
  3287. ac_exeext=$EXEEXT
  3288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3289. /* end confdefs.h. */
  3290. #include <stdio.h>
  3291. int
  3292. main ()
  3293. {
  3294. FILE *f = fopen ("conftest.out", "w");
  3295. return ferror (f) || fclose (f) != 0;
  3296. ;
  3297. return 0;
  3298. }
  3299. _ACEOF
  3300. ac_clean_files="$ac_clean_files conftest.out"
  3301. # Check that the compiler produces executables we can run. If not, either
  3302. # the compiler is broken, or we cross compile.
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3304. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3305. if test "$cross_compiling" != yes; then
  3306. { { ac_try="$ac_link"
  3307. case "(($ac_try" in
  3308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3309. *) ac_try_echo=$ac_try;;
  3310. esac
  3311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3312. $as_echo "$ac_try_echo"; } >&5
  3313. (eval "$ac_link") 2>&5
  3314. ac_status=$?
  3315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3316. test $ac_status = 0; }
  3317. if { ac_try='./conftest$ac_cv_exeext'
  3318. { { case "(($ac_try" in
  3319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3320. *) ac_try_echo=$ac_try;;
  3321. esac
  3322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3323. $as_echo "$ac_try_echo"; } >&5
  3324. (eval "$ac_try") 2>&5
  3325. ac_status=$?
  3326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3327. test $ac_status = 0; }; }; then
  3328. cross_compiling=no
  3329. else
  3330. if test "$cross_compiling" = maybe; then
  3331. cross_compiling=yes
  3332. else
  3333. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3335. as_fn_error $? "cannot run C compiled programs.
  3336. If you meant to cross compile, use \`--host'.
  3337. See \`config.log' for more details" "$LINENO" 5; }
  3338. fi
  3339. fi
  3340. fi
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3342. $as_echo "$cross_compiling" >&6; }
  3343. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3344. ac_clean_files=$ac_clean_files_save
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3346. $as_echo_n "checking for suffix of object files... " >&6; }
  3347. if ${ac_cv_objext+:} false; then :
  3348. $as_echo_n "(cached) " >&6
  3349. else
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352. int
  3353. main ()
  3354. {
  3355. ;
  3356. return 0;
  3357. }
  3358. _ACEOF
  3359. rm -f conftest.o conftest.obj
  3360. if { { ac_try="$ac_compile"
  3361. case "(($ac_try" in
  3362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3363. *) ac_try_echo=$ac_try;;
  3364. esac
  3365. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3366. $as_echo "$ac_try_echo"; } >&5
  3367. (eval "$ac_compile") 2>&5
  3368. ac_status=$?
  3369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3370. test $ac_status = 0; }; then :
  3371. for ac_file in conftest.o conftest.obj conftest.*; do
  3372. test -f "$ac_file" || continue;
  3373. case $ac_file in
  3374. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3375. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3376. break;;
  3377. esac
  3378. done
  3379. else
  3380. $as_echo "$as_me: failed program was:" >&5
  3381. sed 's/^/| /' conftest.$ac_ext >&5
  3382. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3383. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3384. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3385. See \`config.log' for more details" "$LINENO" 5; }
  3386. fi
  3387. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3388. fi
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3390. $as_echo "$ac_cv_objext" >&6; }
  3391. OBJEXT=$ac_cv_objext
  3392. ac_objext=$OBJEXT
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3394. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3395. if ${ac_cv_c_compiler_gnu+:} false; then :
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3399. /* end confdefs.h. */
  3400. int
  3401. main ()
  3402. {
  3403. #ifndef __GNUC__
  3404. choke me
  3405. #endif
  3406. ;
  3407. return 0;
  3408. }
  3409. _ACEOF
  3410. if ac_fn_c_try_compile "$LINENO"; then :
  3411. ac_compiler_gnu=yes
  3412. else
  3413. ac_compiler_gnu=no
  3414. fi
  3415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3416. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3417. fi
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3419. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3420. if test $ac_compiler_gnu = yes; then
  3421. GCC=yes
  3422. else
  3423. GCC=
  3424. fi
  3425. ac_test_CFLAGS=${CFLAGS+set}
  3426. ac_save_CFLAGS=$CFLAGS
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3428. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3429. if ${ac_cv_prog_cc_g+:} false; then :
  3430. $as_echo_n "(cached) " >&6
  3431. else
  3432. ac_save_c_werror_flag=$ac_c_werror_flag
  3433. ac_c_werror_flag=yes
  3434. ac_cv_prog_cc_g=no
  3435. CFLAGS="-g"
  3436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3437. /* end confdefs.h. */
  3438. int
  3439. main ()
  3440. {
  3441. ;
  3442. return 0;
  3443. }
  3444. _ACEOF
  3445. if ac_fn_c_try_compile "$LINENO"; then :
  3446. ac_cv_prog_cc_g=yes
  3447. else
  3448. CFLAGS=""
  3449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3450. /* end confdefs.h. */
  3451. int
  3452. main ()
  3453. {
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. if ac_fn_c_try_compile "$LINENO"; then :
  3459. else
  3460. ac_c_werror_flag=$ac_save_c_werror_flag
  3461. CFLAGS="-g"
  3462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3463. /* end confdefs.h. */
  3464. int
  3465. main ()
  3466. {
  3467. ;
  3468. return 0;
  3469. }
  3470. _ACEOF
  3471. if ac_fn_c_try_compile "$LINENO"; then :
  3472. ac_cv_prog_cc_g=yes
  3473. fi
  3474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3475. fi
  3476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3477. fi
  3478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3479. ac_c_werror_flag=$ac_save_c_werror_flag
  3480. fi
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3482. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3483. if test "$ac_test_CFLAGS" = set; then
  3484. CFLAGS=$ac_save_CFLAGS
  3485. elif test $ac_cv_prog_cc_g = yes; then
  3486. if test "$GCC" = yes; then
  3487. CFLAGS="-g -O2"
  3488. else
  3489. CFLAGS="-g"
  3490. fi
  3491. else
  3492. if test "$GCC" = yes; then
  3493. CFLAGS="-O2"
  3494. else
  3495. CFLAGS=
  3496. fi
  3497. fi
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3499. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3500. if ${ac_cv_prog_cc_c89+:} false; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. ac_cv_prog_cc_c89=no
  3504. ac_save_CC=$CC
  3505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3506. /* end confdefs.h. */
  3507. #include <stdarg.h>
  3508. #include <stdio.h>
  3509. struct stat;
  3510. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3511. struct buf { int x; };
  3512. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3513. static char *e (p, i)
  3514. char **p;
  3515. int i;
  3516. {
  3517. return p[i];
  3518. }
  3519. static char *f (char * (*g) (char **, int), char **p, ...)
  3520. {
  3521. char *s;
  3522. va_list v;
  3523. va_start (v,p);
  3524. s = g (p, va_arg (v,int));
  3525. va_end (v);
  3526. return s;
  3527. }
  3528. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3529. function prototypes and stuff, but not '\xHH' hex character constants.
  3530. These don't provoke an error unfortunately, instead are silently treated
  3531. as 'x'. The following induces an error, until -std is added to get
  3532. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3533. array size at least. It's necessary to write '\x00'==0 to get something
  3534. that's true only with -std. */
  3535. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3536. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3537. inside strings and character constants. */
  3538. #define FOO(x) 'x'
  3539. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3540. int test (int i, double x);
  3541. struct s1 {int (*f) (int a);};
  3542. struct s2 {int (*f) (double a);};
  3543. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3544. int argc;
  3545. char **argv;
  3546. int
  3547. main ()
  3548. {
  3549. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3550. ;
  3551. return 0;
  3552. }
  3553. _ACEOF
  3554. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3555. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3556. do
  3557. CC="$ac_save_CC $ac_arg"
  3558. if ac_fn_c_try_compile "$LINENO"; then :
  3559. ac_cv_prog_cc_c89=$ac_arg
  3560. fi
  3561. rm -f core conftest.err conftest.$ac_objext
  3562. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3563. done
  3564. rm -f conftest.$ac_ext
  3565. CC=$ac_save_CC
  3566. fi
  3567. # AC_CACHE_VAL
  3568. case "x$ac_cv_prog_cc_c89" in
  3569. x)
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3571. $as_echo "none needed" >&6; } ;;
  3572. xno)
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3574. $as_echo "unsupported" >&6; } ;;
  3575. *)
  3576. CC="$CC $ac_cv_prog_cc_c89"
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3578. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3579. esac
  3580. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3581. fi
  3582. ac_ext=c
  3583. ac_cpp='$CPP $CPPFLAGS'
  3584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3587. ac_ext=c
  3588. ac_cpp='$CPP $CPPFLAGS'
  3589. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3590. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3591. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3593. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3594. if ${am_cv_prog_cc_c_o+:} false; then :
  3595. $as_echo_n "(cached) " >&6
  3596. else
  3597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3598. /* end confdefs.h. */
  3599. int
  3600. main ()
  3601. {
  3602. ;
  3603. return 0;
  3604. }
  3605. _ACEOF
  3606. # Make sure it works both with $CC and with simple cc.
  3607. # Following AC_PROG_CC_C_O, we do the test twice because some
  3608. # compilers refuse to overwrite an existing .o file with -o,
  3609. # though they will create one.
  3610. am_cv_prog_cc_c_o=yes
  3611. for am_i in 1 2; do
  3612. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3613. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3614. ac_status=$?
  3615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); } \
  3617. && test -f conftest2.$ac_objext; then
  3618. : OK
  3619. else
  3620. am_cv_prog_cc_c_o=no
  3621. break
  3622. fi
  3623. done
  3624. rm -f core conftest*
  3625. unset am_i
  3626. fi
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3628. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3629. if test "$am_cv_prog_cc_c_o" != yes; then
  3630. # Losing compiler, so override with the script.
  3631. # FIXME: It is wrong to rewrite CC.
  3632. # But if we don't then we get into trouble of one sort or another.
  3633. # A longer-term fix would be to have automake use am__CC in this case,
  3634. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3635. CC="$am_aux_dir/compile $CC"
  3636. fi
  3637. ac_ext=c
  3638. ac_cpp='$CPP $CPPFLAGS'
  3639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3642. depcc="$CC" am_compiler_list=
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3644. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3645. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3649. # We make a subdir and do the tests there. Otherwise we can end up
  3650. # making bogus files that we don't know about and never remove. For
  3651. # instance it was reported that on HP-UX the gcc test will end up
  3652. # making a dummy file named 'D' -- because '-MD' means "put the output
  3653. # in D".
  3654. rm -rf conftest.dir
  3655. mkdir conftest.dir
  3656. # Copy depcomp to subdir because otherwise we won't find it if we're
  3657. # using a relative directory.
  3658. cp "$am_depcomp" conftest.dir
  3659. cd conftest.dir
  3660. # We will build objects and dependencies in a subdirectory because
  3661. # it helps to detect inapplicable dependency modes. For instance
  3662. # both Tru64's cc and ICC support -MD to output dependencies as a
  3663. # side effect of compilation, but ICC will put the dependencies in
  3664. # the current directory while Tru64 will put them in the object
  3665. # directory.
  3666. mkdir sub
  3667. am_cv_CC_dependencies_compiler_type=none
  3668. if test "$am_compiler_list" = ""; then
  3669. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3670. fi
  3671. am__universal=false
  3672. case " $depcc " in #(
  3673. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3674. esac
  3675. for depmode in $am_compiler_list; do
  3676. # Setup a source with many dependencies, because some compilers
  3677. # like to wrap large dependency lists on column 80 (with \), and
  3678. # we should not choose a depcomp mode which is confused by this.
  3679. #
  3680. # We need to recreate these files for each test, as the compiler may
  3681. # overwrite some of them when testing with obscure command lines.
  3682. # This happens at least with the AIX C compiler.
  3683. : > sub/conftest.c
  3684. for i in 1 2 3 4 5 6; do
  3685. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3686. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3687. # Solaris 10 /bin/sh.
  3688. echo '/* dummy */' > sub/conftst$i.h
  3689. done
  3690. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3691. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3692. # mode. It turns out that the SunPro C++ compiler does not properly
  3693. # handle '-M -o', and we need to detect this. Also, some Intel
  3694. # versions had trouble with output in subdirs.
  3695. am__obj=sub/conftest.${OBJEXT-o}
  3696. am__minus_obj="-o $am__obj"
  3697. case $depmode in
  3698. gcc)
  3699. # This depmode causes a compiler race in universal mode.
  3700. test "$am__universal" = false || continue
  3701. ;;
  3702. nosideeffect)
  3703. # After this tag, mechanisms are not by side-effect, so they'll
  3704. # only be used when explicitly requested.
  3705. if test "x$enable_dependency_tracking" = xyes; then
  3706. continue
  3707. else
  3708. break
  3709. fi
  3710. ;;
  3711. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3712. # This compiler won't grok '-c -o', but also, the minuso test has
  3713. # not run yet. These depmodes are late enough in the game, and
  3714. # so weak that their functioning should not be impacted.
  3715. am__obj=conftest.${OBJEXT-o}
  3716. am__minus_obj=
  3717. ;;
  3718. none) break ;;
  3719. esac
  3720. if depmode=$depmode \
  3721. source=sub/conftest.c object=$am__obj \
  3722. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3723. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3724. >/dev/null 2>conftest.err &&
  3725. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3726. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3727. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3728. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3729. # icc doesn't choke on unknown options, it will just issue warnings
  3730. # or remarks (even with -Werror). So we grep stderr for any message
  3731. # that says an option was ignored or not supported.
  3732. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3733. # icc: Command line warning: ignoring option '-M'; no argument required
  3734. # The diagnosis changed in icc 8.0:
  3735. # icc: Command line remark: option '-MP' not supported
  3736. if (grep 'ignoring option' conftest.err ||
  3737. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3738. am_cv_CC_dependencies_compiler_type=$depmode
  3739. break
  3740. fi
  3741. fi
  3742. done
  3743. cd ..
  3744. rm -rf conftest.dir
  3745. else
  3746. am_cv_CC_dependencies_compiler_type=none
  3747. fi
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3750. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3751. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3752. if
  3753. test "x$enable_dependency_tracking" != xno \
  3754. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3755. am__fastdepCC_TRUE=
  3756. am__fastdepCC_FALSE='#'
  3757. else
  3758. am__fastdepCC_TRUE='#'
  3759. am__fastdepCC_FALSE=
  3760. fi
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3762. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3763. if ${ac_cv_prog_cc_c99+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. ac_cv_prog_cc_c99=no
  3767. ac_save_CC=$CC
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. #include <stdarg.h>
  3771. #include <stdbool.h>
  3772. #include <stdlib.h>
  3773. #include <wchar.h>
  3774. #include <stdio.h>
  3775. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3776. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3777. #define showlist(...) puts (#__VA_ARGS__)
  3778. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3779. static void
  3780. test_varargs_macros (void)
  3781. {
  3782. int x = 1234;
  3783. int y = 5678;
  3784. debug ("Flag");
  3785. debug ("X = %d\n", x);
  3786. showlist (The first, second, and third items.);
  3787. report (x>y, "x is %d but y is %d", x, y);
  3788. }
  3789. // Check long long types.
  3790. #define BIG64 18446744073709551615ull
  3791. #define BIG32 4294967295ul
  3792. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3793. #if !BIG_OK
  3794. your preprocessor is broken;
  3795. #endif
  3796. #if BIG_OK
  3797. #else
  3798. your preprocessor is broken;
  3799. #endif
  3800. static long long int bignum = -9223372036854775807LL;
  3801. static unsigned long long int ubignum = BIG64;
  3802. struct incomplete_array
  3803. {
  3804. int datasize;
  3805. double data[];
  3806. };
  3807. struct named_init {
  3808. int number;
  3809. const wchar_t *name;
  3810. double average;
  3811. };
  3812. typedef const char *ccp;
  3813. static inline int
  3814. test_restrict (ccp restrict text)
  3815. {
  3816. // See if C++-style comments work.
  3817. // Iterate through items via the restricted pointer.
  3818. // Also check for declarations in for loops.
  3819. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3820. continue;
  3821. return 0;
  3822. }
  3823. // Check varargs and va_copy.
  3824. static void
  3825. test_varargs (const char *format, ...)
  3826. {
  3827. va_list args;
  3828. va_start (args, format);
  3829. va_list args_copy;
  3830. va_copy (args_copy, args);
  3831. const char *str;
  3832. int number;
  3833. float fnumber;
  3834. while (*format)
  3835. {
  3836. switch (*format++)
  3837. {
  3838. case 's': // string
  3839. str = va_arg (args_copy, const char *);
  3840. break;
  3841. case 'd': // int
  3842. number = va_arg (args_copy, int);
  3843. break;
  3844. case 'f': // float
  3845. fnumber = va_arg (args_copy, double);
  3846. break;
  3847. default:
  3848. break;
  3849. }
  3850. }
  3851. va_end (args_copy);
  3852. va_end (args);
  3853. }
  3854. int
  3855. main ()
  3856. {
  3857. // Check bool.
  3858. _Bool success = false;
  3859. // Check restrict.
  3860. if (test_restrict ("String literal") == 0)
  3861. success = true;
  3862. char *restrict newvar = "Another string";
  3863. // Check varargs.
  3864. test_varargs ("s, d' f .", "string", 65, 34.234);
  3865. test_varargs_macros ();
  3866. // Check flexible array members.
  3867. struct incomplete_array *ia =
  3868. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3869. ia->datasize = 10;
  3870. for (int i = 0; i < ia->datasize; ++i)
  3871. ia->data[i] = i * 1.234;
  3872. // Check named initializers.
  3873. struct named_init ni = {
  3874. .number = 34,
  3875. .name = L"Test wide string",
  3876. .average = 543.34343,
  3877. };
  3878. ni.number = 58;
  3879. int dynamic_array[ni.number];
  3880. dynamic_array[ni.number - 1] = 543;
  3881. // work around unused variable warnings
  3882. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3883. || dynamic_array[ni.number - 1] != 543);
  3884. ;
  3885. return 0;
  3886. }
  3887. _ACEOF
  3888. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3889. do
  3890. CC="$ac_save_CC $ac_arg"
  3891. if ac_fn_c_try_compile "$LINENO"; then :
  3892. ac_cv_prog_cc_c99=$ac_arg
  3893. fi
  3894. rm -f core conftest.err conftest.$ac_objext
  3895. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3896. done
  3897. rm -f conftest.$ac_ext
  3898. CC=$ac_save_CC
  3899. fi
  3900. # AC_CACHE_VAL
  3901. case "x$ac_cv_prog_cc_c99" in
  3902. x)
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3904. $as_echo "none needed" >&6; } ;;
  3905. xno)
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3907. $as_echo "unsupported" >&6; } ;;
  3908. *)
  3909. CC="$CC $ac_cv_prog_cc_c99"
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3911. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3912. esac
  3913. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3914. fi
  3915. ac_config_headers="$ac_config_headers config.h"
  3916. ac_config_headers="$ac_config_headers json_config.h"
  3917. ac_ext=c
  3918. ac_cpp='$CPP $CPPFLAGS'
  3919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3923. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3924. # On Suns, sometimes $CPP names a directory.
  3925. if test -n "$CPP" && test -d "$CPP"; then
  3926. CPP=
  3927. fi
  3928. if test -z "$CPP"; then
  3929. if ${ac_cv_prog_CPP+:} false; then :
  3930. $as_echo_n "(cached) " >&6
  3931. else
  3932. # Double quotes because CPP needs to be expanded
  3933. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3934. do
  3935. ac_preproc_ok=false
  3936. for ac_c_preproc_warn_flag in '' yes
  3937. do
  3938. # Use a header file that comes with gcc, so configuring glibc
  3939. # with a fresh cross-compiler works.
  3940. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3941. # <limits.h> exists even on freestanding compilers.
  3942. # On the NeXT, cc -E runs the code through the compiler's parser,
  3943. # not just through cpp. "Syntax error" is here to catch this case.
  3944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3945. /* end confdefs.h. */
  3946. #ifdef __STDC__
  3947. # include <limits.h>
  3948. #else
  3949. # include <assert.h>
  3950. #endif
  3951. Syntax error
  3952. _ACEOF
  3953. if ac_fn_c_try_cpp "$LINENO"; then :
  3954. else
  3955. # Broken: fails on valid input.
  3956. continue
  3957. fi
  3958. rm -f conftest.err conftest.i conftest.$ac_ext
  3959. # OK, works on sane cases. Now check whether nonexistent headers
  3960. # can be detected and how.
  3961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3962. /* end confdefs.h. */
  3963. #include <ac_nonexistent.h>
  3964. _ACEOF
  3965. if ac_fn_c_try_cpp "$LINENO"; then :
  3966. # Broken: success on invalid input.
  3967. continue
  3968. else
  3969. # Passes both tests.
  3970. ac_preproc_ok=:
  3971. break
  3972. fi
  3973. rm -f conftest.err conftest.i conftest.$ac_ext
  3974. done
  3975. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3976. rm -f conftest.i conftest.err conftest.$ac_ext
  3977. if $ac_preproc_ok; then :
  3978. break
  3979. fi
  3980. done
  3981. ac_cv_prog_CPP=$CPP
  3982. fi
  3983. CPP=$ac_cv_prog_CPP
  3984. else
  3985. ac_cv_prog_CPP=$CPP
  3986. fi
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3988. $as_echo "$CPP" >&6; }
  3989. ac_preproc_ok=false
  3990. for ac_c_preproc_warn_flag in '' yes
  3991. do
  3992. # Use a header file that comes with gcc, so configuring glibc
  3993. # with a fresh cross-compiler works.
  3994. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3995. # <limits.h> exists even on freestanding compilers.
  3996. # On the NeXT, cc -E runs the code through the compiler's parser,
  3997. # not just through cpp. "Syntax error" is here to catch this case.
  3998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3999. /* end confdefs.h. */
  4000. #ifdef __STDC__
  4001. # include <limits.h>
  4002. #else
  4003. # include <assert.h>
  4004. #endif
  4005. Syntax error
  4006. _ACEOF
  4007. if ac_fn_c_try_cpp "$LINENO"; then :
  4008. else
  4009. # Broken: fails on valid input.
  4010. continue
  4011. fi
  4012. rm -f conftest.err conftest.i conftest.$ac_ext
  4013. # OK, works on sane cases. Now check whether nonexistent headers
  4014. # can be detected and how.
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. #include <ac_nonexistent.h>
  4018. _ACEOF
  4019. if ac_fn_c_try_cpp "$LINENO"; then :
  4020. # Broken: success on invalid input.
  4021. continue
  4022. else
  4023. # Passes both tests.
  4024. ac_preproc_ok=:
  4025. break
  4026. fi
  4027. rm -f conftest.err conftest.i conftest.$ac_ext
  4028. done
  4029. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4030. rm -f conftest.i conftest.err conftest.$ac_ext
  4031. if $ac_preproc_ok; then :
  4032. else
  4033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4035. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4036. See \`config.log' for more details" "$LINENO" 5; }
  4037. fi
  4038. ac_ext=c
  4039. ac_cpp='$CPP $CPPFLAGS'
  4040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4044. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4045. if ${ac_cv_path_GREP+:} false; then :
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. if test -z "$GREP"; then
  4049. ac_path_GREP_found=false
  4050. # Loop through the user's path and test for each of PROGNAME-LIST
  4051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4052. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4053. do
  4054. IFS=$as_save_IFS
  4055. test -z "$as_dir" && as_dir=.
  4056. for ac_prog in grep ggrep; do
  4057. for ac_exec_ext in '' $ac_executable_extensions; do
  4058. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4059. as_fn_executable_p "$ac_path_GREP" || continue
  4060. # Check for GNU ac_path_GREP and select it if it is found.
  4061. # Check for GNU $ac_path_GREP
  4062. case `"$ac_path_GREP" --version 2>&1` in
  4063. *GNU*)
  4064. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4065. *)
  4066. ac_count=0
  4067. $as_echo_n 0123456789 >"conftest.in"
  4068. while :
  4069. do
  4070. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4071. mv "conftest.tmp" "conftest.in"
  4072. cp "conftest.in" "conftest.nl"
  4073. $as_echo 'GREP' >> "conftest.nl"
  4074. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4075. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4076. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4077. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4078. # Best one so far, save it but keep looking for a better one
  4079. ac_cv_path_GREP="$ac_path_GREP"
  4080. ac_path_GREP_max=$ac_count
  4081. fi
  4082. # 10*(2^10) chars as input seems more than enough
  4083. test $ac_count -gt 10 && break
  4084. done
  4085. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4086. esac
  4087. $ac_path_GREP_found && break 3
  4088. done
  4089. done
  4090. done
  4091. IFS=$as_save_IFS
  4092. if test -z "$ac_cv_path_GREP"; then
  4093. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4094. fi
  4095. else
  4096. ac_cv_path_GREP=$GREP
  4097. fi
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4100. $as_echo "$ac_cv_path_GREP" >&6; }
  4101. GREP="$ac_cv_path_GREP"
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4103. $as_echo_n "checking for egrep... " >&6; }
  4104. if ${ac_cv_path_EGREP+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4108. then ac_cv_path_EGREP="$GREP -E"
  4109. else
  4110. if test -z "$EGREP"; then
  4111. ac_path_EGREP_found=false
  4112. # Loop through the user's path and test for each of PROGNAME-LIST
  4113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4114. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4115. do
  4116. IFS=$as_save_IFS
  4117. test -z "$as_dir" && as_dir=.
  4118. for ac_prog in egrep; do
  4119. for ac_exec_ext in '' $ac_executable_extensions; do
  4120. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4121. as_fn_executable_p "$ac_path_EGREP" || continue
  4122. # Check for GNU ac_path_EGREP and select it if it is found.
  4123. # Check for GNU $ac_path_EGREP
  4124. case `"$ac_path_EGREP" --version 2>&1` in
  4125. *GNU*)
  4126. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4127. *)
  4128. ac_count=0
  4129. $as_echo_n 0123456789 >"conftest.in"
  4130. while :
  4131. do
  4132. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4133. mv "conftest.tmp" "conftest.in"
  4134. cp "conftest.in" "conftest.nl"
  4135. $as_echo 'EGREP' >> "conftest.nl"
  4136. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4137. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4138. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4139. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4140. # Best one so far, save it but keep looking for a better one
  4141. ac_cv_path_EGREP="$ac_path_EGREP"
  4142. ac_path_EGREP_max=$ac_count
  4143. fi
  4144. # 10*(2^10) chars as input seems more than enough
  4145. test $ac_count -gt 10 && break
  4146. done
  4147. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4148. esac
  4149. $ac_path_EGREP_found && break 3
  4150. done
  4151. done
  4152. done
  4153. IFS=$as_save_IFS
  4154. if test -z "$ac_cv_path_EGREP"; then
  4155. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4156. fi
  4157. else
  4158. ac_cv_path_EGREP=$EGREP
  4159. fi
  4160. fi
  4161. fi
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4163. $as_echo "$ac_cv_path_EGREP" >&6; }
  4164. EGREP="$ac_cv_path_EGREP"
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4166. $as_echo_n "checking for ANSI C header files... " >&6; }
  4167. if ${ac_cv_header_stdc+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4171. /* end confdefs.h. */
  4172. #include <stdlib.h>
  4173. #include <stdarg.h>
  4174. #include <string.h>
  4175. #include <float.h>
  4176. int
  4177. main ()
  4178. {
  4179. ;
  4180. return 0;
  4181. }
  4182. _ACEOF
  4183. if ac_fn_c_try_compile "$LINENO"; then :
  4184. ac_cv_header_stdc=yes
  4185. else
  4186. ac_cv_header_stdc=no
  4187. fi
  4188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4189. if test $ac_cv_header_stdc = yes; then
  4190. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4192. /* end confdefs.h. */
  4193. #include <string.h>
  4194. _ACEOF
  4195. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4196. $EGREP "memchr" >/dev/null 2>&1; then :
  4197. else
  4198. ac_cv_header_stdc=no
  4199. fi
  4200. rm -f conftest*
  4201. fi
  4202. if test $ac_cv_header_stdc = yes; then
  4203. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4205. /* end confdefs.h. */
  4206. #include <stdlib.h>
  4207. _ACEOF
  4208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4209. $EGREP "free" >/dev/null 2>&1; then :
  4210. else
  4211. ac_cv_header_stdc=no
  4212. fi
  4213. rm -f conftest*
  4214. fi
  4215. if test $ac_cv_header_stdc = yes; then
  4216. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4217. if test "$cross_compiling" = yes; then :
  4218. :
  4219. else
  4220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4221. /* end confdefs.h. */
  4222. #include <ctype.h>
  4223. #include <stdlib.h>
  4224. #if ((' ' & 0x0FF) == 0x020)
  4225. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4226. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4227. #else
  4228. # define ISLOWER(c) \
  4229. (('a' <= (c) && (c) <= 'i') \
  4230. || ('j' <= (c) && (c) <= 'r') \
  4231. || ('s' <= (c) && (c) <= 'z'))
  4232. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4233. #endif
  4234. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4235. int
  4236. main ()
  4237. {
  4238. int i;
  4239. for (i = 0; i < 256; i++)
  4240. if (XOR (islower (i), ISLOWER (i))
  4241. || toupper (i) != TOUPPER (i))
  4242. return 2;
  4243. return 0;
  4244. }
  4245. _ACEOF
  4246. if ac_fn_c_try_run "$LINENO"; then :
  4247. else
  4248. ac_cv_header_stdc=no
  4249. fi
  4250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4251. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4252. fi
  4253. fi
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4256. $as_echo "$ac_cv_header_stdc" >&6; }
  4257. if test $ac_cv_header_stdc = yes; then
  4258. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4259. fi
  4260. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4261. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4262. inttypes.h stdint.h unistd.h
  4263. do :
  4264. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4265. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4266. "
  4267. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4268. cat >>confdefs.h <<_ACEOF
  4269. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4270. _ACEOF
  4271. fi
  4272. done
  4273. for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h xlocale.h endian.h
  4274. do :
  4275. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4276. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4277. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4278. cat >>confdefs.h <<_ACEOF
  4279. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4280. _ACEOF
  4281. fi
  4282. done
  4283. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  4284. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  4285. $as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
  4286. fi
  4287. # Checks for typedefs, structures, and compiler characteristics.
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4289. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4290. if ${ac_cv_c_const+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end confdefs.h. */
  4295. int
  4296. main ()
  4297. {
  4298. #ifndef __cplusplus
  4299. /* Ultrix mips cc rejects this sort of thing. */
  4300. typedef int charset[2];
  4301. const charset cs = { 0, 0 };
  4302. /* SunOS 4.1.1 cc rejects this. */
  4303. char const *const *pcpcc;
  4304. char **ppc;
  4305. /* NEC SVR4.0.2 mips cc rejects this. */
  4306. struct point {int x, y;};
  4307. static struct point const zero = {0,0};
  4308. /* AIX XL C 1.02.0.0 rejects this.
  4309. It does not let you subtract one const X* pointer from another in
  4310. an arm of an if-expression whose if-part is not a constant
  4311. expression */
  4312. const char *g = "string";
  4313. pcpcc = &g + (g ? g-g : 0);
  4314. /* HPUX 7.0 cc rejects these. */
  4315. ++pcpcc;
  4316. ppc = (char**) pcpcc;
  4317. pcpcc = (char const *const *) ppc;
  4318. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4319. char tx;
  4320. char *t = &tx;
  4321. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4322. *t++ = 0;
  4323. if (s) return 0;
  4324. }
  4325. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4326. int x[] = {25, 17};
  4327. const int *foo = &x[0];
  4328. ++foo;
  4329. }
  4330. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4331. typedef const int *iptr;
  4332. iptr p = 0;
  4333. ++p;
  4334. }
  4335. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4336. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4337. struct s { int j; const int *ap[3]; } bx;
  4338. struct s *b = &bx; b->j = 5;
  4339. }
  4340. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4341. const int foo = 10;
  4342. if (!foo) return 0;
  4343. }
  4344. return !cs[0] && !zero.x;
  4345. #endif
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. ac_cv_c_const=yes
  4352. else
  4353. ac_cv_c_const=no
  4354. fi
  4355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4356. fi
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4358. $as_echo "$ac_cv_c_const" >&6; }
  4359. if test $ac_cv_c_const = no; then
  4360. $as_echo "#define const /**/" >>confdefs.h
  4361. fi
  4362. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4363. if test "x$ac_cv_type_size_t" = xyes; then :
  4364. else
  4365. cat >>confdefs.h <<_ACEOF
  4366. #define size_t unsigned int
  4367. _ACEOF
  4368. fi
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5
  4370. $as_echo_n "checking for __thread support... " >&6; }
  4371. if ${ac_cv___thread+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4375. /* end confdefs.h. */
  4376. #undef __thread
  4377. static __thread int a; int foo (int b) { return a + b; }
  4378. int
  4379. main ()
  4380. {
  4381. exit (foo (0));
  4382. ;
  4383. return 0;
  4384. }
  4385. _ACEOF
  4386. if ac_fn_c_try_link "$LINENO"; then :
  4387. ac_cv___thread=yes
  4388. else
  4389. ac_cv___thread=no
  4390. fi
  4391. rm -f core conftest.err conftest.$ac_objext \
  4392. conftest$ac_exeext conftest.$ac_ext
  4393. fi
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___thread" >&5
  4395. $as_echo "$ac_cv___thread" >&6; }
  4396. if test "x$ac_cv___thread" != xno; then :
  4397. $as_echo "#define HAVE___THREAD 1" >>confdefs.h
  4398. $as_echo "#define SPEC___THREAD __thread" >>confdefs.h
  4399. fi
  4400. # Checks for library functions.
  4401. for ac_func in vprintf
  4402. do :
  4403. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  4404. if test "x$ac_cv_func_vprintf" = xyes; then :
  4405. cat >>confdefs.h <<_ACEOF
  4406. #define HAVE_VPRINTF 1
  4407. _ACEOF
  4408. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  4409. if test "x$ac_cv_func__doprnt" = xyes; then :
  4410. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  4411. fi
  4412. fi
  4413. done
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  4415. $as_echo_n "checking for working memcmp... " >&6; }
  4416. if ${ac_cv_func_memcmp_working+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test "$cross_compiling" = yes; then :
  4420. ac_cv_func_memcmp_working=no
  4421. else
  4422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4423. /* end confdefs.h. */
  4424. $ac_includes_default
  4425. int
  4426. main ()
  4427. {
  4428. /* Some versions of memcmp are not 8-bit clean. */
  4429. char c0 = '\100', c1 = '\200', c2 = '\201';
  4430. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  4431. return 1;
  4432. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  4433. or more and with at least one buffer not starting on a 4-byte boundary.
  4434. William Lewis provided this test program. */
  4435. {
  4436. char foo[21];
  4437. char bar[21];
  4438. int i;
  4439. for (i = 0; i < 4; i++)
  4440. {
  4441. char *a = foo + i;
  4442. char *b = bar + i;
  4443. strcpy (a, "--------01111111");
  4444. strcpy (b, "--------10000000");
  4445. if (memcmp (a, b, 16) >= 0)
  4446. return 1;
  4447. }
  4448. return 0;
  4449. }
  4450. ;
  4451. return 0;
  4452. }
  4453. _ACEOF
  4454. if ac_fn_c_try_run "$LINENO"; then :
  4455. ac_cv_func_memcmp_working=yes
  4456. else
  4457. ac_cv_func_memcmp_working=no
  4458. fi
  4459. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4460. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4461. fi
  4462. fi
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  4464. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  4465. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  4466. *" memcmp.$ac_objext "* ) ;;
  4467. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  4468. ;;
  4469. esac
  4470. for ac_func in realloc
  4471. do :
  4472. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  4473. if test "x$ac_cv_func_realloc" = xyes; then :
  4474. cat >>confdefs.h <<_ACEOF
  4475. #define HAVE_REALLOC 1
  4476. _ACEOF
  4477. fi
  4478. done
  4479. for ac_func in strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
  4480. do :
  4481. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4482. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4483. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4484. cat >>confdefs.h <<_ACEOF
  4485. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4486. _ACEOF
  4487. fi
  4488. done
  4489. ac_fn_c_check_decl "$LINENO" "INFINITY" "ac_cv_have_decl_INFINITY" "#include <math.h>
  4490. "
  4491. if test "x$ac_cv_have_decl_INFINITY" = xyes; then :
  4492. ac_have_decl=1
  4493. else
  4494. ac_have_decl=0
  4495. fi
  4496. cat >>confdefs.h <<_ACEOF
  4497. #define HAVE_DECL_INFINITY $ac_have_decl
  4498. _ACEOF
  4499. ac_fn_c_check_decl "$LINENO" "nan" "ac_cv_have_decl_nan" "#include <math.h>
  4500. "
  4501. if test "x$ac_cv_have_decl_nan" = xyes; then :
  4502. ac_have_decl=1
  4503. else
  4504. ac_have_decl=0
  4505. fi
  4506. cat >>confdefs.h <<_ACEOF
  4507. #define HAVE_DECL_NAN $ac_have_decl
  4508. _ACEOF
  4509. ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
  4510. "
  4511. if test "x$ac_cv_have_decl_isnan" = xyes; then :
  4512. ac_have_decl=1
  4513. else
  4514. ac_have_decl=0
  4515. fi
  4516. cat >>confdefs.h <<_ACEOF
  4517. #define HAVE_DECL_ISNAN $ac_have_decl
  4518. _ACEOF
  4519. ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
  4520. "
  4521. if test "x$ac_cv_have_decl_isinf" = xyes; then :
  4522. ac_have_decl=1
  4523. else
  4524. ac_have_decl=0
  4525. fi
  4526. cat >>confdefs.h <<_ACEOF
  4527. #define HAVE_DECL_ISINF $ac_have_decl
  4528. _ACEOF
  4529. ac_fn_c_check_decl "$LINENO" "_isnan" "ac_cv_have_decl__isnan" "#include <float.h>
  4530. "
  4531. if test "x$ac_cv_have_decl__isnan" = xyes; then :
  4532. ac_have_decl=1
  4533. else
  4534. ac_have_decl=0
  4535. fi
  4536. cat >>confdefs.h <<_ACEOF
  4537. #define HAVE_DECL__ISNAN $ac_have_decl
  4538. _ACEOF
  4539. ac_fn_c_check_decl "$LINENO" "_finite" "ac_cv_have_decl__finite" "#include <float.h>
  4540. "
  4541. if test "x$ac_cv_have_decl__finite" = xyes; then :
  4542. ac_have_decl=1
  4543. else
  4544. ac_have_decl=0
  4545. fi
  4546. cat >>confdefs.h <<_ACEOF
  4547. #define HAVE_DECL__FINITE $ac_have_decl
  4548. _ACEOF
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
  4550. $as_echo_n "checking for GCC atomic builtins... " >&6; }
  4551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4552. /* end confdefs.h. */
  4553. int main() {
  4554. volatile unsigned int val = 1;
  4555. /* Note: __sync_val_compare_and_swap isn't checked here
  4556. * because it's protected by __GCC_HAVE_SYNC_COMPARE_AND_SWAP_<n>,
  4557. * which is automatically defined by gcc.
  4558. */
  4559. __sync_add_and_fetch(&val, 1);
  4560. __sync_sub_and_fetch(&val, 1);
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. if ac_fn_c_try_link "$LINENO"; then :
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4566. $as_echo "yes" >&6; }
  4567. $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
  4568. else
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4570. $as_echo "no" >&6; }
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&5
  4572. $as_echo "$as_me: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&2;}
  4573. fi
  4574. rm -f core conftest.err conftest.$ac_objext \
  4575. conftest$ac_exeext conftest.$ac_ext
  4576. case "${host_os}" in
  4577. linux*)
  4578. for ac_func in uselocale
  4579. do :
  4580. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  4581. if test "x$ac_cv_func_uselocale" = xyes; then :
  4582. cat >>confdefs.h <<_ACEOF
  4583. #define HAVE_USELOCALE 1
  4584. _ACEOF
  4585. fi
  4586. done
  4587. ;;
  4588. *) # Nothing
  4589. ;;
  4590. esac
  4591. if test "$ac_cv_have_decl_isnan" = "yes" ; then
  4592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4593. /* end confdefs.h. */
  4594. #include <math.h>
  4595. int
  4596. main ()
  4597. {
  4598. float f = 0.0; return isnan(f)
  4599. ;
  4600. return 0;
  4601. }
  4602. _ACEOF
  4603. if ac_fn_c_try_link "$LINENO"; then :
  4604. else
  4605. LIBS="$LIBS -lm"
  4606. fi
  4607. rm -f core conftest.err conftest.$ac_objext \
  4608. conftest$ac_exeext conftest.$ac_ext
  4609. fi
  4610. #check if .section.gnu.warning accepts long strings (for __warn_references)
  4611. ac_ext=c
  4612. ac_cpp='$CPP $CPPFLAGS'
  4613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
  4617. $as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
  4618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4619. /* end confdefs.h. */
  4620. extern void json_object_get();
  4621. __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
  4622. int main(int c,char* v) {return 0;}
  4623. _ACEOF
  4624. if ac_fn_c_try_link "$LINENO"; then :
  4625. $as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4627. $as_echo "yes" >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4630. $as_echo "no" >&6; }
  4631. fi
  4632. rm -f core conftest.err conftest.$ac_objext \
  4633. conftest$ac_exeext conftest.$ac_ext
  4634. ac_ext=c
  4635. ac_cpp='$CPP $CPPFLAGS'
  4636. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4637. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4638. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4639. case `pwd` in
  4640. *\ * | *\ *)
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4642. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4643. esac
  4644. macro_version='2.4.2'
  4645. macro_revision='1.3337'
  4646. ltmain="$ac_aux_dir/ltmain.sh"
  4647. # Backslashify metacharacters that are still active within
  4648. # double-quoted strings.
  4649. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4650. # Same as above, but do not quote variable references.
  4651. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4652. # Sed substitution to delay expansion of an escaped shell variable in a
  4653. # double_quote_subst'ed string.
  4654. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4655. # Sed substitution to delay expansion of an escaped single quote.
  4656. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4657. # Sed substitution to avoid accidental globbing in evaled expressions
  4658. no_glob_subst='s/\*/\\\*/g'
  4659. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4660. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4661. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4663. $as_echo_n "checking how to print strings... " >&6; }
  4664. # Test print first, because it will be a builtin if present.
  4665. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4666. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4667. ECHO='print -r --'
  4668. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4669. ECHO='printf %s\n'
  4670. else
  4671. # Use this function as a fallback that always works.
  4672. func_fallback_echo ()
  4673. {
  4674. eval 'cat <<_LTECHO_EOF
  4675. $1
  4676. _LTECHO_EOF'
  4677. }
  4678. ECHO='func_fallback_echo'
  4679. fi
  4680. # func_echo_all arg...
  4681. # Invoke $ECHO with all args, space-separated.
  4682. func_echo_all ()
  4683. {
  4684. $ECHO ""
  4685. }
  4686. case "$ECHO" in
  4687. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4688. $as_echo "printf" >&6; } ;;
  4689. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4690. $as_echo "print -r" >&6; } ;;
  4691. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4692. $as_echo "cat" >&6; } ;;
  4693. esac
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4695. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4696. if ${ac_cv_path_SED+:} false; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4700. for ac_i in 1 2 3 4 5 6 7; do
  4701. ac_script="$ac_script$as_nl$ac_script"
  4702. done
  4703. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4704. { ac_script=; unset ac_script;}
  4705. if test -z "$SED"; then
  4706. ac_path_SED_found=false
  4707. # Loop through the user's path and test for each of PROGNAME-LIST
  4708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4709. for as_dir in $PATH
  4710. do
  4711. IFS=$as_save_IFS
  4712. test -z "$as_dir" && as_dir=.
  4713. for ac_prog in sed gsed; do
  4714. for ac_exec_ext in '' $ac_executable_extensions; do
  4715. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4716. as_fn_executable_p "$ac_path_SED" || continue
  4717. # Check for GNU ac_path_SED and select it if it is found.
  4718. # Check for GNU $ac_path_SED
  4719. case `"$ac_path_SED" --version 2>&1` in
  4720. *GNU*)
  4721. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4722. *)
  4723. ac_count=0
  4724. $as_echo_n 0123456789 >"conftest.in"
  4725. while :
  4726. do
  4727. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4728. mv "conftest.tmp" "conftest.in"
  4729. cp "conftest.in" "conftest.nl"
  4730. $as_echo '' >> "conftest.nl"
  4731. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4732. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4733. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4734. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4735. # Best one so far, save it but keep looking for a better one
  4736. ac_cv_path_SED="$ac_path_SED"
  4737. ac_path_SED_max=$ac_count
  4738. fi
  4739. # 10*(2^10) chars as input seems more than enough
  4740. test $ac_count -gt 10 && break
  4741. done
  4742. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4743. esac
  4744. $ac_path_SED_found && break 3
  4745. done
  4746. done
  4747. done
  4748. IFS=$as_save_IFS
  4749. if test -z "$ac_cv_path_SED"; then
  4750. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4751. fi
  4752. else
  4753. ac_cv_path_SED=$SED
  4754. fi
  4755. fi
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4757. $as_echo "$ac_cv_path_SED" >&6; }
  4758. SED="$ac_cv_path_SED"
  4759. rm -f conftest.sed
  4760. test -z "$SED" && SED=sed
  4761. Xsed="$SED -e 1s/^X//"
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4763. $as_echo_n "checking for fgrep... " >&6; }
  4764. if ${ac_cv_path_FGREP+:} false; then :
  4765. $as_echo_n "(cached) " >&6
  4766. else
  4767. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4768. then ac_cv_path_FGREP="$GREP -F"
  4769. else
  4770. if test -z "$FGREP"; then
  4771. ac_path_FGREP_found=false
  4772. # Loop through the user's path and test for each of PROGNAME-LIST
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4775. do
  4776. IFS=$as_save_IFS
  4777. test -z "$as_dir" && as_dir=.
  4778. for ac_prog in fgrep; do
  4779. for ac_exec_ext in '' $ac_executable_extensions; do
  4780. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4781. as_fn_executable_p "$ac_path_FGREP" || continue
  4782. # Check for GNU ac_path_FGREP and select it if it is found.
  4783. # Check for GNU $ac_path_FGREP
  4784. case `"$ac_path_FGREP" --version 2>&1` in
  4785. *GNU*)
  4786. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4787. *)
  4788. ac_count=0
  4789. $as_echo_n 0123456789 >"conftest.in"
  4790. while :
  4791. do
  4792. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4793. mv "conftest.tmp" "conftest.in"
  4794. cp "conftest.in" "conftest.nl"
  4795. $as_echo 'FGREP' >> "conftest.nl"
  4796. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4797. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4798. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4799. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4800. # Best one so far, save it but keep looking for a better one
  4801. ac_cv_path_FGREP="$ac_path_FGREP"
  4802. ac_path_FGREP_max=$ac_count
  4803. fi
  4804. # 10*(2^10) chars as input seems more than enough
  4805. test $ac_count -gt 10 && break
  4806. done
  4807. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4808. esac
  4809. $ac_path_FGREP_found && break 3
  4810. done
  4811. done
  4812. done
  4813. IFS=$as_save_IFS
  4814. if test -z "$ac_cv_path_FGREP"; then
  4815. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4816. fi
  4817. else
  4818. ac_cv_path_FGREP=$FGREP
  4819. fi
  4820. fi
  4821. fi
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4823. $as_echo "$ac_cv_path_FGREP" >&6; }
  4824. FGREP="$ac_cv_path_FGREP"
  4825. test -z "$GREP" && GREP=grep
  4826. # Check whether --with-gnu-ld was given.
  4827. if test "${with_gnu_ld+set}" = set; then :
  4828. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4829. else
  4830. with_gnu_ld=no
  4831. fi
  4832. ac_prog=ld
  4833. if test "$GCC" = yes; then
  4834. # Check if gcc -print-prog-name=ld gives a path.
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4836. $as_echo_n "checking for ld used by $CC... " >&6; }
  4837. case $host in
  4838. *-*-mingw*)
  4839. # gcc leaves a trailing carriage return which upsets mingw
  4840. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4841. *)
  4842. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4843. esac
  4844. case $ac_prog in
  4845. # Accept absolute paths.
  4846. [\\/]* | ?:[\\/]*)
  4847. re_direlt='/[^/][^/]*/\.\./'
  4848. # Canonicalize the pathname of ld
  4849. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4850. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4851. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4852. done
  4853. test -z "$LD" && LD="$ac_prog"
  4854. ;;
  4855. "")
  4856. # If it fails, then pretend we aren't using GCC.
  4857. ac_prog=ld
  4858. ;;
  4859. *)
  4860. # If it is relative, then search for the first ld in PATH.
  4861. with_gnu_ld=unknown
  4862. ;;
  4863. esac
  4864. elif test "$with_gnu_ld" = yes; then
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4866. $as_echo_n "checking for GNU ld... " >&6; }
  4867. else
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4869. $as_echo_n "checking for non-GNU ld... " >&6; }
  4870. fi
  4871. if ${lt_cv_path_LD+:} false; then :
  4872. $as_echo_n "(cached) " >&6
  4873. else
  4874. if test -z "$LD"; then
  4875. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4876. for ac_dir in $PATH; do
  4877. IFS="$lt_save_ifs"
  4878. test -z "$ac_dir" && ac_dir=.
  4879. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4880. lt_cv_path_LD="$ac_dir/$ac_prog"
  4881. # Check to see if the program is GNU ld. I'd rather use --version,
  4882. # but apparently some variants of GNU ld only accept -v.
  4883. # Break only if it was the GNU/non-GNU ld that we prefer.
  4884. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4885. *GNU* | *'with BFD'*)
  4886. test "$with_gnu_ld" != no && break
  4887. ;;
  4888. *)
  4889. test "$with_gnu_ld" != yes && break
  4890. ;;
  4891. esac
  4892. fi
  4893. done
  4894. IFS="$lt_save_ifs"
  4895. else
  4896. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4897. fi
  4898. fi
  4899. LD="$lt_cv_path_LD"
  4900. if test -n "$LD"; then
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4902. $as_echo "$LD" >&6; }
  4903. else
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4905. $as_echo "no" >&6; }
  4906. fi
  4907. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4909. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4910. if ${lt_cv_prog_gnu_ld+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4914. case `$LD -v 2>&1 </dev/null` in
  4915. *GNU* | *'with BFD'*)
  4916. lt_cv_prog_gnu_ld=yes
  4917. ;;
  4918. *)
  4919. lt_cv_prog_gnu_ld=no
  4920. ;;
  4921. esac
  4922. fi
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4924. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4925. with_gnu_ld=$lt_cv_prog_gnu_ld
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4927. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4928. if ${lt_cv_path_NM+:} false; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. if test -n "$NM"; then
  4932. # Let the user override the test.
  4933. lt_cv_path_NM="$NM"
  4934. else
  4935. lt_nm_to_check="${ac_tool_prefix}nm"
  4936. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4937. lt_nm_to_check="$lt_nm_to_check nm"
  4938. fi
  4939. for lt_tmp_nm in $lt_nm_to_check; do
  4940. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4941. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4942. IFS="$lt_save_ifs"
  4943. test -z "$ac_dir" && ac_dir=.
  4944. tmp_nm="$ac_dir/$lt_tmp_nm"
  4945. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4946. # Check to see if the nm accepts a BSD-compat flag.
  4947. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4948. # nm: unknown option "B" ignored
  4949. # Tru64's nm complains that /dev/null is an invalid object file
  4950. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4951. */dev/null* | *'Invalid file or object type'*)
  4952. lt_cv_path_NM="$tmp_nm -B"
  4953. break
  4954. ;;
  4955. *)
  4956. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4957. */dev/null*)
  4958. lt_cv_path_NM="$tmp_nm -p"
  4959. break
  4960. ;;
  4961. *)
  4962. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4963. continue # so that we can try to find one that supports BSD flags
  4964. ;;
  4965. esac
  4966. ;;
  4967. esac
  4968. fi
  4969. done
  4970. IFS="$lt_save_ifs"
  4971. done
  4972. : ${lt_cv_path_NM=no}
  4973. fi
  4974. fi
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4976. $as_echo "$lt_cv_path_NM" >&6; }
  4977. if test "$lt_cv_path_NM" != "no"; then
  4978. NM="$lt_cv_path_NM"
  4979. else
  4980. # Didn't find any BSD compatible name lister, look for dumpbin.
  4981. if test -n "$DUMPBIN"; then :
  4982. # Let the user override the test.
  4983. else
  4984. if test -n "$ac_tool_prefix"; then
  4985. for ac_prog in dumpbin "link -dump"
  4986. do
  4987. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4988. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4990. $as_echo_n "checking for $ac_word... " >&6; }
  4991. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. if test -n "$DUMPBIN"; then
  4995. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4996. else
  4997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4998. for as_dir in $PATH
  4999. do
  5000. IFS=$as_save_IFS
  5001. test -z "$as_dir" && as_dir=.
  5002. for ac_exec_ext in '' $ac_executable_extensions; do
  5003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5004. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5006. break 2
  5007. fi
  5008. done
  5009. done
  5010. IFS=$as_save_IFS
  5011. fi
  5012. fi
  5013. DUMPBIN=$ac_cv_prog_DUMPBIN
  5014. if test -n "$DUMPBIN"; then
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5016. $as_echo "$DUMPBIN" >&6; }
  5017. else
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5019. $as_echo "no" >&6; }
  5020. fi
  5021. test -n "$DUMPBIN" && break
  5022. done
  5023. fi
  5024. if test -z "$DUMPBIN"; then
  5025. ac_ct_DUMPBIN=$DUMPBIN
  5026. for ac_prog in dumpbin "link -dump"
  5027. do
  5028. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5029. set dummy $ac_prog; ac_word=$2
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5031. $as_echo_n "checking for $ac_word... " >&6; }
  5032. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5033. $as_echo_n "(cached) " >&6
  5034. else
  5035. if test -n "$ac_ct_DUMPBIN"; then
  5036. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5037. else
  5038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5039. for as_dir in $PATH
  5040. do
  5041. IFS=$as_save_IFS
  5042. test -z "$as_dir" && as_dir=.
  5043. for ac_exec_ext in '' $ac_executable_extensions; do
  5044. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5045. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5047. break 2
  5048. fi
  5049. done
  5050. done
  5051. IFS=$as_save_IFS
  5052. fi
  5053. fi
  5054. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5055. if test -n "$ac_ct_DUMPBIN"; then
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5057. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5058. else
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5060. $as_echo "no" >&6; }
  5061. fi
  5062. test -n "$ac_ct_DUMPBIN" && break
  5063. done
  5064. if test "x$ac_ct_DUMPBIN" = x; then
  5065. DUMPBIN=":"
  5066. else
  5067. case $cross_compiling:$ac_tool_warned in
  5068. yes:)
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5070. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5071. ac_tool_warned=yes ;;
  5072. esac
  5073. DUMPBIN=$ac_ct_DUMPBIN
  5074. fi
  5075. fi
  5076. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5077. *COFF*)
  5078. DUMPBIN="$DUMPBIN -symbols"
  5079. ;;
  5080. *)
  5081. DUMPBIN=:
  5082. ;;
  5083. esac
  5084. fi
  5085. if test "$DUMPBIN" != ":"; then
  5086. NM="$DUMPBIN"
  5087. fi
  5088. fi
  5089. test -z "$NM" && NM=nm
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5091. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5092. if ${lt_cv_nm_interface+:} false; then :
  5093. $as_echo_n "(cached) " >&6
  5094. else
  5095. lt_cv_nm_interface="BSD nm"
  5096. echo "int some_variable = 0;" > conftest.$ac_ext
  5097. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5098. (eval "$ac_compile" 2>conftest.err)
  5099. cat conftest.err >&5
  5100. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5101. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5102. cat conftest.err >&5
  5103. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5104. cat conftest.out >&5
  5105. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5106. lt_cv_nm_interface="MS dumpbin"
  5107. fi
  5108. rm -f conftest*
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5111. $as_echo "$lt_cv_nm_interface" >&6; }
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5113. $as_echo_n "checking whether ln -s works... " >&6; }
  5114. LN_S=$as_ln_s
  5115. if test "$LN_S" = "ln -s"; then
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5117. $as_echo "yes" >&6; }
  5118. else
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5120. $as_echo "no, using $LN_S" >&6; }
  5121. fi
  5122. # find the maximum length of command line arguments
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5124. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5125. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. i=0
  5129. teststring="ABCD"
  5130. case $build_os in
  5131. msdosdjgpp*)
  5132. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5133. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5134. # during glob expansion). Even if it were fixed, the result of this
  5135. # check would be larger than it should be.
  5136. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5137. ;;
  5138. gnu*)
  5139. # Under GNU Hurd, this test is not required because there is
  5140. # no limit to the length of command line arguments.
  5141. # Libtool will interpret -1 as no limit whatsoever
  5142. lt_cv_sys_max_cmd_len=-1;
  5143. ;;
  5144. cygwin* | mingw* | cegcc*)
  5145. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5146. # about 5 minutes as the teststring grows exponentially.
  5147. # Worse, since 9x/ME are not pre-emptively multitasking,
  5148. # you end up with a "frozen" computer, even though with patience
  5149. # the test eventually succeeds (with a max line length of 256k).
  5150. # Instead, let's just punt: use the minimum linelength reported by
  5151. # all of the supported platforms: 8192 (on NT/2K/XP).
  5152. lt_cv_sys_max_cmd_len=8192;
  5153. ;;
  5154. mint*)
  5155. # On MiNT this can take a long time and run out of memory.
  5156. lt_cv_sys_max_cmd_len=8192;
  5157. ;;
  5158. amigaos*)
  5159. # On AmigaOS with pdksh, this test takes hours, literally.
  5160. # So we just punt and use a minimum line length of 8192.
  5161. lt_cv_sys_max_cmd_len=8192;
  5162. ;;
  5163. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5164. # This has been around since 386BSD, at least. Likely further.
  5165. if test -x /sbin/sysctl; then
  5166. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5167. elif test -x /usr/sbin/sysctl; then
  5168. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5169. else
  5170. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5171. fi
  5172. # And add a safety zone
  5173. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5174. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5175. ;;
  5176. interix*)
  5177. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5178. lt_cv_sys_max_cmd_len=196608
  5179. ;;
  5180. os2*)
  5181. # The test takes a long time on OS/2.
  5182. lt_cv_sys_max_cmd_len=8192
  5183. ;;
  5184. osf*)
  5185. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5186. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5187. # nice to cause kernel panics so lets avoid the loop below.
  5188. # First set a reasonable default.
  5189. lt_cv_sys_max_cmd_len=16384
  5190. #
  5191. if test -x /sbin/sysconfig; then
  5192. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5193. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5194. esac
  5195. fi
  5196. ;;
  5197. sco3.2v5*)
  5198. lt_cv_sys_max_cmd_len=102400
  5199. ;;
  5200. sysv5* | sco5v6* | sysv4.2uw2*)
  5201. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5202. if test -n "$kargmax"; then
  5203. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5204. else
  5205. lt_cv_sys_max_cmd_len=32768
  5206. fi
  5207. ;;
  5208. *)
  5209. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5210. if test -n "$lt_cv_sys_max_cmd_len" && \
  5211. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5212. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5213. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5214. else
  5215. # Make teststring a little bigger before we do anything with it.
  5216. # a 1K string should be a reasonable start.
  5217. for i in 1 2 3 4 5 6 7 8 ; do
  5218. teststring=$teststring$teststring
  5219. done
  5220. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5221. # If test is not a shell built-in, we'll probably end up computing a
  5222. # maximum length that is only half of the actual maximum length, but
  5223. # we can't tell.
  5224. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5225. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5226. test $i != 17 # 1/2 MB should be enough
  5227. do
  5228. i=`expr $i + 1`
  5229. teststring=$teststring$teststring
  5230. done
  5231. # Only check the string length outside the loop.
  5232. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5233. teststring=
  5234. # Add a significant safety factor because C++ compilers can tack on
  5235. # massive amounts of additional arguments before passing them to the
  5236. # linker. It appears as though 1/2 is a usable value.
  5237. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5238. fi
  5239. ;;
  5240. esac
  5241. fi
  5242. if test -n $lt_cv_sys_max_cmd_len ; then
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5244. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5245. else
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5247. $as_echo "none" >&6; }
  5248. fi
  5249. max_cmd_len=$lt_cv_sys_max_cmd_len
  5250. : ${CP="cp -f"}
  5251. : ${MV="mv -f"}
  5252. : ${RM="rm -f"}
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5254. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5255. # Try some XSI features
  5256. xsi_shell=no
  5257. ( _lt_dummy="a/b/c"
  5258. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5259. = c,a/b,b/c, \
  5260. && eval 'test $(( 1 + 1 )) -eq 2 \
  5261. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5262. && xsi_shell=yes
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5264. $as_echo "$xsi_shell" >&6; }
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5266. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5267. lt_shell_append=no
  5268. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5269. >/dev/null 2>&1 \
  5270. && lt_shell_append=yes
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5272. $as_echo "$lt_shell_append" >&6; }
  5273. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5274. lt_unset=unset
  5275. else
  5276. lt_unset=false
  5277. fi
  5278. # test EBCDIC or ASCII
  5279. case `echo X|tr X '\101'` in
  5280. A) # ASCII based system
  5281. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5282. lt_SP2NL='tr \040 \012'
  5283. lt_NL2SP='tr \015\012 \040\040'
  5284. ;;
  5285. *) # EBCDIC based system
  5286. lt_SP2NL='tr \100 \n'
  5287. lt_NL2SP='tr \r\n \100\100'
  5288. ;;
  5289. esac
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5291. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5292. if ${lt_cv_to_host_file_cmd+:} false; then :
  5293. $as_echo_n "(cached) " >&6
  5294. else
  5295. case $host in
  5296. *-*-mingw* )
  5297. case $build in
  5298. *-*-mingw* ) # actually msys
  5299. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5300. ;;
  5301. *-*-cygwin* )
  5302. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5303. ;;
  5304. * ) # otherwise, assume *nix
  5305. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5306. ;;
  5307. esac
  5308. ;;
  5309. *-*-cygwin* )
  5310. case $build in
  5311. *-*-mingw* ) # actually msys
  5312. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5313. ;;
  5314. *-*-cygwin* )
  5315. lt_cv_to_host_file_cmd=func_convert_file_noop
  5316. ;;
  5317. * ) # otherwise, assume *nix
  5318. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5319. ;;
  5320. esac
  5321. ;;
  5322. * ) # unhandled hosts (and "normal" native builds)
  5323. lt_cv_to_host_file_cmd=func_convert_file_noop
  5324. ;;
  5325. esac
  5326. fi
  5327. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5329. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5331. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5332. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. #assume ordinary cross tools, or native build.
  5336. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5337. case $host in
  5338. *-*-mingw* )
  5339. case $build in
  5340. *-*-mingw* ) # actually msys
  5341. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5342. ;;
  5343. esac
  5344. ;;
  5345. esac
  5346. fi
  5347. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5349. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5351. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5352. if ${lt_cv_ld_reload_flag+:} false; then :
  5353. $as_echo_n "(cached) " >&6
  5354. else
  5355. lt_cv_ld_reload_flag='-r'
  5356. fi
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5358. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5359. reload_flag=$lt_cv_ld_reload_flag
  5360. case $reload_flag in
  5361. "" | " "*) ;;
  5362. *) reload_flag=" $reload_flag" ;;
  5363. esac
  5364. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5365. case $host_os in
  5366. cygwin* | mingw* | pw32* | cegcc*)
  5367. if test "$GCC" != yes; then
  5368. reload_cmds=false
  5369. fi
  5370. ;;
  5371. darwin*)
  5372. if test "$GCC" = yes; then
  5373. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5374. else
  5375. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5376. fi
  5377. ;;
  5378. esac
  5379. if test -n "$ac_tool_prefix"; then
  5380. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5381. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5383. $as_echo_n "checking for $ac_word... " >&6; }
  5384. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. if test -n "$OBJDUMP"; then
  5388. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. test -z "$as_dir" && as_dir=.
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5397. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404. fi
  5405. fi
  5406. OBJDUMP=$ac_cv_prog_OBJDUMP
  5407. if test -n "$OBJDUMP"; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5409. $as_echo "$OBJDUMP" >&6; }
  5410. else
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. $as_echo "no" >&6; }
  5413. fi
  5414. fi
  5415. if test -z "$ac_cv_prog_OBJDUMP"; then
  5416. ac_ct_OBJDUMP=$OBJDUMP
  5417. # Extract the first word of "objdump", so it can be a program name with args.
  5418. set dummy objdump; ac_word=$2
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5420. $as_echo_n "checking for $ac_word... " >&6; }
  5421. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. if test -n "$ac_ct_OBJDUMP"; then
  5425. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5426. else
  5427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5428. for as_dir in $PATH
  5429. do
  5430. IFS=$as_save_IFS
  5431. test -z "$as_dir" && as_dir=.
  5432. for ac_exec_ext in '' $ac_executable_extensions; do
  5433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5434. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5436. break 2
  5437. fi
  5438. done
  5439. done
  5440. IFS=$as_save_IFS
  5441. fi
  5442. fi
  5443. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5444. if test -n "$ac_ct_OBJDUMP"; then
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5446. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5447. else
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5449. $as_echo "no" >&6; }
  5450. fi
  5451. if test "x$ac_ct_OBJDUMP" = x; then
  5452. OBJDUMP="false"
  5453. else
  5454. case $cross_compiling:$ac_tool_warned in
  5455. yes:)
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5458. ac_tool_warned=yes ;;
  5459. esac
  5460. OBJDUMP=$ac_ct_OBJDUMP
  5461. fi
  5462. else
  5463. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5464. fi
  5465. test -z "$OBJDUMP" && OBJDUMP=objdump
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5467. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5468. if ${lt_cv_deplibs_check_method+:} false; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5472. lt_cv_file_magic_test_file=
  5473. lt_cv_deplibs_check_method='unknown'
  5474. # Need to set the preceding variable on all platforms that support
  5475. # interlibrary dependencies.
  5476. # 'none' -- dependencies not supported.
  5477. # `unknown' -- same as none, but documents that we really don't know.
  5478. # 'pass_all' -- all dependencies passed with no checks.
  5479. # 'test_compile' -- check by making test program.
  5480. # 'file_magic [[regex]]' -- check by looking for files in library path
  5481. # which responds to the $file_magic_cmd with a given extended regex.
  5482. # If you have `file' or equivalent on your system and you're not sure
  5483. # whether `pass_all' will *always* work, you probably want this one.
  5484. case $host_os in
  5485. aix[4-9]*)
  5486. lt_cv_deplibs_check_method=pass_all
  5487. ;;
  5488. beos*)
  5489. lt_cv_deplibs_check_method=pass_all
  5490. ;;
  5491. bsdi[45]*)
  5492. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5493. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5494. lt_cv_file_magic_test_file=/shlib/libc.so
  5495. ;;
  5496. cygwin*)
  5497. # func_win32_libid is a shell function defined in ltmain.sh
  5498. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5499. lt_cv_file_magic_cmd='func_win32_libid'
  5500. ;;
  5501. mingw* | pw32*)
  5502. # Base MSYS/MinGW do not provide the 'file' command needed by
  5503. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5504. # unless we find 'file', for example because we are cross-compiling.
  5505. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5506. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5507. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5508. lt_cv_file_magic_cmd='func_win32_libid'
  5509. else
  5510. # Keep this pattern in sync with the one in func_win32_libid.
  5511. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5512. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5513. fi
  5514. ;;
  5515. cegcc*)
  5516. # use the weaker test based on 'objdump'. See mingw*.
  5517. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5518. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5519. ;;
  5520. darwin* | rhapsody*)
  5521. lt_cv_deplibs_check_method=pass_all
  5522. ;;
  5523. freebsd* | dragonfly*)
  5524. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5525. case $host_cpu in
  5526. i*86 )
  5527. # Not sure whether the presence of OpenBSD here was a mistake.
  5528. # Let's accept both of them until this is cleared up.
  5529. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5530. lt_cv_file_magic_cmd=/usr/bin/file
  5531. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5532. ;;
  5533. esac
  5534. else
  5535. lt_cv_deplibs_check_method=pass_all
  5536. fi
  5537. ;;
  5538. haiku*)
  5539. lt_cv_deplibs_check_method=pass_all
  5540. ;;
  5541. hpux10.20* | hpux11*)
  5542. lt_cv_file_magic_cmd=/usr/bin/file
  5543. case $host_cpu in
  5544. ia64*)
  5545. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5546. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5547. ;;
  5548. hppa*64*)
  5549. 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]'
  5550. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5551. ;;
  5552. *)
  5553. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5554. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5555. ;;
  5556. esac
  5557. ;;
  5558. interix[3-9]*)
  5559. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5560. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5561. ;;
  5562. irix5* | irix6* | nonstopux*)
  5563. case $LD in
  5564. *-32|*"-32 ") libmagic=32-bit;;
  5565. *-n32|*"-n32 ") libmagic=N32;;
  5566. *-64|*"-64 ") libmagic=64-bit;;
  5567. *) libmagic=never-match;;
  5568. esac
  5569. lt_cv_deplibs_check_method=pass_all
  5570. ;;
  5571. # This must be glibc/ELF.
  5572. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5573. lt_cv_deplibs_check_method=pass_all
  5574. ;;
  5575. netbsd* | netbsdelf*-gnu)
  5576. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5577. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5578. else
  5579. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5580. fi
  5581. ;;
  5582. newos6*)
  5583. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5584. lt_cv_file_magic_cmd=/usr/bin/file
  5585. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5586. ;;
  5587. *nto* | *qnx*)
  5588. lt_cv_deplibs_check_method=pass_all
  5589. ;;
  5590. openbsd*)
  5591. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5592. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5593. else
  5594. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5595. fi
  5596. ;;
  5597. osf3* | osf4* | osf5*)
  5598. lt_cv_deplibs_check_method=pass_all
  5599. ;;
  5600. rdos*)
  5601. lt_cv_deplibs_check_method=pass_all
  5602. ;;
  5603. solaris*)
  5604. lt_cv_deplibs_check_method=pass_all
  5605. ;;
  5606. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5607. lt_cv_deplibs_check_method=pass_all
  5608. ;;
  5609. sysv4 | sysv4.3*)
  5610. case $host_vendor in
  5611. motorola)
  5612. 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]'
  5613. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5614. ;;
  5615. ncr)
  5616. lt_cv_deplibs_check_method=pass_all
  5617. ;;
  5618. sequent)
  5619. lt_cv_file_magic_cmd='/bin/file'
  5620. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5621. ;;
  5622. sni)
  5623. lt_cv_file_magic_cmd='/bin/file'
  5624. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5625. lt_cv_file_magic_test_file=/lib/libc.so
  5626. ;;
  5627. siemens)
  5628. lt_cv_deplibs_check_method=pass_all
  5629. ;;
  5630. pc)
  5631. lt_cv_deplibs_check_method=pass_all
  5632. ;;
  5633. esac
  5634. ;;
  5635. tpf*)
  5636. lt_cv_deplibs_check_method=pass_all
  5637. ;;
  5638. esac
  5639. fi
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5641. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5642. file_magic_glob=
  5643. want_nocaseglob=no
  5644. if test "$build" = "$host"; then
  5645. case $host_os in
  5646. mingw* | pw32*)
  5647. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5648. want_nocaseglob=yes
  5649. else
  5650. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5651. fi
  5652. ;;
  5653. esac
  5654. fi
  5655. file_magic_cmd=$lt_cv_file_magic_cmd
  5656. deplibs_check_method=$lt_cv_deplibs_check_method
  5657. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5658. if test -n "$ac_tool_prefix"; then
  5659. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5660. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5662. $as_echo_n "checking for $ac_word... " >&6; }
  5663. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. if test -n "$DLLTOOL"; then
  5667. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5668. else
  5669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5670. for as_dir in $PATH
  5671. do
  5672. IFS=$as_save_IFS
  5673. test -z "$as_dir" && as_dir=.
  5674. for ac_exec_ext in '' $ac_executable_extensions; do
  5675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5676. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5678. break 2
  5679. fi
  5680. done
  5681. done
  5682. IFS=$as_save_IFS
  5683. fi
  5684. fi
  5685. DLLTOOL=$ac_cv_prog_DLLTOOL
  5686. if test -n "$DLLTOOL"; then
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5688. $as_echo "$DLLTOOL" >&6; }
  5689. else
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. fi
  5693. fi
  5694. if test -z "$ac_cv_prog_DLLTOOL"; then
  5695. ac_ct_DLLTOOL=$DLLTOOL
  5696. # Extract the first word of "dlltool", so it can be a program name with args.
  5697. set dummy dlltool; ac_word=$2
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. if test -n "$ac_ct_DLLTOOL"; then
  5704. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. test -z "$as_dir" && as_dir=.
  5711. for ac_exec_ext in '' $ac_executable_extensions; do
  5712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5713. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5715. break 2
  5716. fi
  5717. done
  5718. done
  5719. IFS=$as_save_IFS
  5720. fi
  5721. fi
  5722. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5723. if test -n "$ac_ct_DLLTOOL"; then
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5725. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5726. else
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5728. $as_echo "no" >&6; }
  5729. fi
  5730. if test "x$ac_ct_DLLTOOL" = x; then
  5731. DLLTOOL="false"
  5732. else
  5733. case $cross_compiling:$ac_tool_warned in
  5734. yes:)
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5737. ac_tool_warned=yes ;;
  5738. esac
  5739. DLLTOOL=$ac_ct_DLLTOOL
  5740. fi
  5741. else
  5742. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5743. fi
  5744. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5746. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5747. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5751. case $host_os in
  5752. cygwin* | mingw* | pw32* | cegcc*)
  5753. # two different shell functions defined in ltmain.sh
  5754. # decide which to use based on capabilities of $DLLTOOL
  5755. case `$DLLTOOL --help 2>&1` in
  5756. *--identify-strict*)
  5757. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5758. ;;
  5759. *)
  5760. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5761. ;;
  5762. esac
  5763. ;;
  5764. *)
  5765. # fallback: assume linklib IS sharedlib
  5766. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5767. ;;
  5768. esac
  5769. fi
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5771. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5772. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5773. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5774. if test -n "$ac_tool_prefix"; then
  5775. for ac_prog in ar
  5776. do
  5777. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5778. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if ${ac_cv_prog_AR+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$AR"; then
  5785. ac_cv_prog_AR="$AR" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5794. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. AR=$ac_cv_prog_AR
  5804. if test -n "$AR"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5806. $as_echo "$AR" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. test -n "$AR" && break
  5812. done
  5813. fi
  5814. if test -z "$AR"; then
  5815. ac_ct_AR=$AR
  5816. for ac_prog in ar
  5817. do
  5818. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5819. set dummy $ac_prog; ac_word=$2
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$ac_ct_AR"; then
  5826. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_ac_ct_AR="$ac_prog"
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5845. if test -n "$ac_ct_AR"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5847. $as_echo "$ac_ct_AR" >&6; }
  5848. else
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. test -n "$ac_ct_AR" && break
  5853. done
  5854. if test "x$ac_ct_AR" = x; then
  5855. AR="false"
  5856. else
  5857. case $cross_compiling:$ac_tool_warned in
  5858. yes:)
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5860. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5861. ac_tool_warned=yes ;;
  5862. esac
  5863. AR=$ac_ct_AR
  5864. fi
  5865. fi
  5866. : ${AR=ar}
  5867. : ${AR_FLAGS=cru}
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5869. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5870. if ${lt_cv_ar_at_file+:} false; then :
  5871. $as_echo_n "(cached) " >&6
  5872. else
  5873. lt_cv_ar_at_file=no
  5874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5875. /* end confdefs.h. */
  5876. int
  5877. main ()
  5878. {
  5879. ;
  5880. return 0;
  5881. }
  5882. _ACEOF
  5883. if ac_fn_c_try_compile "$LINENO"; then :
  5884. echo conftest.$ac_objext > conftest.lst
  5885. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5886. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5887. (eval $lt_ar_try) 2>&5
  5888. ac_status=$?
  5889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5890. test $ac_status = 0; }
  5891. if test "$ac_status" -eq 0; then
  5892. # Ensure the archiver fails upon bogus file names.
  5893. rm -f conftest.$ac_objext libconftest.a
  5894. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5895. (eval $lt_ar_try) 2>&5
  5896. ac_status=$?
  5897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5898. test $ac_status = 0; }
  5899. if test "$ac_status" -ne 0; then
  5900. lt_cv_ar_at_file=@
  5901. fi
  5902. fi
  5903. rm -f conftest.* libconftest.a
  5904. fi
  5905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5906. fi
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5908. $as_echo "$lt_cv_ar_at_file" >&6; }
  5909. if test "x$lt_cv_ar_at_file" = xno; then
  5910. archiver_list_spec=
  5911. else
  5912. archiver_list_spec=$lt_cv_ar_at_file
  5913. fi
  5914. if test -n "$ac_tool_prefix"; then
  5915. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5916. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5918. $as_echo_n "checking for $ac_word... " >&6; }
  5919. if ${ac_cv_prog_STRIP+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. if test -n "$STRIP"; then
  5923. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5924. else
  5925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5926. for as_dir in $PATH
  5927. do
  5928. IFS=$as_save_IFS
  5929. test -z "$as_dir" && as_dir=.
  5930. for ac_exec_ext in '' $ac_executable_extensions; do
  5931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5932. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5934. break 2
  5935. fi
  5936. done
  5937. done
  5938. IFS=$as_save_IFS
  5939. fi
  5940. fi
  5941. STRIP=$ac_cv_prog_STRIP
  5942. if test -n "$STRIP"; then
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5944. $as_echo "$STRIP" >&6; }
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. $as_echo "no" >&6; }
  5948. fi
  5949. fi
  5950. if test -z "$ac_cv_prog_STRIP"; then
  5951. ac_ct_STRIP=$STRIP
  5952. # Extract the first word of "strip", so it can be a program name with args.
  5953. set dummy strip; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$ac_ct_STRIP"; then
  5960. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_ac_ct_STRIP="strip"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5979. if test -n "$ac_ct_STRIP"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5981. $as_echo "$ac_ct_STRIP" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. if test "x$ac_ct_STRIP" = x; then
  5987. STRIP=":"
  5988. else
  5989. case $cross_compiling:$ac_tool_warned in
  5990. yes:)
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5993. ac_tool_warned=yes ;;
  5994. esac
  5995. STRIP=$ac_ct_STRIP
  5996. fi
  5997. else
  5998. STRIP="$ac_cv_prog_STRIP"
  5999. fi
  6000. test -z "$STRIP" && STRIP=:
  6001. if test -n "$ac_tool_prefix"; then
  6002. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6003. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6005. $as_echo_n "checking for $ac_word... " >&6; }
  6006. if ${ac_cv_prog_RANLIB+:} false; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. if test -n "$RANLIB"; then
  6010. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6011. else
  6012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6013. for as_dir in $PATH
  6014. do
  6015. IFS=$as_save_IFS
  6016. test -z "$as_dir" && as_dir=.
  6017. for ac_exec_ext in '' $ac_executable_extensions; do
  6018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6019. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6021. break 2
  6022. fi
  6023. done
  6024. done
  6025. IFS=$as_save_IFS
  6026. fi
  6027. fi
  6028. RANLIB=$ac_cv_prog_RANLIB
  6029. if test -n "$RANLIB"; then
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6031. $as_echo "$RANLIB" >&6; }
  6032. else
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. fi
  6037. if test -z "$ac_cv_prog_RANLIB"; then
  6038. ac_ct_RANLIB=$RANLIB
  6039. # Extract the first word of "ranlib", so it can be a program name with args.
  6040. set dummy ranlib; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$ac_ct_RANLIB"; then
  6047. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6066. if test -n "$ac_ct_RANLIB"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6068. $as_echo "$ac_ct_RANLIB" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. if test "x$ac_ct_RANLIB" = x; then
  6074. RANLIB=":"
  6075. else
  6076. case $cross_compiling:$ac_tool_warned in
  6077. yes:)
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6080. ac_tool_warned=yes ;;
  6081. esac
  6082. RANLIB=$ac_ct_RANLIB
  6083. fi
  6084. else
  6085. RANLIB="$ac_cv_prog_RANLIB"
  6086. fi
  6087. test -z "$RANLIB" && RANLIB=:
  6088. # Determine commands to create old-style static archives.
  6089. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6090. old_postinstall_cmds='chmod 644 $oldlib'
  6091. old_postuninstall_cmds=
  6092. if test -n "$RANLIB"; then
  6093. case $host_os in
  6094. openbsd*)
  6095. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6096. ;;
  6097. *)
  6098. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6099. ;;
  6100. esac
  6101. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6102. fi
  6103. case $host_os in
  6104. darwin*)
  6105. lock_old_archive_extraction=yes ;;
  6106. *)
  6107. lock_old_archive_extraction=no ;;
  6108. esac
  6109. # If no C compiler was specified, use CC.
  6110. LTCC=${LTCC-"$CC"}
  6111. # If no C compiler flags were specified, use CFLAGS.
  6112. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6113. # Allow CC to be a program name with arguments.
  6114. compiler=$CC
  6115. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6117. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6118. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6119. $as_echo_n "(cached) " >&6
  6120. else
  6121. # These are sane defaults that work on at least a few old systems.
  6122. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6123. # Character class describing NM global symbol codes.
  6124. symcode='[BCDEGRST]'
  6125. # Regexp to match symbols that can be accessed directly from C.
  6126. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6127. # Define system-specific variables.
  6128. case $host_os in
  6129. aix*)
  6130. symcode='[BCDT]'
  6131. ;;
  6132. cygwin* | mingw* | pw32* | cegcc*)
  6133. symcode='[ABCDGISTW]'
  6134. ;;
  6135. hpux*)
  6136. if test "$host_cpu" = ia64; then
  6137. symcode='[ABCDEGRST]'
  6138. fi
  6139. ;;
  6140. irix* | nonstopux*)
  6141. symcode='[BCDEGRST]'
  6142. ;;
  6143. osf*)
  6144. symcode='[BCDEGQRST]'
  6145. ;;
  6146. solaris*)
  6147. symcode='[BDRT]'
  6148. ;;
  6149. sco3.2v5*)
  6150. symcode='[DT]'
  6151. ;;
  6152. sysv4.2uw2*)
  6153. symcode='[DT]'
  6154. ;;
  6155. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6156. symcode='[ABDT]'
  6157. ;;
  6158. sysv4)
  6159. symcode='[DFNSTU]'
  6160. ;;
  6161. esac
  6162. # If we're using GNU nm, then use its standard symbol codes.
  6163. case `$NM -V 2>&1` in
  6164. *GNU* | *'with BFD'*)
  6165. symcode='[ABCDGIRSTW]' ;;
  6166. esac
  6167. # Transform an extracted symbol line into a proper C declaration.
  6168. # Some systems (esp. on ia64) link data and code symbols differently,
  6169. # so use this general approach.
  6170. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6171. # Transform an extracted symbol line into symbol name and symbol address
  6172. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6173. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6174. # Handle CRLF in mingw tool chain
  6175. opt_cr=
  6176. case $build_os in
  6177. mingw*)
  6178. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6179. ;;
  6180. esac
  6181. # Try without a prefix underscore, then with it.
  6182. for ac_symprfx in "" "_"; do
  6183. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6184. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6185. # Write the raw and C identifiers.
  6186. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6187. # Fake it for dumpbin and say T for any non-static function
  6188. # and D for any global variable.
  6189. # Also find C++ and __fastcall symbols from MSVC++,
  6190. # which start with @ or ?.
  6191. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6192. " {last_section=section; section=\$ 3};"\
  6193. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6194. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6195. " \$ 0!~/External *\|/{next};"\
  6196. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6197. " {if(hide[section]) next};"\
  6198. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6199. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6200. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6201. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6202. " ' prfx=^$ac_symprfx"
  6203. else
  6204. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6205. fi
  6206. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6207. # Check to see that the pipe works correctly.
  6208. pipe_works=no
  6209. rm -f conftest*
  6210. cat > conftest.$ac_ext <<_LT_EOF
  6211. #ifdef __cplusplus
  6212. extern "C" {
  6213. #endif
  6214. char nm_test_var;
  6215. void nm_test_func(void);
  6216. void nm_test_func(void){}
  6217. #ifdef __cplusplus
  6218. }
  6219. #endif
  6220. int main(){nm_test_var='a';nm_test_func();return(0);}
  6221. _LT_EOF
  6222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6223. (eval $ac_compile) 2>&5
  6224. ac_status=$?
  6225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6226. test $ac_status = 0; }; then
  6227. # Now try to grab the symbols.
  6228. nlist=conftest.nm
  6229. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6230. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6231. ac_status=$?
  6232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6233. test $ac_status = 0; } && test -s "$nlist"; then
  6234. # Try sorting and uniquifying the output.
  6235. if sort "$nlist" | uniq > "$nlist"T; then
  6236. mv -f "$nlist"T "$nlist"
  6237. else
  6238. rm -f "$nlist"T
  6239. fi
  6240. # Make sure that we snagged all the symbols we need.
  6241. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6242. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6243. cat <<_LT_EOF > conftest.$ac_ext
  6244. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6245. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6246. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6247. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6248. # define LT_DLSYM_CONST
  6249. #elif defined(__osf__)
  6250. /* This system does not cope well with relocations in const data. */
  6251. # define LT_DLSYM_CONST
  6252. #else
  6253. # define LT_DLSYM_CONST const
  6254. #endif
  6255. #ifdef __cplusplus
  6256. extern "C" {
  6257. #endif
  6258. _LT_EOF
  6259. # Now generate the symbol file.
  6260. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6261. cat <<_LT_EOF >> conftest.$ac_ext
  6262. /* The mapping between symbol names and symbols. */
  6263. LT_DLSYM_CONST struct {
  6264. const char *name;
  6265. void *address;
  6266. }
  6267. lt__PROGRAM__LTX_preloaded_symbols[] =
  6268. {
  6269. { "@PROGRAM@", (void *) 0 },
  6270. _LT_EOF
  6271. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6272. cat <<\_LT_EOF >> conftest.$ac_ext
  6273. {0, (void *) 0}
  6274. };
  6275. /* This works around a problem in FreeBSD linker */
  6276. #ifdef FREEBSD_WORKAROUND
  6277. static const void *lt_preloaded_setup() {
  6278. return lt__PROGRAM__LTX_preloaded_symbols;
  6279. }
  6280. #endif
  6281. #ifdef __cplusplus
  6282. }
  6283. #endif
  6284. _LT_EOF
  6285. # Now try linking the two files.
  6286. mv conftest.$ac_objext conftstm.$ac_objext
  6287. lt_globsym_save_LIBS=$LIBS
  6288. lt_globsym_save_CFLAGS=$CFLAGS
  6289. LIBS="conftstm.$ac_objext"
  6290. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6292. (eval $ac_link) 2>&5
  6293. ac_status=$?
  6294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6295. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6296. pipe_works=yes
  6297. fi
  6298. LIBS=$lt_globsym_save_LIBS
  6299. CFLAGS=$lt_globsym_save_CFLAGS
  6300. else
  6301. echo "cannot find nm_test_func in $nlist" >&5
  6302. fi
  6303. else
  6304. echo "cannot find nm_test_var in $nlist" >&5
  6305. fi
  6306. else
  6307. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6308. fi
  6309. else
  6310. echo "$progname: failed program was:" >&5
  6311. cat conftest.$ac_ext >&5
  6312. fi
  6313. rm -rf conftest* conftst*
  6314. # Do not use the global_symbol_pipe unless it works.
  6315. if test "$pipe_works" = yes; then
  6316. break
  6317. else
  6318. lt_cv_sys_global_symbol_pipe=
  6319. fi
  6320. done
  6321. fi
  6322. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6323. lt_cv_sys_global_symbol_to_cdecl=
  6324. fi
  6325. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6327. $as_echo "failed" >&6; }
  6328. else
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6330. $as_echo "ok" >&6; }
  6331. fi
  6332. # Response file support.
  6333. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6334. nm_file_list_spec='@'
  6335. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6336. nm_file_list_spec='@'
  6337. fi
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6339. $as_echo_n "checking for sysroot... " >&6; }
  6340. # Check whether --with-sysroot was given.
  6341. if test "${with_sysroot+set}" = set; then :
  6342. withval=$with_sysroot;
  6343. else
  6344. with_sysroot=no
  6345. fi
  6346. lt_sysroot=
  6347. case ${with_sysroot} in #(
  6348. yes)
  6349. if test "$GCC" = yes; then
  6350. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6351. fi
  6352. ;; #(
  6353. /*)
  6354. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6355. ;; #(
  6356. no|'')
  6357. ;; #(
  6358. *)
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6360. $as_echo "${with_sysroot}" >&6; }
  6361. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6362. ;;
  6363. esac
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6365. $as_echo "${lt_sysroot:-no}" >&6; }
  6366. # Check whether --enable-libtool-lock was given.
  6367. if test "${enable_libtool_lock+set}" = set; then :
  6368. enableval=$enable_libtool_lock;
  6369. fi
  6370. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6371. # Some flags need to be propagated to the compiler or linker for good
  6372. # libtool support.
  6373. case $host in
  6374. ia64-*-hpux*)
  6375. # Find out which ABI we are using.
  6376. echo 'int i;' > conftest.$ac_ext
  6377. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6378. (eval $ac_compile) 2>&5
  6379. ac_status=$?
  6380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6381. test $ac_status = 0; }; then
  6382. case `/usr/bin/file conftest.$ac_objext` in
  6383. *ELF-32*)
  6384. HPUX_IA64_MODE="32"
  6385. ;;
  6386. *ELF-64*)
  6387. HPUX_IA64_MODE="64"
  6388. ;;
  6389. esac
  6390. fi
  6391. rm -rf conftest*
  6392. ;;
  6393. *-*-irix6*)
  6394. # Find out which ABI we are using.
  6395. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6396. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6397. (eval $ac_compile) 2>&5
  6398. ac_status=$?
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6400. test $ac_status = 0; }; then
  6401. if test "$lt_cv_prog_gnu_ld" = yes; then
  6402. case `/usr/bin/file conftest.$ac_objext` in
  6403. *32-bit*)
  6404. LD="${LD-ld} -melf32bsmip"
  6405. ;;
  6406. *N32*)
  6407. LD="${LD-ld} -melf32bmipn32"
  6408. ;;
  6409. *64-bit*)
  6410. LD="${LD-ld} -melf64bmip"
  6411. ;;
  6412. esac
  6413. else
  6414. case `/usr/bin/file conftest.$ac_objext` in
  6415. *32-bit*)
  6416. LD="${LD-ld} -32"
  6417. ;;
  6418. *N32*)
  6419. LD="${LD-ld} -n32"
  6420. ;;
  6421. *64-bit*)
  6422. LD="${LD-ld} -64"
  6423. ;;
  6424. esac
  6425. fi
  6426. fi
  6427. rm -rf conftest*
  6428. ;;
  6429. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6430. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6431. # Find out which ABI we are using.
  6432. echo 'int i;' > conftest.$ac_ext
  6433. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6434. (eval $ac_compile) 2>&5
  6435. ac_status=$?
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6437. test $ac_status = 0; }; then
  6438. case `/usr/bin/file conftest.o` in
  6439. *32-bit*)
  6440. case $host in
  6441. x86_64-*kfreebsd*-gnu)
  6442. LD="${LD-ld} -m elf_i386_fbsd"
  6443. ;;
  6444. x86_64-*linux*)
  6445. case `/usr/bin/file conftest.o` in
  6446. *x86-64*)
  6447. LD="${LD-ld} -m elf32_x86_64"
  6448. ;;
  6449. *)
  6450. LD="${LD-ld} -m elf_i386"
  6451. ;;
  6452. esac
  6453. ;;
  6454. powerpc64le-*)
  6455. LD="${LD-ld} -m elf32lppclinux"
  6456. ;;
  6457. powerpc64-*)
  6458. LD="${LD-ld} -m elf32ppclinux"
  6459. ;;
  6460. s390x-*linux*)
  6461. LD="${LD-ld} -m elf_s390"
  6462. ;;
  6463. sparc64-*linux*)
  6464. LD="${LD-ld} -m elf32_sparc"
  6465. ;;
  6466. esac
  6467. ;;
  6468. *64-bit*)
  6469. case $host in
  6470. x86_64-*kfreebsd*-gnu)
  6471. LD="${LD-ld} -m elf_x86_64_fbsd"
  6472. ;;
  6473. x86_64-*linux*)
  6474. LD="${LD-ld} -m elf_x86_64"
  6475. ;;
  6476. powerpcle-*)
  6477. LD="${LD-ld} -m elf64lppc"
  6478. ;;
  6479. powerpc-*)
  6480. LD="${LD-ld} -m elf64ppc"
  6481. ;;
  6482. s390*-*linux*|s390*-*tpf*)
  6483. LD="${LD-ld} -m elf64_s390"
  6484. ;;
  6485. sparc*-*linux*)
  6486. LD="${LD-ld} -m elf64_sparc"
  6487. ;;
  6488. esac
  6489. ;;
  6490. esac
  6491. fi
  6492. rm -rf conftest*
  6493. ;;
  6494. *-*-sco3.2v5*)
  6495. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6496. SAVE_CFLAGS="$CFLAGS"
  6497. CFLAGS="$CFLAGS -belf"
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6499. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6500. if ${lt_cv_cc_needs_belf+:} false; then :
  6501. $as_echo_n "(cached) " >&6
  6502. else
  6503. ac_ext=c
  6504. ac_cpp='$CPP $CPPFLAGS'
  6505. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6506. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6507. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6509. /* end confdefs.h. */
  6510. int
  6511. main ()
  6512. {
  6513. ;
  6514. return 0;
  6515. }
  6516. _ACEOF
  6517. if ac_fn_c_try_link "$LINENO"; then :
  6518. lt_cv_cc_needs_belf=yes
  6519. else
  6520. lt_cv_cc_needs_belf=no
  6521. fi
  6522. rm -f core conftest.err conftest.$ac_objext \
  6523. conftest$ac_exeext conftest.$ac_ext
  6524. ac_ext=c
  6525. ac_cpp='$CPP $CPPFLAGS'
  6526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6529. fi
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6531. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6532. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6533. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6534. CFLAGS="$SAVE_CFLAGS"
  6535. fi
  6536. ;;
  6537. *-*solaris*)
  6538. # Find out which ABI we are using.
  6539. echo 'int i;' > conftest.$ac_ext
  6540. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6541. (eval $ac_compile) 2>&5
  6542. ac_status=$?
  6543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6544. test $ac_status = 0; }; then
  6545. case `/usr/bin/file conftest.o` in
  6546. *64-bit*)
  6547. case $lt_cv_prog_gnu_ld in
  6548. yes*)
  6549. case $host in
  6550. i?86-*-solaris*)
  6551. LD="${LD-ld} -m elf_x86_64"
  6552. ;;
  6553. sparc*-*-solaris*)
  6554. LD="${LD-ld} -m elf64_sparc"
  6555. ;;
  6556. esac
  6557. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6558. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6559. LD="${LD-ld}_sol2"
  6560. fi
  6561. ;;
  6562. *)
  6563. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6564. LD="${LD-ld} -64"
  6565. fi
  6566. ;;
  6567. esac
  6568. ;;
  6569. esac
  6570. fi
  6571. rm -rf conftest*
  6572. ;;
  6573. esac
  6574. need_locks="$enable_libtool_lock"
  6575. if test -n "$ac_tool_prefix"; then
  6576. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6577. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6579. $as_echo_n "checking for $ac_word... " >&6; }
  6580. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6581. $as_echo_n "(cached) " >&6
  6582. else
  6583. if test -n "$MANIFEST_TOOL"; then
  6584. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6585. else
  6586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6587. for as_dir in $PATH
  6588. do
  6589. IFS=$as_save_IFS
  6590. test -z "$as_dir" && as_dir=.
  6591. for ac_exec_ext in '' $ac_executable_extensions; do
  6592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6593. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6595. break 2
  6596. fi
  6597. done
  6598. done
  6599. IFS=$as_save_IFS
  6600. fi
  6601. fi
  6602. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6603. if test -n "$MANIFEST_TOOL"; then
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6605. $as_echo "$MANIFEST_TOOL" >&6; }
  6606. else
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6608. $as_echo "no" >&6; }
  6609. fi
  6610. fi
  6611. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6612. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6613. # Extract the first word of "mt", so it can be a program name with args.
  6614. set dummy mt; ac_word=$2
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6616. $as_echo_n "checking for $ac_word... " >&6; }
  6617. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6621. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6622. else
  6623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6624. for as_dir in $PATH
  6625. do
  6626. IFS=$as_save_IFS
  6627. test -z "$as_dir" && as_dir=.
  6628. for ac_exec_ext in '' $ac_executable_extensions; do
  6629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6630. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6632. break 2
  6633. fi
  6634. done
  6635. done
  6636. IFS=$as_save_IFS
  6637. fi
  6638. fi
  6639. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6640. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6642. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6643. else
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6645. $as_echo "no" >&6; }
  6646. fi
  6647. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6648. MANIFEST_TOOL=":"
  6649. else
  6650. case $cross_compiling:$ac_tool_warned in
  6651. yes:)
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6654. ac_tool_warned=yes ;;
  6655. esac
  6656. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6657. fi
  6658. else
  6659. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6660. fi
  6661. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6663. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6664. if ${lt_cv_path_mainfest_tool+:} false; then :
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. lt_cv_path_mainfest_tool=no
  6668. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6669. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6670. cat conftest.err >&5
  6671. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6672. lt_cv_path_mainfest_tool=yes
  6673. fi
  6674. rm -f conftest*
  6675. fi
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6677. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6678. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6679. MANIFEST_TOOL=:
  6680. fi
  6681. case $host_os in
  6682. rhapsody* | darwin*)
  6683. if test -n "$ac_tool_prefix"; then
  6684. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6685. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6687. $as_echo_n "checking for $ac_word... " >&6; }
  6688. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. if test -n "$DSYMUTIL"; then
  6692. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6693. else
  6694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6695. for as_dir in $PATH
  6696. do
  6697. IFS=$as_save_IFS
  6698. test -z "$as_dir" && as_dir=.
  6699. for ac_exec_ext in '' $ac_executable_extensions; do
  6700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6701. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6703. break 2
  6704. fi
  6705. done
  6706. done
  6707. IFS=$as_save_IFS
  6708. fi
  6709. fi
  6710. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6711. if test -n "$DSYMUTIL"; then
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6713. $as_echo "$DSYMUTIL" >&6; }
  6714. else
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6716. $as_echo "no" >&6; }
  6717. fi
  6718. fi
  6719. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6720. ac_ct_DSYMUTIL=$DSYMUTIL
  6721. # Extract the first word of "dsymutil", so it can be a program name with args.
  6722. set dummy dsymutil; ac_word=$2
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6724. $as_echo_n "checking for $ac_word... " >&6; }
  6725. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6726. $as_echo_n "(cached) " >&6
  6727. else
  6728. if test -n "$ac_ct_DSYMUTIL"; then
  6729. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6730. else
  6731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6732. for as_dir in $PATH
  6733. do
  6734. IFS=$as_save_IFS
  6735. test -z "$as_dir" && as_dir=.
  6736. for ac_exec_ext in '' $ac_executable_extensions; do
  6737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6738. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6740. break 2
  6741. fi
  6742. done
  6743. done
  6744. IFS=$as_save_IFS
  6745. fi
  6746. fi
  6747. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6748. if test -n "$ac_ct_DSYMUTIL"; then
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6750. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6751. else
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6753. $as_echo "no" >&6; }
  6754. fi
  6755. if test "x$ac_ct_DSYMUTIL" = x; then
  6756. DSYMUTIL=":"
  6757. else
  6758. case $cross_compiling:$ac_tool_warned in
  6759. yes:)
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6761. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6762. ac_tool_warned=yes ;;
  6763. esac
  6764. DSYMUTIL=$ac_ct_DSYMUTIL
  6765. fi
  6766. else
  6767. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6768. fi
  6769. if test -n "$ac_tool_prefix"; then
  6770. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6771. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6773. $as_echo_n "checking for $ac_word... " >&6; }
  6774. if ${ac_cv_prog_NMEDIT+:} false; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. if test -n "$NMEDIT"; then
  6778. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6779. else
  6780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6781. for as_dir in $PATH
  6782. do
  6783. IFS=$as_save_IFS
  6784. test -z "$as_dir" && as_dir=.
  6785. for ac_exec_ext in '' $ac_executable_extensions; do
  6786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6787. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6789. break 2
  6790. fi
  6791. done
  6792. done
  6793. IFS=$as_save_IFS
  6794. fi
  6795. fi
  6796. NMEDIT=$ac_cv_prog_NMEDIT
  6797. if test -n "$NMEDIT"; then
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6799. $as_echo "$NMEDIT" >&6; }
  6800. else
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6802. $as_echo "no" >&6; }
  6803. fi
  6804. fi
  6805. if test -z "$ac_cv_prog_NMEDIT"; then
  6806. ac_ct_NMEDIT=$NMEDIT
  6807. # Extract the first word of "nmedit", so it can be a program name with args.
  6808. set dummy nmedit; ac_word=$2
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6810. $as_echo_n "checking for $ac_word... " >&6; }
  6811. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6812. $as_echo_n "(cached) " >&6
  6813. else
  6814. if test -n "$ac_ct_NMEDIT"; then
  6815. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6816. else
  6817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6818. for as_dir in $PATH
  6819. do
  6820. IFS=$as_save_IFS
  6821. test -z "$as_dir" && as_dir=.
  6822. for ac_exec_ext in '' $ac_executable_extensions; do
  6823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6824. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6826. break 2
  6827. fi
  6828. done
  6829. done
  6830. IFS=$as_save_IFS
  6831. fi
  6832. fi
  6833. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6834. if test -n "$ac_ct_NMEDIT"; then
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6836. $as_echo "$ac_ct_NMEDIT" >&6; }
  6837. else
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6839. $as_echo "no" >&6; }
  6840. fi
  6841. if test "x$ac_ct_NMEDIT" = x; then
  6842. NMEDIT=":"
  6843. else
  6844. case $cross_compiling:$ac_tool_warned in
  6845. yes:)
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6847. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6848. ac_tool_warned=yes ;;
  6849. esac
  6850. NMEDIT=$ac_ct_NMEDIT
  6851. fi
  6852. else
  6853. NMEDIT="$ac_cv_prog_NMEDIT"
  6854. fi
  6855. if test -n "$ac_tool_prefix"; then
  6856. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6857. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6859. $as_echo_n "checking for $ac_word... " >&6; }
  6860. if ${ac_cv_prog_LIPO+:} false; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. if test -n "$LIPO"; then
  6864. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6865. else
  6866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6867. for as_dir in $PATH
  6868. do
  6869. IFS=$as_save_IFS
  6870. test -z "$as_dir" && as_dir=.
  6871. for ac_exec_ext in '' $ac_executable_extensions; do
  6872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6873. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6875. break 2
  6876. fi
  6877. done
  6878. done
  6879. IFS=$as_save_IFS
  6880. fi
  6881. fi
  6882. LIPO=$ac_cv_prog_LIPO
  6883. if test -n "$LIPO"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6885. $as_echo "$LIPO" >&6; }
  6886. else
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. $as_echo "no" >&6; }
  6889. fi
  6890. fi
  6891. if test -z "$ac_cv_prog_LIPO"; then
  6892. ac_ct_LIPO=$LIPO
  6893. # Extract the first word of "lipo", so it can be a program name with args.
  6894. set dummy lipo; ac_word=$2
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6896. $as_echo_n "checking for $ac_word... " >&6; }
  6897. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6898. $as_echo_n "(cached) " >&6
  6899. else
  6900. if test -n "$ac_ct_LIPO"; then
  6901. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6902. else
  6903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6904. for as_dir in $PATH
  6905. do
  6906. IFS=$as_save_IFS
  6907. test -z "$as_dir" && as_dir=.
  6908. for ac_exec_ext in '' $ac_executable_extensions; do
  6909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6910. ac_cv_prog_ac_ct_LIPO="lipo"
  6911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6912. break 2
  6913. fi
  6914. done
  6915. done
  6916. IFS=$as_save_IFS
  6917. fi
  6918. fi
  6919. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6920. if test -n "$ac_ct_LIPO"; then
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6922. $as_echo "$ac_ct_LIPO" >&6; }
  6923. else
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6925. $as_echo "no" >&6; }
  6926. fi
  6927. if test "x$ac_ct_LIPO" = x; then
  6928. LIPO=":"
  6929. else
  6930. case $cross_compiling:$ac_tool_warned in
  6931. yes:)
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6933. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6934. ac_tool_warned=yes ;;
  6935. esac
  6936. LIPO=$ac_ct_LIPO
  6937. fi
  6938. else
  6939. LIPO="$ac_cv_prog_LIPO"
  6940. fi
  6941. if test -n "$ac_tool_prefix"; then
  6942. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6943. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6945. $as_echo_n "checking for $ac_word... " >&6; }
  6946. if ${ac_cv_prog_OTOOL+:} false; then :
  6947. $as_echo_n "(cached) " >&6
  6948. else
  6949. if test -n "$OTOOL"; then
  6950. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6951. else
  6952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6953. for as_dir in $PATH
  6954. do
  6955. IFS=$as_save_IFS
  6956. test -z "$as_dir" && as_dir=.
  6957. for ac_exec_ext in '' $ac_executable_extensions; do
  6958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6959. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6961. break 2
  6962. fi
  6963. done
  6964. done
  6965. IFS=$as_save_IFS
  6966. fi
  6967. fi
  6968. OTOOL=$ac_cv_prog_OTOOL
  6969. if test -n "$OTOOL"; then
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6971. $as_echo "$OTOOL" >&6; }
  6972. else
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6974. $as_echo "no" >&6; }
  6975. fi
  6976. fi
  6977. if test -z "$ac_cv_prog_OTOOL"; then
  6978. ac_ct_OTOOL=$OTOOL
  6979. # Extract the first word of "otool", so it can be a program name with args.
  6980. set dummy otool; ac_word=$2
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6982. $as_echo_n "checking for $ac_word... " >&6; }
  6983. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6984. $as_echo_n "(cached) " >&6
  6985. else
  6986. if test -n "$ac_ct_OTOOL"; then
  6987. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6988. else
  6989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6990. for as_dir in $PATH
  6991. do
  6992. IFS=$as_save_IFS
  6993. test -z "$as_dir" && as_dir=.
  6994. for ac_exec_ext in '' $ac_executable_extensions; do
  6995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6996. ac_cv_prog_ac_ct_OTOOL="otool"
  6997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6998. break 2
  6999. fi
  7000. done
  7001. done
  7002. IFS=$as_save_IFS
  7003. fi
  7004. fi
  7005. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7006. if test -n "$ac_ct_OTOOL"; then
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7008. $as_echo "$ac_ct_OTOOL" >&6; }
  7009. else
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7011. $as_echo "no" >&6; }
  7012. fi
  7013. if test "x$ac_ct_OTOOL" = x; then
  7014. OTOOL=":"
  7015. else
  7016. case $cross_compiling:$ac_tool_warned in
  7017. yes:)
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7020. ac_tool_warned=yes ;;
  7021. esac
  7022. OTOOL=$ac_ct_OTOOL
  7023. fi
  7024. else
  7025. OTOOL="$ac_cv_prog_OTOOL"
  7026. fi
  7027. if test -n "$ac_tool_prefix"; then
  7028. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7029. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7031. $as_echo_n "checking for $ac_word... " >&6; }
  7032. if ${ac_cv_prog_OTOOL64+:} false; then :
  7033. $as_echo_n "(cached) " >&6
  7034. else
  7035. if test -n "$OTOOL64"; then
  7036. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7037. else
  7038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7039. for as_dir in $PATH
  7040. do
  7041. IFS=$as_save_IFS
  7042. test -z "$as_dir" && as_dir=.
  7043. for ac_exec_ext in '' $ac_executable_extensions; do
  7044. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7045. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7047. break 2
  7048. fi
  7049. done
  7050. done
  7051. IFS=$as_save_IFS
  7052. fi
  7053. fi
  7054. OTOOL64=$ac_cv_prog_OTOOL64
  7055. if test -n "$OTOOL64"; then
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7057. $as_echo "$OTOOL64" >&6; }
  7058. else
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7060. $as_echo "no" >&6; }
  7061. fi
  7062. fi
  7063. if test -z "$ac_cv_prog_OTOOL64"; then
  7064. ac_ct_OTOOL64=$OTOOL64
  7065. # Extract the first word of "otool64", so it can be a program name with args.
  7066. set dummy otool64; ac_word=$2
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7068. $as_echo_n "checking for $ac_word... " >&6; }
  7069. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. if test -n "$ac_ct_OTOOL64"; then
  7073. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7074. else
  7075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7076. for as_dir in $PATH
  7077. do
  7078. IFS=$as_save_IFS
  7079. test -z "$as_dir" && as_dir=.
  7080. for ac_exec_ext in '' $ac_executable_extensions; do
  7081. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7082. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7084. break 2
  7085. fi
  7086. done
  7087. done
  7088. IFS=$as_save_IFS
  7089. fi
  7090. fi
  7091. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7092. if test -n "$ac_ct_OTOOL64"; then
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7094. $as_echo "$ac_ct_OTOOL64" >&6; }
  7095. else
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7097. $as_echo "no" >&6; }
  7098. fi
  7099. if test "x$ac_ct_OTOOL64" = x; then
  7100. OTOOL64=":"
  7101. else
  7102. case $cross_compiling:$ac_tool_warned in
  7103. yes:)
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7105. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7106. ac_tool_warned=yes ;;
  7107. esac
  7108. OTOOL64=$ac_ct_OTOOL64
  7109. fi
  7110. else
  7111. OTOOL64="$ac_cv_prog_OTOOL64"
  7112. fi
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7114. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7115. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7116. $as_echo_n "(cached) " >&6
  7117. else
  7118. lt_cv_apple_cc_single_mod=no
  7119. if test -z "${LT_MULTI_MODULE}"; then
  7120. # By default we will add the -single_module flag. You can override
  7121. # by either setting the environment variable LT_MULTI_MODULE
  7122. # non-empty at configure time, or by adding -multi_module to the
  7123. # link flags.
  7124. rm -rf libconftest.dylib*
  7125. echo "int foo(void){return 1;}" > conftest.c
  7126. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7127. -dynamiclib -Wl,-single_module conftest.c" >&5
  7128. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7129. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7130. _lt_result=$?
  7131. # If there is a non-empty error log, and "single_module"
  7132. # appears in it, assume the flag caused a linker warning
  7133. if test -s conftest.err && $GREP single_module conftest.err; then
  7134. cat conftest.err >&5
  7135. # Otherwise, if the output was created with a 0 exit code from
  7136. # the compiler, it worked.
  7137. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7138. lt_cv_apple_cc_single_mod=yes
  7139. else
  7140. cat conftest.err >&5
  7141. fi
  7142. rm -rf libconftest.dylib*
  7143. rm -f conftest.*
  7144. fi
  7145. fi
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7147. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7149. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7150. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7151. $as_echo_n "(cached) " >&6
  7152. else
  7153. lt_cv_ld_exported_symbols_list=no
  7154. save_LDFLAGS=$LDFLAGS
  7155. echo "_main" > conftest.sym
  7156. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7158. /* end confdefs.h. */
  7159. int
  7160. main ()
  7161. {
  7162. ;
  7163. return 0;
  7164. }
  7165. _ACEOF
  7166. if ac_fn_c_try_link "$LINENO"; then :
  7167. lt_cv_ld_exported_symbols_list=yes
  7168. else
  7169. lt_cv_ld_exported_symbols_list=no
  7170. fi
  7171. rm -f core conftest.err conftest.$ac_objext \
  7172. conftest$ac_exeext conftest.$ac_ext
  7173. LDFLAGS="$save_LDFLAGS"
  7174. fi
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7176. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7178. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7179. if ${lt_cv_ld_force_load+:} false; then :
  7180. $as_echo_n "(cached) " >&6
  7181. else
  7182. lt_cv_ld_force_load=no
  7183. cat > conftest.c << _LT_EOF
  7184. int forced_loaded() { return 2;}
  7185. _LT_EOF
  7186. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7187. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7188. echo "$AR cru libconftest.a conftest.o" >&5
  7189. $AR cru libconftest.a conftest.o 2>&5
  7190. echo "$RANLIB libconftest.a" >&5
  7191. $RANLIB libconftest.a 2>&5
  7192. cat > conftest.c << _LT_EOF
  7193. int main() { return 0;}
  7194. _LT_EOF
  7195. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7196. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7197. _lt_result=$?
  7198. if test -s conftest.err && $GREP force_load conftest.err; then
  7199. cat conftest.err >&5
  7200. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7201. lt_cv_ld_force_load=yes
  7202. else
  7203. cat conftest.err >&5
  7204. fi
  7205. rm -f conftest.err libconftest.a conftest conftest.c
  7206. rm -rf conftest.dSYM
  7207. fi
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7209. $as_echo "$lt_cv_ld_force_load" >&6; }
  7210. case $host_os in
  7211. rhapsody* | darwin1.[012])
  7212. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7213. darwin1.*)
  7214. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7215. darwin*) # darwin 5.x on
  7216. # if running on 10.5 or later, the deployment target defaults
  7217. # to the OS version, if on x86, and 10.4, the deployment
  7218. # target defaults to 10.4. Don't you love it?
  7219. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7220. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7221. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7222. 10.[012]*)
  7223. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7224. 10.*)
  7225. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7226. esac
  7227. ;;
  7228. esac
  7229. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7230. _lt_dar_single_mod='$single_module'
  7231. fi
  7232. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7233. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7234. else
  7235. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7236. fi
  7237. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7238. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7239. else
  7240. _lt_dsymutil=
  7241. fi
  7242. ;;
  7243. esac
  7244. for ac_header in dlfcn.h
  7245. do :
  7246. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7247. "
  7248. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7249. cat >>confdefs.h <<_ACEOF
  7250. #define HAVE_DLFCN_H 1
  7251. _ACEOF
  7252. fi
  7253. done
  7254. # Set options
  7255. enable_dlopen=no
  7256. enable_win32_dll=no
  7257. # Check whether --enable-shared was given.
  7258. if test "${enable_shared+set}" = set; then :
  7259. enableval=$enable_shared; p=${PACKAGE-default}
  7260. case $enableval in
  7261. yes) enable_shared=yes ;;
  7262. no) enable_shared=no ;;
  7263. *)
  7264. enable_shared=no
  7265. # Look at the argument we got. We use all the common list separators.
  7266. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7267. for pkg in $enableval; do
  7268. IFS="$lt_save_ifs"
  7269. if test "X$pkg" = "X$p"; then
  7270. enable_shared=yes
  7271. fi
  7272. done
  7273. IFS="$lt_save_ifs"
  7274. ;;
  7275. esac
  7276. else
  7277. enable_shared=yes
  7278. fi
  7279. # Check whether --enable-static was given.
  7280. if test "${enable_static+set}" = set; then :
  7281. enableval=$enable_static; p=${PACKAGE-default}
  7282. case $enableval in
  7283. yes) enable_static=yes ;;
  7284. no) enable_static=no ;;
  7285. *)
  7286. enable_static=no
  7287. # Look at the argument we got. We use all the common list separators.
  7288. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7289. for pkg in $enableval; do
  7290. IFS="$lt_save_ifs"
  7291. if test "X$pkg" = "X$p"; then
  7292. enable_static=yes
  7293. fi
  7294. done
  7295. IFS="$lt_save_ifs"
  7296. ;;
  7297. esac
  7298. else
  7299. enable_static=yes
  7300. fi
  7301. # Check whether --with-pic was given.
  7302. if test "${with_pic+set}" = set; then :
  7303. withval=$with_pic; lt_p=${PACKAGE-default}
  7304. case $withval in
  7305. yes|no) pic_mode=$withval ;;
  7306. *)
  7307. pic_mode=default
  7308. # Look at the argument we got. We use all the common list separators.
  7309. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7310. for lt_pkg in $withval; do
  7311. IFS="$lt_save_ifs"
  7312. if test "X$lt_pkg" = "X$lt_p"; then
  7313. pic_mode=yes
  7314. fi
  7315. done
  7316. IFS="$lt_save_ifs"
  7317. ;;
  7318. esac
  7319. else
  7320. pic_mode=default
  7321. fi
  7322. test -z "$pic_mode" && pic_mode=default
  7323. # Check whether --enable-fast-install was given.
  7324. if test "${enable_fast_install+set}" = set; then :
  7325. enableval=$enable_fast_install; p=${PACKAGE-default}
  7326. case $enableval in
  7327. yes) enable_fast_install=yes ;;
  7328. no) enable_fast_install=no ;;
  7329. *)
  7330. enable_fast_install=no
  7331. # Look at the argument we got. We use all the common list separators.
  7332. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7333. for pkg in $enableval; do
  7334. IFS="$lt_save_ifs"
  7335. if test "X$pkg" = "X$p"; then
  7336. enable_fast_install=yes
  7337. fi
  7338. done
  7339. IFS="$lt_save_ifs"
  7340. ;;
  7341. esac
  7342. else
  7343. enable_fast_install=yes
  7344. fi
  7345. # This can be used to rebuild libtool when needed
  7346. LIBTOOL_DEPS="$ltmain"
  7347. # Always use our own libtool.
  7348. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7349. test -z "$LN_S" && LN_S="ln -s"
  7350. if test -n "${ZSH_VERSION+set}" ; then
  7351. setopt NO_GLOB_SUBST
  7352. fi
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7354. $as_echo_n "checking for objdir... " >&6; }
  7355. if ${lt_cv_objdir+:} false; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. rm -f .libs 2>/dev/null
  7359. mkdir .libs 2>/dev/null
  7360. if test -d .libs; then
  7361. lt_cv_objdir=.libs
  7362. else
  7363. # MS-DOS does not allow filenames that begin with a dot.
  7364. lt_cv_objdir=_libs
  7365. fi
  7366. rmdir .libs 2>/dev/null
  7367. fi
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7369. $as_echo "$lt_cv_objdir" >&6; }
  7370. objdir=$lt_cv_objdir
  7371. cat >>confdefs.h <<_ACEOF
  7372. #define LT_OBJDIR "$lt_cv_objdir/"
  7373. _ACEOF
  7374. case $host_os in
  7375. aix3*)
  7376. # AIX sometimes has problems with the GCC collect2 program. For some
  7377. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7378. # vanish in a puff of smoke.
  7379. if test "X${COLLECT_NAMES+set}" != Xset; then
  7380. COLLECT_NAMES=
  7381. export COLLECT_NAMES
  7382. fi
  7383. ;;
  7384. esac
  7385. # Global variables:
  7386. ofile=libtool
  7387. can_build_shared=yes
  7388. # All known linkers require a `.a' archive for static linking (except MSVC,
  7389. # which needs '.lib').
  7390. libext=a
  7391. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7392. old_CC="$CC"
  7393. old_CFLAGS="$CFLAGS"
  7394. # Set sane defaults for various variables
  7395. test -z "$CC" && CC=cc
  7396. test -z "$LTCC" && LTCC=$CC
  7397. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7398. test -z "$LD" && LD=ld
  7399. test -z "$ac_objext" && ac_objext=o
  7400. for cc_temp in $compiler""; do
  7401. case $cc_temp in
  7402. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7403. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7404. \-*) ;;
  7405. *) break;;
  7406. esac
  7407. done
  7408. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7409. # Only perform the check for file, if the check method requires it
  7410. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7411. case $deplibs_check_method in
  7412. file_magic*)
  7413. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7415. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7416. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. case $MAGIC_CMD in
  7420. [\\/*] | ?:[\\/]*)
  7421. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7422. ;;
  7423. *)
  7424. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7425. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7426. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7427. for ac_dir in $ac_dummy; do
  7428. IFS="$lt_save_ifs"
  7429. test -z "$ac_dir" && ac_dir=.
  7430. if test -f $ac_dir/${ac_tool_prefix}file; then
  7431. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7432. if test -n "$file_magic_test_file"; then
  7433. case $deplibs_check_method in
  7434. "file_magic "*)
  7435. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7436. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7437. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7438. $EGREP "$file_magic_regex" > /dev/null; then
  7439. :
  7440. else
  7441. cat <<_LT_EOF 1>&2
  7442. *** Warning: the command libtool uses to detect shared libraries,
  7443. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7444. *** The result is that libtool may fail to recognize shared libraries
  7445. *** as such. This will affect the creation of libtool libraries that
  7446. *** depend on shared libraries, but programs linked with such libtool
  7447. *** libraries will work regardless of this problem. Nevertheless, you
  7448. *** may want to report the problem to your system manager and/or to
  7449. *** bug-libtool@gnu.org
  7450. _LT_EOF
  7451. fi ;;
  7452. esac
  7453. fi
  7454. break
  7455. fi
  7456. done
  7457. IFS="$lt_save_ifs"
  7458. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7459. ;;
  7460. esac
  7461. fi
  7462. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7463. if test -n "$MAGIC_CMD"; then
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7465. $as_echo "$MAGIC_CMD" >&6; }
  7466. else
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7468. $as_echo "no" >&6; }
  7469. fi
  7470. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7471. if test -n "$ac_tool_prefix"; then
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7473. $as_echo_n "checking for file... " >&6; }
  7474. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7475. $as_echo_n "(cached) " >&6
  7476. else
  7477. case $MAGIC_CMD in
  7478. [\\/*] | ?:[\\/]*)
  7479. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7480. ;;
  7481. *)
  7482. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7483. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7484. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7485. for ac_dir in $ac_dummy; do
  7486. IFS="$lt_save_ifs"
  7487. test -z "$ac_dir" && ac_dir=.
  7488. if test -f $ac_dir/file; then
  7489. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7490. if test -n "$file_magic_test_file"; then
  7491. case $deplibs_check_method in
  7492. "file_magic "*)
  7493. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7494. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7495. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7496. $EGREP "$file_magic_regex" > /dev/null; then
  7497. :
  7498. else
  7499. cat <<_LT_EOF 1>&2
  7500. *** Warning: the command libtool uses to detect shared libraries,
  7501. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7502. *** The result is that libtool may fail to recognize shared libraries
  7503. *** as such. This will affect the creation of libtool libraries that
  7504. *** depend on shared libraries, but programs linked with such libtool
  7505. *** libraries will work regardless of this problem. Nevertheless, you
  7506. *** may want to report the problem to your system manager and/or to
  7507. *** bug-libtool@gnu.org
  7508. _LT_EOF
  7509. fi ;;
  7510. esac
  7511. fi
  7512. break
  7513. fi
  7514. done
  7515. IFS="$lt_save_ifs"
  7516. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7517. ;;
  7518. esac
  7519. fi
  7520. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7521. if test -n "$MAGIC_CMD"; then
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7523. $as_echo "$MAGIC_CMD" >&6; }
  7524. else
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7526. $as_echo "no" >&6; }
  7527. fi
  7528. else
  7529. MAGIC_CMD=:
  7530. fi
  7531. fi
  7532. fi
  7533. ;;
  7534. esac
  7535. # Use C for the default configuration in the libtool script
  7536. lt_save_CC="$CC"
  7537. ac_ext=c
  7538. ac_cpp='$CPP $CPPFLAGS'
  7539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7542. # Source file extension for C test sources.
  7543. ac_ext=c
  7544. # Object file extension for compiled C test sources.
  7545. objext=o
  7546. objext=$objext
  7547. # Code to be used in simple compile tests
  7548. lt_simple_compile_test_code="int some_variable = 0;"
  7549. # Code to be used in simple link tests
  7550. lt_simple_link_test_code='int main(){return(0);}'
  7551. # If no C compiler was specified, use CC.
  7552. LTCC=${LTCC-"$CC"}
  7553. # If no C compiler flags were specified, use CFLAGS.
  7554. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7555. # Allow CC to be a program name with arguments.
  7556. compiler=$CC
  7557. # Save the default compiler, since it gets overwritten when the other
  7558. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7559. compiler_DEFAULT=$CC
  7560. # save warnings/boilerplate of simple test code
  7561. ac_outfile=conftest.$ac_objext
  7562. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7563. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7564. _lt_compiler_boilerplate=`cat conftest.err`
  7565. $RM conftest*
  7566. ac_outfile=conftest.$ac_objext
  7567. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7568. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7569. _lt_linker_boilerplate=`cat conftest.err`
  7570. $RM -r conftest*
  7571. if test -n "$compiler"; then
  7572. lt_prog_compiler_no_builtin_flag=
  7573. if test "$GCC" = yes; then
  7574. case $cc_basename in
  7575. nvcc*)
  7576. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7577. *)
  7578. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7579. esac
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7581. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7582. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7583. $as_echo_n "(cached) " >&6
  7584. else
  7585. lt_cv_prog_compiler_rtti_exceptions=no
  7586. ac_outfile=conftest.$ac_objext
  7587. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7588. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7589. # Insert the option either (1) after the last *FLAGS variable, or
  7590. # (2) before a word containing "conftest.", or (3) at the end.
  7591. # Note that $ac_compile itself does not contain backslashes and begins
  7592. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7593. # The option is referenced via a variable to avoid confusing sed.
  7594. lt_compile=`echo "$ac_compile" | $SED \
  7595. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7596. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7597. -e 's:$: $lt_compiler_flag:'`
  7598. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7599. (eval "$lt_compile" 2>conftest.err)
  7600. ac_status=$?
  7601. cat conftest.err >&5
  7602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7603. if (exit $ac_status) && test -s "$ac_outfile"; then
  7604. # The compiler can only warn and ignore the option if not recognized
  7605. # So say no if there are warnings other than the usual output.
  7606. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7607. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7608. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7609. lt_cv_prog_compiler_rtti_exceptions=yes
  7610. fi
  7611. fi
  7612. $RM conftest*
  7613. fi
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7615. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7616. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7617. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7618. else
  7619. :
  7620. fi
  7621. fi
  7622. lt_prog_compiler_wl=
  7623. lt_prog_compiler_pic=
  7624. lt_prog_compiler_static=
  7625. if test "$GCC" = yes; then
  7626. lt_prog_compiler_wl='-Wl,'
  7627. lt_prog_compiler_static='-static'
  7628. case $host_os in
  7629. aix*)
  7630. # All AIX code is PIC.
  7631. if test "$host_cpu" = ia64; then
  7632. # AIX 5 now supports IA64 processor
  7633. lt_prog_compiler_static='-Bstatic'
  7634. fi
  7635. ;;
  7636. amigaos*)
  7637. case $host_cpu in
  7638. powerpc)
  7639. # see comment about AmigaOS4 .so support
  7640. lt_prog_compiler_pic='-fPIC'
  7641. ;;
  7642. m68k)
  7643. # FIXME: we need at least 68020 code to build shared libraries, but
  7644. # adding the `-m68020' flag to GCC prevents building anything better,
  7645. # like `-m68040'.
  7646. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7647. ;;
  7648. esac
  7649. ;;
  7650. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7651. # PIC is the default for these OSes.
  7652. ;;
  7653. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7654. # This hack is so that the source file can tell whether it is being
  7655. # built for inclusion in a dll (and should export symbols for example).
  7656. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7657. # (--disable-auto-import) libraries
  7658. lt_prog_compiler_pic='-DDLL_EXPORT'
  7659. ;;
  7660. darwin* | rhapsody*)
  7661. # PIC is the default on this platform
  7662. # Common symbols not allowed in MH_DYLIB files
  7663. lt_prog_compiler_pic='-fno-common'
  7664. ;;
  7665. haiku*)
  7666. # PIC is the default for Haiku.
  7667. # The "-static" flag exists, but is broken.
  7668. lt_prog_compiler_static=
  7669. ;;
  7670. hpux*)
  7671. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7672. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7673. # sets the default TLS model and affects inlining.
  7674. case $host_cpu in
  7675. hppa*64*)
  7676. # +Z the default
  7677. ;;
  7678. *)
  7679. lt_prog_compiler_pic='-fPIC'
  7680. ;;
  7681. esac
  7682. ;;
  7683. interix[3-9]*)
  7684. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7685. # Instead, we relocate shared libraries at runtime.
  7686. ;;
  7687. msdosdjgpp*)
  7688. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7689. # on systems that don't support them.
  7690. lt_prog_compiler_can_build_shared=no
  7691. enable_shared=no
  7692. ;;
  7693. *nto* | *qnx*)
  7694. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7695. # it will coredump.
  7696. lt_prog_compiler_pic='-fPIC -shared'
  7697. ;;
  7698. sysv4*MP*)
  7699. if test -d /usr/nec; then
  7700. lt_prog_compiler_pic=-Kconform_pic
  7701. fi
  7702. ;;
  7703. *)
  7704. lt_prog_compiler_pic='-fPIC'
  7705. ;;
  7706. esac
  7707. case $cc_basename in
  7708. nvcc*) # Cuda Compiler Driver 2.2
  7709. lt_prog_compiler_wl='-Xlinker '
  7710. if test -n "$lt_prog_compiler_pic"; then
  7711. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7712. fi
  7713. ;;
  7714. esac
  7715. else
  7716. # PORTME Check for flag to pass linker flags through the system compiler.
  7717. case $host_os in
  7718. aix*)
  7719. lt_prog_compiler_wl='-Wl,'
  7720. if test "$host_cpu" = ia64; then
  7721. # AIX 5 now supports IA64 processor
  7722. lt_prog_compiler_static='-Bstatic'
  7723. else
  7724. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7725. fi
  7726. ;;
  7727. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7728. # This hack is so that the source file can tell whether it is being
  7729. # built for inclusion in a dll (and should export symbols for example).
  7730. lt_prog_compiler_pic='-DDLL_EXPORT'
  7731. ;;
  7732. hpux9* | hpux10* | hpux11*)
  7733. lt_prog_compiler_wl='-Wl,'
  7734. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7735. # not for PA HP-UX.
  7736. case $host_cpu in
  7737. hppa*64*|ia64*)
  7738. # +Z the default
  7739. ;;
  7740. *)
  7741. lt_prog_compiler_pic='+Z'
  7742. ;;
  7743. esac
  7744. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7745. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7746. ;;
  7747. irix5* | irix6* | nonstopux*)
  7748. lt_prog_compiler_wl='-Wl,'
  7749. # PIC (with -KPIC) is the default.
  7750. lt_prog_compiler_static='-non_shared'
  7751. ;;
  7752. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7753. case $cc_basename in
  7754. # old Intel for x86_64 which still supported -KPIC.
  7755. ecc*)
  7756. lt_prog_compiler_wl='-Wl,'
  7757. lt_prog_compiler_pic='-KPIC'
  7758. lt_prog_compiler_static='-static'
  7759. ;;
  7760. # icc used to be incompatible with GCC.
  7761. # ICC 10 doesn't accept -KPIC any more.
  7762. icc* | ifort*)
  7763. lt_prog_compiler_wl='-Wl,'
  7764. lt_prog_compiler_pic='-fPIC'
  7765. lt_prog_compiler_static='-static'
  7766. ;;
  7767. # Lahey Fortran 8.1.
  7768. lf95*)
  7769. lt_prog_compiler_wl='-Wl,'
  7770. lt_prog_compiler_pic='--shared'
  7771. lt_prog_compiler_static='--static'
  7772. ;;
  7773. nagfor*)
  7774. # NAG Fortran compiler
  7775. lt_prog_compiler_wl='-Wl,-Wl,,'
  7776. lt_prog_compiler_pic='-PIC'
  7777. lt_prog_compiler_static='-Bstatic'
  7778. ;;
  7779. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7780. # Portland Group compilers (*not* the Pentium gcc compiler,
  7781. # which looks to be a dead project)
  7782. lt_prog_compiler_wl='-Wl,'
  7783. lt_prog_compiler_pic='-fpic'
  7784. lt_prog_compiler_static='-Bstatic'
  7785. ;;
  7786. ccc*)
  7787. lt_prog_compiler_wl='-Wl,'
  7788. # All Alpha code is PIC.
  7789. lt_prog_compiler_static='-non_shared'
  7790. ;;
  7791. xl* | bgxl* | bgf* | mpixl*)
  7792. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7793. lt_prog_compiler_wl='-Wl,'
  7794. lt_prog_compiler_pic='-qpic'
  7795. lt_prog_compiler_static='-qstaticlink'
  7796. ;;
  7797. *)
  7798. case `$CC -V 2>&1 | sed 5q` in
  7799. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7800. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7801. lt_prog_compiler_pic='-KPIC'
  7802. lt_prog_compiler_static='-Bstatic'
  7803. lt_prog_compiler_wl=''
  7804. ;;
  7805. *Sun\ F* | *Sun*Fortran*)
  7806. lt_prog_compiler_pic='-KPIC'
  7807. lt_prog_compiler_static='-Bstatic'
  7808. lt_prog_compiler_wl='-Qoption ld '
  7809. ;;
  7810. *Sun\ C*)
  7811. # Sun C 5.9
  7812. lt_prog_compiler_pic='-KPIC'
  7813. lt_prog_compiler_static='-Bstatic'
  7814. lt_prog_compiler_wl='-Wl,'
  7815. ;;
  7816. *Intel*\ [CF]*Compiler*)
  7817. lt_prog_compiler_wl='-Wl,'
  7818. lt_prog_compiler_pic='-fPIC'
  7819. lt_prog_compiler_static='-static'
  7820. ;;
  7821. *Portland\ Group*)
  7822. lt_prog_compiler_wl='-Wl,'
  7823. lt_prog_compiler_pic='-fpic'
  7824. lt_prog_compiler_static='-Bstatic'
  7825. ;;
  7826. esac
  7827. ;;
  7828. esac
  7829. ;;
  7830. newsos6)
  7831. lt_prog_compiler_pic='-KPIC'
  7832. lt_prog_compiler_static='-Bstatic'
  7833. ;;
  7834. *nto* | *qnx*)
  7835. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7836. # it will coredump.
  7837. lt_prog_compiler_pic='-fPIC -shared'
  7838. ;;
  7839. osf3* | osf4* | osf5*)
  7840. lt_prog_compiler_wl='-Wl,'
  7841. # All OSF/1 code is PIC.
  7842. lt_prog_compiler_static='-non_shared'
  7843. ;;
  7844. rdos*)
  7845. lt_prog_compiler_static='-non_shared'
  7846. ;;
  7847. solaris*)
  7848. lt_prog_compiler_pic='-KPIC'
  7849. lt_prog_compiler_static='-Bstatic'
  7850. case $cc_basename in
  7851. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7852. lt_prog_compiler_wl='-Qoption ld ';;
  7853. *)
  7854. lt_prog_compiler_wl='-Wl,';;
  7855. esac
  7856. ;;
  7857. sunos4*)
  7858. lt_prog_compiler_wl='-Qoption ld '
  7859. lt_prog_compiler_pic='-PIC'
  7860. lt_prog_compiler_static='-Bstatic'
  7861. ;;
  7862. sysv4 | sysv4.2uw2* | sysv4.3*)
  7863. lt_prog_compiler_wl='-Wl,'
  7864. lt_prog_compiler_pic='-KPIC'
  7865. lt_prog_compiler_static='-Bstatic'
  7866. ;;
  7867. sysv4*MP*)
  7868. if test -d /usr/nec ;then
  7869. lt_prog_compiler_pic='-Kconform_pic'
  7870. lt_prog_compiler_static='-Bstatic'
  7871. fi
  7872. ;;
  7873. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7874. lt_prog_compiler_wl='-Wl,'
  7875. lt_prog_compiler_pic='-KPIC'
  7876. lt_prog_compiler_static='-Bstatic'
  7877. ;;
  7878. unicos*)
  7879. lt_prog_compiler_wl='-Wl,'
  7880. lt_prog_compiler_can_build_shared=no
  7881. ;;
  7882. uts4*)
  7883. lt_prog_compiler_pic='-pic'
  7884. lt_prog_compiler_static='-Bstatic'
  7885. ;;
  7886. *)
  7887. lt_prog_compiler_can_build_shared=no
  7888. ;;
  7889. esac
  7890. fi
  7891. case $host_os in
  7892. # For platforms which do not support PIC, -DPIC is meaningless:
  7893. *djgpp*)
  7894. lt_prog_compiler_pic=
  7895. ;;
  7896. *)
  7897. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7898. ;;
  7899. esac
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7901. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7902. if ${lt_cv_prog_compiler_pic+:} false; then :
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7906. fi
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7908. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7909. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7910. #
  7911. # Check to make sure the PIC flag actually works.
  7912. #
  7913. if test -n "$lt_prog_compiler_pic"; then
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7915. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7916. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. lt_cv_prog_compiler_pic_works=no
  7920. ac_outfile=conftest.$ac_objext
  7921. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7922. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7923. # Insert the option either (1) after the last *FLAGS variable, or
  7924. # (2) before a word containing "conftest.", or (3) at the end.
  7925. # Note that $ac_compile itself does not contain backslashes and begins
  7926. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7927. # The option is referenced via a variable to avoid confusing sed.
  7928. lt_compile=`echo "$ac_compile" | $SED \
  7929. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7930. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7931. -e 's:$: $lt_compiler_flag:'`
  7932. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7933. (eval "$lt_compile" 2>conftest.err)
  7934. ac_status=$?
  7935. cat conftest.err >&5
  7936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7937. if (exit $ac_status) && test -s "$ac_outfile"; then
  7938. # The compiler can only warn and ignore the option if not recognized
  7939. # So say no if there are warnings other than the usual output.
  7940. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7941. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7942. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7943. lt_cv_prog_compiler_pic_works=yes
  7944. fi
  7945. fi
  7946. $RM conftest*
  7947. fi
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7949. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7950. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7951. case $lt_prog_compiler_pic in
  7952. "" | " "*) ;;
  7953. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7954. esac
  7955. else
  7956. lt_prog_compiler_pic=
  7957. lt_prog_compiler_can_build_shared=no
  7958. fi
  7959. fi
  7960. #
  7961. # Check to make sure the static flag actually works.
  7962. #
  7963. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7965. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7966. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7967. $as_echo_n "(cached) " >&6
  7968. else
  7969. lt_cv_prog_compiler_static_works=no
  7970. save_LDFLAGS="$LDFLAGS"
  7971. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7972. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7973. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7974. # The linker can only warn and ignore the option if not recognized
  7975. # So say no if there are warnings
  7976. if test -s conftest.err; then
  7977. # Append any errors to the config.log.
  7978. cat conftest.err 1>&5
  7979. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7980. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7981. if diff conftest.exp conftest.er2 >/dev/null; then
  7982. lt_cv_prog_compiler_static_works=yes
  7983. fi
  7984. else
  7985. lt_cv_prog_compiler_static_works=yes
  7986. fi
  7987. fi
  7988. $RM -r conftest*
  7989. LDFLAGS="$save_LDFLAGS"
  7990. fi
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7992. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7993. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7994. :
  7995. else
  7996. lt_prog_compiler_static=
  7997. fi
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7999. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8000. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8001. $as_echo_n "(cached) " >&6
  8002. else
  8003. lt_cv_prog_compiler_c_o=no
  8004. $RM -r conftest 2>/dev/null
  8005. mkdir conftest
  8006. cd conftest
  8007. mkdir out
  8008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8009. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8010. # Insert the option either (1) after the last *FLAGS variable, or
  8011. # (2) before a word containing "conftest.", or (3) at the end.
  8012. # Note that $ac_compile itself does not contain backslashes and begins
  8013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8014. lt_compile=`echo "$ac_compile" | $SED \
  8015. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8016. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8017. -e 's:$: $lt_compiler_flag:'`
  8018. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8019. (eval "$lt_compile" 2>out/conftest.err)
  8020. ac_status=$?
  8021. cat out/conftest.err >&5
  8022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8023. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8024. then
  8025. # The compiler can only warn and ignore the option if not recognized
  8026. # So say no if there are warnings
  8027. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8028. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8029. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8030. lt_cv_prog_compiler_c_o=yes
  8031. fi
  8032. fi
  8033. chmod u+w . 2>&5
  8034. $RM conftest*
  8035. # SGI C++ compiler will create directory out/ii_files/ for
  8036. # template instantiation
  8037. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8038. $RM out/* && rmdir out
  8039. cd ..
  8040. $RM -r conftest
  8041. $RM conftest*
  8042. fi
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8044. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8046. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8047. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8048. $as_echo_n "(cached) " >&6
  8049. else
  8050. lt_cv_prog_compiler_c_o=no
  8051. $RM -r conftest 2>/dev/null
  8052. mkdir conftest
  8053. cd conftest
  8054. mkdir out
  8055. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8056. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8057. # Insert the option either (1) after the last *FLAGS variable, or
  8058. # (2) before a word containing "conftest.", or (3) at the end.
  8059. # Note that $ac_compile itself does not contain backslashes and begins
  8060. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8061. lt_compile=`echo "$ac_compile" | $SED \
  8062. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8063. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8064. -e 's:$: $lt_compiler_flag:'`
  8065. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8066. (eval "$lt_compile" 2>out/conftest.err)
  8067. ac_status=$?
  8068. cat out/conftest.err >&5
  8069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8070. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8071. then
  8072. # The compiler can only warn and ignore the option if not recognized
  8073. # So say no if there are warnings
  8074. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8075. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8076. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8077. lt_cv_prog_compiler_c_o=yes
  8078. fi
  8079. fi
  8080. chmod u+w . 2>&5
  8081. $RM conftest*
  8082. # SGI C++ compiler will create directory out/ii_files/ for
  8083. # template instantiation
  8084. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8085. $RM out/* && rmdir out
  8086. cd ..
  8087. $RM -r conftest
  8088. $RM conftest*
  8089. fi
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8091. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8092. hard_links="nottested"
  8093. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8094. # do not overwrite the value of need_locks provided by the user
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8096. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8097. hard_links=yes
  8098. $RM conftest*
  8099. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8100. touch conftest.a
  8101. ln conftest.a conftest.b 2>&5 || hard_links=no
  8102. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8104. $as_echo "$hard_links" >&6; }
  8105. if test "$hard_links" = no; then
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8107. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8108. need_locks=warn
  8109. fi
  8110. else
  8111. need_locks=no
  8112. fi
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8114. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8115. runpath_var=
  8116. allow_undefined_flag=
  8117. always_export_symbols=no
  8118. archive_cmds=
  8119. archive_expsym_cmds=
  8120. compiler_needs_object=no
  8121. enable_shared_with_static_runtimes=no
  8122. export_dynamic_flag_spec=
  8123. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8124. hardcode_automatic=no
  8125. hardcode_direct=no
  8126. hardcode_direct_absolute=no
  8127. hardcode_libdir_flag_spec=
  8128. hardcode_libdir_separator=
  8129. hardcode_minus_L=no
  8130. hardcode_shlibpath_var=unsupported
  8131. inherit_rpath=no
  8132. link_all_deplibs=unknown
  8133. module_cmds=
  8134. module_expsym_cmds=
  8135. old_archive_from_new_cmds=
  8136. old_archive_from_expsyms_cmds=
  8137. thread_safe_flag_spec=
  8138. whole_archive_flag_spec=
  8139. # include_expsyms should be a list of space-separated symbols to be *always*
  8140. # included in the symbol list
  8141. include_expsyms=
  8142. # exclude_expsyms can be an extended regexp of symbols to exclude
  8143. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8144. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8145. # as well as any symbol that contains `d'.
  8146. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8147. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8148. # platforms (ab)use it in PIC code, but their linkers get confused if
  8149. # the symbol is explicitly referenced. Since portable code cannot
  8150. # rely on this symbol name, it's probably fine to never include it in
  8151. # preloaded symbol tables.
  8152. # Exclude shared library initialization/finalization symbols.
  8153. extract_expsyms_cmds=
  8154. case $host_os in
  8155. cygwin* | mingw* | pw32* | cegcc*)
  8156. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8157. # When not using gcc, we currently assume that we are using
  8158. # Microsoft Visual C++.
  8159. if test "$GCC" != yes; then
  8160. with_gnu_ld=no
  8161. fi
  8162. ;;
  8163. interix*)
  8164. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8165. with_gnu_ld=yes
  8166. ;;
  8167. openbsd*)
  8168. with_gnu_ld=no
  8169. ;;
  8170. linux* | k*bsd*-gnu | gnu*)
  8171. link_all_deplibs=no
  8172. ;;
  8173. esac
  8174. ld_shlibs=yes
  8175. # On some targets, GNU ld is compatible enough with the native linker
  8176. # that we're better off using the native interface for both.
  8177. lt_use_gnu_ld_interface=no
  8178. if test "$with_gnu_ld" = yes; then
  8179. case $host_os in
  8180. aix*)
  8181. # The AIX port of GNU ld has always aspired to compatibility
  8182. # with the native linker. However, as the warning in the GNU ld
  8183. # block says, versions before 2.19.5* couldn't really create working
  8184. # shared libraries, regardless of the interface used.
  8185. case `$LD -v 2>&1` in
  8186. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8187. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8188. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8189. *)
  8190. lt_use_gnu_ld_interface=yes
  8191. ;;
  8192. esac
  8193. ;;
  8194. *)
  8195. lt_use_gnu_ld_interface=yes
  8196. ;;
  8197. esac
  8198. fi
  8199. if test "$lt_use_gnu_ld_interface" = yes; then
  8200. # If archive_cmds runs LD, not CC, wlarc should be empty
  8201. wlarc='${wl}'
  8202. # Set some defaults for GNU ld with shared library support. These
  8203. # are reset later if shared libraries are not supported. Putting them
  8204. # here allows them to be overridden if necessary.
  8205. runpath_var=LD_RUN_PATH
  8206. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8207. export_dynamic_flag_spec='${wl}--export-dynamic'
  8208. # ancient GNU ld didn't support --whole-archive et. al.
  8209. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8210. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8211. else
  8212. whole_archive_flag_spec=
  8213. fi
  8214. supports_anon_versioning=no
  8215. case `$LD -v 2>&1` in
  8216. *GNU\ gold*) supports_anon_versioning=yes ;;
  8217. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8218. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8219. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8220. *\ 2.11.*) ;; # other 2.11 versions
  8221. *) supports_anon_versioning=yes ;;
  8222. esac
  8223. # See if GNU ld supports shared libraries.
  8224. case $host_os in
  8225. aix[3-9]*)
  8226. # On AIX/PPC, the GNU linker is very broken
  8227. if test "$host_cpu" != ia64; then
  8228. ld_shlibs=no
  8229. cat <<_LT_EOF 1>&2
  8230. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8231. *** to be unable to reliably create shared libraries on AIX.
  8232. *** Therefore, libtool is disabling shared libraries support. If you
  8233. *** really care for shared libraries, you may want to install binutils
  8234. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8235. *** You will then need to restart the configuration process.
  8236. _LT_EOF
  8237. fi
  8238. ;;
  8239. amigaos*)
  8240. case $host_cpu in
  8241. powerpc)
  8242. # see comment about AmigaOS4 .so support
  8243. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8244. archive_expsym_cmds=''
  8245. ;;
  8246. m68k)
  8247. 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)'
  8248. hardcode_libdir_flag_spec='-L$libdir'
  8249. hardcode_minus_L=yes
  8250. ;;
  8251. esac
  8252. ;;
  8253. beos*)
  8254. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8255. allow_undefined_flag=unsupported
  8256. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8257. # support --undefined. This deserves some investigation. FIXME
  8258. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8259. else
  8260. ld_shlibs=no
  8261. fi
  8262. ;;
  8263. cygwin* | mingw* | pw32* | cegcc*)
  8264. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8265. # as there is no search path for DLLs.
  8266. hardcode_libdir_flag_spec='-L$libdir'
  8267. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8268. allow_undefined_flag=unsupported
  8269. always_export_symbols=no
  8270. enable_shared_with_static_runtimes=yes
  8271. 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'
  8272. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8273. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8274. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8275. # If the export-symbols file already is a .def file (1st line
  8276. # is EXPORTS), use it as is; otherwise, prepend...
  8277. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8278. cp $export_symbols $output_objdir/$soname.def;
  8279. else
  8280. echo EXPORTS > $output_objdir/$soname.def;
  8281. cat $export_symbols >> $output_objdir/$soname.def;
  8282. fi~
  8283. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8284. else
  8285. ld_shlibs=no
  8286. fi
  8287. ;;
  8288. haiku*)
  8289. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8290. link_all_deplibs=yes
  8291. ;;
  8292. interix[3-9]*)
  8293. hardcode_direct=no
  8294. hardcode_shlibpath_var=no
  8295. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8296. export_dynamic_flag_spec='${wl}-E'
  8297. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8298. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8299. # default) and relocated if they conflict, which is a slow very memory
  8300. # consuming and fragmenting process. To avoid this, we pick a random,
  8301. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8302. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8303. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8304. 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'
  8305. ;;
  8306. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8307. tmp_diet=no
  8308. if test "$host_os" = linux-dietlibc; then
  8309. case $cc_basename in
  8310. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8311. esac
  8312. fi
  8313. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8314. && test "$tmp_diet" = no
  8315. then
  8316. tmp_addflag=' $pic_flag'
  8317. tmp_sharedflag='-shared'
  8318. case $cc_basename,$host_cpu in
  8319. pgcc*) # Portland Group C compiler
  8320. 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'
  8321. tmp_addflag=' $pic_flag'
  8322. ;;
  8323. pgf77* | pgf90* | pgf95* | pgfortran*)
  8324. # Portland Group f77 and f90 compilers
  8325. 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'
  8326. tmp_addflag=' $pic_flag -Mnomain' ;;
  8327. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8328. tmp_addflag=' -i_dynamic' ;;
  8329. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8330. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8331. ifc* | ifort*) # Intel Fortran compiler
  8332. tmp_addflag=' -nofor_main' ;;
  8333. lf95*) # Lahey Fortran 8.1
  8334. whole_archive_flag_spec=
  8335. tmp_sharedflag='--shared' ;;
  8336. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8337. tmp_sharedflag='-qmkshrobj'
  8338. tmp_addflag= ;;
  8339. nvcc*) # Cuda Compiler Driver 2.2
  8340. 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'
  8341. compiler_needs_object=yes
  8342. ;;
  8343. esac
  8344. case `$CC -V 2>&1 | sed 5q` in
  8345. *Sun\ C*) # Sun C 5.9
  8346. 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'
  8347. compiler_needs_object=yes
  8348. tmp_sharedflag='-G' ;;
  8349. *Sun\ F*) # Sun Fortran 8.3
  8350. tmp_sharedflag='-G' ;;
  8351. esac
  8352. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8353. if test "x$supports_anon_versioning" = xyes; then
  8354. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8355. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8356. echo "local: *; };" >> $output_objdir/$libname.ver~
  8357. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8358. fi
  8359. case $cc_basename in
  8360. xlf* | bgf* | bgxlf* | mpixlf*)
  8361. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8362. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8363. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8364. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8365. if test "x$supports_anon_versioning" = xyes; then
  8366. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8367. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8368. echo "local: *; };" >> $output_objdir/$libname.ver~
  8369. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8370. fi
  8371. ;;
  8372. esac
  8373. else
  8374. ld_shlibs=no
  8375. fi
  8376. ;;
  8377. netbsd* | netbsdelf*-gnu)
  8378. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8379. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8380. wlarc=
  8381. else
  8382. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8383. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8384. fi
  8385. ;;
  8386. solaris*)
  8387. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8388. ld_shlibs=no
  8389. cat <<_LT_EOF 1>&2
  8390. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8391. *** create shared libraries on Solaris systems. Therefore, libtool
  8392. *** is disabling shared libraries support. We urge you to upgrade GNU
  8393. *** binutils to release 2.9.1 or newer. Another option is to modify
  8394. *** your PATH or compiler configuration so that the native linker is
  8395. *** used, and then restart.
  8396. _LT_EOF
  8397. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8398. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8399. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8400. else
  8401. ld_shlibs=no
  8402. fi
  8403. ;;
  8404. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8405. case `$LD -v 2>&1` in
  8406. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8407. ld_shlibs=no
  8408. cat <<_LT_EOF 1>&2
  8409. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8410. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8411. *** is disabling shared libraries support. We urge you to upgrade GNU
  8412. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8413. *** your PATH or compiler configuration so that the native linker is
  8414. *** used, and then restart.
  8415. _LT_EOF
  8416. ;;
  8417. *)
  8418. # For security reasons, it is highly recommended that you always
  8419. # use absolute paths for naming shared libraries, and exclude the
  8420. # DT_RUNPATH tag from executables and libraries. But doing so
  8421. # requires that you compile everything twice, which is a pain.
  8422. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8423. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8424. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8425. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8426. else
  8427. ld_shlibs=no
  8428. fi
  8429. ;;
  8430. esac
  8431. ;;
  8432. sunos4*)
  8433. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8434. wlarc=
  8435. hardcode_direct=yes
  8436. hardcode_shlibpath_var=no
  8437. ;;
  8438. *)
  8439. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8440. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8441. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8442. else
  8443. ld_shlibs=no
  8444. fi
  8445. ;;
  8446. esac
  8447. if test "$ld_shlibs" = no; then
  8448. runpath_var=
  8449. hardcode_libdir_flag_spec=
  8450. export_dynamic_flag_spec=
  8451. whole_archive_flag_spec=
  8452. fi
  8453. else
  8454. # PORTME fill in a description of your system's linker (not GNU ld)
  8455. case $host_os in
  8456. aix3*)
  8457. allow_undefined_flag=unsupported
  8458. always_export_symbols=yes
  8459. 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'
  8460. # Note: this linker hardcodes the directories in LIBPATH if there
  8461. # are no directories specified by -L.
  8462. hardcode_minus_L=yes
  8463. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8464. # Neither direct hardcoding nor static linking is supported with a
  8465. # broken collect2.
  8466. hardcode_direct=unsupported
  8467. fi
  8468. ;;
  8469. aix[4-9]*)
  8470. if test "$host_cpu" = ia64; then
  8471. # On IA64, the linker does run time linking by default, so we don't
  8472. # have to do anything special.
  8473. aix_use_runtimelinking=no
  8474. exp_sym_flag='-Bexport'
  8475. no_entry_flag=""
  8476. else
  8477. # If we're using GNU nm, then we don't want the "-C" option.
  8478. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8479. # Also, AIX nm treats weak defined symbols like other global
  8480. # defined symbols, whereas GNU nm marks them as "W".
  8481. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8482. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8483. else
  8484. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8485. fi
  8486. aix_use_runtimelinking=no
  8487. # Test if we are trying to use run time linking or normal
  8488. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8489. # need to do runtime linking.
  8490. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8491. for ld_flag in $LDFLAGS; do
  8492. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8493. aix_use_runtimelinking=yes
  8494. break
  8495. fi
  8496. done
  8497. ;;
  8498. esac
  8499. exp_sym_flag='-bexport'
  8500. no_entry_flag='-bnoentry'
  8501. fi
  8502. # When large executables or shared objects are built, AIX ld can
  8503. # have problems creating the table of contents. If linking a library
  8504. # or program results in "error TOC overflow" add -mminimal-toc to
  8505. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8506. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8507. archive_cmds=''
  8508. hardcode_direct=yes
  8509. hardcode_direct_absolute=yes
  8510. hardcode_libdir_separator=':'
  8511. link_all_deplibs=yes
  8512. file_list_spec='${wl}-f,'
  8513. if test "$GCC" = yes; then
  8514. case $host_os in aix4.[012]|aix4.[012].*)
  8515. # We only want to do this on AIX 4.2 and lower, the check
  8516. # below for broken collect2 doesn't work under 4.3+
  8517. collect2name=`${CC} -print-prog-name=collect2`
  8518. if test -f "$collect2name" &&
  8519. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8520. then
  8521. # We have reworked collect2
  8522. :
  8523. else
  8524. # We have old collect2
  8525. hardcode_direct=unsupported
  8526. # It fails to find uninstalled libraries when the uninstalled
  8527. # path is not listed in the libpath. Setting hardcode_minus_L
  8528. # to unsupported forces relinking
  8529. hardcode_minus_L=yes
  8530. hardcode_libdir_flag_spec='-L$libdir'
  8531. hardcode_libdir_separator=
  8532. fi
  8533. ;;
  8534. esac
  8535. shared_flag='-shared'
  8536. if test "$aix_use_runtimelinking" = yes; then
  8537. shared_flag="$shared_flag "'${wl}-G'
  8538. fi
  8539. link_all_deplibs=no
  8540. else
  8541. # not using gcc
  8542. if test "$host_cpu" = ia64; then
  8543. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8544. # chokes on -Wl,-G. The following line is correct:
  8545. shared_flag='-G'
  8546. else
  8547. if test "$aix_use_runtimelinking" = yes; then
  8548. shared_flag='${wl}-G'
  8549. else
  8550. shared_flag='${wl}-bM:SRE'
  8551. fi
  8552. fi
  8553. fi
  8554. export_dynamic_flag_spec='${wl}-bexpall'
  8555. # It seems that -bexpall does not export symbols beginning with
  8556. # underscore (_), so it is better to generate a list of symbols to export.
  8557. always_export_symbols=yes
  8558. if test "$aix_use_runtimelinking" = yes; then
  8559. # Warning - without using the other runtime loading flags (-brtl),
  8560. # -berok will link without error, but may produce a broken library.
  8561. allow_undefined_flag='-berok'
  8562. # Determine the default libpath from the value encoded in an
  8563. # empty executable.
  8564. if test "${lt_cv_aix_libpath+set}" = set; then
  8565. aix_libpath=$lt_cv_aix_libpath
  8566. else
  8567. if ${lt_cv_aix_libpath_+:} false; then :
  8568. $as_echo_n "(cached) " >&6
  8569. else
  8570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8571. /* end confdefs.h. */
  8572. int
  8573. main ()
  8574. {
  8575. ;
  8576. return 0;
  8577. }
  8578. _ACEOF
  8579. if ac_fn_c_try_link "$LINENO"; then :
  8580. lt_aix_libpath_sed='
  8581. /Import File Strings/,/^$/ {
  8582. /^0/ {
  8583. s/^0 *\([^ ]*\) *$/\1/
  8584. p
  8585. }
  8586. }'
  8587. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8588. # Check for a 64-bit object if we didn't find anything.
  8589. if test -z "$lt_cv_aix_libpath_"; then
  8590. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8591. fi
  8592. fi
  8593. rm -f core conftest.err conftest.$ac_objext \
  8594. conftest$ac_exeext conftest.$ac_ext
  8595. if test -z "$lt_cv_aix_libpath_"; then
  8596. lt_cv_aix_libpath_="/usr/lib:/lib"
  8597. fi
  8598. fi
  8599. aix_libpath=$lt_cv_aix_libpath_
  8600. fi
  8601. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8602. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8603. else
  8604. if test "$host_cpu" = ia64; then
  8605. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8606. allow_undefined_flag="-z nodefs"
  8607. 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"
  8608. else
  8609. # Determine the default libpath from the value encoded in an
  8610. # empty executable.
  8611. if test "${lt_cv_aix_libpath+set}" = set; then
  8612. aix_libpath=$lt_cv_aix_libpath
  8613. else
  8614. if ${lt_cv_aix_libpath_+:} false; then :
  8615. $as_echo_n "(cached) " >&6
  8616. else
  8617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8618. /* end confdefs.h. */
  8619. int
  8620. main ()
  8621. {
  8622. ;
  8623. return 0;
  8624. }
  8625. _ACEOF
  8626. if ac_fn_c_try_link "$LINENO"; then :
  8627. lt_aix_libpath_sed='
  8628. /Import File Strings/,/^$/ {
  8629. /^0/ {
  8630. s/^0 *\([^ ]*\) *$/\1/
  8631. p
  8632. }
  8633. }'
  8634. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8635. # Check for a 64-bit object if we didn't find anything.
  8636. if test -z "$lt_cv_aix_libpath_"; then
  8637. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8638. fi
  8639. fi
  8640. rm -f core conftest.err conftest.$ac_objext \
  8641. conftest$ac_exeext conftest.$ac_ext
  8642. if test -z "$lt_cv_aix_libpath_"; then
  8643. lt_cv_aix_libpath_="/usr/lib:/lib"
  8644. fi
  8645. fi
  8646. aix_libpath=$lt_cv_aix_libpath_
  8647. fi
  8648. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8649. # Warning - without using the other run time loading flags,
  8650. # -berok will link without error, but may produce a broken library.
  8651. no_undefined_flag=' ${wl}-bernotok'
  8652. allow_undefined_flag=' ${wl}-berok'
  8653. if test "$with_gnu_ld" = yes; then
  8654. # We only use this code for GNU lds that support --whole-archive.
  8655. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8656. else
  8657. # Exported symbols can be pulled into shared objects from archives
  8658. whole_archive_flag_spec='$convenience'
  8659. fi
  8660. archive_cmds_need_lc=yes
  8661. # This is similar to how AIX traditionally builds its shared libraries.
  8662. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8663. fi
  8664. fi
  8665. ;;
  8666. amigaos*)
  8667. case $host_cpu in
  8668. powerpc)
  8669. # see comment about AmigaOS4 .so support
  8670. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8671. archive_expsym_cmds=''
  8672. ;;
  8673. m68k)
  8674. 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)'
  8675. hardcode_libdir_flag_spec='-L$libdir'
  8676. hardcode_minus_L=yes
  8677. ;;
  8678. esac
  8679. ;;
  8680. bsdi[45]*)
  8681. export_dynamic_flag_spec=-rdynamic
  8682. ;;
  8683. cygwin* | mingw* | pw32* | cegcc*)
  8684. # When not using gcc, we currently assume that we are using
  8685. # Microsoft Visual C++.
  8686. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8687. # no search path for DLLs.
  8688. case $cc_basename in
  8689. cl*)
  8690. # Native MSVC
  8691. hardcode_libdir_flag_spec=' '
  8692. allow_undefined_flag=unsupported
  8693. always_export_symbols=yes
  8694. file_list_spec='@'
  8695. # Tell ltmain to make .lib files, not .a files.
  8696. libext=lib
  8697. # Tell ltmain to make .dll files, not .so files.
  8698. shrext_cmds=".dll"
  8699. # FIXME: Setting linknames here is a bad hack.
  8700. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8701. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8702. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8703. else
  8704. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8705. fi~
  8706. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8707. linknames='
  8708. # The linker will not automatically build a static lib if we build a DLL.
  8709. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8710. enable_shared_with_static_runtimes=yes
  8711. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8712. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8713. # Don't use ranlib
  8714. old_postinstall_cmds='chmod 644 $oldlib'
  8715. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8716. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8717. case $lt_outputfile in
  8718. *.exe|*.EXE) ;;
  8719. *)
  8720. lt_outputfile="$lt_outputfile.exe"
  8721. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8722. ;;
  8723. esac~
  8724. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8725. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8726. $RM "$lt_outputfile.manifest";
  8727. fi'
  8728. ;;
  8729. *)
  8730. # Assume MSVC wrapper
  8731. hardcode_libdir_flag_spec=' '
  8732. allow_undefined_flag=unsupported
  8733. # Tell ltmain to make .lib files, not .a files.
  8734. libext=lib
  8735. # Tell ltmain to make .dll files, not .so files.
  8736. shrext_cmds=".dll"
  8737. # FIXME: Setting linknames here is a bad hack.
  8738. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8739. # The linker will automatically build a .lib file if we build a DLL.
  8740. old_archive_from_new_cmds='true'
  8741. # FIXME: Should let the user specify the lib program.
  8742. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8743. enable_shared_with_static_runtimes=yes
  8744. ;;
  8745. esac
  8746. ;;
  8747. darwin* | rhapsody*)
  8748. archive_cmds_need_lc=no
  8749. hardcode_direct=no
  8750. hardcode_automatic=yes
  8751. hardcode_shlibpath_var=unsupported
  8752. if test "$lt_cv_ld_force_load" = "yes"; then
  8753. 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\"`'
  8754. else
  8755. whole_archive_flag_spec=''
  8756. fi
  8757. link_all_deplibs=yes
  8758. allow_undefined_flag="$_lt_dar_allow_undefined"
  8759. case $cc_basename in
  8760. ifort*) _lt_dar_can_shared=yes ;;
  8761. *) _lt_dar_can_shared=$GCC ;;
  8762. esac
  8763. if test "$_lt_dar_can_shared" = "yes"; then
  8764. output_verbose_link_cmd=func_echo_all
  8765. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8766. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8767. 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}"
  8768. 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}"
  8769. else
  8770. ld_shlibs=no
  8771. fi
  8772. ;;
  8773. dgux*)
  8774. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8775. hardcode_libdir_flag_spec='-L$libdir'
  8776. hardcode_shlibpath_var=no
  8777. ;;
  8778. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8779. # support. Future versions do this automatically, but an explicit c++rt0.o
  8780. # does not break anything, and helps significantly (at the cost of a little
  8781. # extra space).
  8782. freebsd2.2*)
  8783. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8784. hardcode_libdir_flag_spec='-R$libdir'
  8785. hardcode_direct=yes
  8786. hardcode_shlibpath_var=no
  8787. ;;
  8788. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8789. freebsd2.*)
  8790. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8791. hardcode_direct=yes
  8792. hardcode_minus_L=yes
  8793. hardcode_shlibpath_var=no
  8794. ;;
  8795. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8796. freebsd* | dragonfly*)
  8797. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8798. hardcode_libdir_flag_spec='-R$libdir'
  8799. hardcode_direct=yes
  8800. hardcode_shlibpath_var=no
  8801. ;;
  8802. hpux9*)
  8803. if test "$GCC" = yes; then
  8804. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8805. else
  8806. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8807. fi
  8808. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8809. hardcode_libdir_separator=:
  8810. hardcode_direct=yes
  8811. # hardcode_minus_L: Not really in the search PATH,
  8812. # but as the default location of the library.
  8813. hardcode_minus_L=yes
  8814. export_dynamic_flag_spec='${wl}-E'
  8815. ;;
  8816. hpux10*)
  8817. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8818. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8819. else
  8820. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8821. fi
  8822. if test "$with_gnu_ld" = no; then
  8823. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8824. hardcode_libdir_separator=:
  8825. hardcode_direct=yes
  8826. hardcode_direct_absolute=yes
  8827. export_dynamic_flag_spec='${wl}-E'
  8828. # hardcode_minus_L: Not really in the search PATH,
  8829. # but as the default location of the library.
  8830. hardcode_minus_L=yes
  8831. fi
  8832. ;;
  8833. hpux11*)
  8834. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8835. case $host_cpu in
  8836. hppa*64*)
  8837. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8838. ;;
  8839. ia64*)
  8840. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8841. ;;
  8842. *)
  8843. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8844. ;;
  8845. esac
  8846. else
  8847. case $host_cpu in
  8848. hppa*64*)
  8849. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8850. ;;
  8851. ia64*)
  8852. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8853. ;;
  8854. *)
  8855. # Older versions of the 11.00 compiler do not understand -b yet
  8856. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8858. $as_echo_n "checking if $CC understands -b... " >&6; }
  8859. if ${lt_cv_prog_compiler__b+:} false; then :
  8860. $as_echo_n "(cached) " >&6
  8861. else
  8862. lt_cv_prog_compiler__b=no
  8863. save_LDFLAGS="$LDFLAGS"
  8864. LDFLAGS="$LDFLAGS -b"
  8865. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8866. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8867. # The linker can only warn and ignore the option if not recognized
  8868. # So say no if there are warnings
  8869. if test -s conftest.err; then
  8870. # Append any errors to the config.log.
  8871. cat conftest.err 1>&5
  8872. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8873. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8874. if diff conftest.exp conftest.er2 >/dev/null; then
  8875. lt_cv_prog_compiler__b=yes
  8876. fi
  8877. else
  8878. lt_cv_prog_compiler__b=yes
  8879. fi
  8880. fi
  8881. $RM -r conftest*
  8882. LDFLAGS="$save_LDFLAGS"
  8883. fi
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8885. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8886. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8887. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8888. else
  8889. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8890. fi
  8891. ;;
  8892. esac
  8893. fi
  8894. if test "$with_gnu_ld" = no; then
  8895. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8896. hardcode_libdir_separator=:
  8897. case $host_cpu in
  8898. hppa*64*|ia64*)
  8899. hardcode_direct=no
  8900. hardcode_shlibpath_var=no
  8901. ;;
  8902. *)
  8903. hardcode_direct=yes
  8904. hardcode_direct_absolute=yes
  8905. export_dynamic_flag_spec='${wl}-E'
  8906. # hardcode_minus_L: Not really in the search PATH,
  8907. # but as the default location of the library.
  8908. hardcode_minus_L=yes
  8909. ;;
  8910. esac
  8911. fi
  8912. ;;
  8913. irix5* | irix6* | nonstopux*)
  8914. if test "$GCC" = yes; then
  8915. 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'
  8916. # Try to use the -exported_symbol ld option, if it does not
  8917. # work, assume that -exports_file does not work either and
  8918. # implicitly export all symbols.
  8919. # This should be the same for all languages, so no per-tag cache variable.
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8921. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8922. if ${lt_cv_irix_exported_symbol+:} false; then :
  8923. $as_echo_n "(cached) " >&6
  8924. else
  8925. save_LDFLAGS="$LDFLAGS"
  8926. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8928. /* end confdefs.h. */
  8929. int foo (void) { return 0; }
  8930. _ACEOF
  8931. if ac_fn_c_try_link "$LINENO"; then :
  8932. lt_cv_irix_exported_symbol=yes
  8933. else
  8934. lt_cv_irix_exported_symbol=no
  8935. fi
  8936. rm -f core conftest.err conftest.$ac_objext \
  8937. conftest$ac_exeext conftest.$ac_ext
  8938. LDFLAGS="$save_LDFLAGS"
  8939. fi
  8940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8941. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8942. if test "$lt_cv_irix_exported_symbol" = yes; then
  8943. 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'
  8944. fi
  8945. else
  8946. 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'
  8947. 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'
  8948. fi
  8949. archive_cmds_need_lc='no'
  8950. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8951. hardcode_libdir_separator=:
  8952. inherit_rpath=yes
  8953. link_all_deplibs=yes
  8954. ;;
  8955. netbsd* | netbsdelf*-gnu)
  8956. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8957. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8958. else
  8959. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8960. fi
  8961. hardcode_libdir_flag_spec='-R$libdir'
  8962. hardcode_direct=yes
  8963. hardcode_shlibpath_var=no
  8964. ;;
  8965. newsos6)
  8966. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8967. hardcode_direct=yes
  8968. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8969. hardcode_libdir_separator=:
  8970. hardcode_shlibpath_var=no
  8971. ;;
  8972. *nto* | *qnx*)
  8973. ;;
  8974. openbsd*)
  8975. if test -f /usr/libexec/ld.so; then
  8976. hardcode_direct=yes
  8977. hardcode_shlibpath_var=no
  8978. hardcode_direct_absolute=yes
  8979. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8980. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8981. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8982. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8983. export_dynamic_flag_spec='${wl}-E'
  8984. else
  8985. case $host_os in
  8986. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8987. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8988. hardcode_libdir_flag_spec='-R$libdir'
  8989. ;;
  8990. *)
  8991. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8992. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8993. ;;
  8994. esac
  8995. fi
  8996. else
  8997. ld_shlibs=no
  8998. fi
  8999. ;;
  9000. os2*)
  9001. hardcode_libdir_flag_spec='-L$libdir'
  9002. hardcode_minus_L=yes
  9003. allow_undefined_flag=unsupported
  9004. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9005. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9006. ;;
  9007. osf3*)
  9008. if test "$GCC" = yes; then
  9009. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9010. 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'
  9011. else
  9012. allow_undefined_flag=' -expect_unresolved \*'
  9013. 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'
  9014. fi
  9015. archive_cmds_need_lc='no'
  9016. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9017. hardcode_libdir_separator=:
  9018. ;;
  9019. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9020. if test "$GCC" = yes; then
  9021. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9022. 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'
  9023. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9024. else
  9025. allow_undefined_flag=' -expect_unresolved \*'
  9026. 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'
  9027. 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~
  9028. $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'
  9029. # Both c and cxx compiler support -rpath directly
  9030. hardcode_libdir_flag_spec='-rpath $libdir'
  9031. fi
  9032. archive_cmds_need_lc='no'
  9033. hardcode_libdir_separator=:
  9034. ;;
  9035. solaris*)
  9036. no_undefined_flag=' -z defs'
  9037. if test "$GCC" = yes; then
  9038. wlarc='${wl}'
  9039. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9040. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9041. $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'
  9042. else
  9043. case `$CC -V 2>&1` in
  9044. *"Compilers 5.0"*)
  9045. wlarc=''
  9046. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9047. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9048. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9049. ;;
  9050. *)
  9051. wlarc='${wl}'
  9052. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9053. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9054. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9055. ;;
  9056. esac
  9057. fi
  9058. hardcode_libdir_flag_spec='-R$libdir'
  9059. hardcode_shlibpath_var=no
  9060. case $host_os in
  9061. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9062. *)
  9063. # The compiler driver will combine and reorder linker options,
  9064. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9065. # but is careful enough not to reorder.
  9066. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9067. if test "$GCC" = yes; then
  9068. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9069. else
  9070. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9071. fi
  9072. ;;
  9073. esac
  9074. link_all_deplibs=yes
  9075. ;;
  9076. sunos4*)
  9077. if test "x$host_vendor" = xsequent; then
  9078. # Use $CC to link under sequent, because it throws in some extra .o
  9079. # files that make .init and .fini sections work.
  9080. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9081. else
  9082. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9083. fi
  9084. hardcode_libdir_flag_spec='-L$libdir'
  9085. hardcode_direct=yes
  9086. hardcode_minus_L=yes
  9087. hardcode_shlibpath_var=no
  9088. ;;
  9089. sysv4)
  9090. case $host_vendor in
  9091. sni)
  9092. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9093. hardcode_direct=yes # is this really true???
  9094. ;;
  9095. siemens)
  9096. ## LD is ld it makes a PLAMLIB
  9097. ## CC just makes a GrossModule.
  9098. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9099. reload_cmds='$CC -r -o $output$reload_objs'
  9100. hardcode_direct=no
  9101. ;;
  9102. motorola)
  9103. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9104. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9105. ;;
  9106. esac
  9107. runpath_var='LD_RUN_PATH'
  9108. hardcode_shlibpath_var=no
  9109. ;;
  9110. sysv4.3*)
  9111. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9112. hardcode_shlibpath_var=no
  9113. export_dynamic_flag_spec='-Bexport'
  9114. ;;
  9115. sysv4*MP*)
  9116. if test -d /usr/nec; then
  9117. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9118. hardcode_shlibpath_var=no
  9119. runpath_var=LD_RUN_PATH
  9120. hardcode_runpath_var=yes
  9121. ld_shlibs=yes
  9122. fi
  9123. ;;
  9124. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9125. no_undefined_flag='${wl}-z,text'
  9126. archive_cmds_need_lc=no
  9127. hardcode_shlibpath_var=no
  9128. runpath_var='LD_RUN_PATH'
  9129. if test "$GCC" = yes; then
  9130. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9131. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9132. else
  9133. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9134. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9135. fi
  9136. ;;
  9137. sysv5* | sco3.2v5* | sco5v6*)
  9138. # Note: We can NOT use -z defs as we might desire, because we do not
  9139. # link with -lc, and that would cause any symbols used from libc to
  9140. # always be unresolved, which means just about no library would
  9141. # ever link correctly. If we're not using GNU ld we use -z text
  9142. # though, which does catch some bad symbols but isn't as heavy-handed
  9143. # as -z defs.
  9144. no_undefined_flag='${wl}-z,text'
  9145. allow_undefined_flag='${wl}-z,nodefs'
  9146. archive_cmds_need_lc=no
  9147. hardcode_shlibpath_var=no
  9148. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9149. hardcode_libdir_separator=':'
  9150. link_all_deplibs=yes
  9151. export_dynamic_flag_spec='${wl}-Bexport'
  9152. runpath_var='LD_RUN_PATH'
  9153. if test "$GCC" = yes; then
  9154. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9155. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9156. else
  9157. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9158. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9159. fi
  9160. ;;
  9161. uts4*)
  9162. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9163. hardcode_libdir_flag_spec='-L$libdir'
  9164. hardcode_shlibpath_var=no
  9165. ;;
  9166. *)
  9167. ld_shlibs=no
  9168. ;;
  9169. esac
  9170. if test x$host_vendor = xsni; then
  9171. case $host in
  9172. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9173. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9174. ;;
  9175. esac
  9176. fi
  9177. fi
  9178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9179. $as_echo "$ld_shlibs" >&6; }
  9180. test "$ld_shlibs" = no && can_build_shared=no
  9181. with_gnu_ld=$with_gnu_ld
  9182. #
  9183. # Do we need to explicitly link libc?
  9184. #
  9185. case "x$archive_cmds_need_lc" in
  9186. x|xyes)
  9187. # Assume -lc should be added
  9188. archive_cmds_need_lc=yes
  9189. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9190. case $archive_cmds in
  9191. *'~'*)
  9192. # FIXME: we may have to deal with multi-command sequences.
  9193. ;;
  9194. '$CC '*)
  9195. # Test whether the compiler implicitly links with -lc since on some
  9196. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9197. # to ld, don't add -lc before -lgcc.
  9198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9199. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9200. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9201. $as_echo_n "(cached) " >&6
  9202. else
  9203. $RM conftest*
  9204. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9206. (eval $ac_compile) 2>&5
  9207. ac_status=$?
  9208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9209. test $ac_status = 0; } 2>conftest.err; then
  9210. soname=conftest
  9211. lib=conftest
  9212. libobjs=conftest.$ac_objext
  9213. deplibs=
  9214. wl=$lt_prog_compiler_wl
  9215. pic_flag=$lt_prog_compiler_pic
  9216. compiler_flags=-v
  9217. linker_flags=-v
  9218. verstring=
  9219. output_objdir=.
  9220. libname=conftest
  9221. lt_save_allow_undefined_flag=$allow_undefined_flag
  9222. allow_undefined_flag=
  9223. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9224. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9225. ac_status=$?
  9226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9227. test $ac_status = 0; }
  9228. then
  9229. lt_cv_archive_cmds_need_lc=no
  9230. else
  9231. lt_cv_archive_cmds_need_lc=yes
  9232. fi
  9233. allow_undefined_flag=$lt_save_allow_undefined_flag
  9234. else
  9235. cat conftest.err 1>&5
  9236. fi
  9237. $RM conftest*
  9238. fi
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9240. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9241. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9242. ;;
  9243. esac
  9244. fi
  9245. ;;
  9246. esac
  9247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9248. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9249. if test "$GCC" = yes; then
  9250. case $host_os in
  9251. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9252. *) lt_awk_arg="/^libraries:/" ;;
  9253. esac
  9254. case $host_os in
  9255. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9256. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9257. esac
  9258. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9259. case $lt_search_path_spec in
  9260. *\;*)
  9261. # if the path contains ";" then we assume it to be the separator
  9262. # otherwise default to the standard path separator (i.e. ":") - it is
  9263. # assumed that no part of a normal pathname contains ";" but that should
  9264. # okay in the real world where ";" in dirpaths is itself problematic.
  9265. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9266. ;;
  9267. *)
  9268. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9269. ;;
  9270. esac
  9271. # Ok, now we have the path, separated by spaces, we can step through it
  9272. # and add multilib dir if necessary.
  9273. lt_tmp_lt_search_path_spec=
  9274. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9275. for lt_sys_path in $lt_search_path_spec; do
  9276. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9277. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9278. else
  9279. test -d "$lt_sys_path" && \
  9280. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9281. fi
  9282. done
  9283. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9284. BEGIN {RS=" "; FS="/|\n";} {
  9285. lt_foo="";
  9286. lt_count=0;
  9287. for (lt_i = NF; lt_i > 0; lt_i--) {
  9288. if ($lt_i != "" && $lt_i != ".") {
  9289. if ($lt_i == "..") {
  9290. lt_count++;
  9291. } else {
  9292. if (lt_count == 0) {
  9293. lt_foo="/" $lt_i lt_foo;
  9294. } else {
  9295. lt_count--;
  9296. }
  9297. }
  9298. }
  9299. }
  9300. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9301. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9302. }'`
  9303. # AWK program above erroneously prepends '/' to C:/dos/paths
  9304. # for these hosts.
  9305. case $host_os in
  9306. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9307. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9308. esac
  9309. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9310. else
  9311. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9312. fi
  9313. library_names_spec=
  9314. libname_spec='lib$name'
  9315. soname_spec=
  9316. shrext_cmds=".so"
  9317. postinstall_cmds=
  9318. postuninstall_cmds=
  9319. finish_cmds=
  9320. finish_eval=
  9321. shlibpath_var=
  9322. shlibpath_overrides_runpath=unknown
  9323. version_type=none
  9324. dynamic_linker="$host_os ld.so"
  9325. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9326. need_lib_prefix=unknown
  9327. hardcode_into_libs=no
  9328. # when you set need_version to no, make sure it does not cause -set_version
  9329. # flags to be left without arguments
  9330. need_version=unknown
  9331. case $host_os in
  9332. aix3*)
  9333. version_type=linux # correct to gnu/linux during the next big refactor
  9334. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9335. shlibpath_var=LIBPATH
  9336. # AIX 3 has no versioning support, so we append a major version to the name.
  9337. soname_spec='${libname}${release}${shared_ext}$major'
  9338. ;;
  9339. aix[4-9]*)
  9340. version_type=linux # correct to gnu/linux during the next big refactor
  9341. need_lib_prefix=no
  9342. need_version=no
  9343. hardcode_into_libs=yes
  9344. if test "$host_cpu" = ia64; then
  9345. # AIX 5 supports IA64
  9346. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9347. shlibpath_var=LD_LIBRARY_PATH
  9348. else
  9349. # With GCC up to 2.95.x, collect2 would create an import file
  9350. # for dependence libraries. The import file would start with
  9351. # the line `#! .'. This would cause the generated library to
  9352. # depend on `.', always an invalid library. This was fixed in
  9353. # development snapshots of GCC prior to 3.0.
  9354. case $host_os in
  9355. aix4 | aix4.[01] | aix4.[01].*)
  9356. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9357. echo ' yes '
  9358. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9359. :
  9360. else
  9361. can_build_shared=no
  9362. fi
  9363. ;;
  9364. esac
  9365. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9366. # soname into executable. Probably we can add versioning support to
  9367. # collect2, so additional links can be useful in future.
  9368. if test "$aix_use_runtimelinking" = yes; then
  9369. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9370. # instead of lib<name>.a to let people know that these are not
  9371. # typical AIX shared libraries.
  9372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9373. else
  9374. # We preserve .a as extension for shared libraries through AIX4.2
  9375. # and later when we are not doing run time linking.
  9376. library_names_spec='${libname}${release}.a $libname.a'
  9377. soname_spec='${libname}${release}${shared_ext}$major'
  9378. fi
  9379. shlibpath_var=LIBPATH
  9380. fi
  9381. ;;
  9382. amigaos*)
  9383. case $host_cpu in
  9384. powerpc)
  9385. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9386. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9388. ;;
  9389. m68k)
  9390. library_names_spec='$libname.ixlibrary $libname.a'
  9391. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9392. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9393. ;;
  9394. esac
  9395. ;;
  9396. beos*)
  9397. library_names_spec='${libname}${shared_ext}'
  9398. dynamic_linker="$host_os ld.so"
  9399. shlibpath_var=LIBRARY_PATH
  9400. ;;
  9401. bsdi[45]*)
  9402. version_type=linux # correct to gnu/linux during the next big refactor
  9403. need_version=no
  9404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9405. soname_spec='${libname}${release}${shared_ext}$major'
  9406. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9407. shlibpath_var=LD_LIBRARY_PATH
  9408. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9409. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9410. # the default ld.so.conf also contains /usr/contrib/lib and
  9411. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9412. # libtool to hard-code these into programs
  9413. ;;
  9414. cygwin* | mingw* | pw32* | cegcc*)
  9415. version_type=windows
  9416. shrext_cmds=".dll"
  9417. need_version=no
  9418. need_lib_prefix=no
  9419. case $GCC,$cc_basename in
  9420. yes,*)
  9421. # gcc
  9422. library_names_spec='$libname.dll.a'
  9423. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9424. postinstall_cmds='base_file=`basename \${file}`~
  9425. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9426. dldir=$destdir/`dirname \$dlpath`~
  9427. test -d \$dldir || mkdir -p \$dldir~
  9428. $install_prog $dir/$dlname \$dldir/$dlname~
  9429. chmod a+x \$dldir/$dlname~
  9430. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9431. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9432. fi'
  9433. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9434. dlpath=$dir/\$dldll~
  9435. $RM \$dlpath'
  9436. shlibpath_overrides_runpath=yes
  9437. case $host_os in
  9438. cygwin*)
  9439. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9440. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9441. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9442. ;;
  9443. mingw* | cegcc*)
  9444. # MinGW DLLs use traditional 'lib' prefix
  9445. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9446. ;;
  9447. pw32*)
  9448. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9449. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9450. ;;
  9451. esac
  9452. dynamic_linker='Win32 ld.exe'
  9453. ;;
  9454. *,cl*)
  9455. # Native MSVC
  9456. libname_spec='$name'
  9457. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9458. library_names_spec='${libname}.dll.lib'
  9459. case $build_os in
  9460. mingw*)
  9461. sys_lib_search_path_spec=
  9462. lt_save_ifs=$IFS
  9463. IFS=';'
  9464. for lt_path in $LIB
  9465. do
  9466. IFS=$lt_save_ifs
  9467. # Let DOS variable expansion print the short 8.3 style file name.
  9468. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9469. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9470. done
  9471. IFS=$lt_save_ifs
  9472. # Convert to MSYS style.
  9473. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9474. ;;
  9475. cygwin*)
  9476. # Convert to unix form, then to dos form, then back to unix form
  9477. # but this time dos style (no spaces!) so that the unix form looks
  9478. # like /cygdrive/c/PROGRA~1:/cygdr...
  9479. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9480. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9481. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9482. ;;
  9483. *)
  9484. sys_lib_search_path_spec="$LIB"
  9485. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9486. # It is most probably a Windows format PATH.
  9487. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9488. else
  9489. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9490. fi
  9491. # FIXME: find the short name or the path components, as spaces are
  9492. # common. (e.g. "Program Files" -> "PROGRA~1")
  9493. ;;
  9494. esac
  9495. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9496. postinstall_cmds='base_file=`basename \${file}`~
  9497. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9498. dldir=$destdir/`dirname \$dlpath`~
  9499. test -d \$dldir || mkdir -p \$dldir~
  9500. $install_prog $dir/$dlname \$dldir/$dlname'
  9501. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9502. dlpath=$dir/\$dldll~
  9503. $RM \$dlpath'
  9504. shlibpath_overrides_runpath=yes
  9505. dynamic_linker='Win32 link.exe'
  9506. ;;
  9507. *)
  9508. # Assume MSVC wrapper
  9509. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9510. dynamic_linker='Win32 ld.exe'
  9511. ;;
  9512. esac
  9513. # FIXME: first we should search . and the directory the executable is in
  9514. shlibpath_var=PATH
  9515. ;;
  9516. darwin* | rhapsody*)
  9517. dynamic_linker="$host_os dyld"
  9518. version_type=darwin
  9519. need_lib_prefix=no
  9520. need_version=no
  9521. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9522. soname_spec='${libname}${release}${major}$shared_ext'
  9523. shlibpath_overrides_runpath=yes
  9524. shlibpath_var=DYLD_LIBRARY_PATH
  9525. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9526. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9527. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9528. ;;
  9529. dgux*)
  9530. version_type=linux # correct to gnu/linux during the next big refactor
  9531. need_lib_prefix=no
  9532. need_version=no
  9533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9534. soname_spec='${libname}${release}${shared_ext}$major'
  9535. shlibpath_var=LD_LIBRARY_PATH
  9536. ;;
  9537. freebsd* | dragonfly*)
  9538. # DragonFly does not have aout. When/if they implement a new
  9539. # versioning mechanism, adjust this.
  9540. if test -x /usr/bin/objformat; then
  9541. objformat=`/usr/bin/objformat`
  9542. else
  9543. case $host_os in
  9544. freebsd[23].*) objformat=aout ;;
  9545. *) objformat=elf ;;
  9546. esac
  9547. fi
  9548. version_type=freebsd-$objformat
  9549. case $version_type in
  9550. freebsd-elf*)
  9551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9552. need_version=no
  9553. need_lib_prefix=no
  9554. ;;
  9555. freebsd-*)
  9556. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9557. need_version=yes
  9558. ;;
  9559. esac
  9560. shlibpath_var=LD_LIBRARY_PATH
  9561. case $host_os in
  9562. freebsd2.*)
  9563. shlibpath_overrides_runpath=yes
  9564. ;;
  9565. freebsd3.[01]* | freebsdelf3.[01]*)
  9566. shlibpath_overrides_runpath=yes
  9567. hardcode_into_libs=yes
  9568. ;;
  9569. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9570. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9571. shlibpath_overrides_runpath=no
  9572. hardcode_into_libs=yes
  9573. ;;
  9574. *) # from 4.6 on, and DragonFly
  9575. shlibpath_overrides_runpath=yes
  9576. hardcode_into_libs=yes
  9577. ;;
  9578. esac
  9579. ;;
  9580. haiku*)
  9581. version_type=linux # correct to gnu/linux during the next big refactor
  9582. need_lib_prefix=no
  9583. need_version=no
  9584. dynamic_linker="$host_os runtime_loader"
  9585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9586. soname_spec='${libname}${release}${shared_ext}$major'
  9587. shlibpath_var=LIBRARY_PATH
  9588. shlibpath_overrides_runpath=yes
  9589. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9590. hardcode_into_libs=yes
  9591. ;;
  9592. hpux9* | hpux10* | hpux11*)
  9593. # Give a soname corresponding to the major version so that dld.sl refuses to
  9594. # link against other versions.
  9595. version_type=sunos
  9596. need_lib_prefix=no
  9597. need_version=no
  9598. case $host_cpu in
  9599. ia64*)
  9600. shrext_cmds='.so'
  9601. hardcode_into_libs=yes
  9602. dynamic_linker="$host_os dld.so"
  9603. shlibpath_var=LD_LIBRARY_PATH
  9604. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9606. soname_spec='${libname}${release}${shared_ext}$major'
  9607. if test "X$HPUX_IA64_MODE" = X32; then
  9608. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9609. else
  9610. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9611. fi
  9612. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9613. ;;
  9614. hppa*64*)
  9615. shrext_cmds='.sl'
  9616. hardcode_into_libs=yes
  9617. dynamic_linker="$host_os dld.sl"
  9618. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9619. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9621. soname_spec='${libname}${release}${shared_ext}$major'
  9622. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9623. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9624. ;;
  9625. *)
  9626. shrext_cmds='.sl'
  9627. dynamic_linker="$host_os dld.sl"
  9628. shlibpath_var=SHLIB_PATH
  9629. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9631. soname_spec='${libname}${release}${shared_ext}$major'
  9632. ;;
  9633. esac
  9634. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9635. postinstall_cmds='chmod 555 $lib'
  9636. # or fails outright, so override atomically:
  9637. install_override_mode=555
  9638. ;;
  9639. interix[3-9]*)
  9640. version_type=linux # correct to gnu/linux during the next big refactor
  9641. need_lib_prefix=no
  9642. need_version=no
  9643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9644. soname_spec='${libname}${release}${shared_ext}$major'
  9645. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=no
  9648. hardcode_into_libs=yes
  9649. ;;
  9650. irix5* | irix6* | nonstopux*)
  9651. case $host_os in
  9652. nonstopux*) version_type=nonstopux ;;
  9653. *)
  9654. if test "$lt_cv_prog_gnu_ld" = yes; then
  9655. version_type=linux # correct to gnu/linux during the next big refactor
  9656. else
  9657. version_type=irix
  9658. fi ;;
  9659. esac
  9660. need_lib_prefix=no
  9661. need_version=no
  9662. soname_spec='${libname}${release}${shared_ext}$major'
  9663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9664. case $host_os in
  9665. irix5* | nonstopux*)
  9666. libsuff= shlibsuff=
  9667. ;;
  9668. *)
  9669. case $LD in # libtool.m4 will add one of these switches to LD
  9670. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9671. libsuff= shlibsuff= libmagic=32-bit;;
  9672. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9673. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9674. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9675. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9676. *) libsuff= shlibsuff= libmagic=never-match;;
  9677. esac
  9678. ;;
  9679. esac
  9680. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9681. shlibpath_overrides_runpath=no
  9682. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9683. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9684. hardcode_into_libs=yes
  9685. ;;
  9686. # No shared lib support for Linux oldld, aout, or coff.
  9687. linux*oldld* | linux*aout* | linux*coff*)
  9688. dynamic_linker=no
  9689. ;;
  9690. # This must be glibc/ELF.
  9691. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9692. version_type=linux # correct to gnu/linux during the next big refactor
  9693. need_lib_prefix=no
  9694. need_version=no
  9695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9696. soname_spec='${libname}${release}${shared_ext}$major'
  9697. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9698. shlibpath_var=LD_LIBRARY_PATH
  9699. shlibpath_overrides_runpath=no
  9700. # Some binutils ld are patched to set DT_RUNPATH
  9701. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. lt_cv_shlibpath_overrides_runpath=no
  9705. save_LDFLAGS=$LDFLAGS
  9706. save_libdir=$libdir
  9707. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9708. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9710. /* end confdefs.h. */
  9711. int
  9712. main ()
  9713. {
  9714. ;
  9715. return 0;
  9716. }
  9717. _ACEOF
  9718. if ac_fn_c_try_link "$LINENO"; then :
  9719. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9720. lt_cv_shlibpath_overrides_runpath=yes
  9721. fi
  9722. fi
  9723. rm -f core conftest.err conftest.$ac_objext \
  9724. conftest$ac_exeext conftest.$ac_ext
  9725. LDFLAGS=$save_LDFLAGS
  9726. libdir=$save_libdir
  9727. fi
  9728. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9729. # This implies no fast_install, which is unacceptable.
  9730. # Some rework will be needed to allow for fast_install
  9731. # before this can be enabled.
  9732. hardcode_into_libs=yes
  9733. # Append ld.so.conf contents to the search path
  9734. if test -f /etc/ld.so.conf; then
  9735. 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' ' '`
  9736. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9737. fi
  9738. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9739. # powerpc, because MkLinux only supported shared libraries with the
  9740. # GNU dynamic linker. Since this was broken with cross compilers,
  9741. # most powerpc-linux boxes support dynamic linking these days and
  9742. # people can always --disable-shared, the test was removed, and we
  9743. # assume the GNU/Linux dynamic linker is in use.
  9744. dynamic_linker='GNU/Linux ld.so'
  9745. ;;
  9746. netbsdelf*-gnu)
  9747. version_type=linux
  9748. need_lib_prefix=no
  9749. need_version=no
  9750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9751. soname_spec='${libname}${release}${shared_ext}$major'
  9752. shlibpath_var=LD_LIBRARY_PATH
  9753. shlibpath_overrides_runpath=no
  9754. hardcode_into_libs=yes
  9755. dynamic_linker='NetBSD ld.elf_so'
  9756. ;;
  9757. netbsd*)
  9758. version_type=sunos
  9759. need_lib_prefix=no
  9760. need_version=no
  9761. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9763. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9764. dynamic_linker='NetBSD (a.out) ld.so'
  9765. else
  9766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9767. soname_spec='${libname}${release}${shared_ext}$major'
  9768. dynamic_linker='NetBSD ld.elf_so'
  9769. fi
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. shlibpath_overrides_runpath=yes
  9772. hardcode_into_libs=yes
  9773. ;;
  9774. newsos6)
  9775. version_type=linux # correct to gnu/linux during the next big refactor
  9776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9777. shlibpath_var=LD_LIBRARY_PATH
  9778. shlibpath_overrides_runpath=yes
  9779. ;;
  9780. *nto* | *qnx*)
  9781. version_type=qnx
  9782. need_lib_prefix=no
  9783. need_version=no
  9784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9785. soname_spec='${libname}${release}${shared_ext}$major'
  9786. shlibpath_var=LD_LIBRARY_PATH
  9787. shlibpath_overrides_runpath=no
  9788. hardcode_into_libs=yes
  9789. dynamic_linker='ldqnx.so'
  9790. ;;
  9791. openbsd*)
  9792. version_type=sunos
  9793. sys_lib_dlsearch_path_spec="/usr/lib"
  9794. need_lib_prefix=no
  9795. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9796. case $host_os in
  9797. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9798. *) need_version=no ;;
  9799. esac
  9800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9801. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9802. shlibpath_var=LD_LIBRARY_PATH
  9803. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9804. case $host_os in
  9805. openbsd2.[89] | openbsd2.[89].*)
  9806. shlibpath_overrides_runpath=no
  9807. ;;
  9808. *)
  9809. shlibpath_overrides_runpath=yes
  9810. ;;
  9811. esac
  9812. else
  9813. shlibpath_overrides_runpath=yes
  9814. fi
  9815. ;;
  9816. os2*)
  9817. libname_spec='$name'
  9818. shrext_cmds=".dll"
  9819. need_lib_prefix=no
  9820. library_names_spec='$libname${shared_ext} $libname.a'
  9821. dynamic_linker='OS/2 ld.exe'
  9822. shlibpath_var=LIBPATH
  9823. ;;
  9824. osf3* | osf4* | osf5*)
  9825. version_type=osf
  9826. need_lib_prefix=no
  9827. need_version=no
  9828. soname_spec='${libname}${release}${shared_ext}$major'
  9829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9830. shlibpath_var=LD_LIBRARY_PATH
  9831. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9832. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9833. ;;
  9834. rdos*)
  9835. dynamic_linker=no
  9836. ;;
  9837. solaris*)
  9838. version_type=linux # correct to gnu/linux during the next big refactor
  9839. need_lib_prefix=no
  9840. need_version=no
  9841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9842. soname_spec='${libname}${release}${shared_ext}$major'
  9843. shlibpath_var=LD_LIBRARY_PATH
  9844. shlibpath_overrides_runpath=yes
  9845. hardcode_into_libs=yes
  9846. # ldd complains unless libraries are executable
  9847. postinstall_cmds='chmod +x $lib'
  9848. ;;
  9849. sunos4*)
  9850. version_type=sunos
  9851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9852. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9853. shlibpath_var=LD_LIBRARY_PATH
  9854. shlibpath_overrides_runpath=yes
  9855. if test "$with_gnu_ld" = yes; then
  9856. need_lib_prefix=no
  9857. fi
  9858. need_version=yes
  9859. ;;
  9860. sysv4 | sysv4.3*)
  9861. version_type=linux # correct to gnu/linux during the next big refactor
  9862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9863. soname_spec='${libname}${release}${shared_ext}$major'
  9864. shlibpath_var=LD_LIBRARY_PATH
  9865. case $host_vendor in
  9866. sni)
  9867. shlibpath_overrides_runpath=no
  9868. need_lib_prefix=no
  9869. runpath_var=LD_RUN_PATH
  9870. ;;
  9871. siemens)
  9872. need_lib_prefix=no
  9873. ;;
  9874. motorola)
  9875. need_lib_prefix=no
  9876. need_version=no
  9877. shlibpath_overrides_runpath=no
  9878. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9879. ;;
  9880. esac
  9881. ;;
  9882. sysv4*MP*)
  9883. if test -d /usr/nec ;then
  9884. version_type=linux # correct to gnu/linux during the next big refactor
  9885. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9886. soname_spec='$libname${shared_ext}.$major'
  9887. shlibpath_var=LD_LIBRARY_PATH
  9888. fi
  9889. ;;
  9890. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9891. version_type=freebsd-elf
  9892. need_lib_prefix=no
  9893. need_version=no
  9894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9895. soname_spec='${libname}${release}${shared_ext}$major'
  9896. shlibpath_var=LD_LIBRARY_PATH
  9897. shlibpath_overrides_runpath=yes
  9898. hardcode_into_libs=yes
  9899. if test "$with_gnu_ld" = yes; then
  9900. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9901. else
  9902. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9903. case $host_os in
  9904. sco3.2v5*)
  9905. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9906. ;;
  9907. esac
  9908. fi
  9909. sys_lib_dlsearch_path_spec='/usr/lib'
  9910. ;;
  9911. tpf*)
  9912. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9913. version_type=linux # correct to gnu/linux during the next big refactor
  9914. need_lib_prefix=no
  9915. need_version=no
  9916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9917. shlibpath_var=LD_LIBRARY_PATH
  9918. shlibpath_overrides_runpath=no
  9919. hardcode_into_libs=yes
  9920. ;;
  9921. uts4*)
  9922. version_type=linux # correct to gnu/linux during the next big refactor
  9923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9924. soname_spec='${libname}${release}${shared_ext}$major'
  9925. shlibpath_var=LD_LIBRARY_PATH
  9926. ;;
  9927. *)
  9928. dynamic_linker=no
  9929. ;;
  9930. esac
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9932. $as_echo "$dynamic_linker" >&6; }
  9933. test "$dynamic_linker" = no && can_build_shared=no
  9934. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9935. if test "$GCC" = yes; then
  9936. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9937. fi
  9938. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9939. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9940. fi
  9941. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9942. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9943. fi
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9945. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9946. hardcode_action=
  9947. if test -n "$hardcode_libdir_flag_spec" ||
  9948. test -n "$runpath_var" ||
  9949. test "X$hardcode_automatic" = "Xyes" ; then
  9950. # We can hardcode non-existent directories.
  9951. if test "$hardcode_direct" != no &&
  9952. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9953. # have to relink, otherwise we might link with an installed library
  9954. # when we should be linking with a yet-to-be-installed one
  9955. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9956. test "$hardcode_minus_L" != no; then
  9957. # Linking always hardcodes the temporary library directory.
  9958. hardcode_action=relink
  9959. else
  9960. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9961. hardcode_action=immediate
  9962. fi
  9963. else
  9964. # We cannot hardcode anything, or else we can only hardcode existing
  9965. # directories.
  9966. hardcode_action=unsupported
  9967. fi
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9969. $as_echo "$hardcode_action" >&6; }
  9970. if test "$hardcode_action" = relink ||
  9971. test "$inherit_rpath" = yes; then
  9972. # Fast installation is not supported
  9973. enable_fast_install=no
  9974. elif test "$shlibpath_overrides_runpath" = yes ||
  9975. test "$enable_shared" = no; then
  9976. # Fast installation is not necessary
  9977. enable_fast_install=needless
  9978. fi
  9979. if test "x$enable_dlopen" != xyes; then
  9980. enable_dlopen=unknown
  9981. enable_dlopen_self=unknown
  9982. enable_dlopen_self_static=unknown
  9983. else
  9984. lt_cv_dlopen=no
  9985. lt_cv_dlopen_libs=
  9986. case $host_os in
  9987. beos*)
  9988. lt_cv_dlopen="load_add_on"
  9989. lt_cv_dlopen_libs=
  9990. lt_cv_dlopen_self=yes
  9991. ;;
  9992. mingw* | pw32* | cegcc*)
  9993. lt_cv_dlopen="LoadLibrary"
  9994. lt_cv_dlopen_libs=
  9995. ;;
  9996. cygwin*)
  9997. lt_cv_dlopen="dlopen"
  9998. lt_cv_dlopen_libs=
  9999. ;;
  10000. darwin*)
  10001. # if libdl is installed we need to link against it
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10003. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10004. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10005. $as_echo_n "(cached) " >&6
  10006. else
  10007. ac_check_lib_save_LIBS=$LIBS
  10008. LIBS="-ldl $LIBS"
  10009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10010. /* end confdefs.h. */
  10011. /* Override any GCC internal prototype to avoid an error.
  10012. Use char because int might match the return type of a GCC
  10013. builtin and then its argument prototype would still apply. */
  10014. #ifdef __cplusplus
  10015. extern "C"
  10016. #endif
  10017. char dlopen ();
  10018. int
  10019. main ()
  10020. {
  10021. return dlopen ();
  10022. ;
  10023. return 0;
  10024. }
  10025. _ACEOF
  10026. if ac_fn_c_try_link "$LINENO"; then :
  10027. ac_cv_lib_dl_dlopen=yes
  10028. else
  10029. ac_cv_lib_dl_dlopen=no
  10030. fi
  10031. rm -f core conftest.err conftest.$ac_objext \
  10032. conftest$ac_exeext conftest.$ac_ext
  10033. LIBS=$ac_check_lib_save_LIBS
  10034. fi
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10036. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10037. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10038. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10039. else
  10040. lt_cv_dlopen="dyld"
  10041. lt_cv_dlopen_libs=
  10042. lt_cv_dlopen_self=yes
  10043. fi
  10044. ;;
  10045. *)
  10046. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10047. if test "x$ac_cv_func_shl_load" = xyes; then :
  10048. lt_cv_dlopen="shl_load"
  10049. else
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10051. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10052. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10053. $as_echo_n "(cached) " >&6
  10054. else
  10055. ac_check_lib_save_LIBS=$LIBS
  10056. LIBS="-ldld $LIBS"
  10057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10058. /* end confdefs.h. */
  10059. /* Override any GCC internal prototype to avoid an error.
  10060. Use char because int might match the return type of a GCC
  10061. builtin and then its argument prototype would still apply. */
  10062. #ifdef __cplusplus
  10063. extern "C"
  10064. #endif
  10065. char shl_load ();
  10066. int
  10067. main ()
  10068. {
  10069. return shl_load ();
  10070. ;
  10071. return 0;
  10072. }
  10073. _ACEOF
  10074. if ac_fn_c_try_link "$LINENO"; then :
  10075. ac_cv_lib_dld_shl_load=yes
  10076. else
  10077. ac_cv_lib_dld_shl_load=no
  10078. fi
  10079. rm -f core conftest.err conftest.$ac_objext \
  10080. conftest$ac_exeext conftest.$ac_ext
  10081. LIBS=$ac_check_lib_save_LIBS
  10082. fi
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10084. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10085. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10086. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10087. else
  10088. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10089. if test "x$ac_cv_func_dlopen" = xyes; then :
  10090. lt_cv_dlopen="dlopen"
  10091. else
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10093. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10094. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10095. $as_echo_n "(cached) " >&6
  10096. else
  10097. ac_check_lib_save_LIBS=$LIBS
  10098. LIBS="-ldl $LIBS"
  10099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10100. /* end confdefs.h. */
  10101. /* Override any GCC internal prototype to avoid an error.
  10102. Use char because int might match the return type of a GCC
  10103. builtin and then its argument prototype would still apply. */
  10104. #ifdef __cplusplus
  10105. extern "C"
  10106. #endif
  10107. char dlopen ();
  10108. int
  10109. main ()
  10110. {
  10111. return dlopen ();
  10112. ;
  10113. return 0;
  10114. }
  10115. _ACEOF
  10116. if ac_fn_c_try_link "$LINENO"; then :
  10117. ac_cv_lib_dl_dlopen=yes
  10118. else
  10119. ac_cv_lib_dl_dlopen=no
  10120. fi
  10121. rm -f core conftest.err conftest.$ac_objext \
  10122. conftest$ac_exeext conftest.$ac_ext
  10123. LIBS=$ac_check_lib_save_LIBS
  10124. fi
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10126. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10127. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10128. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10129. else
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10131. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10132. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10133. $as_echo_n "(cached) " >&6
  10134. else
  10135. ac_check_lib_save_LIBS=$LIBS
  10136. LIBS="-lsvld $LIBS"
  10137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10138. /* end confdefs.h. */
  10139. /* Override any GCC internal prototype to avoid an error.
  10140. Use char because int might match the return type of a GCC
  10141. builtin and then its argument prototype would still apply. */
  10142. #ifdef __cplusplus
  10143. extern "C"
  10144. #endif
  10145. char dlopen ();
  10146. int
  10147. main ()
  10148. {
  10149. return dlopen ();
  10150. ;
  10151. return 0;
  10152. }
  10153. _ACEOF
  10154. if ac_fn_c_try_link "$LINENO"; then :
  10155. ac_cv_lib_svld_dlopen=yes
  10156. else
  10157. ac_cv_lib_svld_dlopen=no
  10158. fi
  10159. rm -f core conftest.err conftest.$ac_objext \
  10160. conftest$ac_exeext conftest.$ac_ext
  10161. LIBS=$ac_check_lib_save_LIBS
  10162. fi
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10164. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10165. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10166. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10167. else
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10169. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10170. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10171. $as_echo_n "(cached) " >&6
  10172. else
  10173. ac_check_lib_save_LIBS=$LIBS
  10174. LIBS="-ldld $LIBS"
  10175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10176. /* end confdefs.h. */
  10177. /* Override any GCC internal prototype to avoid an error.
  10178. Use char because int might match the return type of a GCC
  10179. builtin and then its argument prototype would still apply. */
  10180. #ifdef __cplusplus
  10181. extern "C"
  10182. #endif
  10183. char dld_link ();
  10184. int
  10185. main ()
  10186. {
  10187. return dld_link ();
  10188. ;
  10189. return 0;
  10190. }
  10191. _ACEOF
  10192. if ac_fn_c_try_link "$LINENO"; then :
  10193. ac_cv_lib_dld_dld_link=yes
  10194. else
  10195. ac_cv_lib_dld_dld_link=no
  10196. fi
  10197. rm -f core conftest.err conftest.$ac_objext \
  10198. conftest$ac_exeext conftest.$ac_ext
  10199. LIBS=$ac_check_lib_save_LIBS
  10200. fi
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10202. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10203. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10204. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10205. fi
  10206. fi
  10207. fi
  10208. fi
  10209. fi
  10210. fi
  10211. ;;
  10212. esac
  10213. if test "x$lt_cv_dlopen" != xno; then
  10214. enable_dlopen=yes
  10215. else
  10216. enable_dlopen=no
  10217. fi
  10218. case $lt_cv_dlopen in
  10219. dlopen)
  10220. save_CPPFLAGS="$CPPFLAGS"
  10221. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10222. save_LDFLAGS="$LDFLAGS"
  10223. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10224. save_LIBS="$LIBS"
  10225. LIBS="$lt_cv_dlopen_libs $LIBS"
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10227. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10228. if ${lt_cv_dlopen_self+:} false; then :
  10229. $as_echo_n "(cached) " >&6
  10230. else
  10231. if test "$cross_compiling" = yes; then :
  10232. lt_cv_dlopen_self=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 -fvisbility=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=yes ;;
  10307. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10308. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10309. esac
  10310. else :
  10311. # compilation failed
  10312. lt_cv_dlopen_self=no
  10313. fi
  10314. fi
  10315. rm -fr conftest*
  10316. fi
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10318. $as_echo "$lt_cv_dlopen_self" >&6; }
  10319. if test "x$lt_cv_dlopen_self" = xyes; then
  10320. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10322. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10323. if ${lt_cv_dlopen_self_static+:} false; then :
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. if test "$cross_compiling" = yes; then :
  10327. lt_cv_dlopen_self_static=cross
  10328. else
  10329. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10330. lt_status=$lt_dlunknown
  10331. cat > conftest.$ac_ext <<_LT_EOF
  10332. #line $LINENO "configure"
  10333. #include "confdefs.h"
  10334. #if HAVE_DLFCN_H
  10335. #include <dlfcn.h>
  10336. #endif
  10337. #include <stdio.h>
  10338. #ifdef RTLD_GLOBAL
  10339. # define LT_DLGLOBAL RTLD_GLOBAL
  10340. #else
  10341. # ifdef DL_GLOBAL
  10342. # define LT_DLGLOBAL DL_GLOBAL
  10343. # else
  10344. # define LT_DLGLOBAL 0
  10345. # endif
  10346. #endif
  10347. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10348. find out it does not work in some platform. */
  10349. #ifndef LT_DLLAZY_OR_NOW
  10350. # ifdef RTLD_LAZY
  10351. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10352. # else
  10353. # ifdef DL_LAZY
  10354. # define LT_DLLAZY_OR_NOW DL_LAZY
  10355. # else
  10356. # ifdef RTLD_NOW
  10357. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10358. # else
  10359. # ifdef DL_NOW
  10360. # define LT_DLLAZY_OR_NOW DL_NOW
  10361. # else
  10362. # define LT_DLLAZY_OR_NOW 0
  10363. # endif
  10364. # endif
  10365. # endif
  10366. # endif
  10367. #endif
  10368. /* When -fvisbility=hidden is used, assume the code has been annotated
  10369. correspondingly for the symbols needed. */
  10370. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10371. int fnord () __attribute__((visibility("default")));
  10372. #endif
  10373. int fnord () { return 42; }
  10374. int main ()
  10375. {
  10376. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10377. int status = $lt_dlunknown;
  10378. if (self)
  10379. {
  10380. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10381. else
  10382. {
  10383. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10384. else puts (dlerror ());
  10385. }
  10386. /* dlclose (self); */
  10387. }
  10388. else
  10389. puts (dlerror ());
  10390. return status;
  10391. }
  10392. _LT_EOF
  10393. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10394. (eval $ac_link) 2>&5
  10395. ac_status=$?
  10396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10397. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10398. (./conftest; exit; ) >&5 2>/dev/null
  10399. lt_status=$?
  10400. case x$lt_status in
  10401. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10402. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10403. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10404. esac
  10405. else :
  10406. # compilation failed
  10407. lt_cv_dlopen_self_static=no
  10408. fi
  10409. fi
  10410. rm -fr conftest*
  10411. fi
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10413. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10414. fi
  10415. CPPFLAGS="$save_CPPFLAGS"
  10416. LDFLAGS="$save_LDFLAGS"
  10417. LIBS="$save_LIBS"
  10418. ;;
  10419. esac
  10420. case $lt_cv_dlopen_self in
  10421. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10422. *) enable_dlopen_self=unknown ;;
  10423. esac
  10424. case $lt_cv_dlopen_self_static in
  10425. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10426. *) enable_dlopen_self_static=unknown ;;
  10427. esac
  10428. fi
  10429. striplib=
  10430. old_striplib=
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10432. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10433. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10434. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10435. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10437. $as_echo "yes" >&6; }
  10438. else
  10439. # FIXME - insert some real tests, host_os isn't really good enough
  10440. case $host_os in
  10441. darwin*)
  10442. if test -n "$STRIP" ; then
  10443. striplib="$STRIP -x"
  10444. old_striplib="$STRIP -S"
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10446. $as_echo "yes" >&6; }
  10447. else
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10449. $as_echo "no" >&6; }
  10450. fi
  10451. ;;
  10452. *)
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10454. $as_echo "no" >&6; }
  10455. ;;
  10456. esac
  10457. fi
  10458. # Report which library types will actually be built
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10460. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10462. $as_echo "$can_build_shared" >&6; }
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10464. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10465. test "$can_build_shared" = "no" && enable_shared=no
  10466. # On AIX, shared libraries and static libraries use the same namespace, and
  10467. # are all built from PIC.
  10468. case $host_os in
  10469. aix3*)
  10470. test "$enable_shared" = yes && enable_static=no
  10471. if test -n "$RANLIB"; then
  10472. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10473. postinstall_cmds='$RANLIB $lib'
  10474. fi
  10475. ;;
  10476. aix[4-9]*)
  10477. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10478. test "$enable_shared" = yes && enable_static=no
  10479. fi
  10480. ;;
  10481. esac
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10483. $as_echo "$enable_shared" >&6; }
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10485. $as_echo_n "checking whether to build static libraries... " >&6; }
  10486. # Make sure either enable_shared or enable_static is yes.
  10487. test "$enable_shared" = yes || enable_static=yes
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10489. $as_echo "$enable_static" >&6; }
  10490. fi
  10491. ac_ext=c
  10492. ac_cpp='$CPP $CPPFLAGS'
  10493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10496. CC="$lt_save_CC"
  10497. ac_config_commands="$ac_config_commands libtool"
  10498. # Only expand once:
  10499. # Check for the -Bsymbolic-functions linker flag
  10500. # Check whether --enable-Bsymbolic was given.
  10501. if test "${enable_Bsymbolic+set}" = set; then :
  10502. enableval=$enable_Bsymbolic;
  10503. else
  10504. enable_Bsymbolic=check
  10505. fi
  10506. if test "x$enable_Bsymbolic" = "xcheck"; then :
  10507. saved_LDFLAGS="${LDFLAGS}"
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
  10509. $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
  10510. LDFLAGS=-Wl,-Bsymbolic-functions
  10511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10512. /* end confdefs.h. */
  10513. int
  10514. main ()
  10515. {
  10516. int main (void) { return 0; }
  10517. ;
  10518. return 0;
  10519. }
  10520. _ACEOF
  10521. if ac_fn_c_try_link "$LINENO"; then :
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10523. $as_echo "yes" >&6; }
  10524. enable_Bsymbolic=yes
  10525. else
  10526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10527. $as_echo "no" >&6; }
  10528. enable_Bsymbolic=no
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext \
  10531. conftest$ac_exeext conftest.$ac_ext
  10532. LDFLAGS="${saved_LDFLAGS}"
  10533. fi
  10534. if test "x$enable_Bsymbolic" = "xyes"; then :
  10535. JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions
  10536. fi
  10537. for flag in -Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations; do
  10538. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  10540. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  10541. if eval \${$as_CACHEVAR+:} false; then :
  10542. $as_echo_n "(cached) " >&6
  10543. else
  10544. ax_check_save_flags=$CFLAGS
  10545. CFLAGS="$CFLAGS $flag"
  10546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10547. /* end confdefs.h. */
  10548. int
  10549. main ()
  10550. {
  10551. ;
  10552. return 0;
  10553. }
  10554. _ACEOF
  10555. if ac_fn_c_try_compile "$LINENO"; then :
  10556. eval "$as_CACHEVAR=yes"
  10557. else
  10558. eval "$as_CACHEVAR=no"
  10559. fi
  10560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10561. CFLAGS=$ax_check_save_flags
  10562. fi
  10563. eval ac_res=\$$as_CACHEVAR
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10565. $as_echo "$ac_res" >&6; }
  10566. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  10567. if ${CFLAGS+:} false; then :
  10568. case " $CFLAGS " in #(
  10569. *" $flag "*) :
  10570. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  10571. (: CFLAGS already contains $flag) 2>&5
  10572. ac_status=$?
  10573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10574. test $ac_status = 0; } ;; #(
  10575. *) :
  10576. as_fn_append CFLAGS " $flag"
  10577. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  10578. (: CFLAGS="$CFLAGS") 2>&5
  10579. ac_status=$?
  10580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10581. test $ac_status = 0; }
  10582. ;;
  10583. esac
  10584. else
  10585. CFLAGS=$flag
  10586. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  10587. (: CFLAGS="$CFLAGS") 2>&5
  10588. ac_status=$?
  10589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10590. test $ac_status = 0; }
  10591. fi
  10592. else
  10593. :
  10594. fi
  10595. done
  10596. for flag in -Wextra -Wwrite-string -Wno-unused-parameter; do
  10597. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  10599. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  10600. if eval \${$as_CACHEVAR+:} false; then :
  10601. $as_echo_n "(cached) " >&6
  10602. else
  10603. ax_check_save_flags=$CFLAGS
  10604. CFLAGS="$CFLAGS $flag"
  10605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10606. /* end confdefs.h. */
  10607. int
  10608. main ()
  10609. {
  10610. ;
  10611. return 0;
  10612. }
  10613. _ACEOF
  10614. if ac_fn_c_try_compile "$LINENO"; then :
  10615. eval "$as_CACHEVAR=yes"
  10616. else
  10617. eval "$as_CACHEVAR=no"
  10618. fi
  10619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10620. CFLAGS=$ax_check_save_flags
  10621. fi
  10622. eval ac_res=\$$as_CACHEVAR
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10624. $as_echo "$ac_res" >&6; }
  10625. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  10626. if ${CFLAGS+:} false; then :
  10627. case " $CFLAGS " in #(
  10628. *" $flag "*) :
  10629. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  10630. (: CFLAGS already contains $flag) 2>&5
  10631. ac_status=$?
  10632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10633. test $ac_status = 0; } ;; #(
  10634. *) :
  10635. as_fn_append CFLAGS " $flag"
  10636. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  10637. (: CFLAGS="$CFLAGS") 2>&5
  10638. ac_status=$?
  10639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10640. test $ac_status = 0; }
  10641. ;;
  10642. esac
  10643. else
  10644. CFLAGS=$flag
  10645. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  10646. (: CFLAGS="$CFLAGS") 2>&5
  10647. ac_status=$?
  10648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10649. test $ac_status = 0; }
  10650. fi
  10651. else
  10652. :
  10653. fi
  10654. done
  10655. for flag in -D_GNU_SOURCE -D_REENTRANT; do
  10656. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  10658. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  10659. if eval \${$as_CACHEVAR+:} false; then :
  10660. $as_echo_n "(cached) " >&6
  10661. else
  10662. ax_check_save_flags=$CFLAGS
  10663. CFLAGS="$CFLAGS $flag"
  10664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10665. /* end confdefs.h. */
  10666. int
  10667. main ()
  10668. {
  10669. ;
  10670. return 0;
  10671. }
  10672. _ACEOF
  10673. if ac_fn_c_try_compile "$LINENO"; then :
  10674. eval "$as_CACHEVAR=yes"
  10675. else
  10676. eval "$as_CACHEVAR=no"
  10677. fi
  10678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10679. CFLAGS=$ax_check_save_flags
  10680. fi
  10681. eval ac_res=\$$as_CACHEVAR
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10683. $as_echo "$ac_res" >&6; }
  10684. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  10685. if ${CFLAGS+:} false; then :
  10686. case " $CFLAGS " in #(
  10687. *" $flag "*) :
  10688. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  10689. (: CFLAGS already contains $flag) 2>&5
  10690. ac_status=$?
  10691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10692. test $ac_status = 0; } ;; #(
  10693. *) :
  10694. as_fn_append CFLAGS " $flag"
  10695. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  10696. (: CFLAGS="$CFLAGS") 2>&5
  10697. ac_status=$?
  10698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10699. test $ac_status = 0; }
  10700. ;;
  10701. esac
  10702. else
  10703. CFLAGS=$flag
  10704. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  10705. (: CFLAGS="$CFLAGS") 2>&5
  10706. ac_status=$?
  10707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10708. test $ac_status = 0; }
  10709. fi
  10710. else
  10711. :
  10712. fi
  10713. done
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10715. $as_echo_n "checking size of int... " >&6; }
  10716. if ${ac_cv_sizeof_int+:} false; then :
  10717. $as_echo_n "(cached) " >&6
  10718. else
  10719. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  10720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10721. /* end confdefs.h. */
  10722. #include "confdefs.h"
  10723. #include <sys/types.h>
  10724. int
  10725. main ()
  10726. {
  10727. switch (0) case 0: case (sizeof (int) == $ac_size):;
  10728. ;
  10729. return 0;
  10730. }
  10731. _ACEOF
  10732. if ac_fn_c_try_compile "$LINENO"; then :
  10733. ac_cv_sizeof_int=$ac_size
  10734. fi
  10735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10736. if test x$ac_cv_sizeof_int != x ; then break; fi
  10737. done
  10738. fi
  10739. if test x$ac_cv_sizeof_int = x ; then
  10740. as_fn_error $? "cannot determine a size for int" "$LINENO" 5
  10741. fi
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10743. $as_echo "$ac_cv_sizeof_int" >&6; }
  10744. cat >>confdefs.h <<_ACEOF
  10745. #define SIZEOF_INT $ac_cv_sizeof_int
  10746. _ACEOF
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10748. $as_echo_n "checking size of long... " >&6; }
  10749. if ${ac_cv_sizeof_long+:} false; then :
  10750. $as_echo_n "(cached) " >&6
  10751. else
  10752. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  10753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10754. /* end confdefs.h. */
  10755. #include "confdefs.h"
  10756. #include <sys/types.h>
  10757. int
  10758. main ()
  10759. {
  10760. switch (0) case 0: case (sizeof (long) == $ac_size):;
  10761. ;
  10762. return 0;
  10763. }
  10764. _ACEOF
  10765. if ac_fn_c_try_compile "$LINENO"; then :
  10766. ac_cv_sizeof_long=$ac_size
  10767. fi
  10768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10769. if test x$ac_cv_sizeof_long != x ; then break; fi
  10770. done
  10771. fi
  10772. if test x$ac_cv_sizeof_long = x ; then
  10773. as_fn_error $? "cannot determine a size for long" "$LINENO" 5
  10774. fi
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10776. $as_echo "$ac_cv_sizeof_long" >&6; }
  10777. cat >>confdefs.h <<_ACEOF
  10778. #define SIZEOF_LONG $ac_cv_sizeof_long
  10779. _ACEOF
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10781. $as_echo_n "checking size of long long... " >&6; }
  10782. if ${ac_cv_sizeof_long_long+:} false; then :
  10783. $as_echo_n "(cached) " >&6
  10784. else
  10785. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  10786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10787. /* end confdefs.h. */
  10788. #include "confdefs.h"
  10789. #include <sys/types.h>
  10790. int
  10791. main ()
  10792. {
  10793. switch (0) case 0: case (sizeof (long long) == $ac_size):;
  10794. ;
  10795. return 0;
  10796. }
  10797. _ACEOF
  10798. if ac_fn_c_try_compile "$LINENO"; then :
  10799. ac_cv_sizeof_long_long=$ac_size
  10800. fi
  10801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10802. if test x$ac_cv_sizeof_long_long != x ; then break; fi
  10803. done
  10804. fi
  10805. if test x$ac_cv_sizeof_long_long = x ; then
  10806. as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
  10807. fi
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10809. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10810. cat >>confdefs.h <<_ACEOF
  10811. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10812. _ACEOF
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  10814. $as_echo_n "checking size of size_t... " >&6; }
  10815. if ${ac_cv_sizeof_size_t+:} false; then :
  10816. $as_echo_n "(cached) " >&6
  10817. else
  10818. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  10819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10820. /* end confdefs.h. */
  10821. #include "confdefs.h"
  10822. #include <sys/types.h>
  10823. #include <stdint.h>
  10824. int
  10825. main ()
  10826. {
  10827. switch (0) case 0: case (sizeof (size_t) == $ac_size):;
  10828. ;
  10829. return 0;
  10830. }
  10831. _ACEOF
  10832. if ac_fn_c_try_compile "$LINENO"; then :
  10833. ac_cv_sizeof_size_t=$ac_size
  10834. fi
  10835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10836. if test x$ac_cv_sizeof_size_t != x ; then break; fi
  10837. done
  10838. fi
  10839. if test x$ac_cv_sizeof_size_t = x ; then
  10840. as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
  10841. fi
  10842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  10843. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  10844. cat >>confdefs.h <<_ACEOF
  10845. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  10846. _ACEOF
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
  10848. $as_echo_n "checking size of int64_t... " >&6; }
  10849. if ${ac_cv_sizeof_int64_t+:} false; then :
  10850. $as_echo_n "(cached) " >&6
  10851. else
  10852. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  10853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10854. /* end confdefs.h. */
  10855. #include "confdefs.h"
  10856. #include <sys/types.h>
  10857. #include <stdint.h>
  10858. int
  10859. main ()
  10860. {
  10861. switch (0) case 0: case (sizeof (int64_t) == $ac_size):;
  10862. ;
  10863. return 0;
  10864. }
  10865. _ACEOF
  10866. if ac_fn_c_try_compile "$LINENO"; then :
  10867. ac_cv_sizeof_int64_t=$ac_size
  10868. fi
  10869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10870. if test x$ac_cv_sizeof_int64_t != x ; then break; fi
  10871. done
  10872. fi
  10873. if test x$ac_cv_sizeof_int64_t = x ; then
  10874. as_fn_error $? "cannot determine a size for int64_t" "$LINENO" 5
  10875. fi
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
  10877. $as_echo "$ac_cv_sizeof_int64_t" >&6; }
  10878. cat >>confdefs.h <<_ACEOF
  10879. #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
  10880. _ACEOF
  10881. ac_config_files="$ac_config_files Makefile json-c.pc tests/Makefile json-c-uninstalled.pc"
  10882. cat >confcache <<\_ACEOF
  10883. # This file is a shell script that caches the results of configure
  10884. # tests run on this system so they can be shared between configure
  10885. # scripts and configure runs, see configure's option --config-cache.
  10886. # It is not useful on other systems. If it contains results you don't
  10887. # want to keep, you may remove or edit it.
  10888. #
  10889. # config.status only pays attention to the cache file if you give it
  10890. # the --recheck option to rerun configure.
  10891. #
  10892. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10893. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10894. # following values.
  10895. _ACEOF
  10896. # The following way of writing the cache mishandles newlines in values,
  10897. # but we know of no workaround that is simple, portable, and efficient.
  10898. # So, we kill variables containing newlines.
  10899. # Ultrix sh set writes to stderr and can't be redirected directly,
  10900. # and sets the high bit in the cache file unless we assign to the vars.
  10901. (
  10902. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10903. eval ac_val=\$$ac_var
  10904. case $ac_val in #(
  10905. *${as_nl}*)
  10906. case $ac_var in #(
  10907. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10908. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10909. esac
  10910. case $ac_var in #(
  10911. _ | IFS | as_nl) ;; #(
  10912. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10913. *) { eval $ac_var=; unset $ac_var;} ;;
  10914. esac ;;
  10915. esac
  10916. done
  10917. (set) 2>&1 |
  10918. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10919. *${as_nl}ac_space=\ *)
  10920. # `set' does not quote correctly, so add quotes: double-quote
  10921. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10922. sed -n \
  10923. "s/'/'\\\\''/g;
  10924. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10925. ;; #(
  10926. *)
  10927. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10928. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10929. ;;
  10930. esac |
  10931. sort
  10932. ) |
  10933. sed '
  10934. /^ac_cv_env_/b end
  10935. t clear
  10936. :clear
  10937. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10938. t end
  10939. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10940. :end' >>confcache
  10941. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10942. if test -w "$cache_file"; then
  10943. if test "x$cache_file" != "x/dev/null"; then
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10945. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10946. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10947. cat confcache >"$cache_file"
  10948. else
  10949. case $cache_file in #(
  10950. */* | ?:*)
  10951. mv -f confcache "$cache_file"$$ &&
  10952. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10953. *)
  10954. mv -f confcache "$cache_file" ;;
  10955. esac
  10956. fi
  10957. fi
  10958. else
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10960. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10961. fi
  10962. fi
  10963. rm -f confcache
  10964. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10965. # Let make expand exec_prefix.
  10966. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10967. DEFS=-DHAVE_CONFIG_H
  10968. ac_libobjs=
  10969. ac_ltlibobjs=
  10970. U=
  10971. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10972. # 1. Remove the extension, and $U if already installed.
  10973. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10974. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10975. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10976. # will be set to the directory where LIBOBJS objects are built.
  10977. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10978. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10979. done
  10980. LIBOBJS=$ac_libobjs
  10981. LTLIBOBJS=$ac_ltlibobjs
  10982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10983. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10984. if test -n "$am_sleep_pid"; then
  10985. # Hide warnings about reused PIDs.
  10986. wait $am_sleep_pid 2>/dev/null
  10987. fi
  10988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10989. $as_echo "done" >&6; }
  10990. if test -n "$EXEEXT"; then
  10991. am__EXEEXT_TRUE=
  10992. am__EXEEXT_FALSE='#'
  10993. else
  10994. am__EXEEXT_TRUE='#'
  10995. am__EXEEXT_FALSE=
  10996. fi
  10997. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10998. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10999. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11000. fi
  11001. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11002. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11003. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11004. fi
  11005. : "${CONFIG_STATUS=./config.status}"
  11006. ac_write_fail=0
  11007. ac_clean_files_save=$ac_clean_files
  11008. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11010. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11011. as_write_fail=0
  11012. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11013. #! $SHELL
  11014. # Generated by $as_me.
  11015. # Run this file to recreate the current configuration.
  11016. # Compiler output produced by configure, useful for debugging
  11017. # configure, is in config.log if it exists.
  11018. debug=false
  11019. ac_cs_recheck=false
  11020. ac_cs_silent=false
  11021. SHELL=\${CONFIG_SHELL-$SHELL}
  11022. export SHELL
  11023. _ASEOF
  11024. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11025. ## -------------------- ##
  11026. ## M4sh Initialization. ##
  11027. ## -------------------- ##
  11028. # Be more Bourne compatible
  11029. DUALCASE=1; export DUALCASE # for MKS sh
  11030. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11031. emulate sh
  11032. NULLCMD=:
  11033. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11034. # is contrary to our usage. Disable this feature.
  11035. alias -g '${1+"$@"}'='"$@"'
  11036. setopt NO_GLOB_SUBST
  11037. else
  11038. case `(set -o) 2>/dev/null` in #(
  11039. *posix*) :
  11040. set -o posix ;; #(
  11041. *) :
  11042. ;;
  11043. esac
  11044. fi
  11045. as_nl='
  11046. '
  11047. export as_nl
  11048. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11049. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11050. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11051. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11052. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11053. # but without wasting forks for bash or zsh.
  11054. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11055. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11056. as_echo='print -r --'
  11057. as_echo_n='print -rn --'
  11058. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11059. as_echo='printf %s\n'
  11060. as_echo_n='printf %s'
  11061. else
  11062. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11063. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11064. as_echo_n='/usr/ucb/echo -n'
  11065. else
  11066. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11067. as_echo_n_body='eval
  11068. arg=$1;
  11069. case $arg in #(
  11070. *"$as_nl"*)
  11071. expr "X$arg" : "X\\(.*\\)$as_nl";
  11072. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11073. esac;
  11074. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11075. '
  11076. export as_echo_n_body
  11077. as_echo_n='sh -c $as_echo_n_body as_echo'
  11078. fi
  11079. export as_echo_body
  11080. as_echo='sh -c $as_echo_body as_echo'
  11081. fi
  11082. # The user is always right.
  11083. if test "${PATH_SEPARATOR+set}" != set; then
  11084. PATH_SEPARATOR=:
  11085. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11086. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11087. PATH_SEPARATOR=';'
  11088. }
  11089. fi
  11090. # IFS
  11091. # We need space, tab and new line, in precisely that order. Quoting is
  11092. # there to prevent editors from complaining about space-tab.
  11093. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11094. # splitting by setting IFS to empty value.)
  11095. IFS=" "" $as_nl"
  11096. # Find who we are. Look in the path if we contain no directory separator.
  11097. as_myself=
  11098. case $0 in #((
  11099. *[\\/]* ) as_myself=$0 ;;
  11100. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11101. for as_dir in $PATH
  11102. do
  11103. IFS=$as_save_IFS
  11104. test -z "$as_dir" && as_dir=.
  11105. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11106. done
  11107. IFS=$as_save_IFS
  11108. ;;
  11109. esac
  11110. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11111. # in which case we are not to be found in the path.
  11112. if test "x$as_myself" = x; then
  11113. as_myself=$0
  11114. fi
  11115. if test ! -f "$as_myself"; then
  11116. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11117. exit 1
  11118. fi
  11119. # Unset variables that we do not need and which cause bugs (e.g. in
  11120. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11121. # suppresses any "Segmentation fault" message there. '((' could
  11122. # trigger a bug in pdksh 5.2.14.
  11123. for as_var in BASH_ENV ENV MAIL MAILPATH
  11124. do eval test x\${$as_var+set} = xset \
  11125. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11126. done
  11127. PS1='$ '
  11128. PS2='> '
  11129. PS4='+ '
  11130. # NLS nuisances.
  11131. LC_ALL=C
  11132. export LC_ALL
  11133. LANGUAGE=C
  11134. export LANGUAGE
  11135. # CDPATH.
  11136. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11137. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11138. # ----------------------------------------
  11139. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11140. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11141. # script with STATUS, using 1 if that was 0.
  11142. as_fn_error ()
  11143. {
  11144. as_status=$1; test $as_status -eq 0 && as_status=1
  11145. if test "$4"; then
  11146. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11147. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11148. fi
  11149. $as_echo "$as_me: error: $2" >&2
  11150. as_fn_exit $as_status
  11151. } # as_fn_error
  11152. # as_fn_set_status STATUS
  11153. # -----------------------
  11154. # Set $? to STATUS, without forking.
  11155. as_fn_set_status ()
  11156. {
  11157. return $1
  11158. } # as_fn_set_status
  11159. # as_fn_exit STATUS
  11160. # -----------------
  11161. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11162. as_fn_exit ()
  11163. {
  11164. set +e
  11165. as_fn_set_status $1
  11166. exit $1
  11167. } # as_fn_exit
  11168. # as_fn_unset VAR
  11169. # ---------------
  11170. # Portably unset VAR.
  11171. as_fn_unset ()
  11172. {
  11173. { eval $1=; unset $1;}
  11174. }
  11175. as_unset=as_fn_unset
  11176. # as_fn_append VAR VALUE
  11177. # ----------------------
  11178. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11179. # advantage of any shell optimizations that allow amortized linear growth over
  11180. # repeated appends, instead of the typical quadratic growth present in naive
  11181. # implementations.
  11182. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11183. eval 'as_fn_append ()
  11184. {
  11185. eval $1+=\$2
  11186. }'
  11187. else
  11188. as_fn_append ()
  11189. {
  11190. eval $1=\$$1\$2
  11191. }
  11192. fi # as_fn_append
  11193. # as_fn_arith ARG...
  11194. # ------------------
  11195. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11196. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11197. # must be portable across $(()) and expr.
  11198. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11199. eval 'as_fn_arith ()
  11200. {
  11201. as_val=$(( $* ))
  11202. }'
  11203. else
  11204. as_fn_arith ()
  11205. {
  11206. as_val=`expr "$@" || test $? -eq 1`
  11207. }
  11208. fi # as_fn_arith
  11209. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11210. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11211. as_expr=expr
  11212. else
  11213. as_expr=false
  11214. fi
  11215. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11216. as_basename=basename
  11217. else
  11218. as_basename=false
  11219. fi
  11220. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11221. as_dirname=dirname
  11222. else
  11223. as_dirname=false
  11224. fi
  11225. as_me=`$as_basename -- "$0" ||
  11226. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11227. X"$0" : 'X\(//\)$' \| \
  11228. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11229. $as_echo X/"$0" |
  11230. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11231. s//\1/
  11232. q
  11233. }
  11234. /^X\/\(\/\/\)$/{
  11235. s//\1/
  11236. q
  11237. }
  11238. /^X\/\(\/\).*/{
  11239. s//\1/
  11240. q
  11241. }
  11242. s/.*/./; q'`
  11243. # Avoid depending upon Character Ranges.
  11244. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11245. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11246. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11247. as_cr_digits='0123456789'
  11248. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11249. ECHO_C= ECHO_N= ECHO_T=
  11250. case `echo -n x` in #(((((
  11251. -n*)
  11252. case `echo 'xy\c'` in
  11253. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11254. xy) ECHO_C='\c';;
  11255. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11256. ECHO_T=' ';;
  11257. esac;;
  11258. *)
  11259. ECHO_N='-n';;
  11260. esac
  11261. rm -f conf$$ conf$$.exe conf$$.file
  11262. if test -d conf$$.dir; then
  11263. rm -f conf$$.dir/conf$$.file
  11264. else
  11265. rm -f conf$$.dir
  11266. mkdir conf$$.dir 2>/dev/null
  11267. fi
  11268. if (echo >conf$$.file) 2>/dev/null; then
  11269. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11270. as_ln_s='ln -s'
  11271. # ... but there are two gotchas:
  11272. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11273. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11274. # In both cases, we have to default to `cp -pR'.
  11275. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11276. as_ln_s='cp -pR'
  11277. elif ln conf$$.file conf$$ 2>/dev/null; then
  11278. as_ln_s=ln
  11279. else
  11280. as_ln_s='cp -pR'
  11281. fi
  11282. else
  11283. as_ln_s='cp -pR'
  11284. fi
  11285. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11286. rmdir conf$$.dir 2>/dev/null
  11287. # as_fn_mkdir_p
  11288. # -------------
  11289. # Create "$as_dir" as a directory, including parents if necessary.
  11290. as_fn_mkdir_p ()
  11291. {
  11292. case $as_dir in #(
  11293. -*) as_dir=./$as_dir;;
  11294. esac
  11295. test -d "$as_dir" || eval $as_mkdir_p || {
  11296. as_dirs=
  11297. while :; do
  11298. case $as_dir in #(
  11299. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11300. *) as_qdir=$as_dir;;
  11301. esac
  11302. as_dirs="'$as_qdir' $as_dirs"
  11303. as_dir=`$as_dirname -- "$as_dir" ||
  11304. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11305. X"$as_dir" : 'X\(//\)[^/]' \| \
  11306. X"$as_dir" : 'X\(//\)$' \| \
  11307. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11308. $as_echo X"$as_dir" |
  11309. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11310. s//\1/
  11311. q
  11312. }
  11313. /^X\(\/\/\)[^/].*/{
  11314. s//\1/
  11315. q
  11316. }
  11317. /^X\(\/\/\)$/{
  11318. s//\1/
  11319. q
  11320. }
  11321. /^X\(\/\).*/{
  11322. s//\1/
  11323. q
  11324. }
  11325. s/.*/./; q'`
  11326. test -d "$as_dir" && break
  11327. done
  11328. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11329. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11330. } # as_fn_mkdir_p
  11331. if mkdir -p . 2>/dev/null; then
  11332. as_mkdir_p='mkdir -p "$as_dir"'
  11333. else
  11334. test -d ./-p && rmdir ./-p
  11335. as_mkdir_p=false
  11336. fi
  11337. # as_fn_executable_p FILE
  11338. # -----------------------
  11339. # Test if FILE is an executable regular file.
  11340. as_fn_executable_p ()
  11341. {
  11342. test -f "$1" && test -x "$1"
  11343. } # as_fn_executable_p
  11344. as_test_x='test -x'
  11345. as_executable_p=as_fn_executable_p
  11346. # Sed expression to map a string onto a valid CPP name.
  11347. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11348. # Sed expression to map a string onto a valid variable name.
  11349. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11350. exec 6>&1
  11351. ## ----------------------------------- ##
  11352. ## Main body of $CONFIG_STATUS script. ##
  11353. ## ----------------------------------- ##
  11354. _ASEOF
  11355. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11356. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11357. # Save the log message, to keep $0 and so on meaningful, and to
  11358. # report actual input values of CONFIG_FILES etc. instead of their
  11359. # values after options handling.
  11360. ac_log="
  11361. This file was extended by json-c $as_me 0.13, which was
  11362. generated by GNU Autoconf 2.69. Invocation command line was
  11363. CONFIG_FILES = $CONFIG_FILES
  11364. CONFIG_HEADERS = $CONFIG_HEADERS
  11365. CONFIG_LINKS = $CONFIG_LINKS
  11366. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11367. $ $0 $@
  11368. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11369. "
  11370. _ACEOF
  11371. case $ac_config_files in *"
  11372. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11373. esac
  11374. case $ac_config_headers in *"
  11375. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11376. esac
  11377. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11378. # Files that config.status was made for.
  11379. config_files="$ac_config_files"
  11380. config_headers="$ac_config_headers"
  11381. config_commands="$ac_config_commands"
  11382. _ACEOF
  11383. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11384. ac_cs_usage="\
  11385. \`$as_me' instantiates files and other configuration actions
  11386. from templates according to the current configuration. Unless the files
  11387. and actions are specified as TAGs, all are instantiated by default.
  11388. Usage: $0 [OPTION]... [TAG]...
  11389. -h, --help print this help, then exit
  11390. -V, --version print version number and configuration settings, then exit
  11391. --config print configuration, then exit
  11392. -q, --quiet, --silent
  11393. do not print progress messages
  11394. -d, --debug don't remove temporary files
  11395. --recheck update $as_me by reconfiguring in the same conditions
  11396. --file=FILE[:TEMPLATE]
  11397. instantiate the configuration file FILE
  11398. --header=FILE[:TEMPLATE]
  11399. instantiate the configuration header FILE
  11400. Configuration files:
  11401. $config_files
  11402. Configuration headers:
  11403. $config_headers
  11404. Configuration commands:
  11405. $config_commands
  11406. Report bugs to <json-c@googlegroups.com>."
  11407. _ACEOF
  11408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11409. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11410. ac_cs_version="\\
  11411. json-c config.status 0.13
  11412. configured by $0, generated by GNU Autoconf 2.69,
  11413. with options \\"\$ac_cs_config\\"
  11414. Copyright (C) 2012 Free Software Foundation, Inc.
  11415. This config.status script is free software; the Free Software Foundation
  11416. gives unlimited permission to copy, distribute and modify it."
  11417. ac_pwd='$ac_pwd'
  11418. srcdir='$srcdir'
  11419. INSTALL='$INSTALL'
  11420. MKDIR_P='$MKDIR_P'
  11421. AWK='$AWK'
  11422. test -n "\$AWK" || AWK=awk
  11423. _ACEOF
  11424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11425. # The default lists apply if the user does not specify any file.
  11426. ac_need_defaults=:
  11427. while test $# != 0
  11428. do
  11429. case $1 in
  11430. --*=?*)
  11431. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11432. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11433. ac_shift=:
  11434. ;;
  11435. --*=)
  11436. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11437. ac_optarg=
  11438. ac_shift=:
  11439. ;;
  11440. *)
  11441. ac_option=$1
  11442. ac_optarg=$2
  11443. ac_shift=shift
  11444. ;;
  11445. esac
  11446. case $ac_option in
  11447. # Handling of the options.
  11448. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11449. ac_cs_recheck=: ;;
  11450. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11451. $as_echo "$ac_cs_version"; exit ;;
  11452. --config | --confi | --conf | --con | --co | --c )
  11453. $as_echo "$ac_cs_config"; exit ;;
  11454. --debug | --debu | --deb | --de | --d | -d )
  11455. debug=: ;;
  11456. --file | --fil | --fi | --f )
  11457. $ac_shift
  11458. case $ac_optarg in
  11459. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11460. '') as_fn_error $? "missing file argument" ;;
  11461. esac
  11462. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11463. ac_need_defaults=false;;
  11464. --header | --heade | --head | --hea )
  11465. $ac_shift
  11466. case $ac_optarg in
  11467. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11468. esac
  11469. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11470. ac_need_defaults=false;;
  11471. --he | --h)
  11472. # Conflict between --help and --header
  11473. as_fn_error $? "ambiguous option: \`$1'
  11474. Try \`$0 --help' for more information.";;
  11475. --help | --hel | -h )
  11476. $as_echo "$ac_cs_usage"; exit ;;
  11477. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11478. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11479. ac_cs_silent=: ;;
  11480. # This is an error.
  11481. -*) as_fn_error $? "unrecognized option: \`$1'
  11482. Try \`$0 --help' for more information." ;;
  11483. *) as_fn_append ac_config_targets " $1"
  11484. ac_need_defaults=false ;;
  11485. esac
  11486. shift
  11487. done
  11488. ac_configure_extra_args=
  11489. if $ac_cs_silent; then
  11490. exec 6>/dev/null
  11491. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11492. fi
  11493. _ACEOF
  11494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11495. if \$ac_cs_recheck; then
  11496. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11497. shift
  11498. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11499. CONFIG_SHELL='$SHELL'
  11500. export CONFIG_SHELL
  11501. exec "\$@"
  11502. fi
  11503. _ACEOF
  11504. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11505. exec 5>>config.log
  11506. {
  11507. echo
  11508. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11509. ## Running $as_me. ##
  11510. _ASBOX
  11511. $as_echo "$ac_log"
  11512. } >&5
  11513. _ACEOF
  11514. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11515. #
  11516. # INIT-COMMANDS
  11517. #
  11518. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11519. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11520. # if CDPATH is set.
  11521. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11522. sed_quote_subst='$sed_quote_subst'
  11523. double_quote_subst='$double_quote_subst'
  11524. delay_variable_subst='$delay_variable_subst'
  11525. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11526. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11527. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11528. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11529. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11530. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11531. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11532. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11533. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11534. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11535. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11536. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11537. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11538. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11539. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11540. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11541. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11542. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11543. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11544. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11545. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11546. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11547. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11548. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11549. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11550. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11551. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11552. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11553. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11554. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11555. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11556. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11557. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11558. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11559. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11560. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11561. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11562. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11563. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11564. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11565. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11566. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11567. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11568. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11569. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11570. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11571. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11572. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11573. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11574. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11575. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11576. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11577. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11578. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11579. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11580. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11581. 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"`'
  11582. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11583. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11584. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11585. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11586. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11587. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11588. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11589. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11590. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11591. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11592. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11593. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11594. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11595. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11596. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11597. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11598. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11599. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11600. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11601. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11602. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11603. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11604. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11605. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11606. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11607. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11608. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11609. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11610. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11611. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11612. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11613. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11614. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11615. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11616. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11617. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11618. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11619. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11620. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11621. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11622. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11623. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11624. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11625. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11626. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11627. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11628. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11629. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11630. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11631. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11632. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11633. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11634. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11635. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11636. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11637. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11638. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11639. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11640. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11641. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11642. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11643. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11644. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11645. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11646. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11647. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11648. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11649. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11650. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11651. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11652. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11653. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11654. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11655. LTCC='$LTCC'
  11656. LTCFLAGS='$LTCFLAGS'
  11657. compiler='$compiler_DEFAULT'
  11658. # A function that is used when there is no print builtin or printf.
  11659. func_fallback_echo ()
  11660. {
  11661. eval 'cat <<_LTECHO_EOF
  11662. \$1
  11663. _LTECHO_EOF'
  11664. }
  11665. # Quote evaled strings.
  11666. for var in SHELL \
  11667. ECHO \
  11668. PATH_SEPARATOR \
  11669. SED \
  11670. GREP \
  11671. EGREP \
  11672. FGREP \
  11673. LD \
  11674. NM \
  11675. LN_S \
  11676. lt_SP2NL \
  11677. lt_NL2SP \
  11678. reload_flag \
  11679. OBJDUMP \
  11680. deplibs_check_method \
  11681. file_magic_cmd \
  11682. file_magic_glob \
  11683. want_nocaseglob \
  11684. DLLTOOL \
  11685. sharedlib_from_linklib_cmd \
  11686. AR \
  11687. AR_FLAGS \
  11688. archiver_list_spec \
  11689. STRIP \
  11690. RANLIB \
  11691. CC \
  11692. CFLAGS \
  11693. compiler \
  11694. lt_cv_sys_global_symbol_pipe \
  11695. lt_cv_sys_global_symbol_to_cdecl \
  11696. lt_cv_sys_global_symbol_to_c_name_address \
  11697. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11698. nm_file_list_spec \
  11699. lt_prog_compiler_no_builtin_flag \
  11700. lt_prog_compiler_pic \
  11701. lt_prog_compiler_wl \
  11702. lt_prog_compiler_static \
  11703. lt_cv_prog_compiler_c_o \
  11704. need_locks \
  11705. MANIFEST_TOOL \
  11706. DSYMUTIL \
  11707. NMEDIT \
  11708. LIPO \
  11709. OTOOL \
  11710. OTOOL64 \
  11711. shrext_cmds \
  11712. export_dynamic_flag_spec \
  11713. whole_archive_flag_spec \
  11714. compiler_needs_object \
  11715. with_gnu_ld \
  11716. allow_undefined_flag \
  11717. no_undefined_flag \
  11718. hardcode_libdir_flag_spec \
  11719. hardcode_libdir_separator \
  11720. exclude_expsyms \
  11721. include_expsyms \
  11722. file_list_spec \
  11723. variables_saved_for_relink \
  11724. libname_spec \
  11725. library_names_spec \
  11726. soname_spec \
  11727. install_override_mode \
  11728. finish_eval \
  11729. old_striplib \
  11730. striplib; do
  11731. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11732. *[\\\\\\\`\\"\\\$]*)
  11733. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11734. ;;
  11735. *)
  11736. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11737. ;;
  11738. esac
  11739. done
  11740. # Double-quote double-evaled strings.
  11741. for var in reload_cmds \
  11742. old_postinstall_cmds \
  11743. old_postuninstall_cmds \
  11744. old_archive_cmds \
  11745. extract_expsyms_cmds \
  11746. old_archive_from_new_cmds \
  11747. old_archive_from_expsyms_cmds \
  11748. archive_cmds \
  11749. archive_expsym_cmds \
  11750. module_cmds \
  11751. module_expsym_cmds \
  11752. export_symbols_cmds \
  11753. prelink_cmds \
  11754. postlink_cmds \
  11755. postinstall_cmds \
  11756. postuninstall_cmds \
  11757. finish_cmds \
  11758. sys_lib_search_path_spec \
  11759. sys_lib_dlsearch_path_spec; do
  11760. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11761. *[\\\\\\\`\\"\\\$]*)
  11762. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11763. ;;
  11764. *)
  11765. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11766. ;;
  11767. esac
  11768. done
  11769. ac_aux_dir='$ac_aux_dir'
  11770. xsi_shell='$xsi_shell'
  11771. lt_shell_append='$lt_shell_append'
  11772. # See if we are running on zsh, and set the options which allow our
  11773. # commands through without removal of \ escapes INIT.
  11774. if test -n "\${ZSH_VERSION+set}" ; then
  11775. setopt NO_GLOB_SUBST
  11776. fi
  11777. PACKAGE='$PACKAGE'
  11778. VERSION='$VERSION'
  11779. TIMESTAMP='$TIMESTAMP'
  11780. RM='$RM'
  11781. ofile='$ofile'
  11782. _ACEOF
  11783. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11784. # Handling of arguments.
  11785. for ac_config_target in $ac_config_targets
  11786. do
  11787. case $ac_config_target in
  11788. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11789. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11790. "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
  11791. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11792. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11793. "json-c.pc") CONFIG_FILES="$CONFIG_FILES json-c.pc" ;;
  11794. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  11795. "json-c-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES json-c-uninstalled.pc" ;;
  11796. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11797. esac
  11798. done
  11799. # If the user did not use the arguments to specify the items to instantiate,
  11800. # then the envvar interface is used. Set only those that are not.
  11801. # We use the long form for the default assignment because of an extremely
  11802. # bizarre bug on SunOS 4.1.3.
  11803. if $ac_need_defaults; then
  11804. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11805. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11806. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11807. fi
  11808. # Have a temporary directory for convenience. Make it in the build tree
  11809. # simply because there is no reason against having it here, and in addition,
  11810. # creating and moving files from /tmp can sometimes cause problems.
  11811. # Hook for its removal unless debugging.
  11812. # Note that there is a small window in which the directory will not be cleaned:
  11813. # after its creation but before its name has been assigned to `$tmp'.
  11814. $debug ||
  11815. {
  11816. tmp= ac_tmp=
  11817. trap 'exit_status=$?
  11818. : "${ac_tmp:=$tmp}"
  11819. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11820. ' 0
  11821. trap 'as_fn_exit 1' 1 2 13 15
  11822. }
  11823. # Create a (secure) tmp directory for tmp files.
  11824. {
  11825. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11826. test -d "$tmp"
  11827. } ||
  11828. {
  11829. tmp=./conf$$-$RANDOM
  11830. (umask 077 && mkdir "$tmp")
  11831. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11832. ac_tmp=$tmp
  11833. # Set up the scripts for CONFIG_FILES section.
  11834. # No need to generate them if there are no CONFIG_FILES.
  11835. # This happens for instance with `./config.status config.h'.
  11836. if test -n "$CONFIG_FILES"; then
  11837. ac_cr=`echo X | tr X '\015'`
  11838. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11839. # But we know of no other shell where ac_cr would be empty at this
  11840. # point, so we can use a bashism as a fallback.
  11841. if test "x$ac_cr" = x; then
  11842. eval ac_cr=\$\'\\r\'
  11843. fi
  11844. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11845. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11846. ac_cs_awk_cr='\\r'
  11847. else
  11848. ac_cs_awk_cr=$ac_cr
  11849. fi
  11850. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11851. _ACEOF
  11852. {
  11853. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11854. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11855. echo "_ACEOF"
  11856. } >conf$$subs.sh ||
  11857. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11858. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11859. ac_delim='%!_!# '
  11860. for ac_last_try in false false false false false :; do
  11861. . ./conf$$subs.sh ||
  11862. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11863. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11864. if test $ac_delim_n = $ac_delim_num; then
  11865. break
  11866. elif $ac_last_try; then
  11867. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11868. else
  11869. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11870. fi
  11871. done
  11872. rm -f conf$$subs.sh
  11873. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11874. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11875. _ACEOF
  11876. sed -n '
  11877. h
  11878. s/^/S["/; s/!.*/"]=/
  11879. p
  11880. g
  11881. s/^[^!]*!//
  11882. :repl
  11883. t repl
  11884. s/'"$ac_delim"'$//
  11885. t delim
  11886. :nl
  11887. h
  11888. s/\(.\{148\}\)..*/\1/
  11889. t more1
  11890. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11891. p
  11892. n
  11893. b repl
  11894. :more1
  11895. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11896. p
  11897. g
  11898. s/.\{148\}//
  11899. t nl
  11900. :delim
  11901. h
  11902. s/\(.\{148\}\)..*/\1/
  11903. t more2
  11904. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11905. p
  11906. b
  11907. :more2
  11908. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11909. p
  11910. g
  11911. s/.\{148\}//
  11912. t delim
  11913. ' <conf$$subs.awk | sed '
  11914. /^[^""]/{
  11915. N
  11916. s/\n//
  11917. }
  11918. ' >>$CONFIG_STATUS || ac_write_fail=1
  11919. rm -f conf$$subs.awk
  11920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11921. _ACAWK
  11922. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11923. for (key in S) S_is_set[key] = 1
  11924. FS = ""
  11925. }
  11926. {
  11927. line = $ 0
  11928. nfields = split(line, field, "@")
  11929. substed = 0
  11930. len = length(field[1])
  11931. for (i = 2; i < nfields; i++) {
  11932. key = field[i]
  11933. keylen = length(key)
  11934. if (S_is_set[key]) {
  11935. value = S[key]
  11936. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11937. len += length(value) + length(field[++i])
  11938. substed = 1
  11939. } else
  11940. len += 1 + keylen
  11941. }
  11942. print line
  11943. }
  11944. _ACAWK
  11945. _ACEOF
  11946. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11947. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11948. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11949. else
  11950. cat
  11951. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11952. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11953. _ACEOF
  11954. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11955. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11956. # trailing colons and then remove the whole line if VPATH becomes empty
  11957. # (actually we leave an empty line to preserve line numbers).
  11958. if test "x$srcdir" = x.; then
  11959. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11960. h
  11961. s///
  11962. s/^/:/
  11963. s/[ ]*$/:/
  11964. s/:\$(srcdir):/:/g
  11965. s/:\${srcdir}:/:/g
  11966. s/:@srcdir@:/:/g
  11967. s/^:*//
  11968. s/:*$//
  11969. x
  11970. s/\(=[ ]*\).*/\1/
  11971. G
  11972. s/\n//
  11973. s/^[^=]*=[ ]*$//
  11974. }'
  11975. fi
  11976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11977. fi # test -n "$CONFIG_FILES"
  11978. # Set up the scripts for CONFIG_HEADERS section.
  11979. # No need to generate them if there are no CONFIG_HEADERS.
  11980. # This happens for instance with `./config.status Makefile'.
  11981. if test -n "$CONFIG_HEADERS"; then
  11982. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11983. BEGIN {
  11984. _ACEOF
  11985. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11986. # here-document in config.status, that substitutes the proper values into
  11987. # config.h.in to produce config.h.
  11988. # Create a delimiter string that does not exist in confdefs.h, to ease
  11989. # handling of long lines.
  11990. ac_delim='%!_!# '
  11991. for ac_last_try in false false :; do
  11992. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11993. if test -z "$ac_tt"; then
  11994. break
  11995. elif $ac_last_try; then
  11996. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11997. else
  11998. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11999. fi
  12000. done
  12001. # For the awk script, D is an array of macro values keyed by name,
  12002. # likewise P contains macro parameters if any. Preserve backslash
  12003. # newline sequences.
  12004. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12005. sed -n '
  12006. s/.\{148\}/&'"$ac_delim"'/g
  12007. t rset
  12008. :rset
  12009. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12010. t def
  12011. d
  12012. :def
  12013. s/\\$//
  12014. t bsnl
  12015. s/["\\]/\\&/g
  12016. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12017. D["\1"]=" \3"/p
  12018. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12019. d
  12020. :bsnl
  12021. s/["\\]/\\&/g
  12022. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12023. D["\1"]=" \3\\\\\\n"\\/p
  12024. t cont
  12025. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12026. t cont
  12027. d
  12028. :cont
  12029. n
  12030. s/.\{148\}/&'"$ac_delim"'/g
  12031. t clear
  12032. :clear
  12033. s/\\$//
  12034. t bsnlc
  12035. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12036. d
  12037. :bsnlc
  12038. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12039. b cont
  12040. ' <confdefs.h | sed '
  12041. s/'"$ac_delim"'/"\\\
  12042. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12043. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12044. for (key in D) D_is_set[key] = 1
  12045. FS = ""
  12046. }
  12047. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12048. line = \$ 0
  12049. split(line, arg, " ")
  12050. if (arg[1] == "#") {
  12051. defundef = arg[2]
  12052. mac1 = arg[3]
  12053. } else {
  12054. defundef = substr(arg[1], 2)
  12055. mac1 = arg[2]
  12056. }
  12057. split(mac1, mac2, "(") #)
  12058. macro = mac2[1]
  12059. prefix = substr(line, 1, index(line, defundef) - 1)
  12060. if (D_is_set[macro]) {
  12061. # Preserve the white space surrounding the "#".
  12062. print prefix "define", macro P[macro] D[macro]
  12063. next
  12064. } else {
  12065. # Replace #undef with comments. This is necessary, for example,
  12066. # in the case of _POSIX_SOURCE, which is predefined and required
  12067. # on some systems where configure will not decide to define it.
  12068. if (defundef == "undef") {
  12069. print "/*", prefix defundef, macro, "*/"
  12070. next
  12071. }
  12072. }
  12073. }
  12074. { print }
  12075. _ACAWK
  12076. _ACEOF
  12077. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12078. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12079. fi # test -n "$CONFIG_HEADERS"
  12080. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12081. shift
  12082. for ac_tag
  12083. do
  12084. case $ac_tag in
  12085. :[FHLC]) ac_mode=$ac_tag; continue;;
  12086. esac
  12087. case $ac_mode$ac_tag in
  12088. :[FHL]*:*);;
  12089. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12090. :[FH]-) ac_tag=-:-;;
  12091. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12092. esac
  12093. ac_save_IFS=$IFS
  12094. IFS=:
  12095. set x $ac_tag
  12096. IFS=$ac_save_IFS
  12097. shift
  12098. ac_file=$1
  12099. shift
  12100. case $ac_mode in
  12101. :L) ac_source=$1;;
  12102. :[FH])
  12103. ac_file_inputs=
  12104. for ac_f
  12105. do
  12106. case $ac_f in
  12107. -) ac_f="$ac_tmp/stdin";;
  12108. *) # Look for the file first in the build tree, then in the source tree
  12109. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12110. # because $ac_f cannot contain `:'.
  12111. test -f "$ac_f" ||
  12112. case $ac_f in
  12113. [\\/$]*) false;;
  12114. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12115. esac ||
  12116. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12117. esac
  12118. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12119. as_fn_append ac_file_inputs " '$ac_f'"
  12120. done
  12121. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12122. # use $as_me), people would be surprised to read:
  12123. # /* config.h. Generated by config.status. */
  12124. configure_input='Generated from '`
  12125. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12126. `' by configure.'
  12127. if test x"$ac_file" != x-; then
  12128. configure_input="$ac_file. $configure_input"
  12129. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12130. $as_echo "$as_me: creating $ac_file" >&6;}
  12131. fi
  12132. # Neutralize special characters interpreted by sed in replacement strings.
  12133. case $configure_input in #(
  12134. *\&* | *\|* | *\\* )
  12135. ac_sed_conf_input=`$as_echo "$configure_input" |
  12136. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12137. *) ac_sed_conf_input=$configure_input;;
  12138. esac
  12139. case $ac_tag in
  12140. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12141. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12142. esac
  12143. ;;
  12144. esac
  12145. ac_dir=`$as_dirname -- "$ac_file" ||
  12146. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12147. X"$ac_file" : 'X\(//\)[^/]' \| \
  12148. X"$ac_file" : 'X\(//\)$' \| \
  12149. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12150. $as_echo X"$ac_file" |
  12151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12152. s//\1/
  12153. q
  12154. }
  12155. /^X\(\/\/\)[^/].*/{
  12156. s//\1/
  12157. q
  12158. }
  12159. /^X\(\/\/\)$/{
  12160. s//\1/
  12161. q
  12162. }
  12163. /^X\(\/\).*/{
  12164. s//\1/
  12165. q
  12166. }
  12167. s/.*/./; q'`
  12168. as_dir="$ac_dir"; as_fn_mkdir_p
  12169. ac_builddir=.
  12170. case "$ac_dir" in
  12171. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12172. *)
  12173. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12174. # A ".." for each directory in $ac_dir_suffix.
  12175. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12176. case $ac_top_builddir_sub in
  12177. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12178. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12179. esac ;;
  12180. esac
  12181. ac_abs_top_builddir=$ac_pwd
  12182. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12183. # for backward compatibility:
  12184. ac_top_builddir=$ac_top_build_prefix
  12185. case $srcdir in
  12186. .) # We are building in place.
  12187. ac_srcdir=.
  12188. ac_top_srcdir=$ac_top_builddir_sub
  12189. ac_abs_top_srcdir=$ac_pwd ;;
  12190. [\\/]* | ?:[\\/]* ) # Absolute name.
  12191. ac_srcdir=$srcdir$ac_dir_suffix;
  12192. ac_top_srcdir=$srcdir
  12193. ac_abs_top_srcdir=$srcdir ;;
  12194. *) # Relative name.
  12195. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12196. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12197. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12198. esac
  12199. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12200. case $ac_mode in
  12201. :F)
  12202. #
  12203. # CONFIG_FILE
  12204. #
  12205. case $INSTALL in
  12206. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12207. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12208. esac
  12209. ac_MKDIR_P=$MKDIR_P
  12210. case $MKDIR_P in
  12211. [\\/$]* | ?:[\\/]* ) ;;
  12212. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12213. esac
  12214. _ACEOF
  12215. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12216. # If the template does not know about datarootdir, expand it.
  12217. # FIXME: This hack should be removed a few years after 2.60.
  12218. ac_datarootdir_hack=; ac_datarootdir_seen=
  12219. ac_sed_dataroot='
  12220. /datarootdir/ {
  12221. p
  12222. q
  12223. }
  12224. /@datadir@/p
  12225. /@docdir@/p
  12226. /@infodir@/p
  12227. /@localedir@/p
  12228. /@mandir@/p'
  12229. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12230. *datarootdir*) ac_datarootdir_seen=yes;;
  12231. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12233. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12234. _ACEOF
  12235. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12236. ac_datarootdir_hack='
  12237. s&@datadir@&$datadir&g
  12238. s&@docdir@&$docdir&g
  12239. s&@infodir@&$infodir&g
  12240. s&@localedir@&$localedir&g
  12241. s&@mandir@&$mandir&g
  12242. s&\\\${datarootdir}&$datarootdir&g' ;;
  12243. esac
  12244. _ACEOF
  12245. # Neutralize VPATH when `$srcdir' = `.'.
  12246. # Shell code in configure.ac might set extrasub.
  12247. # FIXME: do we really want to maintain this feature?
  12248. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12249. ac_sed_extra="$ac_vpsub
  12250. $extrasub
  12251. _ACEOF
  12252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12253. :t
  12254. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12255. s|@configure_input@|$ac_sed_conf_input|;t t
  12256. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12257. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12258. s&@srcdir@&$ac_srcdir&;t t
  12259. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12260. s&@top_srcdir@&$ac_top_srcdir&;t t
  12261. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12262. s&@builddir@&$ac_builddir&;t t
  12263. s&@abs_builddir@&$ac_abs_builddir&;t t
  12264. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12265. s&@INSTALL@&$ac_INSTALL&;t t
  12266. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12267. $ac_datarootdir_hack
  12268. "
  12269. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12270. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12271. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12272. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12273. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12274. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12276. which seems to be undefined. Please make sure it is defined" >&5
  12277. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12278. which seems to be undefined. Please make sure it is defined" >&2;}
  12279. rm -f "$ac_tmp/stdin"
  12280. case $ac_file in
  12281. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12282. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12283. esac \
  12284. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12285. ;;
  12286. :H)
  12287. #
  12288. # CONFIG_HEADER
  12289. #
  12290. if test x"$ac_file" != x-; then
  12291. {
  12292. $as_echo "/* $configure_input */" \
  12293. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12294. } >"$ac_tmp/config.h" \
  12295. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12296. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12298. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12299. else
  12300. rm -f "$ac_file"
  12301. mv "$ac_tmp/config.h" "$ac_file" \
  12302. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12303. fi
  12304. else
  12305. $as_echo "/* $configure_input */" \
  12306. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12307. || as_fn_error $? "could not create -" "$LINENO" 5
  12308. fi
  12309. # Compute "$ac_file"'s index in $config_headers.
  12310. _am_arg="$ac_file"
  12311. _am_stamp_count=1
  12312. for _am_header in $config_headers :; do
  12313. case $_am_header in
  12314. $_am_arg | $_am_arg:* )
  12315. break ;;
  12316. * )
  12317. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12318. esac
  12319. done
  12320. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12321. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12322. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12323. X"$_am_arg" : 'X\(//\)$' \| \
  12324. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12325. $as_echo X"$_am_arg" |
  12326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12327. s//\1/
  12328. q
  12329. }
  12330. /^X\(\/\/\)[^/].*/{
  12331. s//\1/
  12332. q
  12333. }
  12334. /^X\(\/\/\)$/{
  12335. s//\1/
  12336. q
  12337. }
  12338. /^X\(\/\).*/{
  12339. s//\1/
  12340. q
  12341. }
  12342. s/.*/./; q'`/stamp-h$_am_stamp_count
  12343. ;;
  12344. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12345. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12346. ;;
  12347. esac
  12348. case $ac_file$ac_mode in
  12349. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12350. # Older Autoconf quotes --file arguments for eval, but not when files
  12351. # are listed without --file. Let's play safe and only enable the eval
  12352. # if we detect the quoting.
  12353. case $CONFIG_FILES in
  12354. *\'*) eval set x "$CONFIG_FILES" ;;
  12355. *) set x $CONFIG_FILES ;;
  12356. esac
  12357. shift
  12358. for mf
  12359. do
  12360. # Strip MF so we end up with the name of the file.
  12361. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12362. # Check whether this is an Automake generated Makefile or not.
  12363. # We used to match only the files named 'Makefile.in', but
  12364. # some people rename them; so instead we look at the file content.
  12365. # Grep'ing the first line is not enough: some people post-process
  12366. # each Makefile.in and add a new line on top of each file to say so.
  12367. # Grep'ing the whole file is not good either: AIX grep has a line
  12368. # limit of 2048, but all sed's we know have understand at least 4000.
  12369. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12370. dirpart=`$as_dirname -- "$mf" ||
  12371. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12372. X"$mf" : 'X\(//\)[^/]' \| \
  12373. X"$mf" : 'X\(//\)$' \| \
  12374. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12375. $as_echo X"$mf" |
  12376. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12377. s//\1/
  12378. q
  12379. }
  12380. /^X\(\/\/\)[^/].*/{
  12381. s//\1/
  12382. q
  12383. }
  12384. /^X\(\/\/\)$/{
  12385. s//\1/
  12386. q
  12387. }
  12388. /^X\(\/\).*/{
  12389. s//\1/
  12390. q
  12391. }
  12392. s/.*/./; q'`
  12393. else
  12394. continue
  12395. fi
  12396. # Extract the definition of DEPDIR, am__include, and am__quote
  12397. # from the Makefile without running 'make'.
  12398. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12399. test -z "$DEPDIR" && continue
  12400. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12401. test -z "$am__include" && continue
  12402. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12403. # Find all dependency output files, they are included files with
  12404. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12405. # simplest approach to changing $(DEPDIR) to its actual value in the
  12406. # expansion.
  12407. for file in `sed -n "
  12408. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12409. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12410. # Make sure the directory exists.
  12411. test -f "$dirpart/$file" && continue
  12412. fdir=`$as_dirname -- "$file" ||
  12413. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12414. X"$file" : 'X\(//\)[^/]' \| \
  12415. X"$file" : 'X\(//\)$' \| \
  12416. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12417. $as_echo X"$file" |
  12418. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12419. s//\1/
  12420. q
  12421. }
  12422. /^X\(\/\/\)[^/].*/{
  12423. s//\1/
  12424. q
  12425. }
  12426. /^X\(\/\/\)$/{
  12427. s//\1/
  12428. q
  12429. }
  12430. /^X\(\/\).*/{
  12431. s//\1/
  12432. q
  12433. }
  12434. s/.*/./; q'`
  12435. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12436. # echo "creating $dirpart/$file"
  12437. echo '# dummy' > "$dirpart/$file"
  12438. done
  12439. done
  12440. }
  12441. ;;
  12442. "libtool":C)
  12443. # See if we are running on zsh, and set the options which allow our
  12444. # commands through without removal of \ escapes.
  12445. if test -n "${ZSH_VERSION+set}" ; then
  12446. setopt NO_GLOB_SUBST
  12447. fi
  12448. cfgfile="${ofile}T"
  12449. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12450. $RM "$cfgfile"
  12451. cat <<_LT_EOF >> "$cfgfile"
  12452. #! $SHELL
  12453. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12454. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12455. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12456. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12457. #
  12458. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12459. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  12460. # Foundation, Inc.
  12461. # Written by Gordon Matzigkeit, 1996
  12462. #
  12463. # This file is part of GNU Libtool.
  12464. #
  12465. # GNU Libtool is free software; you can redistribute it and/or
  12466. # modify it under the terms of the GNU General Public License as
  12467. # published by the Free Software Foundation; either version 2 of
  12468. # the License, or (at your option) any later version.
  12469. #
  12470. # As a special exception to the GNU General Public License,
  12471. # if you distribute this file as part of a program or library that
  12472. # is built using GNU Libtool, you may include this file under the
  12473. # same distribution terms that you use for the rest of that program.
  12474. #
  12475. # GNU Libtool is distributed in the hope that it will be useful,
  12476. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12477. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12478. # GNU General Public License for more details.
  12479. #
  12480. # You should have received a copy of the GNU General Public License
  12481. # along with GNU Libtool; see the file COPYING. If not, a copy
  12482. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12483. # obtained by writing to the Free Software Foundation, Inc.,
  12484. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12485. # The names of the tagged configurations supported by this script.
  12486. available_tags=""
  12487. # ### BEGIN LIBTOOL CONFIG
  12488. # Which release of libtool.m4 was used?
  12489. macro_version=$macro_version
  12490. macro_revision=$macro_revision
  12491. # Whether or not to build shared libraries.
  12492. build_libtool_libs=$enable_shared
  12493. # Whether or not to build static libraries.
  12494. build_old_libs=$enable_static
  12495. # What type of objects to build.
  12496. pic_mode=$pic_mode
  12497. # Whether or not to optimize for fast installation.
  12498. fast_install=$enable_fast_install
  12499. # Shell to use when invoking shell scripts.
  12500. SHELL=$lt_SHELL
  12501. # An echo program that protects backslashes.
  12502. ECHO=$lt_ECHO
  12503. # The PATH separator for the build system.
  12504. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12505. # The host system.
  12506. host_alias=$host_alias
  12507. host=$host
  12508. host_os=$host_os
  12509. # The build system.
  12510. build_alias=$build_alias
  12511. build=$build
  12512. build_os=$build_os
  12513. # A sed program that does not truncate output.
  12514. SED=$lt_SED
  12515. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12516. Xsed="\$SED -e 1s/^X//"
  12517. # A grep program that handles long lines.
  12518. GREP=$lt_GREP
  12519. # An ERE matcher.
  12520. EGREP=$lt_EGREP
  12521. # A literal string matcher.
  12522. FGREP=$lt_FGREP
  12523. # A BSD- or MS-compatible name lister.
  12524. NM=$lt_NM
  12525. # Whether we need soft or hard links.
  12526. LN_S=$lt_LN_S
  12527. # What is the maximum length of a command?
  12528. max_cmd_len=$max_cmd_len
  12529. # Object file suffix (normally "o").
  12530. objext=$ac_objext
  12531. # Executable file suffix (normally "").
  12532. exeext=$exeext
  12533. # whether the shell understands "unset".
  12534. lt_unset=$lt_unset
  12535. # turn spaces into newlines.
  12536. SP2NL=$lt_lt_SP2NL
  12537. # turn newlines into spaces.
  12538. NL2SP=$lt_lt_NL2SP
  12539. # convert \$build file names to \$host format.
  12540. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12541. # convert \$build files to toolchain format.
  12542. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12543. # An object symbol dumper.
  12544. OBJDUMP=$lt_OBJDUMP
  12545. # Method to check whether dependent libraries are shared objects.
  12546. deplibs_check_method=$lt_deplibs_check_method
  12547. # Command to use when deplibs_check_method = "file_magic".
  12548. file_magic_cmd=$lt_file_magic_cmd
  12549. # How to find potential files when deplibs_check_method = "file_magic".
  12550. file_magic_glob=$lt_file_magic_glob
  12551. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12552. want_nocaseglob=$lt_want_nocaseglob
  12553. # DLL creation program.
  12554. DLLTOOL=$lt_DLLTOOL
  12555. # Command to associate shared and link libraries.
  12556. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12557. # The archiver.
  12558. AR=$lt_AR
  12559. # Flags to create an archive.
  12560. AR_FLAGS=$lt_AR_FLAGS
  12561. # How to feed a file listing to the archiver.
  12562. archiver_list_spec=$lt_archiver_list_spec
  12563. # A symbol stripping program.
  12564. STRIP=$lt_STRIP
  12565. # Commands used to install an old-style archive.
  12566. RANLIB=$lt_RANLIB
  12567. old_postinstall_cmds=$lt_old_postinstall_cmds
  12568. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12569. # Whether to use a lock for old archive extraction.
  12570. lock_old_archive_extraction=$lock_old_archive_extraction
  12571. # A C compiler.
  12572. LTCC=$lt_CC
  12573. # LTCC compiler flags.
  12574. LTCFLAGS=$lt_CFLAGS
  12575. # Take the output of nm and produce a listing of raw symbols and C names.
  12576. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12577. # Transform the output of nm in a proper C declaration.
  12578. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12579. # Transform the output of nm in a C name address pair.
  12580. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12581. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12582. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12583. # Specify filename containing input files for \$NM.
  12584. nm_file_list_spec=$lt_nm_file_list_spec
  12585. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12586. lt_sysroot=$lt_sysroot
  12587. # The name of the directory that contains temporary libtool files.
  12588. objdir=$objdir
  12589. # Used to examine libraries when file_magic_cmd begins with "file".
  12590. MAGIC_CMD=$MAGIC_CMD
  12591. # Must we lock files when doing compilation?
  12592. need_locks=$lt_need_locks
  12593. # Manifest tool.
  12594. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12595. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12596. DSYMUTIL=$lt_DSYMUTIL
  12597. # Tool to change global to local symbols on Mac OS X.
  12598. NMEDIT=$lt_NMEDIT
  12599. # Tool to manipulate fat objects and archives on Mac OS X.
  12600. LIPO=$lt_LIPO
  12601. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12602. OTOOL=$lt_OTOOL
  12603. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12604. OTOOL64=$lt_OTOOL64
  12605. # Old archive suffix (normally "a").
  12606. libext=$libext
  12607. # Shared library suffix (normally ".so").
  12608. shrext_cmds=$lt_shrext_cmds
  12609. # The commands to extract the exported symbol list from a shared archive.
  12610. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12611. # Variables whose values should be saved in libtool wrapper scripts and
  12612. # restored at link time.
  12613. variables_saved_for_relink=$lt_variables_saved_for_relink
  12614. # Do we need the "lib" prefix for modules?
  12615. need_lib_prefix=$need_lib_prefix
  12616. # Do we need a version for libraries?
  12617. need_version=$need_version
  12618. # Library versioning type.
  12619. version_type=$version_type
  12620. # Shared library runtime path variable.
  12621. runpath_var=$runpath_var
  12622. # Shared library path variable.
  12623. shlibpath_var=$shlibpath_var
  12624. # Is shlibpath searched before the hard-coded library search path?
  12625. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12626. # Format of library name prefix.
  12627. libname_spec=$lt_libname_spec
  12628. # List of archive names. First name is the real one, the rest are links.
  12629. # The last name is the one that the linker finds with -lNAME
  12630. library_names_spec=$lt_library_names_spec
  12631. # The coded name of the library, if different from the real name.
  12632. soname_spec=$lt_soname_spec
  12633. # Permission mode override for installation of shared libraries.
  12634. install_override_mode=$lt_install_override_mode
  12635. # Command to use after installation of a shared archive.
  12636. postinstall_cmds=$lt_postinstall_cmds
  12637. # Command to use after uninstallation of a shared archive.
  12638. postuninstall_cmds=$lt_postuninstall_cmds
  12639. # Commands used to finish a libtool library installation in a directory.
  12640. finish_cmds=$lt_finish_cmds
  12641. # As "finish_cmds", except a single script fragment to be evaled but
  12642. # not shown.
  12643. finish_eval=$lt_finish_eval
  12644. # Whether we should hardcode library paths into libraries.
  12645. hardcode_into_libs=$hardcode_into_libs
  12646. # Compile-time system search path for libraries.
  12647. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12648. # Run-time system search path for libraries.
  12649. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12650. # Whether dlopen is supported.
  12651. dlopen_support=$enable_dlopen
  12652. # Whether dlopen of programs is supported.
  12653. dlopen_self=$enable_dlopen_self
  12654. # Whether dlopen of statically linked programs is supported.
  12655. dlopen_self_static=$enable_dlopen_self_static
  12656. # Commands to strip libraries.
  12657. old_striplib=$lt_old_striplib
  12658. striplib=$lt_striplib
  12659. # The linker used to build libraries.
  12660. LD=$lt_LD
  12661. # How to create reloadable object files.
  12662. reload_flag=$lt_reload_flag
  12663. reload_cmds=$lt_reload_cmds
  12664. # Commands used to build an old-style archive.
  12665. old_archive_cmds=$lt_old_archive_cmds
  12666. # A language specific compiler.
  12667. CC=$lt_compiler
  12668. # Is the compiler the GNU compiler?
  12669. with_gcc=$GCC
  12670. # Compiler flag to turn off builtin functions.
  12671. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12672. # Additional compiler flags for building library objects.
  12673. pic_flag=$lt_lt_prog_compiler_pic
  12674. # How to pass a linker flag through the compiler.
  12675. wl=$lt_lt_prog_compiler_wl
  12676. # Compiler flag to prevent dynamic linking.
  12677. link_static_flag=$lt_lt_prog_compiler_static
  12678. # Does compiler simultaneously support -c and -o options?
  12679. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12680. # Whether or not to add -lc for building shared libraries.
  12681. build_libtool_need_lc=$archive_cmds_need_lc
  12682. # Whether or not to disallow shared libs when runtime libs are static.
  12683. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12684. # Compiler flag to allow reflexive dlopens.
  12685. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12686. # Compiler flag to generate shared objects directly from archives.
  12687. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12688. # Whether the compiler copes with passing no objects directly.
  12689. compiler_needs_object=$lt_compiler_needs_object
  12690. # Create an old-style archive from a shared archive.
  12691. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12692. # Create a temporary old-style archive to link instead of a shared archive.
  12693. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12694. # Commands used to build a shared archive.
  12695. archive_cmds=$lt_archive_cmds
  12696. archive_expsym_cmds=$lt_archive_expsym_cmds
  12697. # Commands used to build a loadable module if different from building
  12698. # a shared archive.
  12699. module_cmds=$lt_module_cmds
  12700. module_expsym_cmds=$lt_module_expsym_cmds
  12701. # Whether we are building with GNU ld or not.
  12702. with_gnu_ld=$lt_with_gnu_ld
  12703. # Flag that allows shared libraries with undefined symbols to be built.
  12704. allow_undefined_flag=$lt_allow_undefined_flag
  12705. # Flag that enforces no undefined symbols.
  12706. no_undefined_flag=$lt_no_undefined_flag
  12707. # Flag to hardcode \$libdir into a binary during linking.
  12708. # This must work even if \$libdir does not exist
  12709. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12710. # Whether we need a single "-rpath" flag with a separated argument.
  12711. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12712. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12713. # DIR into the resulting binary.
  12714. hardcode_direct=$hardcode_direct
  12715. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12716. # DIR into the resulting binary and the resulting library dependency is
  12717. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12718. # library is relocated.
  12719. hardcode_direct_absolute=$hardcode_direct_absolute
  12720. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12721. # into the resulting binary.
  12722. hardcode_minus_L=$hardcode_minus_L
  12723. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12724. # into the resulting binary.
  12725. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12726. # Set to "yes" if building a shared library automatically hardcodes DIR
  12727. # into the library and all subsequent libraries and executables linked
  12728. # against it.
  12729. hardcode_automatic=$hardcode_automatic
  12730. # Set to yes if linker adds runtime paths of dependent libraries
  12731. # to runtime path list.
  12732. inherit_rpath=$inherit_rpath
  12733. # Whether libtool must link a program against all its dependency libraries.
  12734. link_all_deplibs=$link_all_deplibs
  12735. # Set to "yes" if exported symbols are required.
  12736. always_export_symbols=$always_export_symbols
  12737. # The commands to list exported symbols.
  12738. export_symbols_cmds=$lt_export_symbols_cmds
  12739. # Symbols that should not be listed in the preloaded symbols.
  12740. exclude_expsyms=$lt_exclude_expsyms
  12741. # Symbols that must always be exported.
  12742. include_expsyms=$lt_include_expsyms
  12743. # Commands necessary for linking programs (against libraries) with templates.
  12744. prelink_cmds=$lt_prelink_cmds
  12745. # Commands necessary for finishing linking programs.
  12746. postlink_cmds=$lt_postlink_cmds
  12747. # Specify filename containing input files.
  12748. file_list_spec=$lt_file_list_spec
  12749. # How to hardcode a shared library path into an executable.
  12750. hardcode_action=$hardcode_action
  12751. # ### END LIBTOOL CONFIG
  12752. _LT_EOF
  12753. case $host_os in
  12754. aix3*)
  12755. cat <<\_LT_EOF >> "$cfgfile"
  12756. # AIX sometimes has problems with the GCC collect2 program. For some
  12757. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12758. # vanish in a puff of smoke.
  12759. if test "X${COLLECT_NAMES+set}" != Xset; then
  12760. COLLECT_NAMES=
  12761. export COLLECT_NAMES
  12762. fi
  12763. _LT_EOF
  12764. ;;
  12765. esac
  12766. ltmain="$ac_aux_dir/ltmain.sh"
  12767. # We use sed instead of cat because bash on DJGPP gets confused if
  12768. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12769. # text mode, it properly converts lines to CR/LF. This bash problem
  12770. # is reportedly fixed, but why not run on old versions too?
  12771. sed '$q' "$ltmain" >> "$cfgfile" \
  12772. || (rm -f "$cfgfile"; exit 1)
  12773. if test x"$xsi_shell" = xyes; then
  12774. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  12775. func_dirname ()\
  12776. {\
  12777. \ case ${1} in\
  12778. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12779. \ * ) func_dirname_result="${3}" ;;\
  12780. \ esac\
  12781. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  12782. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12783. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12784. test 0 -eq $? || _lt_function_replace_fail=:
  12785. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  12786. func_basename ()\
  12787. {\
  12788. \ func_basename_result="${1##*/}"\
  12789. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12790. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12791. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12792. test 0 -eq $? || _lt_function_replace_fail=:
  12793. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12794. func_dirname_and_basename ()\
  12795. {\
  12796. \ case ${1} in\
  12797. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12798. \ * ) func_dirname_result="${3}" ;;\
  12799. \ esac\
  12800. \ func_basename_result="${1##*/}"\
  12801. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12802. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12803. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12804. test 0 -eq $? || _lt_function_replace_fail=:
  12805. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12806. func_stripname ()\
  12807. {\
  12808. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12809. \ # positional parameters, so assign one to ordinary parameter first.\
  12810. \ func_stripname_result=${3}\
  12811. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12812. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12813. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12814. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12815. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12816. test 0 -eq $? || _lt_function_replace_fail=:
  12817. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12818. func_split_long_opt ()\
  12819. {\
  12820. \ func_split_long_opt_name=${1%%=*}\
  12821. \ func_split_long_opt_arg=${1#*=}\
  12822. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12823. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12824. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12825. test 0 -eq $? || _lt_function_replace_fail=:
  12826. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12827. func_split_short_opt ()\
  12828. {\
  12829. \ func_split_short_opt_arg=${1#??}\
  12830. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12831. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12832. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12833. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12834. test 0 -eq $? || _lt_function_replace_fail=:
  12835. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12836. func_lo2o ()\
  12837. {\
  12838. \ case ${1} in\
  12839. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12840. \ *) func_lo2o_result=${1} ;;\
  12841. \ esac\
  12842. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12843. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12844. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12845. test 0 -eq $? || _lt_function_replace_fail=:
  12846. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12847. func_xform ()\
  12848. {\
  12849. func_xform_result=${1%.*}.lo\
  12850. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12851. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12852. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12853. test 0 -eq $? || _lt_function_replace_fail=:
  12854. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12855. func_arith ()\
  12856. {\
  12857. func_arith_result=$(( $* ))\
  12858. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12859. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12860. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12861. test 0 -eq $? || _lt_function_replace_fail=:
  12862. sed -e '/^func_len ()$/,/^} # func_len /c\
  12863. func_len ()\
  12864. {\
  12865. func_len_result=${#1}\
  12866. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12867. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12868. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12869. test 0 -eq $? || _lt_function_replace_fail=:
  12870. fi
  12871. if test x"$lt_shell_append" = xyes; then
  12872. sed -e '/^func_append ()$/,/^} # func_append /c\
  12873. func_append ()\
  12874. {\
  12875. eval "${1}+=\\${2}"\
  12876. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12877. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12878. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12879. test 0 -eq $? || _lt_function_replace_fail=:
  12880. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12881. func_append_quoted ()\
  12882. {\
  12883. \ func_quote_for_eval "${2}"\
  12884. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12885. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12886. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12887. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12888. test 0 -eq $? || _lt_function_replace_fail=:
  12889. # Save a `func_append' function call where possible by direct use of '+='
  12890. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12891. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12892. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12893. test 0 -eq $? || _lt_function_replace_fail=:
  12894. else
  12895. # Save a `func_append' function call even when '+=' is not available
  12896. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12897. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12898. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12899. test 0 -eq $? || _lt_function_replace_fail=:
  12900. fi
  12901. if test x"$_lt_function_replace_fail" = x":"; then
  12902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12903. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12904. fi
  12905. mv -f "$cfgfile" "$ofile" ||
  12906. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12907. chmod +x "$ofile"
  12908. ;;
  12909. esac
  12910. done # for ac_tag
  12911. as_fn_exit 0
  12912. _ACEOF
  12913. ac_clean_files=$ac_clean_files_save
  12914. test $ac_write_fail = 0 ||
  12915. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12916. # configure is writing to config.log, and then calls config.status.
  12917. # config.status does its own redirection, appending to config.log.
  12918. # Unfortunately, on DOS this fails, as config.log is still kept open
  12919. # by configure, so config.status won't be able to write to it; its
  12920. # output is simply discarded. So we exec the FD to /dev/null,
  12921. # effectively closing config.log, so it can be properly (re)opened and
  12922. # appended to by config.status. When coming back to configure, we
  12923. # need to make the FD available again.
  12924. if test "$no_create" != yes; then
  12925. ac_cs_success=:
  12926. ac_config_status_args=
  12927. test "$silent" = yes &&
  12928. ac_config_status_args="$ac_config_status_args --quiet"
  12929. exec 5>/dev/null
  12930. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12931. exec 5>>config.log
  12932. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12933. # would make configure fail if this is the last instruction.
  12934. $ac_cs_success || as_fn_exit 1
  12935. fi
  12936. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12938. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12939. fi