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 389 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for json-c 0.10.
  4. #
  5. # Report bugs to <json-c@googlegroups.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: json-c@googlegroups.com about your system, including
  225. $0: any error possibly output before this message. Then
  226. $0: install a modern shell, or manually run the script
  227. $0: under such a shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. # Check that we are running under the correct shell.
  497. SHELL=${CONFIG_SHELL-/bin/sh}
  498. case X$lt_ECHO in
  499. X*--fallback-echo)
  500. # Remove one level of quotation (which was required for Make).
  501. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  502. ;;
  503. esac
  504. ECHO=${lt_ECHO-echo}
  505. if test "X$1" = X--no-reexec; then
  506. # Discard the --no-reexec flag, and continue.
  507. shift
  508. elif test "X$1" = X--fallback-echo; then
  509. # Avoid inline document here, it may be left over
  510. :
  511. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  512. # Yippee, $ECHO works!
  513. :
  514. else
  515. # Restart under the correct shell.
  516. exec $SHELL "$0" --no-reexec ${1+"$@"}
  517. fi
  518. if test "X$1" = X--fallback-echo; then
  519. # used as fallback echo
  520. shift
  521. cat <<_LT_EOF
  522. $*
  523. _LT_EOF
  524. exit 0
  525. fi
  526. # The HP-UX ksh and POSIX shell print the target directory to stdout
  527. # if CDPATH is set.
  528. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  529. if test -z "$lt_ECHO"; then
  530. if test "X${echo_test_string+set}" != Xset; then
  531. # find a string as large as possible, as long as the shell can cope with it
  532. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  533. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  534. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  535. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  536. then
  537. break
  538. fi
  539. done
  540. fi
  541. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  542. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  543. test "X$echo_testing_string" = "X$echo_test_string"; then
  544. :
  545. else
  546. # The Solaris, AIX, and Digital Unix default echo programs unquote
  547. # backslashes. This makes it impossible to quote backslashes using
  548. # echo "$something" | sed 's/\\/\\\\/g'
  549. #
  550. # So, first we look for a working echo in the user's PATH.
  551. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  552. for dir in $PATH /usr/ucb; do
  553. IFS="$lt_save_ifs"
  554. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  555. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. ECHO="$dir/echo"
  559. break
  560. fi
  561. done
  562. IFS="$lt_save_ifs"
  563. if test "X$ECHO" = Xecho; then
  564. # We didn't find a better echo, so look for alternatives.
  565. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. # This shell has a builtin print -r that does the trick.
  569. ECHO='print -r'
  570. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  571. test "X$CONFIG_SHELL" != X/bin/ksh; then
  572. # If we have ksh, try running configure again with it.
  573. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  574. export ORIGINAL_CONFIG_SHELL
  575. CONFIG_SHELL=/bin/ksh
  576. export CONFIG_SHELL
  577. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  578. else
  579. # Try using printf.
  580. ECHO='printf %s\n'
  581. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  582. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  583. test "X$echo_testing_string" = "X$echo_test_string"; then
  584. # Cool, printf works
  585. :
  586. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  587. test "X$echo_testing_string" = 'X\t' &&
  588. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  589. test "X$echo_testing_string" = "X$echo_test_string"; then
  590. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  591. export CONFIG_SHELL
  592. SHELL="$CONFIG_SHELL"
  593. export SHELL
  594. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  595. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  596. test "X$echo_testing_string" = 'X\t' &&
  597. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  598. test "X$echo_testing_string" = "X$echo_test_string"; then
  599. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  600. else
  601. # maybe with a smaller string...
  602. prev=:
  603. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  604. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  605. then
  606. break
  607. fi
  608. prev="$cmd"
  609. done
  610. if test "$prev" != 'sed 50q "$0"'; then
  611. echo_test_string=`eval $prev`
  612. export echo_test_string
  613. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  614. else
  615. # Oops. We lost completely, so just stick with echo.
  616. ECHO=echo
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. # Copy echo and quote the copy suitably for passing to libtool from
  624. # the Makefile, instead of quoting the original, which is used later.
  625. lt_ECHO=$ECHO
  626. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  627. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  628. fi
  629. test -n "$DJDIR" || exec 7<&0 </dev/null
  630. exec 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. # Identity of this package.
  647. PACKAGE_NAME='json-c'
  648. PACKAGE_TARNAME='json-c'
  649. PACKAGE_VERSION='0.10'
  650. PACKAGE_STRING='json-c 0.10'
  651. PACKAGE_BUGREPORT='json-c@googlegroups.com'
  652. PACKAGE_URL=''
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_subst_vars='am__EXEEXT_FALSE
  689. am__EXEEXT_TRUE
  690. LTLIBOBJS
  691. OTOOL64
  692. OTOOL
  693. LIPO
  694. NMEDIT
  695. DSYMUTIL
  696. lt_ECHO
  697. RANLIB
  698. AR
  699. OBJDUMP
  700. LN_S
  701. NM
  702. ac_ct_DUMPBIN
  703. DUMPBIN
  704. LD
  705. FGREP
  706. SED
  707. host_os
  708. host_vendor
  709. host_cpu
  710. host
  711. build_os
  712. build_vendor
  713. build_cpu
  714. build
  715. LIBTOOL
  716. LIBOBJS
  717. EGREP
  718. GREP
  719. CPP
  720. am__fastdepCC_FALSE
  721. am__fastdepCC_TRUE
  722. CCDEPMODE
  723. AMDEPBACKSLASH
  724. AMDEP_FALSE
  725. AMDEP_TRUE
  726. am__quote
  727. am__include
  728. DEPDIR
  729. OBJEXT
  730. EXEEXT
  731. ac_ct_CC
  732. CPPFLAGS
  733. LDFLAGS
  734. CFLAGS
  735. CC
  736. am__untar
  737. am__tar
  738. AMTAR
  739. am__leading_dot
  740. SET_MAKE
  741. AWK
  742. mkdir_p
  743. MKDIR_P
  744. INSTALL_STRIP_PROGRAM
  745. STRIP
  746. install_sh
  747. MAKEINFO
  748. AUTOHEADER
  749. AUTOMAKE
  750. AUTOCONF
  751. ACLOCAL
  752. VERSION
  753. PACKAGE
  754. CYGPATH_W
  755. am__isrc
  756. INSTALL_DATA
  757. INSTALL_SCRIPT
  758. INSTALL_PROGRAM
  759. target_alias
  760. host_alias
  761. build_alias
  762. LIBS
  763. ECHO_T
  764. ECHO_N
  765. ECHO_C
  766. DEFS
  767. mandir
  768. localedir
  769. libdir
  770. psdir
  771. pdfdir
  772. dvidir
  773. htmldir
  774. infodir
  775. docdir
  776. oldincludedir
  777. includedir
  778. localstatedir
  779. sharedstatedir
  780. sysconfdir
  781. datadir
  782. datarootdir
  783. libexecdir
  784. sbindir
  785. bindir
  786. program_transform_name
  787. prefix
  788. exec_prefix
  789. PACKAGE_URL
  790. PACKAGE_BUGREPORT
  791. PACKAGE_STRING
  792. PACKAGE_VERSION
  793. PACKAGE_TARNAME
  794. PACKAGE_NAME
  795. PATH_SEPARATOR
  796. SHELL'
  797. ac_subst_files=''
  798. ac_user_opts='
  799. enable_option_checking
  800. enable_dependency_tracking
  801. enable_shared
  802. enable_static
  803. with_pic
  804. enable_fast_install
  805. with_gnu_ld
  806. enable_libtool_lock
  807. '
  808. ac_precious_vars='build_alias
  809. host_alias
  810. target_alias
  811. CC
  812. CFLAGS
  813. LDFLAGS
  814. LIBS
  815. CPPFLAGS
  816. CPP'
  817. # Initialize some variables set by options.
  818. ac_init_help=
  819. ac_init_version=false
  820. ac_unrecognized_opts=
  821. ac_unrecognized_sep=
  822. # The variables have the same names as the options, with
  823. # dashes changed to underlines.
  824. cache_file=/dev/null
  825. exec_prefix=NONE
  826. no_create=
  827. no_recursion=
  828. prefix=NONE
  829. program_prefix=NONE
  830. program_suffix=NONE
  831. program_transform_name=s,x,x,
  832. silent=
  833. site=
  834. srcdir=
  835. verbose=
  836. x_includes=NONE
  837. x_libraries=NONE
  838. # Installation directory options.
  839. # These are left unexpanded so users can "make install exec_prefix=/foo"
  840. # and all the variables that are supposed to be based on exec_prefix
  841. # by default will actually change.
  842. # Use braces instead of parens because sh, perl, etc. also accept them.
  843. # (The list follows the same order as the GNU Coding Standards.)
  844. bindir='${exec_prefix}/bin'
  845. sbindir='${exec_prefix}/sbin'
  846. libexecdir='${exec_prefix}/libexec'
  847. datarootdir='${prefix}/share'
  848. datadir='${datarootdir}'
  849. sysconfdir='${prefix}/etc'
  850. sharedstatedir='${prefix}/com'
  851. localstatedir='${prefix}/var'
  852. includedir='${prefix}/include'
  853. oldincludedir='/usr/include'
  854. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  855. infodir='${datarootdir}/info'
  856. htmldir='${docdir}'
  857. dvidir='${docdir}'
  858. pdfdir='${docdir}'
  859. psdir='${docdir}'
  860. libdir='${exec_prefix}/lib'
  861. localedir='${datarootdir}/locale'
  862. mandir='${datarootdir}/man'
  863. ac_prev=
  864. ac_dashdash=
  865. for ac_option
  866. do
  867. # If the previous option needs an argument, assign it.
  868. if test -n "$ac_prev"; then
  869. eval $ac_prev=\$ac_option
  870. ac_prev=
  871. continue
  872. fi
  873. case $ac_option in
  874. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  875. *=) ac_optarg= ;;
  876. *) ac_optarg=yes ;;
  877. esac
  878. # Accept the important Cygnus configure options, so we can diagnose typos.
  879. case $ac_dashdash$ac_option in
  880. --)
  881. ac_dashdash=yes ;;
  882. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  883. ac_prev=bindir ;;
  884. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  885. bindir=$ac_optarg ;;
  886. -build | --build | --buil | --bui | --bu)
  887. ac_prev=build_alias ;;
  888. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  889. build_alias=$ac_optarg ;;
  890. -cache-file | --cache-file | --cache-fil | --cache-fi \
  891. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  892. ac_prev=cache_file ;;
  893. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  894. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  895. cache_file=$ac_optarg ;;
  896. --config-cache | -C)
  897. cache_file=config.cache ;;
  898. -datadir | --datadir | --datadi | --datad)
  899. ac_prev=datadir ;;
  900. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  901. datadir=$ac_optarg ;;
  902. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  903. | --dataroo | --dataro | --datar)
  904. ac_prev=datarootdir ;;
  905. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  906. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  907. datarootdir=$ac_optarg ;;
  908. -disable-* | --disable-*)
  909. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  910. # Reject names that are not valid shell variable names.
  911. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  912. as_fn_error $? "invalid feature name: $ac_useropt"
  913. ac_useropt_orig=$ac_useropt
  914. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  915. case $ac_user_opts in
  916. *"
  917. "enable_$ac_useropt"
  918. "*) ;;
  919. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  920. ac_unrecognized_sep=', ';;
  921. esac
  922. eval enable_$ac_useropt=no ;;
  923. -docdir | --docdir | --docdi | --doc | --do)
  924. ac_prev=docdir ;;
  925. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  926. docdir=$ac_optarg ;;
  927. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  928. ac_prev=dvidir ;;
  929. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  930. dvidir=$ac_optarg ;;
  931. -enable-* | --enable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error $? "invalid feature name: $ac_useropt"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=\$ac_optarg ;;
  946. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  947. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  948. | --exec | --exe | --ex)
  949. ac_prev=exec_prefix ;;
  950. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  951. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  952. | --exec=* | --exe=* | --ex=*)
  953. exec_prefix=$ac_optarg ;;
  954. -gas | --gas | --ga | --g)
  955. # Obsolete; use --with-gas.
  956. with_gas=yes ;;
  957. -help | --help | --hel | --he | -h)
  958. ac_init_help=long ;;
  959. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  960. ac_init_help=recursive ;;
  961. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  962. ac_init_help=short ;;
  963. -host | --host | --hos | --ho)
  964. ac_prev=host_alias ;;
  965. -host=* | --host=* | --hos=* | --ho=*)
  966. host_alias=$ac_optarg ;;
  967. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  968. ac_prev=htmldir ;;
  969. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  970. | --ht=*)
  971. htmldir=$ac_optarg ;;
  972. -includedir | --includedir | --includedi | --included | --include \
  973. | --includ | --inclu | --incl | --inc)
  974. ac_prev=includedir ;;
  975. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  976. | --includ=* | --inclu=* | --incl=* | --inc=*)
  977. includedir=$ac_optarg ;;
  978. -infodir | --infodir | --infodi | --infod | --info | --inf)
  979. ac_prev=infodir ;;
  980. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  981. infodir=$ac_optarg ;;
  982. -libdir | --libdir | --libdi | --libd)
  983. ac_prev=libdir ;;
  984. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  985. libdir=$ac_optarg ;;
  986. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  987. | --libexe | --libex | --libe)
  988. ac_prev=libexecdir ;;
  989. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  990. | --libexe=* | --libex=* | --libe=*)
  991. libexecdir=$ac_optarg ;;
  992. -localedir | --localedir | --localedi | --localed | --locale)
  993. ac_prev=localedir ;;
  994. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  995. localedir=$ac_optarg ;;
  996. -localstatedir | --localstatedir | --localstatedi | --localstated \
  997. | --localstate | --localstat | --localsta | --localst | --locals)
  998. ac_prev=localstatedir ;;
  999. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1000. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1001. localstatedir=$ac_optarg ;;
  1002. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1003. ac_prev=mandir ;;
  1004. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1005. mandir=$ac_optarg ;;
  1006. -nfp | --nfp | --nf)
  1007. # Obsolete; use --without-fp.
  1008. with_fp=no ;;
  1009. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1010. | --no-cr | --no-c | -n)
  1011. no_create=yes ;;
  1012. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1013. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1014. no_recursion=yes ;;
  1015. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1016. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1017. | --oldin | --oldi | --old | --ol | --o)
  1018. ac_prev=oldincludedir ;;
  1019. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1020. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1021. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1022. oldincludedir=$ac_optarg ;;
  1023. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1024. ac_prev=prefix ;;
  1025. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1026. prefix=$ac_optarg ;;
  1027. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1028. | --program-pre | --program-pr | --program-p)
  1029. ac_prev=program_prefix ;;
  1030. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1031. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1032. program_prefix=$ac_optarg ;;
  1033. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1034. | --program-suf | --program-su | --program-s)
  1035. ac_prev=program_suffix ;;
  1036. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1037. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1038. program_suffix=$ac_optarg ;;
  1039. -program-transform-name | --program-transform-name \
  1040. | --program-transform-nam | --program-transform-na \
  1041. | --program-transform-n | --program-transform- \
  1042. | --program-transform | --program-transfor \
  1043. | --program-transfo | --program-transf \
  1044. | --program-trans | --program-tran \
  1045. | --progr-tra | --program-tr | --program-t)
  1046. ac_prev=program_transform_name ;;
  1047. -program-transform-name=* | --program-transform-name=* \
  1048. | --program-transform-nam=* | --program-transform-na=* \
  1049. | --program-transform-n=* | --program-transform-=* \
  1050. | --program-transform=* | --program-transfor=* \
  1051. | --program-transfo=* | --program-transf=* \
  1052. | --program-trans=* | --program-tran=* \
  1053. | --progr-tra=* | --program-tr=* | --program-t=*)
  1054. program_transform_name=$ac_optarg ;;
  1055. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1056. ac_prev=pdfdir ;;
  1057. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1058. pdfdir=$ac_optarg ;;
  1059. -psdir | --psdir | --psdi | --psd | --ps)
  1060. ac_prev=psdir ;;
  1061. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1062. psdir=$ac_optarg ;;
  1063. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1064. | -silent | --silent | --silen | --sile | --sil)
  1065. silent=yes ;;
  1066. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1067. ac_prev=sbindir ;;
  1068. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1069. | --sbi=* | --sb=*)
  1070. sbindir=$ac_optarg ;;
  1071. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1072. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1073. | --sharedst | --shareds | --shared | --share | --shar \
  1074. | --sha | --sh)
  1075. ac_prev=sharedstatedir ;;
  1076. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1077. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1078. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1079. | --sha=* | --sh=*)
  1080. sharedstatedir=$ac_optarg ;;
  1081. -site | --site | --sit)
  1082. ac_prev=site ;;
  1083. -site=* | --site=* | --sit=*)
  1084. site=$ac_optarg ;;
  1085. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1086. ac_prev=srcdir ;;
  1087. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1088. srcdir=$ac_optarg ;;
  1089. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1090. | --syscon | --sysco | --sysc | --sys | --sy)
  1091. ac_prev=sysconfdir ;;
  1092. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1093. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1094. sysconfdir=$ac_optarg ;;
  1095. -target | --target | --targe | --targ | --tar | --ta | --t)
  1096. ac_prev=target_alias ;;
  1097. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1098. target_alias=$ac_optarg ;;
  1099. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1100. verbose=yes ;;
  1101. -version | --version | --versio | --versi | --vers | -V)
  1102. ac_init_version=: ;;
  1103. -with-* | --with-*)
  1104. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1105. # Reject names that are not valid shell variable names.
  1106. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1107. as_fn_error $? "invalid package name: $ac_useropt"
  1108. ac_useropt_orig=$ac_useropt
  1109. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1110. case $ac_user_opts in
  1111. *"
  1112. "with_$ac_useropt"
  1113. "*) ;;
  1114. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1115. ac_unrecognized_sep=', ';;
  1116. esac
  1117. eval with_$ac_useropt=\$ac_optarg ;;
  1118. -without-* | --without-*)
  1119. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1120. # Reject names that are not valid shell variable names.
  1121. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1122. as_fn_error $? "invalid package name: $ac_useropt"
  1123. ac_useropt_orig=$ac_useropt
  1124. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1125. case $ac_user_opts in
  1126. *"
  1127. "with_$ac_useropt"
  1128. "*) ;;
  1129. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1130. ac_unrecognized_sep=', ';;
  1131. esac
  1132. eval with_$ac_useropt=no ;;
  1133. --x)
  1134. # Obsolete; use --with-x.
  1135. with_x=yes ;;
  1136. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1137. | --x-incl | --x-inc | --x-in | --x-i)
  1138. ac_prev=x_includes ;;
  1139. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1140. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1141. x_includes=$ac_optarg ;;
  1142. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1143. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1144. ac_prev=x_libraries ;;
  1145. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1146. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1147. x_libraries=$ac_optarg ;;
  1148. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1149. Try \`$0 --help' for more information"
  1150. ;;
  1151. *=*)
  1152. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1153. # Reject names that are not valid shell variable names.
  1154. case $ac_envvar in #(
  1155. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1156. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1157. esac
  1158. eval $ac_envvar=\$ac_optarg
  1159. export $ac_envvar ;;
  1160. *)
  1161. # FIXME: should be removed in autoconf 3.0.
  1162. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1163. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1164. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1165. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1166. ;;
  1167. esac
  1168. done
  1169. if test -n "$ac_prev"; then
  1170. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1171. as_fn_error $? "missing argument to $ac_option"
  1172. fi
  1173. if test -n "$ac_unrecognized_opts"; then
  1174. case $enable_option_checking in
  1175. no) ;;
  1176. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1177. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1178. esac
  1179. fi
  1180. # Check all directory arguments for consistency.
  1181. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1182. datadir sysconfdir sharedstatedir localstatedir includedir \
  1183. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1184. libdir localedir mandir
  1185. do
  1186. eval ac_val=\$$ac_var
  1187. # Remove trailing slashes.
  1188. case $ac_val in
  1189. */ )
  1190. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1191. eval $ac_var=\$ac_val;;
  1192. esac
  1193. # Be sure to have absolute directory names.
  1194. case $ac_val in
  1195. [\\/$]* | ?:[\\/]* ) continue;;
  1196. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1197. esac
  1198. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1199. done
  1200. # There might be people who depend on the old broken behavior: `$host'
  1201. # used to hold the argument of --host etc.
  1202. # FIXME: To remove some day.
  1203. build=$build_alias
  1204. host=$host_alias
  1205. target=$target_alias
  1206. # FIXME: To remove some day.
  1207. if test "x$host_alias" != x; then
  1208. if test "x$build_alias" = x; then
  1209. cross_compiling=maybe
  1210. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1211. If a cross compiler is detected then cross compile mode will be used" >&2
  1212. elif test "x$build_alias" != "x$host_alias"; then
  1213. cross_compiling=yes
  1214. fi
  1215. fi
  1216. ac_tool_prefix=
  1217. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1218. test "$silent" = yes && exec 6>/dev/null
  1219. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1220. ac_ls_di=`ls -di .` &&
  1221. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1222. as_fn_error $? "working directory cannot be determined"
  1223. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1224. as_fn_error $? "pwd does not report name of working directory"
  1225. # Find the source files, if location was not specified.
  1226. if test -z "$srcdir"; then
  1227. ac_srcdir_defaulted=yes
  1228. # Try the directory containing this script, then the parent directory.
  1229. ac_confdir=`$as_dirname -- "$as_myself" ||
  1230. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1231. X"$as_myself" : 'X\(//\)[^/]' \| \
  1232. X"$as_myself" : 'X\(//\)$' \| \
  1233. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1234. $as_echo X"$as_myself" |
  1235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\/\)[^/].*/{
  1240. s//\1/
  1241. q
  1242. }
  1243. /^X\(\/\/\)$/{
  1244. s//\1/
  1245. q
  1246. }
  1247. /^X\(\/\).*/{
  1248. s//\1/
  1249. q
  1250. }
  1251. s/.*/./; q'`
  1252. srcdir=$ac_confdir
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. srcdir=..
  1255. fi
  1256. else
  1257. ac_srcdir_defaulted=no
  1258. fi
  1259. if test ! -r "$srcdir/$ac_unique_file"; then
  1260. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1261. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1262. fi
  1263. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1264. ac_abs_confdir=`(
  1265. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1266. pwd)`
  1267. # When building in place, set srcdir=.
  1268. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1269. srcdir=.
  1270. fi
  1271. # Remove unnecessary trailing slashes from srcdir.
  1272. # Double slashes in file names in object file debugging info
  1273. # mess up M-x gdb in Emacs.
  1274. case $srcdir in
  1275. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1276. esac
  1277. for ac_var in $ac_precious_vars; do
  1278. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1279. eval ac_env_${ac_var}_value=\$${ac_var}
  1280. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1282. done
  1283. #
  1284. # Report the --help message.
  1285. #
  1286. if test "$ac_init_help" = "long"; then
  1287. # Omit some internal or obsolete options to make the list less imposing.
  1288. # This message is too long to be a string in the A/UX 3.1 sh.
  1289. cat <<_ACEOF
  1290. \`configure' configures json-c 0.10 to adapt to many kinds of systems.
  1291. Usage: $0 [OPTION]... [VAR=VALUE]...
  1292. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1293. VAR=VALUE. See below for descriptions of some of the useful variables.
  1294. Defaults for the options are specified in brackets.
  1295. Configuration:
  1296. -h, --help display this help and exit
  1297. --help=short display options specific to this package
  1298. --help=recursive display the short help of all the included packages
  1299. -V, --version display version information and exit
  1300. -q, --quiet, --silent do not print \`checking ...' messages
  1301. --cache-file=FILE cache test results in FILE [disabled]
  1302. -C, --config-cache alias for \`--cache-file=config.cache'
  1303. -n, --no-create do not create output files
  1304. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1305. Installation directories:
  1306. --prefix=PREFIX install architecture-independent files in PREFIX
  1307. [$ac_default_prefix]
  1308. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1309. [PREFIX]
  1310. By default, \`make install' will install all the files in
  1311. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1312. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1313. for instance \`--prefix=\$HOME'.
  1314. For better control, use the options below.
  1315. Fine tuning of the installation directories:
  1316. --bindir=DIR user executables [EPREFIX/bin]
  1317. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1318. --libexecdir=DIR program executables [EPREFIX/libexec]
  1319. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1320. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1321. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1322. --libdir=DIR object code libraries [EPREFIX/lib]
  1323. --includedir=DIR C header files [PREFIX/include]
  1324. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1325. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1326. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1327. --infodir=DIR info documentation [DATAROOTDIR/info]
  1328. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1329. --mandir=DIR man documentation [DATAROOTDIR/man]
  1330. --docdir=DIR documentation root [DATAROOTDIR/doc/json-c]
  1331. --htmldir=DIR html documentation [DOCDIR]
  1332. --dvidir=DIR dvi documentation [DOCDIR]
  1333. --pdfdir=DIR pdf documentation [DOCDIR]
  1334. --psdir=DIR ps documentation [DOCDIR]
  1335. _ACEOF
  1336. cat <<\_ACEOF
  1337. Program names:
  1338. --program-prefix=PREFIX prepend PREFIX to installed program names
  1339. --program-suffix=SUFFIX append SUFFIX to installed program names
  1340. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1341. System types:
  1342. --build=BUILD configure for building on BUILD [guessed]
  1343. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1344. _ACEOF
  1345. fi
  1346. if test -n "$ac_init_help"; then
  1347. case $ac_init_help in
  1348. short | recursive ) echo "Configuration of json-c 0.10:";;
  1349. esac
  1350. cat <<\_ACEOF
  1351. Optional Features:
  1352. --disable-option-checking ignore unrecognized --enable/--with options
  1353. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1354. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1355. --disable-dependency-tracking speeds up one-time build
  1356. --enable-dependency-tracking do not reject slow dependency extractors
  1357. --enable-shared[=PKGS] build shared libraries [default=yes]
  1358. --enable-static[=PKGS] build static libraries [default=yes]
  1359. --enable-fast-install[=PKGS]
  1360. optimize for fast installation [default=yes]
  1361. --disable-libtool-lock avoid locking (might break parallel builds)
  1362. Optional Packages:
  1363. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1364. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1365. --with-pic try to use only PIC/non-PIC objects [default=use
  1366. both]
  1367. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1368. Some influential environment variables:
  1369. CC C compiler command
  1370. CFLAGS C compiler flags
  1371. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1372. nonstandard directory <lib dir>
  1373. LIBS libraries to pass to the linker, e.g. -l<library>
  1374. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1375. you have headers in a nonstandard directory <include dir>
  1376. CPP C preprocessor
  1377. Use these variables to override the choices made by `configure' or to help
  1378. it to find libraries and programs with nonstandard names/locations.
  1379. Report bugs to <json-c@googlegroups.com>.
  1380. _ACEOF
  1381. ac_status=$?
  1382. fi
  1383. if test "$ac_init_help" = "recursive"; then
  1384. # If there are subdirs, report their specific --help.
  1385. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1386. test -d "$ac_dir" ||
  1387. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1388. continue
  1389. ac_builddir=.
  1390. case "$ac_dir" in
  1391. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1392. *)
  1393. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1394. # A ".." for each directory in $ac_dir_suffix.
  1395. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1396. case $ac_top_builddir_sub in
  1397. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1399. esac ;;
  1400. esac
  1401. ac_abs_top_builddir=$ac_pwd
  1402. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1403. # for backward compatibility:
  1404. ac_top_builddir=$ac_top_build_prefix
  1405. case $srcdir in
  1406. .) # We are building in place.
  1407. ac_srcdir=.
  1408. ac_top_srcdir=$ac_top_builddir_sub
  1409. ac_abs_top_srcdir=$ac_pwd ;;
  1410. [\\/]* | ?:[\\/]* ) # Absolute name.
  1411. ac_srcdir=$srcdir$ac_dir_suffix;
  1412. ac_top_srcdir=$srcdir
  1413. ac_abs_top_srcdir=$srcdir ;;
  1414. *) # Relative name.
  1415. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1416. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1417. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1418. esac
  1419. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1420. cd "$ac_dir" || { ac_status=$?; continue; }
  1421. # Check for guested configure.
  1422. if test -f "$ac_srcdir/configure.gnu"; then
  1423. echo &&
  1424. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1425. elif test -f "$ac_srcdir/configure"; then
  1426. echo &&
  1427. $SHELL "$ac_srcdir/configure" --help=recursive
  1428. else
  1429. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1430. fi || ac_status=$?
  1431. cd "$ac_pwd" || { ac_status=$?; break; }
  1432. done
  1433. fi
  1434. test -n "$ac_init_help" && exit $ac_status
  1435. if $ac_init_version; then
  1436. cat <<\_ACEOF
  1437. json-c configure 0.10
  1438. generated by GNU Autoconf 2.68
  1439. Copyright (C) 2010 Free Software Foundation, Inc.
  1440. This configure script is free software; the Free Software Foundation
  1441. gives unlimited permission to copy, distribute and modify it.
  1442. _ACEOF
  1443. exit
  1444. fi
  1445. ## ------------------------ ##
  1446. ## Autoconf initialization. ##
  1447. ## ------------------------ ##
  1448. # ac_fn_c_try_compile LINENO
  1449. # --------------------------
  1450. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1451. ac_fn_c_try_compile ()
  1452. {
  1453. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454. rm -f conftest.$ac_objext
  1455. if { { ac_try="$ac_compile"
  1456. case "(($ac_try" in
  1457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1458. *) ac_try_echo=$ac_try;;
  1459. esac
  1460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1461. $as_echo "$ac_try_echo"; } >&5
  1462. (eval "$ac_compile") 2>conftest.err
  1463. ac_status=$?
  1464. if test -s conftest.err; then
  1465. grep -v '^ *+' conftest.err >conftest.er1
  1466. cat conftest.er1 >&5
  1467. mv -f conftest.er1 conftest.err
  1468. fi
  1469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1470. test $ac_status = 0; } && {
  1471. test -z "$ac_c_werror_flag" ||
  1472. test ! -s conftest.err
  1473. } && test -s conftest.$ac_objext; then :
  1474. ac_retval=0
  1475. else
  1476. $as_echo "$as_me: failed program was:" >&5
  1477. sed 's/^/| /' conftest.$ac_ext >&5
  1478. ac_retval=1
  1479. fi
  1480. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1481. as_fn_set_status $ac_retval
  1482. } # ac_fn_c_try_compile
  1483. # ac_fn_c_try_cpp LINENO
  1484. # ----------------------
  1485. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1486. ac_fn_c_try_cpp ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1490. case "(($ac_try" in
  1491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1492. *) ac_try_echo=$ac_try;;
  1493. esac
  1494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1495. $as_echo "$ac_try_echo"; } >&5
  1496. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1497. ac_status=$?
  1498. if test -s conftest.err; then
  1499. grep -v '^ *+' conftest.err >conftest.er1
  1500. cat conftest.er1 >&5
  1501. mv -f conftest.er1 conftest.err
  1502. fi
  1503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1504. test $ac_status = 0; } > conftest.i && {
  1505. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1506. test ! -s conftest.err
  1507. }; then :
  1508. ac_retval=0
  1509. else
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=1
  1513. fi
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. as_fn_set_status $ac_retval
  1516. } # ac_fn_c_try_cpp
  1517. # ac_fn_c_try_run LINENO
  1518. # ----------------------
  1519. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1520. # that executables *can* be run.
  1521. ac_fn_c_try_run ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. if { { ac_try="$ac_link"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_link") 2>&5
  1532. ac_status=$?
  1533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1534. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1535. { { case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_try") 2>&5
  1542. ac_status=$?
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; }; }; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: program exited with status $ac_status" >&5
  1548. $as_echo "$as_me: failed program was:" >&5
  1549. sed 's/^/| /' conftest.$ac_ext >&5
  1550. ac_retval=$ac_status
  1551. fi
  1552. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1553. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1554. as_fn_set_status $ac_retval
  1555. } # ac_fn_c_try_run
  1556. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1557. # -------------------------------------------------------
  1558. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1559. # the include files in INCLUDES and setting the cache variable VAR
  1560. # accordingly.
  1561. ac_fn_c_check_header_mongrel ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. if eval \${$3+:} false; then :
  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. fi
  1570. eval ac_res=\$$3
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1572. $as_echo "$ac_res" >&6; }
  1573. else
  1574. # Is the header compilable?
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1576. $as_echo_n "checking $2 usability... " >&6; }
  1577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1578. /* end confdefs.h. */
  1579. $4
  1580. #include <$2>
  1581. _ACEOF
  1582. if ac_fn_c_try_compile "$LINENO"; then :
  1583. ac_header_compiler=yes
  1584. else
  1585. ac_header_compiler=no
  1586. fi
  1587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1589. $as_echo "$ac_header_compiler" >&6; }
  1590. # Is the header present?
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1592. $as_echo_n "checking $2 presence... " >&6; }
  1593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1594. /* end confdefs.h. */
  1595. #include <$2>
  1596. _ACEOF
  1597. if ac_fn_c_try_cpp "$LINENO"; then :
  1598. ac_header_preproc=yes
  1599. else
  1600. ac_header_preproc=no
  1601. fi
  1602. rm -f conftest.err conftest.i conftest.$ac_ext
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1604. $as_echo "$ac_header_preproc" >&6; }
  1605. # So? What about this header?
  1606. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1607. yes:no: )
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1609. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1611. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1612. ;;
  1613. no:yes:* )
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1615. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1617. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1619. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1621. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1623. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1624. ( $as_echo "## -------------------------------------- ##
  1625. ## Report this to json-c@googlegroups.com ##
  1626. ## -------------------------------------- ##"
  1627. ) | sed "s/^/$as_me: WARNING: /" >&2
  1628. ;;
  1629. esac
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if eval \${$3+:} false; then :
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. eval "$3=\$ac_header_compiler"
  1636. fi
  1637. eval ac_res=\$$3
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. $as_echo "$ac_res" >&6; }
  1640. fi
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. } # ac_fn_c_check_header_mongrel
  1643. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1644. # -------------------------------------------------------
  1645. # Tests whether HEADER exists and can be compiled using the include files in
  1646. # INCLUDES, setting the cache variable VAR accordingly.
  1647. ac_fn_c_check_header_compile ()
  1648. {
  1649. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1651. $as_echo_n "checking for $2... " >&6; }
  1652. if eval \${$3+:} false; then :
  1653. $as_echo_n "(cached) " >&6
  1654. else
  1655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1656. /* end confdefs.h. */
  1657. $4
  1658. #include <$2>
  1659. _ACEOF
  1660. if ac_fn_c_try_compile "$LINENO"; then :
  1661. eval "$3=yes"
  1662. else
  1663. eval "$3=no"
  1664. fi
  1665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1666. fi
  1667. eval ac_res=\$$3
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1669. $as_echo "$ac_res" >&6; }
  1670. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1671. } # ac_fn_c_check_header_compile
  1672. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1673. # -------------------------------------------
  1674. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1675. # variable VAR accordingly.
  1676. ac_fn_c_check_type ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1680. $as_echo_n "checking for $2... " >&6; }
  1681. if eval \${$3+:} false; then :
  1682. $as_echo_n "(cached) " >&6
  1683. else
  1684. eval "$3=no"
  1685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1686. /* end confdefs.h. */
  1687. $4
  1688. int
  1689. main ()
  1690. {
  1691. if (sizeof ($2))
  1692. return 0;
  1693. ;
  1694. return 0;
  1695. }
  1696. _ACEOF
  1697. if ac_fn_c_try_compile "$LINENO"; then :
  1698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1699. /* end confdefs.h. */
  1700. $4
  1701. int
  1702. main ()
  1703. {
  1704. if (sizeof (($2)))
  1705. return 0;
  1706. ;
  1707. return 0;
  1708. }
  1709. _ACEOF
  1710. if ac_fn_c_try_compile "$LINENO"; then :
  1711. else
  1712. eval "$3=yes"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1715. fi
  1716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1717. fi
  1718. eval ac_res=\$$3
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1720. $as_echo "$ac_res" >&6; }
  1721. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1722. } # ac_fn_c_check_type
  1723. # ac_fn_c_try_link LINENO
  1724. # -----------------------
  1725. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1726. ac_fn_c_try_link ()
  1727. {
  1728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. rm -f conftest.$ac_objext conftest$ac_exeext
  1730. if { { ac_try="$ac_link"
  1731. case "(($ac_try" in
  1732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1733. *) ac_try_echo=$ac_try;;
  1734. esac
  1735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1736. $as_echo "$ac_try_echo"; } >&5
  1737. (eval "$ac_link") 2>conftest.err
  1738. ac_status=$?
  1739. if test -s conftest.err; then
  1740. grep -v '^ *+' conftest.err >conftest.er1
  1741. cat conftest.er1 >&5
  1742. mv -f conftest.er1 conftest.err
  1743. fi
  1744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1745. test $ac_status = 0; } && {
  1746. test -z "$ac_c_werror_flag" ||
  1747. test ! -s conftest.err
  1748. } && test -s conftest$ac_exeext && {
  1749. test "$cross_compiling" = yes ||
  1750. $as_test_x conftest$ac_exeext
  1751. }; then :
  1752. ac_retval=0
  1753. else
  1754. $as_echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_retval=1
  1757. fi
  1758. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1759. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1760. # interfere with the next link command; also delete a directory that is
  1761. # left behind by Apple's compiler. We do this before executing the actions.
  1762. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1763. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1764. as_fn_set_status $ac_retval
  1765. } # ac_fn_c_try_link
  1766. # ac_fn_c_check_func LINENO FUNC VAR
  1767. # ----------------------------------
  1768. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1769. ac_fn_c_check_func ()
  1770. {
  1771. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1773. $as_echo_n "checking for $2... " >&6; }
  1774. if eval \${$3+:} false; then :
  1775. $as_echo_n "(cached) " >&6
  1776. else
  1777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1778. /* end confdefs.h. */
  1779. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1781. #define $2 innocuous_$2
  1782. /* System header to define __stub macros and hopefully few prototypes,
  1783. which can conflict with char $2 (); below.
  1784. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1785. <limits.h> exists even on freestanding compilers. */
  1786. #ifdef __STDC__
  1787. # include <limits.h>
  1788. #else
  1789. # include <assert.h>
  1790. #endif
  1791. #undef $2
  1792. /* Override any GCC internal prototype to avoid an error.
  1793. Use char because int might match the return type of a GCC
  1794. builtin and then its argument prototype would still apply. */
  1795. #ifdef __cplusplus
  1796. extern "C"
  1797. #endif
  1798. char $2 ();
  1799. /* The GNU C library defines this for functions which it implements
  1800. to always fail with ENOSYS. Some functions are actually named
  1801. something starting with __ and the normal name is an alias. */
  1802. #if defined __stub_$2 || defined __stub___$2
  1803. choke me
  1804. #endif
  1805. int
  1806. main ()
  1807. {
  1808. return $2 ();
  1809. ;
  1810. return 0;
  1811. }
  1812. _ACEOF
  1813. if ac_fn_c_try_link "$LINENO"; then :
  1814. eval "$3=yes"
  1815. else
  1816. eval "$3=no"
  1817. fi
  1818. rm -f core conftest.err conftest.$ac_objext \
  1819. conftest$ac_exeext conftest.$ac_ext
  1820. fi
  1821. eval ac_res=\$$3
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1823. $as_echo "$ac_res" >&6; }
  1824. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1825. } # ac_fn_c_check_func
  1826. cat >config.log <<_ACEOF
  1827. This file contains any messages produced by compilers while
  1828. running configure, to aid debugging if configure makes a mistake.
  1829. It was created by json-c $as_me 0.10, which was
  1830. generated by GNU Autoconf 2.68. Invocation command line was
  1831. $ $0 $@
  1832. _ACEOF
  1833. exec 5>>config.log
  1834. {
  1835. cat <<_ASUNAME
  1836. ## --------- ##
  1837. ## Platform. ##
  1838. ## --------- ##
  1839. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1840. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1841. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1842. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1843. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1844. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1845. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1846. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1847. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1848. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1849. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1850. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1851. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1852. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1853. _ASUNAME
  1854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1855. for as_dir in $PATH
  1856. do
  1857. IFS=$as_save_IFS
  1858. test -z "$as_dir" && as_dir=.
  1859. $as_echo "PATH: $as_dir"
  1860. done
  1861. IFS=$as_save_IFS
  1862. } >&5
  1863. cat >&5 <<_ACEOF
  1864. ## ----------- ##
  1865. ## Core tests. ##
  1866. ## ----------- ##
  1867. _ACEOF
  1868. # Keep a trace of the command line.
  1869. # Strip out --no-create and --no-recursion so they do not pile up.
  1870. # Strip out --silent because we don't want to record it for future runs.
  1871. # Also quote any args containing shell meta-characters.
  1872. # Make two passes to allow for proper duplicate-argument suppression.
  1873. ac_configure_args=
  1874. ac_configure_args0=
  1875. ac_configure_args1=
  1876. ac_must_keep_next=false
  1877. for ac_pass in 1 2
  1878. do
  1879. for ac_arg
  1880. do
  1881. case $ac_arg in
  1882. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1883. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1884. | -silent | --silent | --silen | --sile | --sil)
  1885. continue ;;
  1886. *\'*)
  1887. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1888. esac
  1889. case $ac_pass in
  1890. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1891. 2)
  1892. as_fn_append ac_configure_args1 " '$ac_arg'"
  1893. if test $ac_must_keep_next = true; then
  1894. ac_must_keep_next=false # Got value, back to normal.
  1895. else
  1896. case $ac_arg in
  1897. *=* | --config-cache | -C | -disable-* | --disable-* \
  1898. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1899. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1900. | -with-* | --with-* | -without-* | --without-* | --x)
  1901. case "$ac_configure_args0 " in
  1902. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1903. esac
  1904. ;;
  1905. -* ) ac_must_keep_next=true ;;
  1906. esac
  1907. fi
  1908. as_fn_append ac_configure_args " '$ac_arg'"
  1909. ;;
  1910. esac
  1911. done
  1912. done
  1913. { ac_configure_args0=; unset ac_configure_args0;}
  1914. { ac_configure_args1=; unset ac_configure_args1;}
  1915. # When interrupted or exit'd, cleanup temporary files, and complete
  1916. # config.log. We remove comments because anyway the quotes in there
  1917. # would cause problems or look ugly.
  1918. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1919. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1920. trap 'exit_status=$?
  1921. # Save into config.log some information that might help in debugging.
  1922. {
  1923. echo
  1924. $as_echo "## ---------------- ##
  1925. ## Cache variables. ##
  1926. ## ---------------- ##"
  1927. echo
  1928. # The following way of writing the cache mishandles newlines in values,
  1929. (
  1930. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1931. eval ac_val=\$$ac_var
  1932. case $ac_val in #(
  1933. *${as_nl}*)
  1934. case $ac_var in #(
  1935. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1936. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1937. esac
  1938. case $ac_var in #(
  1939. _ | IFS | as_nl) ;; #(
  1940. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1941. *) { eval $ac_var=; unset $ac_var;} ;;
  1942. esac ;;
  1943. esac
  1944. done
  1945. (set) 2>&1 |
  1946. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1947. *${as_nl}ac_space=\ *)
  1948. sed -n \
  1949. "s/'\''/'\''\\\\'\'''\''/g;
  1950. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1951. ;; #(
  1952. *)
  1953. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1954. ;;
  1955. esac |
  1956. sort
  1957. )
  1958. echo
  1959. $as_echo "## ----------------- ##
  1960. ## Output variables. ##
  1961. ## ----------------- ##"
  1962. echo
  1963. for ac_var in $ac_subst_vars
  1964. do
  1965. eval ac_val=\$$ac_var
  1966. case $ac_val in
  1967. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1968. esac
  1969. $as_echo "$ac_var='\''$ac_val'\''"
  1970. done | sort
  1971. echo
  1972. if test -n "$ac_subst_files"; then
  1973. $as_echo "## ------------------- ##
  1974. ## File substitutions. ##
  1975. ## ------------------- ##"
  1976. echo
  1977. for ac_var in $ac_subst_files
  1978. do
  1979. eval ac_val=\$$ac_var
  1980. case $ac_val in
  1981. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1982. esac
  1983. $as_echo "$ac_var='\''$ac_val'\''"
  1984. done | sort
  1985. echo
  1986. fi
  1987. if test -s confdefs.h; then
  1988. $as_echo "## ----------- ##
  1989. ## confdefs.h. ##
  1990. ## ----------- ##"
  1991. echo
  1992. cat confdefs.h
  1993. echo
  1994. fi
  1995. test "$ac_signal" != 0 &&
  1996. $as_echo "$as_me: caught signal $ac_signal"
  1997. $as_echo "$as_me: exit $exit_status"
  1998. } >&5
  1999. rm -f core *.core core.conftest.* &&
  2000. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2001. exit $exit_status
  2002. ' 0
  2003. for ac_signal in 1 2 13 15; do
  2004. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2005. done
  2006. ac_signal=0
  2007. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2008. rm -f -r conftest* confdefs.h
  2009. $as_echo "/* confdefs.h */" > confdefs.h
  2010. # Predefined preprocessor variables.
  2011. cat >>confdefs.h <<_ACEOF
  2012. #define PACKAGE_NAME "$PACKAGE_NAME"
  2013. _ACEOF
  2014. cat >>confdefs.h <<_ACEOF
  2015. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2016. _ACEOF
  2017. cat >>confdefs.h <<_ACEOF
  2018. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2019. _ACEOF
  2020. cat >>confdefs.h <<_ACEOF
  2021. #define PACKAGE_STRING "$PACKAGE_STRING"
  2022. _ACEOF
  2023. cat >>confdefs.h <<_ACEOF
  2024. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2025. _ACEOF
  2026. cat >>confdefs.h <<_ACEOF
  2027. #define PACKAGE_URL "$PACKAGE_URL"
  2028. _ACEOF
  2029. # Let the site file select an alternate cache file if it wants to.
  2030. # Prefer an explicitly selected file to automatically selected ones.
  2031. ac_site_file1=NONE
  2032. ac_site_file2=NONE
  2033. if test -n "$CONFIG_SITE"; then
  2034. # We do not want a PATH search for config.site.
  2035. case $CONFIG_SITE in #((
  2036. -*) ac_site_file1=./$CONFIG_SITE;;
  2037. */*) ac_site_file1=$CONFIG_SITE;;
  2038. *) ac_site_file1=./$CONFIG_SITE;;
  2039. esac
  2040. elif test "x$prefix" != xNONE; then
  2041. ac_site_file1=$prefix/share/config.site
  2042. ac_site_file2=$prefix/etc/config.site
  2043. else
  2044. ac_site_file1=$ac_default_prefix/share/config.site
  2045. ac_site_file2=$ac_default_prefix/etc/config.site
  2046. fi
  2047. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2048. do
  2049. test "x$ac_site_file" = xNONE && continue
  2050. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2052. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2053. sed 's/^/| /' "$ac_site_file" >&5
  2054. . "$ac_site_file" \
  2055. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2057. as_fn_error $? "failed to load site script $ac_site_file
  2058. See \`config.log' for more details" "$LINENO" 5; }
  2059. fi
  2060. done
  2061. if test -r "$cache_file"; then
  2062. # Some versions of bash will fail to source /dev/null (special files
  2063. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2064. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2066. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2067. case $cache_file in
  2068. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2069. *) . "./$cache_file";;
  2070. esac
  2071. fi
  2072. else
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2074. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2075. >$cache_file
  2076. fi
  2077. # Check that the precious variables saved in the cache have kept the same
  2078. # value.
  2079. ac_cache_corrupted=false
  2080. for ac_var in $ac_precious_vars; do
  2081. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2082. eval ac_new_set=\$ac_env_${ac_var}_set
  2083. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2084. eval ac_new_val=\$ac_env_${ac_var}_value
  2085. case $ac_old_set,$ac_new_set in
  2086. set,)
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2088. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2089. ac_cache_corrupted=: ;;
  2090. ,set)
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2092. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2093. ac_cache_corrupted=: ;;
  2094. ,);;
  2095. *)
  2096. if test "x$ac_old_val" != "x$ac_new_val"; then
  2097. # differences in whitespace do not lead to failure.
  2098. ac_old_val_w=`echo x $ac_old_val`
  2099. ac_new_val_w=`echo x $ac_new_val`
  2100. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2102. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2103. ac_cache_corrupted=:
  2104. else
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2106. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2107. eval $ac_var=\$ac_old_val
  2108. fi
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2110. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2112. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2113. fi;;
  2114. esac
  2115. # Pass precious variables to config.status.
  2116. if test "$ac_new_set" = set; then
  2117. case $ac_new_val in
  2118. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2119. *) ac_arg=$ac_var=$ac_new_val ;;
  2120. esac
  2121. case " $ac_configure_args " in
  2122. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2123. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2124. esac
  2125. fi
  2126. done
  2127. if $ac_cache_corrupted; then
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2131. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2132. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2133. fi
  2134. ## -------------------- ##
  2135. ## Main body of script. ##
  2136. ## -------------------- ##
  2137. ac_ext=c
  2138. ac_cpp='$CPP $CPPFLAGS'
  2139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2142. am__api_version='1.11'
  2143. ac_aux_dir=
  2144. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2145. if test -f "$ac_dir/install-sh"; then
  2146. ac_aux_dir=$ac_dir
  2147. ac_install_sh="$ac_aux_dir/install-sh -c"
  2148. break
  2149. elif test -f "$ac_dir/install.sh"; then
  2150. ac_aux_dir=$ac_dir
  2151. ac_install_sh="$ac_aux_dir/install.sh -c"
  2152. break
  2153. elif test -f "$ac_dir/shtool"; then
  2154. ac_aux_dir=$ac_dir
  2155. ac_install_sh="$ac_aux_dir/shtool install -c"
  2156. break
  2157. fi
  2158. done
  2159. if test -z "$ac_aux_dir"; then
  2160. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2161. fi
  2162. # These three variables are undocumented and unsupported,
  2163. # and are intended to be withdrawn in a future Autoconf release.
  2164. # They can cause serious problems if a builder's source tree is in a directory
  2165. # whose full name contains unusual characters.
  2166. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2167. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2168. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2169. # Find a good install program. We prefer a C program (faster),
  2170. # so one script is as good as another. But avoid the broken or
  2171. # incompatible versions:
  2172. # SysV /etc/install, /usr/sbin/install
  2173. # SunOS /usr/etc/install
  2174. # IRIX /sbin/install
  2175. # AIX /bin/install
  2176. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2177. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2178. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2179. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2180. # OS/2's system install, which has a completely different semantic
  2181. # ./install, which can be erroneously created by make from ./install.sh.
  2182. # Reject install programs that cannot install multiple files.
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2184. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2185. if test -z "$INSTALL"; then
  2186. if ${ac_cv_path_install+:} false; then :
  2187. $as_echo_n "(cached) " >&6
  2188. else
  2189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2190. for as_dir in $PATH
  2191. do
  2192. IFS=$as_save_IFS
  2193. test -z "$as_dir" && as_dir=.
  2194. # Account for people who put trailing slashes in PATH elements.
  2195. case $as_dir/ in #((
  2196. ./ | .// | /[cC]/* | \
  2197. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2198. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2199. /usr/ucb/* ) ;;
  2200. *)
  2201. # OSF1 and SCO ODT 3.0 have their own names for install.
  2202. # Don't use installbsd from OSF since it installs stuff as root
  2203. # by default.
  2204. for ac_prog in ginstall scoinst install; do
  2205. for ac_exec_ext in '' $ac_executable_extensions; do
  2206. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2207. if test $ac_prog = install &&
  2208. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2209. # AIX install. It has an incompatible calling convention.
  2210. :
  2211. elif test $ac_prog = install &&
  2212. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2213. # program-specific install script used by HP pwplus--don't use.
  2214. :
  2215. else
  2216. rm -rf conftest.one conftest.two conftest.dir
  2217. echo one > conftest.one
  2218. echo two > conftest.two
  2219. mkdir conftest.dir
  2220. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2221. test -s conftest.one && test -s conftest.two &&
  2222. test -s conftest.dir/conftest.one &&
  2223. test -s conftest.dir/conftest.two
  2224. then
  2225. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2226. break 3
  2227. fi
  2228. fi
  2229. fi
  2230. done
  2231. done
  2232. ;;
  2233. esac
  2234. done
  2235. IFS=$as_save_IFS
  2236. rm -rf conftest.one conftest.two conftest.dir
  2237. fi
  2238. if test "${ac_cv_path_install+set}" = set; then
  2239. INSTALL=$ac_cv_path_install
  2240. else
  2241. # As a last resort, use the slow shell script. Don't cache a
  2242. # value for INSTALL within a source directory, because that will
  2243. # break other packages using the cache if that directory is
  2244. # removed, or if the value is a relative name.
  2245. INSTALL=$ac_install_sh
  2246. fi
  2247. fi
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2249. $as_echo "$INSTALL" >&6; }
  2250. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2251. # It thinks the first close brace ends the variable substitution.
  2252. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2253. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2254. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2256. $as_echo_n "checking whether build environment is sane... " >&6; }
  2257. # Just in case
  2258. sleep 1
  2259. echo timestamp > conftest.file
  2260. # Reject unsafe characters in $srcdir or the absolute working directory
  2261. # name. Accept space and tab only in the latter.
  2262. am_lf='
  2263. '
  2264. case `pwd` in
  2265. *[\\\"\#\$\&\'\`$am_lf]*)
  2266. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2267. esac
  2268. case $srcdir in
  2269. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2270. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2271. esac
  2272. # Do `set' in a subshell so we don't clobber the current shell's
  2273. # arguments. Must try -L first in case configure is actually a
  2274. # symlink; some systems play weird games with the mod time of symlinks
  2275. # (eg FreeBSD returns the mod time of the symlink's containing
  2276. # directory).
  2277. if (
  2278. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2279. if test "$*" = "X"; then
  2280. # -L didn't work.
  2281. set X `ls -t "$srcdir/configure" conftest.file`
  2282. fi
  2283. rm -f conftest.file
  2284. if test "$*" != "X $srcdir/configure conftest.file" \
  2285. && test "$*" != "X conftest.file $srcdir/configure"; then
  2286. # If neither matched, then we have a broken ls. This can happen
  2287. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2288. # broken ls alias from the environment. This has actually
  2289. # happened. Such a system could not be considered "sane".
  2290. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2291. alias in your environment" "$LINENO" 5
  2292. fi
  2293. test "$2" = conftest.file
  2294. )
  2295. then
  2296. # Ok.
  2297. :
  2298. else
  2299. as_fn_error $? "newly created file is older than distributed files!
  2300. Check your system clock" "$LINENO" 5
  2301. fi
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2303. $as_echo "yes" >&6; }
  2304. test "$program_prefix" != NONE &&
  2305. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2306. # Use a double $ so make ignores it.
  2307. test "$program_suffix" != NONE &&
  2308. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2309. # Double any \ or $.
  2310. # By default was `s,x,x', remove it if useless.
  2311. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2312. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2313. # expand $ac_aux_dir to an absolute path
  2314. am_aux_dir=`cd $ac_aux_dir && pwd`
  2315. if test x"${MISSING+set}" != xset; then
  2316. case $am_aux_dir in
  2317. *\ * | *\ *)
  2318. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2319. *)
  2320. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2321. esac
  2322. fi
  2323. # Use eval to expand $SHELL
  2324. if eval "$MISSING --run true"; then
  2325. am_missing_run="$MISSING --run "
  2326. else
  2327. am_missing_run=
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2329. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2330. fi
  2331. if test x"${install_sh}" != xset; then
  2332. case $am_aux_dir in
  2333. *\ * | *\ *)
  2334. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2335. *)
  2336. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2337. esac
  2338. fi
  2339. # Installed binaries are usually stripped using `strip' when the user
  2340. # run `make install-strip'. However `strip' might not be the right
  2341. # tool to use in cross-compilation environments, therefore Automake
  2342. # will honor the `STRIP' environment variable to overrule this program.
  2343. if test "$cross_compiling" != no; then
  2344. if test -n "$ac_tool_prefix"; then
  2345. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2346. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2348. $as_echo_n "checking for $ac_word... " >&6; }
  2349. if ${ac_cv_prog_STRIP+:} false; then :
  2350. $as_echo_n "(cached) " >&6
  2351. else
  2352. if test -n "$STRIP"; then
  2353. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2354. else
  2355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2356. for as_dir in $PATH
  2357. do
  2358. IFS=$as_save_IFS
  2359. test -z "$as_dir" && as_dir=.
  2360. for ac_exec_ext in '' $ac_executable_extensions; do
  2361. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2362. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2364. break 2
  2365. fi
  2366. done
  2367. done
  2368. IFS=$as_save_IFS
  2369. fi
  2370. fi
  2371. STRIP=$ac_cv_prog_STRIP
  2372. if test -n "$STRIP"; then
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2374. $as_echo "$STRIP" >&6; }
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2377. $as_echo "no" >&6; }
  2378. fi
  2379. fi
  2380. if test -z "$ac_cv_prog_STRIP"; then
  2381. ac_ct_STRIP=$STRIP
  2382. # Extract the first word of "strip", so it can be a program name with args.
  2383. set dummy strip; ac_word=$2
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2385. $as_echo_n "checking for $ac_word... " >&6; }
  2386. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2387. $as_echo_n "(cached) " >&6
  2388. else
  2389. if test -n "$ac_ct_STRIP"; then
  2390. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2391. else
  2392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2393. for as_dir in $PATH
  2394. do
  2395. IFS=$as_save_IFS
  2396. test -z "$as_dir" && as_dir=.
  2397. for ac_exec_ext in '' $ac_executable_extensions; do
  2398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2399. ac_cv_prog_ac_ct_STRIP="strip"
  2400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2401. break 2
  2402. fi
  2403. done
  2404. done
  2405. IFS=$as_save_IFS
  2406. fi
  2407. fi
  2408. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2409. if test -n "$ac_ct_STRIP"; then
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2411. $as_echo "$ac_ct_STRIP" >&6; }
  2412. else
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2414. $as_echo "no" >&6; }
  2415. fi
  2416. if test "x$ac_ct_STRIP" = x; then
  2417. STRIP=":"
  2418. else
  2419. case $cross_compiling:$ac_tool_warned in
  2420. yes:)
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2422. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2423. ac_tool_warned=yes ;;
  2424. esac
  2425. STRIP=$ac_ct_STRIP
  2426. fi
  2427. else
  2428. STRIP="$ac_cv_prog_STRIP"
  2429. fi
  2430. fi
  2431. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2433. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2434. if test -z "$MKDIR_P"; then
  2435. if ${ac_cv_path_mkdir+:} false; then :
  2436. $as_echo_n "(cached) " >&6
  2437. else
  2438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2439. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2440. do
  2441. IFS=$as_save_IFS
  2442. test -z "$as_dir" && as_dir=.
  2443. for ac_prog in mkdir gmkdir; do
  2444. for ac_exec_ext in '' $ac_executable_extensions; do
  2445. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2446. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2447. 'mkdir (GNU coreutils) '* | \
  2448. 'mkdir (coreutils) '* | \
  2449. 'mkdir (fileutils) '4.1*)
  2450. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2451. break 3;;
  2452. esac
  2453. done
  2454. done
  2455. done
  2456. IFS=$as_save_IFS
  2457. fi
  2458. test -d ./--version && rmdir ./--version
  2459. if test "${ac_cv_path_mkdir+set}" = set; then
  2460. MKDIR_P="$ac_cv_path_mkdir -p"
  2461. else
  2462. # As a last resort, use the slow shell script. Don't cache a
  2463. # value for MKDIR_P within a source directory, because that will
  2464. # break other packages using the cache if that directory is
  2465. # removed, or if the value is a relative name.
  2466. MKDIR_P="$ac_install_sh -d"
  2467. fi
  2468. fi
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2470. $as_echo "$MKDIR_P" >&6; }
  2471. mkdir_p="$MKDIR_P"
  2472. case $mkdir_p in
  2473. [\\/$]* | ?:[\\/]*) ;;
  2474. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2475. esac
  2476. for ac_prog in gawk mawk nawk awk
  2477. do
  2478. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2479. set dummy $ac_prog; ac_word=$2
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2481. $as_echo_n "checking for $ac_word... " >&6; }
  2482. if ${ac_cv_prog_AWK+:} false; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. if test -n "$AWK"; then
  2486. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2487. else
  2488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2489. for as_dir in $PATH
  2490. do
  2491. IFS=$as_save_IFS
  2492. test -z "$as_dir" && as_dir=.
  2493. for ac_exec_ext in '' $ac_executable_extensions; do
  2494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2495. ac_cv_prog_AWK="$ac_prog"
  2496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2497. break 2
  2498. fi
  2499. done
  2500. done
  2501. IFS=$as_save_IFS
  2502. fi
  2503. fi
  2504. AWK=$ac_cv_prog_AWK
  2505. if test -n "$AWK"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2507. $as_echo "$AWK" >&6; }
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2510. $as_echo "no" >&6; }
  2511. fi
  2512. test -n "$AWK" && break
  2513. done
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2515. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2516. set x ${MAKE-make}
  2517. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2518. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2519. $as_echo_n "(cached) " >&6
  2520. else
  2521. cat >conftest.make <<\_ACEOF
  2522. SHELL = /bin/sh
  2523. all:
  2524. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2525. _ACEOF
  2526. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2527. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2528. *@@@%%%=?*=@@@%%%*)
  2529. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2530. *)
  2531. eval ac_cv_prog_make_${ac_make}_set=no;;
  2532. esac
  2533. rm -f conftest.make
  2534. fi
  2535. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2537. $as_echo "yes" >&6; }
  2538. SET_MAKE=
  2539. else
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2541. $as_echo "no" >&6; }
  2542. SET_MAKE="MAKE=${MAKE-make}"
  2543. fi
  2544. rm -rf .tst 2>/dev/null
  2545. mkdir .tst 2>/dev/null
  2546. if test -d .tst; then
  2547. am__leading_dot=.
  2548. else
  2549. am__leading_dot=_
  2550. fi
  2551. rmdir .tst 2>/dev/null
  2552. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2553. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2554. # is not polluted with repeated "-I."
  2555. am__isrc=' -I$(srcdir)'
  2556. # test to see if srcdir already configured
  2557. if test -f $srcdir/config.status; then
  2558. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2559. fi
  2560. fi
  2561. # test whether we have cygpath
  2562. if test -z "$CYGPATH_W"; then
  2563. if (cygpath --version) >/dev/null 2>/dev/null; then
  2564. CYGPATH_W='cygpath -w'
  2565. else
  2566. CYGPATH_W=echo
  2567. fi
  2568. fi
  2569. # Define the identity of the package.
  2570. PACKAGE=json-c
  2571. VERSION=0.10
  2572. cat >>confdefs.h <<_ACEOF
  2573. #define PACKAGE "$PACKAGE"
  2574. _ACEOF
  2575. cat >>confdefs.h <<_ACEOF
  2576. #define VERSION "$VERSION"
  2577. _ACEOF
  2578. # Some tools Automake needs.
  2579. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2580. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2581. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2582. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2583. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2584. # We need awk for the "check" target. The system "awk" is bad on
  2585. # some platforms.
  2586. # Always define AMTAR for backward compatibility.
  2587. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2588. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2590. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2591. set x ${MAKE-make}
  2592. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2593. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. cat >conftest.make <<\_ACEOF
  2597. SHELL = /bin/sh
  2598. all:
  2599. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2600. _ACEOF
  2601. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2602. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2603. *@@@%%%=?*=@@@%%%*)
  2604. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2605. *)
  2606. eval ac_cv_prog_make_${ac_make}_set=no;;
  2607. esac
  2608. rm -f conftest.make
  2609. fi
  2610. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2612. $as_echo "yes" >&6; }
  2613. SET_MAKE=
  2614. else
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2616. $as_echo "no" >&6; }
  2617. SET_MAKE="MAKE=${MAKE-make}"
  2618. fi
  2619. # Checks for programs.
  2620. # Checks for libraries.
  2621. # Checks for header files.
  2622. ac_config_headers="$ac_config_headers config.h"
  2623. ac_config_headers="$ac_config_headers json_config.h"
  2624. DEPDIR="${am__leading_dot}deps"
  2625. ac_config_commands="$ac_config_commands depfiles"
  2626. am_make=${MAKE-make}
  2627. cat > confinc << 'END'
  2628. am__doit:
  2629. @echo this is the am__doit target
  2630. .PHONY: am__doit
  2631. END
  2632. # If we don't find an include directive, just comment out the code.
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2634. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2635. am__include="#"
  2636. am__quote=
  2637. _am_result=none
  2638. # First try GNU make style include.
  2639. echo "include confinc" > confmf
  2640. # Ignore all kinds of additional output from `make'.
  2641. case `$am_make -s -f confmf 2> /dev/null` in #(
  2642. *the\ am__doit\ target*)
  2643. am__include=include
  2644. am__quote=
  2645. _am_result=GNU
  2646. ;;
  2647. esac
  2648. # Now try BSD make style include.
  2649. if test "$am__include" = "#"; then
  2650. echo '.include "confinc"' > confmf
  2651. case `$am_make -s -f confmf 2> /dev/null` in #(
  2652. *the\ am__doit\ target*)
  2653. am__include=.include
  2654. am__quote="\""
  2655. _am_result=BSD
  2656. ;;
  2657. esac
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2660. $as_echo "$_am_result" >&6; }
  2661. rm -f confinc confmf
  2662. # Check whether --enable-dependency-tracking was given.
  2663. if test "${enable_dependency_tracking+set}" = set; then :
  2664. enableval=$enable_dependency_tracking;
  2665. fi
  2666. if test "x$enable_dependency_tracking" != xno; then
  2667. am_depcomp="$ac_aux_dir/depcomp"
  2668. AMDEPBACKSLASH='\'
  2669. fi
  2670. if test "x$enable_dependency_tracking" != xno; then
  2671. AMDEP_TRUE=
  2672. AMDEP_FALSE='#'
  2673. else
  2674. AMDEP_TRUE='#'
  2675. AMDEP_FALSE=
  2676. fi
  2677. ac_ext=c
  2678. ac_cpp='$CPP $CPPFLAGS'
  2679. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2680. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2682. if test -n "$ac_tool_prefix"; then
  2683. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2684. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2686. $as_echo_n "checking for $ac_word... " >&6; }
  2687. if ${ac_cv_prog_CC+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. if test -n "$CC"; then
  2691. ac_cv_prog_CC="$CC" # Let the user override the test.
  2692. else
  2693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2694. for as_dir in $PATH
  2695. do
  2696. IFS=$as_save_IFS
  2697. test -z "$as_dir" && as_dir=.
  2698. for ac_exec_ext in '' $ac_executable_extensions; do
  2699. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2700. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. fi
  2708. fi
  2709. CC=$ac_cv_prog_CC
  2710. if test -n "$CC"; then
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2712. $as_echo "$CC" >&6; }
  2713. else
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2715. $as_echo "no" >&6; }
  2716. fi
  2717. fi
  2718. if test -z "$ac_cv_prog_CC"; then
  2719. ac_ct_CC=$CC
  2720. # Extract the first word of "gcc", so it can be a program name with args.
  2721. set dummy gcc; ac_word=$2
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2723. $as_echo_n "checking for $ac_word... " >&6; }
  2724. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. if test -n "$ac_ct_CC"; then
  2728. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2729. else
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2737. ac_cv_prog_ac_ct_CC="gcc"
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. IFS=$as_save_IFS
  2744. fi
  2745. fi
  2746. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2747. if test -n "$ac_ct_CC"; then
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2749. $as_echo "$ac_ct_CC" >&6; }
  2750. else
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2752. $as_echo "no" >&6; }
  2753. fi
  2754. if test "x$ac_ct_CC" = x; then
  2755. CC=""
  2756. else
  2757. case $cross_compiling:$ac_tool_warned in
  2758. yes:)
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2760. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2761. ac_tool_warned=yes ;;
  2762. esac
  2763. CC=$ac_ct_CC
  2764. fi
  2765. else
  2766. CC="$ac_cv_prog_CC"
  2767. fi
  2768. if test -z "$CC"; then
  2769. if test -n "$ac_tool_prefix"; then
  2770. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2771. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2773. $as_echo_n "checking for $ac_word... " >&6; }
  2774. if ${ac_cv_prog_CC+:} false; then :
  2775. $as_echo_n "(cached) " >&6
  2776. else
  2777. if test -n "$CC"; then
  2778. ac_cv_prog_CC="$CC" # Let the user override the test.
  2779. else
  2780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2781. for as_dir in $PATH
  2782. do
  2783. IFS=$as_save_IFS
  2784. test -z "$as_dir" && as_dir=.
  2785. for ac_exec_ext in '' $ac_executable_extensions; do
  2786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2787. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2789. break 2
  2790. fi
  2791. done
  2792. done
  2793. IFS=$as_save_IFS
  2794. fi
  2795. fi
  2796. CC=$ac_cv_prog_CC
  2797. if test -n "$CC"; then
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2799. $as_echo "$CC" >&6; }
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2802. $as_echo "no" >&6; }
  2803. fi
  2804. fi
  2805. fi
  2806. if test -z "$CC"; then
  2807. # Extract the first word of "cc", so it can be a program name with args.
  2808. set dummy cc; ac_word=$2
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2810. $as_echo_n "checking for $ac_word... " >&6; }
  2811. if ${ac_cv_prog_CC+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. if test -n "$CC"; then
  2815. ac_cv_prog_CC="$CC" # Let the user override the test.
  2816. else
  2817. ac_prog_rejected=no
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2825. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2826. ac_prog_rejected=yes
  2827. continue
  2828. fi
  2829. ac_cv_prog_CC="cc"
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. if test $ac_prog_rejected = yes; then
  2837. # We found a bogon in the path, so make sure we never use it.
  2838. set dummy $ac_cv_prog_CC
  2839. shift
  2840. if test $# != 0; then
  2841. # We chose a different compiler from the bogus one.
  2842. # However, it has the same basename, so the bogon will be chosen
  2843. # first if we set CC to just the basename; use the full file name.
  2844. shift
  2845. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2846. fi
  2847. fi
  2848. fi
  2849. fi
  2850. CC=$ac_cv_prog_CC
  2851. if test -n "$CC"; then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2853. $as_echo "$CC" >&6; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. fi
  2859. if test -z "$CC"; then
  2860. if test -n "$ac_tool_prefix"; then
  2861. for ac_prog in cl.exe
  2862. do
  2863. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2864. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2866. $as_echo_n "checking for $ac_word... " >&6; }
  2867. if ${ac_cv_prog_CC+:} false; then :
  2868. $as_echo_n "(cached) " >&6
  2869. else
  2870. if test -n "$CC"; then
  2871. ac_cv_prog_CC="$CC" # Let the user override the test.
  2872. else
  2873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2874. for as_dir in $PATH
  2875. do
  2876. IFS=$as_save_IFS
  2877. test -z "$as_dir" && as_dir=.
  2878. for ac_exec_ext in '' $ac_executable_extensions; do
  2879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2880. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2882. break 2
  2883. fi
  2884. done
  2885. done
  2886. IFS=$as_save_IFS
  2887. fi
  2888. fi
  2889. CC=$ac_cv_prog_CC
  2890. if test -n "$CC"; then
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2892. $as_echo "$CC" >&6; }
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. fi
  2897. test -n "$CC" && break
  2898. done
  2899. fi
  2900. if test -z "$CC"; then
  2901. ac_ct_CC=$CC
  2902. for ac_prog in cl.exe
  2903. do
  2904. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2905. set dummy $ac_prog; ac_word=$2
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2907. $as_echo_n "checking for $ac_word... " >&6; }
  2908. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2909. $as_echo_n "(cached) " >&6
  2910. else
  2911. if test -n "$ac_ct_CC"; then
  2912. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2913. else
  2914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2915. for as_dir in $PATH
  2916. do
  2917. IFS=$as_save_IFS
  2918. test -z "$as_dir" && as_dir=.
  2919. for ac_exec_ext in '' $ac_executable_extensions; do
  2920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2921. ac_cv_prog_ac_ct_CC="$ac_prog"
  2922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2923. break 2
  2924. fi
  2925. done
  2926. done
  2927. IFS=$as_save_IFS
  2928. fi
  2929. fi
  2930. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2931. if test -n "$ac_ct_CC"; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2933. $as_echo "$ac_ct_CC" >&6; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. fi
  2938. test -n "$ac_ct_CC" && break
  2939. done
  2940. if test "x$ac_ct_CC" = x; then
  2941. CC=""
  2942. else
  2943. case $cross_compiling:$ac_tool_warned in
  2944. yes:)
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2946. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2947. ac_tool_warned=yes ;;
  2948. esac
  2949. CC=$ac_ct_CC
  2950. fi
  2951. fi
  2952. fi
  2953. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2954. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2955. as_fn_error $? "no acceptable C compiler found in \$PATH
  2956. See \`config.log' for more details" "$LINENO" 5; }
  2957. # Provide some information about the compiler.
  2958. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2959. set X $ac_compile
  2960. ac_compiler=$2
  2961. for ac_option in --version -v -V -qversion; do
  2962. { { ac_try="$ac_compiler $ac_option >&5"
  2963. case "(($ac_try" in
  2964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2965. *) ac_try_echo=$ac_try;;
  2966. esac
  2967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2968. $as_echo "$ac_try_echo"; } >&5
  2969. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2970. ac_status=$?
  2971. if test -s conftest.err; then
  2972. sed '10a\
  2973. ... rest of stderr output deleted ...
  2974. 10q' conftest.err >conftest.er1
  2975. cat conftest.er1 >&5
  2976. fi
  2977. rm -f conftest.er1 conftest.err
  2978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2979. test $ac_status = 0; }
  2980. done
  2981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2982. /* end confdefs.h. */
  2983. int
  2984. main ()
  2985. {
  2986. ;
  2987. return 0;
  2988. }
  2989. _ACEOF
  2990. ac_clean_files_save=$ac_clean_files
  2991. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2992. # Try to create an executable without -o first, disregard a.out.
  2993. # It will help us diagnose broken compilers, and finding out an intuition
  2994. # of exeext.
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2996. $as_echo_n "checking whether the C compiler works... " >&6; }
  2997. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2998. # The possible output files:
  2999. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3000. ac_rmfiles=
  3001. for ac_file in $ac_files
  3002. do
  3003. case $ac_file in
  3004. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3005. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3006. esac
  3007. done
  3008. rm -f $ac_rmfiles
  3009. if { { ac_try="$ac_link_default"
  3010. case "(($ac_try" in
  3011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3012. *) ac_try_echo=$ac_try;;
  3013. esac
  3014. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3015. $as_echo "$ac_try_echo"; } >&5
  3016. (eval "$ac_link_default") 2>&5
  3017. ac_status=$?
  3018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3019. test $ac_status = 0; }; then :
  3020. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3021. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3022. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3023. # so that the user can short-circuit this test for compilers unknown to
  3024. # Autoconf.
  3025. for ac_file in $ac_files ''
  3026. do
  3027. test -f "$ac_file" || continue
  3028. case $ac_file in
  3029. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3030. ;;
  3031. [ab].out )
  3032. # We found the default executable, but exeext='' is most
  3033. # certainly right.
  3034. break;;
  3035. *.* )
  3036. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3037. then :; else
  3038. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3039. fi
  3040. # We set ac_cv_exeext here because the later test for it is not
  3041. # safe: cross compilers may not add the suffix if given an `-o'
  3042. # argument, so we may need to know it at that point already.
  3043. # Even if this section looks crufty: it has the advantage of
  3044. # actually working.
  3045. break;;
  3046. * )
  3047. break;;
  3048. esac
  3049. done
  3050. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3051. else
  3052. ac_file=''
  3053. fi
  3054. if test -z "$ac_file"; then :
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3056. $as_echo "no" >&6; }
  3057. $as_echo "$as_me: failed program was:" >&5
  3058. sed 's/^/| /' conftest.$ac_ext >&5
  3059. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3061. as_fn_error 77 "C compiler cannot create executables
  3062. See \`config.log' for more details" "$LINENO" 5; }
  3063. else
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3065. $as_echo "yes" >&6; }
  3066. fi
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3068. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3070. $as_echo "$ac_file" >&6; }
  3071. ac_exeext=$ac_cv_exeext
  3072. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3073. ac_clean_files=$ac_clean_files_save
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3075. $as_echo_n "checking for suffix of executables... " >&6; }
  3076. if { { ac_try="$ac_link"
  3077. case "(($ac_try" in
  3078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3079. *) ac_try_echo=$ac_try;;
  3080. esac
  3081. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3082. $as_echo "$ac_try_echo"; } >&5
  3083. (eval "$ac_link") 2>&5
  3084. ac_status=$?
  3085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3086. test $ac_status = 0; }; then :
  3087. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3088. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3089. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3090. # `rm'.
  3091. for ac_file in conftest.exe conftest conftest.*; do
  3092. test -f "$ac_file" || continue
  3093. case $ac_file in
  3094. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3095. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3096. break;;
  3097. * ) break;;
  3098. esac
  3099. done
  3100. else
  3101. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3102. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3103. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3104. See \`config.log' for more details" "$LINENO" 5; }
  3105. fi
  3106. rm -f conftest conftest$ac_cv_exeext
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3108. $as_echo "$ac_cv_exeext" >&6; }
  3109. rm -f conftest.$ac_ext
  3110. EXEEXT=$ac_cv_exeext
  3111. ac_exeext=$EXEEXT
  3112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3113. /* end confdefs.h. */
  3114. #include <stdio.h>
  3115. int
  3116. main ()
  3117. {
  3118. FILE *f = fopen ("conftest.out", "w");
  3119. return ferror (f) || fclose (f) != 0;
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. ac_clean_files="$ac_clean_files conftest.out"
  3125. # Check that the compiler produces executables we can run. If not, either
  3126. # the compiler is broken, or we cross compile.
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3128. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3129. if test "$cross_compiling" != yes; then
  3130. { { ac_try="$ac_link"
  3131. case "(($ac_try" in
  3132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3133. *) ac_try_echo=$ac_try;;
  3134. esac
  3135. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3136. $as_echo "$ac_try_echo"; } >&5
  3137. (eval "$ac_link") 2>&5
  3138. ac_status=$?
  3139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3140. test $ac_status = 0; }
  3141. if { ac_try='./conftest$ac_cv_exeext'
  3142. { { case "(($ac_try" in
  3143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3144. *) ac_try_echo=$ac_try;;
  3145. esac
  3146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3147. $as_echo "$ac_try_echo"; } >&5
  3148. (eval "$ac_try") 2>&5
  3149. ac_status=$?
  3150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3151. test $ac_status = 0; }; }; then
  3152. cross_compiling=no
  3153. else
  3154. if test "$cross_compiling" = maybe; then
  3155. cross_compiling=yes
  3156. else
  3157. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3159. as_fn_error $? "cannot run C compiled programs.
  3160. If you meant to cross compile, use \`--host'.
  3161. See \`config.log' for more details" "$LINENO" 5; }
  3162. fi
  3163. fi
  3164. fi
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3166. $as_echo "$cross_compiling" >&6; }
  3167. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3168. ac_clean_files=$ac_clean_files_save
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3170. $as_echo_n "checking for suffix of object files... " >&6; }
  3171. if ${ac_cv_objext+:} false; then :
  3172. $as_echo_n "(cached) " >&6
  3173. else
  3174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3175. /* end confdefs.h. */
  3176. int
  3177. main ()
  3178. {
  3179. ;
  3180. return 0;
  3181. }
  3182. _ACEOF
  3183. rm -f conftest.o conftest.obj
  3184. if { { ac_try="$ac_compile"
  3185. case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo"; } >&5
  3191. (eval "$ac_compile") 2>&5
  3192. ac_status=$?
  3193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3194. test $ac_status = 0; }; then :
  3195. for ac_file in conftest.o conftest.obj conftest.*; do
  3196. test -f "$ac_file" || continue;
  3197. case $ac_file in
  3198. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3199. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3200. break;;
  3201. esac
  3202. done
  3203. else
  3204. $as_echo "$as_me: failed program was:" >&5
  3205. sed 's/^/| /' conftest.$ac_ext >&5
  3206. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3208. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3209. See \`config.log' for more details" "$LINENO" 5; }
  3210. fi
  3211. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3212. fi
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3214. $as_echo "$ac_cv_objext" >&6; }
  3215. OBJEXT=$ac_cv_objext
  3216. ac_objext=$OBJEXT
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3218. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3219. if ${ac_cv_c_compiler_gnu+:} false; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3223. /* end confdefs.h. */
  3224. int
  3225. main ()
  3226. {
  3227. #ifndef __GNUC__
  3228. choke me
  3229. #endif
  3230. ;
  3231. return 0;
  3232. }
  3233. _ACEOF
  3234. if ac_fn_c_try_compile "$LINENO"; then :
  3235. ac_compiler_gnu=yes
  3236. else
  3237. ac_compiler_gnu=no
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3241. fi
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3243. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3244. if test $ac_compiler_gnu = yes; then
  3245. GCC=yes
  3246. else
  3247. GCC=
  3248. fi
  3249. ac_test_CFLAGS=${CFLAGS+set}
  3250. ac_save_CFLAGS=$CFLAGS
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3252. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3253. if ${ac_cv_prog_cc_g+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. ac_save_c_werror_flag=$ac_c_werror_flag
  3257. ac_c_werror_flag=yes
  3258. ac_cv_prog_cc_g=no
  3259. CFLAGS="-g"
  3260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3261. /* end confdefs.h. */
  3262. int
  3263. main ()
  3264. {
  3265. ;
  3266. return 0;
  3267. }
  3268. _ACEOF
  3269. if ac_fn_c_try_compile "$LINENO"; then :
  3270. ac_cv_prog_cc_g=yes
  3271. else
  3272. CFLAGS=""
  3273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3274. /* end confdefs.h. */
  3275. int
  3276. main ()
  3277. {
  3278. ;
  3279. return 0;
  3280. }
  3281. _ACEOF
  3282. if ac_fn_c_try_compile "$LINENO"; then :
  3283. else
  3284. ac_c_werror_flag=$ac_save_c_werror_flag
  3285. CFLAGS="-g"
  3286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3287. /* end confdefs.h. */
  3288. int
  3289. main ()
  3290. {
  3291. ;
  3292. return 0;
  3293. }
  3294. _ACEOF
  3295. if ac_fn_c_try_compile "$LINENO"; then :
  3296. ac_cv_prog_cc_g=yes
  3297. fi
  3298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3299. fi
  3300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3301. fi
  3302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3303. ac_c_werror_flag=$ac_save_c_werror_flag
  3304. fi
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3306. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3307. if test "$ac_test_CFLAGS" = set; then
  3308. CFLAGS=$ac_save_CFLAGS
  3309. elif test $ac_cv_prog_cc_g = yes; then
  3310. if test "$GCC" = yes; then
  3311. CFLAGS="-g -O2"
  3312. else
  3313. CFLAGS="-g"
  3314. fi
  3315. else
  3316. if test "$GCC" = yes; then
  3317. CFLAGS="-O2"
  3318. else
  3319. CFLAGS=
  3320. fi
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3323. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3324. if ${ac_cv_prog_cc_c89+:} false; then :
  3325. $as_echo_n "(cached) " >&6
  3326. else
  3327. ac_cv_prog_cc_c89=no
  3328. ac_save_CC=$CC
  3329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3330. /* end confdefs.h. */
  3331. #include <stdarg.h>
  3332. #include <stdio.h>
  3333. #include <sys/types.h>
  3334. #include <sys/stat.h>
  3335. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3336. struct buf { int x; };
  3337. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3338. static char *e (p, i)
  3339. char **p;
  3340. int i;
  3341. {
  3342. return p[i];
  3343. }
  3344. static char *f (char * (*g) (char **, int), char **p, ...)
  3345. {
  3346. char *s;
  3347. va_list v;
  3348. va_start (v,p);
  3349. s = g (p, va_arg (v,int));
  3350. va_end (v);
  3351. return s;
  3352. }
  3353. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3354. function prototypes and stuff, but not '\xHH' hex character constants.
  3355. These don't provoke an error unfortunately, instead are silently treated
  3356. as 'x'. The following induces an error, until -std is added to get
  3357. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3358. array size at least. It's necessary to write '\x00'==0 to get something
  3359. that's true only with -std. */
  3360. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3361. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3362. inside strings and character constants. */
  3363. #define FOO(x) 'x'
  3364. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3365. int test (int i, double x);
  3366. struct s1 {int (*f) (int a);};
  3367. struct s2 {int (*f) (double a);};
  3368. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3369. int argc;
  3370. char **argv;
  3371. int
  3372. main ()
  3373. {
  3374. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3375. ;
  3376. return 0;
  3377. }
  3378. _ACEOF
  3379. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3380. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3381. do
  3382. CC="$ac_save_CC $ac_arg"
  3383. if ac_fn_c_try_compile "$LINENO"; then :
  3384. ac_cv_prog_cc_c89=$ac_arg
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext
  3387. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3388. done
  3389. rm -f conftest.$ac_ext
  3390. CC=$ac_save_CC
  3391. fi
  3392. # AC_CACHE_VAL
  3393. case "x$ac_cv_prog_cc_c89" in
  3394. x)
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3396. $as_echo "none needed" >&6; } ;;
  3397. xno)
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3399. $as_echo "unsupported" >&6; } ;;
  3400. *)
  3401. CC="$CC $ac_cv_prog_cc_c89"
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3403. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3404. esac
  3405. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3406. fi
  3407. ac_ext=c
  3408. ac_cpp='$CPP $CPPFLAGS'
  3409. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3410. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3411. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3412. depcc="$CC" am_compiler_list=
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3414. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3415. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3416. $as_echo_n "(cached) " >&6
  3417. else
  3418. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3419. # We make a subdir and do the tests there. Otherwise we can end up
  3420. # making bogus files that we don't know about and never remove. For
  3421. # instance it was reported that on HP-UX the gcc test will end up
  3422. # making a dummy file named `D' -- because `-MD' means `put the output
  3423. # in D'.
  3424. mkdir conftest.dir
  3425. # Copy depcomp to subdir because otherwise we won't find it if we're
  3426. # using a relative directory.
  3427. cp "$am_depcomp" conftest.dir
  3428. cd conftest.dir
  3429. # We will build objects and dependencies in a subdirectory because
  3430. # it helps to detect inapplicable dependency modes. For instance
  3431. # both Tru64's cc and ICC support -MD to output dependencies as a
  3432. # side effect of compilation, but ICC will put the dependencies in
  3433. # the current directory while Tru64 will put them in the object
  3434. # directory.
  3435. mkdir sub
  3436. am_cv_CC_dependencies_compiler_type=none
  3437. if test "$am_compiler_list" = ""; then
  3438. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3439. fi
  3440. am__universal=false
  3441. case " $depcc " in #(
  3442. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3443. esac
  3444. for depmode in $am_compiler_list; do
  3445. # Setup a source with many dependencies, because some compilers
  3446. # like to wrap large dependency lists on column 80 (with \), and
  3447. # we should not choose a depcomp mode which is confused by this.
  3448. #
  3449. # We need to recreate these files for each test, as the compiler may
  3450. # overwrite some of them when testing with obscure command lines.
  3451. # This happens at least with the AIX C compiler.
  3452. : > sub/conftest.c
  3453. for i in 1 2 3 4 5 6; do
  3454. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3455. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3456. # Solaris 8's {/usr,}/bin/sh.
  3457. touch sub/conftst$i.h
  3458. done
  3459. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3460. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3461. # mode. It turns out that the SunPro C++ compiler does not properly
  3462. # handle `-M -o', and we need to detect this. Also, some Intel
  3463. # versions had trouble with output in subdirs
  3464. am__obj=sub/conftest.${OBJEXT-o}
  3465. am__minus_obj="-o $am__obj"
  3466. case $depmode in
  3467. gcc)
  3468. # This depmode causes a compiler race in universal mode.
  3469. test "$am__universal" = false || continue
  3470. ;;
  3471. nosideeffect)
  3472. # after this tag, mechanisms are not by side-effect, so they'll
  3473. # only be used when explicitly requested
  3474. if test "x$enable_dependency_tracking" = xyes; then
  3475. continue
  3476. else
  3477. break
  3478. fi
  3479. ;;
  3480. msvisualcpp | msvcmsys)
  3481. # This compiler won't grok `-c -o', but also, the minuso test has
  3482. # not run yet. These depmodes are late enough in the game, and
  3483. # so weak that their functioning should not be impacted.
  3484. am__obj=conftest.${OBJEXT-o}
  3485. am__minus_obj=
  3486. ;;
  3487. none) break ;;
  3488. esac
  3489. if depmode=$depmode \
  3490. source=sub/conftest.c object=$am__obj \
  3491. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3492. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3493. >/dev/null 2>conftest.err &&
  3494. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3495. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3496. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3497. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3498. # icc doesn't choke on unknown options, it will just issue warnings
  3499. # or remarks (even with -Werror). So we grep stderr for any message
  3500. # that says an option was ignored or not supported.
  3501. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3502. # icc: Command line warning: ignoring option '-M'; no argument required
  3503. # The diagnosis changed in icc 8.0:
  3504. # icc: Command line remark: option '-MP' not supported
  3505. if (grep 'ignoring option' conftest.err ||
  3506. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3507. am_cv_CC_dependencies_compiler_type=$depmode
  3508. break
  3509. fi
  3510. fi
  3511. done
  3512. cd ..
  3513. rm -rf conftest.dir
  3514. else
  3515. am_cv_CC_dependencies_compiler_type=none
  3516. fi
  3517. fi
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3519. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3520. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3521. if
  3522. test "x$enable_dependency_tracking" != xno \
  3523. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3524. am__fastdepCC_TRUE=
  3525. am__fastdepCC_FALSE='#'
  3526. else
  3527. am__fastdepCC_TRUE='#'
  3528. am__fastdepCC_FALSE=
  3529. fi
  3530. ac_ext=c
  3531. ac_cpp='$CPP $CPPFLAGS'
  3532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3536. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3537. # On Suns, sometimes $CPP names a directory.
  3538. if test -n "$CPP" && test -d "$CPP"; then
  3539. CPP=
  3540. fi
  3541. if test -z "$CPP"; then
  3542. if ${ac_cv_prog_CPP+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. # Double quotes because CPP needs to be expanded
  3546. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3547. do
  3548. ac_preproc_ok=false
  3549. for ac_c_preproc_warn_flag in '' yes
  3550. do
  3551. # Use a header file that comes with gcc, so configuring glibc
  3552. # with a fresh cross-compiler works.
  3553. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3554. # <limits.h> exists even on freestanding compilers.
  3555. # On the NeXT, cc -E runs the code through the compiler's parser,
  3556. # not just through cpp. "Syntax error" is here to catch this case.
  3557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3558. /* end confdefs.h. */
  3559. #ifdef __STDC__
  3560. # include <limits.h>
  3561. #else
  3562. # include <assert.h>
  3563. #endif
  3564. Syntax error
  3565. _ACEOF
  3566. if ac_fn_c_try_cpp "$LINENO"; then :
  3567. else
  3568. # Broken: fails on valid input.
  3569. continue
  3570. fi
  3571. rm -f conftest.err conftest.i conftest.$ac_ext
  3572. # OK, works on sane cases. Now check whether nonexistent headers
  3573. # can be detected and how.
  3574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3575. /* end confdefs.h. */
  3576. #include <ac_nonexistent.h>
  3577. _ACEOF
  3578. if ac_fn_c_try_cpp "$LINENO"; then :
  3579. # Broken: success on invalid input.
  3580. continue
  3581. else
  3582. # Passes both tests.
  3583. ac_preproc_ok=:
  3584. break
  3585. fi
  3586. rm -f conftest.err conftest.i conftest.$ac_ext
  3587. done
  3588. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3589. rm -f conftest.i conftest.err conftest.$ac_ext
  3590. if $ac_preproc_ok; then :
  3591. break
  3592. fi
  3593. done
  3594. ac_cv_prog_CPP=$CPP
  3595. fi
  3596. CPP=$ac_cv_prog_CPP
  3597. else
  3598. ac_cv_prog_CPP=$CPP
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3601. $as_echo "$CPP" >&6; }
  3602. ac_preproc_ok=false
  3603. for ac_c_preproc_warn_flag in '' yes
  3604. do
  3605. # Use a header file that comes with gcc, so configuring glibc
  3606. # with a fresh cross-compiler works.
  3607. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3608. # <limits.h> exists even on freestanding compilers.
  3609. # On the NeXT, cc -E runs the code through the compiler's parser,
  3610. # not just through cpp. "Syntax error" is here to catch this case.
  3611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3612. /* end confdefs.h. */
  3613. #ifdef __STDC__
  3614. # include <limits.h>
  3615. #else
  3616. # include <assert.h>
  3617. #endif
  3618. Syntax error
  3619. _ACEOF
  3620. if ac_fn_c_try_cpp "$LINENO"; then :
  3621. else
  3622. # Broken: fails on valid input.
  3623. continue
  3624. fi
  3625. rm -f conftest.err conftest.i conftest.$ac_ext
  3626. # OK, works on sane cases. Now check whether nonexistent headers
  3627. # can be detected and how.
  3628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3629. /* end confdefs.h. */
  3630. #include <ac_nonexistent.h>
  3631. _ACEOF
  3632. if ac_fn_c_try_cpp "$LINENO"; then :
  3633. # Broken: success on invalid input.
  3634. continue
  3635. else
  3636. # Passes both tests.
  3637. ac_preproc_ok=:
  3638. break
  3639. fi
  3640. rm -f conftest.err conftest.i conftest.$ac_ext
  3641. done
  3642. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3643. rm -f conftest.i conftest.err conftest.$ac_ext
  3644. if $ac_preproc_ok; then :
  3645. else
  3646. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3647. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3648. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3649. See \`config.log' for more details" "$LINENO" 5; }
  3650. fi
  3651. ac_ext=c
  3652. ac_cpp='$CPP $CPPFLAGS'
  3653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3657. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3658. if ${ac_cv_path_GREP+:} false; then :
  3659. $as_echo_n "(cached) " >&6
  3660. else
  3661. if test -z "$GREP"; then
  3662. ac_path_GREP_found=false
  3663. # Loop through the user's path and test for each of PROGNAME-LIST
  3664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3666. do
  3667. IFS=$as_save_IFS
  3668. test -z "$as_dir" && as_dir=.
  3669. for ac_prog in grep ggrep; do
  3670. for ac_exec_ext in '' $ac_executable_extensions; do
  3671. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3672. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3673. # Check for GNU ac_path_GREP and select it if it is found.
  3674. # Check for GNU $ac_path_GREP
  3675. case `"$ac_path_GREP" --version 2>&1` in
  3676. *GNU*)
  3677. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3678. *)
  3679. ac_count=0
  3680. $as_echo_n 0123456789 >"conftest.in"
  3681. while :
  3682. do
  3683. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3684. mv "conftest.tmp" "conftest.in"
  3685. cp "conftest.in" "conftest.nl"
  3686. $as_echo 'GREP' >> "conftest.nl"
  3687. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3688. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3689. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3690. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3691. # Best one so far, save it but keep looking for a better one
  3692. ac_cv_path_GREP="$ac_path_GREP"
  3693. ac_path_GREP_max=$ac_count
  3694. fi
  3695. # 10*(2^10) chars as input seems more than enough
  3696. test $ac_count -gt 10 && break
  3697. done
  3698. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3699. esac
  3700. $ac_path_GREP_found && break 3
  3701. done
  3702. done
  3703. done
  3704. IFS=$as_save_IFS
  3705. if test -z "$ac_cv_path_GREP"; then
  3706. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3707. fi
  3708. else
  3709. ac_cv_path_GREP=$GREP
  3710. fi
  3711. fi
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3713. $as_echo "$ac_cv_path_GREP" >&6; }
  3714. GREP="$ac_cv_path_GREP"
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3716. $as_echo_n "checking for egrep... " >&6; }
  3717. if ${ac_cv_path_EGREP+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3721. then ac_cv_path_EGREP="$GREP -E"
  3722. else
  3723. if test -z "$EGREP"; then
  3724. ac_path_EGREP_found=false
  3725. # Loop through the user's path and test for each of PROGNAME-LIST
  3726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3727. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3728. do
  3729. IFS=$as_save_IFS
  3730. test -z "$as_dir" && as_dir=.
  3731. for ac_prog in egrep; do
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3734. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3735. # Check for GNU ac_path_EGREP and select it if it is found.
  3736. # Check for GNU $ac_path_EGREP
  3737. case `"$ac_path_EGREP" --version 2>&1` in
  3738. *GNU*)
  3739. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3740. *)
  3741. ac_count=0
  3742. $as_echo_n 0123456789 >"conftest.in"
  3743. while :
  3744. do
  3745. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3746. mv "conftest.tmp" "conftest.in"
  3747. cp "conftest.in" "conftest.nl"
  3748. $as_echo 'EGREP' >> "conftest.nl"
  3749. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3750. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3751. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3752. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3753. # Best one so far, save it but keep looking for a better one
  3754. ac_cv_path_EGREP="$ac_path_EGREP"
  3755. ac_path_EGREP_max=$ac_count
  3756. fi
  3757. # 10*(2^10) chars as input seems more than enough
  3758. test $ac_count -gt 10 && break
  3759. done
  3760. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3761. esac
  3762. $ac_path_EGREP_found && break 3
  3763. done
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. if test -z "$ac_cv_path_EGREP"; then
  3768. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3769. fi
  3770. else
  3771. ac_cv_path_EGREP=$EGREP
  3772. fi
  3773. fi
  3774. fi
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3776. $as_echo "$ac_cv_path_EGREP" >&6; }
  3777. EGREP="$ac_cv_path_EGREP"
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3779. $as_echo_n "checking for ANSI C header files... " >&6; }
  3780. if ${ac_cv_header_stdc+:} false; then :
  3781. $as_echo_n "(cached) " >&6
  3782. else
  3783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3784. /* end confdefs.h. */
  3785. #include <stdlib.h>
  3786. #include <stdarg.h>
  3787. #include <string.h>
  3788. #include <float.h>
  3789. int
  3790. main ()
  3791. {
  3792. ;
  3793. return 0;
  3794. }
  3795. _ACEOF
  3796. if ac_fn_c_try_compile "$LINENO"; then :
  3797. ac_cv_header_stdc=yes
  3798. else
  3799. ac_cv_header_stdc=no
  3800. fi
  3801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3802. if test $ac_cv_header_stdc = yes; then
  3803. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3805. /* end confdefs.h. */
  3806. #include <string.h>
  3807. _ACEOF
  3808. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3809. $EGREP "memchr" >/dev/null 2>&1; then :
  3810. else
  3811. ac_cv_header_stdc=no
  3812. fi
  3813. rm -f conftest*
  3814. fi
  3815. if test $ac_cv_header_stdc = yes; then
  3816. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3818. /* end confdefs.h. */
  3819. #include <stdlib.h>
  3820. _ACEOF
  3821. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3822. $EGREP "free" >/dev/null 2>&1; then :
  3823. else
  3824. ac_cv_header_stdc=no
  3825. fi
  3826. rm -f conftest*
  3827. fi
  3828. if test $ac_cv_header_stdc = yes; then
  3829. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3830. if test "$cross_compiling" = yes; then :
  3831. :
  3832. else
  3833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3834. /* end confdefs.h. */
  3835. #include <ctype.h>
  3836. #include <stdlib.h>
  3837. #if ((' ' & 0x0FF) == 0x020)
  3838. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3839. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3840. #else
  3841. # define ISLOWER(c) \
  3842. (('a' <= (c) && (c) <= 'i') \
  3843. || ('j' <= (c) && (c) <= 'r') \
  3844. || ('s' <= (c) && (c) <= 'z'))
  3845. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3846. #endif
  3847. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3848. int
  3849. main ()
  3850. {
  3851. int i;
  3852. for (i = 0; i < 256; i++)
  3853. if (XOR (islower (i), ISLOWER (i))
  3854. || toupper (i) != TOUPPER (i))
  3855. return 2;
  3856. return 0;
  3857. }
  3858. _ACEOF
  3859. if ac_fn_c_try_run "$LINENO"; then :
  3860. else
  3861. ac_cv_header_stdc=no
  3862. fi
  3863. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3864. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3865. fi
  3866. fi
  3867. fi
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3869. $as_echo "$ac_cv_header_stdc" >&6; }
  3870. if test $ac_cv_header_stdc = yes; then
  3871. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3872. fi
  3873. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3874. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3875. inttypes.h stdint.h unistd.h
  3876. do :
  3877. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3878. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3879. "
  3880. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3881. cat >>confdefs.h <<_ACEOF
  3882. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3883. _ACEOF
  3884. fi
  3885. done
  3886. for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/param.h stdarg.h
  3887. do :
  3888. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3889. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3890. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3891. cat >>confdefs.h <<_ACEOF
  3892. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3893. _ACEOF
  3894. fi
  3895. done
  3896. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  3897. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  3898. $as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
  3899. fi
  3900. # Checks for typedefs, structures, and compiler characteristics.
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3902. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3903. if ${ac_cv_c_const+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3907. /* end confdefs.h. */
  3908. int
  3909. main ()
  3910. {
  3911. /* FIXME: Include the comments suggested by Paul. */
  3912. #ifndef __cplusplus
  3913. /* Ultrix mips cc rejects this. */
  3914. typedef int charset[2];
  3915. const charset cs;
  3916. /* SunOS 4.1.1 cc rejects this. */
  3917. char const *const *pcpcc;
  3918. char **ppc;
  3919. /* NEC SVR4.0.2 mips cc rejects this. */
  3920. struct point {int x, y;};
  3921. static struct point const zero = {0,0};
  3922. /* AIX XL C 1.02.0.0 rejects this.
  3923. It does not let you subtract one const X* pointer from another in
  3924. an arm of an if-expression whose if-part is not a constant
  3925. expression */
  3926. const char *g = "string";
  3927. pcpcc = &g + (g ? g-g : 0);
  3928. /* HPUX 7.0 cc rejects these. */
  3929. ++pcpcc;
  3930. ppc = (char**) pcpcc;
  3931. pcpcc = (char const *const *) ppc;
  3932. { /* SCO 3.2v4 cc rejects this. */
  3933. char *t;
  3934. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3935. *t++ = 0;
  3936. if (s) return 0;
  3937. }
  3938. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3939. int x[] = {25, 17};
  3940. const int *foo = &x[0];
  3941. ++foo;
  3942. }
  3943. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3944. typedef const int *iptr;
  3945. iptr p = 0;
  3946. ++p;
  3947. }
  3948. { /* AIX XL C 1.02.0.0 rejects this saying
  3949. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3950. struct s { int j; const int *ap[3]; };
  3951. struct s *b; b->j = 5;
  3952. }
  3953. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3954. const int foo = 10;
  3955. if (!foo) return 0;
  3956. }
  3957. return !cs[0] && !zero.x;
  3958. #endif
  3959. ;
  3960. return 0;
  3961. }
  3962. _ACEOF
  3963. if ac_fn_c_try_compile "$LINENO"; then :
  3964. ac_cv_c_const=yes
  3965. else
  3966. ac_cv_c_const=no
  3967. fi
  3968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3969. fi
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3971. $as_echo "$ac_cv_c_const" >&6; }
  3972. if test $ac_cv_c_const = no; then
  3973. $as_echo "#define const /**/" >>confdefs.h
  3974. fi
  3975. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3976. if test "x$ac_cv_type_size_t" = xyes; then :
  3977. else
  3978. cat >>confdefs.h <<_ACEOF
  3979. #define size_t unsigned int
  3980. _ACEOF
  3981. fi
  3982. # Checks for library functions.
  3983. for ac_func in vprintf
  3984. do :
  3985. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  3986. if test "x$ac_cv_func_vprintf" = xyes; then :
  3987. cat >>confdefs.h <<_ACEOF
  3988. #define HAVE_VPRINTF 1
  3989. _ACEOF
  3990. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  3991. if test "x$ac_cv_func__doprnt" = xyes; then :
  3992. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  3993. fi
  3994. fi
  3995. done
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  3997. $as_echo_n "checking for working memcmp... " >&6; }
  3998. if ${ac_cv_func_memcmp_working+:} false; then :
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. if test "$cross_compiling" = yes; then :
  4002. ac_cv_func_memcmp_working=no
  4003. else
  4004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4005. /* end confdefs.h. */
  4006. $ac_includes_default
  4007. int
  4008. main ()
  4009. {
  4010. /* Some versions of memcmp are not 8-bit clean. */
  4011. char c0 = '\100', c1 = '\200', c2 = '\201';
  4012. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  4013. return 1;
  4014. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  4015. or more and with at least one buffer not starting on a 4-byte boundary.
  4016. William Lewis provided this test program. */
  4017. {
  4018. char foo[21];
  4019. char bar[21];
  4020. int i;
  4021. for (i = 0; i < 4; i++)
  4022. {
  4023. char *a = foo + i;
  4024. char *b = bar + i;
  4025. strcpy (a, "--------01111111");
  4026. strcpy (b, "--------10000000");
  4027. if (memcmp (a, b, 16) >= 0)
  4028. return 1;
  4029. }
  4030. return 0;
  4031. }
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. if ac_fn_c_try_run "$LINENO"; then :
  4037. ac_cv_func_memcmp_working=yes
  4038. else
  4039. ac_cv_func_memcmp_working=no
  4040. fi
  4041. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4042. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4043. fi
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  4046. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  4047. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  4048. *" memcmp.$ac_objext "* ) ;;
  4049. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  4050. ;;
  4051. esac
  4052. for ac_header in stdlib.h
  4053. do :
  4054. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4055. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  4056. cat >>confdefs.h <<_ACEOF
  4057. #define HAVE_STDLIB_H 1
  4058. _ACEOF
  4059. fi
  4060. done
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  4062. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  4063. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  4064. $as_echo_n "(cached) " >&6
  4065. else
  4066. if test "$cross_compiling" = yes; then :
  4067. ac_cv_func_malloc_0_nonnull=no
  4068. else
  4069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4070. /* end confdefs.h. */
  4071. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4072. # include <stdlib.h>
  4073. #else
  4074. char *malloc ();
  4075. #endif
  4076. int
  4077. main ()
  4078. {
  4079. return ! malloc (0);
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. if ac_fn_c_try_run "$LINENO"; then :
  4085. ac_cv_func_malloc_0_nonnull=yes
  4086. else
  4087. ac_cv_func_malloc_0_nonnull=no
  4088. fi
  4089. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4090. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4091. fi
  4092. fi
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  4094. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  4095. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  4096. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  4097. else
  4098. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  4099. case " $LIBOBJS " in
  4100. *" malloc.$ac_objext "* ) ;;
  4101. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  4102. ;;
  4103. esac
  4104. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  4105. fi
  4106. for ac_header in stdlib.h
  4107. do :
  4108. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4109. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  4110. cat >>confdefs.h <<_ACEOF
  4111. #define HAVE_STDLIB_H 1
  4112. _ACEOF
  4113. fi
  4114. done
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  4116. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  4117. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. if test "$cross_compiling" = yes; then :
  4121. ac_cv_func_realloc_0_nonnull=no
  4122. else
  4123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4124. /* end confdefs.h. */
  4125. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  4126. # include <stdlib.h>
  4127. #else
  4128. char *realloc ();
  4129. #endif
  4130. int
  4131. main ()
  4132. {
  4133. return ! realloc (0, 0);
  4134. ;
  4135. return 0;
  4136. }
  4137. _ACEOF
  4138. if ac_fn_c_try_run "$LINENO"; then :
  4139. ac_cv_func_realloc_0_nonnull=yes
  4140. else
  4141. ac_cv_func_realloc_0_nonnull=no
  4142. fi
  4143. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4144. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4145. fi
  4146. fi
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  4148. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  4149. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  4150. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  4151. else
  4152. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  4153. case " $LIBOBJS " in
  4154. *" realloc.$ac_objext "* ) ;;
  4155. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  4156. ;;
  4157. esac
  4158. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  4159. fi
  4160. for ac_func in strndup strerror vsnprintf vasprintf open vsyslog strncasecmp
  4161. do :
  4162. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4163. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4164. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4165. cat >>confdefs.h <<_ACEOF
  4166. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4167. _ACEOF
  4168. fi
  4169. done
  4170. case `pwd` in
  4171. *\ * | *\ *)
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4173. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4174. esac
  4175. macro_version='2.2.6b'
  4176. macro_revision='1.3017'
  4177. ltmain="$ac_aux_dir/ltmain.sh"
  4178. # Make sure we can run config.sub.
  4179. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4180. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4182. $as_echo_n "checking build system type... " >&6; }
  4183. if ${ac_cv_build+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. ac_build_alias=$build_alias
  4187. test "x$ac_build_alias" = x &&
  4188. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4189. test "x$ac_build_alias" = x &&
  4190. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4191. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4192. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4193. fi
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4195. $as_echo "$ac_cv_build" >&6; }
  4196. case $ac_cv_build in
  4197. *-*-*) ;;
  4198. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4199. esac
  4200. build=$ac_cv_build
  4201. ac_save_IFS=$IFS; IFS='-'
  4202. set x $ac_cv_build
  4203. shift
  4204. build_cpu=$1
  4205. build_vendor=$2
  4206. shift; shift
  4207. # Remember, the first character of IFS is used to create $*,
  4208. # except with old shells:
  4209. build_os=$*
  4210. IFS=$ac_save_IFS
  4211. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4213. $as_echo_n "checking host system type... " >&6; }
  4214. if ${ac_cv_host+:} false; then :
  4215. $as_echo_n "(cached) " >&6
  4216. else
  4217. if test "x$host_alias" = x; then
  4218. ac_cv_host=$ac_cv_build
  4219. else
  4220. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4221. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4222. fi
  4223. fi
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4225. $as_echo "$ac_cv_host" >&6; }
  4226. case $ac_cv_host in
  4227. *-*-*) ;;
  4228. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4229. esac
  4230. host=$ac_cv_host
  4231. ac_save_IFS=$IFS; IFS='-'
  4232. set x $ac_cv_host
  4233. shift
  4234. host_cpu=$1
  4235. host_vendor=$2
  4236. shift; shift
  4237. # Remember, the first character of IFS is used to create $*,
  4238. # except with old shells:
  4239. host_os=$*
  4240. IFS=$ac_save_IFS
  4241. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4243. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4244. if ${ac_cv_path_SED+:} false; then :
  4245. $as_echo_n "(cached) " >&6
  4246. else
  4247. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4248. for ac_i in 1 2 3 4 5 6 7; do
  4249. ac_script="$ac_script$as_nl$ac_script"
  4250. done
  4251. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4252. { ac_script=; unset ac_script;}
  4253. if test -z "$SED"; then
  4254. ac_path_SED_found=false
  4255. # Loop through the user's path and test for each of PROGNAME-LIST
  4256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4257. for as_dir in $PATH
  4258. do
  4259. IFS=$as_save_IFS
  4260. test -z "$as_dir" && as_dir=.
  4261. for ac_prog in sed gsed; do
  4262. for ac_exec_ext in '' $ac_executable_extensions; do
  4263. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4264. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4265. # Check for GNU ac_path_SED and select it if it is found.
  4266. # Check for GNU $ac_path_SED
  4267. case `"$ac_path_SED" --version 2>&1` in
  4268. *GNU*)
  4269. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4270. *)
  4271. ac_count=0
  4272. $as_echo_n 0123456789 >"conftest.in"
  4273. while :
  4274. do
  4275. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4276. mv "conftest.tmp" "conftest.in"
  4277. cp "conftest.in" "conftest.nl"
  4278. $as_echo '' >> "conftest.nl"
  4279. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4280. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4281. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4282. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4283. # Best one so far, save it but keep looking for a better one
  4284. ac_cv_path_SED="$ac_path_SED"
  4285. ac_path_SED_max=$ac_count
  4286. fi
  4287. # 10*(2^10) chars as input seems more than enough
  4288. test $ac_count -gt 10 && break
  4289. done
  4290. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4291. esac
  4292. $ac_path_SED_found && break 3
  4293. done
  4294. done
  4295. done
  4296. IFS=$as_save_IFS
  4297. if test -z "$ac_cv_path_SED"; then
  4298. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4299. fi
  4300. else
  4301. ac_cv_path_SED=$SED
  4302. fi
  4303. fi
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4305. $as_echo "$ac_cv_path_SED" >&6; }
  4306. SED="$ac_cv_path_SED"
  4307. rm -f conftest.sed
  4308. test -z "$SED" && SED=sed
  4309. Xsed="$SED -e 1s/^X//"
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4311. $as_echo_n "checking for fgrep... " >&6; }
  4312. if ${ac_cv_path_FGREP+:} false; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4316. then ac_cv_path_FGREP="$GREP -F"
  4317. else
  4318. if test -z "$FGREP"; then
  4319. ac_path_FGREP_found=false
  4320. # Loop through the user's path and test for each of PROGNAME-LIST
  4321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4322. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4323. do
  4324. IFS=$as_save_IFS
  4325. test -z "$as_dir" && as_dir=.
  4326. for ac_prog in fgrep; do
  4327. for ac_exec_ext in '' $ac_executable_extensions; do
  4328. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4329. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4330. # Check for GNU ac_path_FGREP and select it if it is found.
  4331. # Check for GNU $ac_path_FGREP
  4332. case `"$ac_path_FGREP" --version 2>&1` in
  4333. *GNU*)
  4334. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4335. *)
  4336. ac_count=0
  4337. $as_echo_n 0123456789 >"conftest.in"
  4338. while :
  4339. do
  4340. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4341. mv "conftest.tmp" "conftest.in"
  4342. cp "conftest.in" "conftest.nl"
  4343. $as_echo 'FGREP' >> "conftest.nl"
  4344. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4345. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4346. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4347. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4348. # Best one so far, save it but keep looking for a better one
  4349. ac_cv_path_FGREP="$ac_path_FGREP"
  4350. ac_path_FGREP_max=$ac_count
  4351. fi
  4352. # 10*(2^10) chars as input seems more than enough
  4353. test $ac_count -gt 10 && break
  4354. done
  4355. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4356. esac
  4357. $ac_path_FGREP_found && break 3
  4358. done
  4359. done
  4360. done
  4361. IFS=$as_save_IFS
  4362. if test -z "$ac_cv_path_FGREP"; then
  4363. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4364. fi
  4365. else
  4366. ac_cv_path_FGREP=$FGREP
  4367. fi
  4368. fi
  4369. fi
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4371. $as_echo "$ac_cv_path_FGREP" >&6; }
  4372. FGREP="$ac_cv_path_FGREP"
  4373. test -z "$GREP" && GREP=grep
  4374. # Check whether --with-gnu-ld was given.
  4375. if test "${with_gnu_ld+set}" = set; then :
  4376. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4377. else
  4378. with_gnu_ld=no
  4379. fi
  4380. ac_prog=ld
  4381. if test "$GCC" = yes; then
  4382. # Check if gcc -print-prog-name=ld gives a path.
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4384. $as_echo_n "checking for ld used by $CC... " >&6; }
  4385. case $host in
  4386. *-*-mingw*)
  4387. # gcc leaves a trailing carriage return which upsets mingw
  4388. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4389. *)
  4390. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4391. esac
  4392. case $ac_prog in
  4393. # Accept absolute paths.
  4394. [\\/]* | ?:[\\/]*)
  4395. re_direlt='/[^/][^/]*/\.\./'
  4396. # Canonicalize the pathname of ld
  4397. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4398. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4399. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4400. done
  4401. test -z "$LD" && LD="$ac_prog"
  4402. ;;
  4403. "")
  4404. # If it fails, then pretend we aren't using GCC.
  4405. ac_prog=ld
  4406. ;;
  4407. *)
  4408. # If it is relative, then search for the first ld in PATH.
  4409. with_gnu_ld=unknown
  4410. ;;
  4411. esac
  4412. elif test "$with_gnu_ld" = yes; then
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4414. $as_echo_n "checking for GNU ld... " >&6; }
  4415. else
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4417. $as_echo_n "checking for non-GNU ld... " >&6; }
  4418. fi
  4419. if ${lt_cv_path_LD+:} false; then :
  4420. $as_echo_n "(cached) " >&6
  4421. else
  4422. if test -z "$LD"; then
  4423. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4424. for ac_dir in $PATH; do
  4425. IFS="$lt_save_ifs"
  4426. test -z "$ac_dir" && ac_dir=.
  4427. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4428. lt_cv_path_LD="$ac_dir/$ac_prog"
  4429. # Check to see if the program is GNU ld. I'd rather use --version,
  4430. # but apparently some variants of GNU ld only accept -v.
  4431. # Break only if it was the GNU/non-GNU ld that we prefer.
  4432. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4433. *GNU* | *'with BFD'*)
  4434. test "$with_gnu_ld" != no && break
  4435. ;;
  4436. *)
  4437. test "$with_gnu_ld" != yes && break
  4438. ;;
  4439. esac
  4440. fi
  4441. done
  4442. IFS="$lt_save_ifs"
  4443. else
  4444. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4445. fi
  4446. fi
  4447. LD="$lt_cv_path_LD"
  4448. if test -n "$LD"; then
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4450. $as_echo "$LD" >&6; }
  4451. else
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4453. $as_echo "no" >&6; }
  4454. fi
  4455. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4457. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4458. if ${lt_cv_prog_gnu_ld+:} false; then :
  4459. $as_echo_n "(cached) " >&6
  4460. else
  4461. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4462. case `$LD -v 2>&1 </dev/null` in
  4463. *GNU* | *'with BFD'*)
  4464. lt_cv_prog_gnu_ld=yes
  4465. ;;
  4466. *)
  4467. lt_cv_prog_gnu_ld=no
  4468. ;;
  4469. esac
  4470. fi
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4472. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4473. with_gnu_ld=$lt_cv_prog_gnu_ld
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4475. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4476. if ${lt_cv_path_NM+:} false; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. if test -n "$NM"; then
  4480. # Let the user override the test.
  4481. lt_cv_path_NM="$NM"
  4482. else
  4483. lt_nm_to_check="${ac_tool_prefix}nm"
  4484. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4485. lt_nm_to_check="$lt_nm_to_check nm"
  4486. fi
  4487. for lt_tmp_nm in $lt_nm_to_check; do
  4488. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4489. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4490. IFS="$lt_save_ifs"
  4491. test -z "$ac_dir" && ac_dir=.
  4492. tmp_nm="$ac_dir/$lt_tmp_nm"
  4493. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4494. # Check to see if the nm accepts a BSD-compat flag.
  4495. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4496. # nm: unknown option "B" ignored
  4497. # Tru64's nm complains that /dev/null is an invalid object file
  4498. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4499. */dev/null* | *'Invalid file or object type'*)
  4500. lt_cv_path_NM="$tmp_nm -B"
  4501. break
  4502. ;;
  4503. *)
  4504. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4505. */dev/null*)
  4506. lt_cv_path_NM="$tmp_nm -p"
  4507. break
  4508. ;;
  4509. *)
  4510. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4511. continue # so that we can try to find one that supports BSD flags
  4512. ;;
  4513. esac
  4514. ;;
  4515. esac
  4516. fi
  4517. done
  4518. IFS="$lt_save_ifs"
  4519. done
  4520. : ${lt_cv_path_NM=no}
  4521. fi
  4522. fi
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4524. $as_echo "$lt_cv_path_NM" >&6; }
  4525. if test "$lt_cv_path_NM" != "no"; then
  4526. NM="$lt_cv_path_NM"
  4527. else
  4528. # Didn't find any BSD compatible name lister, look for dumpbin.
  4529. if test -n "$ac_tool_prefix"; then
  4530. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4531. do
  4532. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4533. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4535. $as_echo_n "checking for $ac_word... " >&6; }
  4536. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4537. $as_echo_n "(cached) " >&6
  4538. else
  4539. if test -n "$DUMPBIN"; then
  4540. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4541. else
  4542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543. for as_dir in $PATH
  4544. do
  4545. IFS=$as_save_IFS
  4546. test -z "$as_dir" && as_dir=.
  4547. for ac_exec_ext in '' $ac_executable_extensions; do
  4548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4549. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4551. break 2
  4552. fi
  4553. done
  4554. done
  4555. IFS=$as_save_IFS
  4556. fi
  4557. fi
  4558. DUMPBIN=$ac_cv_prog_DUMPBIN
  4559. if test -n "$DUMPBIN"; then
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4561. $as_echo "$DUMPBIN" >&6; }
  4562. else
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4564. $as_echo "no" >&6; }
  4565. fi
  4566. test -n "$DUMPBIN" && break
  4567. done
  4568. fi
  4569. if test -z "$DUMPBIN"; then
  4570. ac_ct_DUMPBIN=$DUMPBIN
  4571. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4572. do
  4573. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4574. set dummy $ac_prog; ac_word=$2
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4576. $as_echo_n "checking for $ac_word... " >&6; }
  4577. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. if test -n "$ac_ct_DUMPBIN"; then
  4581. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4582. else
  4583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584. for as_dir in $PATH
  4585. do
  4586. IFS=$as_save_IFS
  4587. test -z "$as_dir" && as_dir=.
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4590. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4592. break 2
  4593. fi
  4594. done
  4595. done
  4596. IFS=$as_save_IFS
  4597. fi
  4598. fi
  4599. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4600. if test -n "$ac_ct_DUMPBIN"; then
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4602. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4603. else
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4605. $as_echo "no" >&6; }
  4606. fi
  4607. test -n "$ac_ct_DUMPBIN" && break
  4608. done
  4609. if test "x$ac_ct_DUMPBIN" = x; then
  4610. DUMPBIN=":"
  4611. else
  4612. case $cross_compiling:$ac_tool_warned in
  4613. yes:)
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4616. ac_tool_warned=yes ;;
  4617. esac
  4618. DUMPBIN=$ac_ct_DUMPBIN
  4619. fi
  4620. fi
  4621. if test "$DUMPBIN" != ":"; then
  4622. NM="$DUMPBIN"
  4623. fi
  4624. fi
  4625. test -z "$NM" && NM=nm
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4627. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4628. if ${lt_cv_nm_interface+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. lt_cv_nm_interface="BSD nm"
  4632. echo "int some_variable = 0;" > conftest.$ac_ext
  4633. (eval echo "\"\$as_me:5185: $ac_compile\"" >&5)
  4634. (eval "$ac_compile" 2>conftest.err)
  4635. cat conftest.err >&5
  4636. (eval echo "\"\$as_me:5188: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4637. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4638. cat conftest.err >&5
  4639. (eval echo "\"\$as_me:5191: output\"" >&5)
  4640. cat conftest.out >&5
  4641. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4642. lt_cv_nm_interface="MS dumpbin"
  4643. fi
  4644. rm -f conftest*
  4645. fi
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4647. $as_echo "$lt_cv_nm_interface" >&6; }
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4649. $as_echo_n "checking whether ln -s works... " >&6; }
  4650. LN_S=$as_ln_s
  4651. if test "$LN_S" = "ln -s"; then
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4653. $as_echo "yes" >&6; }
  4654. else
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4656. $as_echo "no, using $LN_S" >&6; }
  4657. fi
  4658. # find the maximum length of command line arguments
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4660. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4661. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4662. $as_echo_n "(cached) " >&6
  4663. else
  4664. i=0
  4665. teststring="ABCD"
  4666. case $build_os in
  4667. msdosdjgpp*)
  4668. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4669. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4670. # during glob expansion). Even if it were fixed, the result of this
  4671. # check would be larger than it should be.
  4672. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4673. ;;
  4674. gnu*)
  4675. # Under GNU Hurd, this test is not required because there is
  4676. # no limit to the length of command line arguments.
  4677. # Libtool will interpret -1 as no limit whatsoever
  4678. lt_cv_sys_max_cmd_len=-1;
  4679. ;;
  4680. cygwin* | mingw* | cegcc*)
  4681. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4682. # about 5 minutes as the teststring grows exponentially.
  4683. # Worse, since 9x/ME are not pre-emptively multitasking,
  4684. # you end up with a "frozen" computer, even though with patience
  4685. # the test eventually succeeds (with a max line length of 256k).
  4686. # Instead, let's just punt: use the minimum linelength reported by
  4687. # all of the supported platforms: 8192 (on NT/2K/XP).
  4688. lt_cv_sys_max_cmd_len=8192;
  4689. ;;
  4690. amigaos*)
  4691. # On AmigaOS with pdksh, this test takes hours, literally.
  4692. # So we just punt and use a minimum line length of 8192.
  4693. lt_cv_sys_max_cmd_len=8192;
  4694. ;;
  4695. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4696. # This has been around since 386BSD, at least. Likely further.
  4697. if test -x /sbin/sysctl; then
  4698. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4699. elif test -x /usr/sbin/sysctl; then
  4700. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4701. else
  4702. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4703. fi
  4704. # And add a safety zone
  4705. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4706. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4707. ;;
  4708. interix*)
  4709. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4710. lt_cv_sys_max_cmd_len=196608
  4711. ;;
  4712. osf*)
  4713. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4714. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4715. # nice to cause kernel panics so lets avoid the loop below.
  4716. # First set a reasonable default.
  4717. lt_cv_sys_max_cmd_len=16384
  4718. #
  4719. if test -x /sbin/sysconfig; then
  4720. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4721. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4722. esac
  4723. fi
  4724. ;;
  4725. sco3.2v5*)
  4726. lt_cv_sys_max_cmd_len=102400
  4727. ;;
  4728. sysv5* | sco5v6* | sysv4.2uw2*)
  4729. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4730. if test -n "$kargmax"; then
  4731. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4732. else
  4733. lt_cv_sys_max_cmd_len=32768
  4734. fi
  4735. ;;
  4736. *)
  4737. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4738. if test -n "$lt_cv_sys_max_cmd_len"; then
  4739. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4740. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4741. else
  4742. # Make teststring a little bigger before we do anything with it.
  4743. # a 1K string should be a reasonable start.
  4744. for i in 1 2 3 4 5 6 7 8 ; do
  4745. teststring=$teststring$teststring
  4746. done
  4747. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4748. # If test is not a shell built-in, we'll probably end up computing a
  4749. # maximum length that is only half of the actual maximum length, but
  4750. # we can't tell.
  4751. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4752. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4753. test $i != 17 # 1/2 MB should be enough
  4754. do
  4755. i=`expr $i + 1`
  4756. teststring=$teststring$teststring
  4757. done
  4758. # Only check the string length outside the loop.
  4759. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4760. teststring=
  4761. # Add a significant safety factor because C++ compilers can tack on
  4762. # massive amounts of additional arguments before passing them to the
  4763. # linker. It appears as though 1/2 is a usable value.
  4764. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4765. fi
  4766. ;;
  4767. esac
  4768. fi
  4769. if test -n $lt_cv_sys_max_cmd_len ; then
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4771. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4772. else
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4774. $as_echo "none" >&6; }
  4775. fi
  4776. max_cmd_len=$lt_cv_sys_max_cmd_len
  4777. : ${CP="cp -f"}
  4778. : ${MV="mv -f"}
  4779. : ${RM="rm -f"}
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4781. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4782. # Try some XSI features
  4783. xsi_shell=no
  4784. ( _lt_dummy="a/b/c"
  4785. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4786. = c,a/b,, \
  4787. && eval 'test $(( 1 + 1 )) -eq 2 \
  4788. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4789. && xsi_shell=yes
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4791. $as_echo "$xsi_shell" >&6; }
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4793. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4794. lt_shell_append=no
  4795. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4796. >/dev/null 2>&1 \
  4797. && lt_shell_append=yes
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4799. $as_echo "$lt_shell_append" >&6; }
  4800. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4801. lt_unset=unset
  4802. else
  4803. lt_unset=false
  4804. fi
  4805. # test EBCDIC or ASCII
  4806. case `echo X|tr X '\101'` in
  4807. A) # ASCII based system
  4808. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4809. lt_SP2NL='tr \040 \012'
  4810. lt_NL2SP='tr \015\012 \040\040'
  4811. ;;
  4812. *) # EBCDIC based system
  4813. lt_SP2NL='tr \100 \n'
  4814. lt_NL2SP='tr \r\n \100\100'
  4815. ;;
  4816. esac
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4818. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4819. if ${lt_cv_ld_reload_flag+:} false; then :
  4820. $as_echo_n "(cached) " >&6
  4821. else
  4822. lt_cv_ld_reload_flag='-r'
  4823. fi
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4825. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4826. reload_flag=$lt_cv_ld_reload_flag
  4827. case $reload_flag in
  4828. "" | " "*) ;;
  4829. *) reload_flag=" $reload_flag" ;;
  4830. esac
  4831. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4832. case $host_os in
  4833. darwin*)
  4834. if test "$GCC" = yes; then
  4835. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4836. else
  4837. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4838. fi
  4839. ;;
  4840. esac
  4841. if test -n "$ac_tool_prefix"; then
  4842. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4843. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4845. $as_echo_n "checking for $ac_word... " >&6; }
  4846. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4847. $as_echo_n "(cached) " >&6
  4848. else
  4849. if test -n "$OBJDUMP"; then
  4850. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4851. else
  4852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4853. for as_dir in $PATH
  4854. do
  4855. IFS=$as_save_IFS
  4856. test -z "$as_dir" && as_dir=.
  4857. for ac_exec_ext in '' $ac_executable_extensions; do
  4858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4859. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4861. break 2
  4862. fi
  4863. done
  4864. done
  4865. IFS=$as_save_IFS
  4866. fi
  4867. fi
  4868. OBJDUMP=$ac_cv_prog_OBJDUMP
  4869. if test -n "$OBJDUMP"; then
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4871. $as_echo "$OBJDUMP" >&6; }
  4872. else
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4874. $as_echo "no" >&6; }
  4875. fi
  4876. fi
  4877. if test -z "$ac_cv_prog_OBJDUMP"; then
  4878. ac_ct_OBJDUMP=$OBJDUMP
  4879. # Extract the first word of "objdump", so it can be a program name with args.
  4880. set dummy objdump; ac_word=$2
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4882. $as_echo_n "checking for $ac_word... " >&6; }
  4883. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. if test -n "$ac_ct_OBJDUMP"; then
  4887. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4888. else
  4889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4890. for as_dir in $PATH
  4891. do
  4892. IFS=$as_save_IFS
  4893. test -z "$as_dir" && as_dir=.
  4894. for ac_exec_ext in '' $ac_executable_extensions; do
  4895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4896. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4898. break 2
  4899. fi
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. fi
  4904. fi
  4905. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4906. if test -n "$ac_ct_OBJDUMP"; then
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4908. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4909. else
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4911. $as_echo "no" >&6; }
  4912. fi
  4913. if test "x$ac_ct_OBJDUMP" = x; then
  4914. OBJDUMP="false"
  4915. else
  4916. case $cross_compiling:$ac_tool_warned in
  4917. yes:)
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4920. ac_tool_warned=yes ;;
  4921. esac
  4922. OBJDUMP=$ac_ct_OBJDUMP
  4923. fi
  4924. else
  4925. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4926. fi
  4927. test -z "$OBJDUMP" && OBJDUMP=objdump
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4929. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4930. if ${lt_cv_deplibs_check_method+:} false; then :
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4934. lt_cv_file_magic_test_file=
  4935. lt_cv_deplibs_check_method='unknown'
  4936. # Need to set the preceding variable on all platforms that support
  4937. # interlibrary dependencies.
  4938. # 'none' -- dependencies not supported.
  4939. # `unknown' -- same as none, but documents that we really don't know.
  4940. # 'pass_all' -- all dependencies passed with no checks.
  4941. # 'test_compile' -- check by making test program.
  4942. # 'file_magic [[regex]]' -- check by looking for files in library path
  4943. # which responds to the $file_magic_cmd with a given extended regex.
  4944. # If you have `file' or equivalent on your system and you're not sure
  4945. # whether `pass_all' will *always* work, you probably want this one.
  4946. case $host_os in
  4947. aix[4-9]*)
  4948. lt_cv_deplibs_check_method=pass_all
  4949. ;;
  4950. beos*)
  4951. lt_cv_deplibs_check_method=pass_all
  4952. ;;
  4953. bsdi[45]*)
  4954. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4955. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4956. lt_cv_file_magic_test_file=/shlib/libc.so
  4957. ;;
  4958. cygwin*)
  4959. # func_win32_libid is a shell function defined in ltmain.sh
  4960. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4961. lt_cv_file_magic_cmd='func_win32_libid'
  4962. ;;
  4963. mingw* | pw32*)
  4964. # Base MSYS/MinGW do not provide the 'file' command needed by
  4965. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4966. # unless we find 'file', for example because we are cross-compiling.
  4967. if ( file / ) >/dev/null 2>&1; then
  4968. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4969. lt_cv_file_magic_cmd='func_win32_libid'
  4970. else
  4971. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4972. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4973. fi
  4974. ;;
  4975. cegcc)
  4976. # use the weaker test based on 'objdump'. See mingw*.
  4977. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4978. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4979. ;;
  4980. darwin* | rhapsody*)
  4981. lt_cv_deplibs_check_method=pass_all
  4982. ;;
  4983. freebsd* | dragonfly*)
  4984. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4985. case $host_cpu in
  4986. i*86 )
  4987. # Not sure whether the presence of OpenBSD here was a mistake.
  4988. # Let's accept both of them until this is cleared up.
  4989. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4990. lt_cv_file_magic_cmd=/usr/bin/file
  4991. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4992. ;;
  4993. esac
  4994. else
  4995. lt_cv_deplibs_check_method=pass_all
  4996. fi
  4997. ;;
  4998. gnu*)
  4999. lt_cv_deplibs_check_method=pass_all
  5000. ;;
  5001. hpux10.20* | hpux11*)
  5002. lt_cv_file_magic_cmd=/usr/bin/file
  5003. case $host_cpu in
  5004. ia64*)
  5005. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5006. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5007. ;;
  5008. hppa*64*)
  5009. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5010. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5011. ;;
  5012. *)
  5013. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5014. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5015. ;;
  5016. esac
  5017. ;;
  5018. interix[3-9]*)
  5019. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5020. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5021. ;;
  5022. irix5* | irix6* | nonstopux*)
  5023. case $LD in
  5024. *-32|*"-32 ") libmagic=32-bit;;
  5025. *-n32|*"-n32 ") libmagic=N32;;
  5026. *-64|*"-64 ") libmagic=64-bit;;
  5027. *) libmagic=never-match;;
  5028. esac
  5029. lt_cv_deplibs_check_method=pass_all
  5030. ;;
  5031. # This must be Linux ELF.
  5032. linux* | k*bsd*-gnu)
  5033. lt_cv_deplibs_check_method=pass_all
  5034. ;;
  5035. netbsd*)
  5036. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5037. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5038. else
  5039. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5040. fi
  5041. ;;
  5042. newos6*)
  5043. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5044. lt_cv_file_magic_cmd=/usr/bin/file
  5045. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5046. ;;
  5047. *nto* | *qnx*)
  5048. lt_cv_deplibs_check_method=pass_all
  5049. ;;
  5050. openbsd*)
  5051. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5052. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5053. else
  5054. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5055. fi
  5056. ;;
  5057. osf3* | osf4* | osf5*)
  5058. lt_cv_deplibs_check_method=pass_all
  5059. ;;
  5060. rdos*)
  5061. lt_cv_deplibs_check_method=pass_all
  5062. ;;
  5063. solaris*)
  5064. lt_cv_deplibs_check_method=pass_all
  5065. ;;
  5066. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5067. lt_cv_deplibs_check_method=pass_all
  5068. ;;
  5069. sysv4 | sysv4.3*)
  5070. case $host_vendor in
  5071. motorola)
  5072. 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]'
  5073. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5074. ;;
  5075. ncr)
  5076. lt_cv_deplibs_check_method=pass_all
  5077. ;;
  5078. sequent)
  5079. lt_cv_file_magic_cmd='/bin/file'
  5080. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5081. ;;
  5082. sni)
  5083. lt_cv_file_magic_cmd='/bin/file'
  5084. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5085. lt_cv_file_magic_test_file=/lib/libc.so
  5086. ;;
  5087. siemens)
  5088. lt_cv_deplibs_check_method=pass_all
  5089. ;;
  5090. pc)
  5091. lt_cv_deplibs_check_method=pass_all
  5092. ;;
  5093. esac
  5094. ;;
  5095. tpf*)
  5096. lt_cv_deplibs_check_method=pass_all
  5097. ;;
  5098. esac
  5099. fi
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5101. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5102. file_magic_cmd=$lt_cv_file_magic_cmd
  5103. deplibs_check_method=$lt_cv_deplibs_check_method
  5104. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5105. if test -n "$ac_tool_prefix"; then
  5106. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5107. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5109. $as_echo_n "checking for $ac_word... " >&6; }
  5110. if ${ac_cv_prog_AR+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. if test -n "$AR"; then
  5114. ac_cv_prog_AR="$AR" # Let the user override the test.
  5115. else
  5116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5117. for as_dir in $PATH
  5118. do
  5119. IFS=$as_save_IFS
  5120. test -z "$as_dir" && as_dir=.
  5121. for ac_exec_ext in '' $ac_executable_extensions; do
  5122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5123. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5125. break 2
  5126. fi
  5127. done
  5128. done
  5129. IFS=$as_save_IFS
  5130. fi
  5131. fi
  5132. AR=$ac_cv_prog_AR
  5133. if test -n "$AR"; then
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5135. $as_echo "$AR" >&6; }
  5136. else
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5138. $as_echo "no" >&6; }
  5139. fi
  5140. fi
  5141. if test -z "$ac_cv_prog_AR"; then
  5142. ac_ct_AR=$AR
  5143. # Extract the first word of "ar", so it can be a program name with args.
  5144. set dummy ar; ac_word=$2
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5146. $as_echo_n "checking for $ac_word... " >&6; }
  5147. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5148. $as_echo_n "(cached) " >&6
  5149. else
  5150. if test -n "$ac_ct_AR"; then
  5151. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5152. else
  5153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5154. for as_dir in $PATH
  5155. do
  5156. IFS=$as_save_IFS
  5157. test -z "$as_dir" && as_dir=.
  5158. for ac_exec_ext in '' $ac_executable_extensions; do
  5159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5160. ac_cv_prog_ac_ct_AR="ar"
  5161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5162. break 2
  5163. fi
  5164. done
  5165. done
  5166. IFS=$as_save_IFS
  5167. fi
  5168. fi
  5169. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5170. if test -n "$ac_ct_AR"; then
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5172. $as_echo "$ac_ct_AR" >&6; }
  5173. else
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5175. $as_echo "no" >&6; }
  5176. fi
  5177. if test "x$ac_ct_AR" = x; then
  5178. AR="false"
  5179. else
  5180. case $cross_compiling:$ac_tool_warned in
  5181. yes:)
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5184. ac_tool_warned=yes ;;
  5185. esac
  5186. AR=$ac_ct_AR
  5187. fi
  5188. else
  5189. AR="$ac_cv_prog_AR"
  5190. fi
  5191. test -z "$AR" && AR=ar
  5192. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5193. if test -n "$ac_tool_prefix"; then
  5194. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5195. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5197. $as_echo_n "checking for $ac_word... " >&6; }
  5198. if ${ac_cv_prog_STRIP+:} false; then :
  5199. $as_echo_n "(cached) " >&6
  5200. else
  5201. if test -n "$STRIP"; then
  5202. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5203. else
  5204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5205. for as_dir in $PATH
  5206. do
  5207. IFS=$as_save_IFS
  5208. test -z "$as_dir" && as_dir=.
  5209. for ac_exec_ext in '' $ac_executable_extensions; do
  5210. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5211. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5213. break 2
  5214. fi
  5215. done
  5216. done
  5217. IFS=$as_save_IFS
  5218. fi
  5219. fi
  5220. STRIP=$ac_cv_prog_STRIP
  5221. if test -n "$STRIP"; then
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5223. $as_echo "$STRIP" >&6; }
  5224. else
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5226. $as_echo "no" >&6; }
  5227. fi
  5228. fi
  5229. if test -z "$ac_cv_prog_STRIP"; then
  5230. ac_ct_STRIP=$STRIP
  5231. # Extract the first word of "strip", so it can be a program name with args.
  5232. set dummy strip; ac_word=$2
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5234. $as_echo_n "checking for $ac_word... " >&6; }
  5235. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5236. $as_echo_n "(cached) " >&6
  5237. else
  5238. if test -n "$ac_ct_STRIP"; then
  5239. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5240. else
  5241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5242. for as_dir in $PATH
  5243. do
  5244. IFS=$as_save_IFS
  5245. test -z "$as_dir" && as_dir=.
  5246. for ac_exec_ext in '' $ac_executable_extensions; do
  5247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5248. ac_cv_prog_ac_ct_STRIP="strip"
  5249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5250. break 2
  5251. fi
  5252. done
  5253. done
  5254. IFS=$as_save_IFS
  5255. fi
  5256. fi
  5257. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5258. if test -n "$ac_ct_STRIP"; then
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5260. $as_echo "$ac_ct_STRIP" >&6; }
  5261. else
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5263. $as_echo "no" >&6; }
  5264. fi
  5265. if test "x$ac_ct_STRIP" = x; then
  5266. STRIP=":"
  5267. else
  5268. case $cross_compiling:$ac_tool_warned in
  5269. yes:)
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5271. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5272. ac_tool_warned=yes ;;
  5273. esac
  5274. STRIP=$ac_ct_STRIP
  5275. fi
  5276. else
  5277. STRIP="$ac_cv_prog_STRIP"
  5278. fi
  5279. test -z "$STRIP" && STRIP=:
  5280. if test -n "$ac_tool_prefix"; then
  5281. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5282. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5284. $as_echo_n "checking for $ac_word... " >&6; }
  5285. if ${ac_cv_prog_RANLIB+:} false; then :
  5286. $as_echo_n "(cached) " >&6
  5287. else
  5288. if test -n "$RANLIB"; then
  5289. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5290. else
  5291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5292. for as_dir in $PATH
  5293. do
  5294. IFS=$as_save_IFS
  5295. test -z "$as_dir" && as_dir=.
  5296. for ac_exec_ext in '' $ac_executable_extensions; do
  5297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5298. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5300. break 2
  5301. fi
  5302. done
  5303. done
  5304. IFS=$as_save_IFS
  5305. fi
  5306. fi
  5307. RANLIB=$ac_cv_prog_RANLIB
  5308. if test -n "$RANLIB"; then
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5310. $as_echo "$RANLIB" >&6; }
  5311. else
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5313. $as_echo "no" >&6; }
  5314. fi
  5315. fi
  5316. if test -z "$ac_cv_prog_RANLIB"; then
  5317. ac_ct_RANLIB=$RANLIB
  5318. # Extract the first word of "ranlib", so it can be a program name with args.
  5319. set dummy ranlib; ac_word=$2
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5321. $as_echo_n "checking for $ac_word... " >&6; }
  5322. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5323. $as_echo_n "(cached) " >&6
  5324. else
  5325. if test -n "$ac_ct_RANLIB"; then
  5326. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5327. else
  5328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5329. for as_dir in $PATH
  5330. do
  5331. IFS=$as_save_IFS
  5332. test -z "$as_dir" && as_dir=.
  5333. for ac_exec_ext in '' $ac_executable_extensions; do
  5334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5335. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5337. break 2
  5338. fi
  5339. done
  5340. done
  5341. IFS=$as_save_IFS
  5342. fi
  5343. fi
  5344. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5345. if test -n "$ac_ct_RANLIB"; then
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5347. $as_echo "$ac_ct_RANLIB" >&6; }
  5348. else
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5350. $as_echo "no" >&6; }
  5351. fi
  5352. if test "x$ac_ct_RANLIB" = x; then
  5353. RANLIB=":"
  5354. else
  5355. case $cross_compiling:$ac_tool_warned in
  5356. yes:)
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5358. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5359. ac_tool_warned=yes ;;
  5360. esac
  5361. RANLIB=$ac_ct_RANLIB
  5362. fi
  5363. else
  5364. RANLIB="$ac_cv_prog_RANLIB"
  5365. fi
  5366. test -z "$RANLIB" && RANLIB=:
  5367. # Determine commands to create old-style static archives.
  5368. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5369. old_postinstall_cmds='chmod 644 $oldlib'
  5370. old_postuninstall_cmds=
  5371. if test -n "$RANLIB"; then
  5372. case $host_os in
  5373. openbsd*)
  5374. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5375. ;;
  5376. *)
  5377. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5378. ;;
  5379. esac
  5380. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5381. fi
  5382. # If no C compiler was specified, use CC.
  5383. LTCC=${LTCC-"$CC"}
  5384. # If no C compiler flags were specified, use CFLAGS.
  5385. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5386. # Allow CC to be a program name with arguments.
  5387. compiler=$CC
  5388. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5390. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5391. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. # These are sane defaults that work on at least a few old systems.
  5395. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5396. # Character class describing NM global symbol codes.
  5397. symcode='[BCDEGRST]'
  5398. # Regexp to match symbols that can be accessed directly from C.
  5399. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5400. # Define system-specific variables.
  5401. case $host_os in
  5402. aix*)
  5403. symcode='[BCDT]'
  5404. ;;
  5405. cygwin* | mingw* | pw32* | cegcc*)
  5406. symcode='[ABCDGISTW]'
  5407. ;;
  5408. hpux*)
  5409. if test "$host_cpu" = ia64; then
  5410. symcode='[ABCDEGRST]'
  5411. fi
  5412. ;;
  5413. irix* | nonstopux*)
  5414. symcode='[BCDEGRST]'
  5415. ;;
  5416. osf*)
  5417. symcode='[BCDEGQRST]'
  5418. ;;
  5419. solaris*)
  5420. symcode='[BDRT]'
  5421. ;;
  5422. sco3.2v5*)
  5423. symcode='[DT]'
  5424. ;;
  5425. sysv4.2uw2*)
  5426. symcode='[DT]'
  5427. ;;
  5428. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5429. symcode='[ABDT]'
  5430. ;;
  5431. sysv4)
  5432. symcode='[DFNSTU]'
  5433. ;;
  5434. esac
  5435. # If we're using GNU nm, then use its standard symbol codes.
  5436. case `$NM -V 2>&1` in
  5437. *GNU* | *'with BFD'*)
  5438. symcode='[ABCDGIRSTW]' ;;
  5439. esac
  5440. # Transform an extracted symbol line into a proper C declaration.
  5441. # Some systems (esp. on ia64) link data and code symbols differently,
  5442. # so use this general approach.
  5443. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5444. # Transform an extracted symbol line into symbol name and symbol address
  5445. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5446. 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'"
  5447. # Handle CRLF in mingw tool chain
  5448. opt_cr=
  5449. case $build_os in
  5450. mingw*)
  5451. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5452. ;;
  5453. esac
  5454. # Try without a prefix underscore, then with it.
  5455. for ac_symprfx in "" "_"; do
  5456. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5457. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5458. # Write the raw and C identifiers.
  5459. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5460. # Fake it for dumpbin and say T for any non-static function
  5461. # and D for any global variable.
  5462. # Also find C++ and __fastcall symbols from MSVC++,
  5463. # which start with @ or ?.
  5464. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5465. " {last_section=section; section=\$ 3};"\
  5466. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5467. " \$ 0!~/External *\|/{next};"\
  5468. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5469. " {if(hide[section]) next};"\
  5470. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5471. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5472. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5473. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5474. " ' prfx=^$ac_symprfx"
  5475. else
  5476. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5477. fi
  5478. # Check to see that the pipe works correctly.
  5479. pipe_works=no
  5480. rm -f conftest*
  5481. cat > conftest.$ac_ext <<_LT_EOF
  5482. #ifdef __cplusplus
  5483. extern "C" {
  5484. #endif
  5485. char nm_test_var;
  5486. void nm_test_func(void);
  5487. void nm_test_func(void){}
  5488. #ifdef __cplusplus
  5489. }
  5490. #endif
  5491. int main(){nm_test_var='a';nm_test_func();return(0);}
  5492. _LT_EOF
  5493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5494. (eval $ac_compile) 2>&5
  5495. ac_status=$?
  5496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5497. test $ac_status = 0; }; then
  5498. # Now try to grab the symbols.
  5499. nlist=conftest.nm
  5500. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5501. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5502. ac_status=$?
  5503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5504. test $ac_status = 0; } && test -s "$nlist"; then
  5505. # Try sorting and uniquifying the output.
  5506. if sort "$nlist" | uniq > "$nlist"T; then
  5507. mv -f "$nlist"T "$nlist"
  5508. else
  5509. rm -f "$nlist"T
  5510. fi
  5511. # Make sure that we snagged all the symbols we need.
  5512. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5513. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5514. cat <<_LT_EOF > conftest.$ac_ext
  5515. #ifdef __cplusplus
  5516. extern "C" {
  5517. #endif
  5518. _LT_EOF
  5519. # Now generate the symbol file.
  5520. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5521. cat <<_LT_EOF >> conftest.$ac_ext
  5522. /* The mapping between symbol names and symbols. */
  5523. const struct {
  5524. const char *name;
  5525. void *address;
  5526. }
  5527. lt__PROGRAM__LTX_preloaded_symbols[] =
  5528. {
  5529. { "@PROGRAM@", (void *) 0 },
  5530. _LT_EOF
  5531. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5532. cat <<\_LT_EOF >> conftest.$ac_ext
  5533. {0, (void *) 0}
  5534. };
  5535. /* This works around a problem in FreeBSD linker */
  5536. #ifdef FREEBSD_WORKAROUND
  5537. static const void *lt_preloaded_setup() {
  5538. return lt__PROGRAM__LTX_preloaded_symbols;
  5539. }
  5540. #endif
  5541. #ifdef __cplusplus
  5542. }
  5543. #endif
  5544. _LT_EOF
  5545. # Now try linking the two files.
  5546. mv conftest.$ac_objext conftstm.$ac_objext
  5547. lt_save_LIBS="$LIBS"
  5548. lt_save_CFLAGS="$CFLAGS"
  5549. LIBS="conftstm.$ac_objext"
  5550. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5552. (eval $ac_link) 2>&5
  5553. ac_status=$?
  5554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5555. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5556. pipe_works=yes
  5557. fi
  5558. LIBS="$lt_save_LIBS"
  5559. CFLAGS="$lt_save_CFLAGS"
  5560. else
  5561. echo "cannot find nm_test_func in $nlist" >&5
  5562. fi
  5563. else
  5564. echo "cannot find nm_test_var in $nlist" >&5
  5565. fi
  5566. else
  5567. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5568. fi
  5569. else
  5570. echo "$progname: failed program was:" >&5
  5571. cat conftest.$ac_ext >&5
  5572. fi
  5573. rm -rf conftest* conftst*
  5574. # Do not use the global_symbol_pipe unless it works.
  5575. if test "$pipe_works" = yes; then
  5576. break
  5577. else
  5578. lt_cv_sys_global_symbol_pipe=
  5579. fi
  5580. done
  5581. fi
  5582. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5583. lt_cv_sys_global_symbol_to_cdecl=
  5584. fi
  5585. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5587. $as_echo "failed" >&6; }
  5588. else
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5590. $as_echo "ok" >&6; }
  5591. fi
  5592. # Check whether --enable-libtool-lock was given.
  5593. if test "${enable_libtool_lock+set}" = set; then :
  5594. enableval=$enable_libtool_lock;
  5595. fi
  5596. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5597. # Some flags need to be propagated to the compiler or linker for good
  5598. # libtool support.
  5599. case $host in
  5600. ia64-*-hpux*)
  5601. # Find out which ABI we are using.
  5602. echo 'int i;' > conftest.$ac_ext
  5603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5604. (eval $ac_compile) 2>&5
  5605. ac_status=$?
  5606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5607. test $ac_status = 0; }; then
  5608. case `/usr/bin/file conftest.$ac_objext` in
  5609. *ELF-32*)
  5610. HPUX_IA64_MODE="32"
  5611. ;;
  5612. *ELF-64*)
  5613. HPUX_IA64_MODE="64"
  5614. ;;
  5615. esac
  5616. fi
  5617. rm -rf conftest*
  5618. ;;
  5619. *-*-irix6*)
  5620. # Find out which ABI we are using.
  5621. echo '#line 6396 "configure"' > conftest.$ac_ext
  5622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5623. (eval $ac_compile) 2>&5
  5624. ac_status=$?
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5626. test $ac_status = 0; }; then
  5627. if test "$lt_cv_prog_gnu_ld" = yes; then
  5628. case `/usr/bin/file conftest.$ac_objext` in
  5629. *32-bit*)
  5630. LD="${LD-ld} -melf32bsmip"
  5631. ;;
  5632. *N32*)
  5633. LD="${LD-ld} -melf32bmipn32"
  5634. ;;
  5635. *64-bit*)
  5636. LD="${LD-ld} -melf64bmip"
  5637. ;;
  5638. esac
  5639. else
  5640. case `/usr/bin/file conftest.$ac_objext` in
  5641. *32-bit*)
  5642. LD="${LD-ld} -32"
  5643. ;;
  5644. *N32*)
  5645. LD="${LD-ld} -n32"
  5646. ;;
  5647. *64-bit*)
  5648. LD="${LD-ld} -64"
  5649. ;;
  5650. esac
  5651. fi
  5652. fi
  5653. rm -rf conftest*
  5654. ;;
  5655. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5656. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5657. # Find out which ABI we are using.
  5658. echo 'int i;' > conftest.$ac_ext
  5659. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5660. (eval $ac_compile) 2>&5
  5661. ac_status=$?
  5662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5663. test $ac_status = 0; }; then
  5664. case `/usr/bin/file conftest.o` in
  5665. *32-bit*)
  5666. case $host in
  5667. x86_64-*kfreebsd*-gnu)
  5668. LD="${LD-ld} -m elf_i386_fbsd"
  5669. ;;
  5670. x86_64-*linux*)
  5671. LD="${LD-ld} -m elf_i386"
  5672. ;;
  5673. ppc64-*linux*|powerpc64-*linux*)
  5674. LD="${LD-ld} -m elf32ppclinux"
  5675. ;;
  5676. s390x-*linux*)
  5677. LD="${LD-ld} -m elf_s390"
  5678. ;;
  5679. sparc64-*linux*)
  5680. LD="${LD-ld} -m elf32_sparc"
  5681. ;;
  5682. esac
  5683. ;;
  5684. *64-bit*)
  5685. case $host in
  5686. x86_64-*kfreebsd*-gnu)
  5687. LD="${LD-ld} -m elf_x86_64_fbsd"
  5688. ;;
  5689. x86_64-*linux*)
  5690. LD="${LD-ld} -m elf_x86_64"
  5691. ;;
  5692. ppc*-*linux*|powerpc*-*linux*)
  5693. LD="${LD-ld} -m elf64ppc"
  5694. ;;
  5695. s390*-*linux*|s390*-*tpf*)
  5696. LD="${LD-ld} -m elf64_s390"
  5697. ;;
  5698. sparc*-*linux*)
  5699. LD="${LD-ld} -m elf64_sparc"
  5700. ;;
  5701. esac
  5702. ;;
  5703. esac
  5704. fi
  5705. rm -rf conftest*
  5706. ;;
  5707. *-*-sco3.2v5*)
  5708. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5709. SAVE_CFLAGS="$CFLAGS"
  5710. CFLAGS="$CFLAGS -belf"
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5712. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5713. if ${lt_cv_cc_needs_belf+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. ac_ext=c
  5717. ac_cpp='$CPP $CPPFLAGS'
  5718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5722. /* end confdefs.h. */
  5723. int
  5724. main ()
  5725. {
  5726. ;
  5727. return 0;
  5728. }
  5729. _ACEOF
  5730. if ac_fn_c_try_link "$LINENO"; then :
  5731. lt_cv_cc_needs_belf=yes
  5732. else
  5733. lt_cv_cc_needs_belf=no
  5734. fi
  5735. rm -f core conftest.err conftest.$ac_objext \
  5736. conftest$ac_exeext conftest.$ac_ext
  5737. ac_ext=c
  5738. ac_cpp='$CPP $CPPFLAGS'
  5739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5742. fi
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5744. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5745. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5746. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5747. CFLAGS="$SAVE_CFLAGS"
  5748. fi
  5749. ;;
  5750. sparc*-*solaris*)
  5751. # Find out which ABI we are using.
  5752. echo 'int i;' > conftest.$ac_ext
  5753. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5754. (eval $ac_compile) 2>&5
  5755. ac_status=$?
  5756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5757. test $ac_status = 0; }; then
  5758. case `/usr/bin/file conftest.o` in
  5759. *64-bit*)
  5760. case $lt_cv_prog_gnu_ld in
  5761. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5762. *)
  5763. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5764. LD="${LD-ld} -64"
  5765. fi
  5766. ;;
  5767. esac
  5768. ;;
  5769. esac
  5770. fi
  5771. rm -rf conftest*
  5772. ;;
  5773. esac
  5774. need_locks="$enable_libtool_lock"
  5775. case $host_os in
  5776. rhapsody* | darwin*)
  5777. if test -n "$ac_tool_prefix"; then
  5778. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5779. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$DSYMUTIL"; then
  5786. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5795. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5805. if test -n "$DSYMUTIL"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5807. $as_echo "$DSYMUTIL" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. fi
  5813. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5814. ac_ct_DSYMUTIL=$DSYMUTIL
  5815. # Extract the first word of "dsymutil", so it can be a program name with args.
  5816. set dummy dsymutil; ac_word=$2
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. $as_echo_n "checking for $ac_word... " >&6; }
  5819. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. if test -n "$ac_ct_DSYMUTIL"; then
  5823. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. test -z "$as_dir" && as_dir=.
  5830. for ac_exec_ext in '' $ac_executable_extensions; do
  5831. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5832. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5834. break 2
  5835. fi
  5836. done
  5837. done
  5838. IFS=$as_save_IFS
  5839. fi
  5840. fi
  5841. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5842. if test -n "$ac_ct_DSYMUTIL"; then
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5844. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5845. else
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5847. $as_echo "no" >&6; }
  5848. fi
  5849. if test "x$ac_ct_DSYMUTIL" = x; then
  5850. DSYMUTIL=":"
  5851. else
  5852. case $cross_compiling:$ac_tool_warned in
  5853. yes:)
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5856. ac_tool_warned=yes ;;
  5857. esac
  5858. DSYMUTIL=$ac_ct_DSYMUTIL
  5859. fi
  5860. else
  5861. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5862. fi
  5863. if test -n "$ac_tool_prefix"; then
  5864. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5865. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if ${ac_cv_prog_NMEDIT+:} false; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. if test -n "$NMEDIT"; then
  5872. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5881. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. NMEDIT=$ac_cv_prog_NMEDIT
  5891. if test -n "$NMEDIT"; then
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5893. $as_echo "$NMEDIT" >&6; }
  5894. else
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5896. $as_echo "no" >&6; }
  5897. fi
  5898. fi
  5899. if test -z "$ac_cv_prog_NMEDIT"; then
  5900. ac_ct_NMEDIT=$NMEDIT
  5901. # Extract the first word of "nmedit", so it can be a program name with args.
  5902. set dummy nmedit; ac_word=$2
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5904. $as_echo_n "checking for $ac_word... " >&6; }
  5905. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. if test -n "$ac_ct_NMEDIT"; then
  5909. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5910. else
  5911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5912. for as_dir in $PATH
  5913. do
  5914. IFS=$as_save_IFS
  5915. test -z "$as_dir" && as_dir=.
  5916. for ac_exec_ext in '' $ac_executable_extensions; do
  5917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5918. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5920. break 2
  5921. fi
  5922. done
  5923. done
  5924. IFS=$as_save_IFS
  5925. fi
  5926. fi
  5927. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5928. if test -n "$ac_ct_NMEDIT"; then
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5930. $as_echo "$ac_ct_NMEDIT" >&6; }
  5931. else
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5933. $as_echo "no" >&6; }
  5934. fi
  5935. if test "x$ac_ct_NMEDIT" = x; then
  5936. NMEDIT=":"
  5937. else
  5938. case $cross_compiling:$ac_tool_warned in
  5939. yes:)
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5942. ac_tool_warned=yes ;;
  5943. esac
  5944. NMEDIT=$ac_ct_NMEDIT
  5945. fi
  5946. else
  5947. NMEDIT="$ac_cv_prog_NMEDIT"
  5948. fi
  5949. if test -n "$ac_tool_prefix"; then
  5950. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5951. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5953. $as_echo_n "checking for $ac_word... " >&6; }
  5954. if ${ac_cv_prog_LIPO+:} false; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test -n "$LIPO"; then
  5958. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5959. else
  5960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5961. for as_dir in $PATH
  5962. do
  5963. IFS=$as_save_IFS
  5964. test -z "$as_dir" && as_dir=.
  5965. for ac_exec_ext in '' $ac_executable_extensions; do
  5966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5967. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5969. break 2
  5970. fi
  5971. done
  5972. done
  5973. IFS=$as_save_IFS
  5974. fi
  5975. fi
  5976. LIPO=$ac_cv_prog_LIPO
  5977. if test -n "$LIPO"; then
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5979. $as_echo "$LIPO" >&6; }
  5980. else
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5982. $as_echo "no" >&6; }
  5983. fi
  5984. fi
  5985. if test -z "$ac_cv_prog_LIPO"; then
  5986. ac_ct_LIPO=$LIPO
  5987. # Extract the first word of "lipo", so it can be a program name with args.
  5988. set dummy lipo; ac_word=$2
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5990. $as_echo_n "checking for $ac_word... " >&6; }
  5991. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. if test -n "$ac_ct_LIPO"; then
  5995. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5996. else
  5997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5998. for as_dir in $PATH
  5999. do
  6000. IFS=$as_save_IFS
  6001. test -z "$as_dir" && as_dir=.
  6002. for ac_exec_ext in '' $ac_executable_extensions; do
  6003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6004. ac_cv_prog_ac_ct_LIPO="lipo"
  6005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6006. break 2
  6007. fi
  6008. done
  6009. done
  6010. IFS=$as_save_IFS
  6011. fi
  6012. fi
  6013. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6014. if test -n "$ac_ct_LIPO"; then
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6016. $as_echo "$ac_ct_LIPO" >&6; }
  6017. else
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6019. $as_echo "no" >&6; }
  6020. fi
  6021. if test "x$ac_ct_LIPO" = x; then
  6022. LIPO=":"
  6023. else
  6024. case $cross_compiling:$ac_tool_warned in
  6025. yes:)
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6027. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6028. ac_tool_warned=yes ;;
  6029. esac
  6030. LIPO=$ac_ct_LIPO
  6031. fi
  6032. else
  6033. LIPO="$ac_cv_prog_LIPO"
  6034. fi
  6035. if test -n "$ac_tool_prefix"; then
  6036. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6037. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if ${ac_cv_prog_OTOOL+:} false; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$OTOOL"; then
  6044. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6053. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. OTOOL=$ac_cv_prog_OTOOL
  6063. if test -n "$OTOOL"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6065. $as_echo "$OTOOL" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. fi
  6071. if test -z "$ac_cv_prog_OTOOL"; then
  6072. ac_ct_OTOOL=$OTOOL
  6073. # Extract the first word of "otool", so it can be a program name with args.
  6074. set dummy otool; ac_word=$2
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6076. $as_echo_n "checking for $ac_word... " >&6; }
  6077. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. if test -n "$ac_ct_OTOOL"; then
  6081. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6082. else
  6083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6084. for as_dir in $PATH
  6085. do
  6086. IFS=$as_save_IFS
  6087. test -z "$as_dir" && as_dir=.
  6088. for ac_exec_ext in '' $ac_executable_extensions; do
  6089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6090. ac_cv_prog_ac_ct_OTOOL="otool"
  6091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6092. break 2
  6093. fi
  6094. done
  6095. done
  6096. IFS=$as_save_IFS
  6097. fi
  6098. fi
  6099. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6100. if test -n "$ac_ct_OTOOL"; then
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6102. $as_echo "$ac_ct_OTOOL" >&6; }
  6103. else
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6105. $as_echo "no" >&6; }
  6106. fi
  6107. if test "x$ac_ct_OTOOL" = x; then
  6108. OTOOL=":"
  6109. else
  6110. case $cross_compiling:$ac_tool_warned in
  6111. yes:)
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6113. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6114. ac_tool_warned=yes ;;
  6115. esac
  6116. OTOOL=$ac_ct_OTOOL
  6117. fi
  6118. else
  6119. OTOOL="$ac_cv_prog_OTOOL"
  6120. fi
  6121. if test -n "$ac_tool_prefix"; then
  6122. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6123. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6125. $as_echo_n "checking for $ac_word... " >&6; }
  6126. if ${ac_cv_prog_OTOOL64+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. if test -n "$OTOOL64"; then
  6130. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6131. else
  6132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6133. for as_dir in $PATH
  6134. do
  6135. IFS=$as_save_IFS
  6136. test -z "$as_dir" && as_dir=.
  6137. for ac_exec_ext in '' $ac_executable_extensions; do
  6138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6139. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6141. break 2
  6142. fi
  6143. done
  6144. done
  6145. IFS=$as_save_IFS
  6146. fi
  6147. fi
  6148. OTOOL64=$ac_cv_prog_OTOOL64
  6149. if test -n "$OTOOL64"; then
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6151. $as_echo "$OTOOL64" >&6; }
  6152. else
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6154. $as_echo "no" >&6; }
  6155. fi
  6156. fi
  6157. if test -z "$ac_cv_prog_OTOOL64"; then
  6158. ac_ct_OTOOL64=$OTOOL64
  6159. # Extract the first word of "otool64", so it can be a program name with args.
  6160. set dummy otool64; ac_word=$2
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6162. $as_echo_n "checking for $ac_word... " >&6; }
  6163. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. if test -n "$ac_ct_OTOOL64"; then
  6167. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6168. else
  6169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6170. for as_dir in $PATH
  6171. do
  6172. IFS=$as_save_IFS
  6173. test -z "$as_dir" && as_dir=.
  6174. for ac_exec_ext in '' $ac_executable_extensions; do
  6175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6176. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6178. break 2
  6179. fi
  6180. done
  6181. done
  6182. IFS=$as_save_IFS
  6183. fi
  6184. fi
  6185. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6186. if test -n "$ac_ct_OTOOL64"; then
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6188. $as_echo "$ac_ct_OTOOL64" >&6; }
  6189. else
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6191. $as_echo "no" >&6; }
  6192. fi
  6193. if test "x$ac_ct_OTOOL64" = x; then
  6194. OTOOL64=":"
  6195. else
  6196. case $cross_compiling:$ac_tool_warned in
  6197. yes:)
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6199. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6200. ac_tool_warned=yes ;;
  6201. esac
  6202. OTOOL64=$ac_ct_OTOOL64
  6203. fi
  6204. else
  6205. OTOOL64="$ac_cv_prog_OTOOL64"
  6206. fi
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6208. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6209. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6210. $as_echo_n "(cached) " >&6
  6211. else
  6212. lt_cv_apple_cc_single_mod=no
  6213. if test -z "${LT_MULTI_MODULE}"; then
  6214. # By default we will add the -single_module flag. You can override
  6215. # by either setting the environment variable LT_MULTI_MODULE
  6216. # non-empty at configure time, or by adding -multi_module to the
  6217. # link flags.
  6218. rm -rf libconftest.dylib*
  6219. echo "int foo(void){return 1;}" > conftest.c
  6220. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6221. -dynamiclib -Wl,-single_module conftest.c" >&5
  6222. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6223. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6224. _lt_result=$?
  6225. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6226. lt_cv_apple_cc_single_mod=yes
  6227. else
  6228. cat conftest.err >&5
  6229. fi
  6230. rm -rf libconftest.dylib*
  6231. rm -f conftest.*
  6232. fi
  6233. fi
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6235. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6237. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6238. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. lt_cv_ld_exported_symbols_list=no
  6242. save_LDFLAGS=$LDFLAGS
  6243. echo "_main" > conftest.sym
  6244. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6246. /* end confdefs.h. */
  6247. int
  6248. main ()
  6249. {
  6250. ;
  6251. return 0;
  6252. }
  6253. _ACEOF
  6254. if ac_fn_c_try_link "$LINENO"; then :
  6255. lt_cv_ld_exported_symbols_list=yes
  6256. else
  6257. lt_cv_ld_exported_symbols_list=no
  6258. fi
  6259. rm -f core conftest.err conftest.$ac_objext \
  6260. conftest$ac_exeext conftest.$ac_ext
  6261. LDFLAGS="$save_LDFLAGS"
  6262. fi
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6264. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6265. case $host_os in
  6266. rhapsody* | darwin1.[012])
  6267. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6268. darwin1.*)
  6269. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6270. darwin*) # darwin 5.x on
  6271. # if running on 10.5 or later, the deployment target defaults
  6272. # to the OS version, if on x86, and 10.4, the deployment
  6273. # target defaults to 10.4. Don't you love it?
  6274. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6275. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6276. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6277. 10.[012]*)
  6278. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6279. 10.*)
  6280. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6281. esac
  6282. ;;
  6283. esac
  6284. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6285. _lt_dar_single_mod='$single_module'
  6286. fi
  6287. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6288. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6289. else
  6290. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6291. fi
  6292. if test "$DSYMUTIL" != ":"; then
  6293. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6294. else
  6295. _lt_dsymutil=
  6296. fi
  6297. ;;
  6298. esac
  6299. for ac_header in dlfcn.h
  6300. do :
  6301. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6302. "
  6303. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6304. cat >>confdefs.h <<_ACEOF
  6305. #define HAVE_DLFCN_H 1
  6306. _ACEOF
  6307. fi
  6308. done
  6309. # Set options
  6310. enable_dlopen=no
  6311. enable_win32_dll=no
  6312. # Check whether --enable-shared was given.
  6313. if test "${enable_shared+set}" = set; then :
  6314. enableval=$enable_shared; p=${PACKAGE-default}
  6315. case $enableval in
  6316. yes) enable_shared=yes ;;
  6317. no) enable_shared=no ;;
  6318. *)
  6319. enable_shared=no
  6320. # Look at the argument we got. We use all the common list separators.
  6321. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6322. for pkg in $enableval; do
  6323. IFS="$lt_save_ifs"
  6324. if test "X$pkg" = "X$p"; then
  6325. enable_shared=yes
  6326. fi
  6327. done
  6328. IFS="$lt_save_ifs"
  6329. ;;
  6330. esac
  6331. else
  6332. enable_shared=yes
  6333. fi
  6334. # Check whether --enable-static was given.
  6335. if test "${enable_static+set}" = set; then :
  6336. enableval=$enable_static; p=${PACKAGE-default}
  6337. case $enableval in
  6338. yes) enable_static=yes ;;
  6339. no) enable_static=no ;;
  6340. *)
  6341. enable_static=no
  6342. # Look at the argument we got. We use all the common list separators.
  6343. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6344. for pkg in $enableval; do
  6345. IFS="$lt_save_ifs"
  6346. if test "X$pkg" = "X$p"; then
  6347. enable_static=yes
  6348. fi
  6349. done
  6350. IFS="$lt_save_ifs"
  6351. ;;
  6352. esac
  6353. else
  6354. enable_static=yes
  6355. fi
  6356. # Check whether --with-pic was given.
  6357. if test "${with_pic+set}" = set; then :
  6358. withval=$with_pic; pic_mode="$withval"
  6359. else
  6360. pic_mode=default
  6361. fi
  6362. test -z "$pic_mode" && pic_mode=default
  6363. # Check whether --enable-fast-install was given.
  6364. if test "${enable_fast_install+set}" = set; then :
  6365. enableval=$enable_fast_install; p=${PACKAGE-default}
  6366. case $enableval in
  6367. yes) enable_fast_install=yes ;;
  6368. no) enable_fast_install=no ;;
  6369. *)
  6370. enable_fast_install=no
  6371. # Look at the argument we got. We use all the common list separators.
  6372. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6373. for pkg in $enableval; do
  6374. IFS="$lt_save_ifs"
  6375. if test "X$pkg" = "X$p"; then
  6376. enable_fast_install=yes
  6377. fi
  6378. done
  6379. IFS="$lt_save_ifs"
  6380. ;;
  6381. esac
  6382. else
  6383. enable_fast_install=yes
  6384. fi
  6385. # This can be used to rebuild libtool when needed
  6386. LIBTOOL_DEPS="$ltmain"
  6387. # Always use our own libtool.
  6388. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6389. test -z "$LN_S" && LN_S="ln -s"
  6390. if test -n "${ZSH_VERSION+set}" ; then
  6391. setopt NO_GLOB_SUBST
  6392. fi
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6394. $as_echo_n "checking for objdir... " >&6; }
  6395. if ${lt_cv_objdir+:} false; then :
  6396. $as_echo_n "(cached) " >&6
  6397. else
  6398. rm -f .libs 2>/dev/null
  6399. mkdir .libs 2>/dev/null
  6400. if test -d .libs; then
  6401. lt_cv_objdir=.libs
  6402. else
  6403. # MS-DOS does not allow filenames that begin with a dot.
  6404. lt_cv_objdir=_libs
  6405. fi
  6406. rmdir .libs 2>/dev/null
  6407. fi
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6409. $as_echo "$lt_cv_objdir" >&6; }
  6410. objdir=$lt_cv_objdir
  6411. cat >>confdefs.h <<_ACEOF
  6412. #define LT_OBJDIR "$lt_cv_objdir/"
  6413. _ACEOF
  6414. case $host_os in
  6415. aix3*)
  6416. # AIX sometimes has problems with the GCC collect2 program. For some
  6417. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6418. # vanish in a puff of smoke.
  6419. if test "X${COLLECT_NAMES+set}" != Xset; then
  6420. COLLECT_NAMES=
  6421. export COLLECT_NAMES
  6422. fi
  6423. ;;
  6424. esac
  6425. # Sed substitution that helps us do robust quoting. It backslashifies
  6426. # metacharacters that are still active within double-quoted strings.
  6427. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6428. # Same as above, but do not quote variable references.
  6429. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6430. # Sed substitution to delay expansion of an escaped shell variable in a
  6431. # double_quote_subst'ed string.
  6432. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6433. # Sed substitution to delay expansion of an escaped single quote.
  6434. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6435. # Sed substitution to avoid accidental globbing in evaled expressions
  6436. no_glob_subst='s/\*/\\\*/g'
  6437. # Global variables:
  6438. ofile=libtool
  6439. can_build_shared=yes
  6440. # All known linkers require a `.a' archive for static linking (except MSVC,
  6441. # which needs '.lib').
  6442. libext=a
  6443. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6444. old_CC="$CC"
  6445. old_CFLAGS="$CFLAGS"
  6446. # Set sane defaults for various variables
  6447. test -z "$CC" && CC=cc
  6448. test -z "$LTCC" && LTCC=$CC
  6449. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6450. test -z "$LD" && LD=ld
  6451. test -z "$ac_objext" && ac_objext=o
  6452. for cc_temp in $compiler""; do
  6453. case $cc_temp in
  6454. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6455. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6456. \-*) ;;
  6457. *) break;;
  6458. esac
  6459. done
  6460. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6461. # Only perform the check for file, if the check method requires it
  6462. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6463. case $deplibs_check_method in
  6464. file_magic*)
  6465. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6467. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6468. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6469. $as_echo_n "(cached) " >&6
  6470. else
  6471. case $MAGIC_CMD in
  6472. [\\/*] | ?:[\\/]*)
  6473. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6474. ;;
  6475. *)
  6476. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6477. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6478. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6479. for ac_dir in $ac_dummy; do
  6480. IFS="$lt_save_ifs"
  6481. test -z "$ac_dir" && ac_dir=.
  6482. if test -f $ac_dir/${ac_tool_prefix}file; then
  6483. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6484. if test -n "$file_magic_test_file"; then
  6485. case $deplibs_check_method in
  6486. "file_magic "*)
  6487. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6488. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6489. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6490. $EGREP "$file_magic_regex" > /dev/null; then
  6491. :
  6492. else
  6493. cat <<_LT_EOF 1>&2
  6494. *** Warning: the command libtool uses to detect shared libraries,
  6495. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6496. *** The result is that libtool may fail to recognize shared libraries
  6497. *** as such. This will affect the creation of libtool libraries that
  6498. *** depend on shared libraries, but programs linked with such libtool
  6499. *** libraries will work regardless of this problem. Nevertheless, you
  6500. *** may want to report the problem to your system manager and/or to
  6501. *** bug-libtool@gnu.org
  6502. _LT_EOF
  6503. fi ;;
  6504. esac
  6505. fi
  6506. break
  6507. fi
  6508. done
  6509. IFS="$lt_save_ifs"
  6510. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6511. ;;
  6512. esac
  6513. fi
  6514. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6515. if test -n "$MAGIC_CMD"; then
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6517. $as_echo "$MAGIC_CMD" >&6; }
  6518. else
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6520. $as_echo "no" >&6; }
  6521. fi
  6522. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6523. if test -n "$ac_tool_prefix"; then
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6525. $as_echo_n "checking for file... " >&6; }
  6526. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. case $MAGIC_CMD in
  6530. [\\/*] | ?:[\\/]*)
  6531. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6532. ;;
  6533. *)
  6534. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6535. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6536. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6537. for ac_dir in $ac_dummy; do
  6538. IFS="$lt_save_ifs"
  6539. test -z "$ac_dir" && ac_dir=.
  6540. if test -f $ac_dir/file; then
  6541. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6542. if test -n "$file_magic_test_file"; then
  6543. case $deplibs_check_method in
  6544. "file_magic "*)
  6545. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6546. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6547. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6548. $EGREP "$file_magic_regex" > /dev/null; then
  6549. :
  6550. else
  6551. cat <<_LT_EOF 1>&2
  6552. *** Warning: the command libtool uses to detect shared libraries,
  6553. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6554. *** The result is that libtool may fail to recognize shared libraries
  6555. *** as such. This will affect the creation of libtool libraries that
  6556. *** depend on shared libraries, but programs linked with such libtool
  6557. *** libraries will work regardless of this problem. Nevertheless, you
  6558. *** may want to report the problem to your system manager and/or to
  6559. *** bug-libtool@gnu.org
  6560. _LT_EOF
  6561. fi ;;
  6562. esac
  6563. fi
  6564. break
  6565. fi
  6566. done
  6567. IFS="$lt_save_ifs"
  6568. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6569. ;;
  6570. esac
  6571. fi
  6572. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6573. if test -n "$MAGIC_CMD"; then
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6575. $as_echo "$MAGIC_CMD" >&6; }
  6576. else
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6578. $as_echo "no" >&6; }
  6579. fi
  6580. else
  6581. MAGIC_CMD=:
  6582. fi
  6583. fi
  6584. fi
  6585. ;;
  6586. esac
  6587. # Use C for the default configuration in the libtool script
  6588. lt_save_CC="$CC"
  6589. ac_ext=c
  6590. ac_cpp='$CPP $CPPFLAGS'
  6591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6594. # Source file extension for C test sources.
  6595. ac_ext=c
  6596. # Object file extension for compiled C test sources.
  6597. objext=o
  6598. objext=$objext
  6599. # Code to be used in simple compile tests
  6600. lt_simple_compile_test_code="int some_variable = 0;"
  6601. # Code to be used in simple link tests
  6602. lt_simple_link_test_code='int main(){return(0);}'
  6603. # If no C compiler was specified, use CC.
  6604. LTCC=${LTCC-"$CC"}
  6605. # If no C compiler flags were specified, use CFLAGS.
  6606. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6607. # Allow CC to be a program name with arguments.
  6608. compiler=$CC
  6609. # Save the default compiler, since it gets overwritten when the other
  6610. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6611. compiler_DEFAULT=$CC
  6612. # save warnings/boilerplate of simple test code
  6613. ac_outfile=conftest.$ac_objext
  6614. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6615. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6616. _lt_compiler_boilerplate=`cat conftest.err`
  6617. $RM conftest*
  6618. ac_outfile=conftest.$ac_objext
  6619. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6620. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6621. _lt_linker_boilerplate=`cat conftest.err`
  6622. $RM -r conftest*
  6623. if test -n "$compiler"; then
  6624. lt_prog_compiler_no_builtin_flag=
  6625. if test "$GCC" = yes; then
  6626. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6628. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6629. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6630. $as_echo_n "(cached) " >&6
  6631. else
  6632. lt_cv_prog_compiler_rtti_exceptions=no
  6633. ac_outfile=conftest.$ac_objext
  6634. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6635. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6636. # Insert the option either (1) after the last *FLAGS variable, or
  6637. # (2) before a word containing "conftest.", or (3) at the end.
  6638. # Note that $ac_compile itself does not contain backslashes and begins
  6639. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6640. # The option is referenced via a variable to avoid confusing sed.
  6641. lt_compile=`echo "$ac_compile" | $SED \
  6642. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6643. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6644. -e 's:$: $lt_compiler_flag:'`
  6645. (eval echo "\"\$as_me:7654: $lt_compile\"" >&5)
  6646. (eval "$lt_compile" 2>conftest.err)
  6647. ac_status=$?
  6648. cat conftest.err >&5
  6649. echo "$as_me:7658: \$? = $ac_status" >&5
  6650. if (exit $ac_status) && test -s "$ac_outfile"; then
  6651. # The compiler can only warn and ignore the option if not recognized
  6652. # So say no if there are warnings other than the usual output.
  6653. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6654. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6655. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6656. lt_cv_prog_compiler_rtti_exceptions=yes
  6657. fi
  6658. fi
  6659. $RM conftest*
  6660. fi
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6662. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6663. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6664. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6665. else
  6666. :
  6667. fi
  6668. fi
  6669. lt_prog_compiler_wl=
  6670. lt_prog_compiler_pic=
  6671. lt_prog_compiler_static=
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6673. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6674. if test "$GCC" = yes; then
  6675. lt_prog_compiler_wl='-Wl,'
  6676. lt_prog_compiler_static='-static'
  6677. case $host_os in
  6678. aix*)
  6679. # All AIX code is PIC.
  6680. if test "$host_cpu" = ia64; then
  6681. # AIX 5 now supports IA64 processor
  6682. lt_prog_compiler_static='-Bstatic'
  6683. fi
  6684. ;;
  6685. amigaos*)
  6686. case $host_cpu in
  6687. powerpc)
  6688. # see comment about AmigaOS4 .so support
  6689. lt_prog_compiler_pic='-fPIC'
  6690. ;;
  6691. m68k)
  6692. # FIXME: we need at least 68020 code to build shared libraries, but
  6693. # adding the `-m68020' flag to GCC prevents building anything better,
  6694. # like `-m68040'.
  6695. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6696. ;;
  6697. esac
  6698. ;;
  6699. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6700. # PIC is the default for these OSes.
  6701. ;;
  6702. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6703. # This hack is so that the source file can tell whether it is being
  6704. # built for inclusion in a dll (and should export symbols for example).
  6705. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6706. # (--disable-auto-import) libraries
  6707. lt_prog_compiler_pic='-DDLL_EXPORT'
  6708. ;;
  6709. darwin* | rhapsody*)
  6710. # PIC is the default on this platform
  6711. # Common symbols not allowed in MH_DYLIB files
  6712. lt_prog_compiler_pic='-fno-common'
  6713. ;;
  6714. hpux*)
  6715. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6716. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6717. # sets the default TLS model and affects inlining.
  6718. case $host_cpu in
  6719. hppa*64*)
  6720. # +Z the default
  6721. ;;
  6722. *)
  6723. lt_prog_compiler_pic='-fPIC'
  6724. ;;
  6725. esac
  6726. ;;
  6727. interix[3-9]*)
  6728. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6729. # Instead, we relocate shared libraries at runtime.
  6730. ;;
  6731. msdosdjgpp*)
  6732. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6733. # on systems that don't support them.
  6734. lt_prog_compiler_can_build_shared=no
  6735. enable_shared=no
  6736. ;;
  6737. *nto* | *qnx*)
  6738. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6739. # it will coredump.
  6740. lt_prog_compiler_pic='-fPIC -shared'
  6741. ;;
  6742. sysv4*MP*)
  6743. if test -d /usr/nec; then
  6744. lt_prog_compiler_pic=-Kconform_pic
  6745. fi
  6746. ;;
  6747. *)
  6748. lt_prog_compiler_pic='-fPIC'
  6749. ;;
  6750. esac
  6751. else
  6752. # PORTME Check for flag to pass linker flags through the system compiler.
  6753. case $host_os in
  6754. aix*)
  6755. lt_prog_compiler_wl='-Wl,'
  6756. if test "$host_cpu" = ia64; then
  6757. # AIX 5 now supports IA64 processor
  6758. lt_prog_compiler_static='-Bstatic'
  6759. else
  6760. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6761. fi
  6762. ;;
  6763. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6764. # This hack is so that the source file can tell whether it is being
  6765. # built for inclusion in a dll (and should export symbols for example).
  6766. lt_prog_compiler_pic='-DDLL_EXPORT'
  6767. ;;
  6768. hpux9* | hpux10* | hpux11*)
  6769. lt_prog_compiler_wl='-Wl,'
  6770. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6771. # not for PA HP-UX.
  6772. case $host_cpu in
  6773. hppa*64*|ia64*)
  6774. # +Z the default
  6775. ;;
  6776. *)
  6777. lt_prog_compiler_pic='+Z'
  6778. ;;
  6779. esac
  6780. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6781. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6782. ;;
  6783. irix5* | irix6* | nonstopux*)
  6784. lt_prog_compiler_wl='-Wl,'
  6785. # PIC (with -KPIC) is the default.
  6786. lt_prog_compiler_static='-non_shared'
  6787. ;;
  6788. linux* | k*bsd*-gnu)
  6789. case $cc_basename in
  6790. # old Intel for x86_64 which still supported -KPIC.
  6791. ecc*)
  6792. lt_prog_compiler_wl='-Wl,'
  6793. lt_prog_compiler_pic='-KPIC'
  6794. lt_prog_compiler_static='-static'
  6795. ;;
  6796. # icc used to be incompatible with GCC.
  6797. # ICC 10 doesn't accept -KPIC any more.
  6798. icc* | ifort*)
  6799. lt_prog_compiler_wl='-Wl,'
  6800. lt_prog_compiler_pic='-fPIC'
  6801. lt_prog_compiler_static='-static'
  6802. ;;
  6803. # Lahey Fortran 8.1.
  6804. lf95*)
  6805. lt_prog_compiler_wl='-Wl,'
  6806. lt_prog_compiler_pic='--shared'
  6807. lt_prog_compiler_static='--static'
  6808. ;;
  6809. pgcc* | pgf77* | pgf90* | pgf95*)
  6810. # Portland Group compilers (*not* the Pentium gcc compiler,
  6811. # which looks to be a dead project)
  6812. lt_prog_compiler_wl='-Wl,'
  6813. lt_prog_compiler_pic='-fpic'
  6814. lt_prog_compiler_static='-Bstatic'
  6815. ;;
  6816. ccc*)
  6817. lt_prog_compiler_wl='-Wl,'
  6818. # All Alpha code is PIC.
  6819. lt_prog_compiler_static='-non_shared'
  6820. ;;
  6821. xl*)
  6822. # IBM XL C 8.0/Fortran 10.1 on PPC
  6823. lt_prog_compiler_wl='-Wl,'
  6824. lt_prog_compiler_pic='-qpic'
  6825. lt_prog_compiler_static='-qstaticlink'
  6826. ;;
  6827. *)
  6828. case `$CC -V 2>&1 | sed 5q` in
  6829. *Sun\ C*)
  6830. # Sun C 5.9
  6831. lt_prog_compiler_pic='-KPIC'
  6832. lt_prog_compiler_static='-Bstatic'
  6833. lt_prog_compiler_wl='-Wl,'
  6834. ;;
  6835. *Sun\ F*)
  6836. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6837. lt_prog_compiler_pic='-KPIC'
  6838. lt_prog_compiler_static='-Bstatic'
  6839. lt_prog_compiler_wl=''
  6840. ;;
  6841. esac
  6842. ;;
  6843. esac
  6844. ;;
  6845. newsos6)
  6846. lt_prog_compiler_pic='-KPIC'
  6847. lt_prog_compiler_static='-Bstatic'
  6848. ;;
  6849. *nto* | *qnx*)
  6850. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6851. # it will coredump.
  6852. lt_prog_compiler_pic='-fPIC -shared'
  6853. ;;
  6854. osf3* | osf4* | osf5*)
  6855. lt_prog_compiler_wl='-Wl,'
  6856. # All OSF/1 code is PIC.
  6857. lt_prog_compiler_static='-non_shared'
  6858. ;;
  6859. rdos*)
  6860. lt_prog_compiler_static='-non_shared'
  6861. ;;
  6862. solaris*)
  6863. lt_prog_compiler_pic='-KPIC'
  6864. lt_prog_compiler_static='-Bstatic'
  6865. case $cc_basename in
  6866. f77* | f90* | f95*)
  6867. lt_prog_compiler_wl='-Qoption ld ';;
  6868. *)
  6869. lt_prog_compiler_wl='-Wl,';;
  6870. esac
  6871. ;;
  6872. sunos4*)
  6873. lt_prog_compiler_wl='-Qoption ld '
  6874. lt_prog_compiler_pic='-PIC'
  6875. lt_prog_compiler_static='-Bstatic'
  6876. ;;
  6877. sysv4 | sysv4.2uw2* | sysv4.3*)
  6878. lt_prog_compiler_wl='-Wl,'
  6879. lt_prog_compiler_pic='-KPIC'
  6880. lt_prog_compiler_static='-Bstatic'
  6881. ;;
  6882. sysv4*MP*)
  6883. if test -d /usr/nec ;then
  6884. lt_prog_compiler_pic='-Kconform_pic'
  6885. lt_prog_compiler_static='-Bstatic'
  6886. fi
  6887. ;;
  6888. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6889. lt_prog_compiler_wl='-Wl,'
  6890. lt_prog_compiler_pic='-KPIC'
  6891. lt_prog_compiler_static='-Bstatic'
  6892. ;;
  6893. unicos*)
  6894. lt_prog_compiler_wl='-Wl,'
  6895. lt_prog_compiler_can_build_shared=no
  6896. ;;
  6897. uts4*)
  6898. lt_prog_compiler_pic='-pic'
  6899. lt_prog_compiler_static='-Bstatic'
  6900. ;;
  6901. *)
  6902. lt_prog_compiler_can_build_shared=no
  6903. ;;
  6904. esac
  6905. fi
  6906. case $host_os in
  6907. # For platforms which do not support PIC, -DPIC is meaningless:
  6908. *djgpp*)
  6909. lt_prog_compiler_pic=
  6910. ;;
  6911. *)
  6912. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6913. ;;
  6914. esac
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6916. $as_echo "$lt_prog_compiler_pic" >&6; }
  6917. #
  6918. # Check to make sure the PIC flag actually works.
  6919. #
  6920. if test -n "$lt_prog_compiler_pic"; then
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6922. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6923. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6924. $as_echo_n "(cached) " >&6
  6925. else
  6926. lt_cv_prog_compiler_pic_works=no
  6927. ac_outfile=conftest.$ac_objext
  6928. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6929. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6930. # Insert the option either (1) after the last *FLAGS variable, or
  6931. # (2) before a word containing "conftest.", or (3) at the end.
  6932. # Note that $ac_compile itself does not contain backslashes and begins
  6933. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6934. # The option is referenced via a variable to avoid confusing sed.
  6935. lt_compile=`echo "$ac_compile" | $SED \
  6936. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6937. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6938. -e 's:$: $lt_compiler_flag:'`
  6939. (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
  6940. (eval "$lt_compile" 2>conftest.err)
  6941. ac_status=$?
  6942. cat conftest.err >&5
  6943. echo "$as_me:7997: \$? = $ac_status" >&5
  6944. if (exit $ac_status) && test -s "$ac_outfile"; then
  6945. # The compiler can only warn and ignore the option if not recognized
  6946. # So say no if there are warnings other than the usual output.
  6947. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6948. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6949. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6950. lt_cv_prog_compiler_pic_works=yes
  6951. fi
  6952. fi
  6953. $RM conftest*
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6956. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6957. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6958. case $lt_prog_compiler_pic in
  6959. "" | " "*) ;;
  6960. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6961. esac
  6962. else
  6963. lt_prog_compiler_pic=
  6964. lt_prog_compiler_can_build_shared=no
  6965. fi
  6966. fi
  6967. #
  6968. # Check to make sure the static flag actually works.
  6969. #
  6970. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6972. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6973. if ${lt_cv_prog_compiler_static_works+:} false; then :
  6974. $as_echo_n "(cached) " >&6
  6975. else
  6976. lt_cv_prog_compiler_static_works=no
  6977. save_LDFLAGS="$LDFLAGS"
  6978. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6979. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6980. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6981. # The linker can only warn and ignore the option if not recognized
  6982. # So say no if there are warnings
  6983. if test -s conftest.err; then
  6984. # Append any errors to the config.log.
  6985. cat conftest.err 1>&5
  6986. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6987. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6988. if diff conftest.exp conftest.er2 >/dev/null; then
  6989. lt_cv_prog_compiler_static_works=yes
  6990. fi
  6991. else
  6992. lt_cv_prog_compiler_static_works=yes
  6993. fi
  6994. fi
  6995. $RM -r conftest*
  6996. LDFLAGS="$save_LDFLAGS"
  6997. fi
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6999. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7000. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7001. :
  7002. else
  7003. lt_prog_compiler_static=
  7004. fi
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7006. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7007. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. lt_cv_prog_compiler_c_o=no
  7011. $RM -r conftest 2>/dev/null
  7012. mkdir conftest
  7013. cd conftest
  7014. mkdir out
  7015. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7016. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7017. # Insert the option either (1) after the last *FLAGS variable, or
  7018. # (2) before a word containing "conftest.", or (3) at the end.
  7019. # Note that $ac_compile itself does not contain backslashes and begins
  7020. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7021. lt_compile=`echo "$ac_compile" | $SED \
  7022. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7023. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7024. -e 's:$: $lt_compiler_flag:'`
  7025. (eval echo "\"\$as_me:8098: $lt_compile\"" >&5)
  7026. (eval "$lt_compile" 2>out/conftest.err)
  7027. ac_status=$?
  7028. cat out/conftest.err >&5
  7029. echo "$as_me:8102: \$? = $ac_status" >&5
  7030. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7031. then
  7032. # The compiler can only warn and ignore the option if not recognized
  7033. # So say no if there are warnings
  7034. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7035. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7036. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7037. lt_cv_prog_compiler_c_o=yes
  7038. fi
  7039. fi
  7040. chmod u+w . 2>&5
  7041. $RM conftest*
  7042. # SGI C++ compiler will create directory out/ii_files/ for
  7043. # template instantiation
  7044. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7045. $RM out/* && rmdir out
  7046. cd ..
  7047. $RM -r conftest
  7048. $RM conftest*
  7049. fi
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7051. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7053. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7054. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7055. $as_echo_n "(cached) " >&6
  7056. else
  7057. lt_cv_prog_compiler_c_o=no
  7058. $RM -r conftest 2>/dev/null
  7059. mkdir conftest
  7060. cd conftest
  7061. mkdir out
  7062. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7063. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7064. # Insert the option either (1) after the last *FLAGS variable, or
  7065. # (2) before a word containing "conftest.", or (3) at the end.
  7066. # Note that $ac_compile itself does not contain backslashes and begins
  7067. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7068. lt_compile=`echo "$ac_compile" | $SED \
  7069. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7070. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7071. -e 's:$: $lt_compiler_flag:'`
  7072. (eval echo "\"\$as_me:8153: $lt_compile\"" >&5)
  7073. (eval "$lt_compile" 2>out/conftest.err)
  7074. ac_status=$?
  7075. cat out/conftest.err >&5
  7076. echo "$as_me:8157: \$? = $ac_status" >&5
  7077. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7078. then
  7079. # The compiler can only warn and ignore the option if not recognized
  7080. # So say no if there are warnings
  7081. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7082. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7083. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7084. lt_cv_prog_compiler_c_o=yes
  7085. fi
  7086. fi
  7087. chmod u+w . 2>&5
  7088. $RM conftest*
  7089. # SGI C++ compiler will create directory out/ii_files/ for
  7090. # template instantiation
  7091. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7092. $RM out/* && rmdir out
  7093. cd ..
  7094. $RM -r conftest
  7095. $RM conftest*
  7096. fi
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7098. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7099. hard_links="nottested"
  7100. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7101. # do not overwrite the value of need_locks provided by the user
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7103. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7104. hard_links=yes
  7105. $RM conftest*
  7106. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7107. touch conftest.a
  7108. ln conftest.a conftest.b 2>&5 || hard_links=no
  7109. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7111. $as_echo "$hard_links" >&6; }
  7112. if test "$hard_links" = no; then
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7114. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7115. need_locks=warn
  7116. fi
  7117. else
  7118. need_locks=no
  7119. fi
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7121. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7122. runpath_var=
  7123. allow_undefined_flag=
  7124. always_export_symbols=no
  7125. archive_cmds=
  7126. archive_expsym_cmds=
  7127. compiler_needs_object=no
  7128. enable_shared_with_static_runtimes=no
  7129. export_dynamic_flag_spec=
  7130. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7131. hardcode_automatic=no
  7132. hardcode_direct=no
  7133. hardcode_direct_absolute=no
  7134. hardcode_libdir_flag_spec=
  7135. hardcode_libdir_flag_spec_ld=
  7136. hardcode_libdir_separator=
  7137. hardcode_minus_L=no
  7138. hardcode_shlibpath_var=unsupported
  7139. inherit_rpath=no
  7140. link_all_deplibs=unknown
  7141. module_cmds=
  7142. module_expsym_cmds=
  7143. old_archive_from_new_cmds=
  7144. old_archive_from_expsyms_cmds=
  7145. thread_safe_flag_spec=
  7146. whole_archive_flag_spec=
  7147. # include_expsyms should be a list of space-separated symbols to be *always*
  7148. # included in the symbol list
  7149. include_expsyms=
  7150. # exclude_expsyms can be an extended regexp of symbols to exclude
  7151. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7152. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7153. # as well as any symbol that contains `d'.
  7154. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7155. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7156. # platforms (ab)use it in PIC code, but their linkers get confused if
  7157. # the symbol is explicitly referenced. Since portable code cannot
  7158. # rely on this symbol name, it's probably fine to never include it in
  7159. # preloaded symbol tables.
  7160. # Exclude shared library initialization/finalization symbols.
  7161. extract_expsyms_cmds=
  7162. case $host_os in
  7163. cygwin* | mingw* | pw32* | cegcc*)
  7164. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7165. # When not using gcc, we currently assume that we are using
  7166. # Microsoft Visual C++.
  7167. if test "$GCC" != yes; then
  7168. with_gnu_ld=no
  7169. fi
  7170. ;;
  7171. interix*)
  7172. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7173. with_gnu_ld=yes
  7174. ;;
  7175. openbsd*)
  7176. with_gnu_ld=no
  7177. ;;
  7178. esac
  7179. ld_shlibs=yes
  7180. if test "$with_gnu_ld" = yes; then
  7181. # If archive_cmds runs LD, not CC, wlarc should be empty
  7182. wlarc='${wl}'
  7183. # Set some defaults for GNU ld with shared library support. These
  7184. # are reset later if shared libraries are not supported. Putting them
  7185. # here allows them to be overridden if necessary.
  7186. runpath_var=LD_RUN_PATH
  7187. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7188. export_dynamic_flag_spec='${wl}--export-dynamic'
  7189. # ancient GNU ld didn't support --whole-archive et. al.
  7190. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7191. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7192. else
  7193. whole_archive_flag_spec=
  7194. fi
  7195. supports_anon_versioning=no
  7196. case `$LD -v 2>&1` in
  7197. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7198. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7199. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7200. *\ 2.11.*) ;; # other 2.11 versions
  7201. *) supports_anon_versioning=yes ;;
  7202. esac
  7203. # See if GNU ld supports shared libraries.
  7204. case $host_os in
  7205. aix[3-9]*)
  7206. # On AIX/PPC, the GNU linker is very broken
  7207. if test "$host_cpu" != ia64; then
  7208. ld_shlibs=no
  7209. cat <<_LT_EOF 1>&2
  7210. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7211. *** to be unable to reliably create shared libraries on AIX.
  7212. *** Therefore, libtool is disabling shared libraries support. If you
  7213. *** really care for shared libraries, you may want to modify your PATH
  7214. *** so that a non-GNU linker is found, and then restart.
  7215. _LT_EOF
  7216. fi
  7217. ;;
  7218. amigaos*)
  7219. case $host_cpu in
  7220. powerpc)
  7221. # see comment about AmigaOS4 .so support
  7222. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7223. archive_expsym_cmds=''
  7224. ;;
  7225. m68k)
  7226. 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)'
  7227. hardcode_libdir_flag_spec='-L$libdir'
  7228. hardcode_minus_L=yes
  7229. ;;
  7230. esac
  7231. ;;
  7232. beos*)
  7233. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7234. allow_undefined_flag=unsupported
  7235. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7236. # support --undefined. This deserves some investigation. FIXME
  7237. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7238. else
  7239. ld_shlibs=no
  7240. fi
  7241. ;;
  7242. cygwin* | mingw* | pw32* | cegcc*)
  7243. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7244. # as there is no search path for DLLs.
  7245. hardcode_libdir_flag_spec='-L$libdir'
  7246. allow_undefined_flag=unsupported
  7247. always_export_symbols=no
  7248. enable_shared_with_static_runtimes=yes
  7249. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7250. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7251. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7252. # If the export-symbols file already is a .def file (1st line
  7253. # is EXPORTS), use it as is; otherwise, prepend...
  7254. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7255. cp $export_symbols $output_objdir/$soname.def;
  7256. else
  7257. echo EXPORTS > $output_objdir/$soname.def;
  7258. cat $export_symbols >> $output_objdir/$soname.def;
  7259. fi~
  7260. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7261. else
  7262. ld_shlibs=no
  7263. fi
  7264. ;;
  7265. interix[3-9]*)
  7266. hardcode_direct=no
  7267. hardcode_shlibpath_var=no
  7268. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7269. export_dynamic_flag_spec='${wl}-E'
  7270. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7271. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7272. # default) and relocated if they conflict, which is a slow very memory
  7273. # consuming and fragmenting process. To avoid this, we pick a random,
  7274. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7275. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7276. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7277. 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'
  7278. ;;
  7279. gnu* | linux* | tpf* | k*bsd*-gnu)
  7280. tmp_diet=no
  7281. if test "$host_os" = linux-dietlibc; then
  7282. case $cc_basename in
  7283. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7284. esac
  7285. fi
  7286. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7287. && test "$tmp_diet" = no
  7288. then
  7289. tmp_addflag=
  7290. tmp_sharedflag='-shared'
  7291. case $cc_basename,$host_cpu in
  7292. pgcc*) # Portland Group C compiler
  7293. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7294. tmp_addflag=' $pic_flag'
  7295. ;;
  7296. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7297. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7298. tmp_addflag=' $pic_flag -Mnomain' ;;
  7299. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7300. tmp_addflag=' -i_dynamic' ;;
  7301. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7302. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7303. ifc* | ifort*) # Intel Fortran compiler
  7304. tmp_addflag=' -nofor_main' ;;
  7305. lf95*) # Lahey Fortran 8.1
  7306. whole_archive_flag_spec=
  7307. tmp_sharedflag='--shared' ;;
  7308. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7309. tmp_sharedflag='-qmkshrobj'
  7310. tmp_addflag= ;;
  7311. esac
  7312. case `$CC -V 2>&1 | sed 5q` in
  7313. *Sun\ C*) # Sun C 5.9
  7314. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7315. compiler_needs_object=yes
  7316. tmp_sharedflag='-G' ;;
  7317. *Sun\ F*) # Sun Fortran 8.3
  7318. tmp_sharedflag='-G' ;;
  7319. esac
  7320. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7321. if test "x$supports_anon_versioning" = xyes; then
  7322. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7323. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7324. echo "local: *; };" >> $output_objdir/$libname.ver~
  7325. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7326. fi
  7327. case $cc_basename in
  7328. xlf*)
  7329. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7330. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7331. hardcode_libdir_flag_spec=
  7332. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7333. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7334. if test "x$supports_anon_versioning" = xyes; then
  7335. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7336. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7337. echo "local: *; };" >> $output_objdir/$libname.ver~
  7338. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7339. fi
  7340. ;;
  7341. esac
  7342. else
  7343. ld_shlibs=no
  7344. fi
  7345. ;;
  7346. netbsd*)
  7347. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7348. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7349. wlarc=
  7350. else
  7351. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7352. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7353. fi
  7354. ;;
  7355. solaris*)
  7356. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7357. ld_shlibs=no
  7358. cat <<_LT_EOF 1>&2
  7359. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7360. *** create shared libraries on Solaris systems. Therefore, libtool
  7361. *** is disabling shared libraries support. We urge you to upgrade GNU
  7362. *** binutils to release 2.9.1 or newer. Another option is to modify
  7363. *** your PATH or compiler configuration so that the native linker is
  7364. *** used, and then restart.
  7365. _LT_EOF
  7366. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7367. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7368. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7369. else
  7370. ld_shlibs=no
  7371. fi
  7372. ;;
  7373. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7374. case `$LD -v 2>&1` in
  7375. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7376. ld_shlibs=no
  7377. cat <<_LT_EOF 1>&2
  7378. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7379. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7380. *** is disabling shared libraries support. We urge you to upgrade GNU
  7381. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7382. *** your PATH or compiler configuration so that the native linker is
  7383. *** used, and then restart.
  7384. _LT_EOF
  7385. ;;
  7386. *)
  7387. # For security reasons, it is highly recommended that you always
  7388. # use absolute paths for naming shared libraries, and exclude the
  7389. # DT_RUNPATH tag from executables and libraries. But doing so
  7390. # requires that you compile everything twice, which is a pain.
  7391. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7392. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7393. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7394. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7395. else
  7396. ld_shlibs=no
  7397. fi
  7398. ;;
  7399. esac
  7400. ;;
  7401. sunos4*)
  7402. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7403. wlarc=
  7404. hardcode_direct=yes
  7405. hardcode_shlibpath_var=no
  7406. ;;
  7407. *)
  7408. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7409. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7410. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7411. else
  7412. ld_shlibs=no
  7413. fi
  7414. ;;
  7415. esac
  7416. if test "$ld_shlibs" = no; then
  7417. runpath_var=
  7418. hardcode_libdir_flag_spec=
  7419. export_dynamic_flag_spec=
  7420. whole_archive_flag_spec=
  7421. fi
  7422. else
  7423. # PORTME fill in a description of your system's linker (not GNU ld)
  7424. case $host_os in
  7425. aix3*)
  7426. allow_undefined_flag=unsupported
  7427. always_export_symbols=yes
  7428. 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'
  7429. # Note: this linker hardcodes the directories in LIBPATH if there
  7430. # are no directories specified by -L.
  7431. hardcode_minus_L=yes
  7432. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7433. # Neither direct hardcoding nor static linking is supported with a
  7434. # broken collect2.
  7435. hardcode_direct=unsupported
  7436. fi
  7437. ;;
  7438. aix[4-9]*)
  7439. if test "$host_cpu" = ia64; then
  7440. # On IA64, the linker does run time linking by default, so we don't
  7441. # have to do anything special.
  7442. aix_use_runtimelinking=no
  7443. exp_sym_flag='-Bexport'
  7444. no_entry_flag=""
  7445. else
  7446. # If we're using GNU nm, then we don't want the "-C" option.
  7447. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7448. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7449. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7450. else
  7451. 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'
  7452. fi
  7453. aix_use_runtimelinking=no
  7454. # Test if we are trying to use run time linking or normal
  7455. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7456. # need to do runtime linking.
  7457. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7458. for ld_flag in $LDFLAGS; do
  7459. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7460. aix_use_runtimelinking=yes
  7461. break
  7462. fi
  7463. done
  7464. ;;
  7465. esac
  7466. exp_sym_flag='-bexport'
  7467. no_entry_flag='-bnoentry'
  7468. fi
  7469. # When large executables or shared objects are built, AIX ld can
  7470. # have problems creating the table of contents. If linking a library
  7471. # or program results in "error TOC overflow" add -mminimal-toc to
  7472. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7473. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7474. archive_cmds=''
  7475. hardcode_direct=yes
  7476. hardcode_direct_absolute=yes
  7477. hardcode_libdir_separator=':'
  7478. link_all_deplibs=yes
  7479. file_list_spec='${wl}-f,'
  7480. if test "$GCC" = yes; then
  7481. case $host_os in aix4.[012]|aix4.[012].*)
  7482. # We only want to do this on AIX 4.2 and lower, the check
  7483. # below for broken collect2 doesn't work under 4.3+
  7484. collect2name=`${CC} -print-prog-name=collect2`
  7485. if test -f "$collect2name" &&
  7486. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7487. then
  7488. # We have reworked collect2
  7489. :
  7490. else
  7491. # We have old collect2
  7492. hardcode_direct=unsupported
  7493. # It fails to find uninstalled libraries when the uninstalled
  7494. # path is not listed in the libpath. Setting hardcode_minus_L
  7495. # to unsupported forces relinking
  7496. hardcode_minus_L=yes
  7497. hardcode_libdir_flag_spec='-L$libdir'
  7498. hardcode_libdir_separator=
  7499. fi
  7500. ;;
  7501. esac
  7502. shared_flag='-shared'
  7503. if test "$aix_use_runtimelinking" = yes; then
  7504. shared_flag="$shared_flag "'${wl}-G'
  7505. fi
  7506. else
  7507. # not using gcc
  7508. if test "$host_cpu" = ia64; then
  7509. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7510. # chokes on -Wl,-G. The following line is correct:
  7511. shared_flag='-G'
  7512. else
  7513. if test "$aix_use_runtimelinking" = yes; then
  7514. shared_flag='${wl}-G'
  7515. else
  7516. shared_flag='${wl}-bM:SRE'
  7517. fi
  7518. fi
  7519. fi
  7520. export_dynamic_flag_spec='${wl}-bexpall'
  7521. # It seems that -bexpall does not export symbols beginning with
  7522. # underscore (_), so it is better to generate a list of symbols to export.
  7523. always_export_symbols=yes
  7524. if test "$aix_use_runtimelinking" = yes; then
  7525. # Warning - without using the other runtime loading flags (-brtl),
  7526. # -berok will link without error, but may produce a broken library.
  7527. allow_undefined_flag='-berok'
  7528. # Determine the default libpath from the value encoded in an
  7529. # empty executable.
  7530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7531. /* end confdefs.h. */
  7532. int
  7533. main ()
  7534. {
  7535. ;
  7536. return 0;
  7537. }
  7538. _ACEOF
  7539. if ac_fn_c_try_link "$LINENO"; then :
  7540. lt_aix_libpath_sed='
  7541. /Import File Strings/,/^$/ {
  7542. /^0/ {
  7543. s/^0 *\(.*\)$/\1/
  7544. p
  7545. }
  7546. }'
  7547. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7548. # Check for a 64-bit object if we didn't find anything.
  7549. if test -z "$aix_libpath"; then
  7550. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7551. fi
  7552. fi
  7553. rm -f core conftest.err conftest.$ac_objext \
  7554. conftest$ac_exeext conftest.$ac_ext
  7555. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7556. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7557. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7558. else
  7559. if test "$host_cpu" = ia64; then
  7560. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7561. allow_undefined_flag="-z nodefs"
  7562. 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"
  7563. else
  7564. # Determine the default libpath from the value encoded in an
  7565. # empty executable.
  7566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7567. /* end confdefs.h. */
  7568. int
  7569. main ()
  7570. {
  7571. ;
  7572. return 0;
  7573. }
  7574. _ACEOF
  7575. if ac_fn_c_try_link "$LINENO"; then :
  7576. lt_aix_libpath_sed='
  7577. /Import File Strings/,/^$/ {
  7578. /^0/ {
  7579. s/^0 *\(.*\)$/\1/
  7580. p
  7581. }
  7582. }'
  7583. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7584. # Check for a 64-bit object if we didn't find anything.
  7585. if test -z "$aix_libpath"; then
  7586. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7587. fi
  7588. fi
  7589. rm -f core conftest.err conftest.$ac_objext \
  7590. conftest$ac_exeext conftest.$ac_ext
  7591. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7592. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7593. # Warning - without using the other run time loading flags,
  7594. # -berok will link without error, but may produce a broken library.
  7595. no_undefined_flag=' ${wl}-bernotok'
  7596. allow_undefined_flag=' ${wl}-berok'
  7597. # Exported symbols can be pulled into shared objects from archives
  7598. whole_archive_flag_spec='$convenience'
  7599. archive_cmds_need_lc=yes
  7600. # This is similar to how AIX traditionally builds its shared libraries.
  7601. 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'
  7602. fi
  7603. fi
  7604. ;;
  7605. amigaos*)
  7606. case $host_cpu in
  7607. powerpc)
  7608. # see comment about AmigaOS4 .so support
  7609. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7610. archive_expsym_cmds=''
  7611. ;;
  7612. m68k)
  7613. 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)'
  7614. hardcode_libdir_flag_spec='-L$libdir'
  7615. hardcode_minus_L=yes
  7616. ;;
  7617. esac
  7618. ;;
  7619. bsdi[45]*)
  7620. export_dynamic_flag_spec=-rdynamic
  7621. ;;
  7622. cygwin* | mingw* | pw32* | cegcc*)
  7623. # When not using gcc, we currently assume that we are using
  7624. # Microsoft Visual C++.
  7625. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7626. # no search path for DLLs.
  7627. hardcode_libdir_flag_spec=' '
  7628. allow_undefined_flag=unsupported
  7629. # Tell ltmain to make .lib files, not .a files.
  7630. libext=lib
  7631. # Tell ltmain to make .dll files, not .so files.
  7632. shrext_cmds=".dll"
  7633. # FIXME: Setting linknames here is a bad hack.
  7634. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7635. # The linker will automatically build a .lib file if we build a DLL.
  7636. old_archive_from_new_cmds='true'
  7637. # FIXME: Should let the user specify the lib program.
  7638. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7639. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7640. enable_shared_with_static_runtimes=yes
  7641. ;;
  7642. darwin* | rhapsody*)
  7643. archive_cmds_need_lc=no
  7644. hardcode_direct=no
  7645. hardcode_automatic=yes
  7646. hardcode_shlibpath_var=unsupported
  7647. whole_archive_flag_spec=''
  7648. link_all_deplibs=yes
  7649. allow_undefined_flag="$_lt_dar_allow_undefined"
  7650. case $cc_basename in
  7651. ifort*) _lt_dar_can_shared=yes ;;
  7652. *) _lt_dar_can_shared=$GCC ;;
  7653. esac
  7654. if test "$_lt_dar_can_shared" = "yes"; then
  7655. output_verbose_link_cmd=echo
  7656. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7657. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7658. 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}"
  7659. 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}"
  7660. else
  7661. ld_shlibs=no
  7662. fi
  7663. ;;
  7664. dgux*)
  7665. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7666. hardcode_libdir_flag_spec='-L$libdir'
  7667. hardcode_shlibpath_var=no
  7668. ;;
  7669. freebsd1*)
  7670. ld_shlibs=no
  7671. ;;
  7672. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7673. # support. Future versions do this automatically, but an explicit c++rt0.o
  7674. # does not break anything, and helps significantly (at the cost of a little
  7675. # extra space).
  7676. freebsd2.2*)
  7677. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7678. hardcode_libdir_flag_spec='-R$libdir'
  7679. hardcode_direct=yes
  7680. hardcode_shlibpath_var=no
  7681. ;;
  7682. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7683. freebsd2*)
  7684. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7685. hardcode_direct=yes
  7686. hardcode_minus_L=yes
  7687. hardcode_shlibpath_var=no
  7688. ;;
  7689. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7690. freebsd* | dragonfly*)
  7691. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7692. hardcode_libdir_flag_spec='-R$libdir'
  7693. hardcode_direct=yes
  7694. hardcode_shlibpath_var=no
  7695. ;;
  7696. hpux9*)
  7697. if test "$GCC" = yes; then
  7698. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7699. else
  7700. 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'
  7701. fi
  7702. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7703. hardcode_libdir_separator=:
  7704. hardcode_direct=yes
  7705. # hardcode_minus_L: Not really in the search PATH,
  7706. # but as the default location of the library.
  7707. hardcode_minus_L=yes
  7708. export_dynamic_flag_spec='${wl}-E'
  7709. ;;
  7710. hpux10*)
  7711. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7712. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7713. else
  7714. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7715. fi
  7716. if test "$with_gnu_ld" = no; then
  7717. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7718. hardcode_libdir_flag_spec_ld='+b $libdir'
  7719. hardcode_libdir_separator=:
  7720. hardcode_direct=yes
  7721. hardcode_direct_absolute=yes
  7722. export_dynamic_flag_spec='${wl}-E'
  7723. # hardcode_minus_L: Not really in the search PATH,
  7724. # but as the default location of the library.
  7725. hardcode_minus_L=yes
  7726. fi
  7727. ;;
  7728. hpux11*)
  7729. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7730. case $host_cpu in
  7731. hppa*64*)
  7732. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7733. ;;
  7734. ia64*)
  7735. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7736. ;;
  7737. *)
  7738. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7739. ;;
  7740. esac
  7741. else
  7742. case $host_cpu in
  7743. hppa*64*)
  7744. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7745. ;;
  7746. ia64*)
  7747. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7748. ;;
  7749. *)
  7750. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7751. ;;
  7752. esac
  7753. fi
  7754. if test "$with_gnu_ld" = no; then
  7755. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7756. hardcode_libdir_separator=:
  7757. case $host_cpu in
  7758. hppa*64*|ia64*)
  7759. hardcode_direct=no
  7760. hardcode_shlibpath_var=no
  7761. ;;
  7762. *)
  7763. hardcode_direct=yes
  7764. hardcode_direct_absolute=yes
  7765. export_dynamic_flag_spec='${wl}-E'
  7766. # hardcode_minus_L: Not really in the search PATH,
  7767. # but as the default location of the library.
  7768. hardcode_minus_L=yes
  7769. ;;
  7770. esac
  7771. fi
  7772. ;;
  7773. irix5* | irix6* | nonstopux*)
  7774. if test "$GCC" = yes; then
  7775. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7776. # Try to use the -exported_symbol ld option, if it does not
  7777. # work, assume that -exports_file does not work either and
  7778. # implicitly export all symbols.
  7779. save_LDFLAGS="$LDFLAGS"
  7780. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7782. /* end confdefs.h. */
  7783. int foo (void) { return 0; }
  7784. _ACEOF
  7785. if ac_fn_c_try_link "$LINENO"; then :
  7786. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7787. fi
  7788. rm -f core conftest.err conftest.$ac_objext \
  7789. conftest$ac_exeext conftest.$ac_ext
  7790. LDFLAGS="$save_LDFLAGS"
  7791. else
  7792. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7793. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7794. fi
  7795. archive_cmds_need_lc='no'
  7796. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7797. hardcode_libdir_separator=:
  7798. inherit_rpath=yes
  7799. link_all_deplibs=yes
  7800. ;;
  7801. netbsd*)
  7802. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7803. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7804. else
  7805. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7806. fi
  7807. hardcode_libdir_flag_spec='-R$libdir'
  7808. hardcode_direct=yes
  7809. hardcode_shlibpath_var=no
  7810. ;;
  7811. newsos6)
  7812. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7813. hardcode_direct=yes
  7814. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7815. hardcode_libdir_separator=:
  7816. hardcode_shlibpath_var=no
  7817. ;;
  7818. *nto* | *qnx*)
  7819. ;;
  7820. openbsd*)
  7821. if test -f /usr/libexec/ld.so; then
  7822. hardcode_direct=yes
  7823. hardcode_shlibpath_var=no
  7824. hardcode_direct_absolute=yes
  7825. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7826. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7827. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7828. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7829. export_dynamic_flag_spec='${wl}-E'
  7830. else
  7831. case $host_os in
  7832. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7833. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7834. hardcode_libdir_flag_spec='-R$libdir'
  7835. ;;
  7836. *)
  7837. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7838. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7839. ;;
  7840. esac
  7841. fi
  7842. else
  7843. ld_shlibs=no
  7844. fi
  7845. ;;
  7846. os2*)
  7847. hardcode_libdir_flag_spec='-L$libdir'
  7848. hardcode_minus_L=yes
  7849. allow_undefined_flag=unsupported
  7850. 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'
  7851. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7852. ;;
  7853. osf3*)
  7854. if test "$GCC" = yes; then
  7855. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7856. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7857. else
  7858. allow_undefined_flag=' -expect_unresolved \*'
  7859. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7860. fi
  7861. archive_cmds_need_lc='no'
  7862. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7863. hardcode_libdir_separator=:
  7864. ;;
  7865. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7866. if test "$GCC" = yes; then
  7867. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7868. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7869. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7870. else
  7871. allow_undefined_flag=' -expect_unresolved \*'
  7872. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7873. 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~
  7874. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7875. # Both c and cxx compiler support -rpath directly
  7876. hardcode_libdir_flag_spec='-rpath $libdir'
  7877. fi
  7878. archive_cmds_need_lc='no'
  7879. hardcode_libdir_separator=:
  7880. ;;
  7881. solaris*)
  7882. no_undefined_flag=' -z defs'
  7883. if test "$GCC" = yes; then
  7884. wlarc='${wl}'
  7885. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7886. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7887. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7888. else
  7889. case `$CC -V 2>&1` in
  7890. *"Compilers 5.0"*)
  7891. wlarc=''
  7892. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7893. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7894. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7895. ;;
  7896. *)
  7897. wlarc='${wl}'
  7898. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7899. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7900. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7901. ;;
  7902. esac
  7903. fi
  7904. hardcode_libdir_flag_spec='-R$libdir'
  7905. hardcode_shlibpath_var=no
  7906. case $host_os in
  7907. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7908. *)
  7909. # The compiler driver will combine and reorder linker options,
  7910. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7911. # but is careful enough not to reorder.
  7912. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7913. if test "$GCC" = yes; then
  7914. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7915. else
  7916. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7917. fi
  7918. ;;
  7919. esac
  7920. link_all_deplibs=yes
  7921. ;;
  7922. sunos4*)
  7923. if test "x$host_vendor" = xsequent; then
  7924. # Use $CC to link under sequent, because it throws in some extra .o
  7925. # files that make .init and .fini sections work.
  7926. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7927. else
  7928. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7929. fi
  7930. hardcode_libdir_flag_spec='-L$libdir'
  7931. hardcode_direct=yes
  7932. hardcode_minus_L=yes
  7933. hardcode_shlibpath_var=no
  7934. ;;
  7935. sysv4)
  7936. case $host_vendor in
  7937. sni)
  7938. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7939. hardcode_direct=yes # is this really true???
  7940. ;;
  7941. siemens)
  7942. ## LD is ld it makes a PLAMLIB
  7943. ## CC just makes a GrossModule.
  7944. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7945. reload_cmds='$CC -r -o $output$reload_objs'
  7946. hardcode_direct=no
  7947. ;;
  7948. motorola)
  7949. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7950. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7951. ;;
  7952. esac
  7953. runpath_var='LD_RUN_PATH'
  7954. hardcode_shlibpath_var=no
  7955. ;;
  7956. sysv4.3*)
  7957. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7958. hardcode_shlibpath_var=no
  7959. export_dynamic_flag_spec='-Bexport'
  7960. ;;
  7961. sysv4*MP*)
  7962. if test -d /usr/nec; then
  7963. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7964. hardcode_shlibpath_var=no
  7965. runpath_var=LD_RUN_PATH
  7966. hardcode_runpath_var=yes
  7967. ld_shlibs=yes
  7968. fi
  7969. ;;
  7970. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7971. no_undefined_flag='${wl}-z,text'
  7972. archive_cmds_need_lc=no
  7973. hardcode_shlibpath_var=no
  7974. runpath_var='LD_RUN_PATH'
  7975. if test "$GCC" = yes; then
  7976. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7977. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7978. else
  7979. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7980. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7981. fi
  7982. ;;
  7983. sysv5* | sco3.2v5* | sco5v6*)
  7984. # Note: We can NOT use -z defs as we might desire, because we do not
  7985. # link with -lc, and that would cause any symbols used from libc to
  7986. # always be unresolved, which means just about no library would
  7987. # ever link correctly. If we're not using GNU ld we use -z text
  7988. # though, which does catch some bad symbols but isn't as heavy-handed
  7989. # as -z defs.
  7990. no_undefined_flag='${wl}-z,text'
  7991. allow_undefined_flag='${wl}-z,nodefs'
  7992. archive_cmds_need_lc=no
  7993. hardcode_shlibpath_var=no
  7994. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7995. hardcode_libdir_separator=':'
  7996. link_all_deplibs=yes
  7997. export_dynamic_flag_spec='${wl}-Bexport'
  7998. runpath_var='LD_RUN_PATH'
  7999. if test "$GCC" = yes; then
  8000. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8001. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8002. else
  8003. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8004. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8005. fi
  8006. ;;
  8007. uts4*)
  8008. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8009. hardcode_libdir_flag_spec='-L$libdir'
  8010. hardcode_shlibpath_var=no
  8011. ;;
  8012. *)
  8013. ld_shlibs=no
  8014. ;;
  8015. esac
  8016. if test x$host_vendor = xsni; then
  8017. case $host in
  8018. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8019. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8020. ;;
  8021. esac
  8022. fi
  8023. fi
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8025. $as_echo "$ld_shlibs" >&6; }
  8026. test "$ld_shlibs" = no && can_build_shared=no
  8027. with_gnu_ld=$with_gnu_ld
  8028. #
  8029. # Do we need to explicitly link libc?
  8030. #
  8031. case "x$archive_cmds_need_lc" in
  8032. x|xyes)
  8033. # Assume -lc should be added
  8034. archive_cmds_need_lc=yes
  8035. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8036. case $archive_cmds in
  8037. *'~'*)
  8038. # FIXME: we may have to deal with multi-command sequences.
  8039. ;;
  8040. '$CC '*)
  8041. # Test whether the compiler implicitly links with -lc since on some
  8042. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8043. # to ld, don't add -lc before -lgcc.
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8045. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8046. $RM conftest*
  8047. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8048. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8049. (eval $ac_compile) 2>&5
  8050. ac_status=$?
  8051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8052. test $ac_status = 0; } 2>conftest.err; then
  8053. soname=conftest
  8054. lib=conftest
  8055. libobjs=conftest.$ac_objext
  8056. deplibs=
  8057. wl=$lt_prog_compiler_wl
  8058. pic_flag=$lt_prog_compiler_pic
  8059. compiler_flags=-v
  8060. linker_flags=-v
  8061. verstring=
  8062. output_objdir=.
  8063. libname=conftest
  8064. lt_save_allow_undefined_flag=$allow_undefined_flag
  8065. allow_undefined_flag=
  8066. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8067. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8068. ac_status=$?
  8069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8070. test $ac_status = 0; }
  8071. then
  8072. archive_cmds_need_lc=no
  8073. else
  8074. archive_cmds_need_lc=yes
  8075. fi
  8076. allow_undefined_flag=$lt_save_allow_undefined_flag
  8077. else
  8078. cat conftest.err 1>&5
  8079. fi
  8080. $RM conftest*
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8082. $as_echo "$archive_cmds_need_lc" >&6; }
  8083. ;;
  8084. esac
  8085. fi
  8086. ;;
  8087. esac
  8088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8089. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8090. if test "$GCC" = yes; then
  8091. case $host_os in
  8092. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8093. *) lt_awk_arg="/^libraries:/" ;;
  8094. esac
  8095. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8096. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8097. # if the path contains ";" then we assume it to be the separator
  8098. # otherwise default to the standard path separator (i.e. ":") - it is
  8099. # assumed that no part of a normal pathname contains ";" but that should
  8100. # okay in the real world where ";" in dirpaths is itself problematic.
  8101. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8102. else
  8103. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8104. fi
  8105. # Ok, now we have the path, separated by spaces, we can step through it
  8106. # and add multilib dir if necessary.
  8107. lt_tmp_lt_search_path_spec=
  8108. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8109. for lt_sys_path in $lt_search_path_spec; do
  8110. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8111. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8112. else
  8113. test -d "$lt_sys_path" && \
  8114. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8115. fi
  8116. done
  8117. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8118. BEGIN {RS=" "; FS="/|\n";} {
  8119. lt_foo="";
  8120. lt_count=0;
  8121. for (lt_i = NF; lt_i > 0; lt_i--) {
  8122. if ($lt_i != "" && $lt_i != ".") {
  8123. if ($lt_i == "..") {
  8124. lt_count++;
  8125. } else {
  8126. if (lt_count == 0) {
  8127. lt_foo="/" $lt_i lt_foo;
  8128. } else {
  8129. lt_count--;
  8130. }
  8131. }
  8132. }
  8133. }
  8134. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8135. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8136. }'`
  8137. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8138. else
  8139. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8140. fi
  8141. library_names_spec=
  8142. libname_spec='lib$name'
  8143. soname_spec=
  8144. shrext_cmds=".so"
  8145. postinstall_cmds=
  8146. postuninstall_cmds=
  8147. finish_cmds=
  8148. finish_eval=
  8149. shlibpath_var=
  8150. shlibpath_overrides_runpath=unknown
  8151. version_type=none
  8152. dynamic_linker="$host_os ld.so"
  8153. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8154. need_lib_prefix=unknown
  8155. hardcode_into_libs=no
  8156. # when you set need_version to no, make sure it does not cause -set_version
  8157. # flags to be left without arguments
  8158. need_version=unknown
  8159. case $host_os in
  8160. aix3*)
  8161. version_type=linux
  8162. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8163. shlibpath_var=LIBPATH
  8164. # AIX 3 has no versioning support, so we append a major version to the name.
  8165. soname_spec='${libname}${release}${shared_ext}$major'
  8166. ;;
  8167. aix[4-9]*)
  8168. version_type=linux
  8169. need_lib_prefix=no
  8170. need_version=no
  8171. hardcode_into_libs=yes
  8172. if test "$host_cpu" = ia64; then
  8173. # AIX 5 supports IA64
  8174. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8175. shlibpath_var=LD_LIBRARY_PATH
  8176. else
  8177. # With GCC up to 2.95.x, collect2 would create an import file
  8178. # for dependence libraries. The import file would start with
  8179. # the line `#! .'. This would cause the generated library to
  8180. # depend on `.', always an invalid library. This was fixed in
  8181. # development snapshots of GCC prior to 3.0.
  8182. case $host_os in
  8183. aix4 | aix4.[01] | aix4.[01].*)
  8184. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8185. echo ' yes '
  8186. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8187. :
  8188. else
  8189. can_build_shared=no
  8190. fi
  8191. ;;
  8192. esac
  8193. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8194. # soname into executable. Probably we can add versioning support to
  8195. # collect2, so additional links can be useful in future.
  8196. if test "$aix_use_runtimelinking" = yes; then
  8197. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8198. # instead of lib<name>.a to let people know that these are not
  8199. # typical AIX shared libraries.
  8200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8201. else
  8202. # We preserve .a as extension for shared libraries through AIX4.2
  8203. # and later when we are not doing run time linking.
  8204. library_names_spec='${libname}${release}.a $libname.a'
  8205. soname_spec='${libname}${release}${shared_ext}$major'
  8206. fi
  8207. shlibpath_var=LIBPATH
  8208. fi
  8209. ;;
  8210. amigaos*)
  8211. case $host_cpu in
  8212. powerpc)
  8213. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8214. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8216. ;;
  8217. m68k)
  8218. library_names_spec='$libname.ixlibrary $libname.a'
  8219. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8220. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8221. ;;
  8222. esac
  8223. ;;
  8224. beos*)
  8225. library_names_spec='${libname}${shared_ext}'
  8226. dynamic_linker="$host_os ld.so"
  8227. shlibpath_var=LIBRARY_PATH
  8228. ;;
  8229. bsdi[45]*)
  8230. version_type=linux
  8231. need_version=no
  8232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8233. soname_spec='${libname}${release}${shared_ext}$major'
  8234. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8235. shlibpath_var=LD_LIBRARY_PATH
  8236. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8237. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8238. # the default ld.so.conf also contains /usr/contrib/lib and
  8239. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8240. # libtool to hard-code these into programs
  8241. ;;
  8242. cygwin* | mingw* | pw32* | cegcc*)
  8243. version_type=windows
  8244. shrext_cmds=".dll"
  8245. need_version=no
  8246. need_lib_prefix=no
  8247. case $GCC,$host_os in
  8248. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8249. library_names_spec='$libname.dll.a'
  8250. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8251. postinstall_cmds='base_file=`basename \${file}`~
  8252. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8253. dldir=$destdir/`dirname \$dlpath`~
  8254. test -d \$dldir || mkdir -p \$dldir~
  8255. $install_prog $dir/$dlname \$dldir/$dlname~
  8256. chmod a+x \$dldir/$dlname~
  8257. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8258. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8259. fi'
  8260. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8261. dlpath=$dir/\$dldll~
  8262. $RM \$dlpath'
  8263. shlibpath_overrides_runpath=yes
  8264. case $host_os in
  8265. cygwin*)
  8266. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8267. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8268. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8269. ;;
  8270. mingw* | cegcc*)
  8271. # MinGW DLLs use traditional 'lib' prefix
  8272. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8273. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8274. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8275. # It is most probably a Windows format PATH printed by
  8276. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8277. # path with ; separators, and with drive letters. We can handle the
  8278. # drive letters (cygwin fileutils understands them), so leave them,
  8279. # especially as we might pass files found there to a mingw objdump,
  8280. # which wouldn't understand a cygwinified path. Ahh.
  8281. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8282. else
  8283. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8284. fi
  8285. ;;
  8286. pw32*)
  8287. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8288. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8289. ;;
  8290. esac
  8291. ;;
  8292. *)
  8293. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8294. ;;
  8295. esac
  8296. dynamic_linker='Win32 ld.exe'
  8297. # FIXME: first we should search . and the directory the executable is in
  8298. shlibpath_var=PATH
  8299. ;;
  8300. darwin* | rhapsody*)
  8301. dynamic_linker="$host_os dyld"
  8302. version_type=darwin
  8303. need_lib_prefix=no
  8304. need_version=no
  8305. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8306. soname_spec='${libname}${release}${major}$shared_ext'
  8307. shlibpath_overrides_runpath=yes
  8308. shlibpath_var=DYLD_LIBRARY_PATH
  8309. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8310. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8311. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8312. ;;
  8313. dgux*)
  8314. version_type=linux
  8315. need_lib_prefix=no
  8316. need_version=no
  8317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8318. soname_spec='${libname}${release}${shared_ext}$major'
  8319. shlibpath_var=LD_LIBRARY_PATH
  8320. ;;
  8321. freebsd1*)
  8322. dynamic_linker=no
  8323. ;;
  8324. freebsd* | dragonfly*)
  8325. # DragonFly does not have aout. When/if they implement a new
  8326. # versioning mechanism, adjust this.
  8327. if test -x /usr/bin/objformat; then
  8328. objformat=`/usr/bin/objformat`
  8329. else
  8330. case $host_os in
  8331. freebsd[123]*) objformat=aout ;;
  8332. *) objformat=elf ;;
  8333. esac
  8334. fi
  8335. version_type=freebsd-$objformat
  8336. case $version_type in
  8337. freebsd-elf*)
  8338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8339. need_version=no
  8340. need_lib_prefix=no
  8341. ;;
  8342. freebsd-*)
  8343. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8344. need_version=yes
  8345. ;;
  8346. esac
  8347. shlibpath_var=LD_LIBRARY_PATH
  8348. case $host_os in
  8349. freebsd2*)
  8350. shlibpath_overrides_runpath=yes
  8351. ;;
  8352. freebsd3.[01]* | freebsdelf3.[01]*)
  8353. shlibpath_overrides_runpath=yes
  8354. hardcode_into_libs=yes
  8355. ;;
  8356. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8357. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8358. shlibpath_overrides_runpath=no
  8359. hardcode_into_libs=yes
  8360. ;;
  8361. *) # from 4.6 on, and DragonFly
  8362. shlibpath_overrides_runpath=yes
  8363. hardcode_into_libs=yes
  8364. ;;
  8365. esac
  8366. ;;
  8367. gnu*)
  8368. version_type=linux
  8369. need_lib_prefix=no
  8370. need_version=no
  8371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8372. soname_spec='${libname}${release}${shared_ext}$major'
  8373. shlibpath_var=LD_LIBRARY_PATH
  8374. hardcode_into_libs=yes
  8375. ;;
  8376. hpux9* | hpux10* | hpux11*)
  8377. # Give a soname corresponding to the major version so that dld.sl refuses to
  8378. # link against other versions.
  8379. version_type=sunos
  8380. need_lib_prefix=no
  8381. need_version=no
  8382. case $host_cpu in
  8383. ia64*)
  8384. shrext_cmds='.so'
  8385. hardcode_into_libs=yes
  8386. dynamic_linker="$host_os dld.so"
  8387. shlibpath_var=LD_LIBRARY_PATH
  8388. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8390. soname_spec='${libname}${release}${shared_ext}$major'
  8391. if test "X$HPUX_IA64_MODE" = X32; then
  8392. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8393. else
  8394. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8395. fi
  8396. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8397. ;;
  8398. hppa*64*)
  8399. shrext_cmds='.sl'
  8400. hardcode_into_libs=yes
  8401. dynamic_linker="$host_os dld.sl"
  8402. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8403. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8405. soname_spec='${libname}${release}${shared_ext}$major'
  8406. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8407. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8408. ;;
  8409. *)
  8410. shrext_cmds='.sl'
  8411. dynamic_linker="$host_os dld.sl"
  8412. shlibpath_var=SHLIB_PATH
  8413. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8415. soname_spec='${libname}${release}${shared_ext}$major'
  8416. ;;
  8417. esac
  8418. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8419. postinstall_cmds='chmod 555 $lib'
  8420. ;;
  8421. interix[3-9]*)
  8422. version_type=linux
  8423. need_lib_prefix=no
  8424. need_version=no
  8425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8426. soname_spec='${libname}${release}${shared_ext}$major'
  8427. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8428. shlibpath_var=LD_LIBRARY_PATH
  8429. shlibpath_overrides_runpath=no
  8430. hardcode_into_libs=yes
  8431. ;;
  8432. irix5* | irix6* | nonstopux*)
  8433. case $host_os in
  8434. nonstopux*) version_type=nonstopux ;;
  8435. *)
  8436. if test "$lt_cv_prog_gnu_ld" = yes; then
  8437. version_type=linux
  8438. else
  8439. version_type=irix
  8440. fi ;;
  8441. esac
  8442. need_lib_prefix=no
  8443. need_version=no
  8444. soname_spec='${libname}${release}${shared_ext}$major'
  8445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8446. case $host_os in
  8447. irix5* | nonstopux*)
  8448. libsuff= shlibsuff=
  8449. ;;
  8450. *)
  8451. case $LD in # libtool.m4 will add one of these switches to LD
  8452. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8453. libsuff= shlibsuff= libmagic=32-bit;;
  8454. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8455. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8456. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8457. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8458. *) libsuff= shlibsuff= libmagic=never-match;;
  8459. esac
  8460. ;;
  8461. esac
  8462. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8463. shlibpath_overrides_runpath=no
  8464. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8465. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8466. hardcode_into_libs=yes
  8467. ;;
  8468. # No shared lib support for Linux oldld, aout, or coff.
  8469. linux*oldld* | linux*aout* | linux*coff*)
  8470. dynamic_linker=no
  8471. ;;
  8472. # This must be Linux ELF.
  8473. linux* | k*bsd*-gnu)
  8474. version_type=linux
  8475. need_lib_prefix=no
  8476. need_version=no
  8477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8478. soname_spec='${libname}${release}${shared_ext}$major'
  8479. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8480. shlibpath_var=LD_LIBRARY_PATH
  8481. shlibpath_overrides_runpath=no
  8482. # Some binutils ld are patched to set DT_RUNPATH
  8483. save_LDFLAGS=$LDFLAGS
  8484. save_libdir=$libdir
  8485. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8486. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8488. /* end confdefs.h. */
  8489. int
  8490. main ()
  8491. {
  8492. ;
  8493. return 0;
  8494. }
  8495. _ACEOF
  8496. if ac_fn_c_try_link "$LINENO"; then :
  8497. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8498. shlibpath_overrides_runpath=yes
  8499. fi
  8500. fi
  8501. rm -f core conftest.err conftest.$ac_objext \
  8502. conftest$ac_exeext conftest.$ac_ext
  8503. LDFLAGS=$save_LDFLAGS
  8504. libdir=$save_libdir
  8505. # This implies no fast_install, which is unacceptable.
  8506. # Some rework will be needed to allow for fast_install
  8507. # before this can be enabled.
  8508. hardcode_into_libs=yes
  8509. # Append ld.so.conf contents to the search path
  8510. if test -f /etc/ld.so.conf; then
  8511. 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;/^$/d' | tr '\n' ' '`
  8512. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8513. fi
  8514. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8515. # powerpc, because MkLinux only supported shared libraries with the
  8516. # GNU dynamic linker. Since this was broken with cross compilers,
  8517. # most powerpc-linux boxes support dynamic linking these days and
  8518. # people can always --disable-shared, the test was removed, and we
  8519. # assume the GNU/Linux dynamic linker is in use.
  8520. dynamic_linker='GNU/Linux ld.so'
  8521. ;;
  8522. netbsd*)
  8523. version_type=sunos
  8524. need_lib_prefix=no
  8525. need_version=no
  8526. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8528. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8529. dynamic_linker='NetBSD (a.out) ld.so'
  8530. else
  8531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8532. soname_spec='${libname}${release}${shared_ext}$major'
  8533. dynamic_linker='NetBSD ld.elf_so'
  8534. fi
  8535. shlibpath_var=LD_LIBRARY_PATH
  8536. shlibpath_overrides_runpath=yes
  8537. hardcode_into_libs=yes
  8538. ;;
  8539. newsos6)
  8540. version_type=linux
  8541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8542. shlibpath_var=LD_LIBRARY_PATH
  8543. shlibpath_overrides_runpath=yes
  8544. ;;
  8545. *nto* | *qnx*)
  8546. version_type=qnx
  8547. need_lib_prefix=no
  8548. need_version=no
  8549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8550. soname_spec='${libname}${release}${shared_ext}$major'
  8551. shlibpath_var=LD_LIBRARY_PATH
  8552. shlibpath_overrides_runpath=no
  8553. hardcode_into_libs=yes
  8554. dynamic_linker='ldqnx.so'
  8555. ;;
  8556. openbsd*)
  8557. version_type=sunos
  8558. sys_lib_dlsearch_path_spec="/usr/lib"
  8559. need_lib_prefix=no
  8560. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8561. case $host_os in
  8562. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8563. *) need_version=no ;;
  8564. esac
  8565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8566. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8567. shlibpath_var=LD_LIBRARY_PATH
  8568. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8569. case $host_os in
  8570. openbsd2.[89] | openbsd2.[89].*)
  8571. shlibpath_overrides_runpath=no
  8572. ;;
  8573. *)
  8574. shlibpath_overrides_runpath=yes
  8575. ;;
  8576. esac
  8577. else
  8578. shlibpath_overrides_runpath=yes
  8579. fi
  8580. ;;
  8581. os2*)
  8582. libname_spec='$name'
  8583. shrext_cmds=".dll"
  8584. need_lib_prefix=no
  8585. library_names_spec='$libname${shared_ext} $libname.a'
  8586. dynamic_linker='OS/2 ld.exe'
  8587. shlibpath_var=LIBPATH
  8588. ;;
  8589. osf3* | osf4* | osf5*)
  8590. version_type=osf
  8591. need_lib_prefix=no
  8592. need_version=no
  8593. soname_spec='${libname}${release}${shared_ext}$major'
  8594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8595. shlibpath_var=LD_LIBRARY_PATH
  8596. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8597. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8598. ;;
  8599. rdos*)
  8600. dynamic_linker=no
  8601. ;;
  8602. solaris*)
  8603. version_type=linux
  8604. need_lib_prefix=no
  8605. need_version=no
  8606. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8607. soname_spec='${libname}${release}${shared_ext}$major'
  8608. shlibpath_var=LD_LIBRARY_PATH
  8609. shlibpath_overrides_runpath=yes
  8610. hardcode_into_libs=yes
  8611. # ldd complains unless libraries are executable
  8612. postinstall_cmds='chmod +x $lib'
  8613. ;;
  8614. sunos4*)
  8615. version_type=sunos
  8616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8617. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8618. shlibpath_var=LD_LIBRARY_PATH
  8619. shlibpath_overrides_runpath=yes
  8620. if test "$with_gnu_ld" = yes; then
  8621. need_lib_prefix=no
  8622. fi
  8623. need_version=yes
  8624. ;;
  8625. sysv4 | sysv4.3*)
  8626. version_type=linux
  8627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8628. soname_spec='${libname}${release}${shared_ext}$major'
  8629. shlibpath_var=LD_LIBRARY_PATH
  8630. case $host_vendor in
  8631. sni)
  8632. shlibpath_overrides_runpath=no
  8633. need_lib_prefix=no
  8634. runpath_var=LD_RUN_PATH
  8635. ;;
  8636. siemens)
  8637. need_lib_prefix=no
  8638. ;;
  8639. motorola)
  8640. need_lib_prefix=no
  8641. need_version=no
  8642. shlibpath_overrides_runpath=no
  8643. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8644. ;;
  8645. esac
  8646. ;;
  8647. sysv4*MP*)
  8648. if test -d /usr/nec ;then
  8649. version_type=linux
  8650. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8651. soname_spec='$libname${shared_ext}.$major'
  8652. shlibpath_var=LD_LIBRARY_PATH
  8653. fi
  8654. ;;
  8655. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8656. version_type=freebsd-elf
  8657. need_lib_prefix=no
  8658. need_version=no
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8660. soname_spec='${libname}${release}${shared_ext}$major'
  8661. shlibpath_var=LD_LIBRARY_PATH
  8662. shlibpath_overrides_runpath=yes
  8663. hardcode_into_libs=yes
  8664. if test "$with_gnu_ld" = yes; then
  8665. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8666. else
  8667. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8668. case $host_os in
  8669. sco3.2v5*)
  8670. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8671. ;;
  8672. esac
  8673. fi
  8674. sys_lib_dlsearch_path_spec='/usr/lib'
  8675. ;;
  8676. tpf*)
  8677. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8678. version_type=linux
  8679. need_lib_prefix=no
  8680. need_version=no
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8682. shlibpath_var=LD_LIBRARY_PATH
  8683. shlibpath_overrides_runpath=no
  8684. hardcode_into_libs=yes
  8685. ;;
  8686. uts4*)
  8687. version_type=linux
  8688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8689. soname_spec='${libname}${release}${shared_ext}$major'
  8690. shlibpath_var=LD_LIBRARY_PATH
  8691. ;;
  8692. *)
  8693. dynamic_linker=no
  8694. ;;
  8695. esac
  8696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8697. $as_echo "$dynamic_linker" >&6; }
  8698. test "$dynamic_linker" = no && can_build_shared=no
  8699. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8700. if test "$GCC" = yes; then
  8701. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8702. fi
  8703. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8704. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8705. fi
  8706. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8707. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8708. fi
  8709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8710. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8711. hardcode_action=
  8712. if test -n "$hardcode_libdir_flag_spec" ||
  8713. test -n "$runpath_var" ||
  8714. test "X$hardcode_automatic" = "Xyes" ; then
  8715. # We can hardcode non-existent directories.
  8716. if test "$hardcode_direct" != no &&
  8717. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8718. # have to relink, otherwise we might link with an installed library
  8719. # when we should be linking with a yet-to-be-installed one
  8720. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8721. test "$hardcode_minus_L" != no; then
  8722. # Linking always hardcodes the temporary library directory.
  8723. hardcode_action=relink
  8724. else
  8725. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8726. hardcode_action=immediate
  8727. fi
  8728. else
  8729. # We cannot hardcode anything, or else we can only hardcode existing
  8730. # directories.
  8731. hardcode_action=unsupported
  8732. fi
  8733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8734. $as_echo "$hardcode_action" >&6; }
  8735. if test "$hardcode_action" = relink ||
  8736. test "$inherit_rpath" = yes; then
  8737. # Fast installation is not supported
  8738. enable_fast_install=no
  8739. elif test "$shlibpath_overrides_runpath" = yes ||
  8740. test "$enable_shared" = no; then
  8741. # Fast installation is not necessary
  8742. enable_fast_install=needless
  8743. fi
  8744. if test "x$enable_dlopen" != xyes; then
  8745. enable_dlopen=unknown
  8746. enable_dlopen_self=unknown
  8747. enable_dlopen_self_static=unknown
  8748. else
  8749. lt_cv_dlopen=no
  8750. lt_cv_dlopen_libs=
  8751. case $host_os in
  8752. beos*)
  8753. lt_cv_dlopen="load_add_on"
  8754. lt_cv_dlopen_libs=
  8755. lt_cv_dlopen_self=yes
  8756. ;;
  8757. mingw* | pw32* | cegcc*)
  8758. lt_cv_dlopen="LoadLibrary"
  8759. lt_cv_dlopen_libs=
  8760. ;;
  8761. cygwin*)
  8762. lt_cv_dlopen="dlopen"
  8763. lt_cv_dlopen_libs=
  8764. ;;
  8765. darwin*)
  8766. # if libdl is installed we need to link against it
  8767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8768. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8769. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8770. $as_echo_n "(cached) " >&6
  8771. else
  8772. ac_check_lib_save_LIBS=$LIBS
  8773. LIBS="-ldl $LIBS"
  8774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8775. /* end confdefs.h. */
  8776. /* Override any GCC internal prototype to avoid an error.
  8777. Use char because int might match the return type of a GCC
  8778. builtin and then its argument prototype would still apply. */
  8779. #ifdef __cplusplus
  8780. extern "C"
  8781. #endif
  8782. char dlopen ();
  8783. int
  8784. main ()
  8785. {
  8786. return dlopen ();
  8787. ;
  8788. return 0;
  8789. }
  8790. _ACEOF
  8791. if ac_fn_c_try_link "$LINENO"; then :
  8792. ac_cv_lib_dl_dlopen=yes
  8793. else
  8794. ac_cv_lib_dl_dlopen=no
  8795. fi
  8796. rm -f core conftest.err conftest.$ac_objext \
  8797. conftest$ac_exeext conftest.$ac_ext
  8798. LIBS=$ac_check_lib_save_LIBS
  8799. fi
  8800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8801. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8802. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8803. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8804. else
  8805. lt_cv_dlopen="dyld"
  8806. lt_cv_dlopen_libs=
  8807. lt_cv_dlopen_self=yes
  8808. fi
  8809. ;;
  8810. *)
  8811. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8812. if test "x$ac_cv_func_shl_load" = xyes; then :
  8813. lt_cv_dlopen="shl_load"
  8814. else
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8816. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8817. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8818. $as_echo_n "(cached) " >&6
  8819. else
  8820. ac_check_lib_save_LIBS=$LIBS
  8821. LIBS="-ldld $LIBS"
  8822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8823. /* end confdefs.h. */
  8824. /* Override any GCC internal prototype to avoid an error.
  8825. Use char because int might match the return type of a GCC
  8826. builtin and then its argument prototype would still apply. */
  8827. #ifdef __cplusplus
  8828. extern "C"
  8829. #endif
  8830. char shl_load ();
  8831. int
  8832. main ()
  8833. {
  8834. return shl_load ();
  8835. ;
  8836. return 0;
  8837. }
  8838. _ACEOF
  8839. if ac_fn_c_try_link "$LINENO"; then :
  8840. ac_cv_lib_dld_shl_load=yes
  8841. else
  8842. ac_cv_lib_dld_shl_load=no
  8843. fi
  8844. rm -f core conftest.err conftest.$ac_objext \
  8845. conftest$ac_exeext conftest.$ac_ext
  8846. LIBS=$ac_check_lib_save_LIBS
  8847. fi
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8849. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8850. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  8851. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8852. else
  8853. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8854. if test "x$ac_cv_func_dlopen" = xyes; then :
  8855. lt_cv_dlopen="dlopen"
  8856. else
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8858. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8859. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8860. $as_echo_n "(cached) " >&6
  8861. else
  8862. ac_check_lib_save_LIBS=$LIBS
  8863. LIBS="-ldl $LIBS"
  8864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8865. /* end confdefs.h. */
  8866. /* Override any GCC internal prototype to avoid an error.
  8867. Use char because int might match the return type of a GCC
  8868. builtin and then its argument prototype would still apply. */
  8869. #ifdef __cplusplus
  8870. extern "C"
  8871. #endif
  8872. char dlopen ();
  8873. int
  8874. main ()
  8875. {
  8876. return dlopen ();
  8877. ;
  8878. return 0;
  8879. }
  8880. _ACEOF
  8881. if ac_fn_c_try_link "$LINENO"; then :
  8882. ac_cv_lib_dl_dlopen=yes
  8883. else
  8884. ac_cv_lib_dl_dlopen=no
  8885. fi
  8886. rm -f core conftest.err conftest.$ac_objext \
  8887. conftest$ac_exeext conftest.$ac_ext
  8888. LIBS=$ac_check_lib_save_LIBS
  8889. fi
  8890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8891. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8892. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8893. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8894. else
  8895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8896. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8897. if ${ac_cv_lib_svld_dlopen+:} false; then :
  8898. $as_echo_n "(cached) " >&6
  8899. else
  8900. ac_check_lib_save_LIBS=$LIBS
  8901. LIBS="-lsvld $LIBS"
  8902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8903. /* end confdefs.h. */
  8904. /* Override any GCC internal prototype to avoid an error.
  8905. Use char because int might match the return type of a GCC
  8906. builtin and then its argument prototype would still apply. */
  8907. #ifdef __cplusplus
  8908. extern "C"
  8909. #endif
  8910. char dlopen ();
  8911. int
  8912. main ()
  8913. {
  8914. return dlopen ();
  8915. ;
  8916. return 0;
  8917. }
  8918. _ACEOF
  8919. if ac_fn_c_try_link "$LINENO"; then :
  8920. ac_cv_lib_svld_dlopen=yes
  8921. else
  8922. ac_cv_lib_svld_dlopen=no
  8923. fi
  8924. rm -f core conftest.err conftest.$ac_objext \
  8925. conftest$ac_exeext conftest.$ac_ext
  8926. LIBS=$ac_check_lib_save_LIBS
  8927. fi
  8928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8929. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8930. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  8931. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8932. else
  8933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8934. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8935. if ${ac_cv_lib_dld_dld_link+:} false; then :
  8936. $as_echo_n "(cached) " >&6
  8937. else
  8938. ac_check_lib_save_LIBS=$LIBS
  8939. LIBS="-ldld $LIBS"
  8940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8941. /* end confdefs.h. */
  8942. /* Override any GCC internal prototype to avoid an error.
  8943. Use char because int might match the return type of a GCC
  8944. builtin and then its argument prototype would still apply. */
  8945. #ifdef __cplusplus
  8946. extern "C"
  8947. #endif
  8948. char dld_link ();
  8949. int
  8950. main ()
  8951. {
  8952. return dld_link ();
  8953. ;
  8954. return 0;
  8955. }
  8956. _ACEOF
  8957. if ac_fn_c_try_link "$LINENO"; then :
  8958. ac_cv_lib_dld_dld_link=yes
  8959. else
  8960. ac_cv_lib_dld_dld_link=no
  8961. fi
  8962. rm -f core conftest.err conftest.$ac_objext \
  8963. conftest$ac_exeext conftest.$ac_ext
  8964. LIBS=$ac_check_lib_save_LIBS
  8965. fi
  8966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8967. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8968. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  8969. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8970. fi
  8971. fi
  8972. fi
  8973. fi
  8974. fi
  8975. fi
  8976. ;;
  8977. esac
  8978. if test "x$lt_cv_dlopen" != xno; then
  8979. enable_dlopen=yes
  8980. else
  8981. enable_dlopen=no
  8982. fi
  8983. case $lt_cv_dlopen in
  8984. dlopen)
  8985. save_CPPFLAGS="$CPPFLAGS"
  8986. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8987. save_LDFLAGS="$LDFLAGS"
  8988. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8989. save_LIBS="$LIBS"
  8990. LIBS="$lt_cv_dlopen_libs $LIBS"
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8992. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8993. if ${lt_cv_dlopen_self+:} false; then :
  8994. $as_echo_n "(cached) " >&6
  8995. else
  8996. if test "$cross_compiling" = yes; then :
  8997. lt_cv_dlopen_self=cross
  8998. else
  8999. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9000. lt_status=$lt_dlunknown
  9001. cat > conftest.$ac_ext <<_LT_EOF
  9002. #line 10521 "configure"
  9003. #include "confdefs.h"
  9004. #if HAVE_DLFCN_H
  9005. #include <dlfcn.h>
  9006. #endif
  9007. #include <stdio.h>
  9008. #ifdef RTLD_GLOBAL
  9009. # define LT_DLGLOBAL RTLD_GLOBAL
  9010. #else
  9011. # ifdef DL_GLOBAL
  9012. # define LT_DLGLOBAL DL_GLOBAL
  9013. # else
  9014. # define LT_DLGLOBAL 0
  9015. # endif
  9016. #endif
  9017. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9018. find out it does not work in some platform. */
  9019. #ifndef LT_DLLAZY_OR_NOW
  9020. # ifdef RTLD_LAZY
  9021. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9022. # else
  9023. # ifdef DL_LAZY
  9024. # define LT_DLLAZY_OR_NOW DL_LAZY
  9025. # else
  9026. # ifdef RTLD_NOW
  9027. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9028. # else
  9029. # ifdef DL_NOW
  9030. # define LT_DLLAZY_OR_NOW DL_NOW
  9031. # else
  9032. # define LT_DLLAZY_OR_NOW 0
  9033. # endif
  9034. # endif
  9035. # endif
  9036. # endif
  9037. #endif
  9038. void fnord() { int i=42;}
  9039. int main ()
  9040. {
  9041. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9042. int status = $lt_dlunknown;
  9043. if (self)
  9044. {
  9045. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9046. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9047. /* dlclose (self); */
  9048. }
  9049. else
  9050. puts (dlerror ());
  9051. return status;
  9052. }
  9053. _LT_EOF
  9054. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9055. (eval $ac_link) 2>&5
  9056. ac_status=$?
  9057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9058. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9059. (./conftest; exit; ) >&5 2>/dev/null
  9060. lt_status=$?
  9061. case x$lt_status in
  9062. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9063. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9064. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9065. esac
  9066. else :
  9067. # compilation failed
  9068. lt_cv_dlopen_self=no
  9069. fi
  9070. fi
  9071. rm -fr conftest*
  9072. fi
  9073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9074. $as_echo "$lt_cv_dlopen_self" >&6; }
  9075. if test "x$lt_cv_dlopen_self" = xyes; then
  9076. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9078. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9079. if ${lt_cv_dlopen_self_static+:} false; then :
  9080. $as_echo_n "(cached) " >&6
  9081. else
  9082. if test "$cross_compiling" = yes; then :
  9083. lt_cv_dlopen_self_static=cross
  9084. else
  9085. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9086. lt_status=$lt_dlunknown
  9087. cat > conftest.$ac_ext <<_LT_EOF
  9088. #line 10617 "configure"
  9089. #include "confdefs.h"
  9090. #if HAVE_DLFCN_H
  9091. #include <dlfcn.h>
  9092. #endif
  9093. #include <stdio.h>
  9094. #ifdef RTLD_GLOBAL
  9095. # define LT_DLGLOBAL RTLD_GLOBAL
  9096. #else
  9097. # ifdef DL_GLOBAL
  9098. # define LT_DLGLOBAL DL_GLOBAL
  9099. # else
  9100. # define LT_DLGLOBAL 0
  9101. # endif
  9102. #endif
  9103. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9104. find out it does not work in some platform. */
  9105. #ifndef LT_DLLAZY_OR_NOW
  9106. # ifdef RTLD_LAZY
  9107. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9108. # else
  9109. # ifdef DL_LAZY
  9110. # define LT_DLLAZY_OR_NOW DL_LAZY
  9111. # else
  9112. # ifdef RTLD_NOW
  9113. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9114. # else
  9115. # ifdef DL_NOW
  9116. # define LT_DLLAZY_OR_NOW DL_NOW
  9117. # else
  9118. # define LT_DLLAZY_OR_NOW 0
  9119. # endif
  9120. # endif
  9121. # endif
  9122. # endif
  9123. #endif
  9124. void fnord() { int i=42;}
  9125. int main ()
  9126. {
  9127. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9128. int status = $lt_dlunknown;
  9129. if (self)
  9130. {
  9131. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9132. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9133. /* dlclose (self); */
  9134. }
  9135. else
  9136. puts (dlerror ());
  9137. return status;
  9138. }
  9139. _LT_EOF
  9140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9141. (eval $ac_link) 2>&5
  9142. ac_status=$?
  9143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9144. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9145. (./conftest; exit; ) >&5 2>/dev/null
  9146. lt_status=$?
  9147. case x$lt_status in
  9148. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9149. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9150. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9151. esac
  9152. else :
  9153. # compilation failed
  9154. lt_cv_dlopen_self_static=no
  9155. fi
  9156. fi
  9157. rm -fr conftest*
  9158. fi
  9159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9160. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9161. fi
  9162. CPPFLAGS="$save_CPPFLAGS"
  9163. LDFLAGS="$save_LDFLAGS"
  9164. LIBS="$save_LIBS"
  9165. ;;
  9166. esac
  9167. case $lt_cv_dlopen_self in
  9168. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9169. *) enable_dlopen_self=unknown ;;
  9170. esac
  9171. case $lt_cv_dlopen_self_static in
  9172. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9173. *) enable_dlopen_self_static=unknown ;;
  9174. esac
  9175. fi
  9176. striplib=
  9177. old_striplib=
  9178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9179. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9180. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9181. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9182. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9184. $as_echo "yes" >&6; }
  9185. else
  9186. # FIXME - insert some real tests, host_os isn't really good enough
  9187. case $host_os in
  9188. darwin*)
  9189. if test -n "$STRIP" ; then
  9190. striplib="$STRIP -x"
  9191. old_striplib="$STRIP -S"
  9192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9193. $as_echo "yes" >&6; }
  9194. else
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9196. $as_echo "no" >&6; }
  9197. fi
  9198. ;;
  9199. *)
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9201. $as_echo "no" >&6; }
  9202. ;;
  9203. esac
  9204. fi
  9205. # Report which library types will actually be built
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9207. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9209. $as_echo "$can_build_shared" >&6; }
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9211. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9212. test "$can_build_shared" = "no" && enable_shared=no
  9213. # On AIX, shared libraries and static libraries use the same namespace, and
  9214. # are all built from PIC.
  9215. case $host_os in
  9216. aix3*)
  9217. test "$enable_shared" = yes && enable_static=no
  9218. if test -n "$RANLIB"; then
  9219. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9220. postinstall_cmds='$RANLIB $lib'
  9221. fi
  9222. ;;
  9223. aix[4-9]*)
  9224. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9225. test "$enable_shared" = yes && enable_static=no
  9226. fi
  9227. ;;
  9228. esac
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9230. $as_echo "$enable_shared" >&6; }
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9232. $as_echo_n "checking whether to build static libraries... " >&6; }
  9233. # Make sure either enable_shared or enable_static is yes.
  9234. test "$enable_shared" = yes || enable_static=yes
  9235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9236. $as_echo "$enable_static" >&6; }
  9237. fi
  9238. ac_ext=c
  9239. ac_cpp='$CPP $CPPFLAGS'
  9240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9243. CC="$lt_save_CC"
  9244. ac_config_commands="$ac_config_commands libtool"
  9245. # Only expand once:
  9246. ac_config_files="$ac_config_files Makefile json.pc tests/Makefile"
  9247. cat >confcache <<\_ACEOF
  9248. # This file is a shell script that caches the results of configure
  9249. # tests run on this system so they can be shared between configure
  9250. # scripts and configure runs, see configure's option --config-cache.
  9251. # It is not useful on other systems. If it contains results you don't
  9252. # want to keep, you may remove or edit it.
  9253. #
  9254. # config.status only pays attention to the cache file if you give it
  9255. # the --recheck option to rerun configure.
  9256. #
  9257. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9258. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9259. # following values.
  9260. _ACEOF
  9261. # The following way of writing the cache mishandles newlines in values,
  9262. # but we know of no workaround that is simple, portable, and efficient.
  9263. # So, we kill variables containing newlines.
  9264. # Ultrix sh set writes to stderr and can't be redirected directly,
  9265. # and sets the high bit in the cache file unless we assign to the vars.
  9266. (
  9267. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9268. eval ac_val=\$$ac_var
  9269. case $ac_val in #(
  9270. *${as_nl}*)
  9271. case $ac_var in #(
  9272. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9273. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9274. esac
  9275. case $ac_var in #(
  9276. _ | IFS | as_nl) ;; #(
  9277. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9278. *) { eval $ac_var=; unset $ac_var;} ;;
  9279. esac ;;
  9280. esac
  9281. done
  9282. (set) 2>&1 |
  9283. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9284. *${as_nl}ac_space=\ *)
  9285. # `set' does not quote correctly, so add quotes: double-quote
  9286. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9287. sed -n \
  9288. "s/'/'\\\\''/g;
  9289. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9290. ;; #(
  9291. *)
  9292. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9293. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9294. ;;
  9295. esac |
  9296. sort
  9297. ) |
  9298. sed '
  9299. /^ac_cv_env_/b end
  9300. t clear
  9301. :clear
  9302. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9303. t end
  9304. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9305. :end' >>confcache
  9306. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9307. if test -w "$cache_file"; then
  9308. if test "x$cache_file" != "x/dev/null"; then
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9310. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9311. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9312. cat confcache >"$cache_file"
  9313. else
  9314. case $cache_file in #(
  9315. */* | ?:*)
  9316. mv -f confcache "$cache_file"$$ &&
  9317. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9318. *)
  9319. mv -f confcache "$cache_file" ;;
  9320. esac
  9321. fi
  9322. fi
  9323. else
  9324. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9325. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9326. fi
  9327. fi
  9328. rm -f confcache
  9329. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9330. # Let make expand exec_prefix.
  9331. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9332. DEFS=-DHAVE_CONFIG_H
  9333. ac_libobjs=
  9334. ac_ltlibobjs=
  9335. U=
  9336. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9337. # 1. Remove the extension, and $U if already installed.
  9338. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9339. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9340. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9341. # will be set to the directory where LIBOBJS objects are built.
  9342. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9343. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9344. done
  9345. LIBOBJS=$ac_libobjs
  9346. LTLIBOBJS=$ac_ltlibobjs
  9347. if test -n "$EXEEXT"; then
  9348. am__EXEEXT_TRUE=
  9349. am__EXEEXT_FALSE='#'
  9350. else
  9351. am__EXEEXT_TRUE='#'
  9352. am__EXEEXT_FALSE=
  9353. fi
  9354. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9355. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9356. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9357. fi
  9358. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9359. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9360. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9361. fi
  9362. : "${CONFIG_STATUS=./config.status}"
  9363. ac_write_fail=0
  9364. ac_clean_files_save=$ac_clean_files
  9365. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9366. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9367. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9368. as_write_fail=0
  9369. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9370. #! $SHELL
  9371. # Generated by $as_me.
  9372. # Run this file to recreate the current configuration.
  9373. # Compiler output produced by configure, useful for debugging
  9374. # configure, is in config.log if it exists.
  9375. debug=false
  9376. ac_cs_recheck=false
  9377. ac_cs_silent=false
  9378. SHELL=\${CONFIG_SHELL-$SHELL}
  9379. export SHELL
  9380. _ASEOF
  9381. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9382. ## -------------------- ##
  9383. ## M4sh Initialization. ##
  9384. ## -------------------- ##
  9385. # Be more Bourne compatible
  9386. DUALCASE=1; export DUALCASE # for MKS sh
  9387. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9388. emulate sh
  9389. NULLCMD=:
  9390. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9391. # is contrary to our usage. Disable this feature.
  9392. alias -g '${1+"$@"}'='"$@"'
  9393. setopt NO_GLOB_SUBST
  9394. else
  9395. case `(set -o) 2>/dev/null` in #(
  9396. *posix*) :
  9397. set -o posix ;; #(
  9398. *) :
  9399. ;;
  9400. esac
  9401. fi
  9402. as_nl='
  9403. '
  9404. export as_nl
  9405. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9406. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9407. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9408. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9409. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9410. # but without wasting forks for bash or zsh.
  9411. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9412. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9413. as_echo='print -r --'
  9414. as_echo_n='print -rn --'
  9415. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9416. as_echo='printf %s\n'
  9417. as_echo_n='printf %s'
  9418. else
  9419. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9420. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9421. as_echo_n='/usr/ucb/echo -n'
  9422. else
  9423. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9424. as_echo_n_body='eval
  9425. arg=$1;
  9426. case $arg in #(
  9427. *"$as_nl"*)
  9428. expr "X$arg" : "X\\(.*\\)$as_nl";
  9429. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9430. esac;
  9431. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9432. '
  9433. export as_echo_n_body
  9434. as_echo_n='sh -c $as_echo_n_body as_echo'
  9435. fi
  9436. export as_echo_body
  9437. as_echo='sh -c $as_echo_body as_echo'
  9438. fi
  9439. # The user is always right.
  9440. if test "${PATH_SEPARATOR+set}" != set; then
  9441. PATH_SEPARATOR=:
  9442. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9443. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9444. PATH_SEPARATOR=';'
  9445. }
  9446. fi
  9447. # IFS
  9448. # We need space, tab and new line, in precisely that order. Quoting is
  9449. # there to prevent editors from complaining about space-tab.
  9450. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9451. # splitting by setting IFS to empty value.)
  9452. IFS=" "" $as_nl"
  9453. # Find who we are. Look in the path if we contain no directory separator.
  9454. as_myself=
  9455. case $0 in #((
  9456. *[\\/]* ) as_myself=$0 ;;
  9457. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9458. for as_dir in $PATH
  9459. do
  9460. IFS=$as_save_IFS
  9461. test -z "$as_dir" && as_dir=.
  9462. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9463. done
  9464. IFS=$as_save_IFS
  9465. ;;
  9466. esac
  9467. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9468. # in which case we are not to be found in the path.
  9469. if test "x$as_myself" = x; then
  9470. as_myself=$0
  9471. fi
  9472. if test ! -f "$as_myself"; then
  9473. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9474. exit 1
  9475. fi
  9476. # Unset variables that we do not need and which cause bugs (e.g. in
  9477. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9478. # suppresses any "Segmentation fault" message there. '((' could
  9479. # trigger a bug in pdksh 5.2.14.
  9480. for as_var in BASH_ENV ENV MAIL MAILPATH
  9481. do eval test x\${$as_var+set} = xset \
  9482. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9483. done
  9484. PS1='$ '
  9485. PS2='> '
  9486. PS4='+ '
  9487. # NLS nuisances.
  9488. LC_ALL=C
  9489. export LC_ALL
  9490. LANGUAGE=C
  9491. export LANGUAGE
  9492. # CDPATH.
  9493. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9494. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9495. # ----------------------------------------
  9496. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9497. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9498. # script with STATUS, using 1 if that was 0.
  9499. as_fn_error ()
  9500. {
  9501. as_status=$1; test $as_status -eq 0 && as_status=1
  9502. if test "$4"; then
  9503. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9504. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9505. fi
  9506. $as_echo "$as_me: error: $2" >&2
  9507. as_fn_exit $as_status
  9508. } # as_fn_error
  9509. # as_fn_set_status STATUS
  9510. # -----------------------
  9511. # Set $? to STATUS, without forking.
  9512. as_fn_set_status ()
  9513. {
  9514. return $1
  9515. } # as_fn_set_status
  9516. # as_fn_exit STATUS
  9517. # -----------------
  9518. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9519. as_fn_exit ()
  9520. {
  9521. set +e
  9522. as_fn_set_status $1
  9523. exit $1
  9524. } # as_fn_exit
  9525. # as_fn_unset VAR
  9526. # ---------------
  9527. # Portably unset VAR.
  9528. as_fn_unset ()
  9529. {
  9530. { eval $1=; unset $1;}
  9531. }
  9532. as_unset=as_fn_unset
  9533. # as_fn_append VAR VALUE
  9534. # ----------------------
  9535. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9536. # advantage of any shell optimizations that allow amortized linear growth over
  9537. # repeated appends, instead of the typical quadratic growth present in naive
  9538. # implementations.
  9539. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9540. eval 'as_fn_append ()
  9541. {
  9542. eval $1+=\$2
  9543. }'
  9544. else
  9545. as_fn_append ()
  9546. {
  9547. eval $1=\$$1\$2
  9548. }
  9549. fi # as_fn_append
  9550. # as_fn_arith ARG...
  9551. # ------------------
  9552. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9553. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9554. # must be portable across $(()) and expr.
  9555. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9556. eval 'as_fn_arith ()
  9557. {
  9558. as_val=$(( $* ))
  9559. }'
  9560. else
  9561. as_fn_arith ()
  9562. {
  9563. as_val=`expr "$@" || test $? -eq 1`
  9564. }
  9565. fi # as_fn_arith
  9566. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9567. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9568. as_expr=expr
  9569. else
  9570. as_expr=false
  9571. fi
  9572. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9573. as_basename=basename
  9574. else
  9575. as_basename=false
  9576. fi
  9577. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9578. as_dirname=dirname
  9579. else
  9580. as_dirname=false
  9581. fi
  9582. as_me=`$as_basename -- "$0" ||
  9583. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9584. X"$0" : 'X\(//\)$' \| \
  9585. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9586. $as_echo X/"$0" |
  9587. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9588. s//\1/
  9589. q
  9590. }
  9591. /^X\/\(\/\/\)$/{
  9592. s//\1/
  9593. q
  9594. }
  9595. /^X\/\(\/\).*/{
  9596. s//\1/
  9597. q
  9598. }
  9599. s/.*/./; q'`
  9600. # Avoid depending upon Character Ranges.
  9601. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9602. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9603. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9604. as_cr_digits='0123456789'
  9605. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9606. ECHO_C= ECHO_N= ECHO_T=
  9607. case `echo -n x` in #(((((
  9608. -n*)
  9609. case `echo 'xy\c'` in
  9610. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9611. xy) ECHO_C='\c';;
  9612. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9613. ECHO_T=' ';;
  9614. esac;;
  9615. *)
  9616. ECHO_N='-n';;
  9617. esac
  9618. rm -f conf$$ conf$$.exe conf$$.file
  9619. if test -d conf$$.dir; then
  9620. rm -f conf$$.dir/conf$$.file
  9621. else
  9622. rm -f conf$$.dir
  9623. mkdir conf$$.dir 2>/dev/null
  9624. fi
  9625. if (echo >conf$$.file) 2>/dev/null; then
  9626. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9627. as_ln_s='ln -s'
  9628. # ... but there are two gotchas:
  9629. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9630. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9631. # In both cases, we have to default to `cp -p'.
  9632. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9633. as_ln_s='cp -p'
  9634. elif ln conf$$.file conf$$ 2>/dev/null; then
  9635. as_ln_s=ln
  9636. else
  9637. as_ln_s='cp -p'
  9638. fi
  9639. else
  9640. as_ln_s='cp -p'
  9641. fi
  9642. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9643. rmdir conf$$.dir 2>/dev/null
  9644. # as_fn_mkdir_p
  9645. # -------------
  9646. # Create "$as_dir" as a directory, including parents if necessary.
  9647. as_fn_mkdir_p ()
  9648. {
  9649. case $as_dir in #(
  9650. -*) as_dir=./$as_dir;;
  9651. esac
  9652. test -d "$as_dir" || eval $as_mkdir_p || {
  9653. as_dirs=
  9654. while :; do
  9655. case $as_dir in #(
  9656. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9657. *) as_qdir=$as_dir;;
  9658. esac
  9659. as_dirs="'$as_qdir' $as_dirs"
  9660. as_dir=`$as_dirname -- "$as_dir" ||
  9661. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9662. X"$as_dir" : 'X\(//\)[^/]' \| \
  9663. X"$as_dir" : 'X\(//\)$' \| \
  9664. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9665. $as_echo X"$as_dir" |
  9666. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9667. s//\1/
  9668. q
  9669. }
  9670. /^X\(\/\/\)[^/].*/{
  9671. s//\1/
  9672. q
  9673. }
  9674. /^X\(\/\/\)$/{
  9675. s//\1/
  9676. q
  9677. }
  9678. /^X\(\/\).*/{
  9679. s//\1/
  9680. q
  9681. }
  9682. s/.*/./; q'`
  9683. test -d "$as_dir" && break
  9684. done
  9685. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9686. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9687. } # as_fn_mkdir_p
  9688. if mkdir -p . 2>/dev/null; then
  9689. as_mkdir_p='mkdir -p "$as_dir"'
  9690. else
  9691. test -d ./-p && rmdir ./-p
  9692. as_mkdir_p=false
  9693. fi
  9694. if test -x / >/dev/null 2>&1; then
  9695. as_test_x='test -x'
  9696. else
  9697. if ls -dL / >/dev/null 2>&1; then
  9698. as_ls_L_option=L
  9699. else
  9700. as_ls_L_option=
  9701. fi
  9702. as_test_x='
  9703. eval sh -c '\''
  9704. if test -d "$1"; then
  9705. test -d "$1/.";
  9706. else
  9707. case $1 in #(
  9708. -*)set "./$1";;
  9709. esac;
  9710. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  9711. ???[sx]*):;;*)false;;esac;fi
  9712. '\'' sh
  9713. '
  9714. fi
  9715. as_executable_p=$as_test_x
  9716. # Sed expression to map a string onto a valid CPP name.
  9717. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9718. # Sed expression to map a string onto a valid variable name.
  9719. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9720. exec 6>&1
  9721. ## ----------------------------------- ##
  9722. ## Main body of $CONFIG_STATUS script. ##
  9723. ## ----------------------------------- ##
  9724. _ASEOF
  9725. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9726. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9727. # Save the log message, to keep $0 and so on meaningful, and to
  9728. # report actual input values of CONFIG_FILES etc. instead of their
  9729. # values after options handling.
  9730. ac_log="
  9731. This file was extended by json-c $as_me 0.10, which was
  9732. generated by GNU Autoconf 2.68. Invocation command line was
  9733. CONFIG_FILES = $CONFIG_FILES
  9734. CONFIG_HEADERS = $CONFIG_HEADERS
  9735. CONFIG_LINKS = $CONFIG_LINKS
  9736. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9737. $ $0 $@
  9738. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9739. "
  9740. _ACEOF
  9741. case $ac_config_files in *"
  9742. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9743. esac
  9744. case $ac_config_headers in *"
  9745. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9746. esac
  9747. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9748. # Files that config.status was made for.
  9749. config_files="$ac_config_files"
  9750. config_headers="$ac_config_headers"
  9751. config_commands="$ac_config_commands"
  9752. _ACEOF
  9753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9754. ac_cs_usage="\
  9755. \`$as_me' instantiates files and other configuration actions
  9756. from templates according to the current configuration. Unless the files
  9757. and actions are specified as TAGs, all are instantiated by default.
  9758. Usage: $0 [OPTION]... [TAG]...
  9759. -h, --help print this help, then exit
  9760. -V, --version print version number and configuration settings, then exit
  9761. --config print configuration, then exit
  9762. -q, --quiet, --silent
  9763. do not print progress messages
  9764. -d, --debug don't remove temporary files
  9765. --recheck update $as_me by reconfiguring in the same conditions
  9766. --file=FILE[:TEMPLATE]
  9767. instantiate the configuration file FILE
  9768. --header=FILE[:TEMPLATE]
  9769. instantiate the configuration header FILE
  9770. Configuration files:
  9771. $config_files
  9772. Configuration headers:
  9773. $config_headers
  9774. Configuration commands:
  9775. $config_commands
  9776. Report bugs to <json-c@googlegroups.com>."
  9777. _ACEOF
  9778. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9779. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9780. ac_cs_version="\\
  9781. json-c config.status 0.10
  9782. configured by $0, generated by GNU Autoconf 2.68,
  9783. with options \\"\$ac_cs_config\\"
  9784. Copyright (C) 2010 Free Software Foundation, Inc.
  9785. This config.status script is free software; the Free Software Foundation
  9786. gives unlimited permission to copy, distribute and modify it."
  9787. ac_pwd='$ac_pwd'
  9788. srcdir='$srcdir'
  9789. INSTALL='$INSTALL'
  9790. MKDIR_P='$MKDIR_P'
  9791. AWK='$AWK'
  9792. test -n "\$AWK" || AWK=awk
  9793. _ACEOF
  9794. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9795. # The default lists apply if the user does not specify any file.
  9796. ac_need_defaults=:
  9797. while test $# != 0
  9798. do
  9799. case $1 in
  9800. --*=?*)
  9801. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9802. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9803. ac_shift=:
  9804. ;;
  9805. --*=)
  9806. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9807. ac_optarg=
  9808. ac_shift=:
  9809. ;;
  9810. *)
  9811. ac_option=$1
  9812. ac_optarg=$2
  9813. ac_shift=shift
  9814. ;;
  9815. esac
  9816. case $ac_option in
  9817. # Handling of the options.
  9818. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9819. ac_cs_recheck=: ;;
  9820. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9821. $as_echo "$ac_cs_version"; exit ;;
  9822. --config | --confi | --conf | --con | --co | --c )
  9823. $as_echo "$ac_cs_config"; exit ;;
  9824. --debug | --debu | --deb | --de | --d | -d )
  9825. debug=: ;;
  9826. --file | --fil | --fi | --f )
  9827. $ac_shift
  9828. case $ac_optarg in
  9829. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9830. '') as_fn_error $? "missing file argument" ;;
  9831. esac
  9832. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9833. ac_need_defaults=false;;
  9834. --header | --heade | --head | --hea )
  9835. $ac_shift
  9836. case $ac_optarg in
  9837. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9838. esac
  9839. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9840. ac_need_defaults=false;;
  9841. --he | --h)
  9842. # Conflict between --help and --header
  9843. as_fn_error $? "ambiguous option: \`$1'
  9844. Try \`$0 --help' for more information.";;
  9845. --help | --hel | -h )
  9846. $as_echo "$ac_cs_usage"; exit ;;
  9847. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9848. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9849. ac_cs_silent=: ;;
  9850. # This is an error.
  9851. -*) as_fn_error $? "unrecognized option: \`$1'
  9852. Try \`$0 --help' for more information." ;;
  9853. *) as_fn_append ac_config_targets " $1"
  9854. ac_need_defaults=false ;;
  9855. esac
  9856. shift
  9857. done
  9858. ac_configure_extra_args=
  9859. if $ac_cs_silent; then
  9860. exec 6>/dev/null
  9861. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9862. fi
  9863. _ACEOF
  9864. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9865. if \$ac_cs_recheck; then
  9866. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9867. shift
  9868. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9869. CONFIG_SHELL='$SHELL'
  9870. export CONFIG_SHELL
  9871. exec "\$@"
  9872. fi
  9873. _ACEOF
  9874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9875. exec 5>>config.log
  9876. {
  9877. echo
  9878. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9879. ## Running $as_me. ##
  9880. _ASBOX
  9881. $as_echo "$ac_log"
  9882. } >&5
  9883. _ACEOF
  9884. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9885. #
  9886. # INIT-COMMANDS
  9887. #
  9888. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9889. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9890. # if CDPATH is set.
  9891. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9892. sed_quote_subst='$sed_quote_subst'
  9893. double_quote_subst='$double_quote_subst'
  9894. delay_variable_subst='$delay_variable_subst'
  9895. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  9896. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  9897. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  9898. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  9899. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  9900. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  9901. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  9902. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  9903. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  9904. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  9905. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  9906. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  9907. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  9908. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  9909. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  9910. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  9911. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  9912. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  9913. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  9914. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  9915. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  9916. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  9917. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  9918. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  9919. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  9920. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  9921. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  9922. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9923. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  9924. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  9925. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  9926. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  9927. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  9928. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  9929. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  9930. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9931. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9932. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9933. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  9934. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  9935. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  9936. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  9937. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  9938. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  9939. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  9940. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  9941. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  9942. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  9943. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  9944. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  9945. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  9946. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  9947. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  9948. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  9949. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  9950. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  9951. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  9952. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  9953. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  9954. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  9955. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  9956. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  9957. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9958. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9959. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  9960. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  9961. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  9962. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  9963. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  9964. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9965. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9966. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9967. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9968. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9969. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9970. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  9971. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  9972. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  9973. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  9974. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  9975. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  9976. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  9977. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  9978. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  9979. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  9980. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  9981. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  9982. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  9983. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  9984. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  9985. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9986. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  9987. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  9988. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  9989. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  9990. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  9991. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  9992. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  9993. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  9994. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  9995. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  9996. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  9997. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  9998. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  9999. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10000. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10001. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10002. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10003. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  10004. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  10005. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10006. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10007. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  10008. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  10009. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  10010. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  10011. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10012. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10013. LTCC='$LTCC'
  10014. LTCFLAGS='$LTCFLAGS'
  10015. compiler='$compiler_DEFAULT'
  10016. # Quote evaled strings.
  10017. for var in SED \
  10018. GREP \
  10019. EGREP \
  10020. FGREP \
  10021. LD \
  10022. NM \
  10023. LN_S \
  10024. lt_SP2NL \
  10025. lt_NL2SP \
  10026. reload_flag \
  10027. OBJDUMP \
  10028. deplibs_check_method \
  10029. file_magic_cmd \
  10030. AR \
  10031. AR_FLAGS \
  10032. STRIP \
  10033. RANLIB \
  10034. CC \
  10035. CFLAGS \
  10036. compiler \
  10037. lt_cv_sys_global_symbol_pipe \
  10038. lt_cv_sys_global_symbol_to_cdecl \
  10039. lt_cv_sys_global_symbol_to_c_name_address \
  10040. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10041. SHELL \
  10042. ECHO \
  10043. lt_prog_compiler_no_builtin_flag \
  10044. lt_prog_compiler_wl \
  10045. lt_prog_compiler_pic \
  10046. lt_prog_compiler_static \
  10047. lt_cv_prog_compiler_c_o \
  10048. need_locks \
  10049. DSYMUTIL \
  10050. NMEDIT \
  10051. LIPO \
  10052. OTOOL \
  10053. OTOOL64 \
  10054. shrext_cmds \
  10055. export_dynamic_flag_spec \
  10056. whole_archive_flag_spec \
  10057. compiler_needs_object \
  10058. with_gnu_ld \
  10059. allow_undefined_flag \
  10060. no_undefined_flag \
  10061. hardcode_libdir_flag_spec \
  10062. hardcode_libdir_flag_spec_ld \
  10063. hardcode_libdir_separator \
  10064. fix_srcfile_path \
  10065. exclude_expsyms \
  10066. include_expsyms \
  10067. file_list_spec \
  10068. variables_saved_for_relink \
  10069. libname_spec \
  10070. library_names_spec \
  10071. soname_spec \
  10072. finish_eval \
  10073. old_striplib \
  10074. striplib; do
  10075. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10076. *[\\\\\\\`\\"\\\$]*)
  10077. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10078. ;;
  10079. *)
  10080. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10081. ;;
  10082. esac
  10083. done
  10084. # Double-quote double-evaled strings.
  10085. for var in reload_cmds \
  10086. old_postinstall_cmds \
  10087. old_postuninstall_cmds \
  10088. old_archive_cmds \
  10089. extract_expsyms_cmds \
  10090. old_archive_from_new_cmds \
  10091. old_archive_from_expsyms_cmds \
  10092. archive_cmds \
  10093. archive_expsym_cmds \
  10094. module_cmds \
  10095. module_expsym_cmds \
  10096. export_symbols_cmds \
  10097. prelink_cmds \
  10098. postinstall_cmds \
  10099. postuninstall_cmds \
  10100. finish_cmds \
  10101. sys_lib_search_path_spec \
  10102. sys_lib_dlsearch_path_spec; do
  10103. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10104. *[\\\\\\\`\\"\\\$]*)
  10105. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10106. ;;
  10107. *)
  10108. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10109. ;;
  10110. esac
  10111. done
  10112. # Fix-up fallback echo if it was mangled by the above quoting rules.
  10113. case \$lt_ECHO in
  10114. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  10115. ;;
  10116. esac
  10117. ac_aux_dir='$ac_aux_dir'
  10118. xsi_shell='$xsi_shell'
  10119. lt_shell_append='$lt_shell_append'
  10120. # See if we are running on zsh, and set the options which allow our
  10121. # commands through without removal of \ escapes INIT.
  10122. if test -n "\${ZSH_VERSION+set}" ; then
  10123. setopt NO_GLOB_SUBST
  10124. fi
  10125. PACKAGE='$PACKAGE'
  10126. VERSION='$VERSION'
  10127. TIMESTAMP='$TIMESTAMP'
  10128. RM='$RM'
  10129. ofile='$ofile'
  10130. _ACEOF
  10131. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10132. # Handling of arguments.
  10133. for ac_config_target in $ac_config_targets
  10134. do
  10135. case $ac_config_target in
  10136. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10137. "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
  10138. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10139. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10140. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10141. "json.pc") CONFIG_FILES="$CONFIG_FILES json.pc" ;;
  10142. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  10143. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10144. esac
  10145. done
  10146. # If the user did not use the arguments to specify the items to instantiate,
  10147. # then the envvar interface is used. Set only those that are not.
  10148. # We use the long form for the default assignment because of an extremely
  10149. # bizarre bug on SunOS 4.1.3.
  10150. if $ac_need_defaults; then
  10151. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10152. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10153. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10154. fi
  10155. # Have a temporary directory for convenience. Make it in the build tree
  10156. # simply because there is no reason against having it here, and in addition,
  10157. # creating and moving files from /tmp can sometimes cause problems.
  10158. # Hook for its removal unless debugging.
  10159. # Note that there is a small window in which the directory will not be cleaned:
  10160. # after its creation but before its name has been assigned to `$tmp'.
  10161. $debug ||
  10162. {
  10163. tmp= ac_tmp=
  10164. trap 'exit_status=$?
  10165. : "${ac_tmp:=$tmp}"
  10166. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10167. ' 0
  10168. trap 'as_fn_exit 1' 1 2 13 15
  10169. }
  10170. # Create a (secure) tmp directory for tmp files.
  10171. {
  10172. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10173. test -d "$tmp"
  10174. } ||
  10175. {
  10176. tmp=./conf$$-$RANDOM
  10177. (umask 077 && mkdir "$tmp")
  10178. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10179. ac_tmp=$tmp
  10180. # Set up the scripts for CONFIG_FILES section.
  10181. # No need to generate them if there are no CONFIG_FILES.
  10182. # This happens for instance with `./config.status config.h'.
  10183. if test -n "$CONFIG_FILES"; then
  10184. ac_cr=`echo X | tr X '\015'`
  10185. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10186. # But we know of no other shell where ac_cr would be empty at this
  10187. # point, so we can use a bashism as a fallback.
  10188. if test "x$ac_cr" = x; then
  10189. eval ac_cr=\$\'\\r\'
  10190. fi
  10191. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10192. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10193. ac_cs_awk_cr='\\r'
  10194. else
  10195. ac_cs_awk_cr=$ac_cr
  10196. fi
  10197. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10198. _ACEOF
  10199. {
  10200. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10201. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10202. echo "_ACEOF"
  10203. } >conf$$subs.sh ||
  10204. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10205. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10206. ac_delim='%!_!# '
  10207. for ac_last_try in false false false false false :; do
  10208. . ./conf$$subs.sh ||
  10209. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10210. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10211. if test $ac_delim_n = $ac_delim_num; then
  10212. break
  10213. elif $ac_last_try; then
  10214. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10215. else
  10216. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10217. fi
  10218. done
  10219. rm -f conf$$subs.sh
  10220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10221. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10222. _ACEOF
  10223. sed -n '
  10224. h
  10225. s/^/S["/; s/!.*/"]=/
  10226. p
  10227. g
  10228. s/^[^!]*!//
  10229. :repl
  10230. t repl
  10231. s/'"$ac_delim"'$//
  10232. t delim
  10233. :nl
  10234. h
  10235. s/\(.\{148\}\)..*/\1/
  10236. t more1
  10237. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10238. p
  10239. n
  10240. b repl
  10241. :more1
  10242. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10243. p
  10244. g
  10245. s/.\{148\}//
  10246. t nl
  10247. :delim
  10248. h
  10249. s/\(.\{148\}\)..*/\1/
  10250. t more2
  10251. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10252. p
  10253. b
  10254. :more2
  10255. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10256. p
  10257. g
  10258. s/.\{148\}//
  10259. t delim
  10260. ' <conf$$subs.awk | sed '
  10261. /^[^""]/{
  10262. N
  10263. s/\n//
  10264. }
  10265. ' >>$CONFIG_STATUS || ac_write_fail=1
  10266. rm -f conf$$subs.awk
  10267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10268. _ACAWK
  10269. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10270. for (key in S) S_is_set[key] = 1
  10271. FS = ""
  10272. }
  10273. {
  10274. line = $ 0
  10275. nfields = split(line, field, "@")
  10276. substed = 0
  10277. len = length(field[1])
  10278. for (i = 2; i < nfields; i++) {
  10279. key = field[i]
  10280. keylen = length(key)
  10281. if (S_is_set[key]) {
  10282. value = S[key]
  10283. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10284. len += length(value) + length(field[++i])
  10285. substed = 1
  10286. } else
  10287. len += 1 + keylen
  10288. }
  10289. print line
  10290. }
  10291. _ACAWK
  10292. _ACEOF
  10293. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10294. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10295. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10296. else
  10297. cat
  10298. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10299. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10300. _ACEOF
  10301. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10302. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10303. # trailing colons and then remove the whole line if VPATH becomes empty
  10304. # (actually we leave an empty line to preserve line numbers).
  10305. if test "x$srcdir" = x.; then
  10306. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10307. h
  10308. s///
  10309. s/^/:/
  10310. s/[ ]*$/:/
  10311. s/:\$(srcdir):/:/g
  10312. s/:\${srcdir}:/:/g
  10313. s/:@srcdir@:/:/g
  10314. s/^:*//
  10315. s/:*$//
  10316. x
  10317. s/\(=[ ]*\).*/\1/
  10318. G
  10319. s/\n//
  10320. s/^[^=]*=[ ]*$//
  10321. }'
  10322. fi
  10323. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10324. fi # test -n "$CONFIG_FILES"
  10325. # Set up the scripts for CONFIG_HEADERS section.
  10326. # No need to generate them if there are no CONFIG_HEADERS.
  10327. # This happens for instance with `./config.status Makefile'.
  10328. if test -n "$CONFIG_HEADERS"; then
  10329. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10330. BEGIN {
  10331. _ACEOF
  10332. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10333. # here-document in config.status, that substitutes the proper values into
  10334. # config.h.in to produce config.h.
  10335. # Create a delimiter string that does not exist in confdefs.h, to ease
  10336. # handling of long lines.
  10337. ac_delim='%!_!# '
  10338. for ac_last_try in false false :; do
  10339. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10340. if test -z "$ac_tt"; then
  10341. break
  10342. elif $ac_last_try; then
  10343. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10344. else
  10345. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10346. fi
  10347. done
  10348. # For the awk script, D is an array of macro values keyed by name,
  10349. # likewise P contains macro parameters if any. Preserve backslash
  10350. # newline sequences.
  10351. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10352. sed -n '
  10353. s/.\{148\}/&'"$ac_delim"'/g
  10354. t rset
  10355. :rset
  10356. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10357. t def
  10358. d
  10359. :def
  10360. s/\\$//
  10361. t bsnl
  10362. s/["\\]/\\&/g
  10363. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10364. D["\1"]=" \3"/p
  10365. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10366. d
  10367. :bsnl
  10368. s/["\\]/\\&/g
  10369. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10370. D["\1"]=" \3\\\\\\n"\\/p
  10371. t cont
  10372. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10373. t cont
  10374. d
  10375. :cont
  10376. n
  10377. s/.\{148\}/&'"$ac_delim"'/g
  10378. t clear
  10379. :clear
  10380. s/\\$//
  10381. t bsnlc
  10382. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10383. d
  10384. :bsnlc
  10385. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10386. b cont
  10387. ' <confdefs.h | sed '
  10388. s/'"$ac_delim"'/"\\\
  10389. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10390. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10391. for (key in D) D_is_set[key] = 1
  10392. FS = ""
  10393. }
  10394. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10395. line = \$ 0
  10396. split(line, arg, " ")
  10397. if (arg[1] == "#") {
  10398. defundef = arg[2]
  10399. mac1 = arg[3]
  10400. } else {
  10401. defundef = substr(arg[1], 2)
  10402. mac1 = arg[2]
  10403. }
  10404. split(mac1, mac2, "(") #)
  10405. macro = mac2[1]
  10406. prefix = substr(line, 1, index(line, defundef) - 1)
  10407. if (D_is_set[macro]) {
  10408. # Preserve the white space surrounding the "#".
  10409. print prefix "define", macro P[macro] D[macro]
  10410. next
  10411. } else {
  10412. # Replace #undef with comments. This is necessary, for example,
  10413. # in the case of _POSIX_SOURCE, which is predefined and required
  10414. # on some systems where configure will not decide to define it.
  10415. if (defundef == "undef") {
  10416. print "/*", prefix defundef, macro, "*/"
  10417. next
  10418. }
  10419. }
  10420. }
  10421. { print }
  10422. _ACAWK
  10423. _ACEOF
  10424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10425. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10426. fi # test -n "$CONFIG_HEADERS"
  10427. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10428. shift
  10429. for ac_tag
  10430. do
  10431. case $ac_tag in
  10432. :[FHLC]) ac_mode=$ac_tag; continue;;
  10433. esac
  10434. case $ac_mode$ac_tag in
  10435. :[FHL]*:*);;
  10436. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10437. :[FH]-) ac_tag=-:-;;
  10438. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10439. esac
  10440. ac_save_IFS=$IFS
  10441. IFS=:
  10442. set x $ac_tag
  10443. IFS=$ac_save_IFS
  10444. shift
  10445. ac_file=$1
  10446. shift
  10447. case $ac_mode in
  10448. :L) ac_source=$1;;
  10449. :[FH])
  10450. ac_file_inputs=
  10451. for ac_f
  10452. do
  10453. case $ac_f in
  10454. -) ac_f="$ac_tmp/stdin";;
  10455. *) # Look for the file first in the build tree, then in the source tree
  10456. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10457. # because $ac_f cannot contain `:'.
  10458. test -f "$ac_f" ||
  10459. case $ac_f in
  10460. [\\/$]*) false;;
  10461. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10462. esac ||
  10463. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10464. esac
  10465. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10466. as_fn_append ac_file_inputs " '$ac_f'"
  10467. done
  10468. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10469. # use $as_me), people would be surprised to read:
  10470. # /* config.h. Generated by config.status. */
  10471. configure_input='Generated from '`
  10472. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10473. `' by configure.'
  10474. if test x"$ac_file" != x-; then
  10475. configure_input="$ac_file. $configure_input"
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10477. $as_echo "$as_me: creating $ac_file" >&6;}
  10478. fi
  10479. # Neutralize special characters interpreted by sed in replacement strings.
  10480. case $configure_input in #(
  10481. *\&* | *\|* | *\\* )
  10482. ac_sed_conf_input=`$as_echo "$configure_input" |
  10483. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10484. *) ac_sed_conf_input=$configure_input;;
  10485. esac
  10486. case $ac_tag in
  10487. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10488. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10489. esac
  10490. ;;
  10491. esac
  10492. ac_dir=`$as_dirname -- "$ac_file" ||
  10493. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10494. X"$ac_file" : 'X\(//\)[^/]' \| \
  10495. X"$ac_file" : 'X\(//\)$' \| \
  10496. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10497. $as_echo X"$ac_file" |
  10498. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10499. s//\1/
  10500. q
  10501. }
  10502. /^X\(\/\/\)[^/].*/{
  10503. s//\1/
  10504. q
  10505. }
  10506. /^X\(\/\/\)$/{
  10507. s//\1/
  10508. q
  10509. }
  10510. /^X\(\/\).*/{
  10511. s//\1/
  10512. q
  10513. }
  10514. s/.*/./; q'`
  10515. as_dir="$ac_dir"; as_fn_mkdir_p
  10516. ac_builddir=.
  10517. case "$ac_dir" in
  10518. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10519. *)
  10520. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10521. # A ".." for each directory in $ac_dir_suffix.
  10522. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10523. case $ac_top_builddir_sub in
  10524. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10525. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10526. esac ;;
  10527. esac
  10528. ac_abs_top_builddir=$ac_pwd
  10529. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10530. # for backward compatibility:
  10531. ac_top_builddir=$ac_top_build_prefix
  10532. case $srcdir in
  10533. .) # We are building in place.
  10534. ac_srcdir=.
  10535. ac_top_srcdir=$ac_top_builddir_sub
  10536. ac_abs_top_srcdir=$ac_pwd ;;
  10537. [\\/]* | ?:[\\/]* ) # Absolute name.
  10538. ac_srcdir=$srcdir$ac_dir_suffix;
  10539. ac_top_srcdir=$srcdir
  10540. ac_abs_top_srcdir=$srcdir ;;
  10541. *) # Relative name.
  10542. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10543. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10544. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10545. esac
  10546. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10547. case $ac_mode in
  10548. :F)
  10549. #
  10550. # CONFIG_FILE
  10551. #
  10552. case $INSTALL in
  10553. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10554. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10555. esac
  10556. ac_MKDIR_P=$MKDIR_P
  10557. case $MKDIR_P in
  10558. [\\/$]* | ?:[\\/]* ) ;;
  10559. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10560. esac
  10561. _ACEOF
  10562. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10563. # If the template does not know about datarootdir, expand it.
  10564. # FIXME: This hack should be removed a few years after 2.60.
  10565. ac_datarootdir_hack=; ac_datarootdir_seen=
  10566. ac_sed_dataroot='
  10567. /datarootdir/ {
  10568. p
  10569. q
  10570. }
  10571. /@datadir@/p
  10572. /@docdir@/p
  10573. /@infodir@/p
  10574. /@localedir@/p
  10575. /@mandir@/p'
  10576. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10577. *datarootdir*) ac_datarootdir_seen=yes;;
  10578. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10580. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10581. _ACEOF
  10582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10583. ac_datarootdir_hack='
  10584. s&@datadir@&$datadir&g
  10585. s&@docdir@&$docdir&g
  10586. s&@infodir@&$infodir&g
  10587. s&@localedir@&$localedir&g
  10588. s&@mandir@&$mandir&g
  10589. s&\\\${datarootdir}&$datarootdir&g' ;;
  10590. esac
  10591. _ACEOF
  10592. # Neutralize VPATH when `$srcdir' = `.'.
  10593. # Shell code in configure.ac might set extrasub.
  10594. # FIXME: do we really want to maintain this feature?
  10595. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10596. ac_sed_extra="$ac_vpsub
  10597. $extrasub
  10598. _ACEOF
  10599. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10600. :t
  10601. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10602. s|@configure_input@|$ac_sed_conf_input|;t t
  10603. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10604. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10605. s&@srcdir@&$ac_srcdir&;t t
  10606. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10607. s&@top_srcdir@&$ac_top_srcdir&;t t
  10608. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10609. s&@builddir@&$ac_builddir&;t t
  10610. s&@abs_builddir@&$ac_abs_builddir&;t t
  10611. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10612. s&@INSTALL@&$ac_INSTALL&;t t
  10613. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10614. $ac_datarootdir_hack
  10615. "
  10616. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10617. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10618. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10619. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10620. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10621. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10623. which seems to be undefined. Please make sure it is defined" >&5
  10624. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10625. which seems to be undefined. Please make sure it is defined" >&2;}
  10626. rm -f "$ac_tmp/stdin"
  10627. case $ac_file in
  10628. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10629. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10630. esac \
  10631. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10632. ;;
  10633. :H)
  10634. #
  10635. # CONFIG_HEADER
  10636. #
  10637. if test x"$ac_file" != x-; then
  10638. {
  10639. $as_echo "/* $configure_input */" \
  10640. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10641. } >"$ac_tmp/config.h" \
  10642. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10643. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10645. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10646. else
  10647. rm -f "$ac_file"
  10648. mv "$ac_tmp/config.h" "$ac_file" \
  10649. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10650. fi
  10651. else
  10652. $as_echo "/* $configure_input */" \
  10653. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10654. || as_fn_error $? "could not create -" "$LINENO" 5
  10655. fi
  10656. # Compute "$ac_file"'s index in $config_headers.
  10657. _am_arg="$ac_file"
  10658. _am_stamp_count=1
  10659. for _am_header in $config_headers :; do
  10660. case $_am_header in
  10661. $_am_arg | $_am_arg:* )
  10662. break ;;
  10663. * )
  10664. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10665. esac
  10666. done
  10667. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10668. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10669. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10670. X"$_am_arg" : 'X\(//\)$' \| \
  10671. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10672. $as_echo X"$_am_arg" |
  10673. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10674. s//\1/
  10675. q
  10676. }
  10677. /^X\(\/\/\)[^/].*/{
  10678. s//\1/
  10679. q
  10680. }
  10681. /^X\(\/\/\)$/{
  10682. s//\1/
  10683. q
  10684. }
  10685. /^X\(\/\).*/{
  10686. s//\1/
  10687. q
  10688. }
  10689. s/.*/./; q'`/stamp-h$_am_stamp_count
  10690. ;;
  10691. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10692. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10693. ;;
  10694. esac
  10695. case $ac_file$ac_mode in
  10696. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10697. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10698. # are listed without --file. Let's play safe and only enable the eval
  10699. # if we detect the quoting.
  10700. case $CONFIG_FILES in
  10701. *\'*) eval set x "$CONFIG_FILES" ;;
  10702. *) set x $CONFIG_FILES ;;
  10703. esac
  10704. shift
  10705. for mf
  10706. do
  10707. # Strip MF so we end up with the name of the file.
  10708. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10709. # Check whether this is an Automake generated Makefile or not.
  10710. # We used to match only the files named `Makefile.in', but
  10711. # some people rename them; so instead we look at the file content.
  10712. # Grep'ing the first line is not enough: some people post-process
  10713. # each Makefile.in and add a new line on top of each file to say so.
  10714. # Grep'ing the whole file is not good either: AIX grep has a line
  10715. # limit of 2048, but all sed's we know have understand at least 4000.
  10716. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10717. dirpart=`$as_dirname -- "$mf" ||
  10718. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10719. X"$mf" : 'X\(//\)[^/]' \| \
  10720. X"$mf" : 'X\(//\)$' \| \
  10721. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10722. $as_echo X"$mf" |
  10723. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10724. s//\1/
  10725. q
  10726. }
  10727. /^X\(\/\/\)[^/].*/{
  10728. s//\1/
  10729. q
  10730. }
  10731. /^X\(\/\/\)$/{
  10732. s//\1/
  10733. q
  10734. }
  10735. /^X\(\/\).*/{
  10736. s//\1/
  10737. q
  10738. }
  10739. s/.*/./; q'`
  10740. else
  10741. continue
  10742. fi
  10743. # Extract the definition of DEPDIR, am__include, and am__quote
  10744. # from the Makefile without running `make'.
  10745. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10746. test -z "$DEPDIR" && continue
  10747. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10748. test -z "am__include" && continue
  10749. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10750. # When using ansi2knr, U may be empty or an underscore; expand it
  10751. U=`sed -n 's/^U = //p' < "$mf"`
  10752. # Find all dependency output files, they are included files with
  10753. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10754. # simplest approach to changing $(DEPDIR) to its actual value in the
  10755. # expansion.
  10756. for file in `sed -n "
  10757. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10758. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10759. # Make sure the directory exists.
  10760. test -f "$dirpart/$file" && continue
  10761. fdir=`$as_dirname -- "$file" ||
  10762. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10763. X"$file" : 'X\(//\)[^/]' \| \
  10764. X"$file" : 'X\(//\)$' \| \
  10765. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10766. $as_echo X"$file" |
  10767. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10768. s//\1/
  10769. q
  10770. }
  10771. /^X\(\/\/\)[^/].*/{
  10772. s//\1/
  10773. q
  10774. }
  10775. /^X\(\/\/\)$/{
  10776. s//\1/
  10777. q
  10778. }
  10779. /^X\(\/\).*/{
  10780. s//\1/
  10781. q
  10782. }
  10783. s/.*/./; q'`
  10784. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10785. # echo "creating $dirpart/$file"
  10786. echo '# dummy' > "$dirpart/$file"
  10787. done
  10788. done
  10789. }
  10790. ;;
  10791. "libtool":C)
  10792. # See if we are running on zsh, and set the options which allow our
  10793. # commands through without removal of \ escapes.
  10794. if test -n "${ZSH_VERSION+set}" ; then
  10795. setopt NO_GLOB_SUBST
  10796. fi
  10797. cfgfile="${ofile}T"
  10798. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10799. $RM "$cfgfile"
  10800. cat <<_LT_EOF >> "$cfgfile"
  10801. #! $SHELL
  10802. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10803. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10804. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10805. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10806. #
  10807. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  10808. # 2006, 2007, 2008 Free Software Foundation, Inc.
  10809. # Written by Gordon Matzigkeit, 1996
  10810. #
  10811. # This file is part of GNU Libtool.
  10812. #
  10813. # GNU Libtool is free software; you can redistribute it and/or
  10814. # modify it under the terms of the GNU General Public License as
  10815. # published by the Free Software Foundation; either version 2 of
  10816. # the License, or (at your option) any later version.
  10817. #
  10818. # As a special exception to the GNU General Public License,
  10819. # if you distribute this file as part of a program or library that
  10820. # is built using GNU Libtool, you may include this file under the
  10821. # same distribution terms that you use for the rest of that program.
  10822. #
  10823. # GNU Libtool is distributed in the hope that it will be useful,
  10824. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10825. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10826. # GNU General Public License for more details.
  10827. #
  10828. # You should have received a copy of the GNU General Public License
  10829. # along with GNU Libtool; see the file COPYING. If not, a copy
  10830. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  10831. # obtained by writing to the Free Software Foundation, Inc.,
  10832. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10833. # The names of the tagged configurations supported by this script.
  10834. available_tags=""
  10835. # ### BEGIN LIBTOOL CONFIG
  10836. # Which release of libtool.m4 was used?
  10837. macro_version=$macro_version
  10838. macro_revision=$macro_revision
  10839. # Whether or not to build shared libraries.
  10840. build_libtool_libs=$enable_shared
  10841. # Whether or not to build static libraries.
  10842. build_old_libs=$enable_static
  10843. # What type of objects to build.
  10844. pic_mode=$pic_mode
  10845. # Whether or not to optimize for fast installation.
  10846. fast_install=$enable_fast_install
  10847. # The host system.
  10848. host_alias=$host_alias
  10849. host=$host
  10850. host_os=$host_os
  10851. # The build system.
  10852. build_alias=$build_alias
  10853. build=$build
  10854. build_os=$build_os
  10855. # A sed program that does not truncate output.
  10856. SED=$lt_SED
  10857. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10858. Xsed="\$SED -e 1s/^X//"
  10859. # A grep program that handles long lines.
  10860. GREP=$lt_GREP
  10861. # An ERE matcher.
  10862. EGREP=$lt_EGREP
  10863. # A literal string matcher.
  10864. FGREP=$lt_FGREP
  10865. # A BSD- or MS-compatible name lister.
  10866. NM=$lt_NM
  10867. # Whether we need soft or hard links.
  10868. LN_S=$lt_LN_S
  10869. # What is the maximum length of a command?
  10870. max_cmd_len=$max_cmd_len
  10871. # Object file suffix (normally "o").
  10872. objext=$ac_objext
  10873. # Executable file suffix (normally "").
  10874. exeext=$exeext
  10875. # whether the shell understands "unset".
  10876. lt_unset=$lt_unset
  10877. # turn spaces into newlines.
  10878. SP2NL=$lt_lt_SP2NL
  10879. # turn newlines into spaces.
  10880. NL2SP=$lt_lt_NL2SP
  10881. # How to create reloadable object files.
  10882. reload_flag=$lt_reload_flag
  10883. reload_cmds=$lt_reload_cmds
  10884. # An object symbol dumper.
  10885. OBJDUMP=$lt_OBJDUMP
  10886. # Method to check whether dependent libraries are shared objects.
  10887. deplibs_check_method=$lt_deplibs_check_method
  10888. # Command to use when deplibs_check_method == "file_magic".
  10889. file_magic_cmd=$lt_file_magic_cmd
  10890. # The archiver.
  10891. AR=$lt_AR
  10892. AR_FLAGS=$lt_AR_FLAGS
  10893. # A symbol stripping program.
  10894. STRIP=$lt_STRIP
  10895. # Commands used to install an old-style archive.
  10896. RANLIB=$lt_RANLIB
  10897. old_postinstall_cmds=$lt_old_postinstall_cmds
  10898. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10899. # A C compiler.
  10900. LTCC=$lt_CC
  10901. # LTCC compiler flags.
  10902. LTCFLAGS=$lt_CFLAGS
  10903. # Take the output of nm and produce a listing of raw symbols and C names.
  10904. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10905. # Transform the output of nm in a proper C declaration.
  10906. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10907. # Transform the output of nm in a C name address pair.
  10908. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10909. # Transform the output of nm in a C name address pair when lib prefix is needed.
  10910. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  10911. # The name of the directory that contains temporary libtool files.
  10912. objdir=$objdir
  10913. # Shell to use when invoking shell scripts.
  10914. SHELL=$lt_SHELL
  10915. # An echo program that does not interpret backslashes.
  10916. ECHO=$lt_ECHO
  10917. # Used to examine libraries when file_magic_cmd begins with "file".
  10918. MAGIC_CMD=$MAGIC_CMD
  10919. # Must we lock files when doing compilation?
  10920. need_locks=$lt_need_locks
  10921. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  10922. DSYMUTIL=$lt_DSYMUTIL
  10923. # Tool to change global to local symbols on Mac OS X.
  10924. NMEDIT=$lt_NMEDIT
  10925. # Tool to manipulate fat objects and archives on Mac OS X.
  10926. LIPO=$lt_LIPO
  10927. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  10928. OTOOL=$lt_OTOOL
  10929. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  10930. OTOOL64=$lt_OTOOL64
  10931. # Old archive suffix (normally "a").
  10932. libext=$libext
  10933. # Shared library suffix (normally ".so").
  10934. shrext_cmds=$lt_shrext_cmds
  10935. # The commands to extract the exported symbol list from a shared archive.
  10936. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10937. # Variables whose values should be saved in libtool wrapper scripts and
  10938. # restored at link time.
  10939. variables_saved_for_relink=$lt_variables_saved_for_relink
  10940. # Do we need the "lib" prefix for modules?
  10941. need_lib_prefix=$need_lib_prefix
  10942. # Do we need a version for libraries?
  10943. need_version=$need_version
  10944. # Library versioning type.
  10945. version_type=$version_type
  10946. # Shared library runtime path variable.
  10947. runpath_var=$runpath_var
  10948. # Shared library path variable.
  10949. shlibpath_var=$shlibpath_var
  10950. # Is shlibpath searched before the hard-coded library search path?
  10951. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10952. # Format of library name prefix.
  10953. libname_spec=$lt_libname_spec
  10954. # List of archive names. First name is the real one, the rest are links.
  10955. # The last name is the one that the linker finds with -lNAME
  10956. library_names_spec=$lt_library_names_spec
  10957. # The coded name of the library, if different from the real name.
  10958. soname_spec=$lt_soname_spec
  10959. # Command to use after installation of a shared archive.
  10960. postinstall_cmds=$lt_postinstall_cmds
  10961. # Command to use after uninstallation of a shared archive.
  10962. postuninstall_cmds=$lt_postuninstall_cmds
  10963. # Commands used to finish a libtool library installation in a directory.
  10964. finish_cmds=$lt_finish_cmds
  10965. # As "finish_cmds", except a single script fragment to be evaled but
  10966. # not shown.
  10967. finish_eval=$lt_finish_eval
  10968. # Whether we should hardcode library paths into libraries.
  10969. hardcode_into_libs=$hardcode_into_libs
  10970. # Compile-time system search path for libraries.
  10971. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10972. # Run-time system search path for libraries.
  10973. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10974. # Whether dlopen is supported.
  10975. dlopen_support=$enable_dlopen
  10976. # Whether dlopen of programs is supported.
  10977. dlopen_self=$enable_dlopen_self
  10978. # Whether dlopen of statically linked programs is supported.
  10979. dlopen_self_static=$enable_dlopen_self_static
  10980. # Commands to strip libraries.
  10981. old_striplib=$lt_old_striplib
  10982. striplib=$lt_striplib
  10983. # The linker used to build libraries.
  10984. LD=$lt_LD
  10985. # Commands used to build an old-style archive.
  10986. old_archive_cmds=$lt_old_archive_cmds
  10987. # A language specific compiler.
  10988. CC=$lt_compiler
  10989. # Is the compiler the GNU compiler?
  10990. with_gcc=$GCC
  10991. # Compiler flag to turn off builtin functions.
  10992. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  10993. # How to pass a linker flag through the compiler.
  10994. wl=$lt_lt_prog_compiler_wl
  10995. # Additional compiler flags for building library objects.
  10996. pic_flag=$lt_lt_prog_compiler_pic
  10997. # Compiler flag to prevent dynamic linking.
  10998. link_static_flag=$lt_lt_prog_compiler_static
  10999. # Does compiler simultaneously support -c and -o options?
  11000. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11001. # Whether or not to add -lc for building shared libraries.
  11002. build_libtool_need_lc=$archive_cmds_need_lc
  11003. # Whether or not to disallow shared libs when runtime libs are static.
  11004. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11005. # Compiler flag to allow reflexive dlopens.
  11006. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11007. # Compiler flag to generate shared objects directly from archives.
  11008. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11009. # Whether the compiler copes with passing no objects directly.
  11010. compiler_needs_object=$lt_compiler_needs_object
  11011. # Create an old-style archive from a shared archive.
  11012. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11013. # Create a temporary old-style archive to link instead of a shared archive.
  11014. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11015. # Commands used to build a shared archive.
  11016. archive_cmds=$lt_archive_cmds
  11017. archive_expsym_cmds=$lt_archive_expsym_cmds
  11018. # Commands used to build a loadable module if different from building
  11019. # a shared archive.
  11020. module_cmds=$lt_module_cmds
  11021. module_expsym_cmds=$lt_module_expsym_cmds
  11022. # Whether we are building with GNU ld or not.
  11023. with_gnu_ld=$lt_with_gnu_ld
  11024. # Flag that allows shared libraries with undefined symbols to be built.
  11025. allow_undefined_flag=$lt_allow_undefined_flag
  11026. # Flag that enforces no undefined symbols.
  11027. no_undefined_flag=$lt_no_undefined_flag
  11028. # Flag to hardcode \$libdir into a binary during linking.
  11029. # This must work even if \$libdir does not exist
  11030. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11031. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11032. # during linking. This must work even if \$libdir does not exist.
  11033. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11034. # Whether we need a single "-rpath" flag with a separated argument.
  11035. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11036. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11037. # DIR into the resulting binary.
  11038. hardcode_direct=$hardcode_direct
  11039. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11040. # DIR into the resulting binary and the resulting library dependency is
  11041. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11042. # library is relocated.
  11043. hardcode_direct_absolute=$hardcode_direct_absolute
  11044. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11045. # into the resulting binary.
  11046. hardcode_minus_L=$hardcode_minus_L
  11047. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11048. # into the resulting binary.
  11049. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11050. # Set to "yes" if building a shared library automatically hardcodes DIR
  11051. # into the library and all subsequent libraries and executables linked
  11052. # against it.
  11053. hardcode_automatic=$hardcode_automatic
  11054. # Set to yes if linker adds runtime paths of dependent libraries
  11055. # to runtime path list.
  11056. inherit_rpath=$inherit_rpath
  11057. # Whether libtool must link a program against all its dependency libraries.
  11058. link_all_deplibs=$link_all_deplibs
  11059. # Fix the shell variable \$srcfile for the compiler.
  11060. fix_srcfile_path=$lt_fix_srcfile_path
  11061. # Set to "yes" if exported symbols are required.
  11062. always_export_symbols=$always_export_symbols
  11063. # The commands to list exported symbols.
  11064. export_symbols_cmds=$lt_export_symbols_cmds
  11065. # Symbols that should not be listed in the preloaded symbols.
  11066. exclude_expsyms=$lt_exclude_expsyms
  11067. # Symbols that must always be exported.
  11068. include_expsyms=$lt_include_expsyms
  11069. # Commands necessary for linking programs (against libraries) with templates.
  11070. prelink_cmds=$lt_prelink_cmds
  11071. # Specify filename containing input files.
  11072. file_list_spec=$lt_file_list_spec
  11073. # How to hardcode a shared library path into an executable.
  11074. hardcode_action=$hardcode_action
  11075. # ### END LIBTOOL CONFIG
  11076. _LT_EOF
  11077. case $host_os in
  11078. aix3*)
  11079. cat <<\_LT_EOF >> "$cfgfile"
  11080. # AIX sometimes has problems with the GCC collect2 program. For some
  11081. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11082. # vanish in a puff of smoke.
  11083. if test "X${COLLECT_NAMES+set}" != Xset; then
  11084. COLLECT_NAMES=
  11085. export COLLECT_NAMES
  11086. fi
  11087. _LT_EOF
  11088. ;;
  11089. esac
  11090. ltmain="$ac_aux_dir/ltmain.sh"
  11091. # We use sed instead of cat because bash on DJGPP gets confused if
  11092. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11093. # text mode, it properly converts lines to CR/LF. This bash problem
  11094. # is reportedly fixed, but why not run on old versions too?
  11095. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11096. || (rm -f "$cfgfile"; exit 1)
  11097. case $xsi_shell in
  11098. yes)
  11099. cat << \_LT_EOF >> "$cfgfile"
  11100. # func_dirname file append nondir_replacement
  11101. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11102. # otherwise set result to NONDIR_REPLACEMENT.
  11103. func_dirname ()
  11104. {
  11105. case ${1} in
  11106. */*) func_dirname_result="${1%/*}${2}" ;;
  11107. * ) func_dirname_result="${3}" ;;
  11108. esac
  11109. }
  11110. # func_basename file
  11111. func_basename ()
  11112. {
  11113. func_basename_result="${1##*/}"
  11114. }
  11115. # func_dirname_and_basename file append nondir_replacement
  11116. # perform func_basename and func_dirname in a single function
  11117. # call:
  11118. # dirname: Compute the dirname of FILE. If nonempty,
  11119. # add APPEND to the result, otherwise set result
  11120. # to NONDIR_REPLACEMENT.
  11121. # value returned in "$func_dirname_result"
  11122. # basename: Compute filename of FILE.
  11123. # value retuned in "$func_basename_result"
  11124. # Implementation must be kept synchronized with func_dirname
  11125. # and func_basename. For efficiency, we do not delegate to
  11126. # those functions but instead duplicate the functionality here.
  11127. func_dirname_and_basename ()
  11128. {
  11129. case ${1} in
  11130. */*) func_dirname_result="${1%/*}${2}" ;;
  11131. * ) func_dirname_result="${3}" ;;
  11132. esac
  11133. func_basename_result="${1##*/}"
  11134. }
  11135. # func_stripname prefix suffix name
  11136. # strip PREFIX and SUFFIX off of NAME.
  11137. # PREFIX and SUFFIX must not contain globbing or regex special
  11138. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11139. # dot (in which case that matches only a dot).
  11140. func_stripname ()
  11141. {
  11142. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11143. # positional parameters, so assign one to ordinary parameter first.
  11144. func_stripname_result=${3}
  11145. func_stripname_result=${func_stripname_result#"${1}"}
  11146. func_stripname_result=${func_stripname_result%"${2}"}
  11147. }
  11148. # func_opt_split
  11149. func_opt_split ()
  11150. {
  11151. func_opt_split_opt=${1%%=*}
  11152. func_opt_split_arg=${1#*=}
  11153. }
  11154. # func_lo2o object
  11155. func_lo2o ()
  11156. {
  11157. case ${1} in
  11158. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11159. *) func_lo2o_result=${1} ;;
  11160. esac
  11161. }
  11162. # func_xform libobj-or-source
  11163. func_xform ()
  11164. {
  11165. func_xform_result=${1%.*}.lo
  11166. }
  11167. # func_arith arithmetic-term...
  11168. func_arith ()
  11169. {
  11170. func_arith_result=$(( $* ))
  11171. }
  11172. # func_len string
  11173. # STRING may not start with a hyphen.
  11174. func_len ()
  11175. {
  11176. func_len_result=${#1}
  11177. }
  11178. _LT_EOF
  11179. ;;
  11180. *) # Bourne compatible functions.
  11181. cat << \_LT_EOF >> "$cfgfile"
  11182. # func_dirname file append nondir_replacement
  11183. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11184. # otherwise set result to NONDIR_REPLACEMENT.
  11185. func_dirname ()
  11186. {
  11187. # Extract subdirectory from the argument.
  11188. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11189. if test "X$func_dirname_result" = "X${1}"; then
  11190. func_dirname_result="${3}"
  11191. else
  11192. func_dirname_result="$func_dirname_result${2}"
  11193. fi
  11194. }
  11195. # func_basename file
  11196. func_basename ()
  11197. {
  11198. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11199. }
  11200. # func_stripname prefix suffix name
  11201. # strip PREFIX and SUFFIX off of NAME.
  11202. # PREFIX and SUFFIX must not contain globbing or regex special
  11203. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11204. # dot (in which case that matches only a dot).
  11205. # func_strip_suffix prefix name
  11206. func_stripname ()
  11207. {
  11208. case ${2} in
  11209. .*) func_stripname_result=`$ECHO "X${3}" \
  11210. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11211. *) func_stripname_result=`$ECHO "X${3}" \
  11212. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11213. esac
  11214. }
  11215. # sed scripts:
  11216. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11217. my_sed_long_arg='1s/^-[^=]*=//'
  11218. # func_opt_split
  11219. func_opt_split ()
  11220. {
  11221. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11222. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11223. }
  11224. # func_lo2o object
  11225. func_lo2o ()
  11226. {
  11227. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11228. }
  11229. # func_xform libobj-or-source
  11230. func_xform ()
  11231. {
  11232. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  11233. }
  11234. # func_arith arithmetic-term...
  11235. func_arith ()
  11236. {
  11237. func_arith_result=`expr "$@"`
  11238. }
  11239. # func_len string
  11240. # STRING may not start with a hyphen.
  11241. func_len ()
  11242. {
  11243. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11244. }
  11245. _LT_EOF
  11246. esac
  11247. case $lt_shell_append in
  11248. yes)
  11249. cat << \_LT_EOF >> "$cfgfile"
  11250. # func_append var value
  11251. # Append VALUE to the end of shell variable VAR.
  11252. func_append ()
  11253. {
  11254. eval "$1+=\$2"
  11255. }
  11256. _LT_EOF
  11257. ;;
  11258. *)
  11259. cat << \_LT_EOF >> "$cfgfile"
  11260. # func_append var value
  11261. # Append VALUE to the end of shell variable VAR.
  11262. func_append ()
  11263. {
  11264. eval "$1=\$$1\$2"
  11265. }
  11266. _LT_EOF
  11267. ;;
  11268. esac
  11269. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11270. || (rm -f "$cfgfile"; exit 1)
  11271. mv -f "$cfgfile" "$ofile" ||
  11272. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11273. chmod +x "$ofile"
  11274. ;;
  11275. esac
  11276. done # for ac_tag
  11277. as_fn_exit 0
  11278. _ACEOF
  11279. ac_clean_files=$ac_clean_files_save
  11280. test $ac_write_fail = 0 ||
  11281. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11282. # configure is writing to config.log, and then calls config.status.
  11283. # config.status does its own redirection, appending to config.log.
  11284. # Unfortunately, on DOS this fails, as config.log is still kept open
  11285. # by configure, so config.status won't be able to write to it; its
  11286. # output is simply discarded. So we exec the FD to /dev/null,
  11287. # effectively closing config.log, so it can be properly (re)opened and
  11288. # appended to by config.status. When coming back to configure, we
  11289. # need to make the FD available again.
  11290. if test "$no_create" != yes; then
  11291. ac_cs_success=:
  11292. ac_config_status_args=
  11293. test "$silent" = yes &&
  11294. ac_config_status_args="$ac_config_status_args --quiet"
  11295. exec 5>/dev/null
  11296. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11297. exec 5>>config.log
  11298. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11299. # would make configure fail if this is the last instruction.
  11300. $ac_cs_success || as_fn_exit 1
  11301. fi
  11302. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11304. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11305. fi