configure 406 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for jansson 2.4.
  4. #
  5. # Report bugs to <petri@digip.org>.
  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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and petri@digip.org
  231. $0: about your system, including any error possibly output
  232. $0: before this message. Then install a modern shell, or
  233. $0: manually run the script under such a shell if you do
  234. $0: have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='jansson'
  523. PACKAGE_TARNAME='jansson'
  524. PACKAGE_VERSION='2.4'
  525. PACKAGE_STRING='jansson 2.4'
  526. PACKAGE_BUGREPORT='petri@digip.org'
  527. PACKAGE_URL=''
  528. ac_unique_file="src/value.c"
  529. # Factoring default headers for most tests.
  530. ac_includes_default="\
  531. #include <stdio.h>
  532. #ifdef HAVE_SYS_TYPES_H
  533. # include <sys/types.h>
  534. #endif
  535. #ifdef HAVE_SYS_STAT_H
  536. # include <sys/stat.h>
  537. #endif
  538. #ifdef STDC_HEADERS
  539. # include <stdlib.h>
  540. # include <stddef.h>
  541. #else
  542. # ifdef HAVE_STDLIB_H
  543. # include <stdlib.h>
  544. # endif
  545. #endif
  546. #ifdef HAVE_STRING_H
  547. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  548. # include <memory.h>
  549. # endif
  550. # include <string.h>
  551. #endif
  552. #ifdef HAVE_STRINGS_H
  553. # include <strings.h>
  554. #endif
  555. #ifdef HAVE_INTTYPES_H
  556. # include <inttypes.h>
  557. #endif
  558. #ifdef HAVE_STDINT_H
  559. # include <stdint.h>
  560. #endif
  561. #ifdef HAVE_UNISTD_H
  562. # include <unistd.h>
  563. #endif"
  564. ac_subst_vars='am__EXEEXT_FALSE
  565. am__EXEEXT_TRUE
  566. LTLIBOBJS
  567. LIBOBJS
  568. json_have_localeconv
  569. json_have_long_long
  570. json_inline
  571. GCC_FALSE
  572. GCC_TRUE
  573. CPP
  574. OTOOL64
  575. OTOOL
  576. LIPO
  577. NMEDIT
  578. DSYMUTIL
  579. MANIFEST_TOOL
  580. RANLIB
  581. ac_ct_AR
  582. AR
  583. DLLTOOL
  584. OBJDUMP
  585. LN_S
  586. NM
  587. ac_ct_DUMPBIN
  588. DUMPBIN
  589. LD
  590. FGREP
  591. EGREP
  592. GREP
  593. SED
  594. host_os
  595. host_vendor
  596. host_cpu
  597. host
  598. build_os
  599. build_vendor
  600. build_cpu
  601. build
  602. LIBTOOL
  603. am__fastdepCC_FALSE
  604. am__fastdepCC_TRUE
  605. CCDEPMODE
  606. am__nodep
  607. AMDEPBACKSLASH
  608. AMDEP_FALSE
  609. AMDEP_TRUE
  610. am__quote
  611. am__include
  612. DEPDIR
  613. OBJEXT
  614. EXEEXT
  615. ac_ct_CC
  616. CPPFLAGS
  617. LDFLAGS
  618. CFLAGS
  619. CC
  620. am__untar
  621. am__tar
  622. AMTAR
  623. am__leading_dot
  624. SET_MAKE
  625. AWK
  626. mkdir_p
  627. MKDIR_P
  628. INSTALL_STRIP_PROGRAM
  629. STRIP
  630. install_sh
  631. MAKEINFO
  632. AUTOHEADER
  633. AUTOMAKE
  634. AUTOCONF
  635. ACLOCAL
  636. VERSION
  637. PACKAGE
  638. CYGPATH_W
  639. am__isrc
  640. INSTALL_DATA
  641. INSTALL_SCRIPT
  642. INSTALL_PROGRAM
  643. target_alias
  644. host_alias
  645. build_alias
  646. LIBS
  647. ECHO_T
  648. ECHO_N
  649. ECHO_C
  650. DEFS
  651. mandir
  652. localedir
  653. libdir
  654. psdir
  655. pdfdir
  656. dvidir
  657. htmldir
  658. infodir
  659. docdir
  660. oldincludedir
  661. includedir
  662. localstatedir
  663. sharedstatedir
  664. sysconfdir
  665. datadir
  666. datarootdir
  667. libexecdir
  668. sbindir
  669. bindir
  670. program_transform_name
  671. prefix
  672. exec_prefix
  673. PACKAGE_URL
  674. PACKAGE_BUGREPORT
  675. PACKAGE_STRING
  676. PACKAGE_VERSION
  677. PACKAGE_TARNAME
  678. PACKAGE_NAME
  679. PATH_SEPARATOR
  680. SHELL'
  681. ac_subst_files=''
  682. ac_user_opts='
  683. enable_option_checking
  684. enable_dependency_tracking
  685. enable_shared
  686. enable_static
  687. with_pic
  688. enable_fast_install
  689. with_gnu_ld
  690. with_sysroot
  691. enable_libtool_lock
  692. '
  693. ac_precious_vars='build_alias
  694. host_alias
  695. target_alias
  696. CC
  697. CFLAGS
  698. LDFLAGS
  699. LIBS
  700. CPPFLAGS
  701. CPP'
  702. # Initialize some variables set by options.
  703. ac_init_help=
  704. ac_init_version=false
  705. ac_unrecognized_opts=
  706. ac_unrecognized_sep=
  707. # The variables have the same names as the options, with
  708. # dashes changed to underlines.
  709. cache_file=/dev/null
  710. exec_prefix=NONE
  711. no_create=
  712. no_recursion=
  713. prefix=NONE
  714. program_prefix=NONE
  715. program_suffix=NONE
  716. program_transform_name=s,x,x,
  717. silent=
  718. site=
  719. srcdir=
  720. verbose=
  721. x_includes=NONE
  722. x_libraries=NONE
  723. # Installation directory options.
  724. # These are left unexpanded so users can "make install exec_prefix=/foo"
  725. # and all the variables that are supposed to be based on exec_prefix
  726. # by default will actually change.
  727. # Use braces instead of parens because sh, perl, etc. also accept them.
  728. # (The list follows the same order as the GNU Coding Standards.)
  729. bindir='${exec_prefix}/bin'
  730. sbindir='${exec_prefix}/sbin'
  731. libexecdir='${exec_prefix}/libexec'
  732. datarootdir='${prefix}/share'
  733. datadir='${datarootdir}'
  734. sysconfdir='${prefix}/etc'
  735. sharedstatedir='${prefix}/com'
  736. localstatedir='${prefix}/var'
  737. includedir='${prefix}/include'
  738. oldincludedir='/usr/include'
  739. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  740. infodir='${datarootdir}/info'
  741. htmldir='${docdir}'
  742. dvidir='${docdir}'
  743. pdfdir='${docdir}'
  744. psdir='${docdir}'
  745. libdir='${exec_prefix}/lib'
  746. localedir='${datarootdir}/locale'
  747. mandir='${datarootdir}/man'
  748. ac_prev=
  749. ac_dashdash=
  750. for ac_option
  751. do
  752. # If the previous option needs an argument, assign it.
  753. if test -n "$ac_prev"; then
  754. eval $ac_prev=\$ac_option
  755. ac_prev=
  756. continue
  757. fi
  758. case $ac_option in
  759. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  760. *=) ac_optarg= ;;
  761. *) ac_optarg=yes ;;
  762. esac
  763. # Accept the important Cygnus configure options, so we can diagnose typos.
  764. case $ac_dashdash$ac_option in
  765. --)
  766. ac_dashdash=yes ;;
  767. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  768. ac_prev=bindir ;;
  769. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  770. bindir=$ac_optarg ;;
  771. -build | --build | --buil | --bui | --bu)
  772. ac_prev=build_alias ;;
  773. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  774. build_alias=$ac_optarg ;;
  775. -cache-file | --cache-file | --cache-fil | --cache-fi \
  776. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  777. ac_prev=cache_file ;;
  778. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  779. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  780. cache_file=$ac_optarg ;;
  781. --config-cache | -C)
  782. cache_file=config.cache ;;
  783. -datadir | --datadir | --datadi | --datad)
  784. ac_prev=datadir ;;
  785. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  786. datadir=$ac_optarg ;;
  787. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  788. | --dataroo | --dataro | --datar)
  789. ac_prev=datarootdir ;;
  790. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  791. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  792. datarootdir=$ac_optarg ;;
  793. -disable-* | --disable-*)
  794. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  795. # Reject names that are not valid shell variable names.
  796. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  797. as_fn_error $? "invalid feature name: $ac_useropt"
  798. ac_useropt_orig=$ac_useropt
  799. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  800. case $ac_user_opts in
  801. *"
  802. "enable_$ac_useropt"
  803. "*) ;;
  804. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  805. ac_unrecognized_sep=', ';;
  806. esac
  807. eval enable_$ac_useropt=no ;;
  808. -docdir | --docdir | --docdi | --doc | --do)
  809. ac_prev=docdir ;;
  810. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  811. docdir=$ac_optarg ;;
  812. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  813. ac_prev=dvidir ;;
  814. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  815. dvidir=$ac_optarg ;;
  816. -enable-* | --enable-*)
  817. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  818. # Reject names that are not valid shell variable names.
  819. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  820. as_fn_error $? "invalid feature name: $ac_useropt"
  821. ac_useropt_orig=$ac_useropt
  822. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  823. case $ac_user_opts in
  824. *"
  825. "enable_$ac_useropt"
  826. "*) ;;
  827. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  828. ac_unrecognized_sep=', ';;
  829. esac
  830. eval enable_$ac_useropt=\$ac_optarg ;;
  831. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  832. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  833. | --exec | --exe | --ex)
  834. ac_prev=exec_prefix ;;
  835. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  836. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  837. | --exec=* | --exe=* | --ex=*)
  838. exec_prefix=$ac_optarg ;;
  839. -gas | --gas | --ga | --g)
  840. # Obsolete; use --with-gas.
  841. with_gas=yes ;;
  842. -help | --help | --hel | --he | -h)
  843. ac_init_help=long ;;
  844. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  845. ac_init_help=recursive ;;
  846. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  847. ac_init_help=short ;;
  848. -host | --host | --hos | --ho)
  849. ac_prev=host_alias ;;
  850. -host=* | --host=* | --hos=* | --ho=*)
  851. host_alias=$ac_optarg ;;
  852. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  853. ac_prev=htmldir ;;
  854. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  855. | --ht=*)
  856. htmldir=$ac_optarg ;;
  857. -includedir | --includedir | --includedi | --included | --include \
  858. | --includ | --inclu | --incl | --inc)
  859. ac_prev=includedir ;;
  860. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  861. | --includ=* | --inclu=* | --incl=* | --inc=*)
  862. includedir=$ac_optarg ;;
  863. -infodir | --infodir | --infodi | --infod | --info | --inf)
  864. ac_prev=infodir ;;
  865. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  866. infodir=$ac_optarg ;;
  867. -libdir | --libdir | --libdi | --libd)
  868. ac_prev=libdir ;;
  869. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  870. libdir=$ac_optarg ;;
  871. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  872. | --libexe | --libex | --libe)
  873. ac_prev=libexecdir ;;
  874. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  875. | --libexe=* | --libex=* | --libe=*)
  876. libexecdir=$ac_optarg ;;
  877. -localedir | --localedir | --localedi | --localed | --locale)
  878. ac_prev=localedir ;;
  879. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  880. localedir=$ac_optarg ;;
  881. -localstatedir | --localstatedir | --localstatedi | --localstated \
  882. | --localstate | --localstat | --localsta | --localst | --locals)
  883. ac_prev=localstatedir ;;
  884. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  885. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  886. localstatedir=$ac_optarg ;;
  887. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  888. ac_prev=mandir ;;
  889. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  890. mandir=$ac_optarg ;;
  891. -nfp | --nfp | --nf)
  892. # Obsolete; use --without-fp.
  893. with_fp=no ;;
  894. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  895. | --no-cr | --no-c | -n)
  896. no_create=yes ;;
  897. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  898. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  899. no_recursion=yes ;;
  900. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  901. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  902. | --oldin | --oldi | --old | --ol | --o)
  903. ac_prev=oldincludedir ;;
  904. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  905. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  906. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  907. oldincludedir=$ac_optarg ;;
  908. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  909. ac_prev=prefix ;;
  910. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  911. prefix=$ac_optarg ;;
  912. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  913. | --program-pre | --program-pr | --program-p)
  914. ac_prev=program_prefix ;;
  915. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  916. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  917. program_prefix=$ac_optarg ;;
  918. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  919. | --program-suf | --program-su | --program-s)
  920. ac_prev=program_suffix ;;
  921. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  922. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  923. program_suffix=$ac_optarg ;;
  924. -program-transform-name | --program-transform-name \
  925. | --program-transform-nam | --program-transform-na \
  926. | --program-transform-n | --program-transform- \
  927. | --program-transform | --program-transfor \
  928. | --program-transfo | --program-transf \
  929. | --program-trans | --program-tran \
  930. | --progr-tra | --program-tr | --program-t)
  931. ac_prev=program_transform_name ;;
  932. -program-transform-name=* | --program-transform-name=* \
  933. | --program-transform-nam=* | --program-transform-na=* \
  934. | --program-transform-n=* | --program-transform-=* \
  935. | --program-transform=* | --program-transfor=* \
  936. | --program-transfo=* | --program-transf=* \
  937. | --program-trans=* | --program-tran=* \
  938. | --progr-tra=* | --program-tr=* | --program-t=*)
  939. program_transform_name=$ac_optarg ;;
  940. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  941. ac_prev=pdfdir ;;
  942. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  943. pdfdir=$ac_optarg ;;
  944. -psdir | --psdir | --psdi | --psd | --ps)
  945. ac_prev=psdir ;;
  946. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  947. psdir=$ac_optarg ;;
  948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  949. | -silent | --silent | --silen | --sile | --sil)
  950. silent=yes ;;
  951. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  952. ac_prev=sbindir ;;
  953. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  954. | --sbi=* | --sb=*)
  955. sbindir=$ac_optarg ;;
  956. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  957. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  958. | --sharedst | --shareds | --shared | --share | --shar \
  959. | --sha | --sh)
  960. ac_prev=sharedstatedir ;;
  961. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  962. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  963. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  964. | --sha=* | --sh=*)
  965. sharedstatedir=$ac_optarg ;;
  966. -site | --site | --sit)
  967. ac_prev=site ;;
  968. -site=* | --site=* | --sit=*)
  969. site=$ac_optarg ;;
  970. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  971. ac_prev=srcdir ;;
  972. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  973. srcdir=$ac_optarg ;;
  974. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  975. | --syscon | --sysco | --sysc | --sys | --sy)
  976. ac_prev=sysconfdir ;;
  977. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  978. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  979. sysconfdir=$ac_optarg ;;
  980. -target | --target | --targe | --targ | --tar | --ta | --t)
  981. ac_prev=target_alias ;;
  982. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  983. target_alias=$ac_optarg ;;
  984. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  985. verbose=yes ;;
  986. -version | --version | --versio | --versi | --vers | -V)
  987. ac_init_version=: ;;
  988. -with-* | --with-*)
  989. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  992. as_fn_error $? "invalid package name: $ac_useropt"
  993. ac_useropt_orig=$ac_useropt
  994. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  995. case $ac_user_opts in
  996. *"
  997. "with_$ac_useropt"
  998. "*) ;;
  999. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1000. ac_unrecognized_sep=', ';;
  1001. esac
  1002. eval with_$ac_useropt=\$ac_optarg ;;
  1003. -without-* | --without-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid package name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "with_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval with_$ac_useropt=no ;;
  1018. --x)
  1019. # Obsolete; use --with-x.
  1020. with_x=yes ;;
  1021. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1022. | --x-incl | --x-inc | --x-in | --x-i)
  1023. ac_prev=x_includes ;;
  1024. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1025. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1026. x_includes=$ac_optarg ;;
  1027. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1028. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1029. ac_prev=x_libraries ;;
  1030. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1031. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1032. x_libraries=$ac_optarg ;;
  1033. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1034. Try \`$0 --help' for more information"
  1035. ;;
  1036. *=*)
  1037. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1038. # Reject names that are not valid shell variable names.
  1039. case $ac_envvar in #(
  1040. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1041. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1042. esac
  1043. eval $ac_envvar=\$ac_optarg
  1044. export $ac_envvar ;;
  1045. *)
  1046. # FIXME: should be removed in autoconf 3.0.
  1047. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1048. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1049. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1050. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1051. ;;
  1052. esac
  1053. done
  1054. if test -n "$ac_prev"; then
  1055. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1056. as_fn_error $? "missing argument to $ac_option"
  1057. fi
  1058. if test -n "$ac_unrecognized_opts"; then
  1059. case $enable_option_checking in
  1060. no) ;;
  1061. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1062. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1063. esac
  1064. fi
  1065. # Check all directory arguments for consistency.
  1066. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1067. datadir sysconfdir sharedstatedir localstatedir includedir \
  1068. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1069. libdir localedir mandir
  1070. do
  1071. eval ac_val=\$$ac_var
  1072. # Remove trailing slashes.
  1073. case $ac_val in
  1074. */ )
  1075. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1076. eval $ac_var=\$ac_val;;
  1077. esac
  1078. # Be sure to have absolute directory names.
  1079. case $ac_val in
  1080. [\\/$]* | ?:[\\/]* ) continue;;
  1081. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1082. esac
  1083. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1084. done
  1085. # There might be people who depend on the old broken behavior: `$host'
  1086. # used to hold the argument of --host etc.
  1087. # FIXME: To remove some day.
  1088. build=$build_alias
  1089. host=$host_alias
  1090. target=$target_alias
  1091. # FIXME: To remove some day.
  1092. if test "x$host_alias" != x; then
  1093. if test "x$build_alias" = x; then
  1094. cross_compiling=maybe
  1095. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1096. If a cross compiler is detected then cross compile mode will be used" >&2
  1097. elif test "x$build_alias" != "x$host_alias"; then
  1098. cross_compiling=yes
  1099. fi
  1100. fi
  1101. ac_tool_prefix=
  1102. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1103. test "$silent" = yes && exec 6>/dev/null
  1104. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1105. ac_ls_di=`ls -di .` &&
  1106. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1107. as_fn_error $? "working directory cannot be determined"
  1108. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1109. as_fn_error $? "pwd does not report name of working directory"
  1110. # Find the source files, if location was not specified.
  1111. if test -z "$srcdir"; then
  1112. ac_srcdir_defaulted=yes
  1113. # Try the directory containing this script, then the parent directory.
  1114. ac_confdir=`$as_dirname -- "$as_myself" ||
  1115. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1116. X"$as_myself" : 'X\(//\)[^/]' \| \
  1117. X"$as_myself" : 'X\(//\)$' \| \
  1118. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1119. $as_echo X"$as_myself" |
  1120. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1121. s//\1/
  1122. q
  1123. }
  1124. /^X\(\/\/\)[^/].*/{
  1125. s//\1/
  1126. q
  1127. }
  1128. /^X\(\/\/\)$/{
  1129. s//\1/
  1130. q
  1131. }
  1132. /^X\(\/\).*/{
  1133. s//\1/
  1134. q
  1135. }
  1136. s/.*/./; q'`
  1137. srcdir=$ac_confdir
  1138. if test ! -r "$srcdir/$ac_unique_file"; then
  1139. srcdir=..
  1140. fi
  1141. else
  1142. ac_srcdir_defaulted=no
  1143. fi
  1144. if test ! -r "$srcdir/$ac_unique_file"; then
  1145. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1146. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1147. fi
  1148. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1149. ac_abs_confdir=`(
  1150. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1151. pwd)`
  1152. # When building in place, set srcdir=.
  1153. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1154. srcdir=.
  1155. fi
  1156. # Remove unnecessary trailing slashes from srcdir.
  1157. # Double slashes in file names in object file debugging info
  1158. # mess up M-x gdb in Emacs.
  1159. case $srcdir in
  1160. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1161. esac
  1162. for ac_var in $ac_precious_vars; do
  1163. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1164. eval ac_env_${ac_var}_value=\$${ac_var}
  1165. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1167. done
  1168. #
  1169. # Report the --help message.
  1170. #
  1171. if test "$ac_init_help" = "long"; then
  1172. # Omit some internal or obsolete options to make the list less imposing.
  1173. # This message is too long to be a string in the A/UX 3.1 sh.
  1174. cat <<_ACEOF
  1175. \`configure' configures jansson 2.4 to adapt to many kinds of systems.
  1176. Usage: $0 [OPTION]... [VAR=VALUE]...
  1177. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1178. VAR=VALUE. See below for descriptions of some of the useful variables.
  1179. Defaults for the options are specified in brackets.
  1180. Configuration:
  1181. -h, --help display this help and exit
  1182. --help=short display options specific to this package
  1183. --help=recursive display the short help of all the included packages
  1184. -V, --version display version information and exit
  1185. -q, --quiet, --silent do not print \`checking ...' messages
  1186. --cache-file=FILE cache test results in FILE [disabled]
  1187. -C, --config-cache alias for \`--cache-file=config.cache'
  1188. -n, --no-create do not create output files
  1189. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1190. Installation directories:
  1191. --prefix=PREFIX install architecture-independent files in PREFIX
  1192. [$ac_default_prefix]
  1193. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1194. [PREFIX]
  1195. By default, \`make install' will install all the files in
  1196. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1197. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1198. for instance \`--prefix=\$HOME'.
  1199. For better control, use the options below.
  1200. Fine tuning of the installation directories:
  1201. --bindir=DIR user executables [EPREFIX/bin]
  1202. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1203. --libexecdir=DIR program executables [EPREFIX/libexec]
  1204. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1205. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1206. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1207. --libdir=DIR object code libraries [EPREFIX/lib]
  1208. --includedir=DIR C header files [PREFIX/include]
  1209. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1210. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1211. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1212. --infodir=DIR info documentation [DATAROOTDIR/info]
  1213. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1214. --mandir=DIR man documentation [DATAROOTDIR/man]
  1215. --docdir=DIR documentation root [DATAROOTDIR/doc/jansson]
  1216. --htmldir=DIR html documentation [DOCDIR]
  1217. --dvidir=DIR dvi documentation [DOCDIR]
  1218. --pdfdir=DIR pdf documentation [DOCDIR]
  1219. --psdir=DIR ps documentation [DOCDIR]
  1220. _ACEOF
  1221. cat <<\_ACEOF
  1222. Program names:
  1223. --program-prefix=PREFIX prepend PREFIX to installed program names
  1224. --program-suffix=SUFFIX append SUFFIX to installed program names
  1225. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1226. System types:
  1227. --build=BUILD configure for building on BUILD [guessed]
  1228. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1229. _ACEOF
  1230. fi
  1231. if test -n "$ac_init_help"; then
  1232. case $ac_init_help in
  1233. short | recursive ) echo "Configuration of jansson 2.4:";;
  1234. esac
  1235. cat <<\_ACEOF
  1236. Optional Features:
  1237. --disable-option-checking ignore unrecognized --enable/--with options
  1238. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1239. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1240. --disable-dependency-tracking speeds up one-time build
  1241. --enable-dependency-tracking do not reject slow dependency extractors
  1242. --enable-shared[=PKGS] build shared libraries [default=yes]
  1243. --enable-static[=PKGS] build static libraries [default=yes]
  1244. --enable-fast-install[=PKGS]
  1245. optimize for fast installation [default=yes]
  1246. --disable-libtool-lock avoid locking (might break parallel builds)
  1247. Optional Packages:
  1248. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1249. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1250. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1251. both]
  1252. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1253. --with-sysroot=DIR Search for dependent libraries within DIR
  1254. (or the compiler's sysroot if not specified).
  1255. Some influential environment variables:
  1256. CC C compiler command
  1257. CFLAGS C compiler flags
  1258. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1259. nonstandard directory <lib dir>
  1260. LIBS libraries to pass to the linker, e.g. -l<library>
  1261. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1262. you have headers in a nonstandard directory <include dir>
  1263. CPP C preprocessor
  1264. Use these variables to override the choices made by `configure' or to help
  1265. it to find libraries and programs with nonstandard names/locations.
  1266. Report bugs to <petri@digip.org>.
  1267. _ACEOF
  1268. ac_status=$?
  1269. fi
  1270. if test "$ac_init_help" = "recursive"; then
  1271. # If there are subdirs, report their specific --help.
  1272. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1273. test -d "$ac_dir" ||
  1274. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1275. continue
  1276. ac_builddir=.
  1277. case "$ac_dir" in
  1278. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1279. *)
  1280. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1281. # A ".." for each directory in $ac_dir_suffix.
  1282. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1283. case $ac_top_builddir_sub in
  1284. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1285. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1286. esac ;;
  1287. esac
  1288. ac_abs_top_builddir=$ac_pwd
  1289. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1290. # for backward compatibility:
  1291. ac_top_builddir=$ac_top_build_prefix
  1292. case $srcdir in
  1293. .) # We are building in place.
  1294. ac_srcdir=.
  1295. ac_top_srcdir=$ac_top_builddir_sub
  1296. ac_abs_top_srcdir=$ac_pwd ;;
  1297. [\\/]* | ?:[\\/]* ) # Absolute name.
  1298. ac_srcdir=$srcdir$ac_dir_suffix;
  1299. ac_top_srcdir=$srcdir
  1300. ac_abs_top_srcdir=$srcdir ;;
  1301. *) # Relative name.
  1302. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1303. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1304. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1305. esac
  1306. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1307. cd "$ac_dir" || { ac_status=$?; continue; }
  1308. # Check for guested configure.
  1309. if test -f "$ac_srcdir/configure.gnu"; then
  1310. echo &&
  1311. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1312. elif test -f "$ac_srcdir/configure"; then
  1313. echo &&
  1314. $SHELL "$ac_srcdir/configure" --help=recursive
  1315. else
  1316. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1317. fi || ac_status=$?
  1318. cd "$ac_pwd" || { ac_status=$?; break; }
  1319. done
  1320. fi
  1321. test -n "$ac_init_help" && exit $ac_status
  1322. if $ac_init_version; then
  1323. cat <<\_ACEOF
  1324. jansson configure 2.4
  1325. generated by GNU Autoconf 2.68
  1326. Copyright (C) 2010 Free Software Foundation, Inc.
  1327. This configure script is free software; the Free Software Foundation
  1328. gives unlimited permission to copy, distribute and modify it.
  1329. _ACEOF
  1330. exit
  1331. fi
  1332. ## ------------------------ ##
  1333. ## Autoconf initialization. ##
  1334. ## ------------------------ ##
  1335. # ac_fn_c_try_compile LINENO
  1336. # --------------------------
  1337. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1338. ac_fn_c_try_compile ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. rm -f conftest.$ac_objext
  1342. if { { ac_try="$ac_compile"
  1343. case "(($ac_try" in
  1344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1345. *) ac_try_echo=$ac_try;;
  1346. esac
  1347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1348. $as_echo "$ac_try_echo"; } >&5
  1349. (eval "$ac_compile") 2>conftest.err
  1350. ac_status=$?
  1351. if test -s conftest.err; then
  1352. grep -v '^ *+' conftest.err >conftest.er1
  1353. cat conftest.er1 >&5
  1354. mv -f conftest.er1 conftest.err
  1355. fi
  1356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1357. test $ac_status = 0; } && {
  1358. test -z "$ac_c_werror_flag" ||
  1359. test ! -s conftest.err
  1360. } && test -s conftest.$ac_objext; then :
  1361. ac_retval=0
  1362. else
  1363. $as_echo "$as_me: failed program was:" >&5
  1364. sed 's/^/| /' conftest.$ac_ext >&5
  1365. ac_retval=1
  1366. fi
  1367. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1368. as_fn_set_status $ac_retval
  1369. } # ac_fn_c_try_compile
  1370. # ac_fn_c_try_link LINENO
  1371. # -----------------------
  1372. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1373. ac_fn_c_try_link ()
  1374. {
  1375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1376. rm -f conftest.$ac_objext conftest$ac_exeext
  1377. if { { ac_try="$ac_link"
  1378. case "(($ac_try" in
  1379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1380. *) ac_try_echo=$ac_try;;
  1381. esac
  1382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1383. $as_echo "$ac_try_echo"; } >&5
  1384. (eval "$ac_link") 2>conftest.err
  1385. ac_status=$?
  1386. if test -s conftest.err; then
  1387. grep -v '^ *+' conftest.err >conftest.er1
  1388. cat conftest.er1 >&5
  1389. mv -f conftest.er1 conftest.err
  1390. fi
  1391. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1392. test $ac_status = 0; } && {
  1393. test -z "$ac_c_werror_flag" ||
  1394. test ! -s conftest.err
  1395. } && test -s conftest$ac_exeext && {
  1396. test "$cross_compiling" = yes ||
  1397. $as_test_x conftest$ac_exeext
  1398. }; then :
  1399. ac_retval=0
  1400. else
  1401. $as_echo "$as_me: failed program was:" >&5
  1402. sed 's/^/| /' conftest.$ac_ext >&5
  1403. ac_retval=1
  1404. fi
  1405. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1406. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1407. # interfere with the next link command; also delete a directory that is
  1408. # left behind by Apple's compiler. We do this before executing the actions.
  1409. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1411. as_fn_set_status $ac_retval
  1412. } # ac_fn_c_try_link
  1413. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1414. # -------------------------------------------------------
  1415. # Tests whether HEADER exists and can be compiled using the include files in
  1416. # INCLUDES, setting the cache variable VAR accordingly.
  1417. ac_fn_c_check_header_compile ()
  1418. {
  1419. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1421. $as_echo_n "checking for $2... " >&6; }
  1422. if eval \${$3+:} false; then :
  1423. $as_echo_n "(cached) " >&6
  1424. else
  1425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1426. /* end confdefs.h. */
  1427. $4
  1428. #include <$2>
  1429. _ACEOF
  1430. if ac_fn_c_try_compile "$LINENO"; then :
  1431. eval "$3=yes"
  1432. else
  1433. eval "$3=no"
  1434. fi
  1435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1436. fi
  1437. eval ac_res=\$$3
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1439. $as_echo "$ac_res" >&6; }
  1440. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1441. } # ac_fn_c_check_header_compile
  1442. # ac_fn_c_try_cpp LINENO
  1443. # ----------------------
  1444. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1445. ac_fn_c_try_cpp ()
  1446. {
  1447. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1448. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1449. case "(($ac_try" in
  1450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1451. *) ac_try_echo=$ac_try;;
  1452. esac
  1453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1454. $as_echo "$ac_try_echo"; } >&5
  1455. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1456. ac_status=$?
  1457. if test -s conftest.err; then
  1458. grep -v '^ *+' conftest.err >conftest.er1
  1459. cat conftest.er1 >&5
  1460. mv -f conftest.er1 conftest.err
  1461. fi
  1462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1463. test $ac_status = 0; } > conftest.i && {
  1464. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1465. test ! -s conftest.err
  1466. }; then :
  1467. ac_retval=0
  1468. else
  1469. $as_echo "$as_me: failed program was:" >&5
  1470. sed 's/^/| /' conftest.$ac_ext >&5
  1471. ac_retval=1
  1472. fi
  1473. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1474. as_fn_set_status $ac_retval
  1475. } # ac_fn_c_try_cpp
  1476. # ac_fn_c_try_run LINENO
  1477. # ----------------------
  1478. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1479. # that executables *can* be run.
  1480. ac_fn_c_try_run ()
  1481. {
  1482. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1483. if { { ac_try="$ac_link"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_link") 2>&5
  1491. ac_status=$?
  1492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1493. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1494. { { case "(($ac_try" in
  1495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1496. *) ac_try_echo=$ac_try;;
  1497. esac
  1498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1499. $as_echo "$ac_try_echo"; } >&5
  1500. (eval "$ac_try") 2>&5
  1501. ac_status=$?
  1502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1503. test $ac_status = 0; }; }; then :
  1504. ac_retval=0
  1505. else
  1506. $as_echo "$as_me: program exited with status $ac_status" >&5
  1507. $as_echo "$as_me: failed program was:" >&5
  1508. sed 's/^/| /' conftest.$ac_ext >&5
  1509. ac_retval=$ac_status
  1510. fi
  1511. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1512. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1513. as_fn_set_status $ac_retval
  1514. } # ac_fn_c_try_run
  1515. # ac_fn_c_check_func LINENO FUNC VAR
  1516. # ----------------------------------
  1517. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1518. ac_fn_c_check_func ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1522. $as_echo_n "checking for $2... " >&6; }
  1523. if eval \${$3+:} false; then :
  1524. $as_echo_n "(cached) " >&6
  1525. else
  1526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1527. /* end confdefs.h. */
  1528. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1529. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1530. #define $2 innocuous_$2
  1531. /* System header to define __stub macros and hopefully few prototypes,
  1532. which can conflict with char $2 (); below.
  1533. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1534. <limits.h> exists even on freestanding compilers. */
  1535. #ifdef __STDC__
  1536. # include <limits.h>
  1537. #else
  1538. # include <assert.h>
  1539. #endif
  1540. #undef $2
  1541. /* Override any GCC internal prototype to avoid an error.
  1542. Use char because int might match the return type of a GCC
  1543. builtin and then its argument prototype would still apply. */
  1544. #ifdef __cplusplus
  1545. extern "C"
  1546. #endif
  1547. char $2 ();
  1548. /* The GNU C library defines this for functions which it implements
  1549. to always fail with ENOSYS. Some functions are actually named
  1550. something starting with __ and the normal name is an alias. */
  1551. #if defined __stub_$2 || defined __stub___$2
  1552. choke me
  1553. #endif
  1554. int
  1555. main ()
  1556. {
  1557. return $2 ();
  1558. ;
  1559. return 0;
  1560. }
  1561. _ACEOF
  1562. if ac_fn_c_try_link "$LINENO"; then :
  1563. eval "$3=yes"
  1564. else
  1565. eval "$3=no"
  1566. fi
  1567. rm -f core conftest.err conftest.$ac_objext \
  1568. conftest$ac_exeext conftest.$ac_ext
  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. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1574. } # ac_fn_c_check_func
  1575. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1576. # -------------------------------------------------------
  1577. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1578. # the include files in INCLUDES and setting the cache variable VAR
  1579. # accordingly.
  1580. ac_fn_c_check_header_mongrel ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. if eval \${$3+:} false; then :
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1585. $as_echo_n "checking for $2... " >&6; }
  1586. if eval \${$3+:} false; then :
  1587. $as_echo_n "(cached) " >&6
  1588. fi
  1589. eval ac_res=\$$3
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1591. $as_echo "$ac_res" >&6; }
  1592. else
  1593. # Is the header compilable?
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1595. $as_echo_n "checking $2 usability... " >&6; }
  1596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1597. /* end confdefs.h. */
  1598. $4
  1599. #include <$2>
  1600. _ACEOF
  1601. if ac_fn_c_try_compile "$LINENO"; then :
  1602. ac_header_compiler=yes
  1603. else
  1604. ac_header_compiler=no
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1608. $as_echo "$ac_header_compiler" >&6; }
  1609. # Is the header present?
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1611. $as_echo_n "checking $2 presence... " >&6; }
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. #include <$2>
  1615. _ACEOF
  1616. if ac_fn_c_try_cpp "$LINENO"; then :
  1617. ac_header_preproc=yes
  1618. else
  1619. ac_header_preproc=no
  1620. fi
  1621. rm -f conftest.err conftest.i conftest.$ac_ext
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1623. $as_echo "$ac_header_preproc" >&6; }
  1624. # So? What about this header?
  1625. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1626. yes:no: )
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1628. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1630. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1631. ;;
  1632. no:yes:* )
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1634. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1636. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1638. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1640. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1642. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1643. ( $as_echo "## ------------------------------ ##
  1644. ## Report this to petri@digip.org ##
  1645. ## ------------------------------ ##"
  1646. ) | sed "s/^/$as_me: WARNING: /" >&2
  1647. ;;
  1648. esac
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1650. $as_echo_n "checking for $2... " >&6; }
  1651. if eval \${$3+:} false; then :
  1652. $as_echo_n "(cached) " >&6
  1653. else
  1654. eval "$3=\$ac_header_compiler"
  1655. fi
  1656. eval ac_res=\$$3
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1658. $as_echo "$ac_res" >&6; }
  1659. fi
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. } # ac_fn_c_check_header_mongrel
  1662. # ac_fn_c_find_intX_t LINENO BITS VAR
  1663. # -----------------------------------
  1664. # Finds a signed integer type with width BITS, setting cache variable VAR
  1665. # accordingly.
  1666. ac_fn_c_find_intX_t ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1670. $as_echo_n "checking for int$2_t... " >&6; }
  1671. if eval \${$3+:} false; then :
  1672. $as_echo_n "(cached) " >&6
  1673. else
  1674. eval "$3=no"
  1675. # Order is important - never check a type that is potentially smaller
  1676. # than half of the expected target width.
  1677. for ac_type in int$2_t 'int' 'long int' \
  1678. 'long long int' 'short int' 'signed char'; do
  1679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1680. /* end confdefs.h. */
  1681. $ac_includes_default
  1682. enum { N = $2 / 2 - 1 };
  1683. int
  1684. main ()
  1685. {
  1686. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1687. test_array [0] = 0
  1688. ;
  1689. return 0;
  1690. }
  1691. _ACEOF
  1692. if ac_fn_c_try_compile "$LINENO"; then :
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. $ac_includes_default
  1696. enum { N = $2 / 2 - 1 };
  1697. int
  1698. main ()
  1699. {
  1700. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1701. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1702. test_array [0] = 0
  1703. ;
  1704. return 0;
  1705. }
  1706. _ACEOF
  1707. if ac_fn_c_try_compile "$LINENO"; then :
  1708. else
  1709. case $ac_type in #(
  1710. int$2_t) :
  1711. eval "$3=yes" ;; #(
  1712. *) :
  1713. eval "$3=\$ac_type" ;;
  1714. esac
  1715. fi
  1716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1717. fi
  1718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1719. if eval test \"x\$"$3"\" = x"no"; then :
  1720. else
  1721. break
  1722. fi
  1723. done
  1724. fi
  1725. eval ac_res=\$$3
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1727. $as_echo "$ac_res" >&6; }
  1728. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1729. } # ac_fn_c_find_intX_t
  1730. cat >config.log <<_ACEOF
  1731. This file contains any messages produced by compilers while
  1732. running configure, to aid debugging if configure makes a mistake.
  1733. It was created by jansson $as_me 2.4, which was
  1734. generated by GNU Autoconf 2.68. Invocation command line was
  1735. $ $0 $@
  1736. _ACEOF
  1737. exec 5>>config.log
  1738. {
  1739. cat <<_ASUNAME
  1740. ## --------- ##
  1741. ## Platform. ##
  1742. ## --------- ##
  1743. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1744. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1745. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1746. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1747. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1748. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1749. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1750. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1751. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1752. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1753. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1754. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1755. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1756. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1757. _ASUNAME
  1758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1759. for as_dir in $PATH
  1760. do
  1761. IFS=$as_save_IFS
  1762. test -z "$as_dir" && as_dir=.
  1763. $as_echo "PATH: $as_dir"
  1764. done
  1765. IFS=$as_save_IFS
  1766. } >&5
  1767. cat >&5 <<_ACEOF
  1768. ## ----------- ##
  1769. ## Core tests. ##
  1770. ## ----------- ##
  1771. _ACEOF
  1772. # Keep a trace of the command line.
  1773. # Strip out --no-create and --no-recursion so they do not pile up.
  1774. # Strip out --silent because we don't want to record it for future runs.
  1775. # Also quote any args containing shell meta-characters.
  1776. # Make two passes to allow for proper duplicate-argument suppression.
  1777. ac_configure_args=
  1778. ac_configure_args0=
  1779. ac_configure_args1=
  1780. ac_must_keep_next=false
  1781. for ac_pass in 1 2
  1782. do
  1783. for ac_arg
  1784. do
  1785. case $ac_arg in
  1786. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1787. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1788. | -silent | --silent | --silen | --sile | --sil)
  1789. continue ;;
  1790. *\'*)
  1791. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1792. esac
  1793. case $ac_pass in
  1794. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1795. 2)
  1796. as_fn_append ac_configure_args1 " '$ac_arg'"
  1797. if test $ac_must_keep_next = true; then
  1798. ac_must_keep_next=false # Got value, back to normal.
  1799. else
  1800. case $ac_arg in
  1801. *=* | --config-cache | -C | -disable-* | --disable-* \
  1802. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1803. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1804. | -with-* | --with-* | -without-* | --without-* | --x)
  1805. case "$ac_configure_args0 " in
  1806. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1807. esac
  1808. ;;
  1809. -* ) ac_must_keep_next=true ;;
  1810. esac
  1811. fi
  1812. as_fn_append ac_configure_args " '$ac_arg'"
  1813. ;;
  1814. esac
  1815. done
  1816. done
  1817. { ac_configure_args0=; unset ac_configure_args0;}
  1818. { ac_configure_args1=; unset ac_configure_args1;}
  1819. # When interrupted or exit'd, cleanup temporary files, and complete
  1820. # config.log. We remove comments because anyway the quotes in there
  1821. # would cause problems or look ugly.
  1822. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1823. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1824. trap 'exit_status=$?
  1825. # Save into config.log some information that might help in debugging.
  1826. {
  1827. echo
  1828. $as_echo "## ---------------- ##
  1829. ## Cache variables. ##
  1830. ## ---------------- ##"
  1831. echo
  1832. # The following way of writing the cache mishandles newlines in values,
  1833. (
  1834. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1835. eval ac_val=\$$ac_var
  1836. case $ac_val in #(
  1837. *${as_nl}*)
  1838. case $ac_var in #(
  1839. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1840. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1841. esac
  1842. case $ac_var in #(
  1843. _ | IFS | as_nl) ;; #(
  1844. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1845. *) { eval $ac_var=; unset $ac_var;} ;;
  1846. esac ;;
  1847. esac
  1848. done
  1849. (set) 2>&1 |
  1850. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1851. *${as_nl}ac_space=\ *)
  1852. sed -n \
  1853. "s/'\''/'\''\\\\'\'''\''/g;
  1854. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1855. ;; #(
  1856. *)
  1857. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1858. ;;
  1859. esac |
  1860. sort
  1861. )
  1862. echo
  1863. $as_echo "## ----------------- ##
  1864. ## Output variables. ##
  1865. ## ----------------- ##"
  1866. echo
  1867. for ac_var in $ac_subst_vars
  1868. do
  1869. eval ac_val=\$$ac_var
  1870. case $ac_val in
  1871. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1872. esac
  1873. $as_echo "$ac_var='\''$ac_val'\''"
  1874. done | sort
  1875. echo
  1876. if test -n "$ac_subst_files"; then
  1877. $as_echo "## ------------------- ##
  1878. ## File substitutions. ##
  1879. ## ------------------- ##"
  1880. echo
  1881. for ac_var in $ac_subst_files
  1882. do
  1883. eval ac_val=\$$ac_var
  1884. case $ac_val in
  1885. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1886. esac
  1887. $as_echo "$ac_var='\''$ac_val'\''"
  1888. done | sort
  1889. echo
  1890. fi
  1891. if test -s confdefs.h; then
  1892. $as_echo "## ----------- ##
  1893. ## confdefs.h. ##
  1894. ## ----------- ##"
  1895. echo
  1896. cat confdefs.h
  1897. echo
  1898. fi
  1899. test "$ac_signal" != 0 &&
  1900. $as_echo "$as_me: caught signal $ac_signal"
  1901. $as_echo "$as_me: exit $exit_status"
  1902. } >&5
  1903. rm -f core *.core core.conftest.* &&
  1904. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1905. exit $exit_status
  1906. ' 0
  1907. for ac_signal in 1 2 13 15; do
  1908. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1909. done
  1910. ac_signal=0
  1911. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1912. rm -f -r conftest* confdefs.h
  1913. $as_echo "/* confdefs.h */" > confdefs.h
  1914. # Predefined preprocessor variables.
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define PACKAGE_NAME "$PACKAGE_NAME"
  1917. _ACEOF
  1918. cat >>confdefs.h <<_ACEOF
  1919. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1920. _ACEOF
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_STRING "$PACKAGE_STRING"
  1926. _ACEOF
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1929. _ACEOF
  1930. cat >>confdefs.h <<_ACEOF
  1931. #define PACKAGE_URL "$PACKAGE_URL"
  1932. _ACEOF
  1933. # Let the site file select an alternate cache file if it wants to.
  1934. # Prefer an explicitly selected file to automatically selected ones.
  1935. ac_site_file1=NONE
  1936. ac_site_file2=NONE
  1937. if test -n "$CONFIG_SITE"; then
  1938. # We do not want a PATH search for config.site.
  1939. case $CONFIG_SITE in #((
  1940. -*) ac_site_file1=./$CONFIG_SITE;;
  1941. */*) ac_site_file1=$CONFIG_SITE;;
  1942. *) ac_site_file1=./$CONFIG_SITE;;
  1943. esac
  1944. elif test "x$prefix" != xNONE; then
  1945. ac_site_file1=$prefix/share/config.site
  1946. ac_site_file2=$prefix/etc/config.site
  1947. else
  1948. ac_site_file1=$ac_default_prefix/share/config.site
  1949. ac_site_file2=$ac_default_prefix/etc/config.site
  1950. fi
  1951. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1952. do
  1953. test "x$ac_site_file" = xNONE && continue
  1954. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1956. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1957. sed 's/^/| /' "$ac_site_file" >&5
  1958. . "$ac_site_file" \
  1959. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1961. as_fn_error $? "failed to load site script $ac_site_file
  1962. See \`config.log' for more details" "$LINENO" 5; }
  1963. fi
  1964. done
  1965. if test -r "$cache_file"; then
  1966. # Some versions of bash will fail to source /dev/null (special files
  1967. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1968. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1970. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1971. case $cache_file in
  1972. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1973. *) . "./$cache_file";;
  1974. esac
  1975. fi
  1976. else
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1978. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1979. >$cache_file
  1980. fi
  1981. # Check that the precious variables saved in the cache have kept the same
  1982. # value.
  1983. ac_cache_corrupted=false
  1984. for ac_var in $ac_precious_vars; do
  1985. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1986. eval ac_new_set=\$ac_env_${ac_var}_set
  1987. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1988. eval ac_new_val=\$ac_env_${ac_var}_value
  1989. case $ac_old_set,$ac_new_set in
  1990. set,)
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1992. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1993. ac_cache_corrupted=: ;;
  1994. ,set)
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1996. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1997. ac_cache_corrupted=: ;;
  1998. ,);;
  1999. *)
  2000. if test "x$ac_old_val" != "x$ac_new_val"; then
  2001. # differences in whitespace do not lead to failure.
  2002. ac_old_val_w=`echo x $ac_old_val`
  2003. ac_new_val_w=`echo x $ac_new_val`
  2004. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2006. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2007. ac_cache_corrupted=:
  2008. else
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2010. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2011. eval $ac_var=\$ac_old_val
  2012. fi
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2014. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2016. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2017. fi;;
  2018. esac
  2019. # Pass precious variables to config.status.
  2020. if test "$ac_new_set" = set; then
  2021. case $ac_new_val in
  2022. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2023. *) ac_arg=$ac_var=$ac_new_val ;;
  2024. esac
  2025. case " $ac_configure_args " in
  2026. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2027. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2028. esac
  2029. fi
  2030. done
  2031. if $ac_cache_corrupted; then
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2033. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2035. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2036. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2037. fi
  2038. ## -------------------- ##
  2039. ## Main body of script. ##
  2040. ## -------------------- ##
  2041. ac_ext=c
  2042. ac_cpp='$CPP $CPPFLAGS'
  2043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2046. am__api_version='1.11'
  2047. ac_aux_dir=
  2048. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2049. if test -f "$ac_dir/install-sh"; then
  2050. ac_aux_dir=$ac_dir
  2051. ac_install_sh="$ac_aux_dir/install-sh -c"
  2052. break
  2053. elif test -f "$ac_dir/install.sh"; then
  2054. ac_aux_dir=$ac_dir
  2055. ac_install_sh="$ac_aux_dir/install.sh -c"
  2056. break
  2057. elif test -f "$ac_dir/shtool"; then
  2058. ac_aux_dir=$ac_dir
  2059. ac_install_sh="$ac_aux_dir/shtool install -c"
  2060. break
  2061. fi
  2062. done
  2063. if test -z "$ac_aux_dir"; then
  2064. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2065. fi
  2066. # These three variables are undocumented and unsupported,
  2067. # and are intended to be withdrawn in a future Autoconf release.
  2068. # They can cause serious problems if a builder's source tree is in a directory
  2069. # whose full name contains unusual characters.
  2070. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2071. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2072. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2073. # Find a good install program. We prefer a C program (faster),
  2074. # so one script is as good as another. But avoid the broken or
  2075. # incompatible versions:
  2076. # SysV /etc/install, /usr/sbin/install
  2077. # SunOS /usr/etc/install
  2078. # IRIX /sbin/install
  2079. # AIX /bin/install
  2080. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2081. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2082. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2083. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2084. # OS/2's system install, which has a completely different semantic
  2085. # ./install, which can be erroneously created by make from ./install.sh.
  2086. # Reject install programs that cannot install multiple files.
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2088. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2089. if test -z "$INSTALL"; then
  2090. if ${ac_cv_path_install+:} false; then :
  2091. $as_echo_n "(cached) " >&6
  2092. else
  2093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2094. for as_dir in $PATH
  2095. do
  2096. IFS=$as_save_IFS
  2097. test -z "$as_dir" && as_dir=.
  2098. # Account for people who put trailing slashes in PATH elements.
  2099. case $as_dir/ in #((
  2100. ./ | .// | /[cC]/* | \
  2101. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2102. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2103. /usr/ucb/* ) ;;
  2104. *)
  2105. # OSF1 and SCO ODT 3.0 have their own names for install.
  2106. # Don't use installbsd from OSF since it installs stuff as root
  2107. # by default.
  2108. for ac_prog in ginstall scoinst install; do
  2109. for ac_exec_ext in '' $ac_executable_extensions; do
  2110. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2111. if test $ac_prog = install &&
  2112. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2113. # AIX install. It has an incompatible calling convention.
  2114. :
  2115. elif test $ac_prog = install &&
  2116. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2117. # program-specific install script used by HP pwplus--don't use.
  2118. :
  2119. else
  2120. rm -rf conftest.one conftest.two conftest.dir
  2121. echo one > conftest.one
  2122. echo two > conftest.two
  2123. mkdir conftest.dir
  2124. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2125. test -s conftest.one && test -s conftest.two &&
  2126. test -s conftest.dir/conftest.one &&
  2127. test -s conftest.dir/conftest.two
  2128. then
  2129. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2130. break 3
  2131. fi
  2132. fi
  2133. fi
  2134. done
  2135. done
  2136. ;;
  2137. esac
  2138. done
  2139. IFS=$as_save_IFS
  2140. rm -rf conftest.one conftest.two conftest.dir
  2141. fi
  2142. if test "${ac_cv_path_install+set}" = set; then
  2143. INSTALL=$ac_cv_path_install
  2144. else
  2145. # As a last resort, use the slow shell script. Don't cache a
  2146. # value for INSTALL within a source directory, because that will
  2147. # break other packages using the cache if that directory is
  2148. # removed, or if the value is a relative name.
  2149. INSTALL=$ac_install_sh
  2150. fi
  2151. fi
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2153. $as_echo "$INSTALL" >&6; }
  2154. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2155. # It thinks the first close brace ends the variable substitution.
  2156. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2157. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2158. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2160. $as_echo_n "checking whether build environment is sane... " >&6; }
  2161. # Just in case
  2162. sleep 1
  2163. echo timestamp > conftest.file
  2164. # Reject unsafe characters in $srcdir or the absolute working directory
  2165. # name. Accept space and tab only in the latter.
  2166. am_lf='
  2167. '
  2168. case `pwd` in
  2169. *[\\\"\#\$\&\'\`$am_lf]*)
  2170. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2171. esac
  2172. case $srcdir in
  2173. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2174. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2175. esac
  2176. # Do `set' in a subshell so we don't clobber the current shell's
  2177. # arguments. Must try -L first in case configure is actually a
  2178. # symlink; some systems play weird games with the mod time of symlinks
  2179. # (eg FreeBSD returns the mod time of the symlink's containing
  2180. # directory).
  2181. if (
  2182. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2183. if test "$*" = "X"; then
  2184. # -L didn't work.
  2185. set X `ls -t "$srcdir/configure" conftest.file`
  2186. fi
  2187. rm -f conftest.file
  2188. if test "$*" != "X $srcdir/configure conftest.file" \
  2189. && test "$*" != "X conftest.file $srcdir/configure"; then
  2190. # If neither matched, then we have a broken ls. This can happen
  2191. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2192. # broken ls alias from the environment. This has actually
  2193. # happened. Such a system could not be considered "sane".
  2194. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2195. alias in your environment" "$LINENO" 5
  2196. fi
  2197. test "$2" = conftest.file
  2198. )
  2199. then
  2200. # Ok.
  2201. :
  2202. else
  2203. as_fn_error $? "newly created file is older than distributed files!
  2204. Check your system clock" "$LINENO" 5
  2205. fi
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2207. $as_echo "yes" >&6; }
  2208. test "$program_prefix" != NONE &&
  2209. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2210. # Use a double $ so make ignores it.
  2211. test "$program_suffix" != NONE &&
  2212. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2213. # Double any \ or $.
  2214. # By default was `s,x,x', remove it if useless.
  2215. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2216. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2217. # expand $ac_aux_dir to an absolute path
  2218. am_aux_dir=`cd $ac_aux_dir && pwd`
  2219. if test x"${MISSING+set}" != xset; then
  2220. case $am_aux_dir in
  2221. *\ * | *\ *)
  2222. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2223. *)
  2224. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2225. esac
  2226. fi
  2227. # Use eval to expand $SHELL
  2228. if eval "$MISSING --run true"; then
  2229. am_missing_run="$MISSING --run "
  2230. else
  2231. am_missing_run=
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2233. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2234. fi
  2235. if test x"${install_sh}" != xset; then
  2236. case $am_aux_dir in
  2237. *\ * | *\ *)
  2238. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2239. *)
  2240. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2241. esac
  2242. fi
  2243. # Installed binaries are usually stripped using `strip' when the user
  2244. # run `make install-strip'. However `strip' might not be the right
  2245. # tool to use in cross-compilation environments, therefore Automake
  2246. # will honor the `STRIP' environment variable to overrule this program.
  2247. if test "$cross_compiling" != no; then
  2248. if test -n "$ac_tool_prefix"; then
  2249. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2250. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2252. $as_echo_n "checking for $ac_word... " >&6; }
  2253. if ${ac_cv_prog_STRIP+:} false; then :
  2254. $as_echo_n "(cached) " >&6
  2255. else
  2256. if test -n "$STRIP"; then
  2257. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_exec_ext in '' $ac_executable_extensions; do
  2265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2266. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2268. break 2
  2269. fi
  2270. done
  2271. done
  2272. IFS=$as_save_IFS
  2273. fi
  2274. fi
  2275. STRIP=$ac_cv_prog_STRIP
  2276. if test -n "$STRIP"; then
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2278. $as_echo "$STRIP" >&6; }
  2279. else
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2281. $as_echo "no" >&6; }
  2282. fi
  2283. fi
  2284. if test -z "$ac_cv_prog_STRIP"; then
  2285. ac_ct_STRIP=$STRIP
  2286. # Extract the first word of "strip", so it can be a program name with args.
  2287. set dummy strip; ac_word=$2
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2289. $as_echo_n "checking for $ac_word... " >&6; }
  2290. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2291. $as_echo_n "(cached) " >&6
  2292. else
  2293. if test -n "$ac_ct_STRIP"; then
  2294. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2295. else
  2296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2297. for as_dir in $PATH
  2298. do
  2299. IFS=$as_save_IFS
  2300. test -z "$as_dir" && as_dir=.
  2301. for ac_exec_ext in '' $ac_executable_extensions; do
  2302. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2303. ac_cv_prog_ac_ct_STRIP="strip"
  2304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2305. break 2
  2306. fi
  2307. done
  2308. done
  2309. IFS=$as_save_IFS
  2310. fi
  2311. fi
  2312. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2313. if test -n "$ac_ct_STRIP"; then
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2315. $as_echo "$ac_ct_STRIP" >&6; }
  2316. else
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2318. $as_echo "no" >&6; }
  2319. fi
  2320. if test "x$ac_ct_STRIP" = x; then
  2321. STRIP=":"
  2322. else
  2323. case $cross_compiling:$ac_tool_warned in
  2324. yes:)
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2327. ac_tool_warned=yes ;;
  2328. esac
  2329. STRIP=$ac_ct_STRIP
  2330. fi
  2331. else
  2332. STRIP="$ac_cv_prog_STRIP"
  2333. fi
  2334. fi
  2335. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2337. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2338. if test -z "$MKDIR_P"; then
  2339. if ${ac_cv_path_mkdir+:} false; then :
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2343. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2344. do
  2345. IFS=$as_save_IFS
  2346. test -z "$as_dir" && as_dir=.
  2347. for ac_prog in mkdir gmkdir; do
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2350. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2351. 'mkdir (GNU coreutils) '* | \
  2352. 'mkdir (coreutils) '* | \
  2353. 'mkdir (fileutils) '4.1*)
  2354. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2355. break 3;;
  2356. esac
  2357. done
  2358. done
  2359. done
  2360. IFS=$as_save_IFS
  2361. fi
  2362. test -d ./--version && rmdir ./--version
  2363. if test "${ac_cv_path_mkdir+set}" = set; then
  2364. MKDIR_P="$ac_cv_path_mkdir -p"
  2365. else
  2366. # As a last resort, use the slow shell script. Don't cache a
  2367. # value for MKDIR_P within a source directory, because that will
  2368. # break other packages using the cache if that directory is
  2369. # removed, or if the value is a relative name.
  2370. MKDIR_P="$ac_install_sh -d"
  2371. fi
  2372. fi
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2374. $as_echo "$MKDIR_P" >&6; }
  2375. mkdir_p="$MKDIR_P"
  2376. case $mkdir_p in
  2377. [\\/$]* | ?:[\\/]*) ;;
  2378. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2379. esac
  2380. for ac_prog in gawk mawk nawk awk
  2381. do
  2382. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2383. set dummy $ac_prog; 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_AWK+:} false; then :
  2387. $as_echo_n "(cached) " >&6
  2388. else
  2389. if test -n "$AWK"; then
  2390. ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
  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. AWK=$ac_cv_prog_AWK
  2409. if test -n "$AWK"; then
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2411. $as_echo "$AWK" >&6; }
  2412. else
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2414. $as_echo "no" >&6; }
  2415. fi
  2416. test -n "$AWK" && break
  2417. done
  2418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2419. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2420. set x ${MAKE-make}
  2421. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2422. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2423. $as_echo_n "(cached) " >&6
  2424. else
  2425. cat >conftest.make <<\_ACEOF
  2426. SHELL = /bin/sh
  2427. all:
  2428. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2429. _ACEOF
  2430. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2431. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2432. *@@@%%%=?*=@@@%%%*)
  2433. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2434. *)
  2435. eval ac_cv_prog_make_${ac_make}_set=no;;
  2436. esac
  2437. rm -f conftest.make
  2438. fi
  2439. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2441. $as_echo "yes" >&6; }
  2442. SET_MAKE=
  2443. else
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2445. $as_echo "no" >&6; }
  2446. SET_MAKE="MAKE=${MAKE-make}"
  2447. fi
  2448. rm -rf .tst 2>/dev/null
  2449. mkdir .tst 2>/dev/null
  2450. if test -d .tst; then
  2451. am__leading_dot=.
  2452. else
  2453. am__leading_dot=_
  2454. fi
  2455. rmdir .tst 2>/dev/null
  2456. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2457. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2458. # is not polluted with repeated "-I."
  2459. am__isrc=' -I$(srcdir)'
  2460. # test to see if srcdir already configured
  2461. if test -f $srcdir/config.status; then
  2462. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2463. fi
  2464. fi
  2465. # test whether we have cygpath
  2466. if test -z "$CYGPATH_W"; then
  2467. if (cygpath --version) >/dev/null 2>/dev/null; then
  2468. CYGPATH_W='cygpath -w'
  2469. else
  2470. CYGPATH_W=echo
  2471. fi
  2472. fi
  2473. # Define the identity of the package.
  2474. PACKAGE='jansson'
  2475. VERSION='2.4'
  2476. cat >>confdefs.h <<_ACEOF
  2477. #define PACKAGE "$PACKAGE"
  2478. _ACEOF
  2479. cat >>confdefs.h <<_ACEOF
  2480. #define VERSION "$VERSION"
  2481. _ACEOF
  2482. # Some tools Automake needs.
  2483. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2484. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2485. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2486. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2487. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2488. # We need awk for the "check" target. The system "awk" is bad on
  2489. # some platforms.
  2490. # Always define AMTAR for backward compatibility. Yes, it's still used
  2491. # in the wild :-( We should find a proper way to deprecate it ...
  2492. AMTAR='$${TAR-tar}'
  2493. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2494. ac_config_headers="$ac_config_headers config.h"
  2495. # Checks for programs.
  2496. ac_ext=c
  2497. ac_cpp='$CPP $CPPFLAGS'
  2498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2501. if test -n "$ac_tool_prefix"; then
  2502. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2503. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2505. $as_echo_n "checking for $ac_word... " >&6; }
  2506. if ${ac_cv_prog_CC+:} false; then :
  2507. $as_echo_n "(cached) " >&6
  2508. else
  2509. if test -n "$CC"; then
  2510. ac_cv_prog_CC="$CC" # Let the user override the test.
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_exec_ext in '' $ac_executable_extensions; do
  2518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2519. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. fi
  2527. fi
  2528. CC=$ac_cv_prog_CC
  2529. if test -n "$CC"; then
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2531. $as_echo "$CC" >&6; }
  2532. else
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2534. $as_echo "no" >&6; }
  2535. fi
  2536. fi
  2537. if test -z "$ac_cv_prog_CC"; then
  2538. ac_ct_CC=$CC
  2539. # Extract the first word of "gcc", so it can be a program name with args.
  2540. set dummy gcc; ac_word=$2
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2542. $as_echo_n "checking for $ac_word... " >&6; }
  2543. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test -n "$ac_ct_CC"; then
  2547. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2548. else
  2549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2550. for as_dir in $PATH
  2551. do
  2552. IFS=$as_save_IFS
  2553. test -z "$as_dir" && as_dir=.
  2554. for ac_exec_ext in '' $ac_executable_extensions; do
  2555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2556. ac_cv_prog_ac_ct_CC="gcc"
  2557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2558. break 2
  2559. fi
  2560. done
  2561. done
  2562. IFS=$as_save_IFS
  2563. fi
  2564. fi
  2565. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2566. if test -n "$ac_ct_CC"; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2568. $as_echo "$ac_ct_CC" >&6; }
  2569. else
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2571. $as_echo "no" >&6; }
  2572. fi
  2573. if test "x$ac_ct_CC" = x; then
  2574. CC=""
  2575. else
  2576. case $cross_compiling:$ac_tool_warned in
  2577. yes:)
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2579. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2580. ac_tool_warned=yes ;;
  2581. esac
  2582. CC=$ac_ct_CC
  2583. fi
  2584. else
  2585. CC="$ac_cv_prog_CC"
  2586. fi
  2587. if test -z "$CC"; then
  2588. if test -n "$ac_tool_prefix"; then
  2589. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2590. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if ${ac_cv_prog_CC+:} false; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$CC"; then
  2597. ac_cv_prog_CC="$CC" # Let the user override the test.
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602. IFS=$as_save_IFS
  2603. test -z "$as_dir" && as_dir=.
  2604. for ac_exec_ext in '' $ac_executable_extensions; do
  2605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2606. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2608. break 2
  2609. fi
  2610. done
  2611. done
  2612. IFS=$as_save_IFS
  2613. fi
  2614. fi
  2615. CC=$ac_cv_prog_CC
  2616. if test -n "$CC"; then
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2618. $as_echo "$CC" >&6; }
  2619. else
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2621. $as_echo "no" >&6; }
  2622. fi
  2623. fi
  2624. fi
  2625. if test -z "$CC"; then
  2626. # Extract the first word of "cc", so it can be a program name with args.
  2627. set dummy cc; ac_word=$2
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2629. $as_echo_n "checking for $ac_word... " >&6; }
  2630. if ${ac_cv_prog_CC+:} false; then :
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. if test -n "$CC"; then
  2634. ac_cv_prog_CC="$CC" # Let the user override the test.
  2635. else
  2636. ac_prog_rejected=no
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2644. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2645. ac_prog_rejected=yes
  2646. continue
  2647. fi
  2648. ac_cv_prog_CC="cc"
  2649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. if test $ac_prog_rejected = yes; then
  2656. # We found a bogon in the path, so make sure we never use it.
  2657. set dummy $ac_cv_prog_CC
  2658. shift
  2659. if test $# != 0; then
  2660. # We chose a different compiler from the bogus one.
  2661. # However, it has the same basename, so the bogon will be chosen
  2662. # first if we set CC to just the basename; use the full file name.
  2663. shift
  2664. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2665. fi
  2666. fi
  2667. fi
  2668. fi
  2669. CC=$ac_cv_prog_CC
  2670. if test -n "$CC"; then
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2672. $as_echo "$CC" >&6; }
  2673. else
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2675. $as_echo "no" >&6; }
  2676. fi
  2677. fi
  2678. if test -z "$CC"; then
  2679. if test -n "$ac_tool_prefix"; then
  2680. for ac_prog in cl.exe
  2681. do
  2682. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2683. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2685. $as_echo_n "checking for $ac_word... " >&6; }
  2686. if ${ac_cv_prog_CC+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. if test -n "$CC"; then
  2690. ac_cv_prog_CC="$CC" # Let the user override the test.
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695. IFS=$as_save_IFS
  2696. test -z "$as_dir" && as_dir=.
  2697. for ac_exec_ext in '' $ac_executable_extensions; do
  2698. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2699. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2701. break 2
  2702. fi
  2703. done
  2704. done
  2705. IFS=$as_save_IFS
  2706. fi
  2707. fi
  2708. CC=$ac_cv_prog_CC
  2709. if test -n "$CC"; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2711. $as_echo "$CC" >&6; }
  2712. else
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2714. $as_echo "no" >&6; }
  2715. fi
  2716. test -n "$CC" && break
  2717. done
  2718. fi
  2719. if test -z "$CC"; then
  2720. ac_ct_CC=$CC
  2721. for ac_prog in cl.exe
  2722. do
  2723. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2724. set dummy $ac_prog; ac_word=$2
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2726. $as_echo_n "checking for $ac_word... " >&6; }
  2727. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2728. $as_echo_n "(cached) " >&6
  2729. else
  2730. if test -n "$ac_ct_CC"; then
  2731. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2732. else
  2733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2734. for as_dir in $PATH
  2735. do
  2736. IFS=$as_save_IFS
  2737. test -z "$as_dir" && as_dir=.
  2738. for ac_exec_ext in '' $ac_executable_extensions; do
  2739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2740. ac_cv_prog_ac_ct_CC="$ac_prog"
  2741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2742. break 2
  2743. fi
  2744. done
  2745. done
  2746. IFS=$as_save_IFS
  2747. fi
  2748. fi
  2749. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2750. if test -n "$ac_ct_CC"; then
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2752. $as_echo "$ac_ct_CC" >&6; }
  2753. else
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2755. $as_echo "no" >&6; }
  2756. fi
  2757. test -n "$ac_ct_CC" && break
  2758. done
  2759. if test "x$ac_ct_CC" = x; then
  2760. CC=""
  2761. else
  2762. case $cross_compiling:$ac_tool_warned in
  2763. yes:)
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2766. ac_tool_warned=yes ;;
  2767. esac
  2768. CC=$ac_ct_CC
  2769. fi
  2770. fi
  2771. fi
  2772. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2773. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2774. as_fn_error $? "no acceptable C compiler found in \$PATH
  2775. See \`config.log' for more details" "$LINENO" 5; }
  2776. # Provide some information about the compiler.
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2778. set X $ac_compile
  2779. ac_compiler=$2
  2780. for ac_option in --version -v -V -qversion; do
  2781. { { ac_try="$ac_compiler $ac_option >&5"
  2782. case "(($ac_try" in
  2783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2784. *) ac_try_echo=$ac_try;;
  2785. esac
  2786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2787. $as_echo "$ac_try_echo"; } >&5
  2788. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2789. ac_status=$?
  2790. if test -s conftest.err; then
  2791. sed '10a\
  2792. ... rest of stderr output deleted ...
  2793. 10q' conftest.err >conftest.er1
  2794. cat conftest.er1 >&5
  2795. fi
  2796. rm -f conftest.er1 conftest.err
  2797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2798. test $ac_status = 0; }
  2799. done
  2800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2801. /* end confdefs.h. */
  2802. int
  2803. main ()
  2804. {
  2805. ;
  2806. return 0;
  2807. }
  2808. _ACEOF
  2809. ac_clean_files_save=$ac_clean_files
  2810. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2811. # Try to create an executable without -o first, disregard a.out.
  2812. # It will help us diagnose broken compilers, and finding out an intuition
  2813. # of exeext.
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2815. $as_echo_n "checking whether the C compiler works... " >&6; }
  2816. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2817. # The possible output files:
  2818. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2819. ac_rmfiles=
  2820. for ac_file in $ac_files
  2821. do
  2822. case $ac_file in
  2823. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2824. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2825. esac
  2826. done
  2827. rm -f $ac_rmfiles
  2828. if { { ac_try="$ac_link_default"
  2829. case "(($ac_try" in
  2830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2831. *) ac_try_echo=$ac_try;;
  2832. esac
  2833. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2834. $as_echo "$ac_try_echo"; } >&5
  2835. (eval "$ac_link_default") 2>&5
  2836. ac_status=$?
  2837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2838. test $ac_status = 0; }; then :
  2839. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2840. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2841. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2842. # so that the user can short-circuit this test for compilers unknown to
  2843. # Autoconf.
  2844. for ac_file in $ac_files ''
  2845. do
  2846. test -f "$ac_file" || continue
  2847. case $ac_file in
  2848. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2849. ;;
  2850. [ab].out )
  2851. # We found the default executable, but exeext='' is most
  2852. # certainly right.
  2853. break;;
  2854. *.* )
  2855. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2856. then :; else
  2857. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2858. fi
  2859. # We set ac_cv_exeext here because the later test for it is not
  2860. # safe: cross compilers may not add the suffix if given an `-o'
  2861. # argument, so we may need to know it at that point already.
  2862. # Even if this section looks crufty: it has the advantage of
  2863. # actually working.
  2864. break;;
  2865. * )
  2866. break;;
  2867. esac
  2868. done
  2869. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2870. else
  2871. ac_file=''
  2872. fi
  2873. if test -z "$ac_file"; then :
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2875. $as_echo "no" >&6; }
  2876. $as_echo "$as_me: failed program was:" >&5
  2877. sed 's/^/| /' conftest.$ac_ext >&5
  2878. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2879. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2880. as_fn_error 77 "C compiler cannot create executables
  2881. See \`config.log' for more details" "$LINENO" 5; }
  2882. else
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2884. $as_echo "yes" >&6; }
  2885. fi
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2887. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2889. $as_echo "$ac_file" >&6; }
  2890. ac_exeext=$ac_cv_exeext
  2891. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2892. ac_clean_files=$ac_clean_files_save
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2894. $as_echo_n "checking for suffix of executables... " >&6; }
  2895. if { { ac_try="$ac_link"
  2896. case "(($ac_try" in
  2897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. *) ac_try_echo=$ac_try;;
  2899. esac
  2900. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2901. $as_echo "$ac_try_echo"; } >&5
  2902. (eval "$ac_link") 2>&5
  2903. ac_status=$?
  2904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2905. test $ac_status = 0; }; then :
  2906. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2907. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2908. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2909. # `rm'.
  2910. for ac_file in conftest.exe conftest conftest.*; do
  2911. test -f "$ac_file" || continue
  2912. case $ac_file in
  2913. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2914. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2915. break;;
  2916. * ) break;;
  2917. esac
  2918. done
  2919. else
  2920. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2921. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2922. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2923. See \`config.log' for more details" "$LINENO" 5; }
  2924. fi
  2925. rm -f conftest conftest$ac_cv_exeext
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2927. $as_echo "$ac_cv_exeext" >&6; }
  2928. rm -f conftest.$ac_ext
  2929. EXEEXT=$ac_cv_exeext
  2930. ac_exeext=$EXEEXT
  2931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2932. /* end confdefs.h. */
  2933. #include <stdio.h>
  2934. int
  2935. main ()
  2936. {
  2937. FILE *f = fopen ("conftest.out", "w");
  2938. return ferror (f) || fclose (f) != 0;
  2939. ;
  2940. return 0;
  2941. }
  2942. _ACEOF
  2943. ac_clean_files="$ac_clean_files conftest.out"
  2944. # Check that the compiler produces executables we can run. If not, either
  2945. # the compiler is broken, or we cross compile.
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2947. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2948. if test "$cross_compiling" != yes; then
  2949. { { ac_try="$ac_link"
  2950. case "(($ac_try" in
  2951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2952. *) ac_try_echo=$ac_try;;
  2953. esac
  2954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2955. $as_echo "$ac_try_echo"; } >&5
  2956. (eval "$ac_link") 2>&5
  2957. ac_status=$?
  2958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2959. test $ac_status = 0; }
  2960. if { ac_try='./conftest$ac_cv_exeext'
  2961. { { case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2966. $as_echo "$ac_try_echo"; } >&5
  2967. (eval "$ac_try") 2>&5
  2968. ac_status=$?
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2970. test $ac_status = 0; }; }; then
  2971. cross_compiling=no
  2972. else
  2973. if test "$cross_compiling" = maybe; then
  2974. cross_compiling=yes
  2975. else
  2976. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2978. as_fn_error $? "cannot run C compiled programs.
  2979. If you meant to cross compile, use \`--host'.
  2980. See \`config.log' for more details" "$LINENO" 5; }
  2981. fi
  2982. fi
  2983. fi
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2985. $as_echo "$cross_compiling" >&6; }
  2986. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2987. ac_clean_files=$ac_clean_files_save
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2989. $as_echo_n "checking for suffix of object files... " >&6; }
  2990. if ${ac_cv_objext+:} false; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2994. /* end confdefs.h. */
  2995. int
  2996. main ()
  2997. {
  2998. ;
  2999. return 0;
  3000. }
  3001. _ACEOF
  3002. rm -f conftest.o conftest.obj
  3003. if { { ac_try="$ac_compile"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3009. $as_echo "$ac_try_echo"; } >&5
  3010. (eval "$ac_compile") 2>&5
  3011. ac_status=$?
  3012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3013. test $ac_status = 0; }; then :
  3014. for ac_file in conftest.o conftest.obj conftest.*; do
  3015. test -f "$ac_file" || continue;
  3016. case $ac_file in
  3017. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3018. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3019. break;;
  3020. esac
  3021. done
  3022. else
  3023. $as_echo "$as_me: failed program was:" >&5
  3024. sed 's/^/| /' conftest.$ac_ext >&5
  3025. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3026. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3027. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3028. See \`config.log' for more details" "$LINENO" 5; }
  3029. fi
  3030. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3033. $as_echo "$ac_cv_objext" >&6; }
  3034. OBJEXT=$ac_cv_objext
  3035. ac_objext=$OBJEXT
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3037. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3038. if ${ac_cv_c_compiler_gnu+:} false; then :
  3039. $as_echo_n "(cached) " >&6
  3040. else
  3041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3042. /* end confdefs.h. */
  3043. int
  3044. main ()
  3045. {
  3046. #ifndef __GNUC__
  3047. choke me
  3048. #endif
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. if ac_fn_c_try_compile "$LINENO"; then :
  3054. ac_compiler_gnu=yes
  3055. else
  3056. ac_compiler_gnu=no
  3057. fi
  3058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3059. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3060. fi
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3062. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3063. if test $ac_compiler_gnu = yes; then
  3064. GCC=yes
  3065. else
  3066. GCC=
  3067. fi
  3068. ac_test_CFLAGS=${CFLAGS+set}
  3069. ac_save_CFLAGS=$CFLAGS
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3071. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3072. if ${ac_cv_prog_cc_g+:} false; then :
  3073. $as_echo_n "(cached) " >&6
  3074. else
  3075. ac_save_c_werror_flag=$ac_c_werror_flag
  3076. ac_c_werror_flag=yes
  3077. ac_cv_prog_cc_g=no
  3078. CFLAGS="-g"
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. int
  3082. main ()
  3083. {
  3084. ;
  3085. return 0;
  3086. }
  3087. _ACEOF
  3088. if ac_fn_c_try_compile "$LINENO"; then :
  3089. ac_cv_prog_cc_g=yes
  3090. else
  3091. CFLAGS=""
  3092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3093. /* end confdefs.h. */
  3094. int
  3095. main ()
  3096. {
  3097. ;
  3098. return 0;
  3099. }
  3100. _ACEOF
  3101. if ac_fn_c_try_compile "$LINENO"; then :
  3102. else
  3103. ac_c_werror_flag=$ac_save_c_werror_flag
  3104. CFLAGS="-g"
  3105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3106. /* end confdefs.h. */
  3107. int
  3108. main ()
  3109. {
  3110. ;
  3111. return 0;
  3112. }
  3113. _ACEOF
  3114. if ac_fn_c_try_compile "$LINENO"; then :
  3115. ac_cv_prog_cc_g=yes
  3116. fi
  3117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3118. fi
  3119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3120. fi
  3121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3122. ac_c_werror_flag=$ac_save_c_werror_flag
  3123. fi
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3125. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3126. if test "$ac_test_CFLAGS" = set; then
  3127. CFLAGS=$ac_save_CFLAGS
  3128. elif test $ac_cv_prog_cc_g = yes; then
  3129. if test "$GCC" = yes; then
  3130. CFLAGS="-g -O2"
  3131. else
  3132. CFLAGS="-g"
  3133. fi
  3134. else
  3135. if test "$GCC" = yes; then
  3136. CFLAGS="-O2"
  3137. else
  3138. CFLAGS=
  3139. fi
  3140. fi
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3142. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3143. if ${ac_cv_prog_cc_c89+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. ac_cv_prog_cc_c89=no
  3147. ac_save_CC=$CC
  3148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3149. /* end confdefs.h. */
  3150. #include <stdarg.h>
  3151. #include <stdio.h>
  3152. #include <sys/types.h>
  3153. #include <sys/stat.h>
  3154. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3155. struct buf { int x; };
  3156. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3157. static char *e (p, i)
  3158. char **p;
  3159. int i;
  3160. {
  3161. return p[i];
  3162. }
  3163. static char *f (char * (*g) (char **, int), char **p, ...)
  3164. {
  3165. char *s;
  3166. va_list v;
  3167. va_start (v,p);
  3168. s = g (p, va_arg (v,int));
  3169. va_end (v);
  3170. return s;
  3171. }
  3172. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3173. function prototypes and stuff, but not '\xHH' hex character constants.
  3174. These don't provoke an error unfortunately, instead are silently treated
  3175. as 'x'. The following induces an error, until -std is added to get
  3176. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3177. array size at least. It's necessary to write '\x00'==0 to get something
  3178. that's true only with -std. */
  3179. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3180. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3181. inside strings and character constants. */
  3182. #define FOO(x) 'x'
  3183. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3184. int test (int i, double x);
  3185. struct s1 {int (*f) (int a);};
  3186. struct s2 {int (*f) (double a);};
  3187. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3188. int argc;
  3189. char **argv;
  3190. int
  3191. main ()
  3192. {
  3193. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3199. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3200. do
  3201. CC="$ac_save_CC $ac_arg"
  3202. if ac_fn_c_try_compile "$LINENO"; then :
  3203. ac_cv_prog_cc_c89=$ac_arg
  3204. fi
  3205. rm -f core conftest.err conftest.$ac_objext
  3206. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3207. done
  3208. rm -f conftest.$ac_ext
  3209. CC=$ac_save_CC
  3210. fi
  3211. # AC_CACHE_VAL
  3212. case "x$ac_cv_prog_cc_c89" in
  3213. x)
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3215. $as_echo "none needed" >&6; } ;;
  3216. xno)
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3218. $as_echo "unsupported" >&6; } ;;
  3219. *)
  3220. CC="$CC $ac_cv_prog_cc_c89"
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3222. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3223. esac
  3224. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3225. fi
  3226. ac_ext=c
  3227. ac_cpp='$CPP $CPPFLAGS'
  3228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3231. DEPDIR="${am__leading_dot}deps"
  3232. ac_config_commands="$ac_config_commands depfiles"
  3233. am_make=${MAKE-make}
  3234. cat > confinc << 'END'
  3235. am__doit:
  3236. @echo this is the am__doit target
  3237. .PHONY: am__doit
  3238. END
  3239. # If we don't find an include directive, just comment out the code.
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3241. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3242. am__include="#"
  3243. am__quote=
  3244. _am_result=none
  3245. # First try GNU make style include.
  3246. echo "include confinc" > confmf
  3247. # Ignore all kinds of additional output from `make'.
  3248. case `$am_make -s -f confmf 2> /dev/null` in #(
  3249. *the\ am__doit\ target*)
  3250. am__include=include
  3251. am__quote=
  3252. _am_result=GNU
  3253. ;;
  3254. esac
  3255. # Now try BSD make style include.
  3256. if test "$am__include" = "#"; then
  3257. echo '.include "confinc"' > confmf
  3258. case `$am_make -s -f confmf 2> /dev/null` in #(
  3259. *the\ am__doit\ target*)
  3260. am__include=.include
  3261. am__quote="\""
  3262. _am_result=BSD
  3263. ;;
  3264. esac
  3265. fi
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3267. $as_echo "$_am_result" >&6; }
  3268. rm -f confinc confmf
  3269. # Check whether --enable-dependency-tracking was given.
  3270. if test "${enable_dependency_tracking+set}" = set; then :
  3271. enableval=$enable_dependency_tracking;
  3272. fi
  3273. if test "x$enable_dependency_tracking" != xno; then
  3274. am_depcomp="$ac_aux_dir/depcomp"
  3275. AMDEPBACKSLASH='\'
  3276. am__nodep='_no'
  3277. fi
  3278. if test "x$enable_dependency_tracking" != xno; then
  3279. AMDEP_TRUE=
  3280. AMDEP_FALSE='#'
  3281. else
  3282. AMDEP_TRUE='#'
  3283. AMDEP_FALSE=
  3284. fi
  3285. depcc="$CC" am_compiler_list=
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3287. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3288. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3289. $as_echo_n "(cached) " >&6
  3290. else
  3291. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3292. # We make a subdir and do the tests there. Otherwise we can end up
  3293. # making bogus files that we don't know about and never remove. For
  3294. # instance it was reported that on HP-UX the gcc test will end up
  3295. # making a dummy file named `D' -- because `-MD' means `put the output
  3296. # in D'.
  3297. rm -rf conftest.dir
  3298. mkdir conftest.dir
  3299. # Copy depcomp to subdir because otherwise we won't find it if we're
  3300. # using a relative directory.
  3301. cp "$am_depcomp" conftest.dir
  3302. cd conftest.dir
  3303. # We will build objects and dependencies in a subdirectory because
  3304. # it helps to detect inapplicable dependency modes. For instance
  3305. # both Tru64's cc and ICC support -MD to output dependencies as a
  3306. # side effect of compilation, but ICC will put the dependencies in
  3307. # the current directory while Tru64 will put them in the object
  3308. # directory.
  3309. mkdir sub
  3310. am_cv_CC_dependencies_compiler_type=none
  3311. if test "$am_compiler_list" = ""; then
  3312. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3313. fi
  3314. am__universal=false
  3315. case " $depcc " in #(
  3316. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3317. esac
  3318. for depmode in $am_compiler_list; do
  3319. # Setup a source with many dependencies, because some compilers
  3320. # like to wrap large dependency lists on column 80 (with \), and
  3321. # we should not choose a depcomp mode which is confused by this.
  3322. #
  3323. # We need to recreate these files for each test, as the compiler may
  3324. # overwrite some of them when testing with obscure command lines.
  3325. # This happens at least with the AIX C compiler.
  3326. : > sub/conftest.c
  3327. for i in 1 2 3 4 5 6; do
  3328. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3329. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3330. # Solaris 8's {/usr,}/bin/sh.
  3331. touch sub/conftst$i.h
  3332. done
  3333. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3334. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3335. # mode. It turns out that the SunPro C++ compiler does not properly
  3336. # handle `-M -o', and we need to detect this. Also, some Intel
  3337. # versions had trouble with output in subdirs
  3338. am__obj=sub/conftest.${OBJEXT-o}
  3339. am__minus_obj="-o $am__obj"
  3340. case $depmode in
  3341. gcc)
  3342. # This depmode causes a compiler race in universal mode.
  3343. test "$am__universal" = false || continue
  3344. ;;
  3345. nosideeffect)
  3346. # after this tag, mechanisms are not by side-effect, so they'll
  3347. # only be used when explicitly requested
  3348. if test "x$enable_dependency_tracking" = xyes; then
  3349. continue
  3350. else
  3351. break
  3352. fi
  3353. ;;
  3354. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3355. # This compiler won't grok `-c -o', but also, the minuso test has
  3356. # not run yet. These depmodes are late enough in the game, and
  3357. # so weak that their functioning should not be impacted.
  3358. am__obj=conftest.${OBJEXT-o}
  3359. am__minus_obj=
  3360. ;;
  3361. none) break ;;
  3362. esac
  3363. if depmode=$depmode \
  3364. source=sub/conftest.c object=$am__obj \
  3365. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3366. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3367. >/dev/null 2>conftest.err &&
  3368. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3369. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3370. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3371. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3372. # icc doesn't choke on unknown options, it will just issue warnings
  3373. # or remarks (even with -Werror). So we grep stderr for any message
  3374. # that says an option was ignored or not supported.
  3375. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3376. # icc: Command line warning: ignoring option '-M'; no argument required
  3377. # The diagnosis changed in icc 8.0:
  3378. # icc: Command line remark: option '-MP' not supported
  3379. if (grep 'ignoring option' conftest.err ||
  3380. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3381. am_cv_CC_dependencies_compiler_type=$depmode
  3382. break
  3383. fi
  3384. fi
  3385. done
  3386. cd ..
  3387. rm -rf conftest.dir
  3388. else
  3389. am_cv_CC_dependencies_compiler_type=none
  3390. fi
  3391. fi
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3393. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3394. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3395. if
  3396. test "x$enable_dependency_tracking" != xno \
  3397. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3398. am__fastdepCC_TRUE=
  3399. am__fastdepCC_FALSE='#'
  3400. else
  3401. am__fastdepCC_TRUE='#'
  3402. am__fastdepCC_FALSE=
  3403. fi
  3404. case `pwd` in
  3405. *\ * | *\ *)
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3407. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3408. esac
  3409. macro_version='2.4.2'
  3410. macro_revision='1.3337'
  3411. ltmain="$ac_aux_dir/ltmain.sh"
  3412. # Make sure we can run config.sub.
  3413. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3414. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3416. $as_echo_n "checking build system type... " >&6; }
  3417. if ${ac_cv_build+:} false; then :
  3418. $as_echo_n "(cached) " >&6
  3419. else
  3420. ac_build_alias=$build_alias
  3421. test "x$ac_build_alias" = x &&
  3422. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3423. test "x$ac_build_alias" = x &&
  3424. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3425. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3426. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3427. fi
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3429. $as_echo "$ac_cv_build" >&6; }
  3430. case $ac_cv_build in
  3431. *-*-*) ;;
  3432. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3433. esac
  3434. build=$ac_cv_build
  3435. ac_save_IFS=$IFS; IFS='-'
  3436. set x $ac_cv_build
  3437. shift
  3438. build_cpu=$1
  3439. build_vendor=$2
  3440. shift; shift
  3441. # Remember, the first character of IFS is used to create $*,
  3442. # except with old shells:
  3443. build_os=$*
  3444. IFS=$ac_save_IFS
  3445. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3447. $as_echo_n "checking host system type... " >&6; }
  3448. if ${ac_cv_host+:} false; then :
  3449. $as_echo_n "(cached) " >&6
  3450. else
  3451. if test "x$host_alias" = x; then
  3452. ac_cv_host=$ac_cv_build
  3453. else
  3454. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3455. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3456. fi
  3457. fi
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3459. $as_echo "$ac_cv_host" >&6; }
  3460. case $ac_cv_host in
  3461. *-*-*) ;;
  3462. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3463. esac
  3464. host=$ac_cv_host
  3465. ac_save_IFS=$IFS; IFS='-'
  3466. set x $ac_cv_host
  3467. shift
  3468. host_cpu=$1
  3469. host_vendor=$2
  3470. shift; shift
  3471. # Remember, the first character of IFS is used to create $*,
  3472. # except with old shells:
  3473. host_os=$*
  3474. IFS=$ac_save_IFS
  3475. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3476. # Backslashify metacharacters that are still active within
  3477. # double-quoted strings.
  3478. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3479. # Same as above, but do not quote variable references.
  3480. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3481. # Sed substitution to delay expansion of an escaped shell variable in a
  3482. # double_quote_subst'ed string.
  3483. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3484. # Sed substitution to delay expansion of an escaped single quote.
  3485. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3486. # Sed substitution to avoid accidental globbing in evaled expressions
  3487. no_glob_subst='s/\*/\\\*/g'
  3488. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3489. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3490. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3492. $as_echo_n "checking how to print strings... " >&6; }
  3493. # Test print first, because it will be a builtin if present.
  3494. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3495. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3496. ECHO='print -r --'
  3497. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3498. ECHO='printf %s\n'
  3499. else
  3500. # Use this function as a fallback that always works.
  3501. func_fallback_echo ()
  3502. {
  3503. eval 'cat <<_LTECHO_EOF
  3504. $1
  3505. _LTECHO_EOF'
  3506. }
  3507. ECHO='func_fallback_echo'
  3508. fi
  3509. # func_echo_all arg...
  3510. # Invoke $ECHO with all args, space-separated.
  3511. func_echo_all ()
  3512. {
  3513. $ECHO ""
  3514. }
  3515. case "$ECHO" in
  3516. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3517. $as_echo "printf" >&6; } ;;
  3518. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3519. $as_echo "print -r" >&6; } ;;
  3520. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3521. $as_echo "cat" >&6; } ;;
  3522. esac
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3524. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3525. if ${ac_cv_path_SED+:} false; then :
  3526. $as_echo_n "(cached) " >&6
  3527. else
  3528. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3529. for ac_i in 1 2 3 4 5 6 7; do
  3530. ac_script="$ac_script$as_nl$ac_script"
  3531. done
  3532. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3533. { ac_script=; unset ac_script;}
  3534. if test -z "$SED"; then
  3535. ac_path_SED_found=false
  3536. # Loop through the user's path and test for each of PROGNAME-LIST
  3537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3538. for as_dir in $PATH
  3539. do
  3540. IFS=$as_save_IFS
  3541. test -z "$as_dir" && as_dir=.
  3542. for ac_prog in sed gsed; do
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3545. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3546. # Check for GNU ac_path_SED and select it if it is found.
  3547. # Check for GNU $ac_path_SED
  3548. case `"$ac_path_SED" --version 2>&1` in
  3549. *GNU*)
  3550. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3551. *)
  3552. ac_count=0
  3553. $as_echo_n 0123456789 >"conftest.in"
  3554. while :
  3555. do
  3556. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3557. mv "conftest.tmp" "conftest.in"
  3558. cp "conftest.in" "conftest.nl"
  3559. $as_echo '' >> "conftest.nl"
  3560. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3561. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3562. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3563. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3564. # Best one so far, save it but keep looking for a better one
  3565. ac_cv_path_SED="$ac_path_SED"
  3566. ac_path_SED_max=$ac_count
  3567. fi
  3568. # 10*(2^10) chars as input seems more than enough
  3569. test $ac_count -gt 10 && break
  3570. done
  3571. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3572. esac
  3573. $ac_path_SED_found && break 3
  3574. done
  3575. done
  3576. done
  3577. IFS=$as_save_IFS
  3578. if test -z "$ac_cv_path_SED"; then
  3579. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3580. fi
  3581. else
  3582. ac_cv_path_SED=$SED
  3583. fi
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3586. $as_echo "$ac_cv_path_SED" >&6; }
  3587. SED="$ac_cv_path_SED"
  3588. rm -f conftest.sed
  3589. test -z "$SED" && SED=sed
  3590. Xsed="$SED -e 1s/^X//"
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3592. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3593. if ${ac_cv_path_GREP+:} false; then :
  3594. $as_echo_n "(cached) " >&6
  3595. else
  3596. if test -z "$GREP"; then
  3597. ac_path_GREP_found=false
  3598. # Loop through the user's path and test for each of PROGNAME-LIST
  3599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3601. do
  3602. IFS=$as_save_IFS
  3603. test -z "$as_dir" && as_dir=.
  3604. for ac_prog in grep ggrep; do
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3607. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3608. # Check for GNU ac_path_GREP and select it if it is found.
  3609. # Check for GNU $ac_path_GREP
  3610. case `"$ac_path_GREP" --version 2>&1` in
  3611. *GNU*)
  3612. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3613. *)
  3614. ac_count=0
  3615. $as_echo_n 0123456789 >"conftest.in"
  3616. while :
  3617. do
  3618. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3619. mv "conftest.tmp" "conftest.in"
  3620. cp "conftest.in" "conftest.nl"
  3621. $as_echo 'GREP' >> "conftest.nl"
  3622. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3623. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3624. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3625. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3626. # Best one so far, save it but keep looking for a better one
  3627. ac_cv_path_GREP="$ac_path_GREP"
  3628. ac_path_GREP_max=$ac_count
  3629. fi
  3630. # 10*(2^10) chars as input seems more than enough
  3631. test $ac_count -gt 10 && break
  3632. done
  3633. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3634. esac
  3635. $ac_path_GREP_found && break 3
  3636. done
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. if test -z "$ac_cv_path_GREP"; then
  3641. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3642. fi
  3643. else
  3644. ac_cv_path_GREP=$GREP
  3645. fi
  3646. fi
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3648. $as_echo "$ac_cv_path_GREP" >&6; }
  3649. GREP="$ac_cv_path_GREP"
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3651. $as_echo_n "checking for egrep... " >&6; }
  3652. if ${ac_cv_path_EGREP+:} false; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3656. then ac_cv_path_EGREP="$GREP -E"
  3657. else
  3658. if test -z "$EGREP"; then
  3659. ac_path_EGREP_found=false
  3660. # Loop through the user's path and test for each of PROGNAME-LIST
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3663. do
  3664. IFS=$as_save_IFS
  3665. test -z "$as_dir" && as_dir=.
  3666. for ac_prog in egrep; do
  3667. for ac_exec_ext in '' $ac_executable_extensions; do
  3668. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3669. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3670. # Check for GNU ac_path_EGREP and select it if it is found.
  3671. # Check for GNU $ac_path_EGREP
  3672. case `"$ac_path_EGREP" --version 2>&1` in
  3673. *GNU*)
  3674. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3675. *)
  3676. ac_count=0
  3677. $as_echo_n 0123456789 >"conftest.in"
  3678. while :
  3679. do
  3680. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3681. mv "conftest.tmp" "conftest.in"
  3682. cp "conftest.in" "conftest.nl"
  3683. $as_echo 'EGREP' >> "conftest.nl"
  3684. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3685. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3686. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3687. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3688. # Best one so far, save it but keep looking for a better one
  3689. ac_cv_path_EGREP="$ac_path_EGREP"
  3690. ac_path_EGREP_max=$ac_count
  3691. fi
  3692. # 10*(2^10) chars as input seems more than enough
  3693. test $ac_count -gt 10 && break
  3694. done
  3695. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3696. esac
  3697. $ac_path_EGREP_found && break 3
  3698. done
  3699. done
  3700. done
  3701. IFS=$as_save_IFS
  3702. if test -z "$ac_cv_path_EGREP"; then
  3703. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3704. fi
  3705. else
  3706. ac_cv_path_EGREP=$EGREP
  3707. fi
  3708. fi
  3709. fi
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3711. $as_echo "$ac_cv_path_EGREP" >&6; }
  3712. EGREP="$ac_cv_path_EGREP"
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3714. $as_echo_n "checking for fgrep... " >&6; }
  3715. if ${ac_cv_path_FGREP+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3719. then ac_cv_path_FGREP="$GREP -F"
  3720. else
  3721. if test -z "$FGREP"; then
  3722. ac_path_FGREP_found=false
  3723. # Loop through the user's path and test for each of PROGNAME-LIST
  3724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3725. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3726. do
  3727. IFS=$as_save_IFS
  3728. test -z "$as_dir" && as_dir=.
  3729. for ac_prog in fgrep; do
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3732. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3733. # Check for GNU ac_path_FGREP and select it if it is found.
  3734. # Check for GNU $ac_path_FGREP
  3735. case `"$ac_path_FGREP" --version 2>&1` in
  3736. *GNU*)
  3737. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3738. *)
  3739. ac_count=0
  3740. $as_echo_n 0123456789 >"conftest.in"
  3741. while :
  3742. do
  3743. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3744. mv "conftest.tmp" "conftest.in"
  3745. cp "conftest.in" "conftest.nl"
  3746. $as_echo 'FGREP' >> "conftest.nl"
  3747. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3748. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3749. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3750. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3751. # Best one so far, save it but keep looking for a better one
  3752. ac_cv_path_FGREP="$ac_path_FGREP"
  3753. ac_path_FGREP_max=$ac_count
  3754. fi
  3755. # 10*(2^10) chars as input seems more than enough
  3756. test $ac_count -gt 10 && break
  3757. done
  3758. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3759. esac
  3760. $ac_path_FGREP_found && break 3
  3761. done
  3762. done
  3763. done
  3764. IFS=$as_save_IFS
  3765. if test -z "$ac_cv_path_FGREP"; then
  3766. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3767. fi
  3768. else
  3769. ac_cv_path_FGREP=$FGREP
  3770. fi
  3771. fi
  3772. fi
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3774. $as_echo "$ac_cv_path_FGREP" >&6; }
  3775. FGREP="$ac_cv_path_FGREP"
  3776. test -z "$GREP" && GREP=grep
  3777. # Check whether --with-gnu-ld was given.
  3778. if test "${with_gnu_ld+set}" = set; then :
  3779. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3780. else
  3781. with_gnu_ld=no
  3782. fi
  3783. ac_prog=ld
  3784. if test "$GCC" = yes; then
  3785. # Check if gcc -print-prog-name=ld gives a path.
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3787. $as_echo_n "checking for ld used by $CC... " >&6; }
  3788. case $host in
  3789. *-*-mingw*)
  3790. # gcc leaves a trailing carriage return which upsets mingw
  3791. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3792. *)
  3793. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3794. esac
  3795. case $ac_prog in
  3796. # Accept absolute paths.
  3797. [\\/]* | ?:[\\/]*)
  3798. re_direlt='/[^/][^/]*/\.\./'
  3799. # Canonicalize the pathname of ld
  3800. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3801. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3802. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3803. done
  3804. test -z "$LD" && LD="$ac_prog"
  3805. ;;
  3806. "")
  3807. # If it fails, then pretend we aren't using GCC.
  3808. ac_prog=ld
  3809. ;;
  3810. *)
  3811. # If it is relative, then search for the first ld in PATH.
  3812. with_gnu_ld=unknown
  3813. ;;
  3814. esac
  3815. elif test "$with_gnu_ld" = yes; then
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3817. $as_echo_n "checking for GNU ld... " >&6; }
  3818. else
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3820. $as_echo_n "checking for non-GNU ld... " >&6; }
  3821. fi
  3822. if ${lt_cv_path_LD+:} false; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. if test -z "$LD"; then
  3826. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3827. for ac_dir in $PATH; do
  3828. IFS="$lt_save_ifs"
  3829. test -z "$ac_dir" && ac_dir=.
  3830. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3831. lt_cv_path_LD="$ac_dir/$ac_prog"
  3832. # Check to see if the program is GNU ld. I'd rather use --version,
  3833. # but apparently some variants of GNU ld only accept -v.
  3834. # Break only if it was the GNU/non-GNU ld that we prefer.
  3835. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3836. *GNU* | *'with BFD'*)
  3837. test "$with_gnu_ld" != no && break
  3838. ;;
  3839. *)
  3840. test "$with_gnu_ld" != yes && break
  3841. ;;
  3842. esac
  3843. fi
  3844. done
  3845. IFS="$lt_save_ifs"
  3846. else
  3847. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3848. fi
  3849. fi
  3850. LD="$lt_cv_path_LD"
  3851. if test -n "$LD"; then
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3853. $as_echo "$LD" >&6; }
  3854. else
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3856. $as_echo "no" >&6; }
  3857. fi
  3858. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3860. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3861. if ${lt_cv_prog_gnu_ld+:} false; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3865. case `$LD -v 2>&1 </dev/null` in
  3866. *GNU* | *'with BFD'*)
  3867. lt_cv_prog_gnu_ld=yes
  3868. ;;
  3869. *)
  3870. lt_cv_prog_gnu_ld=no
  3871. ;;
  3872. esac
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3875. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3876. with_gnu_ld=$lt_cv_prog_gnu_ld
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3878. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3879. if ${lt_cv_path_NM+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if test -n "$NM"; then
  3883. # Let the user override the test.
  3884. lt_cv_path_NM="$NM"
  3885. else
  3886. lt_nm_to_check="${ac_tool_prefix}nm"
  3887. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3888. lt_nm_to_check="$lt_nm_to_check nm"
  3889. fi
  3890. for lt_tmp_nm in $lt_nm_to_check; do
  3891. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3892. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3893. IFS="$lt_save_ifs"
  3894. test -z "$ac_dir" && ac_dir=.
  3895. tmp_nm="$ac_dir/$lt_tmp_nm"
  3896. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3897. # Check to see if the nm accepts a BSD-compat flag.
  3898. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3899. # nm: unknown option "B" ignored
  3900. # Tru64's nm complains that /dev/null is an invalid object file
  3901. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3902. */dev/null* | *'Invalid file or object type'*)
  3903. lt_cv_path_NM="$tmp_nm -B"
  3904. break
  3905. ;;
  3906. *)
  3907. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3908. */dev/null*)
  3909. lt_cv_path_NM="$tmp_nm -p"
  3910. break
  3911. ;;
  3912. *)
  3913. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3914. continue # so that we can try to find one that supports BSD flags
  3915. ;;
  3916. esac
  3917. ;;
  3918. esac
  3919. fi
  3920. done
  3921. IFS="$lt_save_ifs"
  3922. done
  3923. : ${lt_cv_path_NM=no}
  3924. fi
  3925. fi
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3927. $as_echo "$lt_cv_path_NM" >&6; }
  3928. if test "$lt_cv_path_NM" != "no"; then
  3929. NM="$lt_cv_path_NM"
  3930. else
  3931. # Didn't find any BSD compatible name lister, look for dumpbin.
  3932. if test -n "$DUMPBIN"; then :
  3933. # Let the user override the test.
  3934. else
  3935. if test -n "$ac_tool_prefix"; then
  3936. for ac_prog in dumpbin "link -dump"
  3937. do
  3938. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3939. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3941. $as_echo_n "checking for $ac_word... " >&6; }
  3942. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3943. $as_echo_n "(cached) " >&6
  3944. else
  3945. if test -n "$DUMPBIN"; then
  3946. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3947. else
  3948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3949. for as_dir in $PATH
  3950. do
  3951. IFS=$as_save_IFS
  3952. test -z "$as_dir" && as_dir=.
  3953. for ac_exec_ext in '' $ac_executable_extensions; do
  3954. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3955. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3957. break 2
  3958. fi
  3959. done
  3960. done
  3961. IFS=$as_save_IFS
  3962. fi
  3963. fi
  3964. DUMPBIN=$ac_cv_prog_DUMPBIN
  3965. if test -n "$DUMPBIN"; then
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3967. $as_echo "$DUMPBIN" >&6; }
  3968. else
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3970. $as_echo "no" >&6; }
  3971. fi
  3972. test -n "$DUMPBIN" && break
  3973. done
  3974. fi
  3975. if test -z "$DUMPBIN"; then
  3976. ac_ct_DUMPBIN=$DUMPBIN
  3977. for ac_prog in dumpbin "link -dump"
  3978. do
  3979. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3980. set dummy $ac_prog; ac_word=$2
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3982. $as_echo_n "checking for $ac_word... " >&6; }
  3983. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3984. $as_echo_n "(cached) " >&6
  3985. else
  3986. if test -n "$ac_ct_DUMPBIN"; then
  3987. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3988. else
  3989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3990. for as_dir in $PATH
  3991. do
  3992. IFS=$as_save_IFS
  3993. test -z "$as_dir" && as_dir=.
  3994. for ac_exec_ext in '' $ac_executable_extensions; do
  3995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3996. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3998. break 2
  3999. fi
  4000. done
  4001. done
  4002. IFS=$as_save_IFS
  4003. fi
  4004. fi
  4005. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4006. if test -n "$ac_ct_DUMPBIN"; then
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4008. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4009. else
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4011. $as_echo "no" >&6; }
  4012. fi
  4013. test -n "$ac_ct_DUMPBIN" && break
  4014. done
  4015. if test "x$ac_ct_DUMPBIN" = x; then
  4016. DUMPBIN=":"
  4017. else
  4018. case $cross_compiling:$ac_tool_warned in
  4019. yes:)
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4021. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4022. ac_tool_warned=yes ;;
  4023. esac
  4024. DUMPBIN=$ac_ct_DUMPBIN
  4025. fi
  4026. fi
  4027. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4028. *COFF*)
  4029. DUMPBIN="$DUMPBIN -symbols"
  4030. ;;
  4031. *)
  4032. DUMPBIN=:
  4033. ;;
  4034. esac
  4035. fi
  4036. if test "$DUMPBIN" != ":"; then
  4037. NM="$DUMPBIN"
  4038. fi
  4039. fi
  4040. test -z "$NM" && NM=nm
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4042. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4043. if ${lt_cv_nm_interface+:} false; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. lt_cv_nm_interface="BSD nm"
  4047. echo "int some_variable = 0;" > conftest.$ac_ext
  4048. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4049. (eval "$ac_compile" 2>conftest.err)
  4050. cat conftest.err >&5
  4051. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4052. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4053. cat conftest.err >&5
  4054. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4055. cat conftest.out >&5
  4056. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4057. lt_cv_nm_interface="MS dumpbin"
  4058. fi
  4059. rm -f conftest*
  4060. fi
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4062. $as_echo "$lt_cv_nm_interface" >&6; }
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4064. $as_echo_n "checking whether ln -s works... " >&6; }
  4065. LN_S=$as_ln_s
  4066. if test "$LN_S" = "ln -s"; then
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4068. $as_echo "yes" >&6; }
  4069. else
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4071. $as_echo "no, using $LN_S" >&6; }
  4072. fi
  4073. # find the maximum length of command line arguments
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4075. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4076. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. i=0
  4080. teststring="ABCD"
  4081. case $build_os in
  4082. msdosdjgpp*)
  4083. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4084. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4085. # during glob expansion). Even if it were fixed, the result of this
  4086. # check would be larger than it should be.
  4087. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4088. ;;
  4089. gnu*)
  4090. # Under GNU Hurd, this test is not required because there is
  4091. # no limit to the length of command line arguments.
  4092. # Libtool will interpret -1 as no limit whatsoever
  4093. lt_cv_sys_max_cmd_len=-1;
  4094. ;;
  4095. cygwin* | mingw* | cegcc*)
  4096. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4097. # about 5 minutes as the teststring grows exponentially.
  4098. # Worse, since 9x/ME are not pre-emptively multitasking,
  4099. # you end up with a "frozen" computer, even though with patience
  4100. # the test eventually succeeds (with a max line length of 256k).
  4101. # Instead, let's just punt: use the minimum linelength reported by
  4102. # all of the supported platforms: 8192 (on NT/2K/XP).
  4103. lt_cv_sys_max_cmd_len=8192;
  4104. ;;
  4105. mint*)
  4106. # On MiNT this can take a long time and run out of memory.
  4107. lt_cv_sys_max_cmd_len=8192;
  4108. ;;
  4109. amigaos*)
  4110. # On AmigaOS with pdksh, this test takes hours, literally.
  4111. # So we just punt and use a minimum line length of 8192.
  4112. lt_cv_sys_max_cmd_len=8192;
  4113. ;;
  4114. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4115. # This has been around since 386BSD, at least. Likely further.
  4116. if test -x /sbin/sysctl; then
  4117. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4118. elif test -x /usr/sbin/sysctl; then
  4119. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4120. else
  4121. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4122. fi
  4123. # And add a safety zone
  4124. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4126. ;;
  4127. interix*)
  4128. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4129. lt_cv_sys_max_cmd_len=196608
  4130. ;;
  4131. os2*)
  4132. # The test takes a long time on OS/2.
  4133. lt_cv_sys_max_cmd_len=8192
  4134. ;;
  4135. osf*)
  4136. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4137. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4138. # nice to cause kernel panics so lets avoid the loop below.
  4139. # First set a reasonable default.
  4140. lt_cv_sys_max_cmd_len=16384
  4141. #
  4142. if test -x /sbin/sysconfig; then
  4143. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4144. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4145. esac
  4146. fi
  4147. ;;
  4148. sco3.2v5*)
  4149. lt_cv_sys_max_cmd_len=102400
  4150. ;;
  4151. sysv5* | sco5v6* | sysv4.2uw2*)
  4152. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4153. if test -n "$kargmax"; then
  4154. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4155. else
  4156. lt_cv_sys_max_cmd_len=32768
  4157. fi
  4158. ;;
  4159. *)
  4160. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4161. if test -n "$lt_cv_sys_max_cmd_len"; then
  4162. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4163. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4164. else
  4165. # Make teststring a little bigger before we do anything with it.
  4166. # a 1K string should be a reasonable start.
  4167. for i in 1 2 3 4 5 6 7 8 ; do
  4168. teststring=$teststring$teststring
  4169. done
  4170. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4171. # If test is not a shell built-in, we'll probably end up computing a
  4172. # maximum length that is only half of the actual maximum length, but
  4173. # we can't tell.
  4174. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4175. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4176. test $i != 17 # 1/2 MB should be enough
  4177. do
  4178. i=`expr $i + 1`
  4179. teststring=$teststring$teststring
  4180. done
  4181. # Only check the string length outside the loop.
  4182. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4183. teststring=
  4184. # Add a significant safety factor because C++ compilers can tack on
  4185. # massive amounts of additional arguments before passing them to the
  4186. # linker. It appears as though 1/2 is a usable value.
  4187. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4188. fi
  4189. ;;
  4190. esac
  4191. fi
  4192. if test -n $lt_cv_sys_max_cmd_len ; then
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4194. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4195. else
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4197. $as_echo "none" >&6; }
  4198. fi
  4199. max_cmd_len=$lt_cv_sys_max_cmd_len
  4200. : ${CP="cp -f"}
  4201. : ${MV="mv -f"}
  4202. : ${RM="rm -f"}
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4204. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4205. # Try some XSI features
  4206. xsi_shell=no
  4207. ( _lt_dummy="a/b/c"
  4208. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4209. = c,a/b,b/c, \
  4210. && eval 'test $(( 1 + 1 )) -eq 2 \
  4211. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4212. && xsi_shell=yes
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4214. $as_echo "$xsi_shell" >&6; }
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4216. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4217. lt_shell_append=no
  4218. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4219. >/dev/null 2>&1 \
  4220. && lt_shell_append=yes
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4222. $as_echo "$lt_shell_append" >&6; }
  4223. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4224. lt_unset=unset
  4225. else
  4226. lt_unset=false
  4227. fi
  4228. # test EBCDIC or ASCII
  4229. case `echo X|tr X '\101'` in
  4230. A) # ASCII based system
  4231. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4232. lt_SP2NL='tr \040 \012'
  4233. lt_NL2SP='tr \015\012 \040\040'
  4234. ;;
  4235. *) # EBCDIC based system
  4236. lt_SP2NL='tr \100 \n'
  4237. lt_NL2SP='tr \r\n \100\100'
  4238. ;;
  4239. esac
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4241. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4242. if ${lt_cv_to_host_file_cmd+:} false; then :
  4243. $as_echo_n "(cached) " >&6
  4244. else
  4245. case $host in
  4246. *-*-mingw* )
  4247. case $build in
  4248. *-*-mingw* ) # actually msys
  4249. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4250. ;;
  4251. *-*-cygwin* )
  4252. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4253. ;;
  4254. * ) # otherwise, assume *nix
  4255. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4256. ;;
  4257. esac
  4258. ;;
  4259. *-*-cygwin* )
  4260. case $build in
  4261. *-*-mingw* ) # actually msys
  4262. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4263. ;;
  4264. *-*-cygwin* )
  4265. lt_cv_to_host_file_cmd=func_convert_file_noop
  4266. ;;
  4267. * ) # otherwise, assume *nix
  4268. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4269. ;;
  4270. esac
  4271. ;;
  4272. * ) # unhandled hosts (and "normal" native builds)
  4273. lt_cv_to_host_file_cmd=func_convert_file_noop
  4274. ;;
  4275. esac
  4276. fi
  4277. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4279. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4281. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4282. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4283. $as_echo_n "(cached) " >&6
  4284. else
  4285. #assume ordinary cross tools, or native build.
  4286. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4287. case $host in
  4288. *-*-mingw* )
  4289. case $build in
  4290. *-*-mingw* ) # actually msys
  4291. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4292. ;;
  4293. esac
  4294. ;;
  4295. esac
  4296. fi
  4297. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4299. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4301. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4302. if ${lt_cv_ld_reload_flag+:} false; then :
  4303. $as_echo_n "(cached) " >&6
  4304. else
  4305. lt_cv_ld_reload_flag='-r'
  4306. fi
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4308. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4309. reload_flag=$lt_cv_ld_reload_flag
  4310. case $reload_flag in
  4311. "" | " "*) ;;
  4312. *) reload_flag=" $reload_flag" ;;
  4313. esac
  4314. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4315. case $host_os in
  4316. cygwin* | mingw* | pw32* | cegcc*)
  4317. if test "$GCC" != yes; then
  4318. reload_cmds=false
  4319. fi
  4320. ;;
  4321. darwin*)
  4322. if test "$GCC" = yes; then
  4323. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4324. else
  4325. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4326. fi
  4327. ;;
  4328. esac
  4329. if test -n "$ac_tool_prefix"; then
  4330. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4331. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4333. $as_echo_n "checking for $ac_word... " >&6; }
  4334. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4335. $as_echo_n "(cached) " >&6
  4336. else
  4337. if test -n "$OBJDUMP"; then
  4338. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4339. else
  4340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4341. for as_dir in $PATH
  4342. do
  4343. IFS=$as_save_IFS
  4344. test -z "$as_dir" && as_dir=.
  4345. for ac_exec_ext in '' $ac_executable_extensions; do
  4346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4347. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4349. break 2
  4350. fi
  4351. done
  4352. done
  4353. IFS=$as_save_IFS
  4354. fi
  4355. fi
  4356. OBJDUMP=$ac_cv_prog_OBJDUMP
  4357. if test -n "$OBJDUMP"; then
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4359. $as_echo "$OBJDUMP" >&6; }
  4360. else
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4362. $as_echo "no" >&6; }
  4363. fi
  4364. fi
  4365. if test -z "$ac_cv_prog_OBJDUMP"; then
  4366. ac_ct_OBJDUMP=$OBJDUMP
  4367. # Extract the first word of "objdump", so it can be a program name with args.
  4368. set dummy objdump; ac_word=$2
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4370. $as_echo_n "checking for $ac_word... " >&6; }
  4371. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. if test -n "$ac_ct_OBJDUMP"; then
  4375. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4376. else
  4377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4378. for as_dir in $PATH
  4379. do
  4380. IFS=$as_save_IFS
  4381. test -z "$as_dir" && as_dir=.
  4382. for ac_exec_ext in '' $ac_executable_extensions; do
  4383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4384. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4386. break 2
  4387. fi
  4388. done
  4389. done
  4390. IFS=$as_save_IFS
  4391. fi
  4392. fi
  4393. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4394. if test -n "$ac_ct_OBJDUMP"; then
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4396. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4397. else
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4399. $as_echo "no" >&6; }
  4400. fi
  4401. if test "x$ac_ct_OBJDUMP" = x; then
  4402. OBJDUMP="false"
  4403. else
  4404. case $cross_compiling:$ac_tool_warned in
  4405. yes:)
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4408. ac_tool_warned=yes ;;
  4409. esac
  4410. OBJDUMP=$ac_ct_OBJDUMP
  4411. fi
  4412. else
  4413. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4414. fi
  4415. test -z "$OBJDUMP" && OBJDUMP=objdump
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4417. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4418. if ${lt_cv_deplibs_check_method+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4422. lt_cv_file_magic_test_file=
  4423. lt_cv_deplibs_check_method='unknown'
  4424. # Need to set the preceding variable on all platforms that support
  4425. # interlibrary dependencies.
  4426. # 'none' -- dependencies not supported.
  4427. # `unknown' -- same as none, but documents that we really don't know.
  4428. # 'pass_all' -- all dependencies passed with no checks.
  4429. # 'test_compile' -- check by making test program.
  4430. # 'file_magic [[regex]]' -- check by looking for files in library path
  4431. # which responds to the $file_magic_cmd with a given extended regex.
  4432. # If you have `file' or equivalent on your system and you're not sure
  4433. # whether `pass_all' will *always* work, you probably want this one.
  4434. case $host_os in
  4435. aix[4-9]*)
  4436. lt_cv_deplibs_check_method=pass_all
  4437. ;;
  4438. beos*)
  4439. lt_cv_deplibs_check_method=pass_all
  4440. ;;
  4441. bsdi[45]*)
  4442. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4443. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4444. lt_cv_file_magic_test_file=/shlib/libc.so
  4445. ;;
  4446. cygwin*)
  4447. # func_win32_libid is a shell function defined in ltmain.sh
  4448. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4449. lt_cv_file_magic_cmd='func_win32_libid'
  4450. ;;
  4451. mingw* | pw32*)
  4452. # Base MSYS/MinGW do not provide the 'file' command needed by
  4453. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4454. # unless we find 'file', for example because we are cross-compiling.
  4455. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4456. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4457. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4458. lt_cv_file_magic_cmd='func_win32_libid'
  4459. else
  4460. # Keep this pattern in sync with the one in func_win32_libid.
  4461. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4462. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4463. fi
  4464. ;;
  4465. cegcc*)
  4466. # use the weaker test based on 'objdump'. See mingw*.
  4467. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4468. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4469. ;;
  4470. darwin* | rhapsody*)
  4471. lt_cv_deplibs_check_method=pass_all
  4472. ;;
  4473. freebsd* | dragonfly*)
  4474. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4475. case $host_cpu in
  4476. i*86 )
  4477. # Not sure whether the presence of OpenBSD here was a mistake.
  4478. # Let's accept both of them until this is cleared up.
  4479. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4480. lt_cv_file_magic_cmd=/usr/bin/file
  4481. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4482. ;;
  4483. esac
  4484. else
  4485. lt_cv_deplibs_check_method=pass_all
  4486. fi
  4487. ;;
  4488. gnu*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. haiku*)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. hpux10.20* | hpux11*)
  4495. lt_cv_file_magic_cmd=/usr/bin/file
  4496. case $host_cpu in
  4497. ia64*)
  4498. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4499. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4500. ;;
  4501. hppa*64*)
  4502. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4503. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4504. ;;
  4505. *)
  4506. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4507. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4508. ;;
  4509. esac
  4510. ;;
  4511. interix[3-9]*)
  4512. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4513. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4514. ;;
  4515. irix5* | irix6* | nonstopux*)
  4516. case $LD in
  4517. *-32|*"-32 ") libmagic=32-bit;;
  4518. *-n32|*"-n32 ") libmagic=N32;;
  4519. *-64|*"-64 ") libmagic=64-bit;;
  4520. *) libmagic=never-match;;
  4521. esac
  4522. lt_cv_deplibs_check_method=pass_all
  4523. ;;
  4524. # This must be glibc/ELF.
  4525. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4526. lt_cv_deplibs_check_method=pass_all
  4527. ;;
  4528. netbsd* | netbsdelf*-gnu)
  4529. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4530. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4531. else
  4532. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4533. fi
  4534. ;;
  4535. newos6*)
  4536. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4537. lt_cv_file_magic_cmd=/usr/bin/file
  4538. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4539. ;;
  4540. *nto* | *qnx*)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. openbsd*)
  4544. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4545. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4546. else
  4547. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4548. fi
  4549. ;;
  4550. osf3* | osf4* | osf5*)
  4551. lt_cv_deplibs_check_method=pass_all
  4552. ;;
  4553. rdos*)
  4554. lt_cv_deplibs_check_method=pass_all
  4555. ;;
  4556. solaris*)
  4557. lt_cv_deplibs_check_method=pass_all
  4558. ;;
  4559. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4560. lt_cv_deplibs_check_method=pass_all
  4561. ;;
  4562. sysv4 | sysv4.3*)
  4563. case $host_vendor in
  4564. motorola)
  4565. 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]'
  4566. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4567. ;;
  4568. ncr)
  4569. lt_cv_deplibs_check_method=pass_all
  4570. ;;
  4571. sequent)
  4572. lt_cv_file_magic_cmd='/bin/file'
  4573. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4574. ;;
  4575. sni)
  4576. lt_cv_file_magic_cmd='/bin/file'
  4577. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4578. lt_cv_file_magic_test_file=/lib/libc.so
  4579. ;;
  4580. siemens)
  4581. lt_cv_deplibs_check_method=pass_all
  4582. ;;
  4583. pc)
  4584. lt_cv_deplibs_check_method=pass_all
  4585. ;;
  4586. esac
  4587. ;;
  4588. tpf*)
  4589. lt_cv_deplibs_check_method=pass_all
  4590. ;;
  4591. esac
  4592. fi
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4594. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4595. file_magic_glob=
  4596. want_nocaseglob=no
  4597. if test "$build" = "$host"; then
  4598. case $host_os in
  4599. mingw* | pw32*)
  4600. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4601. want_nocaseglob=yes
  4602. else
  4603. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4604. fi
  4605. ;;
  4606. esac
  4607. fi
  4608. file_magic_cmd=$lt_cv_file_magic_cmd
  4609. deplibs_check_method=$lt_cv_deplibs_check_method
  4610. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4611. if test -n "$ac_tool_prefix"; then
  4612. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4613. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4615. $as_echo_n "checking for $ac_word... " >&6; }
  4616. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. if test -n "$DLLTOOL"; then
  4620. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4621. else
  4622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4623. for as_dir in $PATH
  4624. do
  4625. IFS=$as_save_IFS
  4626. test -z "$as_dir" && as_dir=.
  4627. for ac_exec_ext in '' $ac_executable_extensions; do
  4628. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4629. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4631. break 2
  4632. fi
  4633. done
  4634. done
  4635. IFS=$as_save_IFS
  4636. fi
  4637. fi
  4638. DLLTOOL=$ac_cv_prog_DLLTOOL
  4639. if test -n "$DLLTOOL"; then
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4641. $as_echo "$DLLTOOL" >&6; }
  4642. else
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4644. $as_echo "no" >&6; }
  4645. fi
  4646. fi
  4647. if test -z "$ac_cv_prog_DLLTOOL"; then
  4648. ac_ct_DLLTOOL=$DLLTOOL
  4649. # Extract the first word of "dlltool", so it can be a program name with args.
  4650. set dummy dlltool; ac_word=$2
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4652. $as_echo_n "checking for $ac_word... " >&6; }
  4653. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. if test -n "$ac_ct_DLLTOOL"; then
  4657. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4658. else
  4659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4660. for as_dir in $PATH
  4661. do
  4662. IFS=$as_save_IFS
  4663. test -z "$as_dir" && as_dir=.
  4664. for ac_exec_ext in '' $ac_executable_extensions; do
  4665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4666. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4668. break 2
  4669. fi
  4670. done
  4671. done
  4672. IFS=$as_save_IFS
  4673. fi
  4674. fi
  4675. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4676. if test -n "$ac_ct_DLLTOOL"; then
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4678. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4679. else
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4681. $as_echo "no" >&6; }
  4682. fi
  4683. if test "x$ac_ct_DLLTOOL" = x; then
  4684. DLLTOOL="false"
  4685. else
  4686. case $cross_compiling:$ac_tool_warned in
  4687. yes:)
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4689. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4690. ac_tool_warned=yes ;;
  4691. esac
  4692. DLLTOOL=$ac_ct_DLLTOOL
  4693. fi
  4694. else
  4695. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4696. fi
  4697. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4699. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4700. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4701. $as_echo_n "(cached) " >&6
  4702. else
  4703. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4704. case $host_os in
  4705. cygwin* | mingw* | pw32* | cegcc*)
  4706. # two different shell functions defined in ltmain.sh
  4707. # decide which to use based on capabilities of $DLLTOOL
  4708. case `$DLLTOOL --help 2>&1` in
  4709. *--identify-strict*)
  4710. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4711. ;;
  4712. *)
  4713. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4714. ;;
  4715. esac
  4716. ;;
  4717. *)
  4718. # fallback: assume linklib IS sharedlib
  4719. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4720. ;;
  4721. esac
  4722. fi
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4724. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4725. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4726. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4727. if test -n "$ac_tool_prefix"; then
  4728. for ac_prog in ar
  4729. do
  4730. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4731. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4733. $as_echo_n "checking for $ac_word... " >&6; }
  4734. if ${ac_cv_prog_AR+:} false; then :
  4735. $as_echo_n "(cached) " >&6
  4736. else
  4737. if test -n "$AR"; then
  4738. ac_cv_prog_AR="$AR" # Let the user override the test.
  4739. else
  4740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4741. for as_dir in $PATH
  4742. do
  4743. IFS=$as_save_IFS
  4744. test -z "$as_dir" && as_dir=.
  4745. for ac_exec_ext in '' $ac_executable_extensions; do
  4746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4747. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4749. break 2
  4750. fi
  4751. done
  4752. done
  4753. IFS=$as_save_IFS
  4754. fi
  4755. fi
  4756. AR=$ac_cv_prog_AR
  4757. if test -n "$AR"; then
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4759. $as_echo "$AR" >&6; }
  4760. else
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4762. $as_echo "no" >&6; }
  4763. fi
  4764. test -n "$AR" && break
  4765. done
  4766. fi
  4767. if test -z "$AR"; then
  4768. ac_ct_AR=$AR
  4769. for ac_prog in ar
  4770. do
  4771. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4772. set dummy $ac_prog; ac_word=$2
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4774. $as_echo_n "checking for $ac_word... " >&6; }
  4775. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. if test -n "$ac_ct_AR"; then
  4779. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4780. else
  4781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4782. for as_dir in $PATH
  4783. do
  4784. IFS=$as_save_IFS
  4785. test -z "$as_dir" && as_dir=.
  4786. for ac_exec_ext in '' $ac_executable_extensions; do
  4787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4788. ac_cv_prog_ac_ct_AR="$ac_prog"
  4789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4790. break 2
  4791. fi
  4792. done
  4793. done
  4794. IFS=$as_save_IFS
  4795. fi
  4796. fi
  4797. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4798. if test -n "$ac_ct_AR"; then
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4800. $as_echo "$ac_ct_AR" >&6; }
  4801. else
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4803. $as_echo "no" >&6; }
  4804. fi
  4805. test -n "$ac_ct_AR" && break
  4806. done
  4807. if test "x$ac_ct_AR" = x; then
  4808. AR="false"
  4809. else
  4810. case $cross_compiling:$ac_tool_warned in
  4811. yes:)
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4814. ac_tool_warned=yes ;;
  4815. esac
  4816. AR=$ac_ct_AR
  4817. fi
  4818. fi
  4819. : ${AR=ar}
  4820. : ${AR_FLAGS=cru}
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4822. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4823. if ${lt_cv_ar_at_file+:} false; then :
  4824. $as_echo_n "(cached) " >&6
  4825. else
  4826. lt_cv_ar_at_file=no
  4827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4828. /* end confdefs.h. */
  4829. int
  4830. main ()
  4831. {
  4832. ;
  4833. return 0;
  4834. }
  4835. _ACEOF
  4836. if ac_fn_c_try_compile "$LINENO"; then :
  4837. echo conftest.$ac_objext > conftest.lst
  4838. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4839. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4840. (eval $lt_ar_try) 2>&5
  4841. ac_status=$?
  4842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4843. test $ac_status = 0; }
  4844. if test "$ac_status" -eq 0; then
  4845. # Ensure the archiver fails upon bogus file names.
  4846. rm -f conftest.$ac_objext libconftest.a
  4847. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4848. (eval $lt_ar_try) 2>&5
  4849. ac_status=$?
  4850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4851. test $ac_status = 0; }
  4852. if test "$ac_status" -ne 0; then
  4853. lt_cv_ar_at_file=@
  4854. fi
  4855. fi
  4856. rm -f conftest.* libconftest.a
  4857. fi
  4858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4859. fi
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4861. $as_echo "$lt_cv_ar_at_file" >&6; }
  4862. if test "x$lt_cv_ar_at_file" = xno; then
  4863. archiver_list_spec=
  4864. else
  4865. archiver_list_spec=$lt_cv_ar_at_file
  4866. fi
  4867. if test -n "$ac_tool_prefix"; then
  4868. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4869. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4871. $as_echo_n "checking for $ac_word... " >&6; }
  4872. if ${ac_cv_prog_STRIP+:} false; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if test -n "$STRIP"; then
  4876. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4877. else
  4878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4879. for as_dir in $PATH
  4880. do
  4881. IFS=$as_save_IFS
  4882. test -z "$as_dir" && as_dir=.
  4883. for ac_exec_ext in '' $ac_executable_extensions; do
  4884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4885. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4887. break 2
  4888. fi
  4889. done
  4890. done
  4891. IFS=$as_save_IFS
  4892. fi
  4893. fi
  4894. STRIP=$ac_cv_prog_STRIP
  4895. if test -n "$STRIP"; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4897. $as_echo "$STRIP" >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4900. $as_echo "no" >&6; }
  4901. fi
  4902. fi
  4903. if test -z "$ac_cv_prog_STRIP"; then
  4904. ac_ct_STRIP=$STRIP
  4905. # Extract the first word of "strip", so it can be a program name with args.
  4906. set dummy strip; ac_word=$2
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4908. $as_echo_n "checking for $ac_word... " >&6; }
  4909. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. if test -n "$ac_ct_STRIP"; then
  4913. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4914. else
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_exec_ext in '' $ac_executable_extensions; do
  4921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4922. ac_cv_prog_ac_ct_STRIP="strip"
  4923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4924. break 2
  4925. fi
  4926. done
  4927. done
  4928. IFS=$as_save_IFS
  4929. fi
  4930. fi
  4931. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4932. if test -n "$ac_ct_STRIP"; then
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4934. $as_echo "$ac_ct_STRIP" >&6; }
  4935. else
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4937. $as_echo "no" >&6; }
  4938. fi
  4939. if test "x$ac_ct_STRIP" = x; then
  4940. STRIP=":"
  4941. else
  4942. case $cross_compiling:$ac_tool_warned in
  4943. yes:)
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4945. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4946. ac_tool_warned=yes ;;
  4947. esac
  4948. STRIP=$ac_ct_STRIP
  4949. fi
  4950. else
  4951. STRIP="$ac_cv_prog_STRIP"
  4952. fi
  4953. test -z "$STRIP" && STRIP=:
  4954. if test -n "$ac_tool_prefix"; then
  4955. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4956. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4958. $as_echo_n "checking for $ac_word... " >&6; }
  4959. if ${ac_cv_prog_RANLIB+:} false; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. if test -n "$RANLIB"; then
  4963. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4964. else
  4965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4966. for as_dir in $PATH
  4967. do
  4968. IFS=$as_save_IFS
  4969. test -z "$as_dir" && as_dir=.
  4970. for ac_exec_ext in '' $ac_executable_extensions; do
  4971. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4972. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4974. break 2
  4975. fi
  4976. done
  4977. done
  4978. IFS=$as_save_IFS
  4979. fi
  4980. fi
  4981. RANLIB=$ac_cv_prog_RANLIB
  4982. if test -n "$RANLIB"; then
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4984. $as_echo "$RANLIB" >&6; }
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4987. $as_echo "no" >&6; }
  4988. fi
  4989. fi
  4990. if test -z "$ac_cv_prog_RANLIB"; then
  4991. ac_ct_RANLIB=$RANLIB
  4992. # Extract the first word of "ranlib", so it can be a program name with args.
  4993. set dummy ranlib; ac_word=$2
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4995. $as_echo_n "checking for $ac_word... " >&6; }
  4996. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. if test -n "$ac_ct_RANLIB"; then
  5000. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5001. else
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. test -z "$as_dir" && as_dir=.
  5007. for ac_exec_ext in '' $ac_executable_extensions; do
  5008. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5009. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5011. break 2
  5012. fi
  5013. done
  5014. done
  5015. IFS=$as_save_IFS
  5016. fi
  5017. fi
  5018. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5019. if test -n "$ac_ct_RANLIB"; then
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5021. $as_echo "$ac_ct_RANLIB" >&6; }
  5022. else
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5024. $as_echo "no" >&6; }
  5025. fi
  5026. if test "x$ac_ct_RANLIB" = x; then
  5027. RANLIB=":"
  5028. else
  5029. case $cross_compiling:$ac_tool_warned in
  5030. yes:)
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5032. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5033. ac_tool_warned=yes ;;
  5034. esac
  5035. RANLIB=$ac_ct_RANLIB
  5036. fi
  5037. else
  5038. RANLIB="$ac_cv_prog_RANLIB"
  5039. fi
  5040. test -z "$RANLIB" && RANLIB=:
  5041. # Determine commands to create old-style static archives.
  5042. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5043. old_postinstall_cmds='chmod 644 $oldlib'
  5044. old_postuninstall_cmds=
  5045. if test -n "$RANLIB"; then
  5046. case $host_os in
  5047. openbsd*)
  5048. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5049. ;;
  5050. *)
  5051. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5052. ;;
  5053. esac
  5054. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5055. fi
  5056. case $host_os in
  5057. darwin*)
  5058. lock_old_archive_extraction=yes ;;
  5059. *)
  5060. lock_old_archive_extraction=no ;;
  5061. esac
  5062. # If no C compiler was specified, use CC.
  5063. LTCC=${LTCC-"$CC"}
  5064. # If no C compiler flags were specified, use CFLAGS.
  5065. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5066. # Allow CC to be a program name with arguments.
  5067. compiler=$CC
  5068. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5070. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5071. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5072. $as_echo_n "(cached) " >&6
  5073. else
  5074. # These are sane defaults that work on at least a few old systems.
  5075. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5076. # Character class describing NM global symbol codes.
  5077. symcode='[BCDEGRST]'
  5078. # Regexp to match symbols that can be accessed directly from C.
  5079. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5080. # Define system-specific variables.
  5081. case $host_os in
  5082. aix*)
  5083. symcode='[BCDT]'
  5084. ;;
  5085. cygwin* | mingw* | pw32* | cegcc*)
  5086. symcode='[ABCDGISTW]'
  5087. ;;
  5088. hpux*)
  5089. if test "$host_cpu" = ia64; then
  5090. symcode='[ABCDEGRST]'
  5091. fi
  5092. ;;
  5093. irix* | nonstopux*)
  5094. symcode='[BCDEGRST]'
  5095. ;;
  5096. osf*)
  5097. symcode='[BCDEGQRST]'
  5098. ;;
  5099. solaris*)
  5100. symcode='[BDRT]'
  5101. ;;
  5102. sco3.2v5*)
  5103. symcode='[DT]'
  5104. ;;
  5105. sysv4.2uw2*)
  5106. symcode='[DT]'
  5107. ;;
  5108. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5109. symcode='[ABDT]'
  5110. ;;
  5111. sysv4)
  5112. symcode='[DFNSTU]'
  5113. ;;
  5114. esac
  5115. # If we're using GNU nm, then use its standard symbol codes.
  5116. case `$NM -V 2>&1` in
  5117. *GNU* | *'with BFD'*)
  5118. symcode='[ABCDGIRSTW]' ;;
  5119. esac
  5120. # Transform an extracted symbol line into a proper C declaration.
  5121. # Some systems (esp. on ia64) link data and code symbols differently,
  5122. # so use this general approach.
  5123. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5124. # Transform an extracted symbol line into symbol name and symbol address
  5125. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5126. 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'"
  5127. # Handle CRLF in mingw tool chain
  5128. opt_cr=
  5129. case $build_os in
  5130. mingw*)
  5131. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5132. ;;
  5133. esac
  5134. # Try without a prefix underscore, then with it.
  5135. for ac_symprfx in "" "_"; do
  5136. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5137. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5138. # Write the raw and C identifiers.
  5139. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5140. # Fake it for dumpbin and say T for any non-static function
  5141. # and D for any global variable.
  5142. # Also find C++ and __fastcall symbols from MSVC++,
  5143. # which start with @ or ?.
  5144. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5145. " {last_section=section; section=\$ 3};"\
  5146. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5147. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5148. " \$ 0!~/External *\|/{next};"\
  5149. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5150. " {if(hide[section]) next};"\
  5151. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5152. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5153. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5154. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5155. " ' prfx=^$ac_symprfx"
  5156. else
  5157. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5158. fi
  5159. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5160. # Check to see that the pipe works correctly.
  5161. pipe_works=no
  5162. rm -f conftest*
  5163. cat > conftest.$ac_ext <<_LT_EOF
  5164. #ifdef __cplusplus
  5165. extern "C" {
  5166. #endif
  5167. char nm_test_var;
  5168. void nm_test_func(void);
  5169. void nm_test_func(void){}
  5170. #ifdef __cplusplus
  5171. }
  5172. #endif
  5173. int main(){nm_test_var='a';nm_test_func();return(0);}
  5174. _LT_EOF
  5175. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5176. (eval $ac_compile) 2>&5
  5177. ac_status=$?
  5178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5179. test $ac_status = 0; }; then
  5180. # Now try to grab the symbols.
  5181. nlist=conftest.nm
  5182. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5183. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5184. ac_status=$?
  5185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5186. test $ac_status = 0; } && test -s "$nlist"; then
  5187. # Try sorting and uniquifying the output.
  5188. if sort "$nlist" | uniq > "$nlist"T; then
  5189. mv -f "$nlist"T "$nlist"
  5190. else
  5191. rm -f "$nlist"T
  5192. fi
  5193. # Make sure that we snagged all the symbols we need.
  5194. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5195. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5196. cat <<_LT_EOF > conftest.$ac_ext
  5197. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5198. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5199. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5200. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5201. # define LT_DLSYM_CONST
  5202. #elif defined(__osf__)
  5203. /* This system does not cope well with relocations in const data. */
  5204. # define LT_DLSYM_CONST
  5205. #else
  5206. # define LT_DLSYM_CONST const
  5207. #endif
  5208. #ifdef __cplusplus
  5209. extern "C" {
  5210. #endif
  5211. _LT_EOF
  5212. # Now generate the symbol file.
  5213. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5214. cat <<_LT_EOF >> conftest.$ac_ext
  5215. /* The mapping between symbol names and symbols. */
  5216. LT_DLSYM_CONST struct {
  5217. const char *name;
  5218. void *address;
  5219. }
  5220. lt__PROGRAM__LTX_preloaded_symbols[] =
  5221. {
  5222. { "@PROGRAM@", (void *) 0 },
  5223. _LT_EOF
  5224. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5225. cat <<\_LT_EOF >> conftest.$ac_ext
  5226. {0, (void *) 0}
  5227. };
  5228. /* This works around a problem in FreeBSD linker */
  5229. #ifdef FREEBSD_WORKAROUND
  5230. static const void *lt_preloaded_setup() {
  5231. return lt__PROGRAM__LTX_preloaded_symbols;
  5232. }
  5233. #endif
  5234. #ifdef __cplusplus
  5235. }
  5236. #endif
  5237. _LT_EOF
  5238. # Now try linking the two files.
  5239. mv conftest.$ac_objext conftstm.$ac_objext
  5240. lt_globsym_save_LIBS=$LIBS
  5241. lt_globsym_save_CFLAGS=$CFLAGS
  5242. LIBS="conftstm.$ac_objext"
  5243. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5244. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5245. (eval $ac_link) 2>&5
  5246. ac_status=$?
  5247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5248. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5249. pipe_works=yes
  5250. fi
  5251. LIBS=$lt_globsym_save_LIBS
  5252. CFLAGS=$lt_globsym_save_CFLAGS
  5253. else
  5254. echo "cannot find nm_test_func in $nlist" >&5
  5255. fi
  5256. else
  5257. echo "cannot find nm_test_var in $nlist" >&5
  5258. fi
  5259. else
  5260. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5261. fi
  5262. else
  5263. echo "$progname: failed program was:" >&5
  5264. cat conftest.$ac_ext >&5
  5265. fi
  5266. rm -rf conftest* conftst*
  5267. # Do not use the global_symbol_pipe unless it works.
  5268. if test "$pipe_works" = yes; then
  5269. break
  5270. else
  5271. lt_cv_sys_global_symbol_pipe=
  5272. fi
  5273. done
  5274. fi
  5275. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5276. lt_cv_sys_global_symbol_to_cdecl=
  5277. fi
  5278. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5280. $as_echo "failed" >&6; }
  5281. else
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5283. $as_echo "ok" >&6; }
  5284. fi
  5285. # Response file support.
  5286. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5287. nm_file_list_spec='@'
  5288. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5289. nm_file_list_spec='@'
  5290. fi
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5292. $as_echo_n "checking for sysroot... " >&6; }
  5293. # Check whether --with-sysroot was given.
  5294. if test "${with_sysroot+set}" = set; then :
  5295. withval=$with_sysroot;
  5296. else
  5297. with_sysroot=no
  5298. fi
  5299. lt_sysroot=
  5300. case ${with_sysroot} in #(
  5301. yes)
  5302. if test "$GCC" = yes; then
  5303. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5304. fi
  5305. ;; #(
  5306. /*)
  5307. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5308. ;; #(
  5309. no|'')
  5310. ;; #(
  5311. *)
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5313. $as_echo "${with_sysroot}" >&6; }
  5314. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5315. ;;
  5316. esac
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5318. $as_echo "${lt_sysroot:-no}" >&6; }
  5319. # Check whether --enable-libtool-lock was given.
  5320. if test "${enable_libtool_lock+set}" = set; then :
  5321. enableval=$enable_libtool_lock;
  5322. fi
  5323. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5324. # Some flags need to be propagated to the compiler or linker for good
  5325. # libtool support.
  5326. case $host in
  5327. ia64-*-hpux*)
  5328. # Find out which ABI we are using.
  5329. echo 'int i;' > conftest.$ac_ext
  5330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5331. (eval $ac_compile) 2>&5
  5332. ac_status=$?
  5333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5334. test $ac_status = 0; }; then
  5335. case `/usr/bin/file conftest.$ac_objext` in
  5336. *ELF-32*)
  5337. HPUX_IA64_MODE="32"
  5338. ;;
  5339. *ELF-64*)
  5340. HPUX_IA64_MODE="64"
  5341. ;;
  5342. esac
  5343. fi
  5344. rm -rf conftest*
  5345. ;;
  5346. *-*-irix6*)
  5347. # Find out which ABI we are using.
  5348. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5349. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5350. (eval $ac_compile) 2>&5
  5351. ac_status=$?
  5352. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5353. test $ac_status = 0; }; then
  5354. if test "$lt_cv_prog_gnu_ld" = yes; then
  5355. case `/usr/bin/file conftest.$ac_objext` in
  5356. *32-bit*)
  5357. LD="${LD-ld} -melf32bsmip"
  5358. ;;
  5359. *N32*)
  5360. LD="${LD-ld} -melf32bmipn32"
  5361. ;;
  5362. *64-bit*)
  5363. LD="${LD-ld} -melf64bmip"
  5364. ;;
  5365. esac
  5366. else
  5367. case `/usr/bin/file conftest.$ac_objext` in
  5368. *32-bit*)
  5369. LD="${LD-ld} -32"
  5370. ;;
  5371. *N32*)
  5372. LD="${LD-ld} -n32"
  5373. ;;
  5374. *64-bit*)
  5375. LD="${LD-ld} -64"
  5376. ;;
  5377. esac
  5378. fi
  5379. fi
  5380. rm -rf conftest*
  5381. ;;
  5382. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5383. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5384. # Find out which ABI we are using.
  5385. echo 'int i;' > conftest.$ac_ext
  5386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5387. (eval $ac_compile) 2>&5
  5388. ac_status=$?
  5389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5390. test $ac_status = 0; }; then
  5391. case `/usr/bin/file conftest.o` in
  5392. *32-bit*)
  5393. case $host in
  5394. x86_64-*kfreebsd*-gnu)
  5395. LD="${LD-ld} -m elf_i386_fbsd"
  5396. ;;
  5397. x86_64-*linux*)
  5398. LD="${LD-ld} -m elf_i386"
  5399. ;;
  5400. ppc64-*linux*|powerpc64-*linux*)
  5401. LD="${LD-ld} -m elf32ppclinux"
  5402. ;;
  5403. s390x-*linux*)
  5404. LD="${LD-ld} -m elf_s390"
  5405. ;;
  5406. sparc64-*linux*)
  5407. LD="${LD-ld} -m elf32_sparc"
  5408. ;;
  5409. esac
  5410. ;;
  5411. *64-bit*)
  5412. case $host in
  5413. x86_64-*kfreebsd*-gnu)
  5414. LD="${LD-ld} -m elf_x86_64_fbsd"
  5415. ;;
  5416. x86_64-*linux*)
  5417. LD="${LD-ld} -m elf_x86_64"
  5418. ;;
  5419. ppc*-*linux*|powerpc*-*linux*)
  5420. LD="${LD-ld} -m elf64ppc"
  5421. ;;
  5422. s390*-*linux*|s390*-*tpf*)
  5423. LD="${LD-ld} -m elf64_s390"
  5424. ;;
  5425. sparc*-*linux*)
  5426. LD="${LD-ld} -m elf64_sparc"
  5427. ;;
  5428. esac
  5429. ;;
  5430. esac
  5431. fi
  5432. rm -rf conftest*
  5433. ;;
  5434. *-*-sco3.2v5*)
  5435. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5436. SAVE_CFLAGS="$CFLAGS"
  5437. CFLAGS="$CFLAGS -belf"
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5439. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5440. if ${lt_cv_cc_needs_belf+:} false; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. ac_ext=c
  5444. ac_cpp='$CPP $CPPFLAGS'
  5445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5449. /* end confdefs.h. */
  5450. int
  5451. main ()
  5452. {
  5453. ;
  5454. return 0;
  5455. }
  5456. _ACEOF
  5457. if ac_fn_c_try_link "$LINENO"; then :
  5458. lt_cv_cc_needs_belf=yes
  5459. else
  5460. lt_cv_cc_needs_belf=no
  5461. fi
  5462. rm -f core conftest.err conftest.$ac_objext \
  5463. conftest$ac_exeext conftest.$ac_ext
  5464. ac_ext=c
  5465. ac_cpp='$CPP $CPPFLAGS'
  5466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5469. fi
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5471. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5472. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5473. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5474. CFLAGS="$SAVE_CFLAGS"
  5475. fi
  5476. ;;
  5477. *-*solaris*)
  5478. # Find out which ABI we are using.
  5479. echo 'int i;' > conftest.$ac_ext
  5480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5481. (eval $ac_compile) 2>&5
  5482. ac_status=$?
  5483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5484. test $ac_status = 0; }; then
  5485. case `/usr/bin/file conftest.o` in
  5486. *64-bit*)
  5487. case $lt_cv_prog_gnu_ld in
  5488. yes*)
  5489. case $host in
  5490. i?86-*-solaris*)
  5491. LD="${LD-ld} -m elf_x86_64"
  5492. ;;
  5493. sparc*-*-solaris*)
  5494. LD="${LD-ld} -m elf64_sparc"
  5495. ;;
  5496. esac
  5497. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5498. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5499. LD="${LD-ld}_sol2"
  5500. fi
  5501. ;;
  5502. *)
  5503. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5504. LD="${LD-ld} -64"
  5505. fi
  5506. ;;
  5507. esac
  5508. ;;
  5509. esac
  5510. fi
  5511. rm -rf conftest*
  5512. ;;
  5513. esac
  5514. need_locks="$enable_libtool_lock"
  5515. if test -n "$ac_tool_prefix"; then
  5516. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5517. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5519. $as_echo_n "checking for $ac_word... " >&6; }
  5520. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5521. $as_echo_n "(cached) " >&6
  5522. else
  5523. if test -n "$MANIFEST_TOOL"; then
  5524. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5525. else
  5526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5527. for as_dir in $PATH
  5528. do
  5529. IFS=$as_save_IFS
  5530. test -z "$as_dir" && as_dir=.
  5531. for ac_exec_ext in '' $ac_executable_extensions; do
  5532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5533. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5535. break 2
  5536. fi
  5537. done
  5538. done
  5539. IFS=$as_save_IFS
  5540. fi
  5541. fi
  5542. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5543. if test -n "$MANIFEST_TOOL"; then
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5545. $as_echo "$MANIFEST_TOOL" >&6; }
  5546. else
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5548. $as_echo "no" >&6; }
  5549. fi
  5550. fi
  5551. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5552. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5553. # Extract the first word of "mt", so it can be a program name with args.
  5554. set dummy mt; ac_word=$2
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5556. $as_echo_n "checking for $ac_word... " >&6; }
  5557. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5561. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5562. else
  5563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5564. for as_dir in $PATH
  5565. do
  5566. IFS=$as_save_IFS
  5567. test -z "$as_dir" && as_dir=.
  5568. for ac_exec_ext in '' $ac_executable_extensions; do
  5569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5570. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5572. break 2
  5573. fi
  5574. done
  5575. done
  5576. IFS=$as_save_IFS
  5577. fi
  5578. fi
  5579. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5580. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5582. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5583. else
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5585. $as_echo "no" >&6; }
  5586. fi
  5587. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5588. MANIFEST_TOOL=":"
  5589. else
  5590. case $cross_compiling:$ac_tool_warned in
  5591. yes:)
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5593. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5594. ac_tool_warned=yes ;;
  5595. esac
  5596. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5597. fi
  5598. else
  5599. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5600. fi
  5601. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5603. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5604. if ${lt_cv_path_mainfest_tool+:} false; then :
  5605. $as_echo_n "(cached) " >&6
  5606. else
  5607. lt_cv_path_mainfest_tool=no
  5608. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5609. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5610. cat conftest.err >&5
  5611. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5612. lt_cv_path_mainfest_tool=yes
  5613. fi
  5614. rm -f conftest*
  5615. fi
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5617. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5618. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5619. MANIFEST_TOOL=:
  5620. fi
  5621. case $host_os in
  5622. rhapsody* | darwin*)
  5623. if test -n "$ac_tool_prefix"; then
  5624. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5625. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5627. $as_echo_n "checking for $ac_word... " >&6; }
  5628. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. if test -n "$DSYMUTIL"; then
  5632. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5633. else
  5634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5635. for as_dir in $PATH
  5636. do
  5637. IFS=$as_save_IFS
  5638. test -z "$as_dir" && as_dir=.
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5641. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. fi
  5649. fi
  5650. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5651. if test -n "$DSYMUTIL"; then
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5653. $as_echo "$DSYMUTIL" >&6; }
  5654. else
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5656. $as_echo "no" >&6; }
  5657. fi
  5658. fi
  5659. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5660. ac_ct_DSYMUTIL=$DSYMUTIL
  5661. # Extract the first word of "dsymutil", so it can be a program name with args.
  5662. set dummy dsymutil; ac_word=$2
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. $as_echo_n "checking for $ac_word... " >&6; }
  5665. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. if test -n "$ac_ct_DSYMUTIL"; then
  5669. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. test -z "$as_dir" && as_dir=.
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5678. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5688. if test -n "$ac_ct_DSYMUTIL"; then
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5690. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5691. else
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. $as_echo "no" >&6; }
  5694. fi
  5695. if test "x$ac_ct_DSYMUTIL" = x; then
  5696. DSYMUTIL=":"
  5697. else
  5698. case $cross_compiling:$ac_tool_warned in
  5699. yes:)
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5702. ac_tool_warned=yes ;;
  5703. esac
  5704. DSYMUTIL=$ac_ct_DSYMUTIL
  5705. fi
  5706. else
  5707. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5708. fi
  5709. if test -n "$ac_tool_prefix"; then
  5710. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5711. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5713. $as_echo_n "checking for $ac_word... " >&6; }
  5714. if ${ac_cv_prog_NMEDIT+:} false; then :
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. if test -n "$NMEDIT"; then
  5718. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5719. else
  5720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5721. for as_dir in $PATH
  5722. do
  5723. IFS=$as_save_IFS
  5724. test -z "$as_dir" && as_dir=.
  5725. for ac_exec_ext in '' $ac_executable_extensions; do
  5726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5727. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5729. break 2
  5730. fi
  5731. done
  5732. done
  5733. IFS=$as_save_IFS
  5734. fi
  5735. fi
  5736. NMEDIT=$ac_cv_prog_NMEDIT
  5737. if test -n "$NMEDIT"; then
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5739. $as_echo "$NMEDIT" >&6; }
  5740. else
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5742. $as_echo "no" >&6; }
  5743. fi
  5744. fi
  5745. if test -z "$ac_cv_prog_NMEDIT"; then
  5746. ac_ct_NMEDIT=$NMEDIT
  5747. # Extract the first word of "nmedit", so it can be a program name with args.
  5748. set dummy nmedit; ac_word=$2
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5750. $as_echo_n "checking for $ac_word... " >&6; }
  5751. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. if test -n "$ac_ct_NMEDIT"; then
  5755. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5756. else
  5757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5758. for as_dir in $PATH
  5759. do
  5760. IFS=$as_save_IFS
  5761. test -z "$as_dir" && as_dir=.
  5762. for ac_exec_ext in '' $ac_executable_extensions; do
  5763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5764. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5766. break 2
  5767. fi
  5768. done
  5769. done
  5770. IFS=$as_save_IFS
  5771. fi
  5772. fi
  5773. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5774. if test -n "$ac_ct_NMEDIT"; then
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5776. $as_echo "$ac_ct_NMEDIT" >&6; }
  5777. else
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5779. $as_echo "no" >&6; }
  5780. fi
  5781. if test "x$ac_ct_NMEDIT" = x; then
  5782. NMEDIT=":"
  5783. else
  5784. case $cross_compiling:$ac_tool_warned in
  5785. yes:)
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5787. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5788. ac_tool_warned=yes ;;
  5789. esac
  5790. NMEDIT=$ac_ct_NMEDIT
  5791. fi
  5792. else
  5793. NMEDIT="$ac_cv_prog_NMEDIT"
  5794. fi
  5795. if test -n "$ac_tool_prefix"; then
  5796. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5797. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5799. $as_echo_n "checking for $ac_word... " >&6; }
  5800. if ${ac_cv_prog_LIPO+:} false; then :
  5801. $as_echo_n "(cached) " >&6
  5802. else
  5803. if test -n "$LIPO"; then
  5804. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5805. else
  5806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807. for as_dir in $PATH
  5808. do
  5809. IFS=$as_save_IFS
  5810. test -z "$as_dir" && as_dir=.
  5811. for ac_exec_ext in '' $ac_executable_extensions; do
  5812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5813. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815. break 2
  5816. fi
  5817. done
  5818. done
  5819. IFS=$as_save_IFS
  5820. fi
  5821. fi
  5822. LIPO=$ac_cv_prog_LIPO
  5823. if test -n "$LIPO"; then
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5825. $as_echo "$LIPO" >&6; }
  5826. else
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5828. $as_echo "no" >&6; }
  5829. fi
  5830. fi
  5831. if test -z "$ac_cv_prog_LIPO"; then
  5832. ac_ct_LIPO=$LIPO
  5833. # Extract the first word of "lipo", so it can be a program name with args.
  5834. set dummy lipo; ac_word=$2
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5836. $as_echo_n "checking for $ac_word... " >&6; }
  5837. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. if test -n "$ac_ct_LIPO"; then
  5841. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5842. else
  5843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5844. for as_dir in $PATH
  5845. do
  5846. IFS=$as_save_IFS
  5847. test -z "$as_dir" && as_dir=.
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5850. ac_cv_prog_ac_ct_LIPO="lipo"
  5851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5852. break 2
  5853. fi
  5854. done
  5855. done
  5856. IFS=$as_save_IFS
  5857. fi
  5858. fi
  5859. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5860. if test -n "$ac_ct_LIPO"; then
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5862. $as_echo "$ac_ct_LIPO" >&6; }
  5863. else
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5865. $as_echo "no" >&6; }
  5866. fi
  5867. if test "x$ac_ct_LIPO" = x; then
  5868. LIPO=":"
  5869. else
  5870. case $cross_compiling:$ac_tool_warned in
  5871. yes:)
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5874. ac_tool_warned=yes ;;
  5875. esac
  5876. LIPO=$ac_ct_LIPO
  5877. fi
  5878. else
  5879. LIPO="$ac_cv_prog_LIPO"
  5880. fi
  5881. if test -n "$ac_tool_prefix"; then
  5882. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5883. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5885. $as_echo_n "checking for $ac_word... " >&6; }
  5886. if ${ac_cv_prog_OTOOL+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. if test -n "$OTOOL"; then
  5890. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5891. else
  5892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5893. for as_dir in $PATH
  5894. do
  5895. IFS=$as_save_IFS
  5896. test -z "$as_dir" && as_dir=.
  5897. for ac_exec_ext in '' $ac_executable_extensions; do
  5898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5899. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5901. break 2
  5902. fi
  5903. done
  5904. done
  5905. IFS=$as_save_IFS
  5906. fi
  5907. fi
  5908. OTOOL=$ac_cv_prog_OTOOL
  5909. if test -n "$OTOOL"; then
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5911. $as_echo "$OTOOL" >&6; }
  5912. else
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5914. $as_echo "no" >&6; }
  5915. fi
  5916. fi
  5917. if test -z "$ac_cv_prog_OTOOL"; then
  5918. ac_ct_OTOOL=$OTOOL
  5919. # Extract the first word of "otool", so it can be a program name with args.
  5920. set dummy otool; ac_word=$2
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5922. $as_echo_n "checking for $ac_word... " >&6; }
  5923. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. if test -n "$ac_ct_OTOOL"; then
  5927. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5928. else
  5929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5930. for as_dir in $PATH
  5931. do
  5932. IFS=$as_save_IFS
  5933. test -z "$as_dir" && as_dir=.
  5934. for ac_exec_ext in '' $ac_executable_extensions; do
  5935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5936. ac_cv_prog_ac_ct_OTOOL="otool"
  5937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5938. break 2
  5939. fi
  5940. done
  5941. done
  5942. IFS=$as_save_IFS
  5943. fi
  5944. fi
  5945. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5946. if test -n "$ac_ct_OTOOL"; then
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5948. $as_echo "$ac_ct_OTOOL" >&6; }
  5949. else
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5951. $as_echo "no" >&6; }
  5952. fi
  5953. if test "x$ac_ct_OTOOL" = x; then
  5954. OTOOL=":"
  5955. else
  5956. case $cross_compiling:$ac_tool_warned in
  5957. yes:)
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5960. ac_tool_warned=yes ;;
  5961. esac
  5962. OTOOL=$ac_ct_OTOOL
  5963. fi
  5964. else
  5965. OTOOL="$ac_cv_prog_OTOOL"
  5966. fi
  5967. if test -n "$ac_tool_prefix"; then
  5968. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5969. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5971. $as_echo_n "checking for $ac_word... " >&6; }
  5972. if ${ac_cv_prog_OTOOL64+:} false; then :
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. if test -n "$OTOOL64"; then
  5976. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5977. else
  5978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5979. for as_dir in $PATH
  5980. do
  5981. IFS=$as_save_IFS
  5982. test -z "$as_dir" && as_dir=.
  5983. for ac_exec_ext in '' $ac_executable_extensions; do
  5984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5985. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5987. break 2
  5988. fi
  5989. done
  5990. done
  5991. IFS=$as_save_IFS
  5992. fi
  5993. fi
  5994. OTOOL64=$ac_cv_prog_OTOOL64
  5995. if test -n "$OTOOL64"; then
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5997. $as_echo "$OTOOL64" >&6; }
  5998. else
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6000. $as_echo "no" >&6; }
  6001. fi
  6002. fi
  6003. if test -z "$ac_cv_prog_OTOOL64"; then
  6004. ac_ct_OTOOL64=$OTOOL64
  6005. # Extract the first word of "otool64", so it can be a program name with args.
  6006. set dummy otool64; ac_word=$2
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6008. $as_echo_n "checking for $ac_word... " >&6; }
  6009. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test -n "$ac_ct_OTOOL64"; then
  6013. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6014. else
  6015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6016. for as_dir in $PATH
  6017. do
  6018. IFS=$as_save_IFS
  6019. test -z "$as_dir" && as_dir=.
  6020. for ac_exec_ext in '' $ac_executable_extensions; do
  6021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6022. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6024. break 2
  6025. fi
  6026. done
  6027. done
  6028. IFS=$as_save_IFS
  6029. fi
  6030. fi
  6031. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6032. if test -n "$ac_ct_OTOOL64"; then
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6034. $as_echo "$ac_ct_OTOOL64" >&6; }
  6035. else
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6037. $as_echo "no" >&6; }
  6038. fi
  6039. if test "x$ac_ct_OTOOL64" = x; then
  6040. OTOOL64=":"
  6041. else
  6042. case $cross_compiling:$ac_tool_warned in
  6043. yes:)
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6045. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6046. ac_tool_warned=yes ;;
  6047. esac
  6048. OTOOL64=$ac_ct_OTOOL64
  6049. fi
  6050. else
  6051. OTOOL64="$ac_cv_prog_OTOOL64"
  6052. fi
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6054. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6055. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. lt_cv_apple_cc_single_mod=no
  6059. if test -z "${LT_MULTI_MODULE}"; then
  6060. # By default we will add the -single_module flag. You can override
  6061. # by either setting the environment variable LT_MULTI_MODULE
  6062. # non-empty at configure time, or by adding -multi_module to the
  6063. # link flags.
  6064. rm -rf libconftest.dylib*
  6065. echo "int foo(void){return 1;}" > conftest.c
  6066. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6067. -dynamiclib -Wl,-single_module conftest.c" >&5
  6068. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6069. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6070. _lt_result=$?
  6071. # If there is a non-empty error log, and "single_module"
  6072. # appears in it, assume the flag caused a linker warning
  6073. if test -s conftest.err && $GREP single_module conftest.err; then
  6074. cat conftest.err >&5
  6075. # Otherwise, if the output was created with a 0 exit code from
  6076. # the compiler, it worked.
  6077. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6078. lt_cv_apple_cc_single_mod=yes
  6079. else
  6080. cat conftest.err >&5
  6081. fi
  6082. rm -rf libconftest.dylib*
  6083. rm -f conftest.*
  6084. fi
  6085. fi
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6087. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6089. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6090. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6091. $as_echo_n "(cached) " >&6
  6092. else
  6093. lt_cv_ld_exported_symbols_list=no
  6094. save_LDFLAGS=$LDFLAGS
  6095. echo "_main" > conftest.sym
  6096. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6098. /* end confdefs.h. */
  6099. int
  6100. main ()
  6101. {
  6102. ;
  6103. return 0;
  6104. }
  6105. _ACEOF
  6106. if ac_fn_c_try_link "$LINENO"; then :
  6107. lt_cv_ld_exported_symbols_list=yes
  6108. else
  6109. lt_cv_ld_exported_symbols_list=no
  6110. fi
  6111. rm -f core conftest.err conftest.$ac_objext \
  6112. conftest$ac_exeext conftest.$ac_ext
  6113. LDFLAGS="$save_LDFLAGS"
  6114. fi
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6116. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6118. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6119. if ${lt_cv_ld_force_load+:} false; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. lt_cv_ld_force_load=no
  6123. cat > conftest.c << _LT_EOF
  6124. int forced_loaded() { return 2;}
  6125. _LT_EOF
  6126. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6127. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6128. echo "$AR cru libconftest.a conftest.o" >&5
  6129. $AR cru libconftest.a conftest.o 2>&5
  6130. echo "$RANLIB libconftest.a" >&5
  6131. $RANLIB libconftest.a 2>&5
  6132. cat > conftest.c << _LT_EOF
  6133. int main() { return 0;}
  6134. _LT_EOF
  6135. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6136. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6137. _lt_result=$?
  6138. if test -s conftest.err && $GREP force_load conftest.err; then
  6139. cat conftest.err >&5
  6140. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6141. lt_cv_ld_force_load=yes
  6142. else
  6143. cat conftest.err >&5
  6144. fi
  6145. rm -f conftest.err libconftest.a conftest conftest.c
  6146. rm -rf conftest.dSYM
  6147. fi
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6149. $as_echo "$lt_cv_ld_force_load" >&6; }
  6150. case $host_os in
  6151. rhapsody* | darwin1.[012])
  6152. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6153. darwin1.*)
  6154. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6155. darwin*) # darwin 5.x on
  6156. # if running on 10.5 or later, the deployment target defaults
  6157. # to the OS version, if on x86, and 10.4, the deployment
  6158. # target defaults to 10.4. Don't you love it?
  6159. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6160. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6161. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6162. 10.[012]*)
  6163. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6164. 10.*)
  6165. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6166. esac
  6167. ;;
  6168. esac
  6169. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6170. _lt_dar_single_mod='$single_module'
  6171. fi
  6172. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6173. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6174. else
  6175. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6176. fi
  6177. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6178. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6179. else
  6180. _lt_dsymutil=
  6181. fi
  6182. ;;
  6183. esac
  6184. ac_ext=c
  6185. ac_cpp='$CPP $CPPFLAGS'
  6186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6190. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6191. # On Suns, sometimes $CPP names a directory.
  6192. if test -n "$CPP" && test -d "$CPP"; then
  6193. CPP=
  6194. fi
  6195. if test -z "$CPP"; then
  6196. if ${ac_cv_prog_CPP+:} false; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. # Double quotes because CPP needs to be expanded
  6200. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6201. do
  6202. ac_preproc_ok=false
  6203. for ac_c_preproc_warn_flag in '' yes
  6204. do
  6205. # Use a header file that comes with gcc, so configuring glibc
  6206. # with a fresh cross-compiler works.
  6207. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6208. # <limits.h> exists even on freestanding compilers.
  6209. # On the NeXT, cc -E runs the code through the compiler's parser,
  6210. # not just through cpp. "Syntax error" is here to catch this case.
  6211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6212. /* end confdefs.h. */
  6213. #ifdef __STDC__
  6214. # include <limits.h>
  6215. #else
  6216. # include <assert.h>
  6217. #endif
  6218. Syntax error
  6219. _ACEOF
  6220. if ac_fn_c_try_cpp "$LINENO"; then :
  6221. else
  6222. # Broken: fails on valid input.
  6223. continue
  6224. fi
  6225. rm -f conftest.err conftest.i conftest.$ac_ext
  6226. # OK, works on sane cases. Now check whether nonexistent headers
  6227. # can be detected and how.
  6228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6229. /* end confdefs.h. */
  6230. #include <ac_nonexistent.h>
  6231. _ACEOF
  6232. if ac_fn_c_try_cpp "$LINENO"; then :
  6233. # Broken: success on invalid input.
  6234. continue
  6235. else
  6236. # Passes both tests.
  6237. ac_preproc_ok=:
  6238. break
  6239. fi
  6240. rm -f conftest.err conftest.i conftest.$ac_ext
  6241. done
  6242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6243. rm -f conftest.i conftest.err conftest.$ac_ext
  6244. if $ac_preproc_ok; then :
  6245. break
  6246. fi
  6247. done
  6248. ac_cv_prog_CPP=$CPP
  6249. fi
  6250. CPP=$ac_cv_prog_CPP
  6251. else
  6252. ac_cv_prog_CPP=$CPP
  6253. fi
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6255. $as_echo "$CPP" >&6; }
  6256. ac_preproc_ok=false
  6257. for ac_c_preproc_warn_flag in '' yes
  6258. do
  6259. # Use a header file that comes with gcc, so configuring glibc
  6260. # with a fresh cross-compiler works.
  6261. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6262. # <limits.h> exists even on freestanding compilers.
  6263. # On the NeXT, cc -E runs the code through the compiler's parser,
  6264. # not just through cpp. "Syntax error" is here to catch this case.
  6265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6266. /* end confdefs.h. */
  6267. #ifdef __STDC__
  6268. # include <limits.h>
  6269. #else
  6270. # include <assert.h>
  6271. #endif
  6272. Syntax error
  6273. _ACEOF
  6274. if ac_fn_c_try_cpp "$LINENO"; then :
  6275. else
  6276. # Broken: fails on valid input.
  6277. continue
  6278. fi
  6279. rm -f conftest.err conftest.i conftest.$ac_ext
  6280. # OK, works on sane cases. Now check whether nonexistent headers
  6281. # can be detected and how.
  6282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6283. /* end confdefs.h. */
  6284. #include <ac_nonexistent.h>
  6285. _ACEOF
  6286. if ac_fn_c_try_cpp "$LINENO"; then :
  6287. # Broken: success on invalid input.
  6288. continue
  6289. else
  6290. # Passes both tests.
  6291. ac_preproc_ok=:
  6292. break
  6293. fi
  6294. rm -f conftest.err conftest.i conftest.$ac_ext
  6295. done
  6296. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6297. rm -f conftest.i conftest.err conftest.$ac_ext
  6298. if $ac_preproc_ok; then :
  6299. else
  6300. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6301. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6302. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6303. See \`config.log' for more details" "$LINENO" 5; }
  6304. fi
  6305. ac_ext=c
  6306. ac_cpp='$CPP $CPPFLAGS'
  6307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6311. $as_echo_n "checking for ANSI C header files... " >&6; }
  6312. if ${ac_cv_header_stdc+:} false; then :
  6313. $as_echo_n "(cached) " >&6
  6314. else
  6315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6316. /* end confdefs.h. */
  6317. #include <stdlib.h>
  6318. #include <stdarg.h>
  6319. #include <string.h>
  6320. #include <float.h>
  6321. int
  6322. main ()
  6323. {
  6324. ;
  6325. return 0;
  6326. }
  6327. _ACEOF
  6328. if ac_fn_c_try_compile "$LINENO"; then :
  6329. ac_cv_header_stdc=yes
  6330. else
  6331. ac_cv_header_stdc=no
  6332. fi
  6333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6334. if test $ac_cv_header_stdc = yes; then
  6335. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6337. /* end confdefs.h. */
  6338. #include <string.h>
  6339. _ACEOF
  6340. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6341. $EGREP "memchr" >/dev/null 2>&1; then :
  6342. else
  6343. ac_cv_header_stdc=no
  6344. fi
  6345. rm -f conftest*
  6346. fi
  6347. if test $ac_cv_header_stdc = yes; then
  6348. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6350. /* end confdefs.h. */
  6351. #include <stdlib.h>
  6352. _ACEOF
  6353. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6354. $EGREP "free" >/dev/null 2>&1; then :
  6355. else
  6356. ac_cv_header_stdc=no
  6357. fi
  6358. rm -f conftest*
  6359. fi
  6360. if test $ac_cv_header_stdc = yes; then
  6361. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6362. if test "$cross_compiling" = yes; then :
  6363. :
  6364. else
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. #include <ctype.h>
  6368. #include <stdlib.h>
  6369. #if ((' ' & 0x0FF) == 0x020)
  6370. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6371. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6372. #else
  6373. # define ISLOWER(c) \
  6374. (('a' <= (c) && (c) <= 'i') \
  6375. || ('j' <= (c) && (c) <= 'r') \
  6376. || ('s' <= (c) && (c) <= 'z'))
  6377. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6378. #endif
  6379. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6380. int
  6381. main ()
  6382. {
  6383. int i;
  6384. for (i = 0; i < 256; i++)
  6385. if (XOR (islower (i), ISLOWER (i))
  6386. || toupper (i) != TOUPPER (i))
  6387. return 2;
  6388. return 0;
  6389. }
  6390. _ACEOF
  6391. if ac_fn_c_try_run "$LINENO"; then :
  6392. else
  6393. ac_cv_header_stdc=no
  6394. fi
  6395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6397. fi
  6398. fi
  6399. fi
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6401. $as_echo "$ac_cv_header_stdc" >&6; }
  6402. if test $ac_cv_header_stdc = yes; then
  6403. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6404. fi
  6405. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6406. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6407. inttypes.h stdint.h unistd.h
  6408. do :
  6409. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6410. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6411. "
  6412. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6413. cat >>confdefs.h <<_ACEOF
  6414. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6415. _ACEOF
  6416. fi
  6417. done
  6418. for ac_header in dlfcn.h
  6419. do :
  6420. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6421. "
  6422. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6423. cat >>confdefs.h <<_ACEOF
  6424. #define HAVE_DLFCN_H 1
  6425. _ACEOF
  6426. fi
  6427. done
  6428. # Set options
  6429. enable_dlopen=no
  6430. enable_win32_dll=no
  6431. # Check whether --enable-shared was given.
  6432. if test "${enable_shared+set}" = set; then :
  6433. enableval=$enable_shared; p=${PACKAGE-default}
  6434. case $enableval in
  6435. yes) enable_shared=yes ;;
  6436. no) enable_shared=no ;;
  6437. *)
  6438. enable_shared=no
  6439. # Look at the argument we got. We use all the common list separators.
  6440. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6441. for pkg in $enableval; do
  6442. IFS="$lt_save_ifs"
  6443. if test "X$pkg" = "X$p"; then
  6444. enable_shared=yes
  6445. fi
  6446. done
  6447. IFS="$lt_save_ifs"
  6448. ;;
  6449. esac
  6450. else
  6451. enable_shared=yes
  6452. fi
  6453. # Check whether --enable-static was given.
  6454. if test "${enable_static+set}" = set; then :
  6455. enableval=$enable_static; p=${PACKAGE-default}
  6456. case $enableval in
  6457. yes) enable_static=yes ;;
  6458. no) enable_static=no ;;
  6459. *)
  6460. enable_static=no
  6461. # Look at the argument we got. We use all the common list separators.
  6462. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6463. for pkg in $enableval; do
  6464. IFS="$lt_save_ifs"
  6465. if test "X$pkg" = "X$p"; then
  6466. enable_static=yes
  6467. fi
  6468. done
  6469. IFS="$lt_save_ifs"
  6470. ;;
  6471. esac
  6472. else
  6473. enable_static=yes
  6474. fi
  6475. # Check whether --with-pic was given.
  6476. if test "${with_pic+set}" = set; then :
  6477. withval=$with_pic; lt_p=${PACKAGE-default}
  6478. case $withval in
  6479. yes|no) pic_mode=$withval ;;
  6480. *)
  6481. pic_mode=default
  6482. # Look at the argument we got. We use all the common list separators.
  6483. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6484. for lt_pkg in $withval; do
  6485. IFS="$lt_save_ifs"
  6486. if test "X$lt_pkg" = "X$lt_p"; then
  6487. pic_mode=yes
  6488. fi
  6489. done
  6490. IFS="$lt_save_ifs"
  6491. ;;
  6492. esac
  6493. else
  6494. pic_mode=default
  6495. fi
  6496. test -z "$pic_mode" && pic_mode=default
  6497. # Check whether --enable-fast-install was given.
  6498. if test "${enable_fast_install+set}" = set; then :
  6499. enableval=$enable_fast_install; p=${PACKAGE-default}
  6500. case $enableval in
  6501. yes) enable_fast_install=yes ;;
  6502. no) enable_fast_install=no ;;
  6503. *)
  6504. enable_fast_install=no
  6505. # Look at the argument we got. We use all the common list separators.
  6506. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6507. for pkg in $enableval; do
  6508. IFS="$lt_save_ifs"
  6509. if test "X$pkg" = "X$p"; then
  6510. enable_fast_install=yes
  6511. fi
  6512. done
  6513. IFS="$lt_save_ifs"
  6514. ;;
  6515. esac
  6516. else
  6517. enable_fast_install=yes
  6518. fi
  6519. # This can be used to rebuild libtool when needed
  6520. LIBTOOL_DEPS="$ltmain"
  6521. # Always use our own libtool.
  6522. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6523. test -z "$LN_S" && LN_S="ln -s"
  6524. if test -n "${ZSH_VERSION+set}" ; then
  6525. setopt NO_GLOB_SUBST
  6526. fi
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6528. $as_echo_n "checking for objdir... " >&6; }
  6529. if ${lt_cv_objdir+:} false; then :
  6530. $as_echo_n "(cached) " >&6
  6531. else
  6532. rm -f .libs 2>/dev/null
  6533. mkdir .libs 2>/dev/null
  6534. if test -d .libs; then
  6535. lt_cv_objdir=.libs
  6536. else
  6537. # MS-DOS does not allow filenames that begin with a dot.
  6538. lt_cv_objdir=_libs
  6539. fi
  6540. rmdir .libs 2>/dev/null
  6541. fi
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6543. $as_echo "$lt_cv_objdir" >&6; }
  6544. objdir=$lt_cv_objdir
  6545. cat >>confdefs.h <<_ACEOF
  6546. #define LT_OBJDIR "$lt_cv_objdir/"
  6547. _ACEOF
  6548. case $host_os in
  6549. aix3*)
  6550. # AIX sometimes has problems with the GCC collect2 program. For some
  6551. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6552. # vanish in a puff of smoke.
  6553. if test "X${COLLECT_NAMES+set}" != Xset; then
  6554. COLLECT_NAMES=
  6555. export COLLECT_NAMES
  6556. fi
  6557. ;;
  6558. esac
  6559. # Global variables:
  6560. ofile=libtool
  6561. can_build_shared=yes
  6562. # All known linkers require a `.a' archive for static linking (except MSVC,
  6563. # which needs '.lib').
  6564. libext=a
  6565. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6566. old_CC="$CC"
  6567. old_CFLAGS="$CFLAGS"
  6568. # Set sane defaults for various variables
  6569. test -z "$CC" && CC=cc
  6570. test -z "$LTCC" && LTCC=$CC
  6571. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6572. test -z "$LD" && LD=ld
  6573. test -z "$ac_objext" && ac_objext=o
  6574. for cc_temp in $compiler""; do
  6575. case $cc_temp in
  6576. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6577. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6578. \-*) ;;
  6579. *) break;;
  6580. esac
  6581. done
  6582. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6583. # Only perform the check for file, if the check method requires it
  6584. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6585. case $deplibs_check_method in
  6586. file_magic*)
  6587. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6589. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6590. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. case $MAGIC_CMD in
  6594. [\\/*] | ?:[\\/]*)
  6595. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6596. ;;
  6597. *)
  6598. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6599. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6600. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6601. for ac_dir in $ac_dummy; do
  6602. IFS="$lt_save_ifs"
  6603. test -z "$ac_dir" && ac_dir=.
  6604. if test -f $ac_dir/${ac_tool_prefix}file; then
  6605. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6606. if test -n "$file_magic_test_file"; then
  6607. case $deplibs_check_method in
  6608. "file_magic "*)
  6609. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6610. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6611. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6612. $EGREP "$file_magic_regex" > /dev/null; then
  6613. :
  6614. else
  6615. cat <<_LT_EOF 1>&2
  6616. *** Warning: the command libtool uses to detect shared libraries,
  6617. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6618. *** The result is that libtool may fail to recognize shared libraries
  6619. *** as such. This will affect the creation of libtool libraries that
  6620. *** depend on shared libraries, but programs linked with such libtool
  6621. *** libraries will work regardless of this problem. Nevertheless, you
  6622. *** may want to report the problem to your system manager and/or to
  6623. *** bug-libtool@gnu.org
  6624. _LT_EOF
  6625. fi ;;
  6626. esac
  6627. fi
  6628. break
  6629. fi
  6630. done
  6631. IFS="$lt_save_ifs"
  6632. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6633. ;;
  6634. esac
  6635. fi
  6636. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6637. if test -n "$MAGIC_CMD"; then
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6639. $as_echo "$MAGIC_CMD" >&6; }
  6640. else
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6642. $as_echo "no" >&6; }
  6643. fi
  6644. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6645. if test -n "$ac_tool_prefix"; then
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6647. $as_echo_n "checking for file... " >&6; }
  6648. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. case $MAGIC_CMD in
  6652. [\\/*] | ?:[\\/]*)
  6653. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6654. ;;
  6655. *)
  6656. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6657. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6658. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6659. for ac_dir in $ac_dummy; do
  6660. IFS="$lt_save_ifs"
  6661. test -z "$ac_dir" && ac_dir=.
  6662. if test -f $ac_dir/file; then
  6663. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6664. if test -n "$file_magic_test_file"; then
  6665. case $deplibs_check_method in
  6666. "file_magic "*)
  6667. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6668. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6669. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6670. $EGREP "$file_magic_regex" > /dev/null; then
  6671. :
  6672. else
  6673. cat <<_LT_EOF 1>&2
  6674. *** Warning: the command libtool uses to detect shared libraries,
  6675. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6676. *** The result is that libtool may fail to recognize shared libraries
  6677. *** as such. This will affect the creation of libtool libraries that
  6678. *** depend on shared libraries, but programs linked with such libtool
  6679. *** libraries will work regardless of this problem. Nevertheless, you
  6680. *** may want to report the problem to your system manager and/or to
  6681. *** bug-libtool@gnu.org
  6682. _LT_EOF
  6683. fi ;;
  6684. esac
  6685. fi
  6686. break
  6687. fi
  6688. done
  6689. IFS="$lt_save_ifs"
  6690. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6691. ;;
  6692. esac
  6693. fi
  6694. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6695. if test -n "$MAGIC_CMD"; then
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6697. $as_echo "$MAGIC_CMD" >&6; }
  6698. else
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6700. $as_echo "no" >&6; }
  6701. fi
  6702. else
  6703. MAGIC_CMD=:
  6704. fi
  6705. fi
  6706. fi
  6707. ;;
  6708. esac
  6709. # Use C for the default configuration in the libtool script
  6710. lt_save_CC="$CC"
  6711. ac_ext=c
  6712. ac_cpp='$CPP $CPPFLAGS'
  6713. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6714. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6715. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6716. # Source file extension for C test sources.
  6717. ac_ext=c
  6718. # Object file extension for compiled C test sources.
  6719. objext=o
  6720. objext=$objext
  6721. # Code to be used in simple compile tests
  6722. lt_simple_compile_test_code="int some_variable = 0;"
  6723. # Code to be used in simple link tests
  6724. lt_simple_link_test_code='int main(){return(0);}'
  6725. # If no C compiler was specified, use CC.
  6726. LTCC=${LTCC-"$CC"}
  6727. # If no C compiler flags were specified, use CFLAGS.
  6728. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6729. # Allow CC to be a program name with arguments.
  6730. compiler=$CC
  6731. # Save the default compiler, since it gets overwritten when the other
  6732. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6733. compiler_DEFAULT=$CC
  6734. # save warnings/boilerplate of simple test code
  6735. ac_outfile=conftest.$ac_objext
  6736. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6737. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6738. _lt_compiler_boilerplate=`cat conftest.err`
  6739. $RM conftest*
  6740. ac_outfile=conftest.$ac_objext
  6741. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6742. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6743. _lt_linker_boilerplate=`cat conftest.err`
  6744. $RM -r conftest*
  6745. if test -n "$compiler"; then
  6746. lt_prog_compiler_no_builtin_flag=
  6747. if test "$GCC" = yes; then
  6748. case $cc_basename in
  6749. nvcc*)
  6750. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6751. *)
  6752. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6753. esac
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6755. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6756. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. lt_cv_prog_compiler_rtti_exceptions=no
  6760. ac_outfile=conftest.$ac_objext
  6761. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6762. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6763. # Insert the option either (1) after the last *FLAGS variable, or
  6764. # (2) before a word containing "conftest.", or (3) at the end.
  6765. # Note that $ac_compile itself does not contain backslashes and begins
  6766. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6767. # The option is referenced via a variable to avoid confusing sed.
  6768. lt_compile=`echo "$ac_compile" | $SED \
  6769. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6770. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6771. -e 's:$: $lt_compiler_flag:'`
  6772. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6773. (eval "$lt_compile" 2>conftest.err)
  6774. ac_status=$?
  6775. cat conftest.err >&5
  6776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. if (exit $ac_status) && test -s "$ac_outfile"; then
  6778. # The compiler can only warn and ignore the option if not recognized
  6779. # So say no if there are warnings other than the usual output.
  6780. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6781. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6782. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6783. lt_cv_prog_compiler_rtti_exceptions=yes
  6784. fi
  6785. fi
  6786. $RM conftest*
  6787. fi
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6789. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6790. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6791. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6792. else
  6793. :
  6794. fi
  6795. fi
  6796. lt_prog_compiler_wl=
  6797. lt_prog_compiler_pic=
  6798. lt_prog_compiler_static=
  6799. if test "$GCC" = yes; then
  6800. lt_prog_compiler_wl='-Wl,'
  6801. lt_prog_compiler_static='-static'
  6802. case $host_os in
  6803. aix*)
  6804. # All AIX code is PIC.
  6805. if test "$host_cpu" = ia64; then
  6806. # AIX 5 now supports IA64 processor
  6807. lt_prog_compiler_static='-Bstatic'
  6808. fi
  6809. ;;
  6810. amigaos*)
  6811. case $host_cpu in
  6812. powerpc)
  6813. # see comment about AmigaOS4 .so support
  6814. lt_prog_compiler_pic='-fPIC'
  6815. ;;
  6816. m68k)
  6817. # FIXME: we need at least 68020 code to build shared libraries, but
  6818. # adding the `-m68020' flag to GCC prevents building anything better,
  6819. # like `-m68040'.
  6820. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6821. ;;
  6822. esac
  6823. ;;
  6824. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6825. # PIC is the default for these OSes.
  6826. ;;
  6827. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6828. # This hack is so that the source file can tell whether it is being
  6829. # built for inclusion in a dll (and should export symbols for example).
  6830. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6831. # (--disable-auto-import) libraries
  6832. lt_prog_compiler_pic='-DDLL_EXPORT'
  6833. ;;
  6834. darwin* | rhapsody*)
  6835. # PIC is the default on this platform
  6836. # Common symbols not allowed in MH_DYLIB files
  6837. lt_prog_compiler_pic='-fno-common'
  6838. ;;
  6839. haiku*)
  6840. # PIC is the default for Haiku.
  6841. # The "-static" flag exists, but is broken.
  6842. lt_prog_compiler_static=
  6843. ;;
  6844. hpux*)
  6845. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6846. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6847. # sets the default TLS model and affects inlining.
  6848. case $host_cpu in
  6849. hppa*64*)
  6850. # +Z the default
  6851. ;;
  6852. *)
  6853. lt_prog_compiler_pic='-fPIC'
  6854. ;;
  6855. esac
  6856. ;;
  6857. interix[3-9]*)
  6858. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6859. # Instead, we relocate shared libraries at runtime.
  6860. ;;
  6861. msdosdjgpp*)
  6862. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6863. # on systems that don't support them.
  6864. lt_prog_compiler_can_build_shared=no
  6865. enable_shared=no
  6866. ;;
  6867. *nto* | *qnx*)
  6868. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6869. # it will coredump.
  6870. lt_prog_compiler_pic='-fPIC -shared'
  6871. ;;
  6872. sysv4*MP*)
  6873. if test -d /usr/nec; then
  6874. lt_prog_compiler_pic=-Kconform_pic
  6875. fi
  6876. ;;
  6877. *)
  6878. lt_prog_compiler_pic='-fPIC'
  6879. ;;
  6880. esac
  6881. case $cc_basename in
  6882. nvcc*) # Cuda Compiler Driver 2.2
  6883. lt_prog_compiler_wl='-Xlinker '
  6884. if test -n "$lt_prog_compiler_pic"; then
  6885. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6886. fi
  6887. ;;
  6888. esac
  6889. else
  6890. # PORTME Check for flag to pass linker flags through the system compiler.
  6891. case $host_os in
  6892. aix*)
  6893. lt_prog_compiler_wl='-Wl,'
  6894. if test "$host_cpu" = ia64; then
  6895. # AIX 5 now supports IA64 processor
  6896. lt_prog_compiler_static='-Bstatic'
  6897. else
  6898. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6899. fi
  6900. ;;
  6901. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6902. # This hack is so that the source file can tell whether it is being
  6903. # built for inclusion in a dll (and should export symbols for example).
  6904. lt_prog_compiler_pic='-DDLL_EXPORT'
  6905. ;;
  6906. hpux9* | hpux10* | hpux11*)
  6907. lt_prog_compiler_wl='-Wl,'
  6908. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6909. # not for PA HP-UX.
  6910. case $host_cpu in
  6911. hppa*64*|ia64*)
  6912. # +Z the default
  6913. ;;
  6914. *)
  6915. lt_prog_compiler_pic='+Z'
  6916. ;;
  6917. esac
  6918. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6919. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6920. ;;
  6921. irix5* | irix6* | nonstopux*)
  6922. lt_prog_compiler_wl='-Wl,'
  6923. # PIC (with -KPIC) is the default.
  6924. lt_prog_compiler_static='-non_shared'
  6925. ;;
  6926. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6927. case $cc_basename in
  6928. # old Intel for x86_64 which still supported -KPIC.
  6929. ecc*)
  6930. lt_prog_compiler_wl='-Wl,'
  6931. lt_prog_compiler_pic='-KPIC'
  6932. lt_prog_compiler_static='-static'
  6933. ;;
  6934. # icc used to be incompatible with GCC.
  6935. # ICC 10 doesn't accept -KPIC any more.
  6936. icc* | ifort*)
  6937. lt_prog_compiler_wl='-Wl,'
  6938. lt_prog_compiler_pic='-fPIC'
  6939. lt_prog_compiler_static='-static'
  6940. ;;
  6941. # Lahey Fortran 8.1.
  6942. lf95*)
  6943. lt_prog_compiler_wl='-Wl,'
  6944. lt_prog_compiler_pic='--shared'
  6945. lt_prog_compiler_static='--static'
  6946. ;;
  6947. nagfor*)
  6948. # NAG Fortran compiler
  6949. lt_prog_compiler_wl='-Wl,-Wl,,'
  6950. lt_prog_compiler_pic='-PIC'
  6951. lt_prog_compiler_static='-Bstatic'
  6952. ;;
  6953. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6954. # Portland Group compilers (*not* the Pentium gcc compiler,
  6955. # which looks to be a dead project)
  6956. lt_prog_compiler_wl='-Wl,'
  6957. lt_prog_compiler_pic='-fpic'
  6958. lt_prog_compiler_static='-Bstatic'
  6959. ;;
  6960. ccc*)
  6961. lt_prog_compiler_wl='-Wl,'
  6962. # All Alpha code is PIC.
  6963. lt_prog_compiler_static='-non_shared'
  6964. ;;
  6965. xl* | bgxl* | bgf* | mpixl*)
  6966. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6967. lt_prog_compiler_wl='-Wl,'
  6968. lt_prog_compiler_pic='-qpic'
  6969. lt_prog_compiler_static='-qstaticlink'
  6970. ;;
  6971. *)
  6972. case `$CC -V 2>&1 | sed 5q` in
  6973. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  6974. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6975. lt_prog_compiler_pic='-KPIC'
  6976. lt_prog_compiler_static='-Bstatic'
  6977. lt_prog_compiler_wl=''
  6978. ;;
  6979. *Sun\ F* | *Sun*Fortran*)
  6980. lt_prog_compiler_pic='-KPIC'
  6981. lt_prog_compiler_static='-Bstatic'
  6982. lt_prog_compiler_wl='-Qoption ld '
  6983. ;;
  6984. *Sun\ C*)
  6985. # Sun C 5.9
  6986. lt_prog_compiler_pic='-KPIC'
  6987. lt_prog_compiler_static='-Bstatic'
  6988. lt_prog_compiler_wl='-Wl,'
  6989. ;;
  6990. *Intel*\ [CF]*Compiler*)
  6991. lt_prog_compiler_wl='-Wl,'
  6992. lt_prog_compiler_pic='-fPIC'
  6993. lt_prog_compiler_static='-static'
  6994. ;;
  6995. *Portland\ Group*)
  6996. lt_prog_compiler_wl='-Wl,'
  6997. lt_prog_compiler_pic='-fpic'
  6998. lt_prog_compiler_static='-Bstatic'
  6999. ;;
  7000. esac
  7001. ;;
  7002. esac
  7003. ;;
  7004. newsos6)
  7005. lt_prog_compiler_pic='-KPIC'
  7006. lt_prog_compiler_static='-Bstatic'
  7007. ;;
  7008. *nto* | *qnx*)
  7009. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7010. # it will coredump.
  7011. lt_prog_compiler_pic='-fPIC -shared'
  7012. ;;
  7013. osf3* | osf4* | osf5*)
  7014. lt_prog_compiler_wl='-Wl,'
  7015. # All OSF/1 code is PIC.
  7016. lt_prog_compiler_static='-non_shared'
  7017. ;;
  7018. rdos*)
  7019. lt_prog_compiler_static='-non_shared'
  7020. ;;
  7021. solaris*)
  7022. lt_prog_compiler_pic='-KPIC'
  7023. lt_prog_compiler_static='-Bstatic'
  7024. case $cc_basename in
  7025. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7026. lt_prog_compiler_wl='-Qoption ld ';;
  7027. *)
  7028. lt_prog_compiler_wl='-Wl,';;
  7029. esac
  7030. ;;
  7031. sunos4*)
  7032. lt_prog_compiler_wl='-Qoption ld '
  7033. lt_prog_compiler_pic='-PIC'
  7034. lt_prog_compiler_static='-Bstatic'
  7035. ;;
  7036. sysv4 | sysv4.2uw2* | sysv4.3*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='-KPIC'
  7039. lt_prog_compiler_static='-Bstatic'
  7040. ;;
  7041. sysv4*MP*)
  7042. if test -d /usr/nec ;then
  7043. lt_prog_compiler_pic='-Kconform_pic'
  7044. lt_prog_compiler_static='-Bstatic'
  7045. fi
  7046. ;;
  7047. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_pic='-KPIC'
  7050. lt_prog_compiler_static='-Bstatic'
  7051. ;;
  7052. unicos*)
  7053. lt_prog_compiler_wl='-Wl,'
  7054. lt_prog_compiler_can_build_shared=no
  7055. ;;
  7056. uts4*)
  7057. lt_prog_compiler_pic='-pic'
  7058. lt_prog_compiler_static='-Bstatic'
  7059. ;;
  7060. *)
  7061. lt_prog_compiler_can_build_shared=no
  7062. ;;
  7063. esac
  7064. fi
  7065. case $host_os in
  7066. # For platforms which do not support PIC, -DPIC is meaningless:
  7067. *djgpp*)
  7068. lt_prog_compiler_pic=
  7069. ;;
  7070. *)
  7071. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7072. ;;
  7073. esac
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7075. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7076. if ${lt_cv_prog_compiler_pic+:} false; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7080. fi
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7082. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7083. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7084. #
  7085. # Check to make sure the PIC flag actually works.
  7086. #
  7087. if test -n "$lt_prog_compiler_pic"; then
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7089. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7090. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. lt_cv_prog_compiler_pic_works=no
  7094. ac_outfile=conftest.$ac_objext
  7095. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7096. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7097. # Insert the option either (1) after the last *FLAGS variable, or
  7098. # (2) before a word containing "conftest.", or (3) at the end.
  7099. # Note that $ac_compile itself does not contain backslashes and begins
  7100. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7101. # The option is referenced via a variable to avoid confusing sed.
  7102. lt_compile=`echo "$ac_compile" | $SED \
  7103. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7104. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7105. -e 's:$: $lt_compiler_flag:'`
  7106. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7107. (eval "$lt_compile" 2>conftest.err)
  7108. ac_status=$?
  7109. cat conftest.err >&5
  7110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7111. if (exit $ac_status) && test -s "$ac_outfile"; then
  7112. # The compiler can only warn and ignore the option if not recognized
  7113. # So say no if there are warnings other than the usual output.
  7114. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7115. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7116. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7117. lt_cv_prog_compiler_pic_works=yes
  7118. fi
  7119. fi
  7120. $RM conftest*
  7121. fi
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7123. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7124. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7125. case $lt_prog_compiler_pic in
  7126. "" | " "*) ;;
  7127. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7128. esac
  7129. else
  7130. lt_prog_compiler_pic=
  7131. lt_prog_compiler_can_build_shared=no
  7132. fi
  7133. fi
  7134. #
  7135. # Check to make sure the static flag actually works.
  7136. #
  7137. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7139. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7140. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7141. $as_echo_n "(cached) " >&6
  7142. else
  7143. lt_cv_prog_compiler_static_works=no
  7144. save_LDFLAGS="$LDFLAGS"
  7145. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7146. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7147. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7148. # The linker can only warn and ignore the option if not recognized
  7149. # So say no if there are warnings
  7150. if test -s conftest.err; then
  7151. # Append any errors to the config.log.
  7152. cat conftest.err 1>&5
  7153. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7154. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7155. if diff conftest.exp conftest.er2 >/dev/null; then
  7156. lt_cv_prog_compiler_static_works=yes
  7157. fi
  7158. else
  7159. lt_cv_prog_compiler_static_works=yes
  7160. fi
  7161. fi
  7162. $RM -r conftest*
  7163. LDFLAGS="$save_LDFLAGS"
  7164. fi
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7166. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7167. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7168. :
  7169. else
  7170. lt_prog_compiler_static=
  7171. fi
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7173. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7174. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. lt_cv_prog_compiler_c_o=no
  7178. $RM -r conftest 2>/dev/null
  7179. mkdir conftest
  7180. cd conftest
  7181. mkdir out
  7182. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7183. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7184. # Insert the option either (1) after the last *FLAGS variable, or
  7185. # (2) before a word containing "conftest.", or (3) at the end.
  7186. # Note that $ac_compile itself does not contain backslashes and begins
  7187. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7188. lt_compile=`echo "$ac_compile" | $SED \
  7189. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7190. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7191. -e 's:$: $lt_compiler_flag:'`
  7192. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7193. (eval "$lt_compile" 2>out/conftest.err)
  7194. ac_status=$?
  7195. cat out/conftest.err >&5
  7196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7198. then
  7199. # The compiler can only warn and ignore the option if not recognized
  7200. # So say no if there are warnings
  7201. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7202. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7203. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7204. lt_cv_prog_compiler_c_o=yes
  7205. fi
  7206. fi
  7207. chmod u+w . 2>&5
  7208. $RM conftest*
  7209. # SGI C++ compiler will create directory out/ii_files/ for
  7210. # template instantiation
  7211. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7212. $RM out/* && rmdir out
  7213. cd ..
  7214. $RM -r conftest
  7215. $RM conftest*
  7216. fi
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7218. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7220. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7221. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_c_o=no
  7225. $RM -r conftest 2>/dev/null
  7226. mkdir conftest
  7227. cd conftest
  7228. mkdir out
  7229. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7230. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7231. # Insert the option either (1) after the last *FLAGS variable, or
  7232. # (2) before a word containing "conftest.", or (3) at the end.
  7233. # Note that $ac_compile itself does not contain backslashes and begins
  7234. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7235. lt_compile=`echo "$ac_compile" | $SED \
  7236. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7237. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7238. -e 's:$: $lt_compiler_flag:'`
  7239. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7240. (eval "$lt_compile" 2>out/conftest.err)
  7241. ac_status=$?
  7242. cat out/conftest.err >&5
  7243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7244. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7245. then
  7246. # The compiler can only warn and ignore the option if not recognized
  7247. # So say no if there are warnings
  7248. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7249. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7250. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7251. lt_cv_prog_compiler_c_o=yes
  7252. fi
  7253. fi
  7254. chmod u+w . 2>&5
  7255. $RM conftest*
  7256. # SGI C++ compiler will create directory out/ii_files/ for
  7257. # template instantiation
  7258. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7259. $RM out/* && rmdir out
  7260. cd ..
  7261. $RM -r conftest
  7262. $RM conftest*
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7265. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7266. hard_links="nottested"
  7267. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7268. # do not overwrite the value of need_locks provided by the user
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7270. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7271. hard_links=yes
  7272. $RM conftest*
  7273. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7274. touch conftest.a
  7275. ln conftest.a conftest.b 2>&5 || hard_links=no
  7276. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7278. $as_echo "$hard_links" >&6; }
  7279. if test "$hard_links" = no; then
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7281. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7282. need_locks=warn
  7283. fi
  7284. else
  7285. need_locks=no
  7286. fi
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7288. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7289. runpath_var=
  7290. allow_undefined_flag=
  7291. always_export_symbols=no
  7292. archive_cmds=
  7293. archive_expsym_cmds=
  7294. compiler_needs_object=no
  7295. enable_shared_with_static_runtimes=no
  7296. export_dynamic_flag_spec=
  7297. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7298. hardcode_automatic=no
  7299. hardcode_direct=no
  7300. hardcode_direct_absolute=no
  7301. hardcode_libdir_flag_spec=
  7302. hardcode_libdir_separator=
  7303. hardcode_minus_L=no
  7304. hardcode_shlibpath_var=unsupported
  7305. inherit_rpath=no
  7306. link_all_deplibs=unknown
  7307. module_cmds=
  7308. module_expsym_cmds=
  7309. old_archive_from_new_cmds=
  7310. old_archive_from_expsyms_cmds=
  7311. thread_safe_flag_spec=
  7312. whole_archive_flag_spec=
  7313. # include_expsyms should be a list of space-separated symbols to be *always*
  7314. # included in the symbol list
  7315. include_expsyms=
  7316. # exclude_expsyms can be an extended regexp of symbols to exclude
  7317. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7318. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7319. # as well as any symbol that contains `d'.
  7320. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7321. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7322. # platforms (ab)use it in PIC code, but their linkers get confused if
  7323. # the symbol is explicitly referenced. Since portable code cannot
  7324. # rely on this symbol name, it's probably fine to never include it in
  7325. # preloaded symbol tables.
  7326. # Exclude shared library initialization/finalization symbols.
  7327. extract_expsyms_cmds=
  7328. case $host_os in
  7329. cygwin* | mingw* | pw32* | cegcc*)
  7330. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7331. # When not using gcc, we currently assume that we are using
  7332. # Microsoft Visual C++.
  7333. if test "$GCC" != yes; then
  7334. with_gnu_ld=no
  7335. fi
  7336. ;;
  7337. interix*)
  7338. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7339. with_gnu_ld=yes
  7340. ;;
  7341. openbsd*)
  7342. with_gnu_ld=no
  7343. ;;
  7344. linux* | k*bsd*-gnu | gnu*)
  7345. link_all_deplibs=no
  7346. ;;
  7347. esac
  7348. ld_shlibs=yes
  7349. # On some targets, GNU ld is compatible enough with the native linker
  7350. # that we're better off using the native interface for both.
  7351. lt_use_gnu_ld_interface=no
  7352. if test "$with_gnu_ld" = yes; then
  7353. case $host_os in
  7354. aix*)
  7355. # The AIX port of GNU ld has always aspired to compatibility
  7356. # with the native linker. However, as the warning in the GNU ld
  7357. # block says, versions before 2.19.5* couldn't really create working
  7358. # shared libraries, regardless of the interface used.
  7359. case `$LD -v 2>&1` in
  7360. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7361. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7362. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7363. *)
  7364. lt_use_gnu_ld_interface=yes
  7365. ;;
  7366. esac
  7367. ;;
  7368. *)
  7369. lt_use_gnu_ld_interface=yes
  7370. ;;
  7371. esac
  7372. fi
  7373. if test "$lt_use_gnu_ld_interface" = yes; then
  7374. # If archive_cmds runs LD, not CC, wlarc should be empty
  7375. wlarc='${wl}'
  7376. # Set some defaults for GNU ld with shared library support. These
  7377. # are reset later if shared libraries are not supported. Putting them
  7378. # here allows them to be overridden if necessary.
  7379. runpath_var=LD_RUN_PATH
  7380. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7381. export_dynamic_flag_spec='${wl}--export-dynamic'
  7382. # ancient GNU ld didn't support --whole-archive et. al.
  7383. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7384. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7385. else
  7386. whole_archive_flag_spec=
  7387. fi
  7388. supports_anon_versioning=no
  7389. case `$LD -v 2>&1` in
  7390. *GNU\ gold*) supports_anon_versioning=yes ;;
  7391. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7392. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7393. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7394. *\ 2.11.*) ;; # other 2.11 versions
  7395. *) supports_anon_versioning=yes ;;
  7396. esac
  7397. # See if GNU ld supports shared libraries.
  7398. case $host_os in
  7399. aix[3-9]*)
  7400. # On AIX/PPC, the GNU linker is very broken
  7401. if test "$host_cpu" != ia64; then
  7402. ld_shlibs=no
  7403. cat <<_LT_EOF 1>&2
  7404. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7405. *** to be unable to reliably create shared libraries on AIX.
  7406. *** Therefore, libtool is disabling shared libraries support. If you
  7407. *** really care for shared libraries, you may want to install binutils
  7408. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7409. *** You will then need to restart the configuration process.
  7410. _LT_EOF
  7411. fi
  7412. ;;
  7413. amigaos*)
  7414. case $host_cpu in
  7415. powerpc)
  7416. # see comment about AmigaOS4 .so support
  7417. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7418. archive_expsym_cmds=''
  7419. ;;
  7420. m68k)
  7421. 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)'
  7422. hardcode_libdir_flag_spec='-L$libdir'
  7423. hardcode_minus_L=yes
  7424. ;;
  7425. esac
  7426. ;;
  7427. beos*)
  7428. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7429. allow_undefined_flag=unsupported
  7430. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7431. # support --undefined. This deserves some investigation. FIXME
  7432. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7433. else
  7434. ld_shlibs=no
  7435. fi
  7436. ;;
  7437. cygwin* | mingw* | pw32* | cegcc*)
  7438. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7439. # as there is no search path for DLLs.
  7440. hardcode_libdir_flag_spec='-L$libdir'
  7441. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7442. allow_undefined_flag=unsupported
  7443. always_export_symbols=no
  7444. enable_shared_with_static_runtimes=yes
  7445. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7446. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7447. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7448. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7449. # If the export-symbols file already is a .def file (1st line
  7450. # is EXPORTS), use it as is; otherwise, prepend...
  7451. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7452. cp $export_symbols $output_objdir/$soname.def;
  7453. else
  7454. echo EXPORTS > $output_objdir/$soname.def;
  7455. cat $export_symbols >> $output_objdir/$soname.def;
  7456. fi~
  7457. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7458. else
  7459. ld_shlibs=no
  7460. fi
  7461. ;;
  7462. haiku*)
  7463. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7464. link_all_deplibs=yes
  7465. ;;
  7466. interix[3-9]*)
  7467. hardcode_direct=no
  7468. hardcode_shlibpath_var=no
  7469. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7470. export_dynamic_flag_spec='${wl}-E'
  7471. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7472. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7473. # default) and relocated if they conflict, which is a slow very memory
  7474. # consuming and fragmenting process. To avoid this, we pick a random,
  7475. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7476. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7477. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7478. 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'
  7479. ;;
  7480. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7481. tmp_diet=no
  7482. if test "$host_os" = linux-dietlibc; then
  7483. case $cc_basename in
  7484. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7485. esac
  7486. fi
  7487. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7488. && test "$tmp_diet" = no
  7489. then
  7490. tmp_addflag=' $pic_flag'
  7491. tmp_sharedflag='-shared'
  7492. case $cc_basename,$host_cpu in
  7493. pgcc*) # Portland Group C compiler
  7494. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7495. tmp_addflag=' $pic_flag'
  7496. ;;
  7497. pgf77* | pgf90* | pgf95* | pgfortran*)
  7498. # Portland Group f77 and f90 compilers
  7499. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7500. tmp_addflag=' $pic_flag -Mnomain' ;;
  7501. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7502. tmp_addflag=' -i_dynamic' ;;
  7503. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7504. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7505. ifc* | ifort*) # Intel Fortran compiler
  7506. tmp_addflag=' -nofor_main' ;;
  7507. lf95*) # Lahey Fortran 8.1
  7508. whole_archive_flag_spec=
  7509. tmp_sharedflag='--shared' ;;
  7510. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7511. tmp_sharedflag='-qmkshrobj'
  7512. tmp_addflag= ;;
  7513. nvcc*) # Cuda Compiler Driver 2.2
  7514. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7515. compiler_needs_object=yes
  7516. ;;
  7517. esac
  7518. case `$CC -V 2>&1 | sed 5q` in
  7519. *Sun\ C*) # Sun C 5.9
  7520. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7521. compiler_needs_object=yes
  7522. tmp_sharedflag='-G' ;;
  7523. *Sun\ F*) # Sun Fortran 8.3
  7524. tmp_sharedflag='-G' ;;
  7525. esac
  7526. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7527. if test "x$supports_anon_versioning" = xyes; then
  7528. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7529. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7530. echo "local: *; };" >> $output_objdir/$libname.ver~
  7531. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7532. fi
  7533. case $cc_basename in
  7534. xlf* | bgf* | bgxlf* | mpixlf*)
  7535. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7536. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7537. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7538. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7539. if test "x$supports_anon_versioning" = xyes; then
  7540. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7541. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7542. echo "local: *; };" >> $output_objdir/$libname.ver~
  7543. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7544. fi
  7545. ;;
  7546. esac
  7547. else
  7548. ld_shlibs=no
  7549. fi
  7550. ;;
  7551. netbsd* | netbsdelf*-gnu)
  7552. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7553. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7554. wlarc=
  7555. else
  7556. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7557. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7558. fi
  7559. ;;
  7560. solaris*)
  7561. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7562. ld_shlibs=no
  7563. cat <<_LT_EOF 1>&2
  7564. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7565. *** create shared libraries on Solaris systems. Therefore, libtool
  7566. *** is disabling shared libraries support. We urge you to upgrade GNU
  7567. *** binutils to release 2.9.1 or newer. Another option is to modify
  7568. *** your PATH or compiler configuration so that the native linker is
  7569. *** used, and then restart.
  7570. _LT_EOF
  7571. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7572. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7573. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7574. else
  7575. ld_shlibs=no
  7576. fi
  7577. ;;
  7578. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7579. case `$LD -v 2>&1` in
  7580. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7581. ld_shlibs=no
  7582. cat <<_LT_EOF 1>&2
  7583. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7584. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7585. *** is disabling shared libraries support. We urge you to upgrade GNU
  7586. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7587. *** your PATH or compiler configuration so that the native linker is
  7588. *** used, and then restart.
  7589. _LT_EOF
  7590. ;;
  7591. *)
  7592. # For security reasons, it is highly recommended that you always
  7593. # use absolute paths for naming shared libraries, and exclude the
  7594. # DT_RUNPATH tag from executables and libraries. But doing so
  7595. # requires that you compile everything twice, which is a pain.
  7596. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7597. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7598. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7599. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7600. else
  7601. ld_shlibs=no
  7602. fi
  7603. ;;
  7604. esac
  7605. ;;
  7606. sunos4*)
  7607. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7608. wlarc=
  7609. hardcode_direct=yes
  7610. hardcode_shlibpath_var=no
  7611. ;;
  7612. *)
  7613. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7614. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7615. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7616. else
  7617. ld_shlibs=no
  7618. fi
  7619. ;;
  7620. esac
  7621. if test "$ld_shlibs" = no; then
  7622. runpath_var=
  7623. hardcode_libdir_flag_spec=
  7624. export_dynamic_flag_spec=
  7625. whole_archive_flag_spec=
  7626. fi
  7627. else
  7628. # PORTME fill in a description of your system's linker (not GNU ld)
  7629. case $host_os in
  7630. aix3*)
  7631. allow_undefined_flag=unsupported
  7632. always_export_symbols=yes
  7633. 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'
  7634. # Note: this linker hardcodes the directories in LIBPATH if there
  7635. # are no directories specified by -L.
  7636. hardcode_minus_L=yes
  7637. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7638. # Neither direct hardcoding nor static linking is supported with a
  7639. # broken collect2.
  7640. hardcode_direct=unsupported
  7641. fi
  7642. ;;
  7643. aix[4-9]*)
  7644. if test "$host_cpu" = ia64; then
  7645. # On IA64, the linker does run time linking by default, so we don't
  7646. # have to do anything special.
  7647. aix_use_runtimelinking=no
  7648. exp_sym_flag='-Bexport'
  7649. no_entry_flag=""
  7650. else
  7651. # If we're using GNU nm, then we don't want the "-C" option.
  7652. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7653. # Also, AIX nm treats weak defined symbols like other global
  7654. # defined symbols, whereas GNU nm marks them as "W".
  7655. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7656. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7657. else
  7658. 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'
  7659. fi
  7660. aix_use_runtimelinking=no
  7661. # Test if we are trying to use run time linking or normal
  7662. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7663. # need to do runtime linking.
  7664. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7665. for ld_flag in $LDFLAGS; do
  7666. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7667. aix_use_runtimelinking=yes
  7668. break
  7669. fi
  7670. done
  7671. ;;
  7672. esac
  7673. exp_sym_flag='-bexport'
  7674. no_entry_flag='-bnoentry'
  7675. fi
  7676. # When large executables or shared objects are built, AIX ld can
  7677. # have problems creating the table of contents. If linking a library
  7678. # or program results in "error TOC overflow" add -mminimal-toc to
  7679. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7680. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7681. archive_cmds=''
  7682. hardcode_direct=yes
  7683. hardcode_direct_absolute=yes
  7684. hardcode_libdir_separator=':'
  7685. link_all_deplibs=yes
  7686. file_list_spec='${wl}-f,'
  7687. if test "$GCC" = yes; then
  7688. case $host_os in aix4.[012]|aix4.[012].*)
  7689. # We only want to do this on AIX 4.2 and lower, the check
  7690. # below for broken collect2 doesn't work under 4.3+
  7691. collect2name=`${CC} -print-prog-name=collect2`
  7692. if test -f "$collect2name" &&
  7693. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7694. then
  7695. # We have reworked collect2
  7696. :
  7697. else
  7698. # We have old collect2
  7699. hardcode_direct=unsupported
  7700. # It fails to find uninstalled libraries when the uninstalled
  7701. # path is not listed in the libpath. Setting hardcode_minus_L
  7702. # to unsupported forces relinking
  7703. hardcode_minus_L=yes
  7704. hardcode_libdir_flag_spec='-L$libdir'
  7705. hardcode_libdir_separator=
  7706. fi
  7707. ;;
  7708. esac
  7709. shared_flag='-shared'
  7710. if test "$aix_use_runtimelinking" = yes; then
  7711. shared_flag="$shared_flag "'${wl}-G'
  7712. fi
  7713. link_all_deplibs=no
  7714. else
  7715. # not using gcc
  7716. if test "$host_cpu" = ia64; then
  7717. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7718. # chokes on -Wl,-G. The following line is correct:
  7719. shared_flag='-G'
  7720. else
  7721. if test "$aix_use_runtimelinking" = yes; then
  7722. shared_flag='${wl}-G'
  7723. else
  7724. shared_flag='${wl}-bM:SRE'
  7725. fi
  7726. fi
  7727. fi
  7728. export_dynamic_flag_spec='${wl}-bexpall'
  7729. # It seems that -bexpall does not export symbols beginning with
  7730. # underscore (_), so it is better to generate a list of symbols to export.
  7731. always_export_symbols=yes
  7732. if test "$aix_use_runtimelinking" = yes; then
  7733. # Warning - without using the other runtime loading flags (-brtl),
  7734. # -berok will link without error, but may produce a broken library.
  7735. allow_undefined_flag='-berok'
  7736. # Determine the default libpath from the value encoded in an
  7737. # empty executable.
  7738. if test "${lt_cv_aix_libpath+set}" = set; then
  7739. aix_libpath=$lt_cv_aix_libpath
  7740. else
  7741. if ${lt_cv_aix_libpath_+:} false; then :
  7742. $as_echo_n "(cached) " >&6
  7743. else
  7744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7745. /* end confdefs.h. */
  7746. int
  7747. main ()
  7748. {
  7749. ;
  7750. return 0;
  7751. }
  7752. _ACEOF
  7753. if ac_fn_c_try_link "$LINENO"; then :
  7754. lt_aix_libpath_sed='
  7755. /Import File Strings/,/^$/ {
  7756. /^0/ {
  7757. s/^0 *\([^ ]*\) *$/\1/
  7758. p
  7759. }
  7760. }'
  7761. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7762. # Check for a 64-bit object if we didn't find anything.
  7763. if test -z "$lt_cv_aix_libpath_"; then
  7764. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7765. fi
  7766. fi
  7767. rm -f core conftest.err conftest.$ac_objext \
  7768. conftest$ac_exeext conftest.$ac_ext
  7769. if test -z "$lt_cv_aix_libpath_"; then
  7770. lt_cv_aix_libpath_="/usr/lib:/lib"
  7771. fi
  7772. fi
  7773. aix_libpath=$lt_cv_aix_libpath_
  7774. fi
  7775. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7776. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7777. else
  7778. if test "$host_cpu" = ia64; then
  7779. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7780. allow_undefined_flag="-z nodefs"
  7781. 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"
  7782. else
  7783. # Determine the default libpath from the value encoded in an
  7784. # empty executable.
  7785. if test "${lt_cv_aix_libpath+set}" = set; then
  7786. aix_libpath=$lt_cv_aix_libpath
  7787. else
  7788. if ${lt_cv_aix_libpath_+:} false; then :
  7789. $as_echo_n "(cached) " >&6
  7790. else
  7791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7792. /* end confdefs.h. */
  7793. int
  7794. main ()
  7795. {
  7796. ;
  7797. return 0;
  7798. }
  7799. _ACEOF
  7800. if ac_fn_c_try_link "$LINENO"; then :
  7801. lt_aix_libpath_sed='
  7802. /Import File Strings/,/^$/ {
  7803. /^0/ {
  7804. s/^0 *\([^ ]*\) *$/\1/
  7805. p
  7806. }
  7807. }'
  7808. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7809. # Check for a 64-bit object if we didn't find anything.
  7810. if test -z "$lt_cv_aix_libpath_"; then
  7811. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7812. fi
  7813. fi
  7814. rm -f core conftest.err conftest.$ac_objext \
  7815. conftest$ac_exeext conftest.$ac_ext
  7816. if test -z "$lt_cv_aix_libpath_"; then
  7817. lt_cv_aix_libpath_="/usr/lib:/lib"
  7818. fi
  7819. fi
  7820. aix_libpath=$lt_cv_aix_libpath_
  7821. fi
  7822. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7823. # Warning - without using the other run time loading flags,
  7824. # -berok will link without error, but may produce a broken library.
  7825. no_undefined_flag=' ${wl}-bernotok'
  7826. allow_undefined_flag=' ${wl}-berok'
  7827. if test "$with_gnu_ld" = yes; then
  7828. # We only use this code for GNU lds that support --whole-archive.
  7829. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7830. else
  7831. # Exported symbols can be pulled into shared objects from archives
  7832. whole_archive_flag_spec='$convenience'
  7833. fi
  7834. archive_cmds_need_lc=yes
  7835. # This is similar to how AIX traditionally builds its shared libraries.
  7836. 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'
  7837. fi
  7838. fi
  7839. ;;
  7840. amigaos*)
  7841. case $host_cpu in
  7842. powerpc)
  7843. # see comment about AmigaOS4 .so support
  7844. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7845. archive_expsym_cmds=''
  7846. ;;
  7847. m68k)
  7848. 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)'
  7849. hardcode_libdir_flag_spec='-L$libdir'
  7850. hardcode_minus_L=yes
  7851. ;;
  7852. esac
  7853. ;;
  7854. bsdi[45]*)
  7855. export_dynamic_flag_spec=-rdynamic
  7856. ;;
  7857. cygwin* | mingw* | pw32* | cegcc*)
  7858. # When not using gcc, we currently assume that we are using
  7859. # Microsoft Visual C++.
  7860. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7861. # no search path for DLLs.
  7862. case $cc_basename in
  7863. cl*)
  7864. # Native MSVC
  7865. hardcode_libdir_flag_spec=' '
  7866. allow_undefined_flag=unsupported
  7867. always_export_symbols=yes
  7868. file_list_spec='@'
  7869. # Tell ltmain to make .lib files, not .a files.
  7870. libext=lib
  7871. # Tell ltmain to make .dll files, not .so files.
  7872. shrext_cmds=".dll"
  7873. # FIXME: Setting linknames here is a bad hack.
  7874. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7875. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7876. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7877. else
  7878. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7879. fi~
  7880. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7881. linknames='
  7882. # The linker will not automatically build a static lib if we build a DLL.
  7883. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7884. enable_shared_with_static_runtimes=yes
  7885. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7886. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7887. # Don't use ranlib
  7888. old_postinstall_cmds='chmod 644 $oldlib'
  7889. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7890. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7891. case $lt_outputfile in
  7892. *.exe|*.EXE) ;;
  7893. *)
  7894. lt_outputfile="$lt_outputfile.exe"
  7895. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7896. ;;
  7897. esac~
  7898. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7899. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7900. $RM "$lt_outputfile.manifest";
  7901. fi'
  7902. ;;
  7903. *)
  7904. # Assume MSVC wrapper
  7905. hardcode_libdir_flag_spec=' '
  7906. allow_undefined_flag=unsupported
  7907. # Tell ltmain to make .lib files, not .a files.
  7908. libext=lib
  7909. # Tell ltmain to make .dll files, not .so files.
  7910. shrext_cmds=".dll"
  7911. # FIXME: Setting linknames here is a bad hack.
  7912. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7913. # The linker will automatically build a .lib file if we build a DLL.
  7914. old_archive_from_new_cmds='true'
  7915. # FIXME: Should let the user specify the lib program.
  7916. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7917. enable_shared_with_static_runtimes=yes
  7918. ;;
  7919. esac
  7920. ;;
  7921. darwin* | rhapsody*)
  7922. archive_cmds_need_lc=no
  7923. hardcode_direct=no
  7924. hardcode_automatic=yes
  7925. hardcode_shlibpath_var=unsupported
  7926. if test "$lt_cv_ld_force_load" = "yes"; then
  7927. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7928. else
  7929. whole_archive_flag_spec=''
  7930. fi
  7931. link_all_deplibs=yes
  7932. allow_undefined_flag="$_lt_dar_allow_undefined"
  7933. case $cc_basename in
  7934. ifort*) _lt_dar_can_shared=yes ;;
  7935. *) _lt_dar_can_shared=$GCC ;;
  7936. esac
  7937. if test "$_lt_dar_can_shared" = "yes"; then
  7938. output_verbose_link_cmd=func_echo_all
  7939. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7940. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7941. 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}"
  7942. 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}"
  7943. else
  7944. ld_shlibs=no
  7945. fi
  7946. ;;
  7947. dgux*)
  7948. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7949. hardcode_libdir_flag_spec='-L$libdir'
  7950. hardcode_shlibpath_var=no
  7951. ;;
  7952. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7953. # support. Future versions do this automatically, but an explicit c++rt0.o
  7954. # does not break anything, and helps significantly (at the cost of a little
  7955. # extra space).
  7956. freebsd2.2*)
  7957. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7958. hardcode_libdir_flag_spec='-R$libdir'
  7959. hardcode_direct=yes
  7960. hardcode_shlibpath_var=no
  7961. ;;
  7962. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7963. freebsd2.*)
  7964. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7965. hardcode_direct=yes
  7966. hardcode_minus_L=yes
  7967. hardcode_shlibpath_var=no
  7968. ;;
  7969. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7970. freebsd* | dragonfly*)
  7971. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7972. hardcode_libdir_flag_spec='-R$libdir'
  7973. hardcode_direct=yes
  7974. hardcode_shlibpath_var=no
  7975. ;;
  7976. hpux9*)
  7977. if test "$GCC" = yes; then
  7978. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7979. else
  7980. 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'
  7981. fi
  7982. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7983. hardcode_libdir_separator=:
  7984. hardcode_direct=yes
  7985. # hardcode_minus_L: Not really in the search PATH,
  7986. # but as the default location of the library.
  7987. hardcode_minus_L=yes
  7988. export_dynamic_flag_spec='${wl}-E'
  7989. ;;
  7990. hpux10*)
  7991. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7992. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7993. else
  7994. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7995. fi
  7996. if test "$with_gnu_ld" = no; then
  7997. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7998. hardcode_libdir_separator=:
  7999. hardcode_direct=yes
  8000. hardcode_direct_absolute=yes
  8001. export_dynamic_flag_spec='${wl}-E'
  8002. # hardcode_minus_L: Not really in the search PATH,
  8003. # but as the default location of the library.
  8004. hardcode_minus_L=yes
  8005. fi
  8006. ;;
  8007. hpux11*)
  8008. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8009. case $host_cpu in
  8010. hppa*64*)
  8011. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8012. ;;
  8013. ia64*)
  8014. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8015. ;;
  8016. *)
  8017. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8018. ;;
  8019. esac
  8020. else
  8021. case $host_cpu in
  8022. hppa*64*)
  8023. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8024. ;;
  8025. ia64*)
  8026. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8027. ;;
  8028. *)
  8029. # Older versions of the 11.00 compiler do not understand -b yet
  8030. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8032. $as_echo_n "checking if $CC understands -b... " >&6; }
  8033. if ${lt_cv_prog_compiler__b+:} false; then :
  8034. $as_echo_n "(cached) " >&6
  8035. else
  8036. lt_cv_prog_compiler__b=no
  8037. save_LDFLAGS="$LDFLAGS"
  8038. LDFLAGS="$LDFLAGS -b"
  8039. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8040. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8041. # The linker can only warn and ignore the option if not recognized
  8042. # So say no if there are warnings
  8043. if test -s conftest.err; then
  8044. # Append any errors to the config.log.
  8045. cat conftest.err 1>&5
  8046. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8047. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8048. if diff conftest.exp conftest.er2 >/dev/null; then
  8049. lt_cv_prog_compiler__b=yes
  8050. fi
  8051. else
  8052. lt_cv_prog_compiler__b=yes
  8053. fi
  8054. fi
  8055. $RM -r conftest*
  8056. LDFLAGS="$save_LDFLAGS"
  8057. fi
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8059. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8060. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8061. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8062. else
  8063. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8064. fi
  8065. ;;
  8066. esac
  8067. fi
  8068. if test "$with_gnu_ld" = no; then
  8069. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8070. hardcode_libdir_separator=:
  8071. case $host_cpu in
  8072. hppa*64*|ia64*)
  8073. hardcode_direct=no
  8074. hardcode_shlibpath_var=no
  8075. ;;
  8076. *)
  8077. hardcode_direct=yes
  8078. hardcode_direct_absolute=yes
  8079. export_dynamic_flag_spec='${wl}-E'
  8080. # hardcode_minus_L: Not really in the search PATH,
  8081. # but as the default location of the library.
  8082. hardcode_minus_L=yes
  8083. ;;
  8084. esac
  8085. fi
  8086. ;;
  8087. irix5* | irix6* | nonstopux*)
  8088. if test "$GCC" = yes; then
  8089. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8090. # Try to use the -exported_symbol ld option, if it does not
  8091. # work, assume that -exports_file does not work either and
  8092. # implicitly export all symbols.
  8093. # This should be the same for all languages, so no per-tag cache variable.
  8094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8095. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8096. if ${lt_cv_irix_exported_symbol+:} false; then :
  8097. $as_echo_n "(cached) " >&6
  8098. else
  8099. save_LDFLAGS="$LDFLAGS"
  8100. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8102. /* end confdefs.h. */
  8103. int foo (void) { return 0; }
  8104. _ACEOF
  8105. if ac_fn_c_try_link "$LINENO"; then :
  8106. lt_cv_irix_exported_symbol=yes
  8107. else
  8108. lt_cv_irix_exported_symbol=no
  8109. fi
  8110. rm -f core conftest.err conftest.$ac_objext \
  8111. conftest$ac_exeext conftest.$ac_ext
  8112. LDFLAGS="$save_LDFLAGS"
  8113. fi
  8114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8115. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8116. if test "$lt_cv_irix_exported_symbol" = yes; then
  8117. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8118. fi
  8119. else
  8120. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8121. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8122. fi
  8123. archive_cmds_need_lc='no'
  8124. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8125. hardcode_libdir_separator=:
  8126. inherit_rpath=yes
  8127. link_all_deplibs=yes
  8128. ;;
  8129. netbsd* | netbsdelf*-gnu)
  8130. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8131. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8132. else
  8133. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8134. fi
  8135. hardcode_libdir_flag_spec='-R$libdir'
  8136. hardcode_direct=yes
  8137. hardcode_shlibpath_var=no
  8138. ;;
  8139. newsos6)
  8140. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8141. hardcode_direct=yes
  8142. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8143. hardcode_libdir_separator=:
  8144. hardcode_shlibpath_var=no
  8145. ;;
  8146. *nto* | *qnx*)
  8147. ;;
  8148. openbsd*)
  8149. if test -f /usr/libexec/ld.so; then
  8150. hardcode_direct=yes
  8151. hardcode_shlibpath_var=no
  8152. hardcode_direct_absolute=yes
  8153. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8154. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8155. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8156. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8157. export_dynamic_flag_spec='${wl}-E'
  8158. else
  8159. case $host_os in
  8160. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8161. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8162. hardcode_libdir_flag_spec='-R$libdir'
  8163. ;;
  8164. *)
  8165. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8166. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8167. ;;
  8168. esac
  8169. fi
  8170. else
  8171. ld_shlibs=no
  8172. fi
  8173. ;;
  8174. os2*)
  8175. hardcode_libdir_flag_spec='-L$libdir'
  8176. hardcode_minus_L=yes
  8177. allow_undefined_flag=unsupported
  8178. 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'
  8179. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8180. ;;
  8181. osf3*)
  8182. if test "$GCC" = yes; then
  8183. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8184. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8185. else
  8186. allow_undefined_flag=' -expect_unresolved \*'
  8187. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8188. fi
  8189. archive_cmds_need_lc='no'
  8190. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8191. hardcode_libdir_separator=:
  8192. ;;
  8193. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8194. if test "$GCC" = yes; then
  8195. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8196. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8197. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8198. else
  8199. allow_undefined_flag=' -expect_unresolved \*'
  8200. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8201. 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~
  8202. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8203. # Both c and cxx compiler support -rpath directly
  8204. hardcode_libdir_flag_spec='-rpath $libdir'
  8205. fi
  8206. archive_cmds_need_lc='no'
  8207. hardcode_libdir_separator=:
  8208. ;;
  8209. solaris*)
  8210. no_undefined_flag=' -z defs'
  8211. if test "$GCC" = yes; then
  8212. wlarc='${wl}'
  8213. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8214. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8215. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8216. else
  8217. case `$CC -V 2>&1` in
  8218. *"Compilers 5.0"*)
  8219. wlarc=''
  8220. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8221. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8222. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8223. ;;
  8224. *)
  8225. wlarc='${wl}'
  8226. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8227. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8228. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8229. ;;
  8230. esac
  8231. fi
  8232. hardcode_libdir_flag_spec='-R$libdir'
  8233. hardcode_shlibpath_var=no
  8234. case $host_os in
  8235. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8236. *)
  8237. # The compiler driver will combine and reorder linker options,
  8238. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8239. # but is careful enough not to reorder.
  8240. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8241. if test "$GCC" = yes; then
  8242. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8243. else
  8244. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8245. fi
  8246. ;;
  8247. esac
  8248. link_all_deplibs=yes
  8249. ;;
  8250. sunos4*)
  8251. if test "x$host_vendor" = xsequent; then
  8252. # Use $CC to link under sequent, because it throws in some extra .o
  8253. # files that make .init and .fini sections work.
  8254. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8255. else
  8256. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8257. fi
  8258. hardcode_libdir_flag_spec='-L$libdir'
  8259. hardcode_direct=yes
  8260. hardcode_minus_L=yes
  8261. hardcode_shlibpath_var=no
  8262. ;;
  8263. sysv4)
  8264. case $host_vendor in
  8265. sni)
  8266. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8267. hardcode_direct=yes # is this really true???
  8268. ;;
  8269. siemens)
  8270. ## LD is ld it makes a PLAMLIB
  8271. ## CC just makes a GrossModule.
  8272. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8273. reload_cmds='$CC -r -o $output$reload_objs'
  8274. hardcode_direct=no
  8275. ;;
  8276. motorola)
  8277. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8278. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8279. ;;
  8280. esac
  8281. runpath_var='LD_RUN_PATH'
  8282. hardcode_shlibpath_var=no
  8283. ;;
  8284. sysv4.3*)
  8285. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8286. hardcode_shlibpath_var=no
  8287. export_dynamic_flag_spec='-Bexport'
  8288. ;;
  8289. sysv4*MP*)
  8290. if test -d /usr/nec; then
  8291. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8292. hardcode_shlibpath_var=no
  8293. runpath_var=LD_RUN_PATH
  8294. hardcode_runpath_var=yes
  8295. ld_shlibs=yes
  8296. fi
  8297. ;;
  8298. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8299. no_undefined_flag='${wl}-z,text'
  8300. archive_cmds_need_lc=no
  8301. hardcode_shlibpath_var=no
  8302. runpath_var='LD_RUN_PATH'
  8303. if test "$GCC" = yes; then
  8304. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8305. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8306. else
  8307. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8308. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8309. fi
  8310. ;;
  8311. sysv5* | sco3.2v5* | sco5v6*)
  8312. # Note: We can NOT use -z defs as we might desire, because we do not
  8313. # link with -lc, and that would cause any symbols used from libc to
  8314. # always be unresolved, which means just about no library would
  8315. # ever link correctly. If we're not using GNU ld we use -z text
  8316. # though, which does catch some bad symbols but isn't as heavy-handed
  8317. # as -z defs.
  8318. no_undefined_flag='${wl}-z,text'
  8319. allow_undefined_flag='${wl}-z,nodefs'
  8320. archive_cmds_need_lc=no
  8321. hardcode_shlibpath_var=no
  8322. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8323. hardcode_libdir_separator=':'
  8324. link_all_deplibs=yes
  8325. export_dynamic_flag_spec='${wl}-Bexport'
  8326. runpath_var='LD_RUN_PATH'
  8327. if test "$GCC" = yes; then
  8328. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8329. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8330. else
  8331. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8332. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8333. fi
  8334. ;;
  8335. uts4*)
  8336. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8337. hardcode_libdir_flag_spec='-L$libdir'
  8338. hardcode_shlibpath_var=no
  8339. ;;
  8340. *)
  8341. ld_shlibs=no
  8342. ;;
  8343. esac
  8344. if test x$host_vendor = xsni; then
  8345. case $host in
  8346. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8347. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8348. ;;
  8349. esac
  8350. fi
  8351. fi
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8353. $as_echo "$ld_shlibs" >&6; }
  8354. test "$ld_shlibs" = no && can_build_shared=no
  8355. with_gnu_ld=$with_gnu_ld
  8356. #
  8357. # Do we need to explicitly link libc?
  8358. #
  8359. case "x$archive_cmds_need_lc" in
  8360. x|xyes)
  8361. # Assume -lc should be added
  8362. archive_cmds_need_lc=yes
  8363. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8364. case $archive_cmds in
  8365. *'~'*)
  8366. # FIXME: we may have to deal with multi-command sequences.
  8367. ;;
  8368. '$CC '*)
  8369. # Test whether the compiler implicitly links with -lc since on some
  8370. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8371. # to ld, don't add -lc before -lgcc.
  8372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8373. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8374. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8375. $as_echo_n "(cached) " >&6
  8376. else
  8377. $RM conftest*
  8378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8380. (eval $ac_compile) 2>&5
  8381. ac_status=$?
  8382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8383. test $ac_status = 0; } 2>conftest.err; then
  8384. soname=conftest
  8385. lib=conftest
  8386. libobjs=conftest.$ac_objext
  8387. deplibs=
  8388. wl=$lt_prog_compiler_wl
  8389. pic_flag=$lt_prog_compiler_pic
  8390. compiler_flags=-v
  8391. linker_flags=-v
  8392. verstring=
  8393. output_objdir=.
  8394. libname=conftest
  8395. lt_save_allow_undefined_flag=$allow_undefined_flag
  8396. allow_undefined_flag=
  8397. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8398. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8399. ac_status=$?
  8400. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8401. test $ac_status = 0; }
  8402. then
  8403. lt_cv_archive_cmds_need_lc=no
  8404. else
  8405. lt_cv_archive_cmds_need_lc=yes
  8406. fi
  8407. allow_undefined_flag=$lt_save_allow_undefined_flag
  8408. else
  8409. cat conftest.err 1>&5
  8410. fi
  8411. $RM conftest*
  8412. fi
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8414. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8415. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8416. ;;
  8417. esac
  8418. fi
  8419. ;;
  8420. esac
  8421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8422. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8423. if test "$GCC" = yes; then
  8424. case $host_os in
  8425. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8426. *) lt_awk_arg="/^libraries:/" ;;
  8427. esac
  8428. case $host_os in
  8429. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8430. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8431. esac
  8432. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8433. case $lt_search_path_spec in
  8434. *\;*)
  8435. # if the path contains ";" then we assume it to be the separator
  8436. # otherwise default to the standard path separator (i.e. ":") - it is
  8437. # assumed that no part of a normal pathname contains ";" but that should
  8438. # okay in the real world where ";" in dirpaths is itself problematic.
  8439. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8440. ;;
  8441. *)
  8442. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8443. ;;
  8444. esac
  8445. # Ok, now we have the path, separated by spaces, we can step through it
  8446. # and add multilib dir if necessary.
  8447. lt_tmp_lt_search_path_spec=
  8448. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8449. for lt_sys_path in $lt_search_path_spec; do
  8450. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8451. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8452. else
  8453. test -d "$lt_sys_path" && \
  8454. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8455. fi
  8456. done
  8457. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8458. BEGIN {RS=" "; FS="/|\n";} {
  8459. lt_foo="";
  8460. lt_count=0;
  8461. for (lt_i = NF; lt_i > 0; lt_i--) {
  8462. if ($lt_i != "" && $lt_i != ".") {
  8463. if ($lt_i == "..") {
  8464. lt_count++;
  8465. } else {
  8466. if (lt_count == 0) {
  8467. lt_foo="/" $lt_i lt_foo;
  8468. } else {
  8469. lt_count--;
  8470. }
  8471. }
  8472. }
  8473. }
  8474. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8475. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8476. }'`
  8477. # AWK program above erroneously prepends '/' to C:/dos/paths
  8478. # for these hosts.
  8479. case $host_os in
  8480. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8481. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8482. esac
  8483. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8484. else
  8485. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8486. fi
  8487. library_names_spec=
  8488. libname_spec='lib$name'
  8489. soname_spec=
  8490. shrext_cmds=".so"
  8491. postinstall_cmds=
  8492. postuninstall_cmds=
  8493. finish_cmds=
  8494. finish_eval=
  8495. shlibpath_var=
  8496. shlibpath_overrides_runpath=unknown
  8497. version_type=none
  8498. dynamic_linker="$host_os ld.so"
  8499. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8500. need_lib_prefix=unknown
  8501. hardcode_into_libs=no
  8502. # when you set need_version to no, make sure it does not cause -set_version
  8503. # flags to be left without arguments
  8504. need_version=unknown
  8505. case $host_os in
  8506. aix3*)
  8507. version_type=linux # correct to gnu/linux during the next big refactor
  8508. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8509. shlibpath_var=LIBPATH
  8510. # AIX 3 has no versioning support, so we append a major version to the name.
  8511. soname_spec='${libname}${release}${shared_ext}$major'
  8512. ;;
  8513. aix[4-9]*)
  8514. version_type=linux # correct to gnu/linux during the next big refactor
  8515. need_lib_prefix=no
  8516. need_version=no
  8517. hardcode_into_libs=yes
  8518. if test "$host_cpu" = ia64; then
  8519. # AIX 5 supports IA64
  8520. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8521. shlibpath_var=LD_LIBRARY_PATH
  8522. else
  8523. # With GCC up to 2.95.x, collect2 would create an import file
  8524. # for dependence libraries. The import file would start with
  8525. # the line `#! .'. This would cause the generated library to
  8526. # depend on `.', always an invalid library. This was fixed in
  8527. # development snapshots of GCC prior to 3.0.
  8528. case $host_os in
  8529. aix4 | aix4.[01] | aix4.[01].*)
  8530. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8531. echo ' yes '
  8532. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8533. :
  8534. else
  8535. can_build_shared=no
  8536. fi
  8537. ;;
  8538. esac
  8539. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8540. # soname into executable. Probably we can add versioning support to
  8541. # collect2, so additional links can be useful in future.
  8542. if test "$aix_use_runtimelinking" = yes; then
  8543. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8544. # instead of lib<name>.a to let people know that these are not
  8545. # typical AIX shared libraries.
  8546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8547. else
  8548. # We preserve .a as extension for shared libraries through AIX4.2
  8549. # and later when we are not doing run time linking.
  8550. library_names_spec='${libname}${release}.a $libname.a'
  8551. soname_spec='${libname}${release}${shared_ext}$major'
  8552. fi
  8553. shlibpath_var=LIBPATH
  8554. fi
  8555. ;;
  8556. amigaos*)
  8557. case $host_cpu in
  8558. powerpc)
  8559. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8560. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8562. ;;
  8563. m68k)
  8564. library_names_spec='$libname.ixlibrary $libname.a'
  8565. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8566. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8567. ;;
  8568. esac
  8569. ;;
  8570. beos*)
  8571. library_names_spec='${libname}${shared_ext}'
  8572. dynamic_linker="$host_os ld.so"
  8573. shlibpath_var=LIBRARY_PATH
  8574. ;;
  8575. bsdi[45]*)
  8576. version_type=linux # correct to gnu/linux during the next big refactor
  8577. need_version=no
  8578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8579. soname_spec='${libname}${release}${shared_ext}$major'
  8580. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8581. shlibpath_var=LD_LIBRARY_PATH
  8582. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8583. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8584. # the default ld.so.conf also contains /usr/contrib/lib and
  8585. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8586. # libtool to hard-code these into programs
  8587. ;;
  8588. cygwin* | mingw* | pw32* | cegcc*)
  8589. version_type=windows
  8590. shrext_cmds=".dll"
  8591. need_version=no
  8592. need_lib_prefix=no
  8593. case $GCC,$cc_basename in
  8594. yes,*)
  8595. # gcc
  8596. library_names_spec='$libname.dll.a'
  8597. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8598. postinstall_cmds='base_file=`basename \${file}`~
  8599. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8600. dldir=$destdir/`dirname \$dlpath`~
  8601. test -d \$dldir || mkdir -p \$dldir~
  8602. $install_prog $dir/$dlname \$dldir/$dlname~
  8603. chmod a+x \$dldir/$dlname~
  8604. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8605. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8606. fi'
  8607. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8608. dlpath=$dir/\$dldll~
  8609. $RM \$dlpath'
  8610. shlibpath_overrides_runpath=yes
  8611. case $host_os in
  8612. cygwin*)
  8613. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8614. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8615. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8616. ;;
  8617. mingw* | cegcc*)
  8618. # MinGW DLLs use traditional 'lib' prefix
  8619. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8620. ;;
  8621. pw32*)
  8622. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8623. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8624. ;;
  8625. esac
  8626. dynamic_linker='Win32 ld.exe'
  8627. ;;
  8628. *,cl*)
  8629. # Native MSVC
  8630. libname_spec='$name'
  8631. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8632. library_names_spec='${libname}.dll.lib'
  8633. case $build_os in
  8634. mingw*)
  8635. sys_lib_search_path_spec=
  8636. lt_save_ifs=$IFS
  8637. IFS=';'
  8638. for lt_path in $LIB
  8639. do
  8640. IFS=$lt_save_ifs
  8641. # Let DOS variable expansion print the short 8.3 style file name.
  8642. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8643. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8644. done
  8645. IFS=$lt_save_ifs
  8646. # Convert to MSYS style.
  8647. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8648. ;;
  8649. cygwin*)
  8650. # Convert to unix form, then to dos form, then back to unix form
  8651. # but this time dos style (no spaces!) so that the unix form looks
  8652. # like /cygdrive/c/PROGRA~1:/cygdr...
  8653. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8654. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8655. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8656. ;;
  8657. *)
  8658. sys_lib_search_path_spec="$LIB"
  8659. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8660. # It is most probably a Windows format PATH.
  8661. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8662. else
  8663. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8664. fi
  8665. # FIXME: find the short name or the path components, as spaces are
  8666. # common. (e.g. "Program Files" -> "PROGRA~1")
  8667. ;;
  8668. esac
  8669. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8670. postinstall_cmds='base_file=`basename \${file}`~
  8671. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8672. dldir=$destdir/`dirname \$dlpath`~
  8673. test -d \$dldir || mkdir -p \$dldir~
  8674. $install_prog $dir/$dlname \$dldir/$dlname'
  8675. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8676. dlpath=$dir/\$dldll~
  8677. $RM \$dlpath'
  8678. shlibpath_overrides_runpath=yes
  8679. dynamic_linker='Win32 link.exe'
  8680. ;;
  8681. *)
  8682. # Assume MSVC wrapper
  8683. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8684. dynamic_linker='Win32 ld.exe'
  8685. ;;
  8686. esac
  8687. # FIXME: first we should search . and the directory the executable is in
  8688. shlibpath_var=PATH
  8689. ;;
  8690. darwin* | rhapsody*)
  8691. dynamic_linker="$host_os dyld"
  8692. version_type=darwin
  8693. need_lib_prefix=no
  8694. need_version=no
  8695. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8696. soname_spec='${libname}${release}${major}$shared_ext'
  8697. shlibpath_overrides_runpath=yes
  8698. shlibpath_var=DYLD_LIBRARY_PATH
  8699. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8700. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8701. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8702. ;;
  8703. dgux*)
  8704. version_type=linux # correct to gnu/linux during the next big refactor
  8705. need_lib_prefix=no
  8706. need_version=no
  8707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8708. soname_spec='${libname}${release}${shared_ext}$major'
  8709. shlibpath_var=LD_LIBRARY_PATH
  8710. ;;
  8711. freebsd* | dragonfly*)
  8712. # DragonFly does not have aout. When/if they implement a new
  8713. # versioning mechanism, adjust this.
  8714. if test -x /usr/bin/objformat; then
  8715. objformat=`/usr/bin/objformat`
  8716. else
  8717. case $host_os in
  8718. freebsd[23].*) objformat=aout ;;
  8719. *) objformat=elf ;;
  8720. esac
  8721. fi
  8722. version_type=freebsd-$objformat
  8723. case $version_type in
  8724. freebsd-elf*)
  8725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8726. need_version=no
  8727. need_lib_prefix=no
  8728. ;;
  8729. freebsd-*)
  8730. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8731. need_version=yes
  8732. ;;
  8733. esac
  8734. shlibpath_var=LD_LIBRARY_PATH
  8735. case $host_os in
  8736. freebsd2.*)
  8737. shlibpath_overrides_runpath=yes
  8738. ;;
  8739. freebsd3.[01]* | freebsdelf3.[01]*)
  8740. shlibpath_overrides_runpath=yes
  8741. hardcode_into_libs=yes
  8742. ;;
  8743. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8744. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8745. shlibpath_overrides_runpath=no
  8746. hardcode_into_libs=yes
  8747. ;;
  8748. *) # from 4.6 on, and DragonFly
  8749. shlibpath_overrides_runpath=yes
  8750. hardcode_into_libs=yes
  8751. ;;
  8752. esac
  8753. ;;
  8754. gnu*)
  8755. version_type=linux # correct to gnu/linux during the next big refactor
  8756. need_lib_prefix=no
  8757. need_version=no
  8758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8759. soname_spec='${libname}${release}${shared_ext}$major'
  8760. shlibpath_var=LD_LIBRARY_PATH
  8761. shlibpath_overrides_runpath=no
  8762. hardcode_into_libs=yes
  8763. ;;
  8764. haiku*)
  8765. version_type=linux # correct to gnu/linux during the next big refactor
  8766. need_lib_prefix=no
  8767. need_version=no
  8768. dynamic_linker="$host_os runtime_loader"
  8769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8770. soname_spec='${libname}${release}${shared_ext}$major'
  8771. shlibpath_var=LIBRARY_PATH
  8772. shlibpath_overrides_runpath=yes
  8773. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8774. hardcode_into_libs=yes
  8775. ;;
  8776. hpux9* | hpux10* | hpux11*)
  8777. # Give a soname corresponding to the major version so that dld.sl refuses to
  8778. # link against other versions.
  8779. version_type=sunos
  8780. need_lib_prefix=no
  8781. need_version=no
  8782. case $host_cpu in
  8783. ia64*)
  8784. shrext_cmds='.so'
  8785. hardcode_into_libs=yes
  8786. dynamic_linker="$host_os dld.so"
  8787. shlibpath_var=LD_LIBRARY_PATH
  8788. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. if test "X$HPUX_IA64_MODE" = X32; then
  8792. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8793. else
  8794. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8795. fi
  8796. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8797. ;;
  8798. hppa*64*)
  8799. shrext_cmds='.sl'
  8800. hardcode_into_libs=yes
  8801. dynamic_linker="$host_os dld.sl"
  8802. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8803. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8805. soname_spec='${libname}${release}${shared_ext}$major'
  8806. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8807. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8808. ;;
  8809. *)
  8810. shrext_cmds='.sl'
  8811. dynamic_linker="$host_os dld.sl"
  8812. shlibpath_var=SHLIB_PATH
  8813. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8815. soname_spec='${libname}${release}${shared_ext}$major'
  8816. ;;
  8817. esac
  8818. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8819. postinstall_cmds='chmod 555 $lib'
  8820. # or fails outright, so override atomically:
  8821. install_override_mode=555
  8822. ;;
  8823. interix[3-9]*)
  8824. version_type=linux # correct to gnu/linux during the next big refactor
  8825. need_lib_prefix=no
  8826. need_version=no
  8827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8828. soname_spec='${libname}${release}${shared_ext}$major'
  8829. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8830. shlibpath_var=LD_LIBRARY_PATH
  8831. shlibpath_overrides_runpath=no
  8832. hardcode_into_libs=yes
  8833. ;;
  8834. irix5* | irix6* | nonstopux*)
  8835. case $host_os in
  8836. nonstopux*) version_type=nonstopux ;;
  8837. *)
  8838. if test "$lt_cv_prog_gnu_ld" = yes; then
  8839. version_type=linux # correct to gnu/linux during the next big refactor
  8840. else
  8841. version_type=irix
  8842. fi ;;
  8843. esac
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. soname_spec='${libname}${release}${shared_ext}$major'
  8847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8848. case $host_os in
  8849. irix5* | nonstopux*)
  8850. libsuff= shlibsuff=
  8851. ;;
  8852. *)
  8853. case $LD in # libtool.m4 will add one of these switches to LD
  8854. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8855. libsuff= shlibsuff= libmagic=32-bit;;
  8856. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8857. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8858. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8859. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8860. *) libsuff= shlibsuff= libmagic=never-match;;
  8861. esac
  8862. ;;
  8863. esac
  8864. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8865. shlibpath_overrides_runpath=no
  8866. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8867. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8868. hardcode_into_libs=yes
  8869. ;;
  8870. # No shared lib support for Linux oldld, aout, or coff.
  8871. linux*oldld* | linux*aout* | linux*coff*)
  8872. dynamic_linker=no
  8873. ;;
  8874. # This must be glibc/ELF.
  8875. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8876. version_type=linux # correct to gnu/linux during the next big refactor
  8877. need_lib_prefix=no
  8878. need_version=no
  8879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8880. soname_spec='${libname}${release}${shared_ext}$major'
  8881. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8882. shlibpath_var=LD_LIBRARY_PATH
  8883. shlibpath_overrides_runpath=no
  8884. # Some binutils ld are patched to set DT_RUNPATH
  8885. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8886. $as_echo_n "(cached) " >&6
  8887. else
  8888. lt_cv_shlibpath_overrides_runpath=no
  8889. save_LDFLAGS=$LDFLAGS
  8890. save_libdir=$libdir
  8891. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8892. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8894. /* end confdefs.h. */
  8895. int
  8896. main ()
  8897. {
  8898. ;
  8899. return 0;
  8900. }
  8901. _ACEOF
  8902. if ac_fn_c_try_link "$LINENO"; then :
  8903. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8904. lt_cv_shlibpath_overrides_runpath=yes
  8905. fi
  8906. fi
  8907. rm -f core conftest.err conftest.$ac_objext \
  8908. conftest$ac_exeext conftest.$ac_ext
  8909. LDFLAGS=$save_LDFLAGS
  8910. libdir=$save_libdir
  8911. fi
  8912. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8913. # This implies no fast_install, which is unacceptable.
  8914. # Some rework will be needed to allow for fast_install
  8915. # before this can be enabled.
  8916. hardcode_into_libs=yes
  8917. # Append ld.so.conf contents to the search path
  8918. if test -f /etc/ld.so.conf; then
  8919. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8920. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8921. fi
  8922. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8923. # powerpc, because MkLinux only supported shared libraries with the
  8924. # GNU dynamic linker. Since this was broken with cross compilers,
  8925. # most powerpc-linux boxes support dynamic linking these days and
  8926. # people can always --disable-shared, the test was removed, and we
  8927. # assume the GNU/Linux dynamic linker is in use.
  8928. dynamic_linker='GNU/Linux ld.so'
  8929. ;;
  8930. netbsdelf*-gnu)
  8931. version_type=linux
  8932. need_lib_prefix=no
  8933. need_version=no
  8934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8935. soname_spec='${libname}${release}${shared_ext}$major'
  8936. shlibpath_var=LD_LIBRARY_PATH
  8937. shlibpath_overrides_runpath=no
  8938. hardcode_into_libs=yes
  8939. dynamic_linker='NetBSD ld.elf_so'
  8940. ;;
  8941. netbsd*)
  8942. version_type=sunos
  8943. need_lib_prefix=no
  8944. need_version=no
  8945. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8947. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8948. dynamic_linker='NetBSD (a.out) ld.so'
  8949. else
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. dynamic_linker='NetBSD ld.elf_so'
  8953. fi
  8954. shlibpath_var=LD_LIBRARY_PATH
  8955. shlibpath_overrides_runpath=yes
  8956. hardcode_into_libs=yes
  8957. ;;
  8958. newsos6)
  8959. version_type=linux # correct to gnu/linux during the next big refactor
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8961. shlibpath_var=LD_LIBRARY_PATH
  8962. shlibpath_overrides_runpath=yes
  8963. ;;
  8964. *nto* | *qnx*)
  8965. version_type=qnx
  8966. need_lib_prefix=no
  8967. need_version=no
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. shlibpath_var=LD_LIBRARY_PATH
  8971. shlibpath_overrides_runpath=no
  8972. hardcode_into_libs=yes
  8973. dynamic_linker='ldqnx.so'
  8974. ;;
  8975. openbsd*)
  8976. version_type=sunos
  8977. sys_lib_dlsearch_path_spec="/usr/lib"
  8978. need_lib_prefix=no
  8979. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8980. case $host_os in
  8981. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8982. *) need_version=no ;;
  8983. esac
  8984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8985. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8986. shlibpath_var=LD_LIBRARY_PATH
  8987. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8988. case $host_os in
  8989. openbsd2.[89] | openbsd2.[89].*)
  8990. shlibpath_overrides_runpath=no
  8991. ;;
  8992. *)
  8993. shlibpath_overrides_runpath=yes
  8994. ;;
  8995. esac
  8996. else
  8997. shlibpath_overrides_runpath=yes
  8998. fi
  8999. ;;
  9000. os2*)
  9001. libname_spec='$name'
  9002. shrext_cmds=".dll"
  9003. need_lib_prefix=no
  9004. library_names_spec='$libname${shared_ext} $libname.a'
  9005. dynamic_linker='OS/2 ld.exe'
  9006. shlibpath_var=LIBPATH
  9007. ;;
  9008. osf3* | osf4* | osf5*)
  9009. version_type=osf
  9010. need_lib_prefix=no
  9011. need_version=no
  9012. soname_spec='${libname}${release}${shared_ext}$major'
  9013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9014. shlibpath_var=LD_LIBRARY_PATH
  9015. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9016. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9017. ;;
  9018. rdos*)
  9019. dynamic_linker=no
  9020. ;;
  9021. solaris*)
  9022. version_type=linux # correct to gnu/linux during the next big refactor
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. shlibpath_var=LD_LIBRARY_PATH
  9028. shlibpath_overrides_runpath=yes
  9029. hardcode_into_libs=yes
  9030. # ldd complains unless libraries are executable
  9031. postinstall_cmds='chmod +x $lib'
  9032. ;;
  9033. sunos4*)
  9034. version_type=sunos
  9035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9036. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9037. shlibpath_var=LD_LIBRARY_PATH
  9038. shlibpath_overrides_runpath=yes
  9039. if test "$with_gnu_ld" = yes; then
  9040. need_lib_prefix=no
  9041. fi
  9042. need_version=yes
  9043. ;;
  9044. sysv4 | sysv4.3*)
  9045. version_type=linux # correct to gnu/linux during the next big refactor
  9046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9047. soname_spec='${libname}${release}${shared_ext}$major'
  9048. shlibpath_var=LD_LIBRARY_PATH
  9049. case $host_vendor in
  9050. sni)
  9051. shlibpath_overrides_runpath=no
  9052. need_lib_prefix=no
  9053. runpath_var=LD_RUN_PATH
  9054. ;;
  9055. siemens)
  9056. need_lib_prefix=no
  9057. ;;
  9058. motorola)
  9059. need_lib_prefix=no
  9060. need_version=no
  9061. shlibpath_overrides_runpath=no
  9062. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9063. ;;
  9064. esac
  9065. ;;
  9066. sysv4*MP*)
  9067. if test -d /usr/nec ;then
  9068. version_type=linux # correct to gnu/linux during the next big refactor
  9069. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9070. soname_spec='$libname${shared_ext}.$major'
  9071. shlibpath_var=LD_LIBRARY_PATH
  9072. fi
  9073. ;;
  9074. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9075. version_type=freebsd-elf
  9076. need_lib_prefix=no
  9077. need_version=no
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9079. soname_spec='${libname}${release}${shared_ext}$major'
  9080. shlibpath_var=LD_LIBRARY_PATH
  9081. shlibpath_overrides_runpath=yes
  9082. hardcode_into_libs=yes
  9083. if test "$with_gnu_ld" = yes; then
  9084. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9085. else
  9086. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9087. case $host_os in
  9088. sco3.2v5*)
  9089. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9090. ;;
  9091. esac
  9092. fi
  9093. sys_lib_dlsearch_path_spec='/usr/lib'
  9094. ;;
  9095. tpf*)
  9096. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9097. version_type=linux # correct to gnu/linux during the next big refactor
  9098. need_lib_prefix=no
  9099. need_version=no
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. shlibpath_overrides_runpath=no
  9103. hardcode_into_libs=yes
  9104. ;;
  9105. uts4*)
  9106. version_type=linux # correct to gnu/linux during the next big refactor
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9108. soname_spec='${libname}${release}${shared_ext}$major'
  9109. shlibpath_var=LD_LIBRARY_PATH
  9110. ;;
  9111. *)
  9112. dynamic_linker=no
  9113. ;;
  9114. esac
  9115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9116. $as_echo "$dynamic_linker" >&6; }
  9117. test "$dynamic_linker" = no && can_build_shared=no
  9118. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9119. if test "$GCC" = yes; then
  9120. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9121. fi
  9122. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9123. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9124. fi
  9125. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9126. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9127. fi
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9129. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9130. hardcode_action=
  9131. if test -n "$hardcode_libdir_flag_spec" ||
  9132. test -n "$runpath_var" ||
  9133. test "X$hardcode_automatic" = "Xyes" ; then
  9134. # We can hardcode non-existent directories.
  9135. if test "$hardcode_direct" != no &&
  9136. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9137. # have to relink, otherwise we might link with an installed library
  9138. # when we should be linking with a yet-to-be-installed one
  9139. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9140. test "$hardcode_minus_L" != no; then
  9141. # Linking always hardcodes the temporary library directory.
  9142. hardcode_action=relink
  9143. else
  9144. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9145. hardcode_action=immediate
  9146. fi
  9147. else
  9148. # We cannot hardcode anything, or else we can only hardcode existing
  9149. # directories.
  9150. hardcode_action=unsupported
  9151. fi
  9152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9153. $as_echo "$hardcode_action" >&6; }
  9154. if test "$hardcode_action" = relink ||
  9155. test "$inherit_rpath" = yes; then
  9156. # Fast installation is not supported
  9157. enable_fast_install=no
  9158. elif test "$shlibpath_overrides_runpath" = yes ||
  9159. test "$enable_shared" = no; then
  9160. # Fast installation is not necessary
  9161. enable_fast_install=needless
  9162. fi
  9163. if test "x$enable_dlopen" != xyes; then
  9164. enable_dlopen=unknown
  9165. enable_dlopen_self=unknown
  9166. enable_dlopen_self_static=unknown
  9167. else
  9168. lt_cv_dlopen=no
  9169. lt_cv_dlopen_libs=
  9170. case $host_os in
  9171. beos*)
  9172. lt_cv_dlopen="load_add_on"
  9173. lt_cv_dlopen_libs=
  9174. lt_cv_dlopen_self=yes
  9175. ;;
  9176. mingw* | pw32* | cegcc*)
  9177. lt_cv_dlopen="LoadLibrary"
  9178. lt_cv_dlopen_libs=
  9179. ;;
  9180. cygwin*)
  9181. lt_cv_dlopen="dlopen"
  9182. lt_cv_dlopen_libs=
  9183. ;;
  9184. darwin*)
  9185. # if libdl is installed we need to link against it
  9186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9187. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9188. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9189. $as_echo_n "(cached) " >&6
  9190. else
  9191. ac_check_lib_save_LIBS=$LIBS
  9192. LIBS="-ldl $LIBS"
  9193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9194. /* end confdefs.h. */
  9195. /* Override any GCC internal prototype to avoid an error.
  9196. Use char because int might match the return type of a GCC
  9197. builtin and then its argument prototype would still apply. */
  9198. #ifdef __cplusplus
  9199. extern "C"
  9200. #endif
  9201. char dlopen ();
  9202. int
  9203. main ()
  9204. {
  9205. return dlopen ();
  9206. ;
  9207. return 0;
  9208. }
  9209. _ACEOF
  9210. if ac_fn_c_try_link "$LINENO"; then :
  9211. ac_cv_lib_dl_dlopen=yes
  9212. else
  9213. ac_cv_lib_dl_dlopen=no
  9214. fi
  9215. rm -f core conftest.err conftest.$ac_objext \
  9216. conftest$ac_exeext conftest.$ac_ext
  9217. LIBS=$ac_check_lib_save_LIBS
  9218. fi
  9219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9220. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9221. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9222. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9223. else
  9224. lt_cv_dlopen="dyld"
  9225. lt_cv_dlopen_libs=
  9226. lt_cv_dlopen_self=yes
  9227. fi
  9228. ;;
  9229. *)
  9230. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9231. if test "x$ac_cv_func_shl_load" = xyes; then :
  9232. lt_cv_dlopen="shl_load"
  9233. else
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9235. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9236. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9237. $as_echo_n "(cached) " >&6
  9238. else
  9239. ac_check_lib_save_LIBS=$LIBS
  9240. LIBS="-ldld $LIBS"
  9241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9242. /* end confdefs.h. */
  9243. /* Override any GCC internal prototype to avoid an error.
  9244. Use char because int might match the return type of a GCC
  9245. builtin and then its argument prototype would still apply. */
  9246. #ifdef __cplusplus
  9247. extern "C"
  9248. #endif
  9249. char shl_load ();
  9250. int
  9251. main ()
  9252. {
  9253. return shl_load ();
  9254. ;
  9255. return 0;
  9256. }
  9257. _ACEOF
  9258. if ac_fn_c_try_link "$LINENO"; then :
  9259. ac_cv_lib_dld_shl_load=yes
  9260. else
  9261. ac_cv_lib_dld_shl_load=no
  9262. fi
  9263. rm -f core conftest.err conftest.$ac_objext \
  9264. conftest$ac_exeext conftest.$ac_ext
  9265. LIBS=$ac_check_lib_save_LIBS
  9266. fi
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9268. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9269. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9270. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9271. else
  9272. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9273. if test "x$ac_cv_func_dlopen" = xyes; then :
  9274. lt_cv_dlopen="dlopen"
  9275. else
  9276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9277. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9278. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9279. $as_echo_n "(cached) " >&6
  9280. else
  9281. ac_check_lib_save_LIBS=$LIBS
  9282. LIBS="-ldl $LIBS"
  9283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9284. /* end confdefs.h. */
  9285. /* Override any GCC internal prototype to avoid an error.
  9286. Use char because int might match the return type of a GCC
  9287. builtin and then its argument prototype would still apply. */
  9288. #ifdef __cplusplus
  9289. extern "C"
  9290. #endif
  9291. char dlopen ();
  9292. int
  9293. main ()
  9294. {
  9295. return dlopen ();
  9296. ;
  9297. return 0;
  9298. }
  9299. _ACEOF
  9300. if ac_fn_c_try_link "$LINENO"; then :
  9301. ac_cv_lib_dl_dlopen=yes
  9302. else
  9303. ac_cv_lib_dl_dlopen=no
  9304. fi
  9305. rm -f core conftest.err conftest.$ac_objext \
  9306. conftest$ac_exeext conftest.$ac_ext
  9307. LIBS=$ac_check_lib_save_LIBS
  9308. fi
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9310. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9311. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9312. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9313. else
  9314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9315. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9316. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9317. $as_echo_n "(cached) " >&6
  9318. else
  9319. ac_check_lib_save_LIBS=$LIBS
  9320. LIBS="-lsvld $LIBS"
  9321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9322. /* end confdefs.h. */
  9323. /* Override any GCC internal prototype to avoid an error.
  9324. Use char because int might match the return type of a GCC
  9325. builtin and then its argument prototype would still apply. */
  9326. #ifdef __cplusplus
  9327. extern "C"
  9328. #endif
  9329. char dlopen ();
  9330. int
  9331. main ()
  9332. {
  9333. return dlopen ();
  9334. ;
  9335. return 0;
  9336. }
  9337. _ACEOF
  9338. if ac_fn_c_try_link "$LINENO"; then :
  9339. ac_cv_lib_svld_dlopen=yes
  9340. else
  9341. ac_cv_lib_svld_dlopen=no
  9342. fi
  9343. rm -f core conftest.err conftest.$ac_objext \
  9344. conftest$ac_exeext conftest.$ac_ext
  9345. LIBS=$ac_check_lib_save_LIBS
  9346. fi
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9348. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9349. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9350. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9351. else
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9353. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9354. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9355. $as_echo_n "(cached) " >&6
  9356. else
  9357. ac_check_lib_save_LIBS=$LIBS
  9358. LIBS="-ldld $LIBS"
  9359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9360. /* end confdefs.h. */
  9361. /* Override any GCC internal prototype to avoid an error.
  9362. Use char because int might match the return type of a GCC
  9363. builtin and then its argument prototype would still apply. */
  9364. #ifdef __cplusplus
  9365. extern "C"
  9366. #endif
  9367. char dld_link ();
  9368. int
  9369. main ()
  9370. {
  9371. return dld_link ();
  9372. ;
  9373. return 0;
  9374. }
  9375. _ACEOF
  9376. if ac_fn_c_try_link "$LINENO"; then :
  9377. ac_cv_lib_dld_dld_link=yes
  9378. else
  9379. ac_cv_lib_dld_dld_link=no
  9380. fi
  9381. rm -f core conftest.err conftest.$ac_objext \
  9382. conftest$ac_exeext conftest.$ac_ext
  9383. LIBS=$ac_check_lib_save_LIBS
  9384. fi
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9386. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9387. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9388. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9389. fi
  9390. fi
  9391. fi
  9392. fi
  9393. fi
  9394. fi
  9395. ;;
  9396. esac
  9397. if test "x$lt_cv_dlopen" != xno; then
  9398. enable_dlopen=yes
  9399. else
  9400. enable_dlopen=no
  9401. fi
  9402. case $lt_cv_dlopen in
  9403. dlopen)
  9404. save_CPPFLAGS="$CPPFLAGS"
  9405. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9406. save_LDFLAGS="$LDFLAGS"
  9407. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9408. save_LIBS="$LIBS"
  9409. LIBS="$lt_cv_dlopen_libs $LIBS"
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9411. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9412. if ${lt_cv_dlopen_self+:} false; then :
  9413. $as_echo_n "(cached) " >&6
  9414. else
  9415. if test "$cross_compiling" = yes; then :
  9416. lt_cv_dlopen_self=cross
  9417. else
  9418. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9419. lt_status=$lt_dlunknown
  9420. cat > conftest.$ac_ext <<_LT_EOF
  9421. #line $LINENO "configure"
  9422. #include "confdefs.h"
  9423. #if HAVE_DLFCN_H
  9424. #include <dlfcn.h>
  9425. #endif
  9426. #include <stdio.h>
  9427. #ifdef RTLD_GLOBAL
  9428. # define LT_DLGLOBAL RTLD_GLOBAL
  9429. #else
  9430. # ifdef DL_GLOBAL
  9431. # define LT_DLGLOBAL DL_GLOBAL
  9432. # else
  9433. # define LT_DLGLOBAL 0
  9434. # endif
  9435. #endif
  9436. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9437. find out it does not work in some platform. */
  9438. #ifndef LT_DLLAZY_OR_NOW
  9439. # ifdef RTLD_LAZY
  9440. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9441. # else
  9442. # ifdef DL_LAZY
  9443. # define LT_DLLAZY_OR_NOW DL_LAZY
  9444. # else
  9445. # ifdef RTLD_NOW
  9446. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9447. # else
  9448. # ifdef DL_NOW
  9449. # define LT_DLLAZY_OR_NOW DL_NOW
  9450. # else
  9451. # define LT_DLLAZY_OR_NOW 0
  9452. # endif
  9453. # endif
  9454. # endif
  9455. # endif
  9456. #endif
  9457. /* When -fvisbility=hidden is used, assume the code has been annotated
  9458. correspondingly for the symbols needed. */
  9459. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9460. int fnord () __attribute__((visibility("default")));
  9461. #endif
  9462. int fnord () { return 42; }
  9463. int main ()
  9464. {
  9465. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9466. int status = $lt_dlunknown;
  9467. if (self)
  9468. {
  9469. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9470. else
  9471. {
  9472. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9473. else puts (dlerror ());
  9474. }
  9475. /* dlclose (self); */
  9476. }
  9477. else
  9478. puts (dlerror ());
  9479. return status;
  9480. }
  9481. _LT_EOF
  9482. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9483. (eval $ac_link) 2>&5
  9484. ac_status=$?
  9485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9486. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9487. (./conftest; exit; ) >&5 2>/dev/null
  9488. lt_status=$?
  9489. case x$lt_status in
  9490. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9491. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9492. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9493. esac
  9494. else :
  9495. # compilation failed
  9496. lt_cv_dlopen_self=no
  9497. fi
  9498. fi
  9499. rm -fr conftest*
  9500. fi
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9502. $as_echo "$lt_cv_dlopen_self" >&6; }
  9503. if test "x$lt_cv_dlopen_self" = xyes; then
  9504. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9506. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9507. if ${lt_cv_dlopen_self_static+:} false; then :
  9508. $as_echo_n "(cached) " >&6
  9509. else
  9510. if test "$cross_compiling" = yes; then :
  9511. lt_cv_dlopen_self_static=cross
  9512. else
  9513. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9514. lt_status=$lt_dlunknown
  9515. cat > conftest.$ac_ext <<_LT_EOF
  9516. #line $LINENO "configure"
  9517. #include "confdefs.h"
  9518. #if HAVE_DLFCN_H
  9519. #include <dlfcn.h>
  9520. #endif
  9521. #include <stdio.h>
  9522. #ifdef RTLD_GLOBAL
  9523. # define LT_DLGLOBAL RTLD_GLOBAL
  9524. #else
  9525. # ifdef DL_GLOBAL
  9526. # define LT_DLGLOBAL DL_GLOBAL
  9527. # else
  9528. # define LT_DLGLOBAL 0
  9529. # endif
  9530. #endif
  9531. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9532. find out it does not work in some platform. */
  9533. #ifndef LT_DLLAZY_OR_NOW
  9534. # ifdef RTLD_LAZY
  9535. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9536. # else
  9537. # ifdef DL_LAZY
  9538. # define LT_DLLAZY_OR_NOW DL_LAZY
  9539. # else
  9540. # ifdef RTLD_NOW
  9541. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9542. # else
  9543. # ifdef DL_NOW
  9544. # define LT_DLLAZY_OR_NOW DL_NOW
  9545. # else
  9546. # define LT_DLLAZY_OR_NOW 0
  9547. # endif
  9548. # endif
  9549. # endif
  9550. # endif
  9551. #endif
  9552. /* When -fvisbility=hidden is used, assume the code has been annotated
  9553. correspondingly for the symbols needed. */
  9554. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9555. int fnord () __attribute__((visibility("default")));
  9556. #endif
  9557. int fnord () { return 42; }
  9558. int main ()
  9559. {
  9560. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9561. int status = $lt_dlunknown;
  9562. if (self)
  9563. {
  9564. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9565. else
  9566. {
  9567. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9568. else puts (dlerror ());
  9569. }
  9570. /* dlclose (self); */
  9571. }
  9572. else
  9573. puts (dlerror ());
  9574. return status;
  9575. }
  9576. _LT_EOF
  9577. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9578. (eval $ac_link) 2>&5
  9579. ac_status=$?
  9580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9581. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9582. (./conftest; exit; ) >&5 2>/dev/null
  9583. lt_status=$?
  9584. case x$lt_status in
  9585. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9586. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9587. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9588. esac
  9589. else :
  9590. # compilation failed
  9591. lt_cv_dlopen_self_static=no
  9592. fi
  9593. fi
  9594. rm -fr conftest*
  9595. fi
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9597. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9598. fi
  9599. CPPFLAGS="$save_CPPFLAGS"
  9600. LDFLAGS="$save_LDFLAGS"
  9601. LIBS="$save_LIBS"
  9602. ;;
  9603. esac
  9604. case $lt_cv_dlopen_self in
  9605. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9606. *) enable_dlopen_self=unknown ;;
  9607. esac
  9608. case $lt_cv_dlopen_self_static in
  9609. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9610. *) enable_dlopen_self_static=unknown ;;
  9611. esac
  9612. fi
  9613. striplib=
  9614. old_striplib=
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9616. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9617. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9618. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9619. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9621. $as_echo "yes" >&6; }
  9622. else
  9623. # FIXME - insert some real tests, host_os isn't really good enough
  9624. case $host_os in
  9625. darwin*)
  9626. if test -n "$STRIP" ; then
  9627. striplib="$STRIP -x"
  9628. old_striplib="$STRIP -S"
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9630. $as_echo "yes" >&6; }
  9631. else
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9633. $as_echo "no" >&6; }
  9634. fi
  9635. ;;
  9636. *)
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9638. $as_echo "no" >&6; }
  9639. ;;
  9640. esac
  9641. fi
  9642. # Report which library types will actually be built
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9644. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9646. $as_echo "$can_build_shared" >&6; }
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9648. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9649. test "$can_build_shared" = "no" && enable_shared=no
  9650. # On AIX, shared libraries and static libraries use the same namespace, and
  9651. # are all built from PIC.
  9652. case $host_os in
  9653. aix3*)
  9654. test "$enable_shared" = yes && enable_static=no
  9655. if test -n "$RANLIB"; then
  9656. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9657. postinstall_cmds='$RANLIB $lib'
  9658. fi
  9659. ;;
  9660. aix[4-9]*)
  9661. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9662. test "$enable_shared" = yes && enable_static=no
  9663. fi
  9664. ;;
  9665. esac
  9666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9667. $as_echo "$enable_shared" >&6; }
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9669. $as_echo_n "checking whether to build static libraries... " >&6; }
  9670. # Make sure either enable_shared or enable_static is yes.
  9671. test "$enable_shared" = yes || enable_static=yes
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9673. $as_echo "$enable_static" >&6; }
  9674. fi
  9675. ac_ext=c
  9676. ac_cpp='$CPP $CPPFLAGS'
  9677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9680. CC="$lt_save_CC"
  9681. ac_config_commands="$ac_config_commands libtool"
  9682. # Only expand once:
  9683. if test x$GCC = xyes; then
  9684. GCC_TRUE=
  9685. GCC_FALSE='#'
  9686. else
  9687. GCC_TRUE='#'
  9688. GCC_FALSE=
  9689. fi
  9690. # Checks for libraries.
  9691. # Checks for header files.
  9692. for ac_header in locale.h
  9693. do :
  9694. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  9695. if test "x$ac_cv_header_locale_h" = xyes; then :
  9696. cat >>confdefs.h <<_ACEOF
  9697. #define HAVE_LOCALE_H 1
  9698. _ACEOF
  9699. fi
  9700. done
  9701. # Checks for typedefs, structures, and compiler characteristics.
  9702. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  9703. case $ac_cv_c_int32_t in #(
  9704. no|yes) ;; #(
  9705. *)
  9706. cat >>confdefs.h <<_ACEOF
  9707. #define int32_t $ac_cv_c_int32_t
  9708. _ACEOF
  9709. ;;
  9710. esac
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  9712. $as_echo_n "checking for long long int... " >&6; }
  9713. if ${ac_cv_type_long_long_int+:} false; then :
  9714. $as_echo_n "(cached) " >&6
  9715. else
  9716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9717. /* end confdefs.h. */
  9718. /* For now, do not test the preprocessor; as of 2007 there are too many
  9719. implementations with broken preprocessors. Perhaps this can
  9720. be revisited in 2012. In the meantime, code should not expect
  9721. #if to work with literals wider than 32 bits. */
  9722. /* Test literals. */
  9723. long long int ll = 9223372036854775807ll;
  9724. long long int nll = -9223372036854775807LL;
  9725. unsigned long long int ull = 18446744073709551615ULL;
  9726. /* Test constant expressions. */
  9727. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9728. ? 1 : -1)];
  9729. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9730. ? 1 : -1)];
  9731. int i = 63;
  9732. int
  9733. main ()
  9734. {
  9735. /* Test availability of runtime routines for shift and division. */
  9736. long long int llmax = 9223372036854775807ll;
  9737. unsigned long long int ullmax = 18446744073709551615ull;
  9738. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9739. | (llmax / ll) | (llmax % ll)
  9740. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9741. | (ullmax / ull) | (ullmax % ull));
  9742. ;
  9743. return 0;
  9744. }
  9745. _ACEOF
  9746. if ac_fn_c_try_link "$LINENO"; then :
  9747. if test "$cross_compiling" = yes; then :
  9748. ac_cv_type_long_long_int=yes
  9749. else
  9750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9751. /* end confdefs.h. */
  9752. #include <limits.h>
  9753. #ifndef LLONG_MAX
  9754. # define HALF \
  9755. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  9756. # define LLONG_MAX (HALF - 1 + HALF)
  9757. #endif
  9758. int
  9759. main ()
  9760. {
  9761. long long int n = 1;
  9762. int i;
  9763. for (i = 0; ; i++)
  9764. {
  9765. long long int m = n << i;
  9766. if (m >> i != n)
  9767. return 1;
  9768. if (LLONG_MAX / 2 < m)
  9769. break;
  9770. }
  9771. return 0;
  9772. ;
  9773. return 0;
  9774. }
  9775. _ACEOF
  9776. if ac_fn_c_try_run "$LINENO"; then :
  9777. ac_cv_type_long_long_int=yes
  9778. else
  9779. ac_cv_type_long_long_int=no
  9780. fi
  9781. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9782. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9783. fi
  9784. else
  9785. ac_cv_type_long_long_int=no
  9786. fi
  9787. rm -f core conftest.err conftest.$ac_objext \
  9788. conftest$ac_exeext conftest.$ac_ext
  9789. fi
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  9791. $as_echo "$ac_cv_type_long_long_int" >&6; }
  9792. if test $ac_cv_type_long_long_int = yes; then
  9793. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  9794. fi
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  9796. $as_echo_n "checking for inline... " >&6; }
  9797. if ${ac_cv_c_inline+:} false; then :
  9798. $as_echo_n "(cached) " >&6
  9799. else
  9800. ac_cv_c_inline=no
  9801. for ac_kw in inline __inline__ __inline; do
  9802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9803. /* end confdefs.h. */
  9804. #ifndef __cplusplus
  9805. typedef int foo_t;
  9806. static $ac_kw foo_t static_foo () {return 0; }
  9807. $ac_kw foo_t foo () {return 0; }
  9808. #endif
  9809. _ACEOF
  9810. if ac_fn_c_try_compile "$LINENO"; then :
  9811. ac_cv_c_inline=$ac_kw
  9812. fi
  9813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9814. test "$ac_cv_c_inline" != no && break
  9815. done
  9816. fi
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  9818. $as_echo "$ac_cv_c_inline" >&6; }
  9819. case $ac_cv_c_inline in
  9820. inline | yes) ;;
  9821. *)
  9822. case $ac_cv_c_inline in
  9823. no) ac_val=;;
  9824. *) ac_val=$ac_cv_c_inline;;
  9825. esac
  9826. cat >>confdefs.h <<_ACEOF
  9827. #ifndef __cplusplus
  9828. #define inline $ac_val
  9829. #endif
  9830. _ACEOF
  9831. ;;
  9832. esac
  9833. case $ac_cv_c_inline in
  9834. yes) json_inline=inline;;
  9835. no) json_inline=;;
  9836. *) json_inline=$ac_cv_c_inline;;
  9837. esac
  9838. # Checks for library functions.
  9839. for ac_func in strtoll localeconv
  9840. do :
  9841. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9842. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9843. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9844. cat >>confdefs.h <<_ACEOF
  9845. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9846. _ACEOF
  9847. fi
  9848. done
  9849. case "$ac_cv_type_long_long_int$ac_cv_func_strtoll" in
  9850. yesyes) json_have_long_long=1;;
  9851. *) json_have_long_long=0;;
  9852. esac
  9853. case "$ac_cv_header_locale_h$ac_cv_func_localeconv" in
  9854. yesyes) json_have_localeconv=1;;
  9855. *) json_have_localeconv=0;;
  9856. esac
  9857. ac_config_files="$ac_config_files jansson.pc Makefile doc/Makefile src/Makefile src/jansson_config.h test/Makefile test/bin/Makefile test/suites/Makefile test/suites/api/Makefile"
  9858. cat >confcache <<\_ACEOF
  9859. # This file is a shell script that caches the results of configure
  9860. # tests run on this system so they can be shared between configure
  9861. # scripts and configure runs, see configure's option --config-cache.
  9862. # It is not useful on other systems. If it contains results you don't
  9863. # want to keep, you may remove or edit it.
  9864. #
  9865. # config.status only pays attention to the cache file if you give it
  9866. # the --recheck option to rerun configure.
  9867. #
  9868. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9869. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9870. # following values.
  9871. _ACEOF
  9872. # The following way of writing the cache mishandles newlines in values,
  9873. # but we know of no workaround that is simple, portable, and efficient.
  9874. # So, we kill variables containing newlines.
  9875. # Ultrix sh set writes to stderr and can't be redirected directly,
  9876. # and sets the high bit in the cache file unless we assign to the vars.
  9877. (
  9878. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9879. eval ac_val=\$$ac_var
  9880. case $ac_val in #(
  9881. *${as_nl}*)
  9882. case $ac_var in #(
  9883. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9884. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9885. esac
  9886. case $ac_var in #(
  9887. _ | IFS | as_nl) ;; #(
  9888. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9889. *) { eval $ac_var=; unset $ac_var;} ;;
  9890. esac ;;
  9891. esac
  9892. done
  9893. (set) 2>&1 |
  9894. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9895. *${as_nl}ac_space=\ *)
  9896. # `set' does not quote correctly, so add quotes: double-quote
  9897. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9898. sed -n \
  9899. "s/'/'\\\\''/g;
  9900. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9901. ;; #(
  9902. *)
  9903. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9904. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9905. ;;
  9906. esac |
  9907. sort
  9908. ) |
  9909. sed '
  9910. /^ac_cv_env_/b end
  9911. t clear
  9912. :clear
  9913. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9914. t end
  9915. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9916. :end' >>confcache
  9917. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9918. if test -w "$cache_file"; then
  9919. if test "x$cache_file" != "x/dev/null"; then
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9921. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9922. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9923. cat confcache >"$cache_file"
  9924. else
  9925. case $cache_file in #(
  9926. */* | ?:*)
  9927. mv -f confcache "$cache_file"$$ &&
  9928. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9929. *)
  9930. mv -f confcache "$cache_file" ;;
  9931. esac
  9932. fi
  9933. fi
  9934. else
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9936. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9937. fi
  9938. fi
  9939. rm -f confcache
  9940. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9941. # Let make expand exec_prefix.
  9942. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9943. DEFS=-DHAVE_CONFIG_H
  9944. ac_libobjs=
  9945. ac_ltlibobjs=
  9946. U=
  9947. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9948. # 1. Remove the extension, and $U if already installed.
  9949. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9950. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9951. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9952. # will be set to the directory where LIBOBJS objects are built.
  9953. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9954. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9955. done
  9956. LIBOBJS=$ac_libobjs
  9957. LTLIBOBJS=$ac_ltlibobjs
  9958. if test -n "$EXEEXT"; then
  9959. am__EXEEXT_TRUE=
  9960. am__EXEEXT_FALSE='#'
  9961. else
  9962. am__EXEEXT_TRUE='#'
  9963. am__EXEEXT_FALSE=
  9964. fi
  9965. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9966. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9967. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9968. fi
  9969. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9970. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9971. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9972. fi
  9973. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  9974. as_fn_error $? "conditional \"GCC\" was never defined.
  9975. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9976. fi
  9977. : "${CONFIG_STATUS=./config.status}"
  9978. ac_write_fail=0
  9979. ac_clean_files_save=$ac_clean_files
  9980. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9982. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9983. as_write_fail=0
  9984. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9985. #! $SHELL
  9986. # Generated by $as_me.
  9987. # Run this file to recreate the current configuration.
  9988. # Compiler output produced by configure, useful for debugging
  9989. # configure, is in config.log if it exists.
  9990. debug=false
  9991. ac_cs_recheck=false
  9992. ac_cs_silent=false
  9993. SHELL=\${CONFIG_SHELL-$SHELL}
  9994. export SHELL
  9995. _ASEOF
  9996. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9997. ## -------------------- ##
  9998. ## M4sh Initialization. ##
  9999. ## -------------------- ##
  10000. # Be more Bourne compatible
  10001. DUALCASE=1; export DUALCASE # for MKS sh
  10002. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10003. emulate sh
  10004. NULLCMD=:
  10005. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10006. # is contrary to our usage. Disable this feature.
  10007. alias -g '${1+"$@"}'='"$@"'
  10008. setopt NO_GLOB_SUBST
  10009. else
  10010. case `(set -o) 2>/dev/null` in #(
  10011. *posix*) :
  10012. set -o posix ;; #(
  10013. *) :
  10014. ;;
  10015. esac
  10016. fi
  10017. as_nl='
  10018. '
  10019. export as_nl
  10020. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10021. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10022. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10023. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10024. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10025. # but without wasting forks for bash or zsh.
  10026. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10027. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10028. as_echo='print -r --'
  10029. as_echo_n='print -rn --'
  10030. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10031. as_echo='printf %s\n'
  10032. as_echo_n='printf %s'
  10033. else
  10034. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10035. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10036. as_echo_n='/usr/ucb/echo -n'
  10037. else
  10038. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10039. as_echo_n_body='eval
  10040. arg=$1;
  10041. case $arg in #(
  10042. *"$as_nl"*)
  10043. expr "X$arg" : "X\\(.*\\)$as_nl";
  10044. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10045. esac;
  10046. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10047. '
  10048. export as_echo_n_body
  10049. as_echo_n='sh -c $as_echo_n_body as_echo'
  10050. fi
  10051. export as_echo_body
  10052. as_echo='sh -c $as_echo_body as_echo'
  10053. fi
  10054. # The user is always right.
  10055. if test "${PATH_SEPARATOR+set}" != set; then
  10056. PATH_SEPARATOR=:
  10057. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10058. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10059. PATH_SEPARATOR=';'
  10060. }
  10061. fi
  10062. # IFS
  10063. # We need space, tab and new line, in precisely that order. Quoting is
  10064. # there to prevent editors from complaining about space-tab.
  10065. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10066. # splitting by setting IFS to empty value.)
  10067. IFS=" "" $as_nl"
  10068. # Find who we are. Look in the path if we contain no directory separator.
  10069. as_myself=
  10070. case $0 in #((
  10071. *[\\/]* ) as_myself=$0 ;;
  10072. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10073. for as_dir in $PATH
  10074. do
  10075. IFS=$as_save_IFS
  10076. test -z "$as_dir" && as_dir=.
  10077. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10078. done
  10079. IFS=$as_save_IFS
  10080. ;;
  10081. esac
  10082. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10083. # in which case we are not to be found in the path.
  10084. if test "x$as_myself" = x; then
  10085. as_myself=$0
  10086. fi
  10087. if test ! -f "$as_myself"; then
  10088. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10089. exit 1
  10090. fi
  10091. # Unset variables that we do not need and which cause bugs (e.g. in
  10092. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10093. # suppresses any "Segmentation fault" message there. '((' could
  10094. # trigger a bug in pdksh 5.2.14.
  10095. for as_var in BASH_ENV ENV MAIL MAILPATH
  10096. do eval test x\${$as_var+set} = xset \
  10097. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10098. done
  10099. PS1='$ '
  10100. PS2='> '
  10101. PS4='+ '
  10102. # NLS nuisances.
  10103. LC_ALL=C
  10104. export LC_ALL
  10105. LANGUAGE=C
  10106. export LANGUAGE
  10107. # CDPATH.
  10108. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10109. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10110. # ----------------------------------------
  10111. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10112. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10113. # script with STATUS, using 1 if that was 0.
  10114. as_fn_error ()
  10115. {
  10116. as_status=$1; test $as_status -eq 0 && as_status=1
  10117. if test "$4"; then
  10118. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10119. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10120. fi
  10121. $as_echo "$as_me: error: $2" >&2
  10122. as_fn_exit $as_status
  10123. } # as_fn_error
  10124. # as_fn_set_status STATUS
  10125. # -----------------------
  10126. # Set $? to STATUS, without forking.
  10127. as_fn_set_status ()
  10128. {
  10129. return $1
  10130. } # as_fn_set_status
  10131. # as_fn_exit STATUS
  10132. # -----------------
  10133. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10134. as_fn_exit ()
  10135. {
  10136. set +e
  10137. as_fn_set_status $1
  10138. exit $1
  10139. } # as_fn_exit
  10140. # as_fn_unset VAR
  10141. # ---------------
  10142. # Portably unset VAR.
  10143. as_fn_unset ()
  10144. {
  10145. { eval $1=; unset $1;}
  10146. }
  10147. as_unset=as_fn_unset
  10148. # as_fn_append VAR VALUE
  10149. # ----------------------
  10150. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10151. # advantage of any shell optimizations that allow amortized linear growth over
  10152. # repeated appends, instead of the typical quadratic growth present in naive
  10153. # implementations.
  10154. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10155. eval 'as_fn_append ()
  10156. {
  10157. eval $1+=\$2
  10158. }'
  10159. else
  10160. as_fn_append ()
  10161. {
  10162. eval $1=\$$1\$2
  10163. }
  10164. fi # as_fn_append
  10165. # as_fn_arith ARG...
  10166. # ------------------
  10167. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10168. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10169. # must be portable across $(()) and expr.
  10170. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10171. eval 'as_fn_arith ()
  10172. {
  10173. as_val=$(( $* ))
  10174. }'
  10175. else
  10176. as_fn_arith ()
  10177. {
  10178. as_val=`expr "$@" || test $? -eq 1`
  10179. }
  10180. fi # as_fn_arith
  10181. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10182. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10183. as_expr=expr
  10184. else
  10185. as_expr=false
  10186. fi
  10187. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10188. as_basename=basename
  10189. else
  10190. as_basename=false
  10191. fi
  10192. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10193. as_dirname=dirname
  10194. else
  10195. as_dirname=false
  10196. fi
  10197. as_me=`$as_basename -- "$0" ||
  10198. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10199. X"$0" : 'X\(//\)$' \| \
  10200. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10201. $as_echo X/"$0" |
  10202. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10203. s//\1/
  10204. q
  10205. }
  10206. /^X\/\(\/\/\)$/{
  10207. s//\1/
  10208. q
  10209. }
  10210. /^X\/\(\/\).*/{
  10211. s//\1/
  10212. q
  10213. }
  10214. s/.*/./; q'`
  10215. # Avoid depending upon Character Ranges.
  10216. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10217. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10218. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10219. as_cr_digits='0123456789'
  10220. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10221. ECHO_C= ECHO_N= ECHO_T=
  10222. case `echo -n x` in #(((((
  10223. -n*)
  10224. case `echo 'xy\c'` in
  10225. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10226. xy) ECHO_C='\c';;
  10227. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10228. ECHO_T=' ';;
  10229. esac;;
  10230. *)
  10231. ECHO_N='-n';;
  10232. esac
  10233. rm -f conf$$ conf$$.exe conf$$.file
  10234. if test -d conf$$.dir; then
  10235. rm -f conf$$.dir/conf$$.file
  10236. else
  10237. rm -f conf$$.dir
  10238. mkdir conf$$.dir 2>/dev/null
  10239. fi
  10240. if (echo >conf$$.file) 2>/dev/null; then
  10241. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10242. as_ln_s='ln -s'
  10243. # ... but there are two gotchas:
  10244. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10245. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10246. # In both cases, we have to default to `cp -p'.
  10247. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10248. as_ln_s='cp -p'
  10249. elif ln conf$$.file conf$$ 2>/dev/null; then
  10250. as_ln_s=ln
  10251. else
  10252. as_ln_s='cp -p'
  10253. fi
  10254. else
  10255. as_ln_s='cp -p'
  10256. fi
  10257. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10258. rmdir conf$$.dir 2>/dev/null
  10259. # as_fn_mkdir_p
  10260. # -------------
  10261. # Create "$as_dir" as a directory, including parents if necessary.
  10262. as_fn_mkdir_p ()
  10263. {
  10264. case $as_dir in #(
  10265. -*) as_dir=./$as_dir;;
  10266. esac
  10267. test -d "$as_dir" || eval $as_mkdir_p || {
  10268. as_dirs=
  10269. while :; do
  10270. case $as_dir in #(
  10271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10272. *) as_qdir=$as_dir;;
  10273. esac
  10274. as_dirs="'$as_qdir' $as_dirs"
  10275. as_dir=`$as_dirname -- "$as_dir" ||
  10276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10277. X"$as_dir" : 'X\(//\)[^/]' \| \
  10278. X"$as_dir" : 'X\(//\)$' \| \
  10279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10280. $as_echo X"$as_dir" |
  10281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10282. s//\1/
  10283. q
  10284. }
  10285. /^X\(\/\/\)[^/].*/{
  10286. s//\1/
  10287. q
  10288. }
  10289. /^X\(\/\/\)$/{
  10290. s//\1/
  10291. q
  10292. }
  10293. /^X\(\/\).*/{
  10294. s//\1/
  10295. q
  10296. }
  10297. s/.*/./; q'`
  10298. test -d "$as_dir" && break
  10299. done
  10300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10301. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10302. } # as_fn_mkdir_p
  10303. if mkdir -p . 2>/dev/null; then
  10304. as_mkdir_p='mkdir -p "$as_dir"'
  10305. else
  10306. test -d ./-p && rmdir ./-p
  10307. as_mkdir_p=false
  10308. fi
  10309. if test -x / >/dev/null 2>&1; then
  10310. as_test_x='test -x'
  10311. else
  10312. if ls -dL / >/dev/null 2>&1; then
  10313. as_ls_L_option=L
  10314. else
  10315. as_ls_L_option=
  10316. fi
  10317. as_test_x='
  10318. eval sh -c '\''
  10319. if test -d "$1"; then
  10320. test -d "$1/.";
  10321. else
  10322. case $1 in #(
  10323. -*)set "./$1";;
  10324. esac;
  10325. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10326. ???[sx]*):;;*)false;;esac;fi
  10327. '\'' sh
  10328. '
  10329. fi
  10330. as_executable_p=$as_test_x
  10331. # Sed expression to map a string onto a valid CPP name.
  10332. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10333. # Sed expression to map a string onto a valid variable name.
  10334. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10335. exec 6>&1
  10336. ## ----------------------------------- ##
  10337. ## Main body of $CONFIG_STATUS script. ##
  10338. ## ----------------------------------- ##
  10339. _ASEOF
  10340. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10341. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10342. # Save the log message, to keep $0 and so on meaningful, and to
  10343. # report actual input values of CONFIG_FILES etc. instead of their
  10344. # values after options handling.
  10345. ac_log="
  10346. This file was extended by jansson $as_me 2.4, which was
  10347. generated by GNU Autoconf 2.68. Invocation command line was
  10348. CONFIG_FILES = $CONFIG_FILES
  10349. CONFIG_HEADERS = $CONFIG_HEADERS
  10350. CONFIG_LINKS = $CONFIG_LINKS
  10351. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10352. $ $0 $@
  10353. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10354. "
  10355. _ACEOF
  10356. case $ac_config_files in *"
  10357. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10358. esac
  10359. case $ac_config_headers in *"
  10360. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10361. esac
  10362. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10363. # Files that config.status was made for.
  10364. config_files="$ac_config_files"
  10365. config_headers="$ac_config_headers"
  10366. config_commands="$ac_config_commands"
  10367. _ACEOF
  10368. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10369. ac_cs_usage="\
  10370. \`$as_me' instantiates files and other configuration actions
  10371. from templates according to the current configuration. Unless the files
  10372. and actions are specified as TAGs, all are instantiated by default.
  10373. Usage: $0 [OPTION]... [TAG]...
  10374. -h, --help print this help, then exit
  10375. -V, --version print version number and configuration settings, then exit
  10376. --config print configuration, then exit
  10377. -q, --quiet, --silent
  10378. do not print progress messages
  10379. -d, --debug don't remove temporary files
  10380. --recheck update $as_me by reconfiguring in the same conditions
  10381. --file=FILE[:TEMPLATE]
  10382. instantiate the configuration file FILE
  10383. --header=FILE[:TEMPLATE]
  10384. instantiate the configuration header FILE
  10385. Configuration files:
  10386. $config_files
  10387. Configuration headers:
  10388. $config_headers
  10389. Configuration commands:
  10390. $config_commands
  10391. Report bugs to <petri@digip.org>."
  10392. _ACEOF
  10393. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10394. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10395. ac_cs_version="\\
  10396. jansson config.status 2.4
  10397. configured by $0, generated by GNU Autoconf 2.68,
  10398. with options \\"\$ac_cs_config\\"
  10399. Copyright (C) 2010 Free Software Foundation, Inc.
  10400. This config.status script is free software; the Free Software Foundation
  10401. gives unlimited permission to copy, distribute and modify it."
  10402. ac_pwd='$ac_pwd'
  10403. srcdir='$srcdir'
  10404. INSTALL='$INSTALL'
  10405. MKDIR_P='$MKDIR_P'
  10406. AWK='$AWK'
  10407. test -n "\$AWK" || AWK=awk
  10408. _ACEOF
  10409. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10410. # The default lists apply if the user does not specify any file.
  10411. ac_need_defaults=:
  10412. while test $# != 0
  10413. do
  10414. case $1 in
  10415. --*=?*)
  10416. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10417. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10418. ac_shift=:
  10419. ;;
  10420. --*=)
  10421. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10422. ac_optarg=
  10423. ac_shift=:
  10424. ;;
  10425. *)
  10426. ac_option=$1
  10427. ac_optarg=$2
  10428. ac_shift=shift
  10429. ;;
  10430. esac
  10431. case $ac_option in
  10432. # Handling of the options.
  10433. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10434. ac_cs_recheck=: ;;
  10435. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10436. $as_echo "$ac_cs_version"; exit ;;
  10437. --config | --confi | --conf | --con | --co | --c )
  10438. $as_echo "$ac_cs_config"; exit ;;
  10439. --debug | --debu | --deb | --de | --d | -d )
  10440. debug=: ;;
  10441. --file | --fil | --fi | --f )
  10442. $ac_shift
  10443. case $ac_optarg in
  10444. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10445. '') as_fn_error $? "missing file argument" ;;
  10446. esac
  10447. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10448. ac_need_defaults=false;;
  10449. --header | --heade | --head | --hea )
  10450. $ac_shift
  10451. case $ac_optarg in
  10452. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10453. esac
  10454. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10455. ac_need_defaults=false;;
  10456. --he | --h)
  10457. # Conflict between --help and --header
  10458. as_fn_error $? "ambiguous option: \`$1'
  10459. Try \`$0 --help' for more information.";;
  10460. --help | --hel | -h )
  10461. $as_echo "$ac_cs_usage"; exit ;;
  10462. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10463. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10464. ac_cs_silent=: ;;
  10465. # This is an error.
  10466. -*) as_fn_error $? "unrecognized option: \`$1'
  10467. Try \`$0 --help' for more information." ;;
  10468. *) as_fn_append ac_config_targets " $1"
  10469. ac_need_defaults=false ;;
  10470. esac
  10471. shift
  10472. done
  10473. ac_configure_extra_args=
  10474. if $ac_cs_silent; then
  10475. exec 6>/dev/null
  10476. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10477. fi
  10478. _ACEOF
  10479. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10480. if \$ac_cs_recheck; then
  10481. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10482. shift
  10483. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10484. CONFIG_SHELL='$SHELL'
  10485. export CONFIG_SHELL
  10486. exec "\$@"
  10487. fi
  10488. _ACEOF
  10489. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10490. exec 5>>config.log
  10491. {
  10492. echo
  10493. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10494. ## Running $as_me. ##
  10495. _ASBOX
  10496. $as_echo "$ac_log"
  10497. } >&5
  10498. _ACEOF
  10499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10500. #
  10501. # INIT-COMMANDS
  10502. #
  10503. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10504. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10505. # if CDPATH is set.
  10506. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10507. sed_quote_subst='$sed_quote_subst'
  10508. double_quote_subst='$double_quote_subst'
  10509. delay_variable_subst='$delay_variable_subst'
  10510. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10511. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10512. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10513. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10514. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10515. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10516. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10517. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10518. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10519. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10520. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10521. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10522. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10523. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10524. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10525. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10526. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10527. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10528. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10529. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10530. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10531. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10532. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10533. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10534. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10535. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10536. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10537. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10538. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10539. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10540. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10541. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10542. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10543. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10544. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10545. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10546. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10547. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10548. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10549. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10550. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10551. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10552. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10553. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10554. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10555. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10556. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10557. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10558. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10559. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10560. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10561. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10562. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10563. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10564. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10565. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10566. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10567. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10568. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10569. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10570. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10571. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10572. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10573. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10574. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10575. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10576. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10577. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10578. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10579. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10580. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10581. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10582. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10583. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10584. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10585. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10586. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10587. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10588. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10589. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10590. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10591. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10592. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10593. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10594. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10595. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10596. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10597. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10598. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10599. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10600. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10601. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10602. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10603. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10604. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10605. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10606. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10607. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10608. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10609. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10610. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10611. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10612. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10613. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10614. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10615. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10616. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10617. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10618. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10619. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10620. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10621. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10622. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10623. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10624. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10625. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10626. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10627. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10628. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10629. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10630. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10631. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10632. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10633. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10634. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10635. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10636. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10637. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10638. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10639. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10640. LTCC='$LTCC'
  10641. LTCFLAGS='$LTCFLAGS'
  10642. compiler='$compiler_DEFAULT'
  10643. # A function that is used when there is no print builtin or printf.
  10644. func_fallback_echo ()
  10645. {
  10646. eval 'cat <<_LTECHO_EOF
  10647. \$1
  10648. _LTECHO_EOF'
  10649. }
  10650. # Quote evaled strings.
  10651. for var in SHELL \
  10652. ECHO \
  10653. PATH_SEPARATOR \
  10654. SED \
  10655. GREP \
  10656. EGREP \
  10657. FGREP \
  10658. LD \
  10659. NM \
  10660. LN_S \
  10661. lt_SP2NL \
  10662. lt_NL2SP \
  10663. reload_flag \
  10664. OBJDUMP \
  10665. deplibs_check_method \
  10666. file_magic_cmd \
  10667. file_magic_glob \
  10668. want_nocaseglob \
  10669. DLLTOOL \
  10670. sharedlib_from_linklib_cmd \
  10671. AR \
  10672. AR_FLAGS \
  10673. archiver_list_spec \
  10674. STRIP \
  10675. RANLIB \
  10676. CC \
  10677. CFLAGS \
  10678. compiler \
  10679. lt_cv_sys_global_symbol_pipe \
  10680. lt_cv_sys_global_symbol_to_cdecl \
  10681. lt_cv_sys_global_symbol_to_c_name_address \
  10682. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10683. nm_file_list_spec \
  10684. lt_prog_compiler_no_builtin_flag \
  10685. lt_prog_compiler_pic \
  10686. lt_prog_compiler_wl \
  10687. lt_prog_compiler_static \
  10688. lt_cv_prog_compiler_c_o \
  10689. need_locks \
  10690. MANIFEST_TOOL \
  10691. DSYMUTIL \
  10692. NMEDIT \
  10693. LIPO \
  10694. OTOOL \
  10695. OTOOL64 \
  10696. shrext_cmds \
  10697. export_dynamic_flag_spec \
  10698. whole_archive_flag_spec \
  10699. compiler_needs_object \
  10700. with_gnu_ld \
  10701. allow_undefined_flag \
  10702. no_undefined_flag \
  10703. hardcode_libdir_flag_spec \
  10704. hardcode_libdir_separator \
  10705. exclude_expsyms \
  10706. include_expsyms \
  10707. file_list_spec \
  10708. variables_saved_for_relink \
  10709. libname_spec \
  10710. library_names_spec \
  10711. soname_spec \
  10712. install_override_mode \
  10713. finish_eval \
  10714. old_striplib \
  10715. striplib; do
  10716. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10717. *[\\\\\\\`\\"\\\$]*)
  10718. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10719. ;;
  10720. *)
  10721. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10722. ;;
  10723. esac
  10724. done
  10725. # Double-quote double-evaled strings.
  10726. for var in reload_cmds \
  10727. old_postinstall_cmds \
  10728. old_postuninstall_cmds \
  10729. old_archive_cmds \
  10730. extract_expsyms_cmds \
  10731. old_archive_from_new_cmds \
  10732. old_archive_from_expsyms_cmds \
  10733. archive_cmds \
  10734. archive_expsym_cmds \
  10735. module_cmds \
  10736. module_expsym_cmds \
  10737. export_symbols_cmds \
  10738. prelink_cmds \
  10739. postlink_cmds \
  10740. postinstall_cmds \
  10741. postuninstall_cmds \
  10742. finish_cmds \
  10743. sys_lib_search_path_spec \
  10744. sys_lib_dlsearch_path_spec; do
  10745. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10746. *[\\\\\\\`\\"\\\$]*)
  10747. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10748. ;;
  10749. *)
  10750. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10751. ;;
  10752. esac
  10753. done
  10754. ac_aux_dir='$ac_aux_dir'
  10755. xsi_shell='$xsi_shell'
  10756. lt_shell_append='$lt_shell_append'
  10757. # See if we are running on zsh, and set the options which allow our
  10758. # commands through without removal of \ escapes INIT.
  10759. if test -n "\${ZSH_VERSION+set}" ; then
  10760. setopt NO_GLOB_SUBST
  10761. fi
  10762. PACKAGE='$PACKAGE'
  10763. VERSION='$VERSION'
  10764. TIMESTAMP='$TIMESTAMP'
  10765. RM='$RM'
  10766. ofile='$ofile'
  10767. _ACEOF
  10768. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10769. # Handling of arguments.
  10770. for ac_config_target in $ac_config_targets
  10771. do
  10772. case $ac_config_target in
  10773. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10774. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10775. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10776. "jansson.pc") CONFIG_FILES="$CONFIG_FILES jansson.pc" ;;
  10777. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10778. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  10779. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10780. "src/jansson_config.h") CONFIG_FILES="$CONFIG_FILES src/jansson_config.h" ;;
  10781. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10782. "test/bin/Makefile") CONFIG_FILES="$CONFIG_FILES test/bin/Makefile" ;;
  10783. "test/suites/Makefile") CONFIG_FILES="$CONFIG_FILES test/suites/Makefile" ;;
  10784. "test/suites/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/suites/api/Makefile" ;;
  10785. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10786. esac
  10787. done
  10788. # If the user did not use the arguments to specify the items to instantiate,
  10789. # then the envvar interface is used. Set only those that are not.
  10790. # We use the long form for the default assignment because of an extremely
  10791. # bizarre bug on SunOS 4.1.3.
  10792. if $ac_need_defaults; then
  10793. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10794. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10795. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10796. fi
  10797. # Have a temporary directory for convenience. Make it in the build tree
  10798. # simply because there is no reason against having it here, and in addition,
  10799. # creating and moving files from /tmp can sometimes cause problems.
  10800. # Hook for its removal unless debugging.
  10801. # Note that there is a small window in which the directory will not be cleaned:
  10802. # after its creation but before its name has been assigned to `$tmp'.
  10803. $debug ||
  10804. {
  10805. tmp= ac_tmp=
  10806. trap 'exit_status=$?
  10807. : "${ac_tmp:=$tmp}"
  10808. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10809. ' 0
  10810. trap 'as_fn_exit 1' 1 2 13 15
  10811. }
  10812. # Create a (secure) tmp directory for tmp files.
  10813. {
  10814. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10815. test -d "$tmp"
  10816. } ||
  10817. {
  10818. tmp=./conf$$-$RANDOM
  10819. (umask 077 && mkdir "$tmp")
  10820. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10821. ac_tmp=$tmp
  10822. # Set up the scripts for CONFIG_FILES section.
  10823. # No need to generate them if there are no CONFIG_FILES.
  10824. # This happens for instance with `./config.status config.h'.
  10825. if test -n "$CONFIG_FILES"; then
  10826. ac_cr=`echo X | tr X '\015'`
  10827. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10828. # But we know of no other shell where ac_cr would be empty at this
  10829. # point, so we can use a bashism as a fallback.
  10830. if test "x$ac_cr" = x; then
  10831. eval ac_cr=\$\'\\r\'
  10832. fi
  10833. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10834. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10835. ac_cs_awk_cr='\\r'
  10836. else
  10837. ac_cs_awk_cr=$ac_cr
  10838. fi
  10839. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10840. _ACEOF
  10841. {
  10842. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10843. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10844. echo "_ACEOF"
  10845. } >conf$$subs.sh ||
  10846. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10847. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10848. ac_delim='%!_!# '
  10849. for ac_last_try in false false false false false :; do
  10850. . ./conf$$subs.sh ||
  10851. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10852. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10853. if test $ac_delim_n = $ac_delim_num; then
  10854. break
  10855. elif $ac_last_try; then
  10856. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10857. else
  10858. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10859. fi
  10860. done
  10861. rm -f conf$$subs.sh
  10862. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10863. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10864. _ACEOF
  10865. sed -n '
  10866. h
  10867. s/^/S["/; s/!.*/"]=/
  10868. p
  10869. g
  10870. s/^[^!]*!//
  10871. :repl
  10872. t repl
  10873. s/'"$ac_delim"'$//
  10874. t delim
  10875. :nl
  10876. h
  10877. s/\(.\{148\}\)..*/\1/
  10878. t more1
  10879. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10880. p
  10881. n
  10882. b repl
  10883. :more1
  10884. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10885. p
  10886. g
  10887. s/.\{148\}//
  10888. t nl
  10889. :delim
  10890. h
  10891. s/\(.\{148\}\)..*/\1/
  10892. t more2
  10893. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10894. p
  10895. b
  10896. :more2
  10897. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10898. p
  10899. g
  10900. s/.\{148\}//
  10901. t delim
  10902. ' <conf$$subs.awk | sed '
  10903. /^[^""]/{
  10904. N
  10905. s/\n//
  10906. }
  10907. ' >>$CONFIG_STATUS || ac_write_fail=1
  10908. rm -f conf$$subs.awk
  10909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10910. _ACAWK
  10911. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10912. for (key in S) S_is_set[key] = 1
  10913. FS = ""
  10914. }
  10915. {
  10916. line = $ 0
  10917. nfields = split(line, field, "@")
  10918. substed = 0
  10919. len = length(field[1])
  10920. for (i = 2; i < nfields; i++) {
  10921. key = field[i]
  10922. keylen = length(key)
  10923. if (S_is_set[key]) {
  10924. value = S[key]
  10925. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10926. len += length(value) + length(field[++i])
  10927. substed = 1
  10928. } else
  10929. len += 1 + keylen
  10930. }
  10931. print line
  10932. }
  10933. _ACAWK
  10934. _ACEOF
  10935. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10936. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10937. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10938. else
  10939. cat
  10940. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10941. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10942. _ACEOF
  10943. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10944. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10945. # trailing colons and then remove the whole line if VPATH becomes empty
  10946. # (actually we leave an empty line to preserve line numbers).
  10947. if test "x$srcdir" = x.; then
  10948. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10949. h
  10950. s///
  10951. s/^/:/
  10952. s/[ ]*$/:/
  10953. s/:\$(srcdir):/:/g
  10954. s/:\${srcdir}:/:/g
  10955. s/:@srcdir@:/:/g
  10956. s/^:*//
  10957. s/:*$//
  10958. x
  10959. s/\(=[ ]*\).*/\1/
  10960. G
  10961. s/\n//
  10962. s/^[^=]*=[ ]*$//
  10963. }'
  10964. fi
  10965. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10966. fi # test -n "$CONFIG_FILES"
  10967. # Set up the scripts for CONFIG_HEADERS section.
  10968. # No need to generate them if there are no CONFIG_HEADERS.
  10969. # This happens for instance with `./config.status Makefile'.
  10970. if test -n "$CONFIG_HEADERS"; then
  10971. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10972. BEGIN {
  10973. _ACEOF
  10974. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10975. # here-document in config.status, that substitutes the proper values into
  10976. # config.h.in to produce config.h.
  10977. # Create a delimiter string that does not exist in confdefs.h, to ease
  10978. # handling of long lines.
  10979. ac_delim='%!_!# '
  10980. for ac_last_try in false false :; do
  10981. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10982. if test -z "$ac_tt"; then
  10983. break
  10984. elif $ac_last_try; then
  10985. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10986. else
  10987. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10988. fi
  10989. done
  10990. # For the awk script, D is an array of macro values keyed by name,
  10991. # likewise P contains macro parameters if any. Preserve backslash
  10992. # newline sequences.
  10993. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10994. sed -n '
  10995. s/.\{148\}/&'"$ac_delim"'/g
  10996. t rset
  10997. :rset
  10998. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10999. t def
  11000. d
  11001. :def
  11002. s/\\$//
  11003. t bsnl
  11004. s/["\\]/\\&/g
  11005. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11006. D["\1"]=" \3"/p
  11007. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11008. d
  11009. :bsnl
  11010. s/["\\]/\\&/g
  11011. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11012. D["\1"]=" \3\\\\\\n"\\/p
  11013. t cont
  11014. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11015. t cont
  11016. d
  11017. :cont
  11018. n
  11019. s/.\{148\}/&'"$ac_delim"'/g
  11020. t clear
  11021. :clear
  11022. s/\\$//
  11023. t bsnlc
  11024. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11025. d
  11026. :bsnlc
  11027. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11028. b cont
  11029. ' <confdefs.h | sed '
  11030. s/'"$ac_delim"'/"\\\
  11031. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11033. for (key in D) D_is_set[key] = 1
  11034. FS = ""
  11035. }
  11036. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11037. line = \$ 0
  11038. split(line, arg, " ")
  11039. if (arg[1] == "#") {
  11040. defundef = arg[2]
  11041. mac1 = arg[3]
  11042. } else {
  11043. defundef = substr(arg[1], 2)
  11044. mac1 = arg[2]
  11045. }
  11046. split(mac1, mac2, "(") #)
  11047. macro = mac2[1]
  11048. prefix = substr(line, 1, index(line, defundef) - 1)
  11049. if (D_is_set[macro]) {
  11050. # Preserve the white space surrounding the "#".
  11051. print prefix "define", macro P[macro] D[macro]
  11052. next
  11053. } else {
  11054. # Replace #undef with comments. This is necessary, for example,
  11055. # in the case of _POSIX_SOURCE, which is predefined and required
  11056. # on some systems where configure will not decide to define it.
  11057. if (defundef == "undef") {
  11058. print "/*", prefix defundef, macro, "*/"
  11059. next
  11060. }
  11061. }
  11062. }
  11063. { print }
  11064. _ACAWK
  11065. _ACEOF
  11066. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11067. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11068. fi # test -n "$CONFIG_HEADERS"
  11069. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11070. shift
  11071. for ac_tag
  11072. do
  11073. case $ac_tag in
  11074. :[FHLC]) ac_mode=$ac_tag; continue;;
  11075. esac
  11076. case $ac_mode$ac_tag in
  11077. :[FHL]*:*);;
  11078. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11079. :[FH]-) ac_tag=-:-;;
  11080. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11081. esac
  11082. ac_save_IFS=$IFS
  11083. IFS=:
  11084. set x $ac_tag
  11085. IFS=$ac_save_IFS
  11086. shift
  11087. ac_file=$1
  11088. shift
  11089. case $ac_mode in
  11090. :L) ac_source=$1;;
  11091. :[FH])
  11092. ac_file_inputs=
  11093. for ac_f
  11094. do
  11095. case $ac_f in
  11096. -) ac_f="$ac_tmp/stdin";;
  11097. *) # Look for the file first in the build tree, then in the source tree
  11098. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11099. # because $ac_f cannot contain `:'.
  11100. test -f "$ac_f" ||
  11101. case $ac_f in
  11102. [\\/$]*) false;;
  11103. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11104. esac ||
  11105. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11106. esac
  11107. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11108. as_fn_append ac_file_inputs " '$ac_f'"
  11109. done
  11110. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11111. # use $as_me), people would be surprised to read:
  11112. # /* config.h. Generated by config.status. */
  11113. configure_input='Generated from '`
  11114. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11115. `' by configure.'
  11116. if test x"$ac_file" != x-; then
  11117. configure_input="$ac_file. $configure_input"
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11119. $as_echo "$as_me: creating $ac_file" >&6;}
  11120. fi
  11121. # Neutralize special characters interpreted by sed in replacement strings.
  11122. case $configure_input in #(
  11123. *\&* | *\|* | *\\* )
  11124. ac_sed_conf_input=`$as_echo "$configure_input" |
  11125. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11126. *) ac_sed_conf_input=$configure_input;;
  11127. esac
  11128. case $ac_tag in
  11129. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11130. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11131. esac
  11132. ;;
  11133. esac
  11134. ac_dir=`$as_dirname -- "$ac_file" ||
  11135. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11136. X"$ac_file" : 'X\(//\)[^/]' \| \
  11137. X"$ac_file" : 'X\(//\)$' \| \
  11138. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11139. $as_echo X"$ac_file" |
  11140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11141. s//\1/
  11142. q
  11143. }
  11144. /^X\(\/\/\)[^/].*/{
  11145. s//\1/
  11146. q
  11147. }
  11148. /^X\(\/\/\)$/{
  11149. s//\1/
  11150. q
  11151. }
  11152. /^X\(\/\).*/{
  11153. s//\1/
  11154. q
  11155. }
  11156. s/.*/./; q'`
  11157. as_dir="$ac_dir"; as_fn_mkdir_p
  11158. ac_builddir=.
  11159. case "$ac_dir" in
  11160. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11161. *)
  11162. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11163. # A ".." for each directory in $ac_dir_suffix.
  11164. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11165. case $ac_top_builddir_sub in
  11166. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11167. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11168. esac ;;
  11169. esac
  11170. ac_abs_top_builddir=$ac_pwd
  11171. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11172. # for backward compatibility:
  11173. ac_top_builddir=$ac_top_build_prefix
  11174. case $srcdir in
  11175. .) # We are building in place.
  11176. ac_srcdir=.
  11177. ac_top_srcdir=$ac_top_builddir_sub
  11178. ac_abs_top_srcdir=$ac_pwd ;;
  11179. [\\/]* | ?:[\\/]* ) # Absolute name.
  11180. ac_srcdir=$srcdir$ac_dir_suffix;
  11181. ac_top_srcdir=$srcdir
  11182. ac_abs_top_srcdir=$srcdir ;;
  11183. *) # Relative name.
  11184. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11185. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11186. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11187. esac
  11188. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11189. case $ac_mode in
  11190. :F)
  11191. #
  11192. # CONFIG_FILE
  11193. #
  11194. case $INSTALL in
  11195. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11196. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11197. esac
  11198. ac_MKDIR_P=$MKDIR_P
  11199. case $MKDIR_P in
  11200. [\\/$]* | ?:[\\/]* ) ;;
  11201. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11202. esac
  11203. _ACEOF
  11204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11205. # If the template does not know about datarootdir, expand it.
  11206. # FIXME: This hack should be removed a few years after 2.60.
  11207. ac_datarootdir_hack=; ac_datarootdir_seen=
  11208. ac_sed_dataroot='
  11209. /datarootdir/ {
  11210. p
  11211. q
  11212. }
  11213. /@datadir@/p
  11214. /@docdir@/p
  11215. /@infodir@/p
  11216. /@localedir@/p
  11217. /@mandir@/p'
  11218. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11219. *datarootdir*) ac_datarootdir_seen=yes;;
  11220. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11222. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11223. _ACEOF
  11224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11225. ac_datarootdir_hack='
  11226. s&@datadir@&$datadir&g
  11227. s&@docdir@&$docdir&g
  11228. s&@infodir@&$infodir&g
  11229. s&@localedir@&$localedir&g
  11230. s&@mandir@&$mandir&g
  11231. s&\\\${datarootdir}&$datarootdir&g' ;;
  11232. esac
  11233. _ACEOF
  11234. # Neutralize VPATH when `$srcdir' = `.'.
  11235. # Shell code in configure.ac might set extrasub.
  11236. # FIXME: do we really want to maintain this feature?
  11237. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11238. ac_sed_extra="$ac_vpsub
  11239. $extrasub
  11240. _ACEOF
  11241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11242. :t
  11243. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11244. s|@configure_input@|$ac_sed_conf_input|;t t
  11245. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11246. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11247. s&@srcdir@&$ac_srcdir&;t t
  11248. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11249. s&@top_srcdir@&$ac_top_srcdir&;t t
  11250. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11251. s&@builddir@&$ac_builddir&;t t
  11252. s&@abs_builddir@&$ac_abs_builddir&;t t
  11253. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11254. s&@INSTALL@&$ac_INSTALL&;t t
  11255. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11256. $ac_datarootdir_hack
  11257. "
  11258. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11259. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11260. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11261. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11262. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11263. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11265. which seems to be undefined. Please make sure it is defined" >&5
  11266. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11267. which seems to be undefined. Please make sure it is defined" >&2;}
  11268. rm -f "$ac_tmp/stdin"
  11269. case $ac_file in
  11270. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11271. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11272. esac \
  11273. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11274. ;;
  11275. :H)
  11276. #
  11277. # CONFIG_HEADER
  11278. #
  11279. if test x"$ac_file" != x-; then
  11280. {
  11281. $as_echo "/* $configure_input */" \
  11282. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11283. } >"$ac_tmp/config.h" \
  11284. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11285. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11286. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11287. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11288. else
  11289. rm -f "$ac_file"
  11290. mv "$ac_tmp/config.h" "$ac_file" \
  11291. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11292. fi
  11293. else
  11294. $as_echo "/* $configure_input */" \
  11295. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11296. || as_fn_error $? "could not create -" "$LINENO" 5
  11297. fi
  11298. # Compute "$ac_file"'s index in $config_headers.
  11299. _am_arg="$ac_file"
  11300. _am_stamp_count=1
  11301. for _am_header in $config_headers :; do
  11302. case $_am_header in
  11303. $_am_arg | $_am_arg:* )
  11304. break ;;
  11305. * )
  11306. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11307. esac
  11308. done
  11309. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11310. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11311. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11312. X"$_am_arg" : 'X\(//\)$' \| \
  11313. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11314. $as_echo X"$_am_arg" |
  11315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11316. s//\1/
  11317. q
  11318. }
  11319. /^X\(\/\/\)[^/].*/{
  11320. s//\1/
  11321. q
  11322. }
  11323. /^X\(\/\/\)$/{
  11324. s//\1/
  11325. q
  11326. }
  11327. /^X\(\/\).*/{
  11328. s//\1/
  11329. q
  11330. }
  11331. s/.*/./; q'`/stamp-h$_am_stamp_count
  11332. ;;
  11333. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11334. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11335. ;;
  11336. esac
  11337. case $ac_file$ac_mode in
  11338. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11339. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11340. # are listed without --file. Let's play safe and only enable the eval
  11341. # if we detect the quoting.
  11342. case $CONFIG_FILES in
  11343. *\'*) eval set x "$CONFIG_FILES" ;;
  11344. *) set x $CONFIG_FILES ;;
  11345. esac
  11346. shift
  11347. for mf
  11348. do
  11349. # Strip MF so we end up with the name of the file.
  11350. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11351. # Check whether this is an Automake generated Makefile or not.
  11352. # We used to match only the files named `Makefile.in', but
  11353. # some people rename them; so instead we look at the file content.
  11354. # Grep'ing the first line is not enough: some people post-process
  11355. # each Makefile.in and add a new line on top of each file to say so.
  11356. # Grep'ing the whole file is not good either: AIX grep has a line
  11357. # limit of 2048, but all sed's we know have understand at least 4000.
  11358. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11359. dirpart=`$as_dirname -- "$mf" ||
  11360. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11361. X"$mf" : 'X\(//\)[^/]' \| \
  11362. X"$mf" : 'X\(//\)$' \| \
  11363. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11364. $as_echo X"$mf" |
  11365. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11366. s//\1/
  11367. q
  11368. }
  11369. /^X\(\/\/\)[^/].*/{
  11370. s//\1/
  11371. q
  11372. }
  11373. /^X\(\/\/\)$/{
  11374. s//\1/
  11375. q
  11376. }
  11377. /^X\(\/\).*/{
  11378. s//\1/
  11379. q
  11380. }
  11381. s/.*/./; q'`
  11382. else
  11383. continue
  11384. fi
  11385. # Extract the definition of DEPDIR, am__include, and am__quote
  11386. # from the Makefile without running `make'.
  11387. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11388. test -z "$DEPDIR" && continue
  11389. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11390. test -z "am__include" && continue
  11391. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11392. # When using ansi2knr, U may be empty or an underscore; expand it
  11393. U=`sed -n 's/^U = //p' < "$mf"`
  11394. # Find all dependency output files, they are included files with
  11395. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11396. # simplest approach to changing $(DEPDIR) to its actual value in the
  11397. # expansion.
  11398. for file in `sed -n "
  11399. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11400. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11401. # Make sure the directory exists.
  11402. test -f "$dirpart/$file" && continue
  11403. fdir=`$as_dirname -- "$file" ||
  11404. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11405. X"$file" : 'X\(//\)[^/]' \| \
  11406. X"$file" : 'X\(//\)$' \| \
  11407. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11408. $as_echo X"$file" |
  11409. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11410. s//\1/
  11411. q
  11412. }
  11413. /^X\(\/\/\)[^/].*/{
  11414. s//\1/
  11415. q
  11416. }
  11417. /^X\(\/\/\)$/{
  11418. s//\1/
  11419. q
  11420. }
  11421. /^X\(\/\).*/{
  11422. s//\1/
  11423. q
  11424. }
  11425. s/.*/./; q'`
  11426. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11427. # echo "creating $dirpart/$file"
  11428. echo '# dummy' > "$dirpart/$file"
  11429. done
  11430. done
  11431. }
  11432. ;;
  11433. "libtool":C)
  11434. # See if we are running on zsh, and set the options which allow our
  11435. # commands through without removal of \ escapes.
  11436. if test -n "${ZSH_VERSION+set}" ; then
  11437. setopt NO_GLOB_SUBST
  11438. fi
  11439. cfgfile="${ofile}T"
  11440. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11441. $RM "$cfgfile"
  11442. cat <<_LT_EOF >> "$cfgfile"
  11443. #! $SHELL
  11444. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11445. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11446. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11447. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11448. #
  11449. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11450. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11451. # Foundation, Inc.
  11452. # Written by Gordon Matzigkeit, 1996
  11453. #
  11454. # This file is part of GNU Libtool.
  11455. #
  11456. # GNU Libtool is free software; you can redistribute it and/or
  11457. # modify it under the terms of the GNU General Public License as
  11458. # published by the Free Software Foundation; either version 2 of
  11459. # the License, or (at your option) any later version.
  11460. #
  11461. # As a special exception to the GNU General Public License,
  11462. # if you distribute this file as part of a program or library that
  11463. # is built using GNU Libtool, you may include this file under the
  11464. # same distribution terms that you use for the rest of that program.
  11465. #
  11466. # GNU Libtool is distributed in the hope that it will be useful,
  11467. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11468. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11469. # GNU General Public License for more details.
  11470. #
  11471. # You should have received a copy of the GNU General Public License
  11472. # along with GNU Libtool; see the file COPYING. If not, a copy
  11473. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11474. # obtained by writing to the Free Software Foundation, Inc.,
  11475. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11476. # The names of the tagged configurations supported by this script.
  11477. available_tags=""
  11478. # ### BEGIN LIBTOOL CONFIG
  11479. # Which release of libtool.m4 was used?
  11480. macro_version=$macro_version
  11481. macro_revision=$macro_revision
  11482. # Whether or not to build shared libraries.
  11483. build_libtool_libs=$enable_shared
  11484. # Whether or not to build static libraries.
  11485. build_old_libs=$enable_static
  11486. # What type of objects to build.
  11487. pic_mode=$pic_mode
  11488. # Whether or not to optimize for fast installation.
  11489. fast_install=$enable_fast_install
  11490. # Shell to use when invoking shell scripts.
  11491. SHELL=$lt_SHELL
  11492. # An echo program that protects backslashes.
  11493. ECHO=$lt_ECHO
  11494. # The PATH separator for the build system.
  11495. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11496. # The host system.
  11497. host_alias=$host_alias
  11498. host=$host
  11499. host_os=$host_os
  11500. # The build system.
  11501. build_alias=$build_alias
  11502. build=$build
  11503. build_os=$build_os
  11504. # A sed program that does not truncate output.
  11505. SED=$lt_SED
  11506. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11507. Xsed="\$SED -e 1s/^X//"
  11508. # A grep program that handles long lines.
  11509. GREP=$lt_GREP
  11510. # An ERE matcher.
  11511. EGREP=$lt_EGREP
  11512. # A literal string matcher.
  11513. FGREP=$lt_FGREP
  11514. # A BSD- or MS-compatible name lister.
  11515. NM=$lt_NM
  11516. # Whether we need soft or hard links.
  11517. LN_S=$lt_LN_S
  11518. # What is the maximum length of a command?
  11519. max_cmd_len=$max_cmd_len
  11520. # Object file suffix (normally "o").
  11521. objext=$ac_objext
  11522. # Executable file suffix (normally "").
  11523. exeext=$exeext
  11524. # whether the shell understands "unset".
  11525. lt_unset=$lt_unset
  11526. # turn spaces into newlines.
  11527. SP2NL=$lt_lt_SP2NL
  11528. # turn newlines into spaces.
  11529. NL2SP=$lt_lt_NL2SP
  11530. # convert \$build file names to \$host format.
  11531. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11532. # convert \$build files to toolchain format.
  11533. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11534. # An object symbol dumper.
  11535. OBJDUMP=$lt_OBJDUMP
  11536. # Method to check whether dependent libraries are shared objects.
  11537. deplibs_check_method=$lt_deplibs_check_method
  11538. # Command to use when deplibs_check_method = "file_magic".
  11539. file_magic_cmd=$lt_file_magic_cmd
  11540. # How to find potential files when deplibs_check_method = "file_magic".
  11541. file_magic_glob=$lt_file_magic_glob
  11542. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11543. want_nocaseglob=$lt_want_nocaseglob
  11544. # DLL creation program.
  11545. DLLTOOL=$lt_DLLTOOL
  11546. # Command to associate shared and link libraries.
  11547. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11548. # The archiver.
  11549. AR=$lt_AR
  11550. # Flags to create an archive.
  11551. AR_FLAGS=$lt_AR_FLAGS
  11552. # How to feed a file listing to the archiver.
  11553. archiver_list_spec=$lt_archiver_list_spec
  11554. # A symbol stripping program.
  11555. STRIP=$lt_STRIP
  11556. # Commands used to install an old-style archive.
  11557. RANLIB=$lt_RANLIB
  11558. old_postinstall_cmds=$lt_old_postinstall_cmds
  11559. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11560. # Whether to use a lock for old archive extraction.
  11561. lock_old_archive_extraction=$lock_old_archive_extraction
  11562. # A C compiler.
  11563. LTCC=$lt_CC
  11564. # LTCC compiler flags.
  11565. LTCFLAGS=$lt_CFLAGS
  11566. # Take the output of nm and produce a listing of raw symbols and C names.
  11567. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11568. # Transform the output of nm in a proper C declaration.
  11569. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11570. # Transform the output of nm in a C name address pair.
  11571. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11572. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11573. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11574. # Specify filename containing input files for \$NM.
  11575. nm_file_list_spec=$lt_nm_file_list_spec
  11576. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11577. lt_sysroot=$lt_sysroot
  11578. # The name of the directory that contains temporary libtool files.
  11579. objdir=$objdir
  11580. # Used to examine libraries when file_magic_cmd begins with "file".
  11581. MAGIC_CMD=$MAGIC_CMD
  11582. # Must we lock files when doing compilation?
  11583. need_locks=$lt_need_locks
  11584. # Manifest tool.
  11585. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11586. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11587. DSYMUTIL=$lt_DSYMUTIL
  11588. # Tool to change global to local symbols on Mac OS X.
  11589. NMEDIT=$lt_NMEDIT
  11590. # Tool to manipulate fat objects and archives on Mac OS X.
  11591. LIPO=$lt_LIPO
  11592. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11593. OTOOL=$lt_OTOOL
  11594. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11595. OTOOL64=$lt_OTOOL64
  11596. # Old archive suffix (normally "a").
  11597. libext=$libext
  11598. # Shared library suffix (normally ".so").
  11599. shrext_cmds=$lt_shrext_cmds
  11600. # The commands to extract the exported symbol list from a shared archive.
  11601. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11602. # Variables whose values should be saved in libtool wrapper scripts and
  11603. # restored at link time.
  11604. variables_saved_for_relink=$lt_variables_saved_for_relink
  11605. # Do we need the "lib" prefix for modules?
  11606. need_lib_prefix=$need_lib_prefix
  11607. # Do we need a version for libraries?
  11608. need_version=$need_version
  11609. # Library versioning type.
  11610. version_type=$version_type
  11611. # Shared library runtime path variable.
  11612. runpath_var=$runpath_var
  11613. # Shared library path variable.
  11614. shlibpath_var=$shlibpath_var
  11615. # Is shlibpath searched before the hard-coded library search path?
  11616. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11617. # Format of library name prefix.
  11618. libname_spec=$lt_libname_spec
  11619. # List of archive names. First name is the real one, the rest are links.
  11620. # The last name is the one that the linker finds with -lNAME
  11621. library_names_spec=$lt_library_names_spec
  11622. # The coded name of the library, if different from the real name.
  11623. soname_spec=$lt_soname_spec
  11624. # Permission mode override for installation of shared libraries.
  11625. install_override_mode=$lt_install_override_mode
  11626. # Command to use after installation of a shared archive.
  11627. postinstall_cmds=$lt_postinstall_cmds
  11628. # Command to use after uninstallation of a shared archive.
  11629. postuninstall_cmds=$lt_postuninstall_cmds
  11630. # Commands used to finish a libtool library installation in a directory.
  11631. finish_cmds=$lt_finish_cmds
  11632. # As "finish_cmds", except a single script fragment to be evaled but
  11633. # not shown.
  11634. finish_eval=$lt_finish_eval
  11635. # Whether we should hardcode library paths into libraries.
  11636. hardcode_into_libs=$hardcode_into_libs
  11637. # Compile-time system search path for libraries.
  11638. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11639. # Run-time system search path for libraries.
  11640. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11641. # Whether dlopen is supported.
  11642. dlopen_support=$enable_dlopen
  11643. # Whether dlopen of programs is supported.
  11644. dlopen_self=$enable_dlopen_self
  11645. # Whether dlopen of statically linked programs is supported.
  11646. dlopen_self_static=$enable_dlopen_self_static
  11647. # Commands to strip libraries.
  11648. old_striplib=$lt_old_striplib
  11649. striplib=$lt_striplib
  11650. # The linker used to build libraries.
  11651. LD=$lt_LD
  11652. # How to create reloadable object files.
  11653. reload_flag=$lt_reload_flag
  11654. reload_cmds=$lt_reload_cmds
  11655. # Commands used to build an old-style archive.
  11656. old_archive_cmds=$lt_old_archive_cmds
  11657. # A language specific compiler.
  11658. CC=$lt_compiler
  11659. # Is the compiler the GNU compiler?
  11660. with_gcc=$GCC
  11661. # Compiler flag to turn off builtin functions.
  11662. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11663. # Additional compiler flags for building library objects.
  11664. pic_flag=$lt_lt_prog_compiler_pic
  11665. # How to pass a linker flag through the compiler.
  11666. wl=$lt_lt_prog_compiler_wl
  11667. # Compiler flag to prevent dynamic linking.
  11668. link_static_flag=$lt_lt_prog_compiler_static
  11669. # Does compiler simultaneously support -c and -o options?
  11670. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11671. # Whether or not to add -lc for building shared libraries.
  11672. build_libtool_need_lc=$archive_cmds_need_lc
  11673. # Whether or not to disallow shared libs when runtime libs are static.
  11674. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11675. # Compiler flag to allow reflexive dlopens.
  11676. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11677. # Compiler flag to generate shared objects directly from archives.
  11678. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11679. # Whether the compiler copes with passing no objects directly.
  11680. compiler_needs_object=$lt_compiler_needs_object
  11681. # Create an old-style archive from a shared archive.
  11682. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11683. # Create a temporary old-style archive to link instead of a shared archive.
  11684. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11685. # Commands used to build a shared archive.
  11686. archive_cmds=$lt_archive_cmds
  11687. archive_expsym_cmds=$lt_archive_expsym_cmds
  11688. # Commands used to build a loadable module if different from building
  11689. # a shared archive.
  11690. module_cmds=$lt_module_cmds
  11691. module_expsym_cmds=$lt_module_expsym_cmds
  11692. # Whether we are building with GNU ld or not.
  11693. with_gnu_ld=$lt_with_gnu_ld
  11694. # Flag that allows shared libraries with undefined symbols to be built.
  11695. allow_undefined_flag=$lt_allow_undefined_flag
  11696. # Flag that enforces no undefined symbols.
  11697. no_undefined_flag=$lt_no_undefined_flag
  11698. # Flag to hardcode \$libdir into a binary during linking.
  11699. # This must work even if \$libdir does not exist
  11700. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11701. # Whether we need a single "-rpath" flag with a separated argument.
  11702. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11703. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11704. # DIR into the resulting binary.
  11705. hardcode_direct=$hardcode_direct
  11706. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11707. # DIR into the resulting binary and the resulting library dependency is
  11708. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11709. # library is relocated.
  11710. hardcode_direct_absolute=$hardcode_direct_absolute
  11711. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11712. # into the resulting binary.
  11713. hardcode_minus_L=$hardcode_minus_L
  11714. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11715. # into the resulting binary.
  11716. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11717. # Set to "yes" if building a shared library automatically hardcodes DIR
  11718. # into the library and all subsequent libraries and executables linked
  11719. # against it.
  11720. hardcode_automatic=$hardcode_automatic
  11721. # Set to yes if linker adds runtime paths of dependent libraries
  11722. # to runtime path list.
  11723. inherit_rpath=$inherit_rpath
  11724. # Whether libtool must link a program against all its dependency libraries.
  11725. link_all_deplibs=$link_all_deplibs
  11726. # Set to "yes" if exported symbols are required.
  11727. always_export_symbols=$always_export_symbols
  11728. # The commands to list exported symbols.
  11729. export_symbols_cmds=$lt_export_symbols_cmds
  11730. # Symbols that should not be listed in the preloaded symbols.
  11731. exclude_expsyms=$lt_exclude_expsyms
  11732. # Symbols that must always be exported.
  11733. include_expsyms=$lt_include_expsyms
  11734. # Commands necessary for linking programs (against libraries) with templates.
  11735. prelink_cmds=$lt_prelink_cmds
  11736. # Commands necessary for finishing linking programs.
  11737. postlink_cmds=$lt_postlink_cmds
  11738. # Specify filename containing input files.
  11739. file_list_spec=$lt_file_list_spec
  11740. # How to hardcode a shared library path into an executable.
  11741. hardcode_action=$hardcode_action
  11742. # ### END LIBTOOL CONFIG
  11743. _LT_EOF
  11744. case $host_os in
  11745. aix3*)
  11746. cat <<\_LT_EOF >> "$cfgfile"
  11747. # AIX sometimes has problems with the GCC collect2 program. For some
  11748. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11749. # vanish in a puff of smoke.
  11750. if test "X${COLLECT_NAMES+set}" != Xset; then
  11751. COLLECT_NAMES=
  11752. export COLLECT_NAMES
  11753. fi
  11754. _LT_EOF
  11755. ;;
  11756. esac
  11757. ltmain="$ac_aux_dir/ltmain.sh"
  11758. # We use sed instead of cat because bash on DJGPP gets confused if
  11759. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11760. # text mode, it properly converts lines to CR/LF. This bash problem
  11761. # is reportedly fixed, but why not run on old versions too?
  11762. sed '$q' "$ltmain" >> "$cfgfile" \
  11763. || (rm -f "$cfgfile"; exit 1)
  11764. if test x"$xsi_shell" = xyes; then
  11765. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11766. func_dirname ()\
  11767. {\
  11768. \ case ${1} in\
  11769. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11770. \ * ) func_dirname_result="${3}" ;;\
  11771. \ esac\
  11772. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11773. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11774. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11775. test 0 -eq $? || _lt_function_replace_fail=:
  11776. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11777. func_basename ()\
  11778. {\
  11779. \ func_basename_result="${1##*/}"\
  11780. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11781. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11782. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11783. test 0 -eq $? || _lt_function_replace_fail=:
  11784. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11785. func_dirname_and_basename ()\
  11786. {\
  11787. \ case ${1} in\
  11788. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11789. \ * ) func_dirname_result="${3}" ;;\
  11790. \ esac\
  11791. \ func_basename_result="${1##*/}"\
  11792. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11793. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11794. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11795. test 0 -eq $? || _lt_function_replace_fail=:
  11796. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11797. func_stripname ()\
  11798. {\
  11799. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11800. \ # positional parameters, so assign one to ordinary parameter first.\
  11801. \ func_stripname_result=${3}\
  11802. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11803. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11804. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11805. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11806. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11807. test 0 -eq $? || _lt_function_replace_fail=:
  11808. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11809. func_split_long_opt ()\
  11810. {\
  11811. \ func_split_long_opt_name=${1%%=*}\
  11812. \ func_split_long_opt_arg=${1#*=}\
  11813. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11814. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11815. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11816. test 0 -eq $? || _lt_function_replace_fail=:
  11817. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11818. func_split_short_opt ()\
  11819. {\
  11820. \ func_split_short_opt_arg=${1#??}\
  11821. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11822. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11823. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11824. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11825. test 0 -eq $? || _lt_function_replace_fail=:
  11826. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11827. func_lo2o ()\
  11828. {\
  11829. \ case ${1} in\
  11830. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11831. \ *) func_lo2o_result=${1} ;;\
  11832. \ esac\
  11833. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11834. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11835. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11836. test 0 -eq $? || _lt_function_replace_fail=:
  11837. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11838. func_xform ()\
  11839. {\
  11840. func_xform_result=${1%.*}.lo\
  11841. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11842. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11843. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11844. test 0 -eq $? || _lt_function_replace_fail=:
  11845. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11846. func_arith ()\
  11847. {\
  11848. func_arith_result=$(( $* ))\
  11849. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11850. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11851. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11852. test 0 -eq $? || _lt_function_replace_fail=:
  11853. sed -e '/^func_len ()$/,/^} # func_len /c\
  11854. func_len ()\
  11855. {\
  11856. func_len_result=${#1}\
  11857. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11858. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11859. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11860. test 0 -eq $? || _lt_function_replace_fail=:
  11861. fi
  11862. if test x"$lt_shell_append" = xyes; then
  11863. sed -e '/^func_append ()$/,/^} # func_append /c\
  11864. func_append ()\
  11865. {\
  11866. eval "${1}+=\\${2}"\
  11867. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11868. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11869. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11870. test 0 -eq $? || _lt_function_replace_fail=:
  11871. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11872. func_append_quoted ()\
  11873. {\
  11874. \ func_quote_for_eval "${2}"\
  11875. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11876. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11877. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11878. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11879. test 0 -eq $? || _lt_function_replace_fail=:
  11880. # Save a `func_append' function call where possible by direct use of '+='
  11881. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11882. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11883. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11884. test 0 -eq $? || _lt_function_replace_fail=:
  11885. else
  11886. # Save a `func_append' function call even when '+=' is not available
  11887. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11888. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11889. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11890. test 0 -eq $? || _lt_function_replace_fail=:
  11891. fi
  11892. if test x"$_lt_function_replace_fail" = x":"; then
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11894. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11895. fi
  11896. mv -f "$cfgfile" "$ofile" ||
  11897. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11898. chmod +x "$ofile"
  11899. ;;
  11900. esac
  11901. done # for ac_tag
  11902. as_fn_exit 0
  11903. _ACEOF
  11904. ac_clean_files=$ac_clean_files_save
  11905. test $ac_write_fail = 0 ||
  11906. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11907. # configure is writing to config.log, and then calls config.status.
  11908. # config.status does its own redirection, appending to config.log.
  11909. # Unfortunately, on DOS this fails, as config.log is still kept open
  11910. # by configure, so config.status won't be able to write to it; its
  11911. # output is simply discarded. So we exec the FD to /dev/null,
  11912. # effectively closing config.log, so it can be properly (re)opened and
  11913. # appended to by config.status. When coming back to configure, we
  11914. # need to make the FD available again.
  11915. if test "$no_create" != yes; then
  11916. ac_cs_success=:
  11917. ac_config_status_args=
  11918. test "$silent" = yes &&
  11919. ac_config_status_args="$ac_config_status_args --quiet"
  11920. exec 5>/dev/null
  11921. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11922. exec 5>>config.log
  11923. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11924. # would make configure fail if this is the last instruction.
  11925. $ac_cs_success || as_fn_exit 1
  11926. fi
  11927. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11929. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11930. fi
粤ICP备19079148号