configure 428 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for libogg 1.3.1.
  4. #
  5. # Report bugs to <[email protected]>.
  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 [email protected] and [email protected]
  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='libogg'
  523. PACKAGE_TARNAME='libogg'
  524. PACKAGE_VERSION='1.3.1'
  525. PACKAGE_STRING='libogg 1.3.1'
  526. PACKAGE_BUGREPORT='[email protected]'
  527. PACKAGE_URL=''
  528. ac_unique_file="src/framing.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. PROFILE
  568. DEBUG
  569. OPT
  570. SIZE64
  571. USIZE32
  572. SIZE32
  573. USIZE16
  574. SIZE16
  575. INCLUDE_SYS_TYPES_H
  576. INCLUDE_STDINT_H
  577. INCLUDE_INTTYPES_H
  578. LIBTOOL_DEPS
  579. LIBOBJS
  580. CPP
  581. OTOOL64
  582. OTOOL
  583. LIPO
  584. NMEDIT
  585. DSYMUTIL
  586. MANIFEST_TOOL
  587. RANLIB
  588. ac_ct_AR
  589. AR
  590. DLLTOOL
  591. OBJDUMP
  592. LN_S
  593. NM
  594. ac_ct_DUMPBIN
  595. DUMPBIN
  596. LD
  597. FGREP
  598. EGREP
  599. GREP
  600. SED
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. LIBTOOL
  610. am__fastdepCC_FALSE
  611. am__fastdepCC_TRUE
  612. CCDEPMODE
  613. am__nodep
  614. AMDEPBACKSLASH
  615. AMDEP_FALSE
  616. AMDEP_TRUE
  617. am__quote
  618. am__include
  619. DEPDIR
  620. OBJEXT
  621. EXEEXT
  622. ac_ct_CC
  623. CPPFLAGS
  624. LDFLAGS
  625. CFLAGS
  626. CC
  627. LIB_AGE
  628. LIB_REVISION
  629. LIB_CURRENT
  630. MAINT
  631. MAINTAINER_MODE_FALSE
  632. MAINTAINER_MODE_TRUE
  633. am__untar
  634. am__tar
  635. AMTAR
  636. am__leading_dot
  637. SET_MAKE
  638. AWK
  639. mkdir_p
  640. MKDIR_P
  641. INSTALL_STRIP_PROGRAM
  642. STRIP
  643. install_sh
  644. MAKEINFO
  645. AUTOHEADER
  646. AUTOMAKE
  647. AUTOCONF
  648. ACLOCAL
  649. VERSION
  650. PACKAGE
  651. CYGPATH_W
  652. am__isrc
  653. INSTALL_DATA
  654. INSTALL_SCRIPT
  655. INSTALL_PROGRAM
  656. target_alias
  657. host_alias
  658. build_alias
  659. LIBS
  660. ECHO_T
  661. ECHO_N
  662. ECHO_C
  663. DEFS
  664. mandir
  665. localedir
  666. libdir
  667. psdir
  668. pdfdir
  669. dvidir
  670. htmldir
  671. infodir
  672. docdir
  673. oldincludedir
  674. includedir
  675. localstatedir
  676. sharedstatedir
  677. sysconfdir
  678. datadir
  679. datarootdir
  680. libexecdir
  681. sbindir
  682. bindir
  683. program_transform_name
  684. prefix
  685. exec_prefix
  686. PACKAGE_URL
  687. PACKAGE_BUGREPORT
  688. PACKAGE_STRING
  689. PACKAGE_VERSION
  690. PACKAGE_TARNAME
  691. PACKAGE_NAME
  692. PATH_SEPARATOR
  693. SHELL'
  694. ac_subst_files=''
  695. ac_user_opts='
  696. enable_option_checking
  697. enable_maintainer_mode
  698. enable_dependency_tracking
  699. enable_shared
  700. enable_static
  701. with_pic
  702. enable_fast_install
  703. with_gnu_ld
  704. with_sysroot
  705. enable_libtool_lock
  706. '
  707. ac_precious_vars='build_alias
  708. host_alias
  709. target_alias
  710. CC
  711. CFLAGS
  712. LDFLAGS
  713. LIBS
  714. CPPFLAGS
  715. CPP'
  716. # Initialize some variables set by options.
  717. ac_init_help=
  718. ac_init_version=false
  719. ac_unrecognized_opts=
  720. ac_unrecognized_sep=
  721. # The variables have the same names as the options, with
  722. # dashes changed to underlines.
  723. cache_file=/dev/null
  724. exec_prefix=NONE
  725. no_create=
  726. no_recursion=
  727. prefix=NONE
  728. program_prefix=NONE
  729. program_suffix=NONE
  730. program_transform_name=s,x,x,
  731. silent=
  732. site=
  733. srcdir=
  734. verbose=
  735. x_includes=NONE
  736. x_libraries=NONE
  737. # Installation directory options.
  738. # These are left unexpanded so users can "make install exec_prefix=/foo"
  739. # and all the variables that are supposed to be based on exec_prefix
  740. # by default will actually change.
  741. # Use braces instead of parens because sh, perl, etc. also accept them.
  742. # (The list follows the same order as the GNU Coding Standards.)
  743. bindir='${exec_prefix}/bin'
  744. sbindir='${exec_prefix}/sbin'
  745. libexecdir='${exec_prefix}/libexec'
  746. datarootdir='${prefix}/share'
  747. datadir='${datarootdir}'
  748. sysconfdir='${prefix}/etc'
  749. sharedstatedir='${prefix}/com'
  750. localstatedir='${prefix}/var'
  751. includedir='${prefix}/include'
  752. oldincludedir='/usr/include'
  753. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  754. infodir='${datarootdir}/info'
  755. htmldir='${docdir}'
  756. dvidir='${docdir}'
  757. pdfdir='${docdir}'
  758. psdir='${docdir}'
  759. libdir='${exec_prefix}/lib'
  760. localedir='${datarootdir}/locale'
  761. mandir='${datarootdir}/man'
  762. ac_prev=
  763. ac_dashdash=
  764. for ac_option
  765. do
  766. # If the previous option needs an argument, assign it.
  767. if test -n "$ac_prev"; then
  768. eval $ac_prev=\$ac_option
  769. ac_prev=
  770. continue
  771. fi
  772. case $ac_option in
  773. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  774. *=) ac_optarg= ;;
  775. *) ac_optarg=yes ;;
  776. esac
  777. # Accept the important Cygnus configure options, so we can diagnose typos.
  778. case $ac_dashdash$ac_option in
  779. --)
  780. ac_dashdash=yes ;;
  781. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  782. ac_prev=bindir ;;
  783. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  784. bindir=$ac_optarg ;;
  785. -build | --build | --buil | --bui | --bu)
  786. ac_prev=build_alias ;;
  787. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  788. build_alias=$ac_optarg ;;
  789. -cache-file | --cache-file | --cache-fil | --cache-fi \
  790. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  791. ac_prev=cache_file ;;
  792. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  793. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  794. cache_file=$ac_optarg ;;
  795. --config-cache | -C)
  796. cache_file=config.cache ;;
  797. -datadir | --datadir | --datadi | --datad)
  798. ac_prev=datadir ;;
  799. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  800. datadir=$ac_optarg ;;
  801. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  802. | --dataroo | --dataro | --datar)
  803. ac_prev=datarootdir ;;
  804. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  805. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  806. datarootdir=$ac_optarg ;;
  807. -disable-* | --disable-*)
  808. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  809. # Reject names that are not valid shell variable names.
  810. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  811. as_fn_error $? "invalid feature name: $ac_useropt"
  812. ac_useropt_orig=$ac_useropt
  813. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  814. case $ac_user_opts in
  815. *"
  816. "enable_$ac_useropt"
  817. "*) ;;
  818. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  819. ac_unrecognized_sep=', ';;
  820. esac
  821. eval enable_$ac_useropt=no ;;
  822. -docdir | --docdir | --docdi | --doc | --do)
  823. ac_prev=docdir ;;
  824. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  825. docdir=$ac_optarg ;;
  826. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  827. ac_prev=dvidir ;;
  828. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  829. dvidir=$ac_optarg ;;
  830. -enable-* | --enable-*)
  831. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  832. # Reject names that are not valid shell variable names.
  833. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  834. as_fn_error $? "invalid feature name: $ac_useropt"
  835. ac_useropt_orig=$ac_useropt
  836. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  837. case $ac_user_opts in
  838. *"
  839. "enable_$ac_useropt"
  840. "*) ;;
  841. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  842. ac_unrecognized_sep=', ';;
  843. esac
  844. eval enable_$ac_useropt=\$ac_optarg ;;
  845. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  846. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  847. | --exec | --exe | --ex)
  848. ac_prev=exec_prefix ;;
  849. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  850. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  851. | --exec=* | --exe=* | --ex=*)
  852. exec_prefix=$ac_optarg ;;
  853. -gas | --gas | --ga | --g)
  854. # Obsolete; use --with-gas.
  855. with_gas=yes ;;
  856. -help | --help | --hel | --he | -h)
  857. ac_init_help=long ;;
  858. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  859. ac_init_help=recursive ;;
  860. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  861. ac_init_help=short ;;
  862. -host | --host | --hos | --ho)
  863. ac_prev=host_alias ;;
  864. -host=* | --host=* | --hos=* | --ho=*)
  865. host_alias=$ac_optarg ;;
  866. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  867. ac_prev=htmldir ;;
  868. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  869. | --ht=*)
  870. htmldir=$ac_optarg ;;
  871. -includedir | --includedir | --includedi | --included | --include \
  872. | --includ | --inclu | --incl | --inc)
  873. ac_prev=includedir ;;
  874. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  875. | --includ=* | --inclu=* | --incl=* | --inc=*)
  876. includedir=$ac_optarg ;;
  877. -infodir | --infodir | --infodi | --infod | --info | --inf)
  878. ac_prev=infodir ;;
  879. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  880. infodir=$ac_optarg ;;
  881. -libdir | --libdir | --libdi | --libd)
  882. ac_prev=libdir ;;
  883. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  884. libdir=$ac_optarg ;;
  885. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  886. | --libexe | --libex | --libe)
  887. ac_prev=libexecdir ;;
  888. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  889. | --libexe=* | --libex=* | --libe=*)
  890. libexecdir=$ac_optarg ;;
  891. -localedir | --localedir | --localedi | --localed | --locale)
  892. ac_prev=localedir ;;
  893. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  894. localedir=$ac_optarg ;;
  895. -localstatedir | --localstatedir | --localstatedi | --localstated \
  896. | --localstate | --localstat | --localsta | --localst | --locals)
  897. ac_prev=localstatedir ;;
  898. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  899. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  900. localstatedir=$ac_optarg ;;
  901. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  902. ac_prev=mandir ;;
  903. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  904. mandir=$ac_optarg ;;
  905. -nfp | --nfp | --nf)
  906. # Obsolete; use --without-fp.
  907. with_fp=no ;;
  908. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  909. | --no-cr | --no-c | -n)
  910. no_create=yes ;;
  911. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  912. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  913. no_recursion=yes ;;
  914. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  915. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  916. | --oldin | --oldi | --old | --ol | --o)
  917. ac_prev=oldincludedir ;;
  918. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  919. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  920. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  921. oldincludedir=$ac_optarg ;;
  922. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  923. ac_prev=prefix ;;
  924. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  925. prefix=$ac_optarg ;;
  926. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  927. | --program-pre | --program-pr | --program-p)
  928. ac_prev=program_prefix ;;
  929. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  930. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  931. program_prefix=$ac_optarg ;;
  932. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  933. | --program-suf | --program-su | --program-s)
  934. ac_prev=program_suffix ;;
  935. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  936. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  937. program_suffix=$ac_optarg ;;
  938. -program-transform-name | --program-transform-name \
  939. | --program-transform-nam | --program-transform-na \
  940. | --program-transform-n | --program-transform- \
  941. | --program-transform | --program-transfor \
  942. | --program-transfo | --program-transf \
  943. | --program-trans | --program-tran \
  944. | --progr-tra | --program-tr | --program-t)
  945. ac_prev=program_transform_name ;;
  946. -program-transform-name=* | --program-transform-name=* \
  947. | --program-transform-nam=* | --program-transform-na=* \
  948. | --program-transform-n=* | --program-transform-=* \
  949. | --program-transform=* | --program-transfor=* \
  950. | --program-transfo=* | --program-transf=* \
  951. | --program-trans=* | --program-tran=* \
  952. | --progr-tra=* | --program-tr=* | --program-t=*)
  953. program_transform_name=$ac_optarg ;;
  954. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  955. ac_prev=pdfdir ;;
  956. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  957. pdfdir=$ac_optarg ;;
  958. -psdir | --psdir | --psdi | --psd | --ps)
  959. ac_prev=psdir ;;
  960. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  961. psdir=$ac_optarg ;;
  962. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  963. | -silent | --silent | --silen | --sile | --sil)
  964. silent=yes ;;
  965. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  966. ac_prev=sbindir ;;
  967. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  968. | --sbi=* | --sb=*)
  969. sbindir=$ac_optarg ;;
  970. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  971. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  972. | --sharedst | --shareds | --shared | --share | --shar \
  973. | --sha | --sh)
  974. ac_prev=sharedstatedir ;;
  975. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  976. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  977. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  978. | --sha=* | --sh=*)
  979. sharedstatedir=$ac_optarg ;;
  980. -site | --site | --sit)
  981. ac_prev=site ;;
  982. -site=* | --site=* | --sit=*)
  983. site=$ac_optarg ;;
  984. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  985. ac_prev=srcdir ;;
  986. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  987. srcdir=$ac_optarg ;;
  988. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  989. | --syscon | --sysco | --sysc | --sys | --sy)
  990. ac_prev=sysconfdir ;;
  991. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  992. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  993. sysconfdir=$ac_optarg ;;
  994. -target | --target | --targe | --targ | --tar | --ta | --t)
  995. ac_prev=target_alias ;;
  996. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  997. target_alias=$ac_optarg ;;
  998. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  999. verbose=yes ;;
  1000. -version | --version | --versio | --versi | --vers | -V)
  1001. ac_init_version=: ;;
  1002. -with-* | --with-*)
  1003. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1004. # Reject names that are not valid shell variable names.
  1005. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1006. as_fn_error $? "invalid package name: $ac_useropt"
  1007. ac_useropt_orig=$ac_useropt
  1008. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1009. case $ac_user_opts in
  1010. *"
  1011. "with_$ac_useropt"
  1012. "*) ;;
  1013. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1014. ac_unrecognized_sep=', ';;
  1015. esac
  1016. eval with_$ac_useropt=\$ac_optarg ;;
  1017. -without-* | --without-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error $? "invalid package name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "with_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval with_$ac_useropt=no ;;
  1032. --x)
  1033. # Obsolete; use --with-x.
  1034. with_x=yes ;;
  1035. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1036. | --x-incl | --x-inc | --x-in | --x-i)
  1037. ac_prev=x_includes ;;
  1038. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1039. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1040. x_includes=$ac_optarg ;;
  1041. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1042. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1043. ac_prev=x_libraries ;;
  1044. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1045. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1046. x_libraries=$ac_optarg ;;
  1047. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1048. Try \`$0 --help' for more information"
  1049. ;;
  1050. *=*)
  1051. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1052. # Reject names that are not valid shell variable names.
  1053. case $ac_envvar in #(
  1054. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1055. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1056. esac
  1057. eval $ac_envvar=\$ac_optarg
  1058. export $ac_envvar ;;
  1059. *)
  1060. # FIXME: should be removed in autoconf 3.0.
  1061. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1062. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1063. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1064. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1065. ;;
  1066. esac
  1067. done
  1068. if test -n "$ac_prev"; then
  1069. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1070. as_fn_error $? "missing argument to $ac_option"
  1071. fi
  1072. if test -n "$ac_unrecognized_opts"; then
  1073. case $enable_option_checking in
  1074. no) ;;
  1075. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1076. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1077. esac
  1078. fi
  1079. # Check all directory arguments for consistency.
  1080. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1081. datadir sysconfdir sharedstatedir localstatedir includedir \
  1082. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1083. libdir localedir mandir
  1084. do
  1085. eval ac_val=\$$ac_var
  1086. # Remove trailing slashes.
  1087. case $ac_val in
  1088. */ )
  1089. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1090. eval $ac_var=\$ac_val;;
  1091. esac
  1092. # Be sure to have absolute directory names.
  1093. case $ac_val in
  1094. [\\/$]* | ?:[\\/]* ) continue;;
  1095. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1096. esac
  1097. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1098. done
  1099. # There might be people who depend on the old broken behavior: `$host'
  1100. # used to hold the argument of --host etc.
  1101. # FIXME: To remove some day.
  1102. build=$build_alias
  1103. host=$host_alias
  1104. target=$target_alias
  1105. # FIXME: To remove some day.
  1106. if test "x$host_alias" != x; then
  1107. if test "x$build_alias" = x; then
  1108. cross_compiling=maybe
  1109. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1110. If a cross compiler is detected then cross compile mode will be used" >&2
  1111. elif test "x$build_alias" != "x$host_alias"; then
  1112. cross_compiling=yes
  1113. fi
  1114. fi
  1115. ac_tool_prefix=
  1116. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1117. test "$silent" = yes && exec 6>/dev/null
  1118. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1119. ac_ls_di=`ls -di .` &&
  1120. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1121. as_fn_error $? "working directory cannot be determined"
  1122. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1123. as_fn_error $? "pwd does not report name of working directory"
  1124. # Find the source files, if location was not specified.
  1125. if test -z "$srcdir"; then
  1126. ac_srcdir_defaulted=yes
  1127. # Try the directory containing this script, then the parent directory.
  1128. ac_confdir=`$as_dirname -- "$as_myself" ||
  1129. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1130. X"$as_myself" : 'X\(//\)[^/]' \| \
  1131. X"$as_myself" : 'X\(//\)$' \| \
  1132. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1133. $as_echo X"$as_myself" |
  1134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1135. s//\1/
  1136. q
  1137. }
  1138. /^X\(\/\/\)[^/].*/{
  1139. s//\1/
  1140. q
  1141. }
  1142. /^X\(\/\/\)$/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\).*/{
  1147. s//\1/
  1148. q
  1149. }
  1150. s/.*/./; q'`
  1151. srcdir=$ac_confdir
  1152. if test ! -r "$srcdir/$ac_unique_file"; then
  1153. srcdir=..
  1154. fi
  1155. else
  1156. ac_srcdir_defaulted=no
  1157. fi
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1160. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1161. fi
  1162. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1163. ac_abs_confdir=`(
  1164. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1165. pwd)`
  1166. # When building in place, set srcdir=.
  1167. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1168. srcdir=.
  1169. fi
  1170. # Remove unnecessary trailing slashes from srcdir.
  1171. # Double slashes in file names in object file debugging info
  1172. # mess up M-x gdb in Emacs.
  1173. case $srcdir in
  1174. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1175. esac
  1176. for ac_var in $ac_precious_vars; do
  1177. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_env_${ac_var}_value=\$${ac_var}
  1179. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1181. done
  1182. #
  1183. # Report the --help message.
  1184. #
  1185. if test "$ac_init_help" = "long"; then
  1186. # Omit some internal or obsolete options to make the list less imposing.
  1187. # This message is too long to be a string in the A/UX 3.1 sh.
  1188. cat <<_ACEOF
  1189. \`configure' configures libogg 1.3.1 to adapt to many kinds of systems.
  1190. Usage: $0 [OPTION]... [VAR=VALUE]...
  1191. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1192. VAR=VALUE. See below for descriptions of some of the useful variables.
  1193. Defaults for the options are specified in brackets.
  1194. Configuration:
  1195. -h, --help display this help and exit
  1196. --help=short display options specific to this package
  1197. --help=recursive display the short help of all the included packages
  1198. -V, --version display version information and exit
  1199. -q, --quiet, --silent do not print \`checking ...' messages
  1200. --cache-file=FILE cache test results in FILE [disabled]
  1201. -C, --config-cache alias for \`--cache-file=config.cache'
  1202. -n, --no-create do not create output files
  1203. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1204. Installation directories:
  1205. --prefix=PREFIX install architecture-independent files in PREFIX
  1206. [$ac_default_prefix]
  1207. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1208. [PREFIX]
  1209. By default, \`make install' will install all the files in
  1210. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1211. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1212. for instance \`--prefix=\$HOME'.
  1213. For better control, use the options below.
  1214. Fine tuning of the installation directories:
  1215. --bindir=DIR user executables [EPREFIX/bin]
  1216. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1217. --libexecdir=DIR program executables [EPREFIX/libexec]
  1218. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1219. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1220. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1221. --libdir=DIR object code libraries [EPREFIX/lib]
  1222. --includedir=DIR C header files [PREFIX/include]
  1223. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1224. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1225. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1226. --infodir=DIR info documentation [DATAROOTDIR/info]
  1227. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1228. --mandir=DIR man documentation [DATAROOTDIR/man]
  1229. --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
  1230. --htmldir=DIR html documentation [DOCDIR]
  1231. --dvidir=DIR dvi documentation [DOCDIR]
  1232. --pdfdir=DIR pdf documentation [DOCDIR]
  1233. --psdir=DIR ps documentation [DOCDIR]
  1234. _ACEOF
  1235. cat <<\_ACEOF
  1236. Program names:
  1237. --program-prefix=PREFIX prepend PREFIX to installed program names
  1238. --program-suffix=SUFFIX append SUFFIX to installed program names
  1239. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1240. System types:
  1241. --build=BUILD configure for building on BUILD [guessed]
  1242. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1243. _ACEOF
  1244. fi
  1245. if test -n "$ac_init_help"; then
  1246. case $ac_init_help in
  1247. short | recursive ) echo "Configuration of libogg 1.3.1:";;
  1248. esac
  1249. cat <<\_ACEOF
  1250. Optional Features:
  1251. --disable-option-checking ignore unrecognized --enable/--with options
  1252. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1253. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1254. --disable-maintainer-mode disable make rules and dependencies not useful
  1255. (and sometimes confusing) to the casual installer
  1256. --disable-dependency-tracking speeds up one-time build
  1257. --enable-dependency-tracking do not reject slow dependency extractors
  1258. --enable-shared[=PKGS] build shared libraries [default=yes]
  1259. --enable-static[=PKGS] build static libraries [default=yes]
  1260. --enable-fast-install[=PKGS]
  1261. optimize for fast installation [default=yes]
  1262. --disable-libtool-lock avoid locking (might break parallel builds)
  1263. Optional Packages:
  1264. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1265. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1266. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1267. both]
  1268. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1269. --with-sysroot=DIR Search for dependent libraries within DIR
  1270. (or the compiler's sysroot if not specified).
  1271. Some influential environment variables:
  1272. CC C compiler command
  1273. CFLAGS C compiler flags
  1274. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1275. nonstandard directory <lib dir>
  1276. LIBS libraries to pass to the linker, e.g. -l<library>
  1277. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1278. you have headers in a nonstandard directory <include dir>
  1279. CPP C preprocessor
  1280. Use these variables to override the choices made by `configure' or to help
  1281. it to find libraries and programs with nonstandard names/locations.
  1282. Report bugs to <[email protected]>.
  1283. _ACEOF
  1284. ac_status=$?
  1285. fi
  1286. if test "$ac_init_help" = "recursive"; then
  1287. # If there are subdirs, report their specific --help.
  1288. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1289. test -d "$ac_dir" ||
  1290. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1291. continue
  1292. ac_builddir=.
  1293. case "$ac_dir" in
  1294. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1295. *)
  1296. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1297. # A ".." for each directory in $ac_dir_suffix.
  1298. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1299. case $ac_top_builddir_sub in
  1300. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1301. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1302. esac ;;
  1303. esac
  1304. ac_abs_top_builddir=$ac_pwd
  1305. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1306. # for backward compatibility:
  1307. ac_top_builddir=$ac_top_build_prefix
  1308. case $srcdir in
  1309. .) # We are building in place.
  1310. ac_srcdir=.
  1311. ac_top_srcdir=$ac_top_builddir_sub
  1312. ac_abs_top_srcdir=$ac_pwd ;;
  1313. [\\/]* | ?:[\\/]* ) # Absolute name.
  1314. ac_srcdir=$srcdir$ac_dir_suffix;
  1315. ac_top_srcdir=$srcdir
  1316. ac_abs_top_srcdir=$srcdir ;;
  1317. *) # Relative name.
  1318. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1319. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1320. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1321. esac
  1322. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1323. cd "$ac_dir" || { ac_status=$?; continue; }
  1324. # Check for guested configure.
  1325. if test -f "$ac_srcdir/configure.gnu"; then
  1326. echo &&
  1327. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1328. elif test -f "$ac_srcdir/configure"; then
  1329. echo &&
  1330. $SHELL "$ac_srcdir/configure" --help=recursive
  1331. else
  1332. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1333. fi || ac_status=$?
  1334. cd "$ac_pwd" || { ac_status=$?; break; }
  1335. done
  1336. fi
  1337. test -n "$ac_init_help" && exit $ac_status
  1338. if $ac_init_version; then
  1339. cat <<\_ACEOF
  1340. libogg configure 1.3.1
  1341. generated by GNU Autoconf 2.68
  1342. Copyright (C) 2010 Free Software Foundation, Inc.
  1343. This configure script is free software; the Free Software Foundation
  1344. gives unlimited permission to copy, distribute and modify it.
  1345. _ACEOF
  1346. exit
  1347. fi
  1348. ## ------------------------ ##
  1349. ## Autoconf initialization. ##
  1350. ## ------------------------ ##
  1351. # ac_fn_c_try_compile LINENO
  1352. # --------------------------
  1353. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1354. ac_fn_c_try_compile ()
  1355. {
  1356. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1357. rm -f conftest.$ac_objext
  1358. if { { ac_try="$ac_compile"
  1359. case "(($ac_try" in
  1360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1361. *) ac_try_echo=$ac_try;;
  1362. esac
  1363. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1364. $as_echo "$ac_try_echo"; } >&5
  1365. (eval "$ac_compile") 2>conftest.err
  1366. ac_status=$?
  1367. if test -s conftest.err; then
  1368. grep -v '^ *+' conftest.err >conftest.er1
  1369. cat conftest.er1 >&5
  1370. mv -f conftest.er1 conftest.err
  1371. fi
  1372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1373. test $ac_status = 0; } && {
  1374. test -z "$ac_c_werror_flag" ||
  1375. test ! -s conftest.err
  1376. } && test -s conftest.$ac_objext; then :
  1377. ac_retval=0
  1378. else
  1379. $as_echo "$as_me: failed program was:" >&5
  1380. sed 's/^/| /' conftest.$ac_ext >&5
  1381. ac_retval=1
  1382. fi
  1383. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1384. as_fn_set_status $ac_retval
  1385. } # ac_fn_c_try_compile
  1386. # ac_fn_c_try_link LINENO
  1387. # -----------------------
  1388. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1389. ac_fn_c_try_link ()
  1390. {
  1391. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1392. rm -f conftest.$ac_objext conftest$ac_exeext
  1393. if { { ac_try="$ac_link"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_link") 2>conftest.err
  1401. ac_status=$?
  1402. if test -s conftest.err; then
  1403. grep -v '^ *+' conftest.err >conftest.er1
  1404. cat conftest.er1 >&5
  1405. mv -f conftest.er1 conftest.err
  1406. fi
  1407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1408. test $ac_status = 0; } && {
  1409. test -z "$ac_c_werror_flag" ||
  1410. test ! -s conftest.err
  1411. } && test -s conftest$ac_exeext && {
  1412. test "$cross_compiling" = yes ||
  1413. $as_test_x conftest$ac_exeext
  1414. }; then :
  1415. ac_retval=0
  1416. else
  1417. $as_echo "$as_me: failed program was:" >&5
  1418. sed 's/^/| /' conftest.$ac_ext >&5
  1419. ac_retval=1
  1420. fi
  1421. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1422. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1423. # interfere with the next link command; also delete a directory that is
  1424. # left behind by Apple's compiler. We do this before executing the actions.
  1425. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1426. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1427. as_fn_set_status $ac_retval
  1428. } # ac_fn_c_try_link
  1429. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1430. # -------------------------------------------------------
  1431. # Tests whether HEADER exists and can be compiled using the include files in
  1432. # INCLUDES, setting the cache variable VAR accordingly.
  1433. ac_fn_c_check_header_compile ()
  1434. {
  1435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1437. $as_echo_n "checking for $2... " >&6; }
  1438. if eval \${$3+:} false; then :
  1439. $as_echo_n "(cached) " >&6
  1440. else
  1441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1442. /* end confdefs.h. */
  1443. $4
  1444. #include <$2>
  1445. _ACEOF
  1446. if ac_fn_c_try_compile "$LINENO"; then :
  1447. eval "$3=yes"
  1448. else
  1449. eval "$3=no"
  1450. fi
  1451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1452. fi
  1453. eval ac_res=\$$3
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1455. $as_echo "$ac_res" >&6; }
  1456. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1457. } # ac_fn_c_check_header_compile
  1458. # ac_fn_c_try_cpp LINENO
  1459. # ----------------------
  1460. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1461. ac_fn_c_try_cpp ()
  1462. {
  1463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1464. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1465. case "(($ac_try" in
  1466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1467. *) ac_try_echo=$ac_try;;
  1468. esac
  1469. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1470. $as_echo "$ac_try_echo"; } >&5
  1471. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1472. ac_status=$?
  1473. if test -s conftest.err; then
  1474. grep -v '^ *+' conftest.err >conftest.er1
  1475. cat conftest.er1 >&5
  1476. mv -f conftest.er1 conftest.err
  1477. fi
  1478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1479. test $ac_status = 0; } > conftest.i && {
  1480. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1481. test ! -s conftest.err
  1482. }; then :
  1483. ac_retval=0
  1484. else
  1485. $as_echo "$as_me: failed program was:" >&5
  1486. sed 's/^/| /' conftest.$ac_ext >&5
  1487. ac_retval=1
  1488. fi
  1489. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1490. as_fn_set_status $ac_retval
  1491. } # ac_fn_c_try_cpp
  1492. # ac_fn_c_try_run LINENO
  1493. # ----------------------
  1494. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1495. # that executables *can* be run.
  1496. ac_fn_c_try_run ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. if { { ac_try="$ac_link"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. $as_echo "$ac_try_echo"; } >&5
  1506. (eval "$ac_link") 2>&5
  1507. ac_status=$?
  1508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1509. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1510. { { case "(($ac_try" in
  1511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1512. *) ac_try_echo=$ac_try;;
  1513. esac
  1514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1515. $as_echo "$ac_try_echo"; } >&5
  1516. (eval "$ac_try") 2>&5
  1517. ac_status=$?
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; }; }; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: program exited with status $ac_status" >&5
  1523. $as_echo "$as_me: failed program was:" >&5
  1524. sed 's/^/| /' conftest.$ac_ext >&5
  1525. ac_retval=$ac_status
  1526. fi
  1527. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_c_try_run
  1531. # ac_fn_c_check_func LINENO FUNC VAR
  1532. # ----------------------------------
  1533. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1534. ac_fn_c_check_func ()
  1535. {
  1536. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1538. $as_echo_n "checking for $2... " >&6; }
  1539. if eval \${$3+:} false; then :
  1540. $as_echo_n "(cached) " >&6
  1541. else
  1542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1543. /* end confdefs.h. */
  1544. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1545. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1546. #define $2 innocuous_$2
  1547. /* System header to define __stub macros and hopefully few prototypes,
  1548. which can conflict with char $2 (); below.
  1549. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1550. <limits.h> exists even on freestanding compilers. */
  1551. #ifdef __STDC__
  1552. # include <limits.h>
  1553. #else
  1554. # include <assert.h>
  1555. #endif
  1556. #undef $2
  1557. /* Override any GCC internal prototype to avoid an error.
  1558. Use char because int might match the return type of a GCC
  1559. builtin and then its argument prototype would still apply. */
  1560. #ifdef __cplusplus
  1561. extern "C"
  1562. #endif
  1563. char $2 ();
  1564. /* The GNU C library defines this for functions which it implements
  1565. to always fail with ENOSYS. Some functions are actually named
  1566. something starting with __ and the normal name is an alias. */
  1567. #if defined __stub_$2 || defined __stub___$2
  1568. choke me
  1569. #endif
  1570. int
  1571. main ()
  1572. {
  1573. return $2 ();
  1574. ;
  1575. return 0;
  1576. }
  1577. _ACEOF
  1578. if ac_fn_c_try_link "$LINENO"; then :
  1579. eval "$3=yes"
  1580. else
  1581. eval "$3=no"
  1582. fi
  1583. rm -f core conftest.err conftest.$ac_objext \
  1584. conftest$ac_exeext conftest.$ac_ext
  1585. fi
  1586. eval ac_res=\$$3
  1587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1588. $as_echo "$ac_res" >&6; }
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. } # ac_fn_c_check_func
  1591. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1592. # -------------------------------------------------------
  1593. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1594. # the include files in INCLUDES and setting the cache variable VAR
  1595. # accordingly.
  1596. ac_fn_c_check_header_mongrel ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. if eval \${$3+:} false; then :
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1601. $as_echo_n "checking for $2... " >&6; }
  1602. if eval \${$3+:} false; then :
  1603. $as_echo_n "(cached) " >&6
  1604. fi
  1605. eval ac_res=\$$3
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1607. $as_echo "$ac_res" >&6; }
  1608. else
  1609. # Is the header compilable?
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1611. $as_echo_n "checking $2 usability... " >&6; }
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. $4
  1615. #include <$2>
  1616. _ACEOF
  1617. if ac_fn_c_try_compile "$LINENO"; then :
  1618. ac_header_compiler=yes
  1619. else
  1620. ac_header_compiler=no
  1621. fi
  1622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1624. $as_echo "$ac_header_compiler" >&6; }
  1625. # Is the header present?
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1627. $as_echo_n "checking $2 presence... " >&6; }
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. #include <$2>
  1631. _ACEOF
  1632. if ac_fn_c_try_cpp "$LINENO"; then :
  1633. ac_header_preproc=yes
  1634. else
  1635. ac_header_preproc=no
  1636. fi
  1637. rm -f conftest.err conftest.i conftest.$ac_ext
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1639. $as_echo "$ac_header_preproc" >&6; }
  1640. # So? What about this header?
  1641. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1642. yes:no: )
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1644. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1646. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1647. ;;
  1648. no:yes:* )
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1650. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1652. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1654. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1656. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1658. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1659. ( $as_echo "## ------------------------------- ##
  1660. ## Report this to [email protected] ##
  1661. ## ------------------------------- ##"
  1662. ) | sed "s/^/$as_me: WARNING: /" >&2
  1663. ;;
  1664. esac
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1666. $as_echo_n "checking for $2... " >&6; }
  1667. if eval \${$3+:} false; then :
  1668. $as_echo_n "(cached) " >&6
  1669. else
  1670. eval "$3=\$ac_header_compiler"
  1671. fi
  1672. eval ac_res=\$$3
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1674. $as_echo "$ac_res" >&6; }
  1675. fi
  1676. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1677. } # ac_fn_c_check_header_mongrel
  1678. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1679. # --------------------------------------------
  1680. # Tries to find the compile-time value of EXPR in a program that includes
  1681. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1682. # computed
  1683. ac_fn_c_compute_int ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. if test "$cross_compiling" = yes; then
  1687. # Depending upon the size, compute the lo and hi bounds.
  1688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1689. /* end confdefs.h. */
  1690. $4
  1691. int
  1692. main ()
  1693. {
  1694. static int test_array [1 - 2 * !(($2) >= 0)];
  1695. test_array [0] = 0
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_compile "$LINENO"; then :
  1701. ac_lo=0 ac_mid=0
  1702. while :; do
  1703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1704. /* end confdefs.h. */
  1705. $4
  1706. int
  1707. main ()
  1708. {
  1709. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1710. test_array [0] = 0
  1711. ;
  1712. return 0;
  1713. }
  1714. _ACEOF
  1715. if ac_fn_c_try_compile "$LINENO"; then :
  1716. ac_hi=$ac_mid; break
  1717. else
  1718. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1719. if test $ac_lo -le $ac_mid; then
  1720. ac_lo= ac_hi=
  1721. break
  1722. fi
  1723. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1724. fi
  1725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1726. done
  1727. else
  1728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1729. /* end confdefs.h. */
  1730. $4
  1731. int
  1732. main ()
  1733. {
  1734. static int test_array [1 - 2 * !(($2) < 0)];
  1735. test_array [0] = 0
  1736. ;
  1737. return 0;
  1738. }
  1739. _ACEOF
  1740. if ac_fn_c_try_compile "$LINENO"; then :
  1741. ac_hi=-1 ac_mid=-1
  1742. while :; do
  1743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1744. /* end confdefs.h. */
  1745. $4
  1746. int
  1747. main ()
  1748. {
  1749. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1750. test_array [0] = 0
  1751. ;
  1752. return 0;
  1753. }
  1754. _ACEOF
  1755. if ac_fn_c_try_compile "$LINENO"; then :
  1756. ac_lo=$ac_mid; break
  1757. else
  1758. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1759. if test $ac_mid -le $ac_hi; then
  1760. ac_lo= ac_hi=
  1761. break
  1762. fi
  1763. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1764. fi
  1765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. done
  1767. else
  1768. ac_lo= ac_hi=
  1769. fi
  1770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1771. fi
  1772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1773. # Binary search between lo and hi bounds.
  1774. while test "x$ac_lo" != "x$ac_hi"; do
  1775. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1777. /* end confdefs.h. */
  1778. $4
  1779. int
  1780. main ()
  1781. {
  1782. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1783. test_array [0] = 0
  1784. ;
  1785. return 0;
  1786. }
  1787. _ACEOF
  1788. if ac_fn_c_try_compile "$LINENO"; then :
  1789. ac_hi=$ac_mid
  1790. else
  1791. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1792. fi
  1793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1794. done
  1795. case $ac_lo in #((
  1796. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1797. '') ac_retval=1 ;;
  1798. esac
  1799. else
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $4
  1803. static long int longval () { return $2; }
  1804. static unsigned long int ulongval () { return $2; }
  1805. #include <stdio.h>
  1806. #include <stdlib.h>
  1807. int
  1808. main ()
  1809. {
  1810. FILE *f = fopen ("conftest.val", "w");
  1811. if (! f)
  1812. return 1;
  1813. if (($2) < 0)
  1814. {
  1815. long int i = longval ();
  1816. if (i != ($2))
  1817. return 1;
  1818. fprintf (f, "%ld", i);
  1819. }
  1820. else
  1821. {
  1822. unsigned long int i = ulongval ();
  1823. if (i != ($2))
  1824. return 1;
  1825. fprintf (f, "%lu", i);
  1826. }
  1827. /* Do not output a trailing newline, as this causes \r\n confusion
  1828. on some platforms. */
  1829. return ferror (f) || fclose (f) != 0;
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. if ac_fn_c_try_run "$LINENO"; then :
  1835. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1836. else
  1837. ac_retval=1
  1838. fi
  1839. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1840. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1841. rm -f conftest.val
  1842. fi
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. as_fn_set_status $ac_retval
  1845. } # ac_fn_c_compute_int
  1846. cat >config.log <<_ACEOF
  1847. This file contains any messages produced by compilers while
  1848. running configure, to aid debugging if configure makes a mistake.
  1849. It was created by libogg $as_me 1.3.1, which was
  1850. generated by GNU Autoconf 2.68. Invocation command line was
  1851. $ $0 $@
  1852. _ACEOF
  1853. exec 5>>config.log
  1854. {
  1855. cat <<_ASUNAME
  1856. ## --------- ##
  1857. ## Platform. ##
  1858. ## --------- ##
  1859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1869. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1873. _ASUNAME
  1874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1875. for as_dir in $PATH
  1876. do
  1877. IFS=$as_save_IFS
  1878. test -z "$as_dir" && as_dir=.
  1879. $as_echo "PATH: $as_dir"
  1880. done
  1881. IFS=$as_save_IFS
  1882. } >&5
  1883. cat >&5 <<_ACEOF
  1884. ## ----------- ##
  1885. ## Core tests. ##
  1886. ## ----------- ##
  1887. _ACEOF
  1888. # Keep a trace of the command line.
  1889. # Strip out --no-create and --no-recursion so they do not pile up.
  1890. # Strip out --silent because we don't want to record it for future runs.
  1891. # Also quote any args containing shell meta-characters.
  1892. # Make two passes to allow for proper duplicate-argument suppression.
  1893. ac_configure_args=
  1894. ac_configure_args0=
  1895. ac_configure_args1=
  1896. ac_must_keep_next=false
  1897. for ac_pass in 1 2
  1898. do
  1899. for ac_arg
  1900. do
  1901. case $ac_arg in
  1902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1904. | -silent | --silent | --silen | --sile | --sil)
  1905. continue ;;
  1906. *\'*)
  1907. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1908. esac
  1909. case $ac_pass in
  1910. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1911. 2)
  1912. as_fn_append ac_configure_args1 " '$ac_arg'"
  1913. if test $ac_must_keep_next = true; then
  1914. ac_must_keep_next=false # Got value, back to normal.
  1915. else
  1916. case $ac_arg in
  1917. *=* | --config-cache | -C | -disable-* | --disable-* \
  1918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1920. | -with-* | --with-* | -without-* | --without-* | --x)
  1921. case "$ac_configure_args0 " in
  1922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1923. esac
  1924. ;;
  1925. -* ) ac_must_keep_next=true ;;
  1926. esac
  1927. fi
  1928. as_fn_append ac_configure_args " '$ac_arg'"
  1929. ;;
  1930. esac
  1931. done
  1932. done
  1933. { ac_configure_args0=; unset ac_configure_args0;}
  1934. { ac_configure_args1=; unset ac_configure_args1;}
  1935. # When interrupted or exit'd, cleanup temporary files, and complete
  1936. # config.log. We remove comments because anyway the quotes in there
  1937. # would cause problems or look ugly.
  1938. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1939. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1940. trap 'exit_status=$?
  1941. # Save into config.log some information that might help in debugging.
  1942. {
  1943. echo
  1944. $as_echo "## ---------------- ##
  1945. ## Cache variables. ##
  1946. ## ---------------- ##"
  1947. echo
  1948. # The following way of writing the cache mishandles newlines in values,
  1949. (
  1950. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1951. eval ac_val=\$$ac_var
  1952. case $ac_val in #(
  1953. *${as_nl}*)
  1954. case $ac_var in #(
  1955. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1956. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1957. esac
  1958. case $ac_var in #(
  1959. _ | IFS | as_nl) ;; #(
  1960. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1961. *) { eval $ac_var=; unset $ac_var;} ;;
  1962. esac ;;
  1963. esac
  1964. done
  1965. (set) 2>&1 |
  1966. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1967. *${as_nl}ac_space=\ *)
  1968. sed -n \
  1969. "s/'\''/'\''\\\\'\'''\''/g;
  1970. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1971. ;; #(
  1972. *)
  1973. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1974. ;;
  1975. esac |
  1976. sort
  1977. )
  1978. echo
  1979. $as_echo "## ----------------- ##
  1980. ## Output variables. ##
  1981. ## ----------------- ##"
  1982. echo
  1983. for ac_var in $ac_subst_vars
  1984. do
  1985. eval ac_val=\$$ac_var
  1986. case $ac_val in
  1987. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1988. esac
  1989. $as_echo "$ac_var='\''$ac_val'\''"
  1990. done | sort
  1991. echo
  1992. if test -n "$ac_subst_files"; then
  1993. $as_echo "## ------------------- ##
  1994. ## File substitutions. ##
  1995. ## ------------------- ##"
  1996. echo
  1997. for ac_var in $ac_subst_files
  1998. do
  1999. eval ac_val=\$$ac_var
  2000. case $ac_val in
  2001. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2002. esac
  2003. $as_echo "$ac_var='\''$ac_val'\''"
  2004. done | sort
  2005. echo
  2006. fi
  2007. if test -s confdefs.h; then
  2008. $as_echo "## ----------- ##
  2009. ## confdefs.h. ##
  2010. ## ----------- ##"
  2011. echo
  2012. cat confdefs.h
  2013. echo
  2014. fi
  2015. test "$ac_signal" != 0 &&
  2016. $as_echo "$as_me: caught signal $ac_signal"
  2017. $as_echo "$as_me: exit $exit_status"
  2018. } >&5
  2019. rm -f core *.core core.conftest.* &&
  2020. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2021. exit $exit_status
  2022. ' 0
  2023. for ac_signal in 1 2 13 15; do
  2024. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2025. done
  2026. ac_signal=0
  2027. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2028. rm -f -r conftest* confdefs.h
  2029. $as_echo "/* confdefs.h */" > confdefs.h
  2030. # Predefined preprocessor variables.
  2031. cat >>confdefs.h <<_ACEOF
  2032. #define PACKAGE_NAME "$PACKAGE_NAME"
  2033. _ACEOF
  2034. cat >>confdefs.h <<_ACEOF
  2035. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2036. _ACEOF
  2037. cat >>confdefs.h <<_ACEOF
  2038. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2039. _ACEOF
  2040. cat >>confdefs.h <<_ACEOF
  2041. #define PACKAGE_STRING "$PACKAGE_STRING"
  2042. _ACEOF
  2043. cat >>confdefs.h <<_ACEOF
  2044. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2045. _ACEOF
  2046. cat >>confdefs.h <<_ACEOF
  2047. #define PACKAGE_URL "$PACKAGE_URL"
  2048. _ACEOF
  2049. # Let the site file select an alternate cache file if it wants to.
  2050. # Prefer an explicitly selected file to automatically selected ones.
  2051. ac_site_file1=NONE
  2052. ac_site_file2=NONE
  2053. if test -n "$CONFIG_SITE"; then
  2054. # We do not want a PATH search for config.site.
  2055. case $CONFIG_SITE in #((
  2056. -*) ac_site_file1=./$CONFIG_SITE;;
  2057. */*) ac_site_file1=$CONFIG_SITE;;
  2058. *) ac_site_file1=./$CONFIG_SITE;;
  2059. esac
  2060. elif test "x$prefix" != xNONE; then
  2061. ac_site_file1=$prefix/share/config.site
  2062. ac_site_file2=$prefix/etc/config.site
  2063. else
  2064. ac_site_file1=$ac_default_prefix/share/config.site
  2065. ac_site_file2=$ac_default_prefix/etc/config.site
  2066. fi
  2067. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2068. do
  2069. test "x$ac_site_file" = xNONE && continue
  2070. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2072. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2073. sed 's/^/| /' "$ac_site_file" >&5
  2074. . "$ac_site_file" \
  2075. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2077. as_fn_error $? "failed to load site script $ac_site_file
  2078. See \`config.log' for more details" "$LINENO" 5; }
  2079. fi
  2080. done
  2081. if test -r "$cache_file"; then
  2082. # Some versions of bash will fail to source /dev/null (special files
  2083. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2084. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2086. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2087. case $cache_file in
  2088. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2089. *) . "./$cache_file";;
  2090. esac
  2091. fi
  2092. else
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2094. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2095. >$cache_file
  2096. fi
  2097. # Check that the precious variables saved in the cache have kept the same
  2098. # value.
  2099. ac_cache_corrupted=false
  2100. for ac_var in $ac_precious_vars; do
  2101. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2102. eval ac_new_set=\$ac_env_${ac_var}_set
  2103. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2104. eval ac_new_val=\$ac_env_${ac_var}_value
  2105. case $ac_old_set,$ac_new_set in
  2106. set,)
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2108. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2109. ac_cache_corrupted=: ;;
  2110. ,set)
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2112. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2113. ac_cache_corrupted=: ;;
  2114. ,);;
  2115. *)
  2116. if test "x$ac_old_val" != "x$ac_new_val"; then
  2117. # differences in whitespace do not lead to failure.
  2118. ac_old_val_w=`echo x $ac_old_val`
  2119. ac_new_val_w=`echo x $ac_new_val`
  2120. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2122. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2123. ac_cache_corrupted=:
  2124. else
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2126. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2127. eval $ac_var=\$ac_old_val
  2128. fi
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2130. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2132. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2133. fi;;
  2134. esac
  2135. # Pass precious variables to config.status.
  2136. if test "$ac_new_set" = set; then
  2137. case $ac_new_val in
  2138. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2139. *) ac_arg=$ac_var=$ac_new_val ;;
  2140. esac
  2141. case " $ac_configure_args " in
  2142. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2143. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2144. esac
  2145. fi
  2146. done
  2147. if $ac_cache_corrupted; then
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2149. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2151. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2152. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2153. fi
  2154. ## -------------------- ##
  2155. ## Main body of script. ##
  2156. ## -------------------- ##
  2157. ac_ext=c
  2158. ac_cpp='$CPP $CPPFLAGS'
  2159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2162. am__api_version='1.11'
  2163. ac_aux_dir=
  2164. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2165. if test -f "$ac_dir/install-sh"; then
  2166. ac_aux_dir=$ac_dir
  2167. ac_install_sh="$ac_aux_dir/install-sh -c"
  2168. break
  2169. elif test -f "$ac_dir/install.sh"; then
  2170. ac_aux_dir=$ac_dir
  2171. ac_install_sh="$ac_aux_dir/install.sh -c"
  2172. break
  2173. elif test -f "$ac_dir/shtool"; then
  2174. ac_aux_dir=$ac_dir
  2175. ac_install_sh="$ac_aux_dir/shtool install -c"
  2176. break
  2177. fi
  2178. done
  2179. if test -z "$ac_aux_dir"; then
  2180. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2181. fi
  2182. # These three variables are undocumented and unsupported,
  2183. # and are intended to be withdrawn in a future Autoconf release.
  2184. # They can cause serious problems if a builder's source tree is in a directory
  2185. # whose full name contains unusual characters.
  2186. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2187. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2188. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2189. # Find a good install program. We prefer a C program (faster),
  2190. # so one script is as good as another. But avoid the broken or
  2191. # incompatible versions:
  2192. # SysV /etc/install, /usr/sbin/install
  2193. # SunOS /usr/etc/install
  2194. # IRIX /sbin/install
  2195. # AIX /bin/install
  2196. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2197. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2198. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2199. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2200. # OS/2's system install, which has a completely different semantic
  2201. # ./install, which can be erroneously created by make from ./install.sh.
  2202. # Reject install programs that cannot install multiple files.
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2204. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2205. if test -z "$INSTALL"; then
  2206. if ${ac_cv_path_install+:} false; then :
  2207. $as_echo_n "(cached) " >&6
  2208. else
  2209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2210. for as_dir in $PATH
  2211. do
  2212. IFS=$as_save_IFS
  2213. test -z "$as_dir" && as_dir=.
  2214. # Account for people who put trailing slashes in PATH elements.
  2215. case $as_dir/ in #((
  2216. ./ | .// | /[cC]/* | \
  2217. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2218. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2219. /usr/ucb/* ) ;;
  2220. *)
  2221. # OSF1 and SCO ODT 3.0 have their own names for install.
  2222. # Don't use installbsd from OSF since it installs stuff as root
  2223. # by default.
  2224. for ac_prog in ginstall scoinst install; do
  2225. for ac_exec_ext in '' $ac_executable_extensions; do
  2226. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2227. if test $ac_prog = install &&
  2228. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2229. # AIX install. It has an incompatible calling convention.
  2230. :
  2231. elif test $ac_prog = install &&
  2232. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2233. # program-specific install script used by HP pwplus--don't use.
  2234. :
  2235. else
  2236. rm -rf conftest.one conftest.two conftest.dir
  2237. echo one > conftest.one
  2238. echo two > conftest.two
  2239. mkdir conftest.dir
  2240. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2241. test -s conftest.one && test -s conftest.two &&
  2242. test -s conftest.dir/conftest.one &&
  2243. test -s conftest.dir/conftest.two
  2244. then
  2245. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2246. break 3
  2247. fi
  2248. fi
  2249. fi
  2250. done
  2251. done
  2252. ;;
  2253. esac
  2254. done
  2255. IFS=$as_save_IFS
  2256. rm -rf conftest.one conftest.two conftest.dir
  2257. fi
  2258. if test "${ac_cv_path_install+set}" = set; then
  2259. INSTALL=$ac_cv_path_install
  2260. else
  2261. # As a last resort, use the slow shell script. Don't cache a
  2262. # value for INSTALL within a source directory, because that will
  2263. # break other packages using the cache if that directory is
  2264. # removed, or if the value is a relative name.
  2265. INSTALL=$ac_install_sh
  2266. fi
  2267. fi
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2269. $as_echo "$INSTALL" >&6; }
  2270. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2271. # It thinks the first close brace ends the variable substitution.
  2272. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2273. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2274. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2276. $as_echo_n "checking whether build environment is sane... " >&6; }
  2277. # Just in case
  2278. sleep 1
  2279. echo timestamp > conftest.file
  2280. # Reject unsafe characters in $srcdir or the absolute working directory
  2281. # name. Accept space and tab only in the latter.
  2282. am_lf='
  2283. '
  2284. case `pwd` in
  2285. *[\\\"\#\$\&\'\`$am_lf]*)
  2286. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2287. esac
  2288. case $srcdir in
  2289. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2290. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2291. esac
  2292. # Do `set' in a subshell so we don't clobber the current shell's
  2293. # arguments. Must try -L first in case configure is actually a
  2294. # symlink; some systems play weird games with the mod time of symlinks
  2295. # (eg FreeBSD returns the mod time of the symlink's containing
  2296. # directory).
  2297. if (
  2298. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2299. if test "$*" = "X"; then
  2300. # -L didn't work.
  2301. set X `ls -t "$srcdir/configure" conftest.file`
  2302. fi
  2303. rm -f conftest.file
  2304. if test "$*" != "X $srcdir/configure conftest.file" \
  2305. && test "$*" != "X conftest.file $srcdir/configure"; then
  2306. # If neither matched, then we have a broken ls. This can happen
  2307. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2308. # broken ls alias from the environment. This has actually
  2309. # happened. Such a system could not be considered "sane".
  2310. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2311. alias in your environment" "$LINENO" 5
  2312. fi
  2313. test "$2" = conftest.file
  2314. )
  2315. then
  2316. # Ok.
  2317. :
  2318. else
  2319. as_fn_error $? "newly created file is older than distributed files!
  2320. Check your system clock" "$LINENO" 5
  2321. fi
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2323. $as_echo "yes" >&6; }
  2324. test "$program_prefix" != NONE &&
  2325. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2326. # Use a double $ so make ignores it.
  2327. test "$program_suffix" != NONE &&
  2328. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2329. # Double any \ or $.
  2330. # By default was `s,x,x', remove it if useless.
  2331. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2332. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2333. # expand $ac_aux_dir to an absolute path
  2334. am_aux_dir=`cd $ac_aux_dir && pwd`
  2335. if test x"${MISSING+set}" != xset; then
  2336. case $am_aux_dir in
  2337. *\ * | *\ *)
  2338. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2339. *)
  2340. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2341. esac
  2342. fi
  2343. # Use eval to expand $SHELL
  2344. if eval "$MISSING --run true"; then
  2345. am_missing_run="$MISSING --run "
  2346. else
  2347. am_missing_run=
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2349. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2350. fi
  2351. if test x"${install_sh}" != xset; then
  2352. case $am_aux_dir in
  2353. *\ * | *\ *)
  2354. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2355. *)
  2356. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2357. esac
  2358. fi
  2359. # Installed binaries are usually stripped using `strip' when the user
  2360. # run `make install-strip'. However `strip' might not be the right
  2361. # tool to use in cross-compilation environments, therefore Automake
  2362. # will honor the `STRIP' environment variable to overrule this program.
  2363. if test "$cross_compiling" != no; then
  2364. if test -n "$ac_tool_prefix"; then
  2365. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2366. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2368. $as_echo_n "checking for $ac_word... " >&6; }
  2369. if ${ac_cv_prog_STRIP+:} false; then :
  2370. $as_echo_n "(cached) " >&6
  2371. else
  2372. if test -n "$STRIP"; then
  2373. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2374. else
  2375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2376. for as_dir in $PATH
  2377. do
  2378. IFS=$as_save_IFS
  2379. test -z "$as_dir" && as_dir=.
  2380. for ac_exec_ext in '' $ac_executable_extensions; do
  2381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2382. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2384. break 2
  2385. fi
  2386. done
  2387. done
  2388. IFS=$as_save_IFS
  2389. fi
  2390. fi
  2391. STRIP=$ac_cv_prog_STRIP
  2392. if test -n "$STRIP"; then
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2394. $as_echo "$STRIP" >&6; }
  2395. else
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2397. $as_echo "no" >&6; }
  2398. fi
  2399. fi
  2400. if test -z "$ac_cv_prog_STRIP"; then
  2401. ac_ct_STRIP=$STRIP
  2402. # Extract the first word of "strip", so it can be a program name with args.
  2403. set dummy strip; ac_word=$2
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2405. $as_echo_n "checking for $ac_word... " >&6; }
  2406. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2407. $as_echo_n "(cached) " >&6
  2408. else
  2409. if test -n "$ac_ct_STRIP"; then
  2410. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2411. else
  2412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2413. for as_dir in $PATH
  2414. do
  2415. IFS=$as_save_IFS
  2416. test -z "$as_dir" && as_dir=.
  2417. for ac_exec_ext in '' $ac_executable_extensions; do
  2418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2419. ac_cv_prog_ac_ct_STRIP="strip"
  2420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2421. break 2
  2422. fi
  2423. done
  2424. done
  2425. IFS=$as_save_IFS
  2426. fi
  2427. fi
  2428. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2429. if test -n "$ac_ct_STRIP"; then
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2431. $as_echo "$ac_ct_STRIP" >&6; }
  2432. else
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2434. $as_echo "no" >&6; }
  2435. fi
  2436. if test "x$ac_ct_STRIP" = x; then
  2437. STRIP=":"
  2438. else
  2439. case $cross_compiling:$ac_tool_warned in
  2440. yes:)
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2443. ac_tool_warned=yes ;;
  2444. esac
  2445. STRIP=$ac_ct_STRIP
  2446. fi
  2447. else
  2448. STRIP="$ac_cv_prog_STRIP"
  2449. fi
  2450. fi
  2451. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2453. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2454. if test -z "$MKDIR_P"; then
  2455. if ${ac_cv_path_mkdir+:} false; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2459. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2460. do
  2461. IFS=$as_save_IFS
  2462. test -z "$as_dir" && as_dir=.
  2463. for ac_prog in mkdir gmkdir; do
  2464. for ac_exec_ext in '' $ac_executable_extensions; do
  2465. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2466. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2467. 'mkdir (GNU coreutils) '* | \
  2468. 'mkdir (coreutils) '* | \
  2469. 'mkdir (fileutils) '4.1*)
  2470. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2471. break 3;;
  2472. esac
  2473. done
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. fi
  2478. test -d ./--version && rmdir ./--version
  2479. if test "${ac_cv_path_mkdir+set}" = set; then
  2480. MKDIR_P="$ac_cv_path_mkdir -p"
  2481. else
  2482. # As a last resort, use the slow shell script. Don't cache a
  2483. # value for MKDIR_P within a source directory, because that will
  2484. # break other packages using the cache if that directory is
  2485. # removed, or if the value is a relative name.
  2486. MKDIR_P="$ac_install_sh -d"
  2487. fi
  2488. fi
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2490. $as_echo "$MKDIR_P" >&6; }
  2491. mkdir_p="$MKDIR_P"
  2492. case $mkdir_p in
  2493. [\\/$]* | ?:[\\/]*) ;;
  2494. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2495. esac
  2496. for ac_prog in gawk mawk nawk awk
  2497. do
  2498. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2499. set dummy $ac_prog; ac_word=$2
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2501. $as_echo_n "checking for $ac_word... " >&6; }
  2502. if ${ac_cv_prog_AWK+:} false; then :
  2503. $as_echo_n "(cached) " >&6
  2504. else
  2505. if test -n "$AWK"; then
  2506. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2507. else
  2508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2509. for as_dir in $PATH
  2510. do
  2511. IFS=$as_save_IFS
  2512. test -z "$as_dir" && as_dir=.
  2513. for ac_exec_ext in '' $ac_executable_extensions; do
  2514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2515. ac_cv_prog_AWK="$ac_prog"
  2516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2517. break 2
  2518. fi
  2519. done
  2520. done
  2521. IFS=$as_save_IFS
  2522. fi
  2523. fi
  2524. AWK=$ac_cv_prog_AWK
  2525. if test -n "$AWK"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2527. $as_echo "$AWK" >&6; }
  2528. else
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2530. $as_echo "no" >&6; }
  2531. fi
  2532. test -n "$AWK" && break
  2533. done
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2535. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2536. set x ${MAKE-make}
  2537. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2538. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2539. $as_echo_n "(cached) " >&6
  2540. else
  2541. cat >conftest.make <<\_ACEOF
  2542. SHELL = /bin/sh
  2543. all:
  2544. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2545. _ACEOF
  2546. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2547. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2548. *@@@%%%=?*=@@@%%%*)
  2549. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2550. *)
  2551. eval ac_cv_prog_make_${ac_make}_set=no;;
  2552. esac
  2553. rm -f conftest.make
  2554. fi
  2555. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2557. $as_echo "yes" >&6; }
  2558. SET_MAKE=
  2559. else
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2561. $as_echo "no" >&6; }
  2562. SET_MAKE="MAKE=${MAKE-make}"
  2563. fi
  2564. rm -rf .tst 2>/dev/null
  2565. mkdir .tst 2>/dev/null
  2566. if test -d .tst; then
  2567. am__leading_dot=.
  2568. else
  2569. am__leading_dot=_
  2570. fi
  2571. rmdir .tst 2>/dev/null
  2572. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2573. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2574. # is not polluted with repeated "-I."
  2575. am__isrc=' -I$(srcdir)'
  2576. # test to see if srcdir already configured
  2577. if test -f $srcdir/config.status; then
  2578. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2579. fi
  2580. fi
  2581. # test whether we have cygpath
  2582. if test -z "$CYGPATH_W"; then
  2583. if (cygpath --version) >/dev/null 2>/dev/null; then
  2584. CYGPATH_W='cygpath -w'
  2585. else
  2586. CYGPATH_W=echo
  2587. fi
  2588. fi
  2589. # Define the identity of the package.
  2590. PACKAGE='libogg'
  2591. VERSION='1.3.1'
  2592. cat >>confdefs.h <<_ACEOF
  2593. #define PACKAGE "$PACKAGE"
  2594. _ACEOF
  2595. cat >>confdefs.h <<_ACEOF
  2596. #define VERSION "$VERSION"
  2597. _ACEOF
  2598. # Some tools Automake needs.
  2599. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2600. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2601. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2602. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2603. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2604. # We need awk for the "check" target. The system "awk" is bad on
  2605. # some platforms.
  2606. # Always define AMTAR for backward compatibility. Yes, it's still used
  2607. # in the wild :-( We should find a proper way to deprecate it ...
  2608. AMTAR='$${TAR-tar}'
  2609. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2611. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2612. # Check whether --enable-maintainer-mode was given.
  2613. if test "${enable_maintainer_mode+set}" = set; then :
  2614. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2615. else
  2616. USE_MAINTAINER_MODE=yes
  2617. fi
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2619. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2620. if test $USE_MAINTAINER_MODE = yes; then
  2621. MAINTAINER_MODE_TRUE=
  2622. MAINTAINER_MODE_FALSE='#'
  2623. else
  2624. MAINTAINER_MODE_TRUE='#'
  2625. MAINTAINER_MODE_FALSE=
  2626. fi
  2627. MAINT=$MAINTAINER_MODE_TRUE
  2628. LIB_CURRENT=8
  2629. LIB_REVISION=1
  2630. LIB_AGE=8
  2631. ac_ext=c
  2632. ac_cpp='$CPP $CPPFLAGS'
  2633. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2634. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2635. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2636. if test -n "$ac_tool_prefix"; then
  2637. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2638. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2640. $as_echo_n "checking for $ac_word... " >&6; }
  2641. if ${ac_cv_prog_CC+:} false; then :
  2642. $as_echo_n "(cached) " >&6
  2643. else
  2644. if test -n "$CC"; then
  2645. ac_cv_prog_CC="$CC" # Let the user override the test.
  2646. else
  2647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2648. for as_dir in $PATH
  2649. do
  2650. IFS=$as_save_IFS
  2651. test -z "$as_dir" && as_dir=.
  2652. for ac_exec_ext in '' $ac_executable_extensions; do
  2653. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2654. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2655. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2656. break 2
  2657. fi
  2658. done
  2659. done
  2660. IFS=$as_save_IFS
  2661. fi
  2662. fi
  2663. CC=$ac_cv_prog_CC
  2664. if test -n "$CC"; then
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2666. $as_echo "$CC" >&6; }
  2667. else
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2669. $as_echo "no" >&6; }
  2670. fi
  2671. fi
  2672. if test -z "$ac_cv_prog_CC"; then
  2673. ac_ct_CC=$CC
  2674. # Extract the first word of "gcc", so it can be a program name with args.
  2675. set dummy gcc; ac_word=$2
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2677. $as_echo_n "checking for $ac_word... " >&6; }
  2678. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. if test -n "$ac_ct_CC"; then
  2682. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2683. else
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. for ac_exec_ext in '' $ac_executable_extensions; do
  2690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2691. ac_cv_prog_ac_ct_CC="gcc"
  2692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2693. break 2
  2694. fi
  2695. done
  2696. done
  2697. IFS=$as_save_IFS
  2698. fi
  2699. fi
  2700. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2701. if test -n "$ac_ct_CC"; then
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2703. $as_echo "$ac_ct_CC" >&6; }
  2704. else
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2706. $as_echo "no" >&6; }
  2707. fi
  2708. if test "x$ac_ct_CC" = x; then
  2709. CC=""
  2710. else
  2711. case $cross_compiling:$ac_tool_warned in
  2712. yes:)
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2714. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2715. ac_tool_warned=yes ;;
  2716. esac
  2717. CC=$ac_ct_CC
  2718. fi
  2719. else
  2720. CC="$ac_cv_prog_CC"
  2721. fi
  2722. if test -z "$CC"; then
  2723. if test -n "$ac_tool_prefix"; then
  2724. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2725. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if ${ac_cv_prog_CC+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if test -n "$CC"; then
  2732. ac_cv_prog_CC="$CC" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2741. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. fi
  2750. CC=$ac_cv_prog_CC
  2751. if test -n "$CC"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2753. $as_echo "$CC" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2756. $as_echo "no" >&6; }
  2757. fi
  2758. fi
  2759. fi
  2760. if test -z "$CC"; then
  2761. # Extract the first word of "cc", so it can be a program name with args.
  2762. set dummy cc; ac_word=$2
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2764. $as_echo_n "checking for $ac_word... " >&6; }
  2765. if ${ac_cv_prog_CC+:} false; then :
  2766. $as_echo_n "(cached) " >&6
  2767. else
  2768. if test -n "$CC"; then
  2769. ac_cv_prog_CC="$CC" # Let the user override the test.
  2770. else
  2771. ac_prog_rejected=no
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2779. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2780. ac_prog_rejected=yes
  2781. continue
  2782. fi
  2783. ac_cv_prog_CC="cc"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. if test $ac_prog_rejected = yes; then
  2791. # We found a bogon in the path, so make sure we never use it.
  2792. set dummy $ac_cv_prog_CC
  2793. shift
  2794. if test $# != 0; then
  2795. # We chose a different compiler from the bogus one.
  2796. # However, it has the same basename, so the bogon will be chosen
  2797. # first if we set CC to just the basename; use the full file name.
  2798. shift
  2799. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2800. fi
  2801. fi
  2802. fi
  2803. fi
  2804. CC=$ac_cv_prog_CC
  2805. if test -n "$CC"; then
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2807. $as_echo "$CC" >&6; }
  2808. else
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2810. $as_echo "no" >&6; }
  2811. fi
  2812. fi
  2813. if test -z "$CC"; then
  2814. if test -n "$ac_tool_prefix"; then
  2815. for ac_prog in cl.exe
  2816. do
  2817. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2818. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2820. $as_echo_n "checking for $ac_word... " >&6; }
  2821. if ${ac_cv_prog_CC+:} false; then :
  2822. $as_echo_n "(cached) " >&6
  2823. else
  2824. if test -n "$CC"; then
  2825. ac_cv_prog_CC="$CC" # Let the user override the test.
  2826. else
  2827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2828. for as_dir in $PATH
  2829. do
  2830. IFS=$as_save_IFS
  2831. test -z "$as_dir" && as_dir=.
  2832. for ac_exec_ext in '' $ac_executable_extensions; do
  2833. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2834. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2836. break 2
  2837. fi
  2838. done
  2839. done
  2840. IFS=$as_save_IFS
  2841. fi
  2842. fi
  2843. CC=$ac_cv_prog_CC
  2844. if test -n "$CC"; then
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2846. $as_echo "$CC" >&6; }
  2847. else
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2849. $as_echo "no" >&6; }
  2850. fi
  2851. test -n "$CC" && break
  2852. done
  2853. fi
  2854. if test -z "$CC"; then
  2855. ac_ct_CC=$CC
  2856. for ac_prog in cl.exe
  2857. do
  2858. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2859. set dummy $ac_prog; ac_word=$2
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2861. $as_echo_n "checking for $ac_word... " >&6; }
  2862. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. if test -n "$ac_ct_CC"; then
  2866. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2867. else
  2868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869. for as_dir in $PATH
  2870. do
  2871. IFS=$as_save_IFS
  2872. test -z "$as_dir" && as_dir=.
  2873. for ac_exec_ext in '' $ac_executable_extensions; do
  2874. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2875. ac_cv_prog_ac_ct_CC="$ac_prog"
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2877. break 2
  2878. fi
  2879. done
  2880. done
  2881. IFS=$as_save_IFS
  2882. fi
  2883. fi
  2884. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2885. if test -n "$ac_ct_CC"; then
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2887. $as_echo "$ac_ct_CC" >&6; }
  2888. else
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2890. $as_echo "no" >&6; }
  2891. fi
  2892. test -n "$ac_ct_CC" && break
  2893. done
  2894. if test "x$ac_ct_CC" = x; then
  2895. CC=""
  2896. else
  2897. case $cross_compiling:$ac_tool_warned in
  2898. yes:)
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2901. ac_tool_warned=yes ;;
  2902. esac
  2903. CC=$ac_ct_CC
  2904. fi
  2905. fi
  2906. fi
  2907. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2908. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2909. as_fn_error $? "no acceptable C compiler found in \$PATH
  2910. See \`config.log' for more details" "$LINENO" 5; }
  2911. # Provide some information about the compiler.
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2913. set X $ac_compile
  2914. ac_compiler=$2
  2915. for ac_option in --version -v -V -qversion; do
  2916. { { ac_try="$ac_compiler $ac_option >&5"
  2917. case "(($ac_try" in
  2918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2919. *) ac_try_echo=$ac_try;;
  2920. esac
  2921. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2922. $as_echo "$ac_try_echo"; } >&5
  2923. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2924. ac_status=$?
  2925. if test -s conftest.err; then
  2926. sed '10a\
  2927. ... rest of stderr output deleted ...
  2928. 10q' conftest.err >conftest.er1
  2929. cat conftest.er1 >&5
  2930. fi
  2931. rm -f conftest.er1 conftest.err
  2932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2933. test $ac_status = 0; }
  2934. done
  2935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2936. /* end confdefs.h. */
  2937. int
  2938. main ()
  2939. {
  2940. ;
  2941. return 0;
  2942. }
  2943. _ACEOF
  2944. ac_clean_files_save=$ac_clean_files
  2945. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2946. # Try to create an executable without -o first, disregard a.out.
  2947. # It will help us diagnose broken compilers, and finding out an intuition
  2948. # of exeext.
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2950. $as_echo_n "checking whether the C compiler works... " >&6; }
  2951. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2952. # The possible output files:
  2953. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2954. ac_rmfiles=
  2955. for ac_file in $ac_files
  2956. do
  2957. case $ac_file in
  2958. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2959. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2960. esac
  2961. done
  2962. rm -f $ac_rmfiles
  2963. if { { ac_try="$ac_link_default"
  2964. case "(($ac_try" in
  2965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2966. *) ac_try_echo=$ac_try;;
  2967. esac
  2968. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2969. $as_echo "$ac_try_echo"; } >&5
  2970. (eval "$ac_link_default") 2>&5
  2971. ac_status=$?
  2972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2973. test $ac_status = 0; }; then :
  2974. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2975. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2976. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2977. # so that the user can short-circuit this test for compilers unknown to
  2978. # Autoconf.
  2979. for ac_file in $ac_files ''
  2980. do
  2981. test -f "$ac_file" || continue
  2982. case $ac_file in
  2983. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2984. ;;
  2985. [ab].out )
  2986. # We found the default executable, but exeext='' is most
  2987. # certainly right.
  2988. break;;
  2989. *.* )
  2990. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2991. then :; else
  2992. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2993. fi
  2994. # We set ac_cv_exeext here because the later test for it is not
  2995. # safe: cross compilers may not add the suffix if given an `-o'
  2996. # argument, so we may need to know it at that point already.
  2997. # Even if this section looks crufty: it has the advantage of
  2998. # actually working.
  2999. break;;
  3000. * )
  3001. break;;
  3002. esac
  3003. done
  3004. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3005. else
  3006. ac_file=''
  3007. fi
  3008. if test -z "$ac_file"; then :
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3010. $as_echo "no" >&6; }
  3011. $as_echo "$as_me: failed program was:" >&5
  3012. sed 's/^/| /' conftest.$ac_ext >&5
  3013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3015. as_fn_error 77 "C compiler cannot create executables
  3016. See \`config.log' for more details" "$LINENO" 5; }
  3017. else
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3019. $as_echo "yes" >&6; }
  3020. fi
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3022. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3024. $as_echo "$ac_file" >&6; }
  3025. ac_exeext=$ac_cv_exeext
  3026. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3027. ac_clean_files=$ac_clean_files_save
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3029. $as_echo_n "checking for suffix of executables... " >&6; }
  3030. if { { ac_try="$ac_link"
  3031. case "(($ac_try" in
  3032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3033. *) ac_try_echo=$ac_try;;
  3034. esac
  3035. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3036. $as_echo "$ac_try_echo"; } >&5
  3037. (eval "$ac_link") 2>&5
  3038. ac_status=$?
  3039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3040. test $ac_status = 0; }; then :
  3041. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3042. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3043. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3044. # `rm'.
  3045. for ac_file in conftest.exe conftest conftest.*; do
  3046. test -f "$ac_file" || continue
  3047. case $ac_file in
  3048. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3049. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3050. break;;
  3051. * ) break;;
  3052. esac
  3053. done
  3054. else
  3055. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3057. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3058. See \`config.log' for more details" "$LINENO" 5; }
  3059. fi
  3060. rm -f conftest conftest$ac_cv_exeext
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3062. $as_echo "$ac_cv_exeext" >&6; }
  3063. rm -f conftest.$ac_ext
  3064. EXEEXT=$ac_cv_exeext
  3065. ac_exeext=$EXEEXT
  3066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3067. /* end confdefs.h. */
  3068. #include <stdio.h>
  3069. int
  3070. main ()
  3071. {
  3072. FILE *f = fopen ("conftest.out", "w");
  3073. return ferror (f) || fclose (f) != 0;
  3074. ;
  3075. return 0;
  3076. }
  3077. _ACEOF
  3078. ac_clean_files="$ac_clean_files conftest.out"
  3079. # Check that the compiler produces executables we can run. If not, either
  3080. # the compiler is broken, or we cross compile.
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3082. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3083. if test "$cross_compiling" != yes; then
  3084. { { ac_try="$ac_link"
  3085. case "(($ac_try" in
  3086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3087. *) ac_try_echo=$ac_try;;
  3088. esac
  3089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3090. $as_echo "$ac_try_echo"; } >&5
  3091. (eval "$ac_link") 2>&5
  3092. ac_status=$?
  3093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3094. test $ac_status = 0; }
  3095. if { ac_try='./conftest$ac_cv_exeext'
  3096. { { case "(($ac_try" in
  3097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3098. *) ac_try_echo=$ac_try;;
  3099. esac
  3100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3101. $as_echo "$ac_try_echo"; } >&5
  3102. (eval "$ac_try") 2>&5
  3103. ac_status=$?
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3105. test $ac_status = 0; }; }; then
  3106. cross_compiling=no
  3107. else
  3108. if test "$cross_compiling" = maybe; then
  3109. cross_compiling=yes
  3110. else
  3111. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. as_fn_error $? "cannot run C compiled programs.
  3114. If you meant to cross compile, use \`--host'.
  3115. See \`config.log' for more details" "$LINENO" 5; }
  3116. fi
  3117. fi
  3118. fi
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3120. $as_echo "$cross_compiling" >&6; }
  3121. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3122. ac_clean_files=$ac_clean_files_save
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3124. $as_echo_n "checking for suffix of object files... " >&6; }
  3125. if ${ac_cv_objext+:} false; then :
  3126. $as_echo_n "(cached) " >&6
  3127. else
  3128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3129. /* end confdefs.h. */
  3130. int
  3131. main ()
  3132. {
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. rm -f conftest.o conftest.obj
  3138. if { { ac_try="$ac_compile"
  3139. case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3144. $as_echo "$ac_try_echo"; } >&5
  3145. (eval "$ac_compile") 2>&5
  3146. ac_status=$?
  3147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3148. test $ac_status = 0; }; then :
  3149. for ac_file in conftest.o conftest.obj conftest.*; do
  3150. test -f "$ac_file" || continue;
  3151. case $ac_file in
  3152. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3153. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3154. break;;
  3155. esac
  3156. done
  3157. else
  3158. $as_echo "$as_me: failed program was:" >&5
  3159. sed 's/^/| /' conftest.$ac_ext >&5
  3160. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3161. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3162. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3163. See \`config.log' for more details" "$LINENO" 5; }
  3164. fi
  3165. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3166. fi
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3168. $as_echo "$ac_cv_objext" >&6; }
  3169. OBJEXT=$ac_cv_objext
  3170. ac_objext=$OBJEXT
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3172. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3173. if ${ac_cv_c_compiler_gnu+:} false; then :
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. int
  3179. main ()
  3180. {
  3181. #ifndef __GNUC__
  3182. choke me
  3183. #endif
  3184. ;
  3185. return 0;
  3186. }
  3187. _ACEOF
  3188. if ac_fn_c_try_compile "$LINENO"; then :
  3189. ac_compiler_gnu=yes
  3190. else
  3191. ac_compiler_gnu=no
  3192. fi
  3193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3194. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3195. fi
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3197. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3198. if test $ac_compiler_gnu = yes; then
  3199. GCC=yes
  3200. else
  3201. GCC=
  3202. fi
  3203. ac_test_CFLAGS=${CFLAGS+set}
  3204. ac_save_CFLAGS=$CFLAGS
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3206. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3207. if ${ac_cv_prog_cc_g+:} false; then :
  3208. $as_echo_n "(cached) " >&6
  3209. else
  3210. ac_save_c_werror_flag=$ac_c_werror_flag
  3211. ac_c_werror_flag=yes
  3212. ac_cv_prog_cc_g=no
  3213. CFLAGS="-g"
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. if ac_fn_c_try_compile "$LINENO"; then :
  3224. ac_cv_prog_cc_g=yes
  3225. else
  3226. CFLAGS=""
  3227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. if ac_fn_c_try_compile "$LINENO"; then :
  3237. else
  3238. ac_c_werror_flag=$ac_save_c_werror_flag
  3239. CFLAGS="-g"
  3240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3241. /* end confdefs.h. */
  3242. int
  3243. main ()
  3244. {
  3245. ;
  3246. return 0;
  3247. }
  3248. _ACEOF
  3249. if ac_fn_c_try_compile "$LINENO"; then :
  3250. ac_cv_prog_cc_g=yes
  3251. fi
  3252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3253. fi
  3254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3257. ac_c_werror_flag=$ac_save_c_werror_flag
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3260. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3261. if test "$ac_test_CFLAGS" = set; then
  3262. CFLAGS=$ac_save_CFLAGS
  3263. elif test $ac_cv_prog_cc_g = yes; then
  3264. if test "$GCC" = yes; then
  3265. CFLAGS="-g -O2"
  3266. else
  3267. CFLAGS="-g"
  3268. fi
  3269. else
  3270. if test "$GCC" = yes; then
  3271. CFLAGS="-O2"
  3272. else
  3273. CFLAGS=
  3274. fi
  3275. fi
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3277. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3278. if ${ac_cv_prog_cc_c89+:} false; then :
  3279. $as_echo_n "(cached) " >&6
  3280. else
  3281. ac_cv_prog_cc_c89=no
  3282. ac_save_CC=$CC
  3283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3284. /* end confdefs.h. */
  3285. #include <stdarg.h>
  3286. #include <stdio.h>
  3287. #include <sys/types.h>
  3288. #include <sys/stat.h>
  3289. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3290. struct buf { int x; };
  3291. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3292. static char *e (p, i)
  3293. char **p;
  3294. int i;
  3295. {
  3296. return p[i];
  3297. }
  3298. static char *f (char * (*g) (char **, int), char **p, ...)
  3299. {
  3300. char *s;
  3301. va_list v;
  3302. va_start (v,p);
  3303. s = g (p, va_arg (v,int));
  3304. va_end (v);
  3305. return s;
  3306. }
  3307. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3308. function prototypes and stuff, but not '\xHH' hex character constants.
  3309. These don't provoke an error unfortunately, instead are silently treated
  3310. as 'x'. The following induces an error, until -std is added to get
  3311. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3312. array size at least. It's necessary to write '\x00'==0 to get something
  3313. that's true only with -std. */
  3314. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3315. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3316. inside strings and character constants. */
  3317. #define FOO(x) 'x'
  3318. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3319. int test (int i, double x);
  3320. struct s1 {int (*f) (int a);};
  3321. struct s2 {int (*f) (double a);};
  3322. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3323. int argc;
  3324. char **argv;
  3325. int
  3326. main ()
  3327. {
  3328. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3329. ;
  3330. return 0;
  3331. }
  3332. _ACEOF
  3333. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3334. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3335. do
  3336. CC="$ac_save_CC $ac_arg"
  3337. if ac_fn_c_try_compile "$LINENO"; then :
  3338. ac_cv_prog_cc_c89=$ac_arg
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext
  3341. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3342. done
  3343. rm -f conftest.$ac_ext
  3344. CC=$ac_save_CC
  3345. fi
  3346. # AC_CACHE_VAL
  3347. case "x$ac_cv_prog_cc_c89" in
  3348. x)
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3350. $as_echo "none needed" >&6; } ;;
  3351. xno)
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3353. $as_echo "unsupported" >&6; } ;;
  3354. *)
  3355. CC="$CC $ac_cv_prog_cc_c89"
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3357. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3358. esac
  3359. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3360. fi
  3361. ac_ext=c
  3362. ac_cpp='$CPP $CPPFLAGS'
  3363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3366. DEPDIR="${am__leading_dot}deps"
  3367. ac_config_commands="$ac_config_commands depfiles"
  3368. am_make=${MAKE-make}
  3369. cat > confinc << 'END'
  3370. am__doit:
  3371. @echo this is the am__doit target
  3372. .PHONY: am__doit
  3373. END
  3374. # If we don't find an include directive, just comment out the code.
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3376. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3377. am__include="#"
  3378. am__quote=
  3379. _am_result=none
  3380. # First try GNU make style include.
  3381. echo "include confinc" > confmf
  3382. # Ignore all kinds of additional output from `make'.
  3383. case `$am_make -s -f confmf 2> /dev/null` in #(
  3384. *the\ am__doit\ target*)
  3385. am__include=include
  3386. am__quote=
  3387. _am_result=GNU
  3388. ;;
  3389. esac
  3390. # Now try BSD make style include.
  3391. if test "$am__include" = "#"; then
  3392. echo '.include "confinc"' > confmf
  3393. case `$am_make -s -f confmf 2> /dev/null` in #(
  3394. *the\ am__doit\ target*)
  3395. am__include=.include
  3396. am__quote="\""
  3397. _am_result=BSD
  3398. ;;
  3399. esac
  3400. fi
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3402. $as_echo "$_am_result" >&6; }
  3403. rm -f confinc confmf
  3404. # Check whether --enable-dependency-tracking was given.
  3405. if test "${enable_dependency_tracking+set}" = set; then :
  3406. enableval=$enable_dependency_tracking;
  3407. fi
  3408. if test "x$enable_dependency_tracking" != xno; then
  3409. am_depcomp="$ac_aux_dir/depcomp"
  3410. AMDEPBACKSLASH='\'
  3411. am__nodep='_no'
  3412. fi
  3413. if test "x$enable_dependency_tracking" != xno; then
  3414. AMDEP_TRUE=
  3415. AMDEP_FALSE='#'
  3416. else
  3417. AMDEP_TRUE='#'
  3418. AMDEP_FALSE=
  3419. fi
  3420. depcc="$CC" am_compiler_list=
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3422. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3423. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3424. $as_echo_n "(cached) " >&6
  3425. else
  3426. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3427. # We make a subdir and do the tests there. Otherwise we can end up
  3428. # making bogus files that we don't know about and never remove. For
  3429. # instance it was reported that on HP-UX the gcc test will end up
  3430. # making a dummy file named `D' -- because `-MD' means `put the output
  3431. # in D'.
  3432. rm -rf conftest.dir
  3433. mkdir conftest.dir
  3434. # Copy depcomp to subdir because otherwise we won't find it if we're
  3435. # using a relative directory.
  3436. cp "$am_depcomp" conftest.dir
  3437. cd conftest.dir
  3438. # We will build objects and dependencies in a subdirectory because
  3439. # it helps to detect inapplicable dependency modes. For instance
  3440. # both Tru64's cc and ICC support -MD to output dependencies as a
  3441. # side effect of compilation, but ICC will put the dependencies in
  3442. # the current directory while Tru64 will put them in the object
  3443. # directory.
  3444. mkdir sub
  3445. am_cv_CC_dependencies_compiler_type=none
  3446. if test "$am_compiler_list" = ""; then
  3447. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3448. fi
  3449. am__universal=false
  3450. case " $depcc " in #(
  3451. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3452. esac
  3453. for depmode in $am_compiler_list; do
  3454. # Setup a source with many dependencies, because some compilers
  3455. # like to wrap large dependency lists on column 80 (with \), and
  3456. # we should not choose a depcomp mode which is confused by this.
  3457. #
  3458. # We need to recreate these files for each test, as the compiler may
  3459. # overwrite some of them when testing with obscure command lines.
  3460. # This happens at least with the AIX C compiler.
  3461. : > sub/conftest.c
  3462. for i in 1 2 3 4 5 6; do
  3463. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3464. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3465. # Solaris 8's {/usr,}/bin/sh.
  3466. touch sub/conftst$i.h
  3467. done
  3468. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3469. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3470. # mode. It turns out that the SunPro C++ compiler does not properly
  3471. # handle `-M -o', and we need to detect this. Also, some Intel
  3472. # versions had trouble with output in subdirs
  3473. am__obj=sub/conftest.${OBJEXT-o}
  3474. am__minus_obj="-o $am__obj"
  3475. case $depmode in
  3476. gcc)
  3477. # This depmode causes a compiler race in universal mode.
  3478. test "$am__universal" = false || continue
  3479. ;;
  3480. nosideeffect)
  3481. # after this tag, mechanisms are not by side-effect, so they'll
  3482. # only be used when explicitly requested
  3483. if test "x$enable_dependency_tracking" = xyes; then
  3484. continue
  3485. else
  3486. break
  3487. fi
  3488. ;;
  3489. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3490. # This compiler won't grok `-c -o', but also, the minuso test has
  3491. # not run yet. These depmodes are late enough in the game, and
  3492. # so weak that their functioning should not be impacted.
  3493. am__obj=conftest.${OBJEXT-o}
  3494. am__minus_obj=
  3495. ;;
  3496. none) break ;;
  3497. esac
  3498. if depmode=$depmode \
  3499. source=sub/conftest.c object=$am__obj \
  3500. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3501. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3502. >/dev/null 2>conftest.err &&
  3503. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3504. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3505. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3506. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3507. # icc doesn't choke on unknown options, it will just issue warnings
  3508. # or remarks (even with -Werror). So we grep stderr for any message
  3509. # that says an option was ignored or not supported.
  3510. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3511. # icc: Command line warning: ignoring option '-M'; no argument required
  3512. # The diagnosis changed in icc 8.0:
  3513. # icc: Command line remark: option '-MP' not supported
  3514. if (grep 'ignoring option' conftest.err ||
  3515. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3516. am_cv_CC_dependencies_compiler_type=$depmode
  3517. break
  3518. fi
  3519. fi
  3520. done
  3521. cd ..
  3522. rm -rf conftest.dir
  3523. else
  3524. am_cv_CC_dependencies_compiler_type=none
  3525. fi
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3528. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3529. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3530. if
  3531. test "x$enable_dependency_tracking" != xno \
  3532. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3533. am__fastdepCC_TRUE=
  3534. am__fastdepCC_FALSE='#'
  3535. else
  3536. am__fastdepCC_TRUE='#'
  3537. am__fastdepCC_FALSE=
  3538. fi
  3539. case `pwd` in
  3540. *\ * | *\ *)
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3542. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3543. esac
  3544. macro_version='2.4.2'
  3545. macro_revision='1.3337'
  3546. ltmain="$ac_aux_dir/ltmain.sh"
  3547. # Make sure we can run config.sub.
  3548. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3549. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3551. $as_echo_n "checking build system type... " >&6; }
  3552. if ${ac_cv_build+:} false; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. ac_build_alias=$build_alias
  3556. test "x$ac_build_alias" = x &&
  3557. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3558. test "x$ac_build_alias" = x &&
  3559. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3560. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3561. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3564. $as_echo "$ac_cv_build" >&6; }
  3565. case $ac_cv_build in
  3566. *-*-*) ;;
  3567. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3568. esac
  3569. build=$ac_cv_build
  3570. ac_save_IFS=$IFS; IFS='-'
  3571. set x $ac_cv_build
  3572. shift
  3573. build_cpu=$1
  3574. build_vendor=$2
  3575. shift; shift
  3576. # Remember, the first character of IFS is used to create $*,
  3577. # except with old shells:
  3578. build_os=$*
  3579. IFS=$ac_save_IFS
  3580. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3582. $as_echo_n "checking host system type... " >&6; }
  3583. if ${ac_cv_host+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. if test "x$host_alias" = x; then
  3587. ac_cv_host=$ac_cv_build
  3588. else
  3589. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3590. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3591. fi
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3594. $as_echo "$ac_cv_host" >&6; }
  3595. case $ac_cv_host in
  3596. *-*-*) ;;
  3597. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3598. esac
  3599. host=$ac_cv_host
  3600. ac_save_IFS=$IFS; IFS='-'
  3601. set x $ac_cv_host
  3602. shift
  3603. host_cpu=$1
  3604. host_vendor=$2
  3605. shift; shift
  3606. # Remember, the first character of IFS is used to create $*,
  3607. # except with old shells:
  3608. host_os=$*
  3609. IFS=$ac_save_IFS
  3610. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3611. # Backslashify metacharacters that are still active within
  3612. # double-quoted strings.
  3613. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3614. # Same as above, but do not quote variable references.
  3615. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3616. # Sed substitution to delay expansion of an escaped shell variable in a
  3617. # double_quote_subst'ed string.
  3618. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3619. # Sed substitution to delay expansion of an escaped single quote.
  3620. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3621. # Sed substitution to avoid accidental globbing in evaled expressions
  3622. no_glob_subst='s/\*/\\\*/g'
  3623. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3624. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3625. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3627. $as_echo_n "checking how to print strings... " >&6; }
  3628. # Test print first, because it will be a builtin if present.
  3629. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3630. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3631. ECHO='print -r --'
  3632. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3633. ECHO='printf %s\n'
  3634. else
  3635. # Use this function as a fallback that always works.
  3636. func_fallback_echo ()
  3637. {
  3638. eval 'cat <<_LTECHO_EOF
  3639. $1
  3640. _LTECHO_EOF'
  3641. }
  3642. ECHO='func_fallback_echo'
  3643. fi
  3644. # func_echo_all arg...
  3645. # Invoke $ECHO with all args, space-separated.
  3646. func_echo_all ()
  3647. {
  3648. $ECHO ""
  3649. }
  3650. case "$ECHO" in
  3651. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3652. $as_echo "printf" >&6; } ;;
  3653. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3654. $as_echo "print -r" >&6; } ;;
  3655. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3656. $as_echo "cat" >&6; } ;;
  3657. esac
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3659. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3660. if ${ac_cv_path_SED+:} false; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3664. for ac_i in 1 2 3 4 5 6 7; do
  3665. ac_script="$ac_script$as_nl$ac_script"
  3666. done
  3667. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3668. { ac_script=; unset ac_script;}
  3669. if test -z "$SED"; then
  3670. ac_path_SED_found=false
  3671. # Loop through the user's path and test for each of PROGNAME-LIST
  3672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3673. for as_dir in $PATH
  3674. do
  3675. IFS=$as_save_IFS
  3676. test -z "$as_dir" && as_dir=.
  3677. for ac_prog in sed gsed; do
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3680. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3681. # Check for GNU ac_path_SED and select it if it is found.
  3682. # Check for GNU $ac_path_SED
  3683. case `"$ac_path_SED" --version 2>&1` in
  3684. *GNU*)
  3685. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3686. *)
  3687. ac_count=0
  3688. $as_echo_n 0123456789 >"conftest.in"
  3689. while :
  3690. do
  3691. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3692. mv "conftest.tmp" "conftest.in"
  3693. cp "conftest.in" "conftest.nl"
  3694. $as_echo '' >> "conftest.nl"
  3695. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3696. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3697. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3698. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3699. # Best one so far, save it but keep looking for a better one
  3700. ac_cv_path_SED="$ac_path_SED"
  3701. ac_path_SED_max=$ac_count
  3702. fi
  3703. # 10*(2^10) chars as input seems more than enough
  3704. test $ac_count -gt 10 && break
  3705. done
  3706. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3707. esac
  3708. $ac_path_SED_found && break 3
  3709. done
  3710. done
  3711. done
  3712. IFS=$as_save_IFS
  3713. if test -z "$ac_cv_path_SED"; then
  3714. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3715. fi
  3716. else
  3717. ac_cv_path_SED=$SED
  3718. fi
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3721. $as_echo "$ac_cv_path_SED" >&6; }
  3722. SED="$ac_cv_path_SED"
  3723. rm -f conftest.sed
  3724. test -z "$SED" && SED=sed
  3725. Xsed="$SED -e 1s/^X//"
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3727. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3728. if ${ac_cv_path_GREP+:} false; then :
  3729. $as_echo_n "(cached) " >&6
  3730. else
  3731. if test -z "$GREP"; then
  3732. ac_path_GREP_found=false
  3733. # Loop through the user's path and test for each of PROGNAME-LIST
  3734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3735. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3736. do
  3737. IFS=$as_save_IFS
  3738. test -z "$as_dir" && as_dir=.
  3739. for ac_prog in grep ggrep; do
  3740. for ac_exec_ext in '' $ac_executable_extensions; do
  3741. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3742. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3743. # Check for GNU ac_path_GREP and select it if it is found.
  3744. # Check for GNU $ac_path_GREP
  3745. case `"$ac_path_GREP" --version 2>&1` in
  3746. *GNU*)
  3747. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3748. *)
  3749. ac_count=0
  3750. $as_echo_n 0123456789 >"conftest.in"
  3751. while :
  3752. do
  3753. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3754. mv "conftest.tmp" "conftest.in"
  3755. cp "conftest.in" "conftest.nl"
  3756. $as_echo 'GREP' >> "conftest.nl"
  3757. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3758. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3759. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3760. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3761. # Best one so far, save it but keep looking for a better one
  3762. ac_cv_path_GREP="$ac_path_GREP"
  3763. ac_path_GREP_max=$ac_count
  3764. fi
  3765. # 10*(2^10) chars as input seems more than enough
  3766. test $ac_count -gt 10 && break
  3767. done
  3768. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3769. esac
  3770. $ac_path_GREP_found && break 3
  3771. done
  3772. done
  3773. done
  3774. IFS=$as_save_IFS
  3775. if test -z "$ac_cv_path_GREP"; then
  3776. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3777. fi
  3778. else
  3779. ac_cv_path_GREP=$GREP
  3780. fi
  3781. fi
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3783. $as_echo "$ac_cv_path_GREP" >&6; }
  3784. GREP="$ac_cv_path_GREP"
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3786. $as_echo_n "checking for egrep... " >&6; }
  3787. if ${ac_cv_path_EGREP+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3791. then ac_cv_path_EGREP="$GREP -E"
  3792. else
  3793. if test -z "$EGREP"; then
  3794. ac_path_EGREP_found=false
  3795. # Loop through the user's path and test for each of PROGNAME-LIST
  3796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3797. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3798. do
  3799. IFS=$as_save_IFS
  3800. test -z "$as_dir" && as_dir=.
  3801. for ac_prog in egrep; do
  3802. for ac_exec_ext in '' $ac_executable_extensions; do
  3803. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3804. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3805. # Check for GNU ac_path_EGREP and select it if it is found.
  3806. # Check for GNU $ac_path_EGREP
  3807. case `"$ac_path_EGREP" --version 2>&1` in
  3808. *GNU*)
  3809. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3810. *)
  3811. ac_count=0
  3812. $as_echo_n 0123456789 >"conftest.in"
  3813. while :
  3814. do
  3815. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3816. mv "conftest.tmp" "conftest.in"
  3817. cp "conftest.in" "conftest.nl"
  3818. $as_echo 'EGREP' >> "conftest.nl"
  3819. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3820. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3821. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3822. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3823. # Best one so far, save it but keep looking for a better one
  3824. ac_cv_path_EGREP="$ac_path_EGREP"
  3825. ac_path_EGREP_max=$ac_count
  3826. fi
  3827. # 10*(2^10) chars as input seems more than enough
  3828. test $ac_count -gt 10 && break
  3829. done
  3830. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3831. esac
  3832. $ac_path_EGREP_found && break 3
  3833. done
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. if test -z "$ac_cv_path_EGREP"; then
  3838. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3839. fi
  3840. else
  3841. ac_cv_path_EGREP=$EGREP
  3842. fi
  3843. fi
  3844. fi
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3846. $as_echo "$ac_cv_path_EGREP" >&6; }
  3847. EGREP="$ac_cv_path_EGREP"
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3849. $as_echo_n "checking for fgrep... " >&6; }
  3850. if ${ac_cv_path_FGREP+:} false; then :
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3854. then ac_cv_path_FGREP="$GREP -F"
  3855. else
  3856. if test -z "$FGREP"; then
  3857. ac_path_FGREP_found=false
  3858. # Loop through the user's path and test for each of PROGNAME-LIST
  3859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3860. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3861. do
  3862. IFS=$as_save_IFS
  3863. test -z "$as_dir" && as_dir=.
  3864. for ac_prog in fgrep; do
  3865. for ac_exec_ext in '' $ac_executable_extensions; do
  3866. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3867. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3868. # Check for GNU ac_path_FGREP and select it if it is found.
  3869. # Check for GNU $ac_path_FGREP
  3870. case `"$ac_path_FGREP" --version 2>&1` in
  3871. *GNU*)
  3872. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3873. *)
  3874. ac_count=0
  3875. $as_echo_n 0123456789 >"conftest.in"
  3876. while :
  3877. do
  3878. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3879. mv "conftest.tmp" "conftest.in"
  3880. cp "conftest.in" "conftest.nl"
  3881. $as_echo 'FGREP' >> "conftest.nl"
  3882. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3883. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3884. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3885. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3886. # Best one so far, save it but keep looking for a better one
  3887. ac_cv_path_FGREP="$ac_path_FGREP"
  3888. ac_path_FGREP_max=$ac_count
  3889. fi
  3890. # 10*(2^10) chars as input seems more than enough
  3891. test $ac_count -gt 10 && break
  3892. done
  3893. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3894. esac
  3895. $ac_path_FGREP_found && break 3
  3896. done
  3897. done
  3898. done
  3899. IFS=$as_save_IFS
  3900. if test -z "$ac_cv_path_FGREP"; then
  3901. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3902. fi
  3903. else
  3904. ac_cv_path_FGREP=$FGREP
  3905. fi
  3906. fi
  3907. fi
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3909. $as_echo "$ac_cv_path_FGREP" >&6; }
  3910. FGREP="$ac_cv_path_FGREP"
  3911. test -z "$GREP" && GREP=grep
  3912. # Check whether --with-gnu-ld was given.
  3913. if test "${with_gnu_ld+set}" = set; then :
  3914. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3915. else
  3916. with_gnu_ld=no
  3917. fi
  3918. ac_prog=ld
  3919. if test "$GCC" = yes; then
  3920. # Check if gcc -print-prog-name=ld gives a path.
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3922. $as_echo_n "checking for ld used by $CC... " >&6; }
  3923. case $host in
  3924. *-*-mingw*)
  3925. # gcc leaves a trailing carriage return which upsets mingw
  3926. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3927. *)
  3928. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3929. esac
  3930. case $ac_prog in
  3931. # Accept absolute paths.
  3932. [\\/]* | ?:[\\/]*)
  3933. re_direlt='/[^/][^/]*/\.\./'
  3934. # Canonicalize the pathname of ld
  3935. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3936. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3937. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3938. done
  3939. test -z "$LD" && LD="$ac_prog"
  3940. ;;
  3941. "")
  3942. # If it fails, then pretend we aren't using GCC.
  3943. ac_prog=ld
  3944. ;;
  3945. *)
  3946. # If it is relative, then search for the first ld in PATH.
  3947. with_gnu_ld=unknown
  3948. ;;
  3949. esac
  3950. elif test "$with_gnu_ld" = yes; then
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3952. $as_echo_n "checking for GNU ld... " >&6; }
  3953. else
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3955. $as_echo_n "checking for non-GNU ld... " >&6; }
  3956. fi
  3957. if ${lt_cv_path_LD+:} false; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. if test -z "$LD"; then
  3961. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3962. for ac_dir in $PATH; do
  3963. IFS="$lt_save_ifs"
  3964. test -z "$ac_dir" && ac_dir=.
  3965. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3966. lt_cv_path_LD="$ac_dir/$ac_prog"
  3967. # Check to see if the program is GNU ld. I'd rather use --version,
  3968. # but apparently some variants of GNU ld only accept -v.
  3969. # Break only if it was the GNU/non-GNU ld that we prefer.
  3970. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3971. *GNU* | *'with BFD'*)
  3972. test "$with_gnu_ld" != no && break
  3973. ;;
  3974. *)
  3975. test "$with_gnu_ld" != yes && break
  3976. ;;
  3977. esac
  3978. fi
  3979. done
  3980. IFS="$lt_save_ifs"
  3981. else
  3982. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3983. fi
  3984. fi
  3985. LD="$lt_cv_path_LD"
  3986. if test -n "$LD"; then
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3988. $as_echo "$LD" >&6; }
  3989. else
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3991. $as_echo "no" >&6; }
  3992. fi
  3993. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3995. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3996. if ${lt_cv_prog_gnu_ld+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4000. case `$LD -v 2>&1 </dev/null` in
  4001. *GNU* | *'with BFD'*)
  4002. lt_cv_prog_gnu_ld=yes
  4003. ;;
  4004. *)
  4005. lt_cv_prog_gnu_ld=no
  4006. ;;
  4007. esac
  4008. fi
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4010. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4011. with_gnu_ld=$lt_cv_prog_gnu_ld
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4013. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4014. if ${lt_cv_path_NM+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. if test -n "$NM"; then
  4018. # Let the user override the test.
  4019. lt_cv_path_NM="$NM"
  4020. else
  4021. lt_nm_to_check="${ac_tool_prefix}nm"
  4022. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4023. lt_nm_to_check="$lt_nm_to_check nm"
  4024. fi
  4025. for lt_tmp_nm in $lt_nm_to_check; do
  4026. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4027. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4028. IFS="$lt_save_ifs"
  4029. test -z "$ac_dir" && ac_dir=.
  4030. tmp_nm="$ac_dir/$lt_tmp_nm"
  4031. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4032. # Check to see if the nm accepts a BSD-compat flag.
  4033. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4034. # nm: unknown option "B" ignored
  4035. # Tru64's nm complains that /dev/null is an invalid object file
  4036. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4037. */dev/null* | *'Invalid file or object type'*)
  4038. lt_cv_path_NM="$tmp_nm -B"
  4039. break
  4040. ;;
  4041. *)
  4042. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4043. */dev/null*)
  4044. lt_cv_path_NM="$tmp_nm -p"
  4045. break
  4046. ;;
  4047. *)
  4048. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4049. continue # so that we can try to find one that supports BSD flags
  4050. ;;
  4051. esac
  4052. ;;
  4053. esac
  4054. fi
  4055. done
  4056. IFS="$lt_save_ifs"
  4057. done
  4058. : ${lt_cv_path_NM=no}
  4059. fi
  4060. fi
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4062. $as_echo "$lt_cv_path_NM" >&6; }
  4063. if test "$lt_cv_path_NM" != "no"; then
  4064. NM="$lt_cv_path_NM"
  4065. else
  4066. # Didn't find any BSD compatible name lister, look for dumpbin.
  4067. if test -n "$DUMPBIN"; then :
  4068. # Let the user override the test.
  4069. else
  4070. if test -n "$ac_tool_prefix"; then
  4071. for ac_prog in dumpbin "link -dump"
  4072. do
  4073. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4074. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4076. $as_echo_n "checking for $ac_word... " >&6; }
  4077. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4078. $as_echo_n "(cached) " >&6
  4079. else
  4080. if test -n "$DUMPBIN"; then
  4081. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4082. else
  4083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4084. for as_dir in $PATH
  4085. do
  4086. IFS=$as_save_IFS
  4087. test -z "$as_dir" && as_dir=.
  4088. for ac_exec_ext in '' $ac_executable_extensions; do
  4089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4090. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4092. break 2
  4093. fi
  4094. done
  4095. done
  4096. IFS=$as_save_IFS
  4097. fi
  4098. fi
  4099. DUMPBIN=$ac_cv_prog_DUMPBIN
  4100. if test -n "$DUMPBIN"; then
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4102. $as_echo "$DUMPBIN" >&6; }
  4103. else
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4105. $as_echo "no" >&6; }
  4106. fi
  4107. test -n "$DUMPBIN" && break
  4108. done
  4109. fi
  4110. if test -z "$DUMPBIN"; then
  4111. ac_ct_DUMPBIN=$DUMPBIN
  4112. for ac_prog in dumpbin "link -dump"
  4113. do
  4114. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4115. set dummy $ac_prog; ac_word=$2
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4117. $as_echo_n "checking for $ac_word... " >&6; }
  4118. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. if test -n "$ac_ct_DUMPBIN"; then
  4122. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4123. else
  4124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4125. for as_dir in $PATH
  4126. do
  4127. IFS=$as_save_IFS
  4128. test -z "$as_dir" && as_dir=.
  4129. for ac_exec_ext in '' $ac_executable_extensions; do
  4130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4131. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4133. break 2
  4134. fi
  4135. done
  4136. done
  4137. IFS=$as_save_IFS
  4138. fi
  4139. fi
  4140. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4141. if test -n "$ac_ct_DUMPBIN"; then
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4143. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4144. else
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4146. $as_echo "no" >&6; }
  4147. fi
  4148. test -n "$ac_ct_DUMPBIN" && break
  4149. done
  4150. if test "x$ac_ct_DUMPBIN" = x; then
  4151. DUMPBIN=":"
  4152. else
  4153. case $cross_compiling:$ac_tool_warned in
  4154. yes:)
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4156. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4157. ac_tool_warned=yes ;;
  4158. esac
  4159. DUMPBIN=$ac_ct_DUMPBIN
  4160. fi
  4161. fi
  4162. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4163. *COFF*)
  4164. DUMPBIN="$DUMPBIN -symbols"
  4165. ;;
  4166. *)
  4167. DUMPBIN=:
  4168. ;;
  4169. esac
  4170. fi
  4171. if test "$DUMPBIN" != ":"; then
  4172. NM="$DUMPBIN"
  4173. fi
  4174. fi
  4175. test -z "$NM" && NM=nm
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4177. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4178. if ${lt_cv_nm_interface+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. lt_cv_nm_interface="BSD nm"
  4182. echo "int some_variable = 0;" > conftest.$ac_ext
  4183. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4184. (eval "$ac_compile" 2>conftest.err)
  4185. cat conftest.err >&5
  4186. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4187. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4188. cat conftest.err >&5
  4189. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4190. cat conftest.out >&5
  4191. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4192. lt_cv_nm_interface="MS dumpbin"
  4193. fi
  4194. rm -f conftest*
  4195. fi
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4197. $as_echo "$lt_cv_nm_interface" >&6; }
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4199. $as_echo_n "checking whether ln -s works... " >&6; }
  4200. LN_S=$as_ln_s
  4201. if test "$LN_S" = "ln -s"; then
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4203. $as_echo "yes" >&6; }
  4204. else
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4206. $as_echo "no, using $LN_S" >&6; }
  4207. fi
  4208. # find the maximum length of command line arguments
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4210. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4211. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4212. $as_echo_n "(cached) " >&6
  4213. else
  4214. i=0
  4215. teststring="ABCD"
  4216. case $build_os in
  4217. msdosdjgpp*)
  4218. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4219. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4220. # during glob expansion). Even if it were fixed, the result of this
  4221. # check would be larger than it should be.
  4222. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4223. ;;
  4224. gnu*)
  4225. # Under GNU Hurd, this test is not required because there is
  4226. # no limit to the length of command line arguments.
  4227. # Libtool will interpret -1 as no limit whatsoever
  4228. lt_cv_sys_max_cmd_len=-1;
  4229. ;;
  4230. cygwin* | mingw* | cegcc*)
  4231. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4232. # about 5 minutes as the teststring grows exponentially.
  4233. # Worse, since 9x/ME are not pre-emptively multitasking,
  4234. # you end up with a "frozen" computer, even though with patience
  4235. # the test eventually succeeds (with a max line length of 256k).
  4236. # Instead, let's just punt: use the minimum linelength reported by
  4237. # all of the supported platforms: 8192 (on NT/2K/XP).
  4238. lt_cv_sys_max_cmd_len=8192;
  4239. ;;
  4240. mint*)
  4241. # On MiNT this can take a long time and run out of memory.
  4242. lt_cv_sys_max_cmd_len=8192;
  4243. ;;
  4244. amigaos*)
  4245. # On AmigaOS with pdksh, this test takes hours, literally.
  4246. # So we just punt and use a minimum line length of 8192.
  4247. lt_cv_sys_max_cmd_len=8192;
  4248. ;;
  4249. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4250. # This has been around since 386BSD, at least. Likely further.
  4251. if test -x /sbin/sysctl; then
  4252. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4253. elif test -x /usr/sbin/sysctl; then
  4254. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4255. else
  4256. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4257. fi
  4258. # And add a safety zone
  4259. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4260. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4261. ;;
  4262. interix*)
  4263. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4264. lt_cv_sys_max_cmd_len=196608
  4265. ;;
  4266. os2*)
  4267. # The test takes a long time on OS/2.
  4268. lt_cv_sys_max_cmd_len=8192
  4269. ;;
  4270. osf*)
  4271. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4272. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4273. # nice to cause kernel panics so lets avoid the loop below.
  4274. # First set a reasonable default.
  4275. lt_cv_sys_max_cmd_len=16384
  4276. #
  4277. if test -x /sbin/sysconfig; then
  4278. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4279. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4280. esac
  4281. fi
  4282. ;;
  4283. sco3.2v5*)
  4284. lt_cv_sys_max_cmd_len=102400
  4285. ;;
  4286. sysv5* | sco5v6* | sysv4.2uw2*)
  4287. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4288. if test -n "$kargmax"; then
  4289. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4290. else
  4291. lt_cv_sys_max_cmd_len=32768
  4292. fi
  4293. ;;
  4294. *)
  4295. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4296. if test -n "$lt_cv_sys_max_cmd_len"; then
  4297. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4298. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4299. else
  4300. # Make teststring a little bigger before we do anything with it.
  4301. # a 1K string should be a reasonable start.
  4302. for i in 1 2 3 4 5 6 7 8 ; do
  4303. teststring=$teststring$teststring
  4304. done
  4305. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4306. # If test is not a shell built-in, we'll probably end up computing a
  4307. # maximum length that is only half of the actual maximum length, but
  4308. # we can't tell.
  4309. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4310. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4311. test $i != 17 # 1/2 MB should be enough
  4312. do
  4313. i=`expr $i + 1`
  4314. teststring=$teststring$teststring
  4315. done
  4316. # Only check the string length outside the loop.
  4317. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4318. teststring=
  4319. # Add a significant safety factor because C++ compilers can tack on
  4320. # massive amounts of additional arguments before passing them to the
  4321. # linker. It appears as though 1/2 is a usable value.
  4322. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4323. fi
  4324. ;;
  4325. esac
  4326. fi
  4327. if test -n $lt_cv_sys_max_cmd_len ; then
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4329. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4330. else
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4332. $as_echo "none" >&6; }
  4333. fi
  4334. max_cmd_len=$lt_cv_sys_max_cmd_len
  4335. : ${CP="cp -f"}
  4336. : ${MV="mv -f"}
  4337. : ${RM="rm -f"}
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4339. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4340. # Try some XSI features
  4341. xsi_shell=no
  4342. ( _lt_dummy="a/b/c"
  4343. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4344. = c,a/b,b/c, \
  4345. && eval 'test $(( 1 + 1 )) -eq 2 \
  4346. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4347. && xsi_shell=yes
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4349. $as_echo "$xsi_shell" >&6; }
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4351. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4352. lt_shell_append=no
  4353. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4354. >/dev/null 2>&1 \
  4355. && lt_shell_append=yes
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4357. $as_echo "$lt_shell_append" >&6; }
  4358. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4359. lt_unset=unset
  4360. else
  4361. lt_unset=false
  4362. fi
  4363. # test EBCDIC or ASCII
  4364. case `echo X|tr X '\101'` in
  4365. A) # ASCII based system
  4366. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4367. lt_SP2NL='tr \040 \012'
  4368. lt_NL2SP='tr \015\012 \040\040'
  4369. ;;
  4370. *) # EBCDIC based system
  4371. lt_SP2NL='tr \100 \n'
  4372. lt_NL2SP='tr \r\n \100\100'
  4373. ;;
  4374. esac
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4376. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4377. if ${lt_cv_to_host_file_cmd+:} false; then :
  4378. $as_echo_n "(cached) " >&6
  4379. else
  4380. case $host in
  4381. *-*-mingw* )
  4382. case $build in
  4383. *-*-mingw* ) # actually msys
  4384. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4385. ;;
  4386. *-*-cygwin* )
  4387. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4388. ;;
  4389. * ) # otherwise, assume *nix
  4390. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4391. ;;
  4392. esac
  4393. ;;
  4394. *-*-cygwin* )
  4395. case $build in
  4396. *-*-mingw* ) # actually msys
  4397. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4398. ;;
  4399. *-*-cygwin* )
  4400. lt_cv_to_host_file_cmd=func_convert_file_noop
  4401. ;;
  4402. * ) # otherwise, assume *nix
  4403. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4404. ;;
  4405. esac
  4406. ;;
  4407. * ) # unhandled hosts (and "normal" native builds)
  4408. lt_cv_to_host_file_cmd=func_convert_file_noop
  4409. ;;
  4410. esac
  4411. fi
  4412. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4414. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4416. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4417. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4418. $as_echo_n "(cached) " >&6
  4419. else
  4420. #assume ordinary cross tools, or native build.
  4421. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4422. case $host in
  4423. *-*-mingw* )
  4424. case $build in
  4425. *-*-mingw* ) # actually msys
  4426. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4427. ;;
  4428. esac
  4429. ;;
  4430. esac
  4431. fi
  4432. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4434. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4436. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4437. if ${lt_cv_ld_reload_flag+:} false; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. lt_cv_ld_reload_flag='-r'
  4441. fi
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4443. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4444. reload_flag=$lt_cv_ld_reload_flag
  4445. case $reload_flag in
  4446. "" | " "*) ;;
  4447. *) reload_flag=" $reload_flag" ;;
  4448. esac
  4449. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4450. case $host_os in
  4451. cygwin* | mingw* | pw32* | cegcc*)
  4452. if test "$GCC" != yes; then
  4453. reload_cmds=false
  4454. fi
  4455. ;;
  4456. darwin*)
  4457. if test "$GCC" = yes; then
  4458. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4459. else
  4460. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4461. fi
  4462. ;;
  4463. esac
  4464. if test -n "$ac_tool_prefix"; then
  4465. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4466. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4468. $as_echo_n "checking for $ac_word... " >&6; }
  4469. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4470. $as_echo_n "(cached) " >&6
  4471. else
  4472. if test -n "$OBJDUMP"; then
  4473. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4474. else
  4475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4476. for as_dir in $PATH
  4477. do
  4478. IFS=$as_save_IFS
  4479. test -z "$as_dir" && as_dir=.
  4480. for ac_exec_ext in '' $ac_executable_extensions; do
  4481. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4482. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4484. break 2
  4485. fi
  4486. done
  4487. done
  4488. IFS=$as_save_IFS
  4489. fi
  4490. fi
  4491. OBJDUMP=$ac_cv_prog_OBJDUMP
  4492. if test -n "$OBJDUMP"; then
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4494. $as_echo "$OBJDUMP" >&6; }
  4495. else
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4497. $as_echo "no" >&6; }
  4498. fi
  4499. fi
  4500. if test -z "$ac_cv_prog_OBJDUMP"; then
  4501. ac_ct_OBJDUMP=$OBJDUMP
  4502. # Extract the first word of "objdump", so it can be a program name with args.
  4503. set dummy objdump; ac_word=$2
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4505. $as_echo_n "checking for $ac_word... " >&6; }
  4506. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. if test -n "$ac_ct_OBJDUMP"; then
  4510. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4511. else
  4512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4513. for as_dir in $PATH
  4514. do
  4515. IFS=$as_save_IFS
  4516. test -z "$as_dir" && as_dir=.
  4517. for ac_exec_ext in '' $ac_executable_extensions; do
  4518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4519. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4521. break 2
  4522. fi
  4523. done
  4524. done
  4525. IFS=$as_save_IFS
  4526. fi
  4527. fi
  4528. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4529. if test -n "$ac_ct_OBJDUMP"; then
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4531. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4532. else
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4534. $as_echo "no" >&6; }
  4535. fi
  4536. if test "x$ac_ct_OBJDUMP" = x; then
  4537. OBJDUMP="false"
  4538. else
  4539. case $cross_compiling:$ac_tool_warned in
  4540. yes:)
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4542. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4543. ac_tool_warned=yes ;;
  4544. esac
  4545. OBJDUMP=$ac_ct_OBJDUMP
  4546. fi
  4547. else
  4548. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4549. fi
  4550. test -z "$OBJDUMP" && OBJDUMP=objdump
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4552. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4553. if ${lt_cv_deplibs_check_method+:} false; then :
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4557. lt_cv_file_magic_test_file=
  4558. lt_cv_deplibs_check_method='unknown'
  4559. # Need to set the preceding variable on all platforms that support
  4560. # interlibrary dependencies.
  4561. # 'none' -- dependencies not supported.
  4562. # `unknown' -- same as none, but documents that we really don't know.
  4563. # 'pass_all' -- all dependencies passed with no checks.
  4564. # 'test_compile' -- check by making test program.
  4565. # 'file_magic [[regex]]' -- check by looking for files in library path
  4566. # which responds to the $file_magic_cmd with a given extended regex.
  4567. # If you have `file' or equivalent on your system and you're not sure
  4568. # whether `pass_all' will *always* work, you probably want this one.
  4569. case $host_os in
  4570. aix[4-9]*)
  4571. lt_cv_deplibs_check_method=pass_all
  4572. ;;
  4573. beos*)
  4574. lt_cv_deplibs_check_method=pass_all
  4575. ;;
  4576. bsdi[45]*)
  4577. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4578. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4579. lt_cv_file_magic_test_file=/shlib/libc.so
  4580. ;;
  4581. cygwin*)
  4582. # func_win32_libid is a shell function defined in ltmain.sh
  4583. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4584. lt_cv_file_magic_cmd='func_win32_libid'
  4585. ;;
  4586. mingw* | pw32*)
  4587. # Base MSYS/MinGW do not provide the 'file' command needed by
  4588. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4589. # unless we find 'file', for example because we are cross-compiling.
  4590. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4591. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4592. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4593. lt_cv_file_magic_cmd='func_win32_libid'
  4594. else
  4595. # Keep this pattern in sync with the one in func_win32_libid.
  4596. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4597. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4598. fi
  4599. ;;
  4600. cegcc*)
  4601. # use the weaker test based on 'objdump'. See mingw*.
  4602. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4603. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4604. ;;
  4605. darwin* | rhapsody*)
  4606. lt_cv_deplibs_check_method=pass_all
  4607. ;;
  4608. freebsd* | dragonfly*)
  4609. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4610. case $host_cpu in
  4611. i*86 )
  4612. # Not sure whether the presence of OpenBSD here was a mistake.
  4613. # Let's accept both of them until this is cleared up.
  4614. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4615. lt_cv_file_magic_cmd=/usr/bin/file
  4616. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4617. ;;
  4618. esac
  4619. else
  4620. lt_cv_deplibs_check_method=pass_all
  4621. fi
  4622. ;;
  4623. gnu*)
  4624. lt_cv_deplibs_check_method=pass_all
  4625. ;;
  4626. haiku*)
  4627. lt_cv_deplibs_check_method=pass_all
  4628. ;;
  4629. hpux10.20* | hpux11*)
  4630. lt_cv_file_magic_cmd=/usr/bin/file
  4631. case $host_cpu in
  4632. ia64*)
  4633. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4634. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4635. ;;
  4636. hppa*64*)
  4637. 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]'
  4638. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4639. ;;
  4640. *)
  4641. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4642. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4643. ;;
  4644. esac
  4645. ;;
  4646. interix[3-9]*)
  4647. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4648. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4649. ;;
  4650. irix5* | irix6* | nonstopux*)
  4651. case $LD in
  4652. *-32|*"-32 ") libmagic=32-bit;;
  4653. *-n32|*"-n32 ") libmagic=N32;;
  4654. *-64|*"-64 ") libmagic=64-bit;;
  4655. *) libmagic=never-match;;
  4656. esac
  4657. lt_cv_deplibs_check_method=pass_all
  4658. ;;
  4659. # This must be glibc/ELF.
  4660. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4661. lt_cv_deplibs_check_method=pass_all
  4662. ;;
  4663. netbsd*)
  4664. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4665. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4666. else
  4667. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4668. fi
  4669. ;;
  4670. newos6*)
  4671. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4672. lt_cv_file_magic_cmd=/usr/bin/file
  4673. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4674. ;;
  4675. *nto* | *qnx*)
  4676. lt_cv_deplibs_check_method=pass_all
  4677. ;;
  4678. openbsd*)
  4679. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4680. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4681. else
  4682. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4683. fi
  4684. ;;
  4685. osf3* | osf4* | osf5*)
  4686. lt_cv_deplibs_check_method=pass_all
  4687. ;;
  4688. rdos*)
  4689. lt_cv_deplibs_check_method=pass_all
  4690. ;;
  4691. solaris*)
  4692. lt_cv_deplibs_check_method=pass_all
  4693. ;;
  4694. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4695. lt_cv_deplibs_check_method=pass_all
  4696. ;;
  4697. sysv4 | sysv4.3*)
  4698. case $host_vendor in
  4699. motorola)
  4700. 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]'
  4701. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4702. ;;
  4703. ncr)
  4704. lt_cv_deplibs_check_method=pass_all
  4705. ;;
  4706. sequent)
  4707. lt_cv_file_magic_cmd='/bin/file'
  4708. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4709. ;;
  4710. sni)
  4711. lt_cv_file_magic_cmd='/bin/file'
  4712. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4713. lt_cv_file_magic_test_file=/lib/libc.so
  4714. ;;
  4715. siemens)
  4716. lt_cv_deplibs_check_method=pass_all
  4717. ;;
  4718. pc)
  4719. lt_cv_deplibs_check_method=pass_all
  4720. ;;
  4721. esac
  4722. ;;
  4723. tpf*)
  4724. lt_cv_deplibs_check_method=pass_all
  4725. ;;
  4726. esac
  4727. fi
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4729. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4730. file_magic_glob=
  4731. want_nocaseglob=no
  4732. if test "$build" = "$host"; then
  4733. case $host_os in
  4734. mingw* | pw32*)
  4735. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4736. want_nocaseglob=yes
  4737. else
  4738. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4739. fi
  4740. ;;
  4741. esac
  4742. fi
  4743. file_magic_cmd=$lt_cv_file_magic_cmd
  4744. deplibs_check_method=$lt_cv_deplibs_check_method
  4745. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4746. if test -n "$ac_tool_prefix"; then
  4747. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4748. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4750. $as_echo_n "checking for $ac_word... " >&6; }
  4751. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4752. $as_echo_n "(cached) " >&6
  4753. else
  4754. if test -n "$DLLTOOL"; then
  4755. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4756. else
  4757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4758. for as_dir in $PATH
  4759. do
  4760. IFS=$as_save_IFS
  4761. test -z "$as_dir" && as_dir=.
  4762. for ac_exec_ext in '' $ac_executable_extensions; do
  4763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4764. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4766. break 2
  4767. fi
  4768. done
  4769. done
  4770. IFS=$as_save_IFS
  4771. fi
  4772. fi
  4773. DLLTOOL=$ac_cv_prog_DLLTOOL
  4774. if test -n "$DLLTOOL"; then
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4776. $as_echo "$DLLTOOL" >&6; }
  4777. else
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4779. $as_echo "no" >&6; }
  4780. fi
  4781. fi
  4782. if test -z "$ac_cv_prog_DLLTOOL"; then
  4783. ac_ct_DLLTOOL=$DLLTOOL
  4784. # Extract the first word of "dlltool", so it can be a program name with args.
  4785. set dummy dlltool; ac_word=$2
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4787. $as_echo_n "checking for $ac_word... " >&6; }
  4788. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. if test -n "$ac_ct_DLLTOOL"; then
  4792. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4793. else
  4794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4795. for as_dir in $PATH
  4796. do
  4797. IFS=$as_save_IFS
  4798. test -z "$as_dir" && as_dir=.
  4799. for ac_exec_ext in '' $ac_executable_extensions; do
  4800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4801. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4803. break 2
  4804. fi
  4805. done
  4806. done
  4807. IFS=$as_save_IFS
  4808. fi
  4809. fi
  4810. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4811. if test -n "$ac_ct_DLLTOOL"; then
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4813. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4814. else
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4816. $as_echo "no" >&6; }
  4817. fi
  4818. if test "x$ac_ct_DLLTOOL" = x; then
  4819. DLLTOOL="false"
  4820. else
  4821. case $cross_compiling:$ac_tool_warned in
  4822. yes:)
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4824. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4825. ac_tool_warned=yes ;;
  4826. esac
  4827. DLLTOOL=$ac_ct_DLLTOOL
  4828. fi
  4829. else
  4830. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4831. fi
  4832. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4834. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4835. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4839. case $host_os in
  4840. cygwin* | mingw* | pw32* | cegcc*)
  4841. # two different shell functions defined in ltmain.sh
  4842. # decide which to use based on capabilities of $DLLTOOL
  4843. case `$DLLTOOL --help 2>&1` in
  4844. *--identify-strict*)
  4845. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4846. ;;
  4847. *)
  4848. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4849. ;;
  4850. esac
  4851. ;;
  4852. *)
  4853. # fallback: assume linklib IS sharedlib
  4854. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4855. ;;
  4856. esac
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4859. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4860. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4861. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4862. if test -n "$ac_tool_prefix"; then
  4863. for ac_prog in ar
  4864. do
  4865. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4866. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4868. $as_echo_n "checking for $ac_word... " >&6; }
  4869. if ${ac_cv_prog_AR+:} false; then :
  4870. $as_echo_n "(cached) " >&6
  4871. else
  4872. if test -n "$AR"; then
  4873. ac_cv_prog_AR="$AR" # Let the user override the test.
  4874. else
  4875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4876. for as_dir in $PATH
  4877. do
  4878. IFS=$as_save_IFS
  4879. test -z "$as_dir" && as_dir=.
  4880. for ac_exec_ext in '' $ac_executable_extensions; do
  4881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4882. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4884. break 2
  4885. fi
  4886. done
  4887. done
  4888. IFS=$as_save_IFS
  4889. fi
  4890. fi
  4891. AR=$ac_cv_prog_AR
  4892. if test -n "$AR"; then
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4894. $as_echo "$AR" >&6; }
  4895. else
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4897. $as_echo "no" >&6; }
  4898. fi
  4899. test -n "$AR" && break
  4900. done
  4901. fi
  4902. if test -z "$AR"; then
  4903. ac_ct_AR=$AR
  4904. for ac_prog in ar
  4905. do
  4906. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4907. set dummy $ac_prog; ac_word=$2
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4909. $as_echo_n "checking for $ac_word... " >&6; }
  4910. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. if test -n "$ac_ct_AR"; then
  4914. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4915. else
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4923. ac_cv_prog_ac_ct_AR="$ac_prog"
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4925. break 2
  4926. fi
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. fi
  4931. fi
  4932. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4933. if test -n "$ac_ct_AR"; then
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4935. $as_echo "$ac_ct_AR" >&6; }
  4936. else
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4938. $as_echo "no" >&6; }
  4939. fi
  4940. test -n "$ac_ct_AR" && break
  4941. done
  4942. if test "x$ac_ct_AR" = x; then
  4943. AR="false"
  4944. else
  4945. case $cross_compiling:$ac_tool_warned in
  4946. yes:)
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4949. ac_tool_warned=yes ;;
  4950. esac
  4951. AR=$ac_ct_AR
  4952. fi
  4953. fi
  4954. : ${AR=ar}
  4955. : ${AR_FLAGS=cru}
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4957. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4958. if ${lt_cv_ar_at_file+:} false; then :
  4959. $as_echo_n "(cached) " >&6
  4960. else
  4961. lt_cv_ar_at_file=no
  4962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4963. /* end confdefs.h. */
  4964. int
  4965. main ()
  4966. {
  4967. ;
  4968. return 0;
  4969. }
  4970. _ACEOF
  4971. if ac_fn_c_try_compile "$LINENO"; then :
  4972. echo conftest.$ac_objext > conftest.lst
  4973. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4974. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4975. (eval $lt_ar_try) 2>&5
  4976. ac_status=$?
  4977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4978. test $ac_status = 0; }
  4979. if test "$ac_status" -eq 0; then
  4980. # Ensure the archiver fails upon bogus file names.
  4981. rm -f conftest.$ac_objext libconftest.a
  4982. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4983. (eval $lt_ar_try) 2>&5
  4984. ac_status=$?
  4985. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4986. test $ac_status = 0; }
  4987. if test "$ac_status" -ne 0; then
  4988. lt_cv_ar_at_file=@
  4989. fi
  4990. fi
  4991. rm -f conftest.* libconftest.a
  4992. fi
  4993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994. fi
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4996. $as_echo "$lt_cv_ar_at_file" >&6; }
  4997. if test "x$lt_cv_ar_at_file" = xno; then
  4998. archiver_list_spec=
  4999. else
  5000. archiver_list_spec=$lt_cv_ar_at_file
  5001. fi
  5002. if test -n "$ac_tool_prefix"; then
  5003. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5004. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5006. $as_echo_n "checking for $ac_word... " >&6; }
  5007. if ${ac_cv_prog_STRIP+:} false; then :
  5008. $as_echo_n "(cached) " >&6
  5009. else
  5010. if test -n "$STRIP"; then
  5011. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5012. else
  5013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5014. for as_dir in $PATH
  5015. do
  5016. IFS=$as_save_IFS
  5017. test -z "$as_dir" && as_dir=.
  5018. for ac_exec_ext in '' $ac_executable_extensions; do
  5019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5020. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5022. break 2
  5023. fi
  5024. done
  5025. done
  5026. IFS=$as_save_IFS
  5027. fi
  5028. fi
  5029. STRIP=$ac_cv_prog_STRIP
  5030. if test -n "$STRIP"; then
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5032. $as_echo "$STRIP" >&6; }
  5033. else
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5035. $as_echo "no" >&6; }
  5036. fi
  5037. fi
  5038. if test -z "$ac_cv_prog_STRIP"; then
  5039. ac_ct_STRIP=$STRIP
  5040. # Extract the first word of "strip", so it can be a program name with args.
  5041. set dummy strip; ac_word=$2
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5043. $as_echo_n "checking for $ac_word... " >&6; }
  5044. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5045. $as_echo_n "(cached) " >&6
  5046. else
  5047. if test -n "$ac_ct_STRIP"; then
  5048. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5049. else
  5050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5051. for as_dir in $PATH
  5052. do
  5053. IFS=$as_save_IFS
  5054. test -z "$as_dir" && as_dir=.
  5055. for ac_exec_ext in '' $ac_executable_extensions; do
  5056. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5057. ac_cv_prog_ac_ct_STRIP="strip"
  5058. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5059. break 2
  5060. fi
  5061. done
  5062. done
  5063. IFS=$as_save_IFS
  5064. fi
  5065. fi
  5066. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5067. if test -n "$ac_ct_STRIP"; then
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5069. $as_echo "$ac_ct_STRIP" >&6; }
  5070. else
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5072. $as_echo "no" >&6; }
  5073. fi
  5074. if test "x$ac_ct_STRIP" = x; then
  5075. STRIP=":"
  5076. else
  5077. case $cross_compiling:$ac_tool_warned in
  5078. yes:)
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5080. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5081. ac_tool_warned=yes ;;
  5082. esac
  5083. STRIP=$ac_ct_STRIP
  5084. fi
  5085. else
  5086. STRIP="$ac_cv_prog_STRIP"
  5087. fi
  5088. test -z "$STRIP" && STRIP=:
  5089. if test -n "$ac_tool_prefix"; then
  5090. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5091. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5093. $as_echo_n "checking for $ac_word... " >&6; }
  5094. if ${ac_cv_prog_RANLIB+:} false; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. if test -n "$RANLIB"; then
  5098. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5099. else
  5100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5101. for as_dir in $PATH
  5102. do
  5103. IFS=$as_save_IFS
  5104. test -z "$as_dir" && as_dir=.
  5105. for ac_exec_ext in '' $ac_executable_extensions; do
  5106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5107. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5109. break 2
  5110. fi
  5111. done
  5112. done
  5113. IFS=$as_save_IFS
  5114. fi
  5115. fi
  5116. RANLIB=$ac_cv_prog_RANLIB
  5117. if test -n "$RANLIB"; then
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5119. $as_echo "$RANLIB" >&6; }
  5120. else
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5122. $as_echo "no" >&6; }
  5123. fi
  5124. fi
  5125. if test -z "$ac_cv_prog_RANLIB"; then
  5126. ac_ct_RANLIB=$RANLIB
  5127. # Extract the first word of "ranlib", so it can be a program name with args.
  5128. set dummy ranlib; ac_word=$2
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5130. $as_echo_n "checking for $ac_word... " >&6; }
  5131. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5132. $as_echo_n "(cached) " >&6
  5133. else
  5134. if test -n "$ac_ct_RANLIB"; then
  5135. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5136. else
  5137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5138. for as_dir in $PATH
  5139. do
  5140. IFS=$as_save_IFS
  5141. test -z "$as_dir" && as_dir=.
  5142. for ac_exec_ext in '' $ac_executable_extensions; do
  5143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5144. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5146. break 2
  5147. fi
  5148. done
  5149. done
  5150. IFS=$as_save_IFS
  5151. fi
  5152. fi
  5153. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5154. if test -n "$ac_ct_RANLIB"; then
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5156. $as_echo "$ac_ct_RANLIB" >&6; }
  5157. else
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5159. $as_echo "no" >&6; }
  5160. fi
  5161. if test "x$ac_ct_RANLIB" = x; then
  5162. RANLIB=":"
  5163. else
  5164. case $cross_compiling:$ac_tool_warned in
  5165. yes:)
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5167. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5168. ac_tool_warned=yes ;;
  5169. esac
  5170. RANLIB=$ac_ct_RANLIB
  5171. fi
  5172. else
  5173. RANLIB="$ac_cv_prog_RANLIB"
  5174. fi
  5175. test -z "$RANLIB" && RANLIB=:
  5176. # Determine commands to create old-style static archives.
  5177. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5178. old_postinstall_cmds='chmod 644 $oldlib'
  5179. old_postuninstall_cmds=
  5180. if test -n "$RANLIB"; then
  5181. case $host_os in
  5182. openbsd*)
  5183. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5184. ;;
  5185. *)
  5186. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5187. ;;
  5188. esac
  5189. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5190. fi
  5191. case $host_os in
  5192. darwin*)
  5193. lock_old_archive_extraction=yes ;;
  5194. *)
  5195. lock_old_archive_extraction=no ;;
  5196. esac
  5197. # If no C compiler was specified, use CC.
  5198. LTCC=${LTCC-"$CC"}
  5199. # If no C compiler flags were specified, use CFLAGS.
  5200. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5201. # Allow CC to be a program name with arguments.
  5202. compiler=$CC
  5203. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5205. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5206. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5207. $as_echo_n "(cached) " >&6
  5208. else
  5209. # These are sane defaults that work on at least a few old systems.
  5210. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5211. # Character class describing NM global symbol codes.
  5212. symcode='[BCDEGRST]'
  5213. # Regexp to match symbols that can be accessed directly from C.
  5214. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5215. # Define system-specific variables.
  5216. case $host_os in
  5217. aix*)
  5218. symcode='[BCDT]'
  5219. ;;
  5220. cygwin* | mingw* | pw32* | cegcc*)
  5221. symcode='[ABCDGISTW]'
  5222. ;;
  5223. hpux*)
  5224. if test "$host_cpu" = ia64; then
  5225. symcode='[ABCDEGRST]'
  5226. fi
  5227. ;;
  5228. irix* | nonstopux*)
  5229. symcode='[BCDEGRST]'
  5230. ;;
  5231. osf*)
  5232. symcode='[BCDEGQRST]'
  5233. ;;
  5234. solaris*)
  5235. symcode='[BDRT]'
  5236. ;;
  5237. sco3.2v5*)
  5238. symcode='[DT]'
  5239. ;;
  5240. sysv4.2uw2*)
  5241. symcode='[DT]'
  5242. ;;
  5243. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5244. symcode='[ABDT]'
  5245. ;;
  5246. sysv4)
  5247. symcode='[DFNSTU]'
  5248. ;;
  5249. esac
  5250. # If we're using GNU nm, then use its standard symbol codes.
  5251. case `$NM -V 2>&1` in
  5252. *GNU* | *'with BFD'*)
  5253. symcode='[ABCDGIRSTW]' ;;
  5254. esac
  5255. # Transform an extracted symbol line into a proper C declaration.
  5256. # Some systems (esp. on ia64) link data and code symbols differently,
  5257. # so use this general approach.
  5258. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5259. # Transform an extracted symbol line into symbol name and symbol address
  5260. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5261. 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'"
  5262. # Handle CRLF in mingw tool chain
  5263. opt_cr=
  5264. case $build_os in
  5265. mingw*)
  5266. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5267. ;;
  5268. esac
  5269. # Try without a prefix underscore, then with it.
  5270. for ac_symprfx in "" "_"; do
  5271. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5272. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5273. # Write the raw and C identifiers.
  5274. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5275. # Fake it for dumpbin and say T for any non-static function
  5276. # and D for any global variable.
  5277. # Also find C++ and __fastcall symbols from MSVC++,
  5278. # which start with @ or ?.
  5279. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5280. " {last_section=section; section=\$ 3};"\
  5281. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5282. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5283. " \$ 0!~/External *\|/{next};"\
  5284. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5285. " {if(hide[section]) next};"\
  5286. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5287. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5288. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5289. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5290. " ' prfx=^$ac_symprfx"
  5291. else
  5292. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5293. fi
  5294. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5295. # Check to see that the pipe works correctly.
  5296. pipe_works=no
  5297. rm -f conftest*
  5298. cat > conftest.$ac_ext <<_LT_EOF
  5299. #ifdef __cplusplus
  5300. extern "C" {
  5301. #endif
  5302. char nm_test_var;
  5303. void nm_test_func(void);
  5304. void nm_test_func(void){}
  5305. #ifdef __cplusplus
  5306. }
  5307. #endif
  5308. int main(){nm_test_var='a';nm_test_func();return(0);}
  5309. _LT_EOF
  5310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5311. (eval $ac_compile) 2>&5
  5312. ac_status=$?
  5313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5314. test $ac_status = 0; }; then
  5315. # Now try to grab the symbols.
  5316. nlist=conftest.nm
  5317. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5318. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5319. ac_status=$?
  5320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5321. test $ac_status = 0; } && test -s "$nlist"; then
  5322. # Try sorting and uniquifying the output.
  5323. if sort "$nlist" | uniq > "$nlist"T; then
  5324. mv -f "$nlist"T "$nlist"
  5325. else
  5326. rm -f "$nlist"T
  5327. fi
  5328. # Make sure that we snagged all the symbols we need.
  5329. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5330. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5331. cat <<_LT_EOF > conftest.$ac_ext
  5332. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5333. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5334. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5335. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5336. # define LT_DLSYM_CONST
  5337. #elif defined(__osf__)
  5338. /* This system does not cope well with relocations in const data. */
  5339. # define LT_DLSYM_CONST
  5340. #else
  5341. # define LT_DLSYM_CONST const
  5342. #endif
  5343. #ifdef __cplusplus
  5344. extern "C" {
  5345. #endif
  5346. _LT_EOF
  5347. # Now generate the symbol file.
  5348. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5349. cat <<_LT_EOF >> conftest.$ac_ext
  5350. /* The mapping between symbol names and symbols. */
  5351. LT_DLSYM_CONST struct {
  5352. const char *name;
  5353. void *address;
  5354. }
  5355. lt__PROGRAM__LTX_preloaded_symbols[] =
  5356. {
  5357. { "@PROGRAM@", (void *) 0 },
  5358. _LT_EOF
  5359. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5360. cat <<\_LT_EOF >> conftest.$ac_ext
  5361. {0, (void *) 0}
  5362. };
  5363. /* This works around a problem in FreeBSD linker */
  5364. #ifdef FREEBSD_WORKAROUND
  5365. static const void *lt_preloaded_setup() {
  5366. return lt__PROGRAM__LTX_preloaded_symbols;
  5367. }
  5368. #endif
  5369. #ifdef __cplusplus
  5370. }
  5371. #endif
  5372. _LT_EOF
  5373. # Now try linking the two files.
  5374. mv conftest.$ac_objext conftstm.$ac_objext
  5375. lt_globsym_save_LIBS=$LIBS
  5376. lt_globsym_save_CFLAGS=$CFLAGS
  5377. LIBS="conftstm.$ac_objext"
  5378. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5380. (eval $ac_link) 2>&5
  5381. ac_status=$?
  5382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5383. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5384. pipe_works=yes
  5385. fi
  5386. LIBS=$lt_globsym_save_LIBS
  5387. CFLAGS=$lt_globsym_save_CFLAGS
  5388. else
  5389. echo "cannot find nm_test_func in $nlist" >&5
  5390. fi
  5391. else
  5392. echo "cannot find nm_test_var in $nlist" >&5
  5393. fi
  5394. else
  5395. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5396. fi
  5397. else
  5398. echo "$progname: failed program was:" >&5
  5399. cat conftest.$ac_ext >&5
  5400. fi
  5401. rm -rf conftest* conftst*
  5402. # Do not use the global_symbol_pipe unless it works.
  5403. if test "$pipe_works" = yes; then
  5404. break
  5405. else
  5406. lt_cv_sys_global_symbol_pipe=
  5407. fi
  5408. done
  5409. fi
  5410. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5411. lt_cv_sys_global_symbol_to_cdecl=
  5412. fi
  5413. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5415. $as_echo "failed" >&6; }
  5416. else
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5418. $as_echo "ok" >&6; }
  5419. fi
  5420. # Response file support.
  5421. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5422. nm_file_list_spec='@'
  5423. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5424. nm_file_list_spec='@'
  5425. fi
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5427. $as_echo_n "checking for sysroot... " >&6; }
  5428. # Check whether --with-sysroot was given.
  5429. if test "${with_sysroot+set}" = set; then :
  5430. withval=$with_sysroot;
  5431. else
  5432. with_sysroot=no
  5433. fi
  5434. lt_sysroot=
  5435. case ${with_sysroot} in #(
  5436. yes)
  5437. if test "$GCC" = yes; then
  5438. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5439. fi
  5440. ;; #(
  5441. /*)
  5442. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5443. ;; #(
  5444. no|'')
  5445. ;; #(
  5446. *)
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5448. $as_echo "${with_sysroot}" >&6; }
  5449. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5450. ;;
  5451. esac
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5453. $as_echo "${lt_sysroot:-no}" >&6; }
  5454. # Check whether --enable-libtool-lock was given.
  5455. if test "${enable_libtool_lock+set}" = set; then :
  5456. enableval=$enable_libtool_lock;
  5457. fi
  5458. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5459. # Some flags need to be propagated to the compiler or linker for good
  5460. # libtool support.
  5461. case $host in
  5462. ia64-*-hpux*)
  5463. # Find out which ABI we are using.
  5464. echo 'int i;' > conftest.$ac_ext
  5465. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5466. (eval $ac_compile) 2>&5
  5467. ac_status=$?
  5468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5469. test $ac_status = 0; }; then
  5470. case `/usr/bin/file conftest.$ac_objext` in
  5471. *ELF-32*)
  5472. HPUX_IA64_MODE="32"
  5473. ;;
  5474. *ELF-64*)
  5475. HPUX_IA64_MODE="64"
  5476. ;;
  5477. esac
  5478. fi
  5479. rm -rf conftest*
  5480. ;;
  5481. *-*-irix6*)
  5482. # Find out which ABI we are using.
  5483. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5484. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5485. (eval $ac_compile) 2>&5
  5486. ac_status=$?
  5487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5488. test $ac_status = 0; }; then
  5489. if test "$lt_cv_prog_gnu_ld" = yes; then
  5490. case `/usr/bin/file conftest.$ac_objext` in
  5491. *32-bit*)
  5492. LD="${LD-ld} -melf32bsmip"
  5493. ;;
  5494. *N32*)
  5495. LD="${LD-ld} -melf32bmipn32"
  5496. ;;
  5497. *64-bit*)
  5498. LD="${LD-ld} -melf64bmip"
  5499. ;;
  5500. esac
  5501. else
  5502. case `/usr/bin/file conftest.$ac_objext` in
  5503. *32-bit*)
  5504. LD="${LD-ld} -32"
  5505. ;;
  5506. *N32*)
  5507. LD="${LD-ld} -n32"
  5508. ;;
  5509. *64-bit*)
  5510. LD="${LD-ld} -64"
  5511. ;;
  5512. esac
  5513. fi
  5514. fi
  5515. rm -rf conftest*
  5516. ;;
  5517. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5518. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5519. # Find out which ABI we are using.
  5520. echo 'int i;' > conftest.$ac_ext
  5521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5522. (eval $ac_compile) 2>&5
  5523. ac_status=$?
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5525. test $ac_status = 0; }; then
  5526. case `/usr/bin/file conftest.o` in
  5527. *32-bit*)
  5528. case $host in
  5529. x86_64-*kfreebsd*-gnu)
  5530. LD="${LD-ld} -m elf_i386_fbsd"
  5531. ;;
  5532. x86_64-*linux*)
  5533. LD="${LD-ld} -m elf_i386"
  5534. ;;
  5535. ppc64-*linux*|powerpc64-*linux*)
  5536. LD="${LD-ld} -m elf32ppclinux"
  5537. ;;
  5538. s390x-*linux*)
  5539. LD="${LD-ld} -m elf_s390"
  5540. ;;
  5541. sparc64-*linux*)
  5542. LD="${LD-ld} -m elf32_sparc"
  5543. ;;
  5544. esac
  5545. ;;
  5546. *64-bit*)
  5547. case $host in
  5548. x86_64-*kfreebsd*-gnu)
  5549. LD="${LD-ld} -m elf_x86_64_fbsd"
  5550. ;;
  5551. x86_64-*linux*)
  5552. LD="${LD-ld} -m elf_x86_64"
  5553. ;;
  5554. ppc*-*linux*|powerpc*-*linux*)
  5555. LD="${LD-ld} -m elf64ppc"
  5556. ;;
  5557. s390*-*linux*|s390*-*tpf*)
  5558. LD="${LD-ld} -m elf64_s390"
  5559. ;;
  5560. sparc*-*linux*)
  5561. LD="${LD-ld} -m elf64_sparc"
  5562. ;;
  5563. esac
  5564. ;;
  5565. esac
  5566. fi
  5567. rm -rf conftest*
  5568. ;;
  5569. *-*-sco3.2v5*)
  5570. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5571. SAVE_CFLAGS="$CFLAGS"
  5572. CFLAGS="$CFLAGS -belf"
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5574. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5575. if ${lt_cv_cc_needs_belf+:} false; then :
  5576. $as_echo_n "(cached) " >&6
  5577. else
  5578. ac_ext=c
  5579. ac_cpp='$CPP $CPPFLAGS'
  5580. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5581. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5582. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5584. /* end confdefs.h. */
  5585. int
  5586. main ()
  5587. {
  5588. ;
  5589. return 0;
  5590. }
  5591. _ACEOF
  5592. if ac_fn_c_try_link "$LINENO"; then :
  5593. lt_cv_cc_needs_belf=yes
  5594. else
  5595. lt_cv_cc_needs_belf=no
  5596. fi
  5597. rm -f core conftest.err conftest.$ac_objext \
  5598. conftest$ac_exeext conftest.$ac_ext
  5599. ac_ext=c
  5600. ac_cpp='$CPP $CPPFLAGS'
  5601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5604. fi
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5606. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5607. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5608. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5609. CFLAGS="$SAVE_CFLAGS"
  5610. fi
  5611. ;;
  5612. *-*solaris*)
  5613. # Find out which ABI we are using.
  5614. echo 'int i;' > conftest.$ac_ext
  5615. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5616. (eval $ac_compile) 2>&5
  5617. ac_status=$?
  5618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5619. test $ac_status = 0; }; then
  5620. case `/usr/bin/file conftest.o` in
  5621. *64-bit*)
  5622. case $lt_cv_prog_gnu_ld in
  5623. yes*)
  5624. case $host in
  5625. i?86-*-solaris*)
  5626. LD="${LD-ld} -m elf_x86_64"
  5627. ;;
  5628. sparc*-*-solaris*)
  5629. LD="${LD-ld} -m elf64_sparc"
  5630. ;;
  5631. esac
  5632. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5633. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5634. LD="${LD-ld}_sol2"
  5635. fi
  5636. ;;
  5637. *)
  5638. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5639. LD="${LD-ld} -64"
  5640. fi
  5641. ;;
  5642. esac
  5643. ;;
  5644. esac
  5645. fi
  5646. rm -rf conftest*
  5647. ;;
  5648. esac
  5649. need_locks="$enable_libtool_lock"
  5650. if test -n "$ac_tool_prefix"; then
  5651. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5652. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5654. $as_echo_n "checking for $ac_word... " >&6; }
  5655. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. if test -n "$MANIFEST_TOOL"; then
  5659. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5660. else
  5661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5662. for as_dir in $PATH
  5663. do
  5664. IFS=$as_save_IFS
  5665. test -z "$as_dir" && as_dir=.
  5666. for ac_exec_ext in '' $ac_executable_extensions; do
  5667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5668. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5670. break 2
  5671. fi
  5672. done
  5673. done
  5674. IFS=$as_save_IFS
  5675. fi
  5676. fi
  5677. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5678. if test -n "$MANIFEST_TOOL"; then
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5680. $as_echo "$MANIFEST_TOOL" >&6; }
  5681. else
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5683. $as_echo "no" >&6; }
  5684. fi
  5685. fi
  5686. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5687. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5688. # Extract the first word of "mt", so it can be a program name with args.
  5689. set dummy mt; ac_word=$2
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5691. $as_echo_n "checking for $ac_word... " >&6; }
  5692. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5696. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5705. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. IFS=$as_save_IFS
  5712. fi
  5713. fi
  5714. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5715. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5717. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5718. else
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5720. $as_echo "no" >&6; }
  5721. fi
  5722. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5723. MANIFEST_TOOL=":"
  5724. else
  5725. case $cross_compiling:$ac_tool_warned in
  5726. yes:)
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5729. ac_tool_warned=yes ;;
  5730. esac
  5731. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5732. fi
  5733. else
  5734. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5735. fi
  5736. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5738. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5739. if ${lt_cv_path_mainfest_tool+:} false; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. lt_cv_path_mainfest_tool=no
  5743. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5744. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5745. cat conftest.err >&5
  5746. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5747. lt_cv_path_mainfest_tool=yes
  5748. fi
  5749. rm -f conftest*
  5750. fi
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5752. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5753. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5754. MANIFEST_TOOL=:
  5755. fi
  5756. case $host_os in
  5757. rhapsody* | darwin*)
  5758. if test -n "$ac_tool_prefix"; then
  5759. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5760. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5762. $as_echo_n "checking for $ac_word... " >&6; }
  5763. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. if test -n "$DSYMUTIL"; then
  5767. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5768. else
  5769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5770. for as_dir in $PATH
  5771. do
  5772. IFS=$as_save_IFS
  5773. test -z "$as_dir" && as_dir=.
  5774. for ac_exec_ext in '' $ac_executable_extensions; do
  5775. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5776. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5778. break 2
  5779. fi
  5780. done
  5781. done
  5782. IFS=$as_save_IFS
  5783. fi
  5784. fi
  5785. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5786. if test -n "$DSYMUTIL"; then
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5788. $as_echo "$DSYMUTIL" >&6; }
  5789. else
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5791. $as_echo "no" >&6; }
  5792. fi
  5793. fi
  5794. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5795. ac_ct_DSYMUTIL=$DSYMUTIL
  5796. # Extract the first word of "dsymutil", so it can be a program name with args.
  5797. set dummy dsymutil; 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_ac_ct_DSYMUTIL+:} false; then :
  5801. $as_echo_n "(cached) " >&6
  5802. else
  5803. if test -n "$ac_ct_DSYMUTIL"; then
  5804. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_ac_ct_DSYMUTIL="dsymutil"
  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. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5823. if test -n "$ac_ct_DSYMUTIL"; then
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5825. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5826. else
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5828. $as_echo "no" >&6; }
  5829. fi
  5830. if test "x$ac_ct_DSYMUTIL" = x; then
  5831. DSYMUTIL=":"
  5832. else
  5833. case $cross_compiling:$ac_tool_warned in
  5834. yes:)
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5837. ac_tool_warned=yes ;;
  5838. esac
  5839. DSYMUTIL=$ac_ct_DSYMUTIL
  5840. fi
  5841. else
  5842. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5843. fi
  5844. if test -n "$ac_tool_prefix"; then
  5845. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5846. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5848. $as_echo_n "checking for $ac_word... " >&6; }
  5849. if ${ac_cv_prog_NMEDIT+:} false; then :
  5850. $as_echo_n "(cached) " >&6
  5851. else
  5852. if test -n "$NMEDIT"; then
  5853. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5854. else
  5855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5856. for as_dir in $PATH
  5857. do
  5858. IFS=$as_save_IFS
  5859. test -z "$as_dir" && as_dir=.
  5860. for ac_exec_ext in '' $ac_executable_extensions; do
  5861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5862. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5864. break 2
  5865. fi
  5866. done
  5867. done
  5868. IFS=$as_save_IFS
  5869. fi
  5870. fi
  5871. NMEDIT=$ac_cv_prog_NMEDIT
  5872. if test -n "$NMEDIT"; then
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5874. $as_echo "$NMEDIT" >&6; }
  5875. else
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5877. $as_echo "no" >&6; }
  5878. fi
  5879. fi
  5880. if test -z "$ac_cv_prog_NMEDIT"; then
  5881. ac_ct_NMEDIT=$NMEDIT
  5882. # Extract the first word of "nmedit", so it can be a program name with args.
  5883. set dummy nmedit; 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_ac_ct_NMEDIT+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. if test -n "$ac_ct_NMEDIT"; then
  5890. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
  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. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5909. if test -n "$ac_ct_NMEDIT"; then
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5911. $as_echo "$ac_ct_NMEDIT" >&6; }
  5912. else
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5914. $as_echo "no" >&6; }
  5915. fi
  5916. if test "x$ac_ct_NMEDIT" = x; then
  5917. NMEDIT=":"
  5918. else
  5919. case $cross_compiling:$ac_tool_warned in
  5920. yes:)
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5922. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5923. ac_tool_warned=yes ;;
  5924. esac
  5925. NMEDIT=$ac_ct_NMEDIT
  5926. fi
  5927. else
  5928. NMEDIT="$ac_cv_prog_NMEDIT"
  5929. fi
  5930. if test -n "$ac_tool_prefix"; then
  5931. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5932. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5934. $as_echo_n "checking for $ac_word... " >&6; }
  5935. if ${ac_cv_prog_LIPO+:} false; then :
  5936. $as_echo_n "(cached) " >&6
  5937. else
  5938. if test -n "$LIPO"; then
  5939. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5940. else
  5941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5942. for as_dir in $PATH
  5943. do
  5944. IFS=$as_save_IFS
  5945. test -z "$as_dir" && as_dir=.
  5946. for ac_exec_ext in '' $ac_executable_extensions; do
  5947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5948. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5950. break 2
  5951. fi
  5952. done
  5953. done
  5954. IFS=$as_save_IFS
  5955. fi
  5956. fi
  5957. LIPO=$ac_cv_prog_LIPO
  5958. if test -n "$LIPO"; then
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5960. $as_echo "$LIPO" >&6; }
  5961. else
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5963. $as_echo "no" >&6; }
  5964. fi
  5965. fi
  5966. if test -z "$ac_cv_prog_LIPO"; then
  5967. ac_ct_LIPO=$LIPO
  5968. # Extract the first word of "lipo", so it can be a program name with args.
  5969. set dummy lipo; 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_ac_ct_LIPO+:} false; then :
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. if test -n "$ac_ct_LIPO"; then
  5976. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
  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. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5995. if test -n "$ac_ct_LIPO"; then
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5997. $as_echo "$ac_ct_LIPO" >&6; }
  5998. else
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6000. $as_echo "no" >&6; }
  6001. fi
  6002. if test "x$ac_ct_LIPO" = x; then
  6003. LIPO=":"
  6004. else
  6005. case $cross_compiling:$ac_tool_warned in
  6006. yes:)
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6008. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6009. ac_tool_warned=yes ;;
  6010. esac
  6011. LIPO=$ac_ct_LIPO
  6012. fi
  6013. else
  6014. LIPO="$ac_cv_prog_LIPO"
  6015. fi
  6016. if test -n "$ac_tool_prefix"; then
  6017. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6018. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6020. $as_echo_n "checking for $ac_word... " >&6; }
  6021. if ${ac_cv_prog_OTOOL+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. if test -n "$OTOOL"; then
  6025. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6026. else
  6027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6028. for as_dir in $PATH
  6029. do
  6030. IFS=$as_save_IFS
  6031. test -z "$as_dir" && as_dir=.
  6032. for ac_exec_ext in '' $ac_executable_extensions; do
  6033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6034. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6036. break 2
  6037. fi
  6038. done
  6039. done
  6040. IFS=$as_save_IFS
  6041. fi
  6042. fi
  6043. OTOOL=$ac_cv_prog_OTOOL
  6044. if test -n "$OTOOL"; then
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6046. $as_echo "$OTOOL" >&6; }
  6047. else
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6049. $as_echo "no" >&6; }
  6050. fi
  6051. fi
  6052. if test -z "$ac_cv_prog_OTOOL"; then
  6053. ac_ct_OTOOL=$OTOOL
  6054. # Extract the first word of "otool", so it can be a program name with args.
  6055. set dummy otool; ac_word=$2
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6057. $as_echo_n "checking for $ac_word... " >&6; }
  6058. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. if test -n "$ac_ct_OTOOL"; then
  6062. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6063. else
  6064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6065. for as_dir in $PATH
  6066. do
  6067. IFS=$as_save_IFS
  6068. test -z "$as_dir" && as_dir=.
  6069. for ac_exec_ext in '' $ac_executable_extensions; do
  6070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6071. ac_cv_prog_ac_ct_OTOOL="otool"
  6072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6073. break 2
  6074. fi
  6075. done
  6076. done
  6077. IFS=$as_save_IFS
  6078. fi
  6079. fi
  6080. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6081. if test -n "$ac_ct_OTOOL"; then
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6083. $as_echo "$ac_ct_OTOOL" >&6; }
  6084. else
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6086. $as_echo "no" >&6; }
  6087. fi
  6088. if test "x$ac_ct_OTOOL" = x; then
  6089. OTOOL=":"
  6090. else
  6091. case $cross_compiling:$ac_tool_warned in
  6092. yes:)
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6094. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6095. ac_tool_warned=yes ;;
  6096. esac
  6097. OTOOL=$ac_ct_OTOOL
  6098. fi
  6099. else
  6100. OTOOL="$ac_cv_prog_OTOOL"
  6101. fi
  6102. if test -n "$ac_tool_prefix"; then
  6103. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6104. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6106. $as_echo_n "checking for $ac_word... " >&6; }
  6107. if ${ac_cv_prog_OTOOL64+:} false; then :
  6108. $as_echo_n "(cached) " >&6
  6109. else
  6110. if test -n "$OTOOL64"; then
  6111. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6112. else
  6113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6114. for as_dir in $PATH
  6115. do
  6116. IFS=$as_save_IFS
  6117. test -z "$as_dir" && as_dir=.
  6118. for ac_exec_ext in '' $ac_executable_extensions; do
  6119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6120. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6122. break 2
  6123. fi
  6124. done
  6125. done
  6126. IFS=$as_save_IFS
  6127. fi
  6128. fi
  6129. OTOOL64=$ac_cv_prog_OTOOL64
  6130. if test -n "$OTOOL64"; then
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6132. $as_echo "$OTOOL64" >&6; }
  6133. else
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6135. $as_echo "no" >&6; }
  6136. fi
  6137. fi
  6138. if test -z "$ac_cv_prog_OTOOL64"; then
  6139. ac_ct_OTOOL64=$OTOOL64
  6140. # Extract the first word of "otool64", so it can be a program name with args.
  6141. set dummy otool64; ac_word=$2
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6143. $as_echo_n "checking for $ac_word... " >&6; }
  6144. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6145. $as_echo_n "(cached) " >&6
  6146. else
  6147. if test -n "$ac_ct_OTOOL64"; then
  6148. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6149. else
  6150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6151. for as_dir in $PATH
  6152. do
  6153. IFS=$as_save_IFS
  6154. test -z "$as_dir" && as_dir=.
  6155. for ac_exec_ext in '' $ac_executable_extensions; do
  6156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6157. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6159. break 2
  6160. fi
  6161. done
  6162. done
  6163. IFS=$as_save_IFS
  6164. fi
  6165. fi
  6166. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6167. if test -n "$ac_ct_OTOOL64"; then
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6169. $as_echo "$ac_ct_OTOOL64" >&6; }
  6170. else
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6172. $as_echo "no" >&6; }
  6173. fi
  6174. if test "x$ac_ct_OTOOL64" = x; then
  6175. OTOOL64=":"
  6176. else
  6177. case $cross_compiling:$ac_tool_warned in
  6178. yes:)
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6180. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6181. ac_tool_warned=yes ;;
  6182. esac
  6183. OTOOL64=$ac_ct_OTOOL64
  6184. fi
  6185. else
  6186. OTOOL64="$ac_cv_prog_OTOOL64"
  6187. fi
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6189. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6190. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. lt_cv_apple_cc_single_mod=no
  6194. if test -z "${LT_MULTI_MODULE}"; then
  6195. # By default we will add the -single_module flag. You can override
  6196. # by either setting the environment variable LT_MULTI_MODULE
  6197. # non-empty at configure time, or by adding -multi_module to the
  6198. # link flags.
  6199. rm -rf libconftest.dylib*
  6200. echo "int foo(void){return 1;}" > conftest.c
  6201. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6202. -dynamiclib -Wl,-single_module conftest.c" >&5
  6203. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6204. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6205. _lt_result=$?
  6206. # If there is a non-empty error log, and "single_module"
  6207. # appears in it, assume the flag caused a linker warning
  6208. if test -s conftest.err && $GREP single_module conftest.err; then
  6209. cat conftest.err >&5
  6210. # Otherwise, if the output was created with a 0 exit code from
  6211. # the compiler, it worked.
  6212. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6213. lt_cv_apple_cc_single_mod=yes
  6214. else
  6215. cat conftest.err >&5
  6216. fi
  6217. rm -rf libconftest.dylib*
  6218. rm -f conftest.*
  6219. fi
  6220. fi
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6222. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6224. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6225. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6226. $as_echo_n "(cached) " >&6
  6227. else
  6228. lt_cv_ld_exported_symbols_list=no
  6229. save_LDFLAGS=$LDFLAGS
  6230. echo "_main" > conftest.sym
  6231. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6233. /* end confdefs.h. */
  6234. int
  6235. main ()
  6236. {
  6237. ;
  6238. return 0;
  6239. }
  6240. _ACEOF
  6241. if ac_fn_c_try_link "$LINENO"; then :
  6242. lt_cv_ld_exported_symbols_list=yes
  6243. else
  6244. lt_cv_ld_exported_symbols_list=no
  6245. fi
  6246. rm -f core conftest.err conftest.$ac_objext \
  6247. conftest$ac_exeext conftest.$ac_ext
  6248. LDFLAGS="$save_LDFLAGS"
  6249. fi
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6251. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6253. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6254. if ${lt_cv_ld_force_load+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. lt_cv_ld_force_load=no
  6258. cat > conftest.c << _LT_EOF
  6259. int forced_loaded() { return 2;}
  6260. _LT_EOF
  6261. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6262. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6263. echo "$AR cru libconftest.a conftest.o" >&5
  6264. $AR cru libconftest.a conftest.o 2>&5
  6265. echo "$RANLIB libconftest.a" >&5
  6266. $RANLIB libconftest.a 2>&5
  6267. cat > conftest.c << _LT_EOF
  6268. int main() { return 0;}
  6269. _LT_EOF
  6270. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6271. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6272. _lt_result=$?
  6273. if test -s conftest.err && $GREP force_load conftest.err; then
  6274. cat conftest.err >&5
  6275. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6276. lt_cv_ld_force_load=yes
  6277. else
  6278. cat conftest.err >&5
  6279. fi
  6280. rm -f conftest.err libconftest.a conftest conftest.c
  6281. rm -rf conftest.dSYM
  6282. fi
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6284. $as_echo "$lt_cv_ld_force_load" >&6; }
  6285. case $host_os in
  6286. rhapsody* | darwin1.[012])
  6287. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6288. darwin1.*)
  6289. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6290. darwin*) # darwin 5.x on
  6291. # if running on 10.5 or later, the deployment target defaults
  6292. # to the OS version, if on x86, and 10.4, the deployment
  6293. # target defaults to 10.4. Don't you love it?
  6294. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6295. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6296. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6297. 10.[012]*)
  6298. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6299. 10.*)
  6300. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6301. esac
  6302. ;;
  6303. esac
  6304. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6305. _lt_dar_single_mod='$single_module'
  6306. fi
  6307. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6308. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6309. else
  6310. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6311. fi
  6312. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6313. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6314. else
  6315. _lt_dsymutil=
  6316. fi
  6317. ;;
  6318. esac
  6319. ac_ext=c
  6320. ac_cpp='$CPP $CPPFLAGS'
  6321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6325. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6326. # On Suns, sometimes $CPP names a directory.
  6327. if test -n "$CPP" && test -d "$CPP"; then
  6328. CPP=
  6329. fi
  6330. if test -z "$CPP"; then
  6331. if ${ac_cv_prog_CPP+:} false; then :
  6332. $as_echo_n "(cached) " >&6
  6333. else
  6334. # Double quotes because CPP needs to be expanded
  6335. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6336. do
  6337. ac_preproc_ok=false
  6338. for ac_c_preproc_warn_flag in '' yes
  6339. do
  6340. # Use a header file that comes with gcc, so configuring glibc
  6341. # with a fresh cross-compiler works.
  6342. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6343. # <limits.h> exists even on freestanding compilers.
  6344. # On the NeXT, cc -E runs the code through the compiler's parser,
  6345. # not just through cpp. "Syntax error" is here to catch this case.
  6346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6347. /* end confdefs.h. */
  6348. #ifdef __STDC__
  6349. # include <limits.h>
  6350. #else
  6351. # include <assert.h>
  6352. #endif
  6353. Syntax error
  6354. _ACEOF
  6355. if ac_fn_c_try_cpp "$LINENO"; then :
  6356. else
  6357. # Broken: fails on valid input.
  6358. continue
  6359. fi
  6360. rm -f conftest.err conftest.i conftest.$ac_ext
  6361. # OK, works on sane cases. Now check whether nonexistent headers
  6362. # can be detected and how.
  6363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6364. /* end confdefs.h. */
  6365. #include <ac_nonexistent.h>
  6366. _ACEOF
  6367. if ac_fn_c_try_cpp "$LINENO"; then :
  6368. # Broken: success on invalid input.
  6369. continue
  6370. else
  6371. # Passes both tests.
  6372. ac_preproc_ok=:
  6373. break
  6374. fi
  6375. rm -f conftest.err conftest.i conftest.$ac_ext
  6376. done
  6377. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6378. rm -f conftest.i conftest.err conftest.$ac_ext
  6379. if $ac_preproc_ok; then :
  6380. break
  6381. fi
  6382. done
  6383. ac_cv_prog_CPP=$CPP
  6384. fi
  6385. CPP=$ac_cv_prog_CPP
  6386. else
  6387. ac_cv_prog_CPP=$CPP
  6388. fi
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6390. $as_echo "$CPP" >&6; }
  6391. ac_preproc_ok=false
  6392. for ac_c_preproc_warn_flag in '' yes
  6393. do
  6394. # Use a header file that comes with gcc, so configuring glibc
  6395. # with a fresh cross-compiler works.
  6396. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6397. # <limits.h> exists even on freestanding compilers.
  6398. # On the NeXT, cc -E runs the code through the compiler's parser,
  6399. # not just through cpp. "Syntax error" is here to catch this case.
  6400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6401. /* end confdefs.h. */
  6402. #ifdef __STDC__
  6403. # include <limits.h>
  6404. #else
  6405. # include <assert.h>
  6406. #endif
  6407. Syntax error
  6408. _ACEOF
  6409. if ac_fn_c_try_cpp "$LINENO"; then :
  6410. else
  6411. # Broken: fails on valid input.
  6412. continue
  6413. fi
  6414. rm -f conftest.err conftest.i conftest.$ac_ext
  6415. # OK, works on sane cases. Now check whether nonexistent headers
  6416. # can be detected and how.
  6417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6418. /* end confdefs.h. */
  6419. #include <ac_nonexistent.h>
  6420. _ACEOF
  6421. if ac_fn_c_try_cpp "$LINENO"; then :
  6422. # Broken: success on invalid input.
  6423. continue
  6424. else
  6425. # Passes both tests.
  6426. ac_preproc_ok=:
  6427. break
  6428. fi
  6429. rm -f conftest.err conftest.i conftest.$ac_ext
  6430. done
  6431. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6432. rm -f conftest.i conftest.err conftest.$ac_ext
  6433. if $ac_preproc_ok; then :
  6434. else
  6435. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6436. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6437. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6438. See \`config.log' for more details" "$LINENO" 5; }
  6439. fi
  6440. ac_ext=c
  6441. ac_cpp='$CPP $CPPFLAGS'
  6442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6446. $as_echo_n "checking for ANSI C header files... " >&6; }
  6447. if ${ac_cv_header_stdc+:} false; then :
  6448. $as_echo_n "(cached) " >&6
  6449. else
  6450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6451. /* end confdefs.h. */
  6452. #include <stdlib.h>
  6453. #include <stdarg.h>
  6454. #include <string.h>
  6455. #include <float.h>
  6456. int
  6457. main ()
  6458. {
  6459. ;
  6460. return 0;
  6461. }
  6462. _ACEOF
  6463. if ac_fn_c_try_compile "$LINENO"; then :
  6464. ac_cv_header_stdc=yes
  6465. else
  6466. ac_cv_header_stdc=no
  6467. fi
  6468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6469. if test $ac_cv_header_stdc = yes; then
  6470. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6472. /* end confdefs.h. */
  6473. #include <string.h>
  6474. _ACEOF
  6475. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6476. $EGREP "memchr" >/dev/null 2>&1; then :
  6477. else
  6478. ac_cv_header_stdc=no
  6479. fi
  6480. rm -f conftest*
  6481. fi
  6482. if test $ac_cv_header_stdc = yes; then
  6483. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6485. /* end confdefs.h. */
  6486. #include <stdlib.h>
  6487. _ACEOF
  6488. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6489. $EGREP "free" >/dev/null 2>&1; then :
  6490. else
  6491. ac_cv_header_stdc=no
  6492. fi
  6493. rm -f conftest*
  6494. fi
  6495. if test $ac_cv_header_stdc = yes; then
  6496. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6497. if test "$cross_compiling" = yes; then :
  6498. :
  6499. else
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. #include <ctype.h>
  6503. #include <stdlib.h>
  6504. #if ((' ' & 0x0FF) == 0x020)
  6505. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6506. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6507. #else
  6508. # define ISLOWER(c) \
  6509. (('a' <= (c) && (c) <= 'i') \
  6510. || ('j' <= (c) && (c) <= 'r') \
  6511. || ('s' <= (c) && (c) <= 'z'))
  6512. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6513. #endif
  6514. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6515. int
  6516. main ()
  6517. {
  6518. int i;
  6519. for (i = 0; i < 256; i++)
  6520. if (XOR (islower (i), ISLOWER (i))
  6521. || toupper (i) != TOUPPER (i))
  6522. return 2;
  6523. return 0;
  6524. }
  6525. _ACEOF
  6526. if ac_fn_c_try_run "$LINENO"; then :
  6527. else
  6528. ac_cv_header_stdc=no
  6529. fi
  6530. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6531. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6532. fi
  6533. fi
  6534. fi
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6536. $as_echo "$ac_cv_header_stdc" >&6; }
  6537. if test $ac_cv_header_stdc = yes; then
  6538. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6539. fi
  6540. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6541. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6542. inttypes.h stdint.h unistd.h
  6543. do :
  6544. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6545. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6546. "
  6547. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6548. cat >>confdefs.h <<_ACEOF
  6549. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6550. _ACEOF
  6551. fi
  6552. done
  6553. for ac_header in dlfcn.h
  6554. do :
  6555. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6556. "
  6557. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6558. cat >>confdefs.h <<_ACEOF
  6559. #define HAVE_DLFCN_H 1
  6560. _ACEOF
  6561. fi
  6562. done
  6563. # Set options
  6564. enable_dlopen=no
  6565. enable_win32_dll=no
  6566. # Check whether --enable-shared was given.
  6567. if test "${enable_shared+set}" = set; then :
  6568. enableval=$enable_shared; p=${PACKAGE-default}
  6569. case $enableval in
  6570. yes) enable_shared=yes ;;
  6571. no) enable_shared=no ;;
  6572. *)
  6573. enable_shared=no
  6574. # Look at the argument we got. We use all the common list separators.
  6575. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6576. for pkg in $enableval; do
  6577. IFS="$lt_save_ifs"
  6578. if test "X$pkg" = "X$p"; then
  6579. enable_shared=yes
  6580. fi
  6581. done
  6582. IFS="$lt_save_ifs"
  6583. ;;
  6584. esac
  6585. else
  6586. enable_shared=yes
  6587. fi
  6588. # Check whether --enable-static was given.
  6589. if test "${enable_static+set}" = set; then :
  6590. enableval=$enable_static; p=${PACKAGE-default}
  6591. case $enableval in
  6592. yes) enable_static=yes ;;
  6593. no) enable_static=no ;;
  6594. *)
  6595. enable_static=no
  6596. # Look at the argument we got. We use all the common list separators.
  6597. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6598. for pkg in $enableval; do
  6599. IFS="$lt_save_ifs"
  6600. if test "X$pkg" = "X$p"; then
  6601. enable_static=yes
  6602. fi
  6603. done
  6604. IFS="$lt_save_ifs"
  6605. ;;
  6606. esac
  6607. else
  6608. enable_static=yes
  6609. fi
  6610. # Check whether --with-pic was given.
  6611. if test "${with_pic+set}" = set; then :
  6612. withval=$with_pic; lt_p=${PACKAGE-default}
  6613. case $withval in
  6614. yes|no) pic_mode=$withval ;;
  6615. *)
  6616. pic_mode=default
  6617. # Look at the argument we got. We use all the common list separators.
  6618. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6619. for lt_pkg in $withval; do
  6620. IFS="$lt_save_ifs"
  6621. if test "X$lt_pkg" = "X$lt_p"; then
  6622. pic_mode=yes
  6623. fi
  6624. done
  6625. IFS="$lt_save_ifs"
  6626. ;;
  6627. esac
  6628. else
  6629. pic_mode=default
  6630. fi
  6631. test -z "$pic_mode" && pic_mode=default
  6632. # Check whether --enable-fast-install was given.
  6633. if test "${enable_fast_install+set}" = set; then :
  6634. enableval=$enable_fast_install; p=${PACKAGE-default}
  6635. case $enableval in
  6636. yes) enable_fast_install=yes ;;
  6637. no) enable_fast_install=no ;;
  6638. *)
  6639. enable_fast_install=no
  6640. # Look at the argument we got. We use all the common list separators.
  6641. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6642. for pkg in $enableval; do
  6643. IFS="$lt_save_ifs"
  6644. if test "X$pkg" = "X$p"; then
  6645. enable_fast_install=yes
  6646. fi
  6647. done
  6648. IFS="$lt_save_ifs"
  6649. ;;
  6650. esac
  6651. else
  6652. enable_fast_install=yes
  6653. fi
  6654. # This can be used to rebuild libtool when needed
  6655. LIBTOOL_DEPS="$ltmain"
  6656. # Always use our own libtool.
  6657. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6658. test -z "$LN_S" && LN_S="ln -s"
  6659. if test -n "${ZSH_VERSION+set}" ; then
  6660. setopt NO_GLOB_SUBST
  6661. fi
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6663. $as_echo_n "checking for objdir... " >&6; }
  6664. if ${lt_cv_objdir+:} false; then :
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. rm -f .libs 2>/dev/null
  6668. mkdir .libs 2>/dev/null
  6669. if test -d .libs; then
  6670. lt_cv_objdir=.libs
  6671. else
  6672. # MS-DOS does not allow filenames that begin with a dot.
  6673. lt_cv_objdir=_libs
  6674. fi
  6675. rmdir .libs 2>/dev/null
  6676. fi
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6678. $as_echo "$lt_cv_objdir" >&6; }
  6679. objdir=$lt_cv_objdir
  6680. cat >>confdefs.h <<_ACEOF
  6681. #define LT_OBJDIR "$lt_cv_objdir/"
  6682. _ACEOF
  6683. case $host_os in
  6684. aix3*)
  6685. # AIX sometimes has problems with the GCC collect2 program. For some
  6686. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6687. # vanish in a puff of smoke.
  6688. if test "X${COLLECT_NAMES+set}" != Xset; then
  6689. COLLECT_NAMES=
  6690. export COLLECT_NAMES
  6691. fi
  6692. ;;
  6693. esac
  6694. # Global variables:
  6695. ofile=libtool
  6696. can_build_shared=yes
  6697. # All known linkers require a `.a' archive for static linking (except MSVC,
  6698. # which needs '.lib').
  6699. libext=a
  6700. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6701. old_CC="$CC"
  6702. old_CFLAGS="$CFLAGS"
  6703. # Set sane defaults for various variables
  6704. test -z "$CC" && CC=cc
  6705. test -z "$LTCC" && LTCC=$CC
  6706. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6707. test -z "$LD" && LD=ld
  6708. test -z "$ac_objext" && ac_objext=o
  6709. for cc_temp in $compiler""; do
  6710. case $cc_temp in
  6711. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6712. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6713. \-*) ;;
  6714. *) break;;
  6715. esac
  6716. done
  6717. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6718. # Only perform the check for file, if the check method requires it
  6719. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6720. case $deplibs_check_method in
  6721. file_magic*)
  6722. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6724. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6725. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6726. $as_echo_n "(cached) " >&6
  6727. else
  6728. case $MAGIC_CMD in
  6729. [\\/*] | ?:[\\/]*)
  6730. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6731. ;;
  6732. *)
  6733. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6734. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6735. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6736. for ac_dir in $ac_dummy; do
  6737. IFS="$lt_save_ifs"
  6738. test -z "$ac_dir" && ac_dir=.
  6739. if test -f $ac_dir/${ac_tool_prefix}file; then
  6740. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6741. if test -n "$file_magic_test_file"; then
  6742. case $deplibs_check_method in
  6743. "file_magic "*)
  6744. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6745. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6746. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6747. $EGREP "$file_magic_regex" > /dev/null; then
  6748. :
  6749. else
  6750. cat <<_LT_EOF 1>&2
  6751. *** Warning: the command libtool uses to detect shared libraries,
  6752. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6753. *** The result is that libtool may fail to recognize shared libraries
  6754. *** as such. This will affect the creation of libtool libraries that
  6755. *** depend on shared libraries, but programs linked with such libtool
  6756. *** libraries will work regardless of this problem. Nevertheless, you
  6757. *** may want to report the problem to your system manager and/or to
  6758. *** [email protected]
  6759. _LT_EOF
  6760. fi ;;
  6761. esac
  6762. fi
  6763. break
  6764. fi
  6765. done
  6766. IFS="$lt_save_ifs"
  6767. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6768. ;;
  6769. esac
  6770. fi
  6771. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6772. if test -n "$MAGIC_CMD"; then
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6774. $as_echo "$MAGIC_CMD" >&6; }
  6775. else
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6777. $as_echo "no" >&6; }
  6778. fi
  6779. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6780. if test -n "$ac_tool_prefix"; then
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6782. $as_echo_n "checking for file... " >&6; }
  6783. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. case $MAGIC_CMD in
  6787. [\\/*] | ?:[\\/]*)
  6788. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6789. ;;
  6790. *)
  6791. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6792. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6793. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6794. for ac_dir in $ac_dummy; do
  6795. IFS="$lt_save_ifs"
  6796. test -z "$ac_dir" && ac_dir=.
  6797. if test -f $ac_dir/file; then
  6798. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6799. if test -n "$file_magic_test_file"; then
  6800. case $deplibs_check_method in
  6801. "file_magic "*)
  6802. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6803. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6804. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6805. $EGREP "$file_magic_regex" > /dev/null; then
  6806. :
  6807. else
  6808. cat <<_LT_EOF 1>&2
  6809. *** Warning: the command libtool uses to detect shared libraries,
  6810. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6811. *** The result is that libtool may fail to recognize shared libraries
  6812. *** as such. This will affect the creation of libtool libraries that
  6813. *** depend on shared libraries, but programs linked with such libtool
  6814. *** libraries will work regardless of this problem. Nevertheless, you
  6815. *** may want to report the problem to your system manager and/or to
  6816. *** [email protected]
  6817. _LT_EOF
  6818. fi ;;
  6819. esac
  6820. fi
  6821. break
  6822. fi
  6823. done
  6824. IFS="$lt_save_ifs"
  6825. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6826. ;;
  6827. esac
  6828. fi
  6829. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6830. if test -n "$MAGIC_CMD"; then
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6832. $as_echo "$MAGIC_CMD" >&6; }
  6833. else
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6835. $as_echo "no" >&6; }
  6836. fi
  6837. else
  6838. MAGIC_CMD=:
  6839. fi
  6840. fi
  6841. fi
  6842. ;;
  6843. esac
  6844. # Use C for the default configuration in the libtool script
  6845. lt_save_CC="$CC"
  6846. ac_ext=c
  6847. ac_cpp='$CPP $CPPFLAGS'
  6848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6851. # Source file extension for C test sources.
  6852. ac_ext=c
  6853. # Object file extension for compiled C test sources.
  6854. objext=o
  6855. objext=$objext
  6856. # Code to be used in simple compile tests
  6857. lt_simple_compile_test_code="int some_variable = 0;"
  6858. # Code to be used in simple link tests
  6859. lt_simple_link_test_code='int main(){return(0);}'
  6860. # If no C compiler was specified, use CC.
  6861. LTCC=${LTCC-"$CC"}
  6862. # If no C compiler flags were specified, use CFLAGS.
  6863. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6864. # Allow CC to be a program name with arguments.
  6865. compiler=$CC
  6866. # Save the default compiler, since it gets overwritten when the other
  6867. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6868. compiler_DEFAULT=$CC
  6869. # save warnings/boilerplate of simple test code
  6870. ac_outfile=conftest.$ac_objext
  6871. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6872. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6873. _lt_compiler_boilerplate=`cat conftest.err`
  6874. $RM conftest*
  6875. ac_outfile=conftest.$ac_objext
  6876. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6877. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6878. _lt_linker_boilerplate=`cat conftest.err`
  6879. $RM -r conftest*
  6880. if test -n "$compiler"; then
  6881. lt_prog_compiler_no_builtin_flag=
  6882. if test "$GCC" = yes; then
  6883. case $cc_basename in
  6884. nvcc*)
  6885. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6886. *)
  6887. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6888. esac
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6890. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6891. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. lt_cv_prog_compiler_rtti_exceptions=no
  6895. ac_outfile=conftest.$ac_objext
  6896. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6897. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6898. # Insert the option either (1) after the last *FLAGS variable, or
  6899. # (2) before a word containing "conftest.", or (3) at the end.
  6900. # Note that $ac_compile itself does not contain backslashes and begins
  6901. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6902. # The option is referenced via a variable to avoid confusing sed.
  6903. lt_compile=`echo "$ac_compile" | $SED \
  6904. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6905. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6906. -e 's:$: $lt_compiler_flag:'`
  6907. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6908. (eval "$lt_compile" 2>conftest.err)
  6909. ac_status=$?
  6910. cat conftest.err >&5
  6911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6912. if (exit $ac_status) && test -s "$ac_outfile"; then
  6913. # The compiler can only warn and ignore the option if not recognized
  6914. # So say no if there are warnings other than the usual output.
  6915. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6916. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6917. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6918. lt_cv_prog_compiler_rtti_exceptions=yes
  6919. fi
  6920. fi
  6921. $RM conftest*
  6922. fi
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6924. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6925. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6926. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6927. else
  6928. :
  6929. fi
  6930. fi
  6931. lt_prog_compiler_wl=
  6932. lt_prog_compiler_pic=
  6933. lt_prog_compiler_static=
  6934. if test "$GCC" = yes; then
  6935. lt_prog_compiler_wl='-Wl,'
  6936. lt_prog_compiler_static='-static'
  6937. case $host_os in
  6938. aix*)
  6939. # All AIX code is PIC.
  6940. if test "$host_cpu" = ia64; then
  6941. # AIX 5 now supports IA64 processor
  6942. lt_prog_compiler_static='-Bstatic'
  6943. fi
  6944. ;;
  6945. amigaos*)
  6946. case $host_cpu in
  6947. powerpc)
  6948. # see comment about AmigaOS4 .so support
  6949. lt_prog_compiler_pic='-fPIC'
  6950. ;;
  6951. m68k)
  6952. # FIXME: we need at least 68020 code to build shared libraries, but
  6953. # adding the `-m68020' flag to GCC prevents building anything better,
  6954. # like `-m68040'.
  6955. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6956. ;;
  6957. esac
  6958. ;;
  6959. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6960. # PIC is the default for these OSes.
  6961. ;;
  6962. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6963. # This hack is so that the source file can tell whether it is being
  6964. # built for inclusion in a dll (and should export symbols for example).
  6965. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6966. # (--disable-auto-import) libraries
  6967. lt_prog_compiler_pic='-DDLL_EXPORT'
  6968. ;;
  6969. darwin* | rhapsody*)
  6970. # PIC is the default on this platform
  6971. # Common symbols not allowed in MH_DYLIB files
  6972. lt_prog_compiler_pic='-fno-common'
  6973. ;;
  6974. haiku*)
  6975. # PIC is the default for Haiku.
  6976. # The "-static" flag exists, but is broken.
  6977. lt_prog_compiler_static=
  6978. ;;
  6979. hpux*)
  6980. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6981. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6982. # sets the default TLS model and affects inlining.
  6983. case $host_cpu in
  6984. hppa*64*)
  6985. # +Z the default
  6986. ;;
  6987. *)
  6988. lt_prog_compiler_pic='-fPIC'
  6989. ;;
  6990. esac
  6991. ;;
  6992. interix[3-9]*)
  6993. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6994. # Instead, we relocate shared libraries at runtime.
  6995. ;;
  6996. msdosdjgpp*)
  6997. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6998. # on systems that don't support them.
  6999. lt_prog_compiler_can_build_shared=no
  7000. enable_shared=no
  7001. ;;
  7002. *nto* | *qnx*)
  7003. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7004. # it will coredump.
  7005. lt_prog_compiler_pic='-fPIC -shared'
  7006. ;;
  7007. sysv4*MP*)
  7008. if test -d /usr/nec; then
  7009. lt_prog_compiler_pic=-Kconform_pic
  7010. fi
  7011. ;;
  7012. *)
  7013. lt_prog_compiler_pic='-fPIC'
  7014. ;;
  7015. esac
  7016. case $cc_basename in
  7017. nvcc*) # Cuda Compiler Driver 2.2
  7018. lt_prog_compiler_wl='-Xlinker '
  7019. if test -n "$lt_prog_compiler_pic"; then
  7020. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7021. fi
  7022. ;;
  7023. esac
  7024. else
  7025. # PORTME Check for flag to pass linker flags through the system compiler.
  7026. case $host_os in
  7027. aix*)
  7028. lt_prog_compiler_wl='-Wl,'
  7029. if test "$host_cpu" = ia64; then
  7030. # AIX 5 now supports IA64 processor
  7031. lt_prog_compiler_static='-Bstatic'
  7032. else
  7033. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7034. fi
  7035. ;;
  7036. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7037. # This hack is so that the source file can tell whether it is being
  7038. # built for inclusion in a dll (and should export symbols for example).
  7039. lt_prog_compiler_pic='-DDLL_EXPORT'
  7040. ;;
  7041. hpux9* | hpux10* | hpux11*)
  7042. lt_prog_compiler_wl='-Wl,'
  7043. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7044. # not for PA HP-UX.
  7045. case $host_cpu in
  7046. hppa*64*|ia64*)
  7047. # +Z the default
  7048. ;;
  7049. *)
  7050. lt_prog_compiler_pic='+Z'
  7051. ;;
  7052. esac
  7053. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7054. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7055. ;;
  7056. irix5* | irix6* | nonstopux*)
  7057. lt_prog_compiler_wl='-Wl,'
  7058. # PIC (with -KPIC) is the default.
  7059. lt_prog_compiler_static='-non_shared'
  7060. ;;
  7061. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7062. case $cc_basename in
  7063. # old Intel for x86_64 which still supported -KPIC.
  7064. ecc*)
  7065. lt_prog_compiler_wl='-Wl,'
  7066. lt_prog_compiler_pic='-KPIC'
  7067. lt_prog_compiler_static='-static'
  7068. ;;
  7069. # icc used to be incompatible with GCC.
  7070. # ICC 10 doesn't accept -KPIC any more.
  7071. icc* | ifort*)
  7072. lt_prog_compiler_wl='-Wl,'
  7073. lt_prog_compiler_pic='-fPIC'
  7074. lt_prog_compiler_static='-static'
  7075. ;;
  7076. # Lahey Fortran 8.1.
  7077. lf95*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. lt_prog_compiler_pic='--shared'
  7080. lt_prog_compiler_static='--static'
  7081. ;;
  7082. nagfor*)
  7083. # NAG Fortran compiler
  7084. lt_prog_compiler_wl='-Wl,-Wl,,'
  7085. lt_prog_compiler_pic='-PIC'
  7086. lt_prog_compiler_static='-Bstatic'
  7087. ;;
  7088. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7089. # Portland Group compilers (*not* the Pentium gcc compiler,
  7090. # which looks to be a dead project)
  7091. lt_prog_compiler_wl='-Wl,'
  7092. lt_prog_compiler_pic='-fpic'
  7093. lt_prog_compiler_static='-Bstatic'
  7094. ;;
  7095. ccc*)
  7096. lt_prog_compiler_wl='-Wl,'
  7097. # All Alpha code is PIC.
  7098. lt_prog_compiler_static='-non_shared'
  7099. ;;
  7100. xl* | bgxl* | bgf* | mpixl*)
  7101. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7102. lt_prog_compiler_wl='-Wl,'
  7103. lt_prog_compiler_pic='-qpic'
  7104. lt_prog_compiler_static='-qstaticlink'
  7105. ;;
  7106. *)
  7107. case `$CC -V 2>&1 | sed 5q` in
  7108. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7109. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7110. lt_prog_compiler_pic='-KPIC'
  7111. lt_prog_compiler_static='-Bstatic'
  7112. lt_prog_compiler_wl=''
  7113. ;;
  7114. *Sun\ F* | *Sun*Fortran*)
  7115. lt_prog_compiler_pic='-KPIC'
  7116. lt_prog_compiler_static='-Bstatic'
  7117. lt_prog_compiler_wl='-Qoption ld '
  7118. ;;
  7119. *Sun\ C*)
  7120. # Sun C 5.9
  7121. lt_prog_compiler_pic='-KPIC'
  7122. lt_prog_compiler_static='-Bstatic'
  7123. lt_prog_compiler_wl='-Wl,'
  7124. ;;
  7125. *Intel*\ [CF]*Compiler*)
  7126. lt_prog_compiler_wl='-Wl,'
  7127. lt_prog_compiler_pic='-fPIC'
  7128. lt_prog_compiler_static='-static'
  7129. ;;
  7130. *Portland\ Group*)
  7131. lt_prog_compiler_wl='-Wl,'
  7132. lt_prog_compiler_pic='-fpic'
  7133. lt_prog_compiler_static='-Bstatic'
  7134. ;;
  7135. esac
  7136. ;;
  7137. esac
  7138. ;;
  7139. newsos6)
  7140. lt_prog_compiler_pic='-KPIC'
  7141. lt_prog_compiler_static='-Bstatic'
  7142. ;;
  7143. *nto* | *qnx*)
  7144. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7145. # it will coredump.
  7146. lt_prog_compiler_pic='-fPIC -shared'
  7147. ;;
  7148. osf3* | osf4* | osf5*)
  7149. lt_prog_compiler_wl='-Wl,'
  7150. # All OSF/1 code is PIC.
  7151. lt_prog_compiler_static='-non_shared'
  7152. ;;
  7153. rdos*)
  7154. lt_prog_compiler_static='-non_shared'
  7155. ;;
  7156. solaris*)
  7157. lt_prog_compiler_pic='-KPIC'
  7158. lt_prog_compiler_static='-Bstatic'
  7159. case $cc_basename in
  7160. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7161. lt_prog_compiler_wl='-Qoption ld ';;
  7162. *)
  7163. lt_prog_compiler_wl='-Wl,';;
  7164. esac
  7165. ;;
  7166. sunos4*)
  7167. lt_prog_compiler_wl='-Qoption ld '
  7168. lt_prog_compiler_pic='-PIC'
  7169. lt_prog_compiler_static='-Bstatic'
  7170. ;;
  7171. sysv4 | sysv4.2uw2* | sysv4.3*)
  7172. lt_prog_compiler_wl='-Wl,'
  7173. lt_prog_compiler_pic='-KPIC'
  7174. lt_prog_compiler_static='-Bstatic'
  7175. ;;
  7176. sysv4*MP*)
  7177. if test -d /usr/nec ;then
  7178. lt_prog_compiler_pic='-Kconform_pic'
  7179. lt_prog_compiler_static='-Bstatic'
  7180. fi
  7181. ;;
  7182. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7183. lt_prog_compiler_wl='-Wl,'
  7184. lt_prog_compiler_pic='-KPIC'
  7185. lt_prog_compiler_static='-Bstatic'
  7186. ;;
  7187. unicos*)
  7188. lt_prog_compiler_wl='-Wl,'
  7189. lt_prog_compiler_can_build_shared=no
  7190. ;;
  7191. uts4*)
  7192. lt_prog_compiler_pic='-pic'
  7193. lt_prog_compiler_static='-Bstatic'
  7194. ;;
  7195. *)
  7196. lt_prog_compiler_can_build_shared=no
  7197. ;;
  7198. esac
  7199. fi
  7200. case $host_os in
  7201. # For platforms which do not support PIC, -DPIC is meaningless:
  7202. *djgpp*)
  7203. lt_prog_compiler_pic=
  7204. ;;
  7205. *)
  7206. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7207. ;;
  7208. esac
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7210. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7211. if ${lt_cv_prog_compiler_pic+:} false; then :
  7212. $as_echo_n "(cached) " >&6
  7213. else
  7214. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7215. fi
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7217. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7218. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7219. #
  7220. # Check to make sure the PIC flag actually works.
  7221. #
  7222. if test -n "$lt_prog_compiler_pic"; then
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7224. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7225. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7226. $as_echo_n "(cached) " >&6
  7227. else
  7228. lt_cv_prog_compiler_pic_works=no
  7229. ac_outfile=conftest.$ac_objext
  7230. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7231. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7232. # Insert the option either (1) after the last *FLAGS variable, or
  7233. # (2) before a word containing "conftest.", or (3) at the end.
  7234. # Note that $ac_compile itself does not contain backslashes and begins
  7235. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7236. # The option is referenced via a variable to avoid confusing sed.
  7237. lt_compile=`echo "$ac_compile" | $SED \
  7238. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7239. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7240. -e 's:$: $lt_compiler_flag:'`
  7241. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7242. (eval "$lt_compile" 2>conftest.err)
  7243. ac_status=$?
  7244. cat conftest.err >&5
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. if (exit $ac_status) && test -s "$ac_outfile"; then
  7247. # The compiler can only warn and ignore the option if not recognized
  7248. # So say no if there are warnings other than the usual output.
  7249. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7250. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7251. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7252. lt_cv_prog_compiler_pic_works=yes
  7253. fi
  7254. fi
  7255. $RM conftest*
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7258. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7259. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7260. case $lt_prog_compiler_pic in
  7261. "" | " "*) ;;
  7262. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7263. esac
  7264. else
  7265. lt_prog_compiler_pic=
  7266. lt_prog_compiler_can_build_shared=no
  7267. fi
  7268. fi
  7269. #
  7270. # Check to make sure the static flag actually works.
  7271. #
  7272. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7274. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7275. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7276. $as_echo_n "(cached) " >&6
  7277. else
  7278. lt_cv_prog_compiler_static_works=no
  7279. save_LDFLAGS="$LDFLAGS"
  7280. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7281. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7282. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7283. # The linker can only warn and ignore the option if not recognized
  7284. # So say no if there are warnings
  7285. if test -s conftest.err; then
  7286. # Append any errors to the config.log.
  7287. cat conftest.err 1>&5
  7288. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7289. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7290. if diff conftest.exp conftest.er2 >/dev/null; then
  7291. lt_cv_prog_compiler_static_works=yes
  7292. fi
  7293. else
  7294. lt_cv_prog_compiler_static_works=yes
  7295. fi
  7296. fi
  7297. $RM -r conftest*
  7298. LDFLAGS="$save_LDFLAGS"
  7299. fi
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7301. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7302. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7303. :
  7304. else
  7305. lt_prog_compiler_static=
  7306. fi
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7308. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7309. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7310. $as_echo_n "(cached) " >&6
  7311. else
  7312. lt_cv_prog_compiler_c_o=no
  7313. $RM -r conftest 2>/dev/null
  7314. mkdir conftest
  7315. cd conftest
  7316. mkdir out
  7317. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7318. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7319. # Insert the option either (1) after the last *FLAGS variable, or
  7320. # (2) before a word containing "conftest.", or (3) at the end.
  7321. # Note that $ac_compile itself does not contain backslashes and begins
  7322. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7323. lt_compile=`echo "$ac_compile" | $SED \
  7324. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7325. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7326. -e 's:$: $lt_compiler_flag:'`
  7327. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7328. (eval "$lt_compile" 2>out/conftest.err)
  7329. ac_status=$?
  7330. cat out/conftest.err >&5
  7331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7333. then
  7334. # The compiler can only warn and ignore the option if not recognized
  7335. # So say no if there are warnings
  7336. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7337. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7338. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7339. lt_cv_prog_compiler_c_o=yes
  7340. fi
  7341. fi
  7342. chmod u+w . 2>&5
  7343. $RM conftest*
  7344. # SGI C++ compiler will create directory out/ii_files/ for
  7345. # template instantiation
  7346. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7347. $RM out/* && rmdir out
  7348. cd ..
  7349. $RM -r conftest
  7350. $RM conftest*
  7351. fi
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7353. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7355. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7356. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7357. $as_echo_n "(cached) " >&6
  7358. else
  7359. lt_cv_prog_compiler_c_o=no
  7360. $RM -r conftest 2>/dev/null
  7361. mkdir conftest
  7362. cd conftest
  7363. mkdir out
  7364. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7365. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7366. # Insert the option either (1) after the last *FLAGS variable, or
  7367. # (2) before a word containing "conftest.", or (3) at the end.
  7368. # Note that $ac_compile itself does not contain backslashes and begins
  7369. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7370. lt_compile=`echo "$ac_compile" | $SED \
  7371. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7372. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7373. -e 's:$: $lt_compiler_flag:'`
  7374. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7375. (eval "$lt_compile" 2>out/conftest.err)
  7376. ac_status=$?
  7377. cat out/conftest.err >&5
  7378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7379. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7380. then
  7381. # The compiler can only warn and ignore the option if not recognized
  7382. # So say no if there are warnings
  7383. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7384. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7385. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7386. lt_cv_prog_compiler_c_o=yes
  7387. fi
  7388. fi
  7389. chmod u+w . 2>&5
  7390. $RM conftest*
  7391. # SGI C++ compiler will create directory out/ii_files/ for
  7392. # template instantiation
  7393. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7394. $RM out/* && rmdir out
  7395. cd ..
  7396. $RM -r conftest
  7397. $RM conftest*
  7398. fi
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7400. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7401. hard_links="nottested"
  7402. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7403. # do not overwrite the value of need_locks provided by the user
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7405. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7406. hard_links=yes
  7407. $RM conftest*
  7408. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7409. touch conftest.a
  7410. ln conftest.a conftest.b 2>&5 || hard_links=no
  7411. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7413. $as_echo "$hard_links" >&6; }
  7414. if test "$hard_links" = no; then
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7416. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7417. need_locks=warn
  7418. fi
  7419. else
  7420. need_locks=no
  7421. fi
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7423. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7424. runpath_var=
  7425. allow_undefined_flag=
  7426. always_export_symbols=no
  7427. archive_cmds=
  7428. archive_expsym_cmds=
  7429. compiler_needs_object=no
  7430. enable_shared_with_static_runtimes=no
  7431. export_dynamic_flag_spec=
  7432. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7433. hardcode_automatic=no
  7434. hardcode_direct=no
  7435. hardcode_direct_absolute=no
  7436. hardcode_libdir_flag_spec=
  7437. hardcode_libdir_separator=
  7438. hardcode_minus_L=no
  7439. hardcode_shlibpath_var=unsupported
  7440. inherit_rpath=no
  7441. link_all_deplibs=unknown
  7442. module_cmds=
  7443. module_expsym_cmds=
  7444. old_archive_from_new_cmds=
  7445. old_archive_from_expsyms_cmds=
  7446. thread_safe_flag_spec=
  7447. whole_archive_flag_spec=
  7448. # include_expsyms should be a list of space-separated symbols to be *always*
  7449. # included in the symbol list
  7450. include_expsyms=
  7451. # exclude_expsyms can be an extended regexp of symbols to exclude
  7452. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7453. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7454. # as well as any symbol that contains `d'.
  7455. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7456. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7457. # platforms (ab)use it in PIC code, but their linkers get confused if
  7458. # the symbol is explicitly referenced. Since portable code cannot
  7459. # rely on this symbol name, it's probably fine to never include it in
  7460. # preloaded symbol tables.
  7461. # Exclude shared library initialization/finalization symbols.
  7462. extract_expsyms_cmds=
  7463. case $host_os in
  7464. cygwin* | mingw* | pw32* | cegcc*)
  7465. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7466. # When not using gcc, we currently assume that we are using
  7467. # Microsoft Visual C++.
  7468. if test "$GCC" != yes; then
  7469. with_gnu_ld=no
  7470. fi
  7471. ;;
  7472. interix*)
  7473. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7474. with_gnu_ld=yes
  7475. ;;
  7476. openbsd*)
  7477. with_gnu_ld=no
  7478. ;;
  7479. esac
  7480. ld_shlibs=yes
  7481. # On some targets, GNU ld is compatible enough with the native linker
  7482. # that we're better off using the native interface for both.
  7483. lt_use_gnu_ld_interface=no
  7484. if test "$with_gnu_ld" = yes; then
  7485. case $host_os in
  7486. aix*)
  7487. # The AIX port of GNU ld has always aspired to compatibility
  7488. # with the native linker. However, as the warning in the GNU ld
  7489. # block says, versions before 2.19.5* couldn't really create working
  7490. # shared libraries, regardless of the interface used.
  7491. case `$LD -v 2>&1` in
  7492. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7493. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7494. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7495. *)
  7496. lt_use_gnu_ld_interface=yes
  7497. ;;
  7498. esac
  7499. ;;
  7500. *)
  7501. lt_use_gnu_ld_interface=yes
  7502. ;;
  7503. esac
  7504. fi
  7505. if test "$lt_use_gnu_ld_interface" = yes; then
  7506. # If archive_cmds runs LD, not CC, wlarc should be empty
  7507. wlarc='${wl}'
  7508. # Set some defaults for GNU ld with shared library support. These
  7509. # are reset later if shared libraries are not supported. Putting them
  7510. # here allows them to be overridden if necessary.
  7511. runpath_var=LD_RUN_PATH
  7512. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7513. export_dynamic_flag_spec='${wl}--export-dynamic'
  7514. # ancient GNU ld didn't support --whole-archive et. al.
  7515. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7516. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7517. else
  7518. whole_archive_flag_spec=
  7519. fi
  7520. supports_anon_versioning=no
  7521. case `$LD -v 2>&1` in
  7522. *GNU\ gold*) supports_anon_versioning=yes ;;
  7523. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7524. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7525. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7526. *\ 2.11.*) ;; # other 2.11 versions
  7527. *) supports_anon_versioning=yes ;;
  7528. esac
  7529. # See if GNU ld supports shared libraries.
  7530. case $host_os in
  7531. aix[3-9]*)
  7532. # On AIX/PPC, the GNU linker is very broken
  7533. if test "$host_cpu" != ia64; then
  7534. ld_shlibs=no
  7535. cat <<_LT_EOF 1>&2
  7536. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7537. *** to be unable to reliably create shared libraries on AIX.
  7538. *** Therefore, libtool is disabling shared libraries support. If you
  7539. *** really care for shared libraries, you may want to install binutils
  7540. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7541. *** You will then need to restart the configuration process.
  7542. _LT_EOF
  7543. fi
  7544. ;;
  7545. amigaos*)
  7546. case $host_cpu in
  7547. powerpc)
  7548. # see comment about AmigaOS4 .so support
  7549. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7550. archive_expsym_cmds=''
  7551. ;;
  7552. m68k)
  7553. 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)'
  7554. hardcode_libdir_flag_spec='-L$libdir'
  7555. hardcode_minus_L=yes
  7556. ;;
  7557. esac
  7558. ;;
  7559. beos*)
  7560. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7561. allow_undefined_flag=unsupported
  7562. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7563. # support --undefined. This deserves some investigation. FIXME
  7564. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7565. else
  7566. ld_shlibs=no
  7567. fi
  7568. ;;
  7569. cygwin* | mingw* | pw32* | cegcc*)
  7570. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7571. # as there is no search path for DLLs.
  7572. hardcode_libdir_flag_spec='-L$libdir'
  7573. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7574. allow_undefined_flag=unsupported
  7575. always_export_symbols=no
  7576. enable_shared_with_static_runtimes=yes
  7577. 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'
  7578. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7579. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7580. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7581. # If the export-symbols file already is a .def file (1st line
  7582. # is EXPORTS), use it as is; otherwise, prepend...
  7583. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7584. cp $export_symbols $output_objdir/$soname.def;
  7585. else
  7586. echo EXPORTS > $output_objdir/$soname.def;
  7587. cat $export_symbols >> $output_objdir/$soname.def;
  7588. fi~
  7589. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7590. else
  7591. ld_shlibs=no
  7592. fi
  7593. ;;
  7594. haiku*)
  7595. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7596. link_all_deplibs=yes
  7597. ;;
  7598. interix[3-9]*)
  7599. hardcode_direct=no
  7600. hardcode_shlibpath_var=no
  7601. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7602. export_dynamic_flag_spec='${wl}-E'
  7603. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7604. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7605. # default) and relocated if they conflict, which is a slow very memory
  7606. # consuming and fragmenting process. To avoid this, we pick a random,
  7607. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7608. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7609. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7610. 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'
  7611. ;;
  7612. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7613. tmp_diet=no
  7614. if test "$host_os" = linux-dietlibc; then
  7615. case $cc_basename in
  7616. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7617. esac
  7618. fi
  7619. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7620. && test "$tmp_diet" = no
  7621. then
  7622. tmp_addflag=' $pic_flag'
  7623. tmp_sharedflag='-shared'
  7624. case $cc_basename,$host_cpu in
  7625. pgcc*) # Portland Group C compiler
  7626. 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'
  7627. tmp_addflag=' $pic_flag'
  7628. ;;
  7629. pgf77* | pgf90* | pgf95* | pgfortran*)
  7630. # Portland Group f77 and f90 compilers
  7631. 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'
  7632. tmp_addflag=' $pic_flag -Mnomain' ;;
  7633. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7634. tmp_addflag=' -i_dynamic' ;;
  7635. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7636. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7637. ifc* | ifort*) # Intel Fortran compiler
  7638. tmp_addflag=' -nofor_main' ;;
  7639. lf95*) # Lahey Fortran 8.1
  7640. whole_archive_flag_spec=
  7641. tmp_sharedflag='--shared' ;;
  7642. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7643. tmp_sharedflag='-qmkshrobj'
  7644. tmp_addflag= ;;
  7645. nvcc*) # Cuda Compiler Driver 2.2
  7646. 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'
  7647. compiler_needs_object=yes
  7648. ;;
  7649. esac
  7650. case `$CC -V 2>&1 | sed 5q` in
  7651. *Sun\ C*) # Sun C 5.9
  7652. 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'
  7653. compiler_needs_object=yes
  7654. tmp_sharedflag='-G' ;;
  7655. *Sun\ F*) # Sun Fortran 8.3
  7656. tmp_sharedflag='-G' ;;
  7657. esac
  7658. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7659. if test "x$supports_anon_versioning" = xyes; then
  7660. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7661. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7662. echo "local: *; };" >> $output_objdir/$libname.ver~
  7663. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7664. fi
  7665. case $cc_basename in
  7666. xlf* | bgf* | bgxlf* | mpixlf*)
  7667. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7668. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7669. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7670. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7671. if test "x$supports_anon_versioning" = xyes; then
  7672. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7673. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7674. echo "local: *; };" >> $output_objdir/$libname.ver~
  7675. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7676. fi
  7677. ;;
  7678. esac
  7679. else
  7680. ld_shlibs=no
  7681. fi
  7682. ;;
  7683. netbsd*)
  7684. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7685. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7686. wlarc=
  7687. else
  7688. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7689. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7690. fi
  7691. ;;
  7692. solaris*)
  7693. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7694. ld_shlibs=no
  7695. cat <<_LT_EOF 1>&2
  7696. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7697. *** create shared libraries on Solaris systems. Therefore, libtool
  7698. *** is disabling shared libraries support. We urge you to upgrade GNU
  7699. *** binutils to release 2.9.1 or newer. Another option is to modify
  7700. *** your PATH or compiler configuration so that the native linker is
  7701. *** used, and then restart.
  7702. _LT_EOF
  7703. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7704. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7705. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7706. else
  7707. ld_shlibs=no
  7708. fi
  7709. ;;
  7710. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7711. case `$LD -v 2>&1` in
  7712. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7713. ld_shlibs=no
  7714. cat <<_LT_EOF 1>&2
  7715. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7716. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7717. *** is disabling shared libraries support. We urge you to upgrade GNU
  7718. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7719. *** your PATH or compiler configuration so that the native linker is
  7720. *** used, and then restart.
  7721. _LT_EOF
  7722. ;;
  7723. *)
  7724. # For security reasons, it is highly recommended that you always
  7725. # use absolute paths for naming shared libraries, and exclude the
  7726. # DT_RUNPATH tag from executables and libraries. But doing so
  7727. # requires that you compile everything twice, which is a pain.
  7728. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7729. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7730. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7731. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7732. else
  7733. ld_shlibs=no
  7734. fi
  7735. ;;
  7736. esac
  7737. ;;
  7738. sunos4*)
  7739. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7740. wlarc=
  7741. hardcode_direct=yes
  7742. hardcode_shlibpath_var=no
  7743. ;;
  7744. *)
  7745. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7746. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7747. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7748. else
  7749. ld_shlibs=no
  7750. fi
  7751. ;;
  7752. esac
  7753. if test "$ld_shlibs" = no; then
  7754. runpath_var=
  7755. hardcode_libdir_flag_spec=
  7756. export_dynamic_flag_spec=
  7757. whole_archive_flag_spec=
  7758. fi
  7759. else
  7760. # PORTME fill in a description of your system's linker (not GNU ld)
  7761. case $host_os in
  7762. aix3*)
  7763. allow_undefined_flag=unsupported
  7764. always_export_symbols=yes
  7765. 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'
  7766. # Note: this linker hardcodes the directories in LIBPATH if there
  7767. # are no directories specified by -L.
  7768. hardcode_minus_L=yes
  7769. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7770. # Neither direct hardcoding nor static linking is supported with a
  7771. # broken collect2.
  7772. hardcode_direct=unsupported
  7773. fi
  7774. ;;
  7775. aix[4-9]*)
  7776. if test "$host_cpu" = ia64; then
  7777. # On IA64, the linker does run time linking by default, so we don't
  7778. # have to do anything special.
  7779. aix_use_runtimelinking=no
  7780. exp_sym_flag='-Bexport'
  7781. no_entry_flag=""
  7782. else
  7783. # If we're using GNU nm, then we don't want the "-C" option.
  7784. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7785. # Also, AIX nm treats weak defined symbols like other global
  7786. # defined symbols, whereas GNU nm marks them as "W".
  7787. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7788. 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'
  7789. else
  7790. 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'
  7791. fi
  7792. aix_use_runtimelinking=no
  7793. # Test if we are trying to use run time linking or normal
  7794. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7795. # need to do runtime linking.
  7796. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7797. for ld_flag in $LDFLAGS; do
  7798. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7799. aix_use_runtimelinking=yes
  7800. break
  7801. fi
  7802. done
  7803. ;;
  7804. esac
  7805. exp_sym_flag='-bexport'
  7806. no_entry_flag='-bnoentry'
  7807. fi
  7808. # When large executables or shared objects are built, AIX ld can
  7809. # have problems creating the table of contents. If linking a library
  7810. # or program results in "error TOC overflow" add -mminimal-toc to
  7811. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7812. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7813. archive_cmds=''
  7814. hardcode_direct=yes
  7815. hardcode_direct_absolute=yes
  7816. hardcode_libdir_separator=':'
  7817. link_all_deplibs=yes
  7818. file_list_spec='${wl}-f,'
  7819. if test "$GCC" = yes; then
  7820. case $host_os in aix4.[012]|aix4.[012].*)
  7821. # We only want to do this on AIX 4.2 and lower, the check
  7822. # below for broken collect2 doesn't work under 4.3+
  7823. collect2name=`${CC} -print-prog-name=collect2`
  7824. if test -f "$collect2name" &&
  7825. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7826. then
  7827. # We have reworked collect2
  7828. :
  7829. else
  7830. # We have old collect2
  7831. hardcode_direct=unsupported
  7832. # It fails to find uninstalled libraries when the uninstalled
  7833. # path is not listed in the libpath. Setting hardcode_minus_L
  7834. # to unsupported forces relinking
  7835. hardcode_minus_L=yes
  7836. hardcode_libdir_flag_spec='-L$libdir'
  7837. hardcode_libdir_separator=
  7838. fi
  7839. ;;
  7840. esac
  7841. shared_flag='-shared'
  7842. if test "$aix_use_runtimelinking" = yes; then
  7843. shared_flag="$shared_flag "'${wl}-G'
  7844. fi
  7845. else
  7846. # not using gcc
  7847. if test "$host_cpu" = ia64; then
  7848. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7849. # chokes on -Wl,-G. The following line is correct:
  7850. shared_flag='-G'
  7851. else
  7852. if test "$aix_use_runtimelinking" = yes; then
  7853. shared_flag='${wl}-G'
  7854. else
  7855. shared_flag='${wl}-bM:SRE'
  7856. fi
  7857. fi
  7858. fi
  7859. export_dynamic_flag_spec='${wl}-bexpall'
  7860. # It seems that -bexpall does not export symbols beginning with
  7861. # underscore (_), so it is better to generate a list of symbols to export.
  7862. always_export_symbols=yes
  7863. if test "$aix_use_runtimelinking" = yes; then
  7864. # Warning - without using the other runtime loading flags (-brtl),
  7865. # -berok will link without error, but may produce a broken library.
  7866. allow_undefined_flag='-berok'
  7867. # Determine the default libpath from the value encoded in an
  7868. # empty executable.
  7869. if test "${lt_cv_aix_libpath+set}" = set; then
  7870. aix_libpath=$lt_cv_aix_libpath
  7871. else
  7872. if ${lt_cv_aix_libpath_+:} false; then :
  7873. $as_echo_n "(cached) " >&6
  7874. else
  7875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7876. /* end confdefs.h. */
  7877. int
  7878. main ()
  7879. {
  7880. ;
  7881. return 0;
  7882. }
  7883. _ACEOF
  7884. if ac_fn_c_try_link "$LINENO"; then :
  7885. lt_aix_libpath_sed='
  7886. /Import File Strings/,/^$/ {
  7887. /^0/ {
  7888. s/^0 *\([^ ]*\) *$/\1/
  7889. p
  7890. }
  7891. }'
  7892. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7893. # Check for a 64-bit object if we didn't find anything.
  7894. if test -z "$lt_cv_aix_libpath_"; then
  7895. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7896. fi
  7897. fi
  7898. rm -f core conftest.err conftest.$ac_objext \
  7899. conftest$ac_exeext conftest.$ac_ext
  7900. if test -z "$lt_cv_aix_libpath_"; then
  7901. lt_cv_aix_libpath_="/usr/lib:/lib"
  7902. fi
  7903. fi
  7904. aix_libpath=$lt_cv_aix_libpath_
  7905. fi
  7906. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7907. 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"
  7908. else
  7909. if test "$host_cpu" = ia64; then
  7910. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7911. allow_undefined_flag="-z nodefs"
  7912. 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"
  7913. else
  7914. # Determine the default libpath from the value encoded in an
  7915. # empty executable.
  7916. if test "${lt_cv_aix_libpath+set}" = set; then
  7917. aix_libpath=$lt_cv_aix_libpath
  7918. else
  7919. if ${lt_cv_aix_libpath_+:} false; then :
  7920. $as_echo_n "(cached) " >&6
  7921. else
  7922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7923. /* end confdefs.h. */
  7924. int
  7925. main ()
  7926. {
  7927. ;
  7928. return 0;
  7929. }
  7930. _ACEOF
  7931. if ac_fn_c_try_link "$LINENO"; then :
  7932. lt_aix_libpath_sed='
  7933. /Import File Strings/,/^$/ {
  7934. /^0/ {
  7935. s/^0 *\([^ ]*\) *$/\1/
  7936. p
  7937. }
  7938. }'
  7939. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7940. # Check for a 64-bit object if we didn't find anything.
  7941. if test -z "$lt_cv_aix_libpath_"; then
  7942. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7943. fi
  7944. fi
  7945. rm -f core conftest.err conftest.$ac_objext \
  7946. conftest$ac_exeext conftest.$ac_ext
  7947. if test -z "$lt_cv_aix_libpath_"; then
  7948. lt_cv_aix_libpath_="/usr/lib:/lib"
  7949. fi
  7950. fi
  7951. aix_libpath=$lt_cv_aix_libpath_
  7952. fi
  7953. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7954. # Warning - without using the other run time loading flags,
  7955. # -berok will link without error, but may produce a broken library.
  7956. no_undefined_flag=' ${wl}-bernotok'
  7957. allow_undefined_flag=' ${wl}-berok'
  7958. if test "$with_gnu_ld" = yes; then
  7959. # We only use this code for GNU lds that support --whole-archive.
  7960. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7961. else
  7962. # Exported symbols can be pulled into shared objects from archives
  7963. whole_archive_flag_spec='$convenience'
  7964. fi
  7965. archive_cmds_need_lc=yes
  7966. # This is similar to how AIX traditionally builds its shared libraries.
  7967. 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'
  7968. fi
  7969. fi
  7970. ;;
  7971. amigaos*)
  7972. case $host_cpu in
  7973. powerpc)
  7974. # see comment about AmigaOS4 .so support
  7975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7976. archive_expsym_cmds=''
  7977. ;;
  7978. m68k)
  7979. 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)'
  7980. hardcode_libdir_flag_spec='-L$libdir'
  7981. hardcode_minus_L=yes
  7982. ;;
  7983. esac
  7984. ;;
  7985. bsdi[45]*)
  7986. export_dynamic_flag_spec=-rdynamic
  7987. ;;
  7988. cygwin* | mingw* | pw32* | cegcc*)
  7989. # When not using gcc, we currently assume that we are using
  7990. # Microsoft Visual C++.
  7991. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7992. # no search path for DLLs.
  7993. case $cc_basename in
  7994. cl*)
  7995. # Native MSVC
  7996. hardcode_libdir_flag_spec=' '
  7997. allow_undefined_flag=unsupported
  7998. always_export_symbols=yes
  7999. file_list_spec='@'
  8000. # Tell ltmain to make .lib files, not .a files.
  8001. libext=lib
  8002. # Tell ltmain to make .dll files, not .so files.
  8003. shrext_cmds=".dll"
  8004. # FIXME: Setting linknames here is a bad hack.
  8005. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8006. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8007. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8008. else
  8009. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8010. fi~
  8011. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8012. linknames='
  8013. # The linker will not automatically build a static lib if we build a DLL.
  8014. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8015. enable_shared_with_static_runtimes=yes
  8016. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8017. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8018. # Don't use ranlib
  8019. old_postinstall_cmds='chmod 644 $oldlib'
  8020. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8021. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8022. case $lt_outputfile in
  8023. *.exe|*.EXE) ;;
  8024. *)
  8025. lt_outputfile="$lt_outputfile.exe"
  8026. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8027. ;;
  8028. esac~
  8029. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8030. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8031. $RM "$lt_outputfile.manifest";
  8032. fi'
  8033. ;;
  8034. *)
  8035. # Assume MSVC wrapper
  8036. hardcode_libdir_flag_spec=' '
  8037. allow_undefined_flag=unsupported
  8038. # Tell ltmain to make .lib files, not .a files.
  8039. libext=lib
  8040. # Tell ltmain to make .dll files, not .so files.
  8041. shrext_cmds=".dll"
  8042. # FIXME: Setting linknames here is a bad hack.
  8043. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8044. # The linker will automatically build a .lib file if we build a DLL.
  8045. old_archive_from_new_cmds='true'
  8046. # FIXME: Should let the user specify the lib program.
  8047. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8048. enable_shared_with_static_runtimes=yes
  8049. ;;
  8050. esac
  8051. ;;
  8052. darwin* | rhapsody*)
  8053. archive_cmds_need_lc=no
  8054. hardcode_direct=no
  8055. hardcode_automatic=yes
  8056. hardcode_shlibpath_var=unsupported
  8057. if test "$lt_cv_ld_force_load" = "yes"; then
  8058. 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\"`'
  8059. else
  8060. whole_archive_flag_spec=''
  8061. fi
  8062. link_all_deplibs=yes
  8063. allow_undefined_flag="$_lt_dar_allow_undefined"
  8064. case $cc_basename in
  8065. ifort*) _lt_dar_can_shared=yes ;;
  8066. *) _lt_dar_can_shared=$GCC ;;
  8067. esac
  8068. if test "$_lt_dar_can_shared" = "yes"; then
  8069. output_verbose_link_cmd=func_echo_all
  8070. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8071. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8072. 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}"
  8073. 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}"
  8074. else
  8075. ld_shlibs=no
  8076. fi
  8077. ;;
  8078. dgux*)
  8079. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8080. hardcode_libdir_flag_spec='-L$libdir'
  8081. hardcode_shlibpath_var=no
  8082. ;;
  8083. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8084. # support. Future versions do this automatically, but an explicit c++rt0.o
  8085. # does not break anything, and helps significantly (at the cost of a little
  8086. # extra space).
  8087. freebsd2.2*)
  8088. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8089. hardcode_libdir_flag_spec='-R$libdir'
  8090. hardcode_direct=yes
  8091. hardcode_shlibpath_var=no
  8092. ;;
  8093. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8094. freebsd2.*)
  8095. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8096. hardcode_direct=yes
  8097. hardcode_minus_L=yes
  8098. hardcode_shlibpath_var=no
  8099. ;;
  8100. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8101. freebsd* | dragonfly*)
  8102. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8103. hardcode_libdir_flag_spec='-R$libdir'
  8104. hardcode_direct=yes
  8105. hardcode_shlibpath_var=no
  8106. ;;
  8107. hpux9*)
  8108. if test "$GCC" = yes; then
  8109. 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'
  8110. else
  8111. 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'
  8112. fi
  8113. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8114. hardcode_libdir_separator=:
  8115. hardcode_direct=yes
  8116. # hardcode_minus_L: Not really in the search PATH,
  8117. # but as the default location of the library.
  8118. hardcode_minus_L=yes
  8119. export_dynamic_flag_spec='${wl}-E'
  8120. ;;
  8121. hpux10*)
  8122. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8123. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8124. else
  8125. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8126. fi
  8127. if test "$with_gnu_ld" = no; then
  8128. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8129. hardcode_libdir_separator=:
  8130. hardcode_direct=yes
  8131. hardcode_direct_absolute=yes
  8132. export_dynamic_flag_spec='${wl}-E'
  8133. # hardcode_minus_L: Not really in the search PATH,
  8134. # but as the default location of the library.
  8135. hardcode_minus_L=yes
  8136. fi
  8137. ;;
  8138. hpux11*)
  8139. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8140. case $host_cpu in
  8141. hppa*64*)
  8142. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8143. ;;
  8144. ia64*)
  8145. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8146. ;;
  8147. *)
  8148. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8149. ;;
  8150. esac
  8151. else
  8152. case $host_cpu in
  8153. hppa*64*)
  8154. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8155. ;;
  8156. ia64*)
  8157. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8158. ;;
  8159. *)
  8160. # Older versions of the 11.00 compiler do not understand -b yet
  8161. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8163. $as_echo_n "checking if $CC understands -b... " >&6; }
  8164. if ${lt_cv_prog_compiler__b+:} false; then :
  8165. $as_echo_n "(cached) " >&6
  8166. else
  8167. lt_cv_prog_compiler__b=no
  8168. save_LDFLAGS="$LDFLAGS"
  8169. LDFLAGS="$LDFLAGS -b"
  8170. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8171. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8172. # The linker can only warn and ignore the option if not recognized
  8173. # So say no if there are warnings
  8174. if test -s conftest.err; then
  8175. # Append any errors to the config.log.
  8176. cat conftest.err 1>&5
  8177. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8178. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8179. if diff conftest.exp conftest.er2 >/dev/null; then
  8180. lt_cv_prog_compiler__b=yes
  8181. fi
  8182. else
  8183. lt_cv_prog_compiler__b=yes
  8184. fi
  8185. fi
  8186. $RM -r conftest*
  8187. LDFLAGS="$save_LDFLAGS"
  8188. fi
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8190. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8191. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8192. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8193. else
  8194. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8195. fi
  8196. ;;
  8197. esac
  8198. fi
  8199. if test "$with_gnu_ld" = no; then
  8200. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8201. hardcode_libdir_separator=:
  8202. case $host_cpu in
  8203. hppa*64*|ia64*)
  8204. hardcode_direct=no
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. *)
  8208. hardcode_direct=yes
  8209. hardcode_direct_absolute=yes
  8210. export_dynamic_flag_spec='${wl}-E'
  8211. # hardcode_minus_L: Not really in the search PATH,
  8212. # but as the default location of the library.
  8213. hardcode_minus_L=yes
  8214. ;;
  8215. esac
  8216. fi
  8217. ;;
  8218. irix5* | irix6* | nonstopux*)
  8219. if test "$GCC" = yes; then
  8220. 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'
  8221. # Try to use the -exported_symbol ld option, if it does not
  8222. # work, assume that -exports_file does not work either and
  8223. # implicitly export all symbols.
  8224. # This should be the same for all languages, so no per-tag cache variable.
  8225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8226. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8227. if ${lt_cv_irix_exported_symbol+:} false; then :
  8228. $as_echo_n "(cached) " >&6
  8229. else
  8230. save_LDFLAGS="$LDFLAGS"
  8231. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8233. /* end confdefs.h. */
  8234. int foo (void) { return 0; }
  8235. _ACEOF
  8236. if ac_fn_c_try_link "$LINENO"; then :
  8237. lt_cv_irix_exported_symbol=yes
  8238. else
  8239. lt_cv_irix_exported_symbol=no
  8240. fi
  8241. rm -f core conftest.err conftest.$ac_objext \
  8242. conftest$ac_exeext conftest.$ac_ext
  8243. LDFLAGS="$save_LDFLAGS"
  8244. fi
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8246. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8247. if test "$lt_cv_irix_exported_symbol" = yes; then
  8248. 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'
  8249. fi
  8250. else
  8251. 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'
  8252. 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'
  8253. fi
  8254. archive_cmds_need_lc='no'
  8255. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8256. hardcode_libdir_separator=:
  8257. inherit_rpath=yes
  8258. link_all_deplibs=yes
  8259. ;;
  8260. netbsd*)
  8261. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8262. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8263. else
  8264. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8265. fi
  8266. hardcode_libdir_flag_spec='-R$libdir'
  8267. hardcode_direct=yes
  8268. hardcode_shlibpath_var=no
  8269. ;;
  8270. newsos6)
  8271. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8272. hardcode_direct=yes
  8273. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8274. hardcode_libdir_separator=:
  8275. hardcode_shlibpath_var=no
  8276. ;;
  8277. *nto* | *qnx*)
  8278. ;;
  8279. openbsd*)
  8280. if test -f /usr/libexec/ld.so; then
  8281. hardcode_direct=yes
  8282. hardcode_shlibpath_var=no
  8283. hardcode_direct_absolute=yes
  8284. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8285. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8286. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8287. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8288. export_dynamic_flag_spec='${wl}-E'
  8289. else
  8290. case $host_os in
  8291. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8292. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8293. hardcode_libdir_flag_spec='-R$libdir'
  8294. ;;
  8295. *)
  8296. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8297. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8298. ;;
  8299. esac
  8300. fi
  8301. else
  8302. ld_shlibs=no
  8303. fi
  8304. ;;
  8305. os2*)
  8306. hardcode_libdir_flag_spec='-L$libdir'
  8307. hardcode_minus_L=yes
  8308. allow_undefined_flag=unsupported
  8309. 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'
  8310. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8311. ;;
  8312. osf3*)
  8313. if test "$GCC" = yes; then
  8314. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8315. 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'
  8316. else
  8317. allow_undefined_flag=' -expect_unresolved \*'
  8318. 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'
  8319. fi
  8320. archive_cmds_need_lc='no'
  8321. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8322. hardcode_libdir_separator=:
  8323. ;;
  8324. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8325. if test "$GCC" = yes; then
  8326. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8327. 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'
  8328. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8329. else
  8330. allow_undefined_flag=' -expect_unresolved \*'
  8331. 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'
  8332. 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~
  8333. $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'
  8334. # Both c and cxx compiler support -rpath directly
  8335. hardcode_libdir_flag_spec='-rpath $libdir'
  8336. fi
  8337. archive_cmds_need_lc='no'
  8338. hardcode_libdir_separator=:
  8339. ;;
  8340. solaris*)
  8341. no_undefined_flag=' -z defs'
  8342. if test "$GCC" = yes; then
  8343. wlarc='${wl}'
  8344. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8345. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8346. $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'
  8347. else
  8348. case `$CC -V 2>&1` in
  8349. *"Compilers 5.0"*)
  8350. wlarc=''
  8351. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8352. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8353. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8354. ;;
  8355. *)
  8356. wlarc='${wl}'
  8357. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8358. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8359. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8360. ;;
  8361. esac
  8362. fi
  8363. hardcode_libdir_flag_spec='-R$libdir'
  8364. hardcode_shlibpath_var=no
  8365. case $host_os in
  8366. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8367. *)
  8368. # The compiler driver will combine and reorder linker options,
  8369. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8370. # but is careful enough not to reorder.
  8371. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8372. if test "$GCC" = yes; then
  8373. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8374. else
  8375. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8376. fi
  8377. ;;
  8378. esac
  8379. link_all_deplibs=yes
  8380. ;;
  8381. sunos4*)
  8382. if test "x$host_vendor" = xsequent; then
  8383. # Use $CC to link under sequent, because it throws in some extra .o
  8384. # files that make .init and .fini sections work.
  8385. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8386. else
  8387. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8388. fi
  8389. hardcode_libdir_flag_spec='-L$libdir'
  8390. hardcode_direct=yes
  8391. hardcode_minus_L=yes
  8392. hardcode_shlibpath_var=no
  8393. ;;
  8394. sysv4)
  8395. case $host_vendor in
  8396. sni)
  8397. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8398. hardcode_direct=yes # is this really true???
  8399. ;;
  8400. siemens)
  8401. ## LD is ld it makes a PLAMLIB
  8402. ## CC just makes a GrossModule.
  8403. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8404. reload_cmds='$CC -r -o $output$reload_objs'
  8405. hardcode_direct=no
  8406. ;;
  8407. motorola)
  8408. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8409. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8410. ;;
  8411. esac
  8412. runpath_var='LD_RUN_PATH'
  8413. hardcode_shlibpath_var=no
  8414. ;;
  8415. sysv4.3*)
  8416. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8417. hardcode_shlibpath_var=no
  8418. export_dynamic_flag_spec='-Bexport'
  8419. ;;
  8420. sysv4*MP*)
  8421. if test -d /usr/nec; then
  8422. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8423. hardcode_shlibpath_var=no
  8424. runpath_var=LD_RUN_PATH
  8425. hardcode_runpath_var=yes
  8426. ld_shlibs=yes
  8427. fi
  8428. ;;
  8429. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8430. no_undefined_flag='${wl}-z,text'
  8431. archive_cmds_need_lc=no
  8432. hardcode_shlibpath_var=no
  8433. runpath_var='LD_RUN_PATH'
  8434. if test "$GCC" = yes; then
  8435. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8437. else
  8438. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8439. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8440. fi
  8441. ;;
  8442. sysv5* | sco3.2v5* | sco5v6*)
  8443. # Note: We can NOT use -z defs as we might desire, because we do not
  8444. # link with -lc, and that would cause any symbols used from libc to
  8445. # always be unresolved, which means just about no library would
  8446. # ever link correctly. If we're not using GNU ld we use -z text
  8447. # though, which does catch some bad symbols but isn't as heavy-handed
  8448. # as -z defs.
  8449. no_undefined_flag='${wl}-z,text'
  8450. allow_undefined_flag='${wl}-z,nodefs'
  8451. archive_cmds_need_lc=no
  8452. hardcode_shlibpath_var=no
  8453. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8454. hardcode_libdir_separator=':'
  8455. link_all_deplibs=yes
  8456. export_dynamic_flag_spec='${wl}-Bexport'
  8457. runpath_var='LD_RUN_PATH'
  8458. if test "$GCC" = yes; then
  8459. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8461. else
  8462. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8463. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8464. fi
  8465. ;;
  8466. uts4*)
  8467. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8468. hardcode_libdir_flag_spec='-L$libdir'
  8469. hardcode_shlibpath_var=no
  8470. ;;
  8471. *)
  8472. ld_shlibs=no
  8473. ;;
  8474. esac
  8475. if test x$host_vendor = xsni; then
  8476. case $host in
  8477. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8478. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8479. ;;
  8480. esac
  8481. fi
  8482. fi
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8484. $as_echo "$ld_shlibs" >&6; }
  8485. test "$ld_shlibs" = no && can_build_shared=no
  8486. with_gnu_ld=$with_gnu_ld
  8487. #
  8488. # Do we need to explicitly link libc?
  8489. #
  8490. case "x$archive_cmds_need_lc" in
  8491. x|xyes)
  8492. # Assume -lc should be added
  8493. archive_cmds_need_lc=yes
  8494. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8495. case $archive_cmds in
  8496. *'~'*)
  8497. # FIXME: we may have to deal with multi-command sequences.
  8498. ;;
  8499. '$CC '*)
  8500. # Test whether the compiler implicitly links with -lc since on some
  8501. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8502. # to ld, don't add -lc before -lgcc.
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8504. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8505. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8506. $as_echo_n "(cached) " >&6
  8507. else
  8508. $RM conftest*
  8509. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8510. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8511. (eval $ac_compile) 2>&5
  8512. ac_status=$?
  8513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8514. test $ac_status = 0; } 2>conftest.err; then
  8515. soname=conftest
  8516. lib=conftest
  8517. libobjs=conftest.$ac_objext
  8518. deplibs=
  8519. wl=$lt_prog_compiler_wl
  8520. pic_flag=$lt_prog_compiler_pic
  8521. compiler_flags=-v
  8522. linker_flags=-v
  8523. verstring=
  8524. output_objdir=.
  8525. libname=conftest
  8526. lt_save_allow_undefined_flag=$allow_undefined_flag
  8527. allow_undefined_flag=
  8528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8529. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8530. ac_status=$?
  8531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8532. test $ac_status = 0; }
  8533. then
  8534. lt_cv_archive_cmds_need_lc=no
  8535. else
  8536. lt_cv_archive_cmds_need_lc=yes
  8537. fi
  8538. allow_undefined_flag=$lt_save_allow_undefined_flag
  8539. else
  8540. cat conftest.err 1>&5
  8541. fi
  8542. $RM conftest*
  8543. fi
  8544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8545. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8546. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8547. ;;
  8548. esac
  8549. fi
  8550. ;;
  8551. esac
  8552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8553. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8554. if test "$GCC" = yes; then
  8555. case $host_os in
  8556. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8557. *) lt_awk_arg="/^libraries:/" ;;
  8558. esac
  8559. case $host_os in
  8560. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8561. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8562. esac
  8563. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8564. case $lt_search_path_spec in
  8565. *\;*)
  8566. # if the path contains ";" then we assume it to be the separator
  8567. # otherwise default to the standard path separator (i.e. ":") - it is
  8568. # assumed that no part of a normal pathname contains ";" but that should
  8569. # okay in the real world where ";" in dirpaths is itself problematic.
  8570. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8571. ;;
  8572. *)
  8573. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8574. ;;
  8575. esac
  8576. # Ok, now we have the path, separated by spaces, we can step through it
  8577. # and add multilib dir if necessary.
  8578. lt_tmp_lt_search_path_spec=
  8579. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8580. for lt_sys_path in $lt_search_path_spec; do
  8581. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8582. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8583. else
  8584. test -d "$lt_sys_path" && \
  8585. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8586. fi
  8587. done
  8588. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8589. BEGIN {RS=" "; FS="/|\n";} {
  8590. lt_foo="";
  8591. lt_count=0;
  8592. for (lt_i = NF; lt_i > 0; lt_i--) {
  8593. if ($lt_i != "" && $lt_i != ".") {
  8594. if ($lt_i == "..") {
  8595. lt_count++;
  8596. } else {
  8597. if (lt_count == 0) {
  8598. lt_foo="/" $lt_i lt_foo;
  8599. } else {
  8600. lt_count--;
  8601. }
  8602. }
  8603. }
  8604. }
  8605. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8606. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8607. }'`
  8608. # AWK program above erroneously prepends '/' to C:/dos/paths
  8609. # for these hosts.
  8610. case $host_os in
  8611. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8612. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8613. esac
  8614. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8615. else
  8616. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8617. fi
  8618. library_names_spec=
  8619. libname_spec='lib$name'
  8620. soname_spec=
  8621. shrext_cmds=".so"
  8622. postinstall_cmds=
  8623. postuninstall_cmds=
  8624. finish_cmds=
  8625. finish_eval=
  8626. shlibpath_var=
  8627. shlibpath_overrides_runpath=unknown
  8628. version_type=none
  8629. dynamic_linker="$host_os ld.so"
  8630. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8631. need_lib_prefix=unknown
  8632. hardcode_into_libs=no
  8633. # when you set need_version to no, make sure it does not cause -set_version
  8634. # flags to be left without arguments
  8635. need_version=unknown
  8636. case $host_os in
  8637. aix3*)
  8638. version_type=linux # correct to gnu/linux during the next big refactor
  8639. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8640. shlibpath_var=LIBPATH
  8641. # AIX 3 has no versioning support, so we append a major version to the name.
  8642. soname_spec='${libname}${release}${shared_ext}$major'
  8643. ;;
  8644. aix[4-9]*)
  8645. version_type=linux # correct to gnu/linux during the next big refactor
  8646. need_lib_prefix=no
  8647. need_version=no
  8648. hardcode_into_libs=yes
  8649. if test "$host_cpu" = ia64; then
  8650. # AIX 5 supports IA64
  8651. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8652. shlibpath_var=LD_LIBRARY_PATH
  8653. else
  8654. # With GCC up to 2.95.x, collect2 would create an import file
  8655. # for dependence libraries. The import file would start with
  8656. # the line `#! .'. This would cause the generated library to
  8657. # depend on `.', always an invalid library. This was fixed in
  8658. # development snapshots of GCC prior to 3.0.
  8659. case $host_os in
  8660. aix4 | aix4.[01] | aix4.[01].*)
  8661. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8662. echo ' yes '
  8663. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8664. :
  8665. else
  8666. can_build_shared=no
  8667. fi
  8668. ;;
  8669. esac
  8670. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8671. # soname into executable. Probably we can add versioning support to
  8672. # collect2, so additional links can be useful in future.
  8673. if test "$aix_use_runtimelinking" = yes; then
  8674. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8675. # instead of lib<name>.a to let people know that these are not
  8676. # typical AIX shared libraries.
  8677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8678. else
  8679. # We preserve .a as extension for shared libraries through AIX4.2
  8680. # and later when we are not doing run time linking.
  8681. library_names_spec='${libname}${release}.a $libname.a'
  8682. soname_spec='${libname}${release}${shared_ext}$major'
  8683. fi
  8684. shlibpath_var=LIBPATH
  8685. fi
  8686. ;;
  8687. amigaos*)
  8688. case $host_cpu in
  8689. powerpc)
  8690. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8691. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8693. ;;
  8694. m68k)
  8695. library_names_spec='$libname.ixlibrary $libname.a'
  8696. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8697. 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'
  8698. ;;
  8699. esac
  8700. ;;
  8701. beos*)
  8702. library_names_spec='${libname}${shared_ext}'
  8703. dynamic_linker="$host_os ld.so"
  8704. shlibpath_var=LIBRARY_PATH
  8705. ;;
  8706. bsdi[45]*)
  8707. version_type=linux # correct to gnu/linux during the next big refactor
  8708. need_version=no
  8709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8710. soname_spec='${libname}${release}${shared_ext}$major'
  8711. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8712. shlibpath_var=LD_LIBRARY_PATH
  8713. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8714. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8715. # the default ld.so.conf also contains /usr/contrib/lib and
  8716. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8717. # libtool to hard-code these into programs
  8718. ;;
  8719. cygwin* | mingw* | pw32* | cegcc*)
  8720. version_type=windows
  8721. shrext_cmds=".dll"
  8722. need_version=no
  8723. need_lib_prefix=no
  8724. case $GCC,$cc_basename in
  8725. yes,*)
  8726. # gcc
  8727. library_names_spec='$libname.dll.a'
  8728. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8729. postinstall_cmds='base_file=`basename \${file}`~
  8730. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8731. dldir=$destdir/`dirname \$dlpath`~
  8732. test -d \$dldir || mkdir -p \$dldir~
  8733. $install_prog $dir/$dlname \$dldir/$dlname~
  8734. chmod a+x \$dldir/$dlname~
  8735. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8736. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8737. fi'
  8738. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8739. dlpath=$dir/\$dldll~
  8740. $RM \$dlpath'
  8741. shlibpath_overrides_runpath=yes
  8742. case $host_os in
  8743. cygwin*)
  8744. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8745. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8746. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8747. ;;
  8748. mingw* | cegcc*)
  8749. # MinGW DLLs use traditional 'lib' prefix
  8750. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8751. ;;
  8752. pw32*)
  8753. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8754. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8755. ;;
  8756. esac
  8757. dynamic_linker='Win32 ld.exe'
  8758. ;;
  8759. *,cl*)
  8760. # Native MSVC
  8761. libname_spec='$name'
  8762. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8763. library_names_spec='${libname}.dll.lib'
  8764. case $build_os in
  8765. mingw*)
  8766. sys_lib_search_path_spec=
  8767. lt_save_ifs=$IFS
  8768. IFS=';'
  8769. for lt_path in $LIB
  8770. do
  8771. IFS=$lt_save_ifs
  8772. # Let DOS variable expansion print the short 8.3 style file name.
  8773. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8774. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8775. done
  8776. IFS=$lt_save_ifs
  8777. # Convert to MSYS style.
  8778. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8779. ;;
  8780. cygwin*)
  8781. # Convert to unix form, then to dos form, then back to unix form
  8782. # but this time dos style (no spaces!) so that the unix form looks
  8783. # like /cygdrive/c/PROGRA~1:/cygdr...
  8784. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8785. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8786. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8787. ;;
  8788. *)
  8789. sys_lib_search_path_spec="$LIB"
  8790. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8791. # It is most probably a Windows format PATH.
  8792. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8793. else
  8794. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8795. fi
  8796. # FIXME: find the short name or the path components, as spaces are
  8797. # common. (e.g. "Program Files" -> "PROGRA~1")
  8798. ;;
  8799. esac
  8800. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8801. postinstall_cmds='base_file=`basename \${file}`~
  8802. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8803. dldir=$destdir/`dirname \$dlpath`~
  8804. test -d \$dldir || mkdir -p \$dldir~
  8805. $install_prog $dir/$dlname \$dldir/$dlname'
  8806. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8807. dlpath=$dir/\$dldll~
  8808. $RM \$dlpath'
  8809. shlibpath_overrides_runpath=yes
  8810. dynamic_linker='Win32 link.exe'
  8811. ;;
  8812. *)
  8813. # Assume MSVC wrapper
  8814. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8815. dynamic_linker='Win32 ld.exe'
  8816. ;;
  8817. esac
  8818. # FIXME: first we should search . and the directory the executable is in
  8819. shlibpath_var=PATH
  8820. ;;
  8821. darwin* | rhapsody*)
  8822. dynamic_linker="$host_os dyld"
  8823. version_type=darwin
  8824. need_lib_prefix=no
  8825. need_version=no
  8826. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8827. soname_spec='${libname}${release}${major}$shared_ext'
  8828. shlibpath_overrides_runpath=yes
  8829. shlibpath_var=DYLD_LIBRARY_PATH
  8830. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8831. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8832. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8833. ;;
  8834. dgux*)
  8835. version_type=linux # correct to gnu/linux during the next big refactor
  8836. need_lib_prefix=no
  8837. need_version=no
  8838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8839. soname_spec='${libname}${release}${shared_ext}$major'
  8840. shlibpath_var=LD_LIBRARY_PATH
  8841. ;;
  8842. freebsd* | dragonfly*)
  8843. # DragonFly does not have aout. When/if they implement a new
  8844. # versioning mechanism, adjust this.
  8845. if test -x /usr/bin/objformat; then
  8846. objformat=`/usr/bin/objformat`
  8847. else
  8848. case $host_os in
  8849. freebsd[23].*) objformat=aout ;;
  8850. *) objformat=elf ;;
  8851. esac
  8852. fi
  8853. version_type=freebsd-$objformat
  8854. case $version_type in
  8855. freebsd-elf*)
  8856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8857. need_version=no
  8858. need_lib_prefix=no
  8859. ;;
  8860. freebsd-*)
  8861. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8862. need_version=yes
  8863. ;;
  8864. esac
  8865. shlibpath_var=LD_LIBRARY_PATH
  8866. case $host_os in
  8867. freebsd2.*)
  8868. shlibpath_overrides_runpath=yes
  8869. ;;
  8870. freebsd3.[01]* | freebsdelf3.[01]*)
  8871. shlibpath_overrides_runpath=yes
  8872. hardcode_into_libs=yes
  8873. ;;
  8874. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8875. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8876. shlibpath_overrides_runpath=no
  8877. hardcode_into_libs=yes
  8878. ;;
  8879. *) # from 4.6 on, and DragonFly
  8880. shlibpath_overrides_runpath=yes
  8881. hardcode_into_libs=yes
  8882. ;;
  8883. esac
  8884. ;;
  8885. gnu*)
  8886. version_type=linux # correct to gnu/linux during the next big refactor
  8887. need_lib_prefix=no
  8888. need_version=no
  8889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8890. soname_spec='${libname}${release}${shared_ext}$major'
  8891. shlibpath_var=LD_LIBRARY_PATH
  8892. shlibpath_overrides_runpath=no
  8893. hardcode_into_libs=yes
  8894. ;;
  8895. haiku*)
  8896. version_type=linux # correct to gnu/linux during the next big refactor
  8897. need_lib_prefix=no
  8898. need_version=no
  8899. dynamic_linker="$host_os runtime_loader"
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8901. soname_spec='${libname}${release}${shared_ext}$major'
  8902. shlibpath_var=LIBRARY_PATH
  8903. shlibpath_overrides_runpath=yes
  8904. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8905. hardcode_into_libs=yes
  8906. ;;
  8907. hpux9* | hpux10* | hpux11*)
  8908. # Give a soname corresponding to the major version so that dld.sl refuses to
  8909. # link against other versions.
  8910. version_type=sunos
  8911. need_lib_prefix=no
  8912. need_version=no
  8913. case $host_cpu in
  8914. ia64*)
  8915. shrext_cmds='.so'
  8916. hardcode_into_libs=yes
  8917. dynamic_linker="$host_os dld.so"
  8918. shlibpath_var=LD_LIBRARY_PATH
  8919. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8921. soname_spec='${libname}${release}${shared_ext}$major'
  8922. if test "X$HPUX_IA64_MODE" = X32; then
  8923. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8924. else
  8925. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8926. fi
  8927. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8928. ;;
  8929. hppa*64*)
  8930. shrext_cmds='.sl'
  8931. hardcode_into_libs=yes
  8932. dynamic_linker="$host_os dld.sl"
  8933. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8934. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8936. soname_spec='${libname}${release}${shared_ext}$major'
  8937. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8938. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8939. ;;
  8940. *)
  8941. shrext_cmds='.sl'
  8942. dynamic_linker="$host_os dld.sl"
  8943. shlibpath_var=SHLIB_PATH
  8944. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8946. soname_spec='${libname}${release}${shared_ext}$major'
  8947. ;;
  8948. esac
  8949. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8950. postinstall_cmds='chmod 555 $lib'
  8951. # or fails outright, so override atomically:
  8952. install_override_mode=555
  8953. ;;
  8954. interix[3-9]*)
  8955. version_type=linux # correct to gnu/linux during the next big refactor
  8956. need_lib_prefix=no
  8957. need_version=no
  8958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8959. soname_spec='${libname}${release}${shared_ext}$major'
  8960. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8961. shlibpath_var=LD_LIBRARY_PATH
  8962. shlibpath_overrides_runpath=no
  8963. hardcode_into_libs=yes
  8964. ;;
  8965. irix5* | irix6* | nonstopux*)
  8966. case $host_os in
  8967. nonstopux*) version_type=nonstopux ;;
  8968. *)
  8969. if test "$lt_cv_prog_gnu_ld" = yes; then
  8970. version_type=linux # correct to gnu/linux during the next big refactor
  8971. else
  8972. version_type=irix
  8973. fi ;;
  8974. esac
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. soname_spec='${libname}${release}${shared_ext}$major'
  8978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8979. case $host_os in
  8980. irix5* | nonstopux*)
  8981. libsuff= shlibsuff=
  8982. ;;
  8983. *)
  8984. case $LD in # libtool.m4 will add one of these switches to LD
  8985. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8986. libsuff= shlibsuff= libmagic=32-bit;;
  8987. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8988. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8989. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8990. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8991. *) libsuff= shlibsuff= libmagic=never-match;;
  8992. esac
  8993. ;;
  8994. esac
  8995. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8996. shlibpath_overrides_runpath=no
  8997. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8998. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8999. hardcode_into_libs=yes
  9000. ;;
  9001. # No shared lib support for Linux oldld, aout, or coff.
  9002. linux*oldld* | linux*aout* | linux*coff*)
  9003. dynamic_linker=no
  9004. ;;
  9005. # This must be glibc/ELF.
  9006. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9007. version_type=linux # correct to gnu/linux during the next big refactor
  9008. need_lib_prefix=no
  9009. need_version=no
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9013. shlibpath_var=LD_LIBRARY_PATH
  9014. shlibpath_overrides_runpath=no
  9015. # Some binutils ld are patched to set DT_RUNPATH
  9016. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9017. $as_echo_n "(cached) " >&6
  9018. else
  9019. lt_cv_shlibpath_overrides_runpath=no
  9020. save_LDFLAGS=$LDFLAGS
  9021. save_libdir=$libdir
  9022. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9023. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9025. /* end confdefs.h. */
  9026. int
  9027. main ()
  9028. {
  9029. ;
  9030. return 0;
  9031. }
  9032. _ACEOF
  9033. if ac_fn_c_try_link "$LINENO"; then :
  9034. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9035. lt_cv_shlibpath_overrides_runpath=yes
  9036. fi
  9037. fi
  9038. rm -f core conftest.err conftest.$ac_objext \
  9039. conftest$ac_exeext conftest.$ac_ext
  9040. LDFLAGS=$save_LDFLAGS
  9041. libdir=$save_libdir
  9042. fi
  9043. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9044. # This implies no fast_install, which is unacceptable.
  9045. # Some rework will be needed to allow for fast_install
  9046. # before this can be enabled.
  9047. hardcode_into_libs=yes
  9048. # Add ABI-specific directories to the system library path.
  9049. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9050. # Append ld.so.conf contents to the search path
  9051. if test -f /etc/ld.so.conf; then
  9052. 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' ' '`
  9053. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9054. fi
  9055. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9056. # powerpc, because MkLinux only supported shared libraries with the
  9057. # GNU dynamic linker. Since this was broken with cross compilers,
  9058. # most powerpc-linux boxes support dynamic linking these days and
  9059. # people can always --disable-shared, the test was removed, and we
  9060. # assume the GNU/Linux dynamic linker is in use.
  9061. dynamic_linker='GNU/Linux ld.so'
  9062. ;;
  9063. netbsd*)
  9064. version_type=sunos
  9065. need_lib_prefix=no
  9066. need_version=no
  9067. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9069. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9070. dynamic_linker='NetBSD (a.out) ld.so'
  9071. else
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9073. soname_spec='${libname}${release}${shared_ext}$major'
  9074. dynamic_linker='NetBSD ld.elf_so'
  9075. fi
  9076. shlibpath_var=LD_LIBRARY_PATH
  9077. shlibpath_overrides_runpath=yes
  9078. hardcode_into_libs=yes
  9079. ;;
  9080. newsos6)
  9081. version_type=linux # correct to gnu/linux during the next big refactor
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. shlibpath_var=LD_LIBRARY_PATH
  9084. shlibpath_overrides_runpath=yes
  9085. ;;
  9086. *nto* | *qnx*)
  9087. version_type=qnx
  9088. need_lib_prefix=no
  9089. need_version=no
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9091. soname_spec='${libname}${release}${shared_ext}$major'
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. shlibpath_overrides_runpath=no
  9094. hardcode_into_libs=yes
  9095. dynamic_linker='ldqnx.so'
  9096. ;;
  9097. openbsd*)
  9098. version_type=sunos
  9099. sys_lib_dlsearch_path_spec="/usr/lib"
  9100. need_lib_prefix=no
  9101. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9102. case $host_os in
  9103. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9104. *) need_version=no ;;
  9105. esac
  9106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9107. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9108. shlibpath_var=LD_LIBRARY_PATH
  9109. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9110. case $host_os in
  9111. openbsd2.[89] | openbsd2.[89].*)
  9112. shlibpath_overrides_runpath=no
  9113. ;;
  9114. *)
  9115. shlibpath_overrides_runpath=yes
  9116. ;;
  9117. esac
  9118. else
  9119. shlibpath_overrides_runpath=yes
  9120. fi
  9121. ;;
  9122. os2*)
  9123. libname_spec='$name'
  9124. shrext_cmds=".dll"
  9125. need_lib_prefix=no
  9126. library_names_spec='$libname${shared_ext} $libname.a'
  9127. dynamic_linker='OS/2 ld.exe'
  9128. shlibpath_var=LIBPATH
  9129. ;;
  9130. osf3* | osf4* | osf5*)
  9131. version_type=osf
  9132. need_lib_prefix=no
  9133. need_version=no
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9138. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9139. ;;
  9140. rdos*)
  9141. dynamic_linker=no
  9142. ;;
  9143. solaris*)
  9144. version_type=linux # correct to gnu/linux during the next big refactor
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9148. soname_spec='${libname}${release}${shared_ext}$major'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. shlibpath_overrides_runpath=yes
  9151. hardcode_into_libs=yes
  9152. # ldd complains unless libraries are executable
  9153. postinstall_cmds='chmod +x $lib'
  9154. ;;
  9155. sunos4*)
  9156. version_type=sunos
  9157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9158. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9159. shlibpath_var=LD_LIBRARY_PATH
  9160. shlibpath_overrides_runpath=yes
  9161. if test "$with_gnu_ld" = yes; then
  9162. need_lib_prefix=no
  9163. fi
  9164. need_version=yes
  9165. ;;
  9166. sysv4 | sysv4.3*)
  9167. version_type=linux # correct to gnu/linux during the next big refactor
  9168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9169. soname_spec='${libname}${release}${shared_ext}$major'
  9170. shlibpath_var=LD_LIBRARY_PATH
  9171. case $host_vendor in
  9172. sni)
  9173. shlibpath_overrides_runpath=no
  9174. need_lib_prefix=no
  9175. runpath_var=LD_RUN_PATH
  9176. ;;
  9177. siemens)
  9178. need_lib_prefix=no
  9179. ;;
  9180. motorola)
  9181. need_lib_prefix=no
  9182. need_version=no
  9183. shlibpath_overrides_runpath=no
  9184. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9185. ;;
  9186. esac
  9187. ;;
  9188. sysv4*MP*)
  9189. if test -d /usr/nec ;then
  9190. version_type=linux # correct to gnu/linux during the next big refactor
  9191. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9192. soname_spec='$libname${shared_ext}.$major'
  9193. shlibpath_var=LD_LIBRARY_PATH
  9194. fi
  9195. ;;
  9196. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9197. version_type=freebsd-elf
  9198. need_lib_prefix=no
  9199. need_version=no
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9201. soname_spec='${libname}${release}${shared_ext}$major'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. shlibpath_overrides_runpath=yes
  9204. hardcode_into_libs=yes
  9205. if test "$with_gnu_ld" = yes; then
  9206. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9207. else
  9208. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9209. case $host_os in
  9210. sco3.2v5*)
  9211. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9212. ;;
  9213. esac
  9214. fi
  9215. sys_lib_dlsearch_path_spec='/usr/lib'
  9216. ;;
  9217. tpf*)
  9218. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9219. version_type=linux # correct to gnu/linux during the next big refactor
  9220. need_lib_prefix=no
  9221. need_version=no
  9222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9223. shlibpath_var=LD_LIBRARY_PATH
  9224. shlibpath_overrides_runpath=no
  9225. hardcode_into_libs=yes
  9226. ;;
  9227. uts4*)
  9228. version_type=linux # correct to gnu/linux during the next big refactor
  9229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9230. soname_spec='${libname}${release}${shared_ext}$major'
  9231. shlibpath_var=LD_LIBRARY_PATH
  9232. ;;
  9233. *)
  9234. dynamic_linker=no
  9235. ;;
  9236. esac
  9237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9238. $as_echo "$dynamic_linker" >&6; }
  9239. test "$dynamic_linker" = no && can_build_shared=no
  9240. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9241. if test "$GCC" = yes; then
  9242. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9243. fi
  9244. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9245. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9246. fi
  9247. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9248. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9249. fi
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9251. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9252. hardcode_action=
  9253. if test -n "$hardcode_libdir_flag_spec" ||
  9254. test -n "$runpath_var" ||
  9255. test "X$hardcode_automatic" = "Xyes" ; then
  9256. # We can hardcode non-existent directories.
  9257. if test "$hardcode_direct" != no &&
  9258. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9259. # have to relink, otherwise we might link with an installed library
  9260. # when we should be linking with a yet-to-be-installed one
  9261. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9262. test "$hardcode_minus_L" != no; then
  9263. # Linking always hardcodes the temporary library directory.
  9264. hardcode_action=relink
  9265. else
  9266. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9267. hardcode_action=immediate
  9268. fi
  9269. else
  9270. # We cannot hardcode anything, or else we can only hardcode existing
  9271. # directories.
  9272. hardcode_action=unsupported
  9273. fi
  9274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9275. $as_echo "$hardcode_action" >&6; }
  9276. if test "$hardcode_action" = relink ||
  9277. test "$inherit_rpath" = yes; then
  9278. # Fast installation is not supported
  9279. enable_fast_install=no
  9280. elif test "$shlibpath_overrides_runpath" = yes ||
  9281. test "$enable_shared" = no; then
  9282. # Fast installation is not necessary
  9283. enable_fast_install=needless
  9284. fi
  9285. if test "x$enable_dlopen" != xyes; then
  9286. enable_dlopen=unknown
  9287. enable_dlopen_self=unknown
  9288. enable_dlopen_self_static=unknown
  9289. else
  9290. lt_cv_dlopen=no
  9291. lt_cv_dlopen_libs=
  9292. case $host_os in
  9293. beos*)
  9294. lt_cv_dlopen="load_add_on"
  9295. lt_cv_dlopen_libs=
  9296. lt_cv_dlopen_self=yes
  9297. ;;
  9298. mingw* | pw32* | cegcc*)
  9299. lt_cv_dlopen="LoadLibrary"
  9300. lt_cv_dlopen_libs=
  9301. ;;
  9302. cygwin*)
  9303. lt_cv_dlopen="dlopen"
  9304. lt_cv_dlopen_libs=
  9305. ;;
  9306. darwin*)
  9307. # if libdl is installed we need to link against it
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9309. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9310. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9311. $as_echo_n "(cached) " >&6
  9312. else
  9313. ac_check_lib_save_LIBS=$LIBS
  9314. LIBS="-ldl $LIBS"
  9315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9316. /* end confdefs.h. */
  9317. /* Override any GCC internal prototype to avoid an error.
  9318. Use char because int might match the return type of a GCC
  9319. builtin and then its argument prototype would still apply. */
  9320. #ifdef __cplusplus
  9321. extern "C"
  9322. #endif
  9323. char dlopen ();
  9324. int
  9325. main ()
  9326. {
  9327. return dlopen ();
  9328. ;
  9329. return 0;
  9330. }
  9331. _ACEOF
  9332. if ac_fn_c_try_link "$LINENO"; then :
  9333. ac_cv_lib_dl_dlopen=yes
  9334. else
  9335. ac_cv_lib_dl_dlopen=no
  9336. fi
  9337. rm -f core conftest.err conftest.$ac_objext \
  9338. conftest$ac_exeext conftest.$ac_ext
  9339. LIBS=$ac_check_lib_save_LIBS
  9340. fi
  9341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9342. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9343. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9344. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9345. else
  9346. lt_cv_dlopen="dyld"
  9347. lt_cv_dlopen_libs=
  9348. lt_cv_dlopen_self=yes
  9349. fi
  9350. ;;
  9351. *)
  9352. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9353. if test "x$ac_cv_func_shl_load" = xyes; then :
  9354. lt_cv_dlopen="shl_load"
  9355. else
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9357. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9358. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9359. $as_echo_n "(cached) " >&6
  9360. else
  9361. ac_check_lib_save_LIBS=$LIBS
  9362. LIBS="-ldld $LIBS"
  9363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9364. /* end confdefs.h. */
  9365. /* Override any GCC internal prototype to avoid an error.
  9366. Use char because int might match the return type of a GCC
  9367. builtin and then its argument prototype would still apply. */
  9368. #ifdef __cplusplus
  9369. extern "C"
  9370. #endif
  9371. char shl_load ();
  9372. int
  9373. main ()
  9374. {
  9375. return shl_load ();
  9376. ;
  9377. return 0;
  9378. }
  9379. _ACEOF
  9380. if ac_fn_c_try_link "$LINENO"; then :
  9381. ac_cv_lib_dld_shl_load=yes
  9382. else
  9383. ac_cv_lib_dld_shl_load=no
  9384. fi
  9385. rm -f core conftest.err conftest.$ac_objext \
  9386. conftest$ac_exeext conftest.$ac_ext
  9387. LIBS=$ac_check_lib_save_LIBS
  9388. fi
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9390. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9391. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9392. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9393. else
  9394. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9395. if test "x$ac_cv_func_dlopen" = xyes; then :
  9396. lt_cv_dlopen="dlopen"
  9397. else
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9399. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9400. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9401. $as_echo_n "(cached) " >&6
  9402. else
  9403. ac_check_lib_save_LIBS=$LIBS
  9404. LIBS="-ldl $LIBS"
  9405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9406. /* end confdefs.h. */
  9407. /* Override any GCC internal prototype to avoid an error.
  9408. Use char because int might match the return type of a GCC
  9409. builtin and then its argument prototype would still apply. */
  9410. #ifdef __cplusplus
  9411. extern "C"
  9412. #endif
  9413. char dlopen ();
  9414. int
  9415. main ()
  9416. {
  9417. return dlopen ();
  9418. ;
  9419. return 0;
  9420. }
  9421. _ACEOF
  9422. if ac_fn_c_try_link "$LINENO"; then :
  9423. ac_cv_lib_dl_dlopen=yes
  9424. else
  9425. ac_cv_lib_dl_dlopen=no
  9426. fi
  9427. rm -f core conftest.err conftest.$ac_objext \
  9428. conftest$ac_exeext conftest.$ac_ext
  9429. LIBS=$ac_check_lib_save_LIBS
  9430. fi
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9432. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9433. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9434. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9435. else
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9437. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9438. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9439. $as_echo_n "(cached) " >&6
  9440. else
  9441. ac_check_lib_save_LIBS=$LIBS
  9442. LIBS="-lsvld $LIBS"
  9443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9444. /* end confdefs.h. */
  9445. /* Override any GCC internal prototype to avoid an error.
  9446. Use char because int might match the return type of a GCC
  9447. builtin and then its argument prototype would still apply. */
  9448. #ifdef __cplusplus
  9449. extern "C"
  9450. #endif
  9451. char dlopen ();
  9452. int
  9453. main ()
  9454. {
  9455. return dlopen ();
  9456. ;
  9457. return 0;
  9458. }
  9459. _ACEOF
  9460. if ac_fn_c_try_link "$LINENO"; then :
  9461. ac_cv_lib_svld_dlopen=yes
  9462. else
  9463. ac_cv_lib_svld_dlopen=no
  9464. fi
  9465. rm -f core conftest.err conftest.$ac_objext \
  9466. conftest$ac_exeext conftest.$ac_ext
  9467. LIBS=$ac_check_lib_save_LIBS
  9468. fi
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9470. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9471. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9472. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9473. else
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9475. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9476. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9477. $as_echo_n "(cached) " >&6
  9478. else
  9479. ac_check_lib_save_LIBS=$LIBS
  9480. LIBS="-ldld $LIBS"
  9481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9482. /* end confdefs.h. */
  9483. /* Override any GCC internal prototype to avoid an error.
  9484. Use char because int might match the return type of a GCC
  9485. builtin and then its argument prototype would still apply. */
  9486. #ifdef __cplusplus
  9487. extern "C"
  9488. #endif
  9489. char dld_link ();
  9490. int
  9491. main ()
  9492. {
  9493. return dld_link ();
  9494. ;
  9495. return 0;
  9496. }
  9497. _ACEOF
  9498. if ac_fn_c_try_link "$LINENO"; then :
  9499. ac_cv_lib_dld_dld_link=yes
  9500. else
  9501. ac_cv_lib_dld_dld_link=no
  9502. fi
  9503. rm -f core conftest.err conftest.$ac_objext \
  9504. conftest$ac_exeext conftest.$ac_ext
  9505. LIBS=$ac_check_lib_save_LIBS
  9506. fi
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9508. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9509. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9510. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9511. fi
  9512. fi
  9513. fi
  9514. fi
  9515. fi
  9516. fi
  9517. ;;
  9518. esac
  9519. if test "x$lt_cv_dlopen" != xno; then
  9520. enable_dlopen=yes
  9521. else
  9522. enable_dlopen=no
  9523. fi
  9524. case $lt_cv_dlopen in
  9525. dlopen)
  9526. save_CPPFLAGS="$CPPFLAGS"
  9527. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9528. save_LDFLAGS="$LDFLAGS"
  9529. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9530. save_LIBS="$LIBS"
  9531. LIBS="$lt_cv_dlopen_libs $LIBS"
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9533. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9534. if ${lt_cv_dlopen_self+:} false; then :
  9535. $as_echo_n "(cached) " >&6
  9536. else
  9537. if test "$cross_compiling" = yes; then :
  9538. lt_cv_dlopen_self=cross
  9539. else
  9540. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9541. lt_status=$lt_dlunknown
  9542. cat > conftest.$ac_ext <<_LT_EOF
  9543. #line $LINENO "configure"
  9544. #include "confdefs.h"
  9545. #if HAVE_DLFCN_H
  9546. #include <dlfcn.h>
  9547. #endif
  9548. #include <stdio.h>
  9549. #ifdef RTLD_GLOBAL
  9550. # define LT_DLGLOBAL RTLD_GLOBAL
  9551. #else
  9552. # ifdef DL_GLOBAL
  9553. # define LT_DLGLOBAL DL_GLOBAL
  9554. # else
  9555. # define LT_DLGLOBAL 0
  9556. # endif
  9557. #endif
  9558. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9559. find out it does not work in some platform. */
  9560. #ifndef LT_DLLAZY_OR_NOW
  9561. # ifdef RTLD_LAZY
  9562. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9563. # else
  9564. # ifdef DL_LAZY
  9565. # define LT_DLLAZY_OR_NOW DL_LAZY
  9566. # else
  9567. # ifdef RTLD_NOW
  9568. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9569. # else
  9570. # ifdef DL_NOW
  9571. # define LT_DLLAZY_OR_NOW DL_NOW
  9572. # else
  9573. # define LT_DLLAZY_OR_NOW 0
  9574. # endif
  9575. # endif
  9576. # endif
  9577. # endif
  9578. #endif
  9579. /* When -fvisbility=hidden is used, assume the code has been annotated
  9580. correspondingly for the symbols needed. */
  9581. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9582. int fnord () __attribute__((visibility("default")));
  9583. #endif
  9584. int fnord () { return 42; }
  9585. int main ()
  9586. {
  9587. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9588. int status = $lt_dlunknown;
  9589. if (self)
  9590. {
  9591. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9592. else
  9593. {
  9594. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9595. else puts (dlerror ());
  9596. }
  9597. /* dlclose (self); */
  9598. }
  9599. else
  9600. puts (dlerror ());
  9601. return status;
  9602. }
  9603. _LT_EOF
  9604. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9605. (eval $ac_link) 2>&5
  9606. ac_status=$?
  9607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9608. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9609. (./conftest; exit; ) >&5 2>/dev/null
  9610. lt_status=$?
  9611. case x$lt_status in
  9612. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9613. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9614. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9615. esac
  9616. else :
  9617. # compilation failed
  9618. lt_cv_dlopen_self=no
  9619. fi
  9620. fi
  9621. rm -fr conftest*
  9622. fi
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9624. $as_echo "$lt_cv_dlopen_self" >&6; }
  9625. if test "x$lt_cv_dlopen_self" = xyes; then
  9626. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9628. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9629. if ${lt_cv_dlopen_self_static+:} false; then :
  9630. $as_echo_n "(cached) " >&6
  9631. else
  9632. if test "$cross_compiling" = yes; then :
  9633. lt_cv_dlopen_self_static=cross
  9634. else
  9635. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9636. lt_status=$lt_dlunknown
  9637. cat > conftest.$ac_ext <<_LT_EOF
  9638. #line $LINENO "configure"
  9639. #include "confdefs.h"
  9640. #if HAVE_DLFCN_H
  9641. #include <dlfcn.h>
  9642. #endif
  9643. #include <stdio.h>
  9644. #ifdef RTLD_GLOBAL
  9645. # define LT_DLGLOBAL RTLD_GLOBAL
  9646. #else
  9647. # ifdef DL_GLOBAL
  9648. # define LT_DLGLOBAL DL_GLOBAL
  9649. # else
  9650. # define LT_DLGLOBAL 0
  9651. # endif
  9652. #endif
  9653. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9654. find out it does not work in some platform. */
  9655. #ifndef LT_DLLAZY_OR_NOW
  9656. # ifdef RTLD_LAZY
  9657. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9658. # else
  9659. # ifdef DL_LAZY
  9660. # define LT_DLLAZY_OR_NOW DL_LAZY
  9661. # else
  9662. # ifdef RTLD_NOW
  9663. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9664. # else
  9665. # ifdef DL_NOW
  9666. # define LT_DLLAZY_OR_NOW DL_NOW
  9667. # else
  9668. # define LT_DLLAZY_OR_NOW 0
  9669. # endif
  9670. # endif
  9671. # endif
  9672. # endif
  9673. #endif
  9674. /* When -fvisbility=hidden is used, assume the code has been annotated
  9675. correspondingly for the symbols needed. */
  9676. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9677. int fnord () __attribute__((visibility("default")));
  9678. #endif
  9679. int fnord () { return 42; }
  9680. int main ()
  9681. {
  9682. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9683. int status = $lt_dlunknown;
  9684. if (self)
  9685. {
  9686. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9687. else
  9688. {
  9689. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9690. else puts (dlerror ());
  9691. }
  9692. /* dlclose (self); */
  9693. }
  9694. else
  9695. puts (dlerror ());
  9696. return status;
  9697. }
  9698. _LT_EOF
  9699. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9700. (eval $ac_link) 2>&5
  9701. ac_status=$?
  9702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9703. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9704. (./conftest; exit; ) >&5 2>/dev/null
  9705. lt_status=$?
  9706. case x$lt_status in
  9707. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9708. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9709. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9710. esac
  9711. else :
  9712. # compilation failed
  9713. lt_cv_dlopen_self_static=no
  9714. fi
  9715. fi
  9716. rm -fr conftest*
  9717. fi
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9719. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9720. fi
  9721. CPPFLAGS="$save_CPPFLAGS"
  9722. LDFLAGS="$save_LDFLAGS"
  9723. LIBS="$save_LIBS"
  9724. ;;
  9725. esac
  9726. case $lt_cv_dlopen_self in
  9727. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9728. *) enable_dlopen_self=unknown ;;
  9729. esac
  9730. case $lt_cv_dlopen_self_static in
  9731. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9732. *) enable_dlopen_self_static=unknown ;;
  9733. esac
  9734. fi
  9735. striplib=
  9736. old_striplib=
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9738. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9739. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9740. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9741. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9743. $as_echo "yes" >&6; }
  9744. else
  9745. # FIXME - insert some real tests, host_os isn't really good enough
  9746. case $host_os in
  9747. darwin*)
  9748. if test -n "$STRIP" ; then
  9749. striplib="$STRIP -x"
  9750. old_striplib="$STRIP -S"
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9752. $as_echo "yes" >&6; }
  9753. else
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9755. $as_echo "no" >&6; }
  9756. fi
  9757. ;;
  9758. *)
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9760. $as_echo "no" >&6; }
  9761. ;;
  9762. esac
  9763. fi
  9764. # Report which library types will actually be built
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9766. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9768. $as_echo "$can_build_shared" >&6; }
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9770. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9771. test "$can_build_shared" = "no" && enable_shared=no
  9772. # On AIX, shared libraries and static libraries use the same namespace, and
  9773. # are all built from PIC.
  9774. case $host_os in
  9775. aix3*)
  9776. test "$enable_shared" = yes && enable_static=no
  9777. if test -n "$RANLIB"; then
  9778. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9779. postinstall_cmds='$RANLIB $lib'
  9780. fi
  9781. ;;
  9782. aix[4-9]*)
  9783. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9784. test "$enable_shared" = yes && enable_static=no
  9785. fi
  9786. ;;
  9787. esac
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9789. $as_echo "$enable_shared" >&6; }
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9791. $as_echo_n "checking whether to build static libraries... " >&6; }
  9792. # Make sure either enable_shared or enable_static is yes.
  9793. test "$enable_shared" = yes || enable_static=yes
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9795. $as_echo "$enable_static" >&6; }
  9796. fi
  9797. ac_ext=c
  9798. ac_cpp='$CPP $CPPFLAGS'
  9799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9802. CC="$lt_save_CC"
  9803. ac_config_commands="$ac_config_commands libtool"
  9804. # Only expand once:
  9805. if test "x$CC" != xcc; then
  9806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  9807. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9808. else
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  9810. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9811. fi
  9812. set dummy $CC; ac_cc=`$as_echo "$2" |
  9813. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9814. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  9815. $as_echo_n "(cached) " >&6
  9816. else
  9817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9818. /* end confdefs.h. */
  9819. int
  9820. main ()
  9821. {
  9822. ;
  9823. return 0;
  9824. }
  9825. _ACEOF
  9826. # Make sure it works both with $CC and with simple cc.
  9827. # We do the test twice because some compilers refuse to overwrite an
  9828. # existing .o file with -o, though they will create one.
  9829. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9830. rm -f conftest2.*
  9831. if { { case "(($ac_try" in
  9832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9833. *) ac_try_echo=$ac_try;;
  9834. esac
  9835. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9836. $as_echo "$ac_try_echo"; } >&5
  9837. (eval "$ac_try") 2>&5
  9838. ac_status=$?
  9839. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9840. test $ac_status = 0; } &&
  9841. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9843. *) ac_try_echo=$ac_try;;
  9844. esac
  9845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9846. $as_echo "$ac_try_echo"; } >&5
  9847. (eval "$ac_try") 2>&5
  9848. ac_status=$?
  9849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9850. test $ac_status = 0; };
  9851. then
  9852. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9853. if test "x$CC" != xcc; then
  9854. # Test first that cc exists at all.
  9855. if { ac_try='cc -c conftest.$ac_ext >&5'
  9856. { { case "(($ac_try" in
  9857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9858. *) ac_try_echo=$ac_try;;
  9859. esac
  9860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9861. $as_echo "$ac_try_echo"; } >&5
  9862. (eval "$ac_try") 2>&5
  9863. ac_status=$?
  9864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9865. test $ac_status = 0; }; }; then
  9866. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9867. rm -f conftest2.*
  9868. if { { case "(($ac_try" in
  9869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9870. *) ac_try_echo=$ac_try;;
  9871. esac
  9872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9873. $as_echo "$ac_try_echo"; } >&5
  9874. (eval "$ac_try") 2>&5
  9875. ac_status=$?
  9876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9877. test $ac_status = 0; } &&
  9878. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9880. *) ac_try_echo=$ac_try;;
  9881. esac
  9882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9883. $as_echo "$ac_try_echo"; } >&5
  9884. (eval "$ac_try") 2>&5
  9885. ac_status=$?
  9886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9887. test $ac_status = 0; };
  9888. then
  9889. # cc works too.
  9890. :
  9891. else
  9892. # cc exists but doesn't like -o.
  9893. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9894. fi
  9895. fi
  9896. fi
  9897. else
  9898. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9899. fi
  9900. rm -f core conftest*
  9901. fi
  9902. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9904. $as_echo "yes" >&6; }
  9905. else
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9907. $as_echo "no" >&6; }
  9908. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  9909. fi
  9910. # FIXME: we rely on the cache variable name because
  9911. # there is no other way.
  9912. set dummy $CC
  9913. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9914. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9915. if test "$am_t" != yes; then
  9916. # Losing compiler, so override with the script.
  9917. # FIXME: It is wrong to rewrite CC.
  9918. # But if we don't then we get into trouble of one sort or another.
  9919. # A longer-term fix would be to have automake use am__CC in this case,
  9920. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9921. CC="$am_aux_dir/compile $CC"
  9922. fi
  9923. cflags_save="$CFLAGS"
  9924. if test -z "$GCC"; then
  9925. case $host in
  9926. *-*-irix*)
  9927. DEBUG="-g -signed"
  9928. CFLAGS="-O2 -w -signed"
  9929. PROFILE="-p -g3 -O2 -signed"
  9930. ;;
  9931. sparc-sun-solaris*)
  9932. DEBUG="-v -g"
  9933. CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  9934. PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
  9935. ;;
  9936. *)
  9937. DEBUG="-g"
  9938. CFLAGS="-O"
  9939. PROFILE="-g -p"
  9940. ;;
  9941. esac
  9942. else
  9943. case $host in
  9944. *-*-linux*)
  9945. DEBUG="-g -Wall -fsigned-char"
  9946. CFLAGS="-O20 -Wall -ffast-math -fsigned-char"
  9947. PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
  9948. ;;
  9949. sparc-sun-*)
  9950. DEBUG="-g -Wall -fsigned-char"
  9951. CFLAGS="-O20 -ffast-math -fsigned-char"
  9952. PROFILE="-pg -g -O20 -fsigned-char"
  9953. ;;
  9954. *-*-darwin*)
  9955. DEBUG="-fno-common -g -Wall -fsigned-char"
  9956. CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
  9957. PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
  9958. ;;
  9959. *)
  9960. DEBUG="-g -Wall -fsigned-char"
  9961. CFLAGS="-O20 -fsigned-char"
  9962. PROFILE="-O20 -g -pg -fsigned-char"
  9963. ;;
  9964. esac
  9965. fi
  9966. CFLAGS="$CFLAGS $cflags_save"
  9967. DEBUG="$DEBUG $cflags_save"
  9968. PROFILE="$PROFILE $cflags_save"
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9970. $as_echo_n "checking for ANSI C header files... " >&6; }
  9971. if ${ac_cv_header_stdc+:} false; then :
  9972. $as_echo_n "(cached) " >&6
  9973. else
  9974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9975. /* end confdefs.h. */
  9976. #include <stdlib.h>
  9977. #include <stdarg.h>
  9978. #include <string.h>
  9979. #include <float.h>
  9980. int
  9981. main ()
  9982. {
  9983. ;
  9984. return 0;
  9985. }
  9986. _ACEOF
  9987. if ac_fn_c_try_compile "$LINENO"; then :
  9988. ac_cv_header_stdc=yes
  9989. else
  9990. ac_cv_header_stdc=no
  9991. fi
  9992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9993. if test $ac_cv_header_stdc = yes; then
  9994. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9996. /* end confdefs.h. */
  9997. #include <string.h>
  9998. _ACEOF
  9999. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10000. $EGREP "memchr" >/dev/null 2>&1; then :
  10001. else
  10002. ac_cv_header_stdc=no
  10003. fi
  10004. rm -f conftest*
  10005. fi
  10006. if test $ac_cv_header_stdc = yes; then
  10007. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10009. /* end confdefs.h. */
  10010. #include <stdlib.h>
  10011. _ACEOF
  10012. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10013. $EGREP "free" >/dev/null 2>&1; then :
  10014. else
  10015. ac_cv_header_stdc=no
  10016. fi
  10017. rm -f conftest*
  10018. fi
  10019. if test $ac_cv_header_stdc = yes; then
  10020. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10021. if test "$cross_compiling" = yes; then :
  10022. :
  10023. else
  10024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10025. /* end confdefs.h. */
  10026. #include <ctype.h>
  10027. #include <stdlib.h>
  10028. #if ((' ' & 0x0FF) == 0x020)
  10029. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10030. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10031. #else
  10032. # define ISLOWER(c) \
  10033. (('a' <= (c) && (c) <= 'i') \
  10034. || ('j' <= (c) && (c) <= 'r') \
  10035. || ('s' <= (c) && (c) <= 'z'))
  10036. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10037. #endif
  10038. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10039. int
  10040. main ()
  10041. {
  10042. int i;
  10043. for (i = 0; i < 256; i++)
  10044. if (XOR (islower (i), ISLOWER (i))
  10045. || toupper (i) != TOUPPER (i))
  10046. return 2;
  10047. return 0;
  10048. }
  10049. _ACEOF
  10050. if ac_fn_c_try_run "$LINENO"; then :
  10051. else
  10052. ac_cv_header_stdc=no
  10053. fi
  10054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10056. fi
  10057. fi
  10058. fi
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10060. $as_echo "$ac_cv_header_stdc" >&6; }
  10061. if test $ac_cv_header_stdc = yes; then
  10062. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10063. fi
  10064. INCLUDE_INTTYPES_H=0
  10065. INCLUDE_STDINT_H=0
  10066. INCLUDE_SYS_TYPES_H=0
  10067. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  10068. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  10069. INCLUDE_INTTYPES_H=1
  10070. fi
  10071. ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10072. if test "x$ac_cv_header_stdint_h" = xyes; then :
  10073. INCLUDE_STDINT_H=1
  10074. fi
  10075. ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  10076. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  10077. INCLUDE_SYS_TYPES_H=1
  10078. fi
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10080. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10081. if ${ac_cv_c_const+:} false; then :
  10082. $as_echo_n "(cached) " >&6
  10083. else
  10084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10085. /* end confdefs.h. */
  10086. int
  10087. main ()
  10088. {
  10089. /* FIXME: Include the comments suggested by Paul. */
  10090. #ifndef __cplusplus
  10091. /* Ultrix mips cc rejects this. */
  10092. typedef int charset[2];
  10093. const charset cs;
  10094. /* SunOS 4.1.1 cc rejects this. */
  10095. char const *const *pcpcc;
  10096. char **ppc;
  10097. /* NEC SVR4.0.2 mips cc rejects this. */
  10098. struct point {int x, y;};
  10099. static struct point const zero = {0,0};
  10100. /* AIX XL C 1.02.0.0 rejects this.
  10101. It does not let you subtract one const X* pointer from another in
  10102. an arm of an if-expression whose if-part is not a constant
  10103. expression */
  10104. const char *g = "string";
  10105. pcpcc = &g + (g ? g-g : 0);
  10106. /* HPUX 7.0 cc rejects these. */
  10107. ++pcpcc;
  10108. ppc = (char**) pcpcc;
  10109. pcpcc = (char const *const *) ppc;
  10110. { /* SCO 3.2v4 cc rejects this. */
  10111. char *t;
  10112. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10113. *t++ = 0;
  10114. if (s) return 0;
  10115. }
  10116. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10117. int x[] = {25, 17};
  10118. const int *foo = &x[0];
  10119. ++foo;
  10120. }
  10121. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10122. typedef const int *iptr;
  10123. iptr p = 0;
  10124. ++p;
  10125. }
  10126. { /* AIX XL C 1.02.0.0 rejects this saying
  10127. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10128. struct s { int j; const int *ap[3]; };
  10129. struct s *b; b->j = 5;
  10130. }
  10131. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10132. const int foo = 10;
  10133. if (!foo) return 0;
  10134. }
  10135. return !cs[0] && !zero.x;
  10136. #endif
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. if ac_fn_c_try_compile "$LINENO"; then :
  10142. ac_cv_c_const=yes
  10143. else
  10144. ac_cv_c_const=no
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10147. fi
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10149. $as_echo "$ac_cv_c_const" >&6; }
  10150. if test $ac_cv_c_const = no; then
  10151. $as_echo "#define const /**/" >>confdefs.h
  10152. fi
  10153. # The cast to long int works around a bug in the HP C Compiler
  10154. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10155. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10156. # This bug is HP SR number 8606223364.
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
  10158. $as_echo_n "checking size of int16_t... " >&6; }
  10159. if ${ac_cv_sizeof_int16_t+:} false; then :
  10160. $as_echo_n "(cached) " >&6
  10161. else
  10162. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
  10163. else
  10164. if test "$ac_cv_type_int16_t" = yes; then
  10165. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10166. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10167. as_fn_error 77 "cannot compute sizeof (int16_t)
  10168. See \`config.log' for more details" "$LINENO" 5; }
  10169. else
  10170. ac_cv_sizeof_int16_t=0
  10171. fi
  10172. fi
  10173. fi
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
  10175. $as_echo "$ac_cv_sizeof_int16_t" >&6; }
  10176. cat >>confdefs.h <<_ACEOF
  10177. #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
  10178. _ACEOF
  10179. # The cast to long int works around a bug in the HP C Compiler
  10180. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10181. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10182. # This bug is HP SR number 8606223364.
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
  10184. $as_echo_n "checking size of uint16_t... " >&6; }
  10185. if ${ac_cv_sizeof_uint16_t+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
  10189. else
  10190. if test "$ac_cv_type_uint16_t" = yes; then
  10191. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10192. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10193. as_fn_error 77 "cannot compute sizeof (uint16_t)
  10194. See \`config.log' for more details" "$LINENO" 5; }
  10195. else
  10196. ac_cv_sizeof_uint16_t=0
  10197. fi
  10198. fi
  10199. fi
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
  10201. $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
  10202. cat >>confdefs.h <<_ACEOF
  10203. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  10204. _ACEOF
  10205. # The cast to long int works around a bug in the HP C Compiler
  10206. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10207. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10208. # This bug is HP SR number 8606223364.
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
  10210. $as_echo_n "checking size of u_int16_t... " >&6; }
  10211. if ${ac_cv_sizeof_u_int16_t+:} false; then :
  10212. $as_echo_n "(cached) " >&6
  10213. else
  10214. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
  10215. else
  10216. if test "$ac_cv_type_u_int16_t" = yes; then
  10217. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10219. as_fn_error 77 "cannot compute sizeof (u_int16_t)
  10220. See \`config.log' for more details" "$LINENO" 5; }
  10221. else
  10222. ac_cv_sizeof_u_int16_t=0
  10223. fi
  10224. fi
  10225. fi
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
  10227. $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
  10228. cat >>confdefs.h <<_ACEOF
  10229. #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
  10230. _ACEOF
  10231. # The cast to long int works around a bug in the HP C Compiler
  10232. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10233. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10234. # This bug is HP SR number 8606223364.
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
  10236. $as_echo_n "checking size of int32_t... " >&6; }
  10237. if ${ac_cv_sizeof_int32_t+:} false; then :
  10238. $as_echo_n "(cached) " >&6
  10239. else
  10240. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
  10241. else
  10242. if test "$ac_cv_type_int32_t" = yes; then
  10243. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10244. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10245. as_fn_error 77 "cannot compute sizeof (int32_t)
  10246. See \`config.log' for more details" "$LINENO" 5; }
  10247. else
  10248. ac_cv_sizeof_int32_t=0
  10249. fi
  10250. fi
  10251. fi
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
  10253. $as_echo "$ac_cv_sizeof_int32_t" >&6; }
  10254. cat >>confdefs.h <<_ACEOF
  10255. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  10256. _ACEOF
  10257. # The cast to long int works around a bug in the HP C Compiler
  10258. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10259. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10260. # This bug is HP SR number 8606223364.
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
  10262. $as_echo_n "checking size of uint32_t... " >&6; }
  10263. if ${ac_cv_sizeof_uint32_t+:} false; then :
  10264. $as_echo_n "(cached) " >&6
  10265. else
  10266. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
  10267. else
  10268. if test "$ac_cv_type_uint32_t" = yes; then
  10269. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10270. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10271. as_fn_error 77 "cannot compute sizeof (uint32_t)
  10272. See \`config.log' for more details" "$LINENO" 5; }
  10273. else
  10274. ac_cv_sizeof_uint32_t=0
  10275. fi
  10276. fi
  10277. fi
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
  10279. $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
  10280. cat >>confdefs.h <<_ACEOF
  10281. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  10282. _ACEOF
  10283. # The cast to long int works around a bug in the HP C Compiler
  10284. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10285. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10286. # This bug is HP SR number 8606223364.
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
  10288. $as_echo_n "checking size of u_int32_t... " >&6; }
  10289. if ${ac_cv_sizeof_u_int32_t+:} false; then :
  10290. $as_echo_n "(cached) " >&6
  10291. else
  10292. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
  10293. else
  10294. if test "$ac_cv_type_u_int32_t" = yes; then
  10295. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10296. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10297. as_fn_error 77 "cannot compute sizeof (u_int32_t)
  10298. See \`config.log' for more details" "$LINENO" 5; }
  10299. else
  10300. ac_cv_sizeof_u_int32_t=0
  10301. fi
  10302. fi
  10303. fi
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
  10305. $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
  10306. cat >>confdefs.h <<_ACEOF
  10307. #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
  10308. _ACEOF
  10309. # The cast to long int works around a bug in the HP C Compiler
  10310. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10311. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10312. # This bug is HP SR number 8606223364.
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
  10314. $as_echo_n "checking size of int64_t... " >&6; }
  10315. if ${ac_cv_sizeof_int64_t+:} false; then :
  10316. $as_echo_n "(cached) " >&6
  10317. else
  10318. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
  10319. else
  10320. if test "$ac_cv_type_int64_t" = yes; then
  10321. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10323. as_fn_error 77 "cannot compute sizeof (int64_t)
  10324. See \`config.log' for more details" "$LINENO" 5; }
  10325. else
  10326. ac_cv_sizeof_int64_t=0
  10327. fi
  10328. fi
  10329. fi
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
  10331. $as_echo "$ac_cv_sizeof_int64_t" >&6; }
  10332. cat >>confdefs.h <<_ACEOF
  10333. #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
  10334. _ACEOF
  10335. # The cast to long int works around a bug in the HP C Compiler
  10336. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10337. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10338. # This bug is HP SR number 8606223364.
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  10340. $as_echo_n "checking size of short... " >&6; }
  10341. if ${ac_cv_sizeof_short+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  10345. else
  10346. if test "$ac_cv_type_short" = yes; then
  10347. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10348. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10349. as_fn_error 77 "cannot compute sizeof (short)
  10350. See \`config.log' for more details" "$LINENO" 5; }
  10351. else
  10352. ac_cv_sizeof_short=0
  10353. fi
  10354. fi
  10355. fi
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  10357. $as_echo "$ac_cv_sizeof_short" >&6; }
  10358. cat >>confdefs.h <<_ACEOF
  10359. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10360. _ACEOF
  10361. # The cast to long int works around a bug in the HP C Compiler
  10362. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10363. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10364. # This bug is HP SR number 8606223364.
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10366. $as_echo_n "checking size of int... " >&6; }
  10367. if ${ac_cv_sizeof_int+:} false; then :
  10368. $as_echo_n "(cached) " >&6
  10369. else
  10370. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10371. else
  10372. if test "$ac_cv_type_int" = yes; then
  10373. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10374. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10375. as_fn_error 77 "cannot compute sizeof (int)
  10376. See \`config.log' for more details" "$LINENO" 5; }
  10377. else
  10378. ac_cv_sizeof_int=0
  10379. fi
  10380. fi
  10381. fi
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10383. $as_echo "$ac_cv_sizeof_int" >&6; }
  10384. cat >>confdefs.h <<_ACEOF
  10385. #define SIZEOF_INT $ac_cv_sizeof_int
  10386. _ACEOF
  10387. # The cast to long int works around a bug in the HP C Compiler
  10388. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10389. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10390. # This bug is HP SR number 8606223364.
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10392. $as_echo_n "checking size of long... " >&6; }
  10393. if ${ac_cv_sizeof_long+:} false; then :
  10394. $as_echo_n "(cached) " >&6
  10395. else
  10396. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10397. else
  10398. if test "$ac_cv_type_long" = yes; then
  10399. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10401. as_fn_error 77 "cannot compute sizeof (long)
  10402. See \`config.log' for more details" "$LINENO" 5; }
  10403. else
  10404. ac_cv_sizeof_long=0
  10405. fi
  10406. fi
  10407. fi
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10409. $as_echo "$ac_cv_sizeof_long" >&6; }
  10410. cat >>confdefs.h <<_ACEOF
  10411. #define SIZEOF_LONG $ac_cv_sizeof_long
  10412. _ACEOF
  10413. # The cast to long int works around a bug in the HP C Compiler
  10414. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10415. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10416. # This bug is HP SR number 8606223364.
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10418. $as_echo_n "checking size of long long... " >&6; }
  10419. if ${ac_cv_sizeof_long_long+:} false; then :
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  10423. else
  10424. if test "$ac_cv_type_long_long" = yes; then
  10425. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10426. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10427. as_fn_error 77 "cannot compute sizeof (long long)
  10428. See \`config.log' for more details" "$LINENO" 5; }
  10429. else
  10430. ac_cv_sizeof_long_long=0
  10431. fi
  10432. fi
  10433. fi
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10435. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10436. cat >>confdefs.h <<_ACEOF
  10437. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10438. _ACEOF
  10439. case 2 in
  10440. $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
  10441. $ac_cv_sizeof_short) SIZE16="short";;
  10442. $ac_cv_sizeof_int) SIZE16="int";;
  10443. esac
  10444. case 2 in
  10445. $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
  10446. $ac_cv_sizeof_short) USIZE16="unsigned short";;
  10447. $ac_cv_sizeof_int) USIZE16="unsigned int";;
  10448. $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
  10449. esac
  10450. case 4 in
  10451. $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
  10452. $ac_cv_sizeof_short) SIZE32="short";;
  10453. $ac_cv_sizeof_int) SIZE32="int";;
  10454. $ac_cv_sizeof_long) SIZE32="long";;
  10455. esac
  10456. case 4 in
  10457. $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
  10458. $ac_cv_sizeof_short) USIZE32="unsigned short";;
  10459. $ac_cv_sizeof_int) USIZE32="unsigned int";;
  10460. $ac_cv_sizeof_long) USIZE32="unsigned long";;
  10461. $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
  10462. esac
  10463. case 8 in
  10464. $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
  10465. $ac_cv_sizeof_int) SIZE64="int";;
  10466. $ac_cv_sizeof_long) SIZE64="long";;
  10467. $ac_cv_sizeof_long_long) SIZE64="long long";;
  10468. esac
  10469. if test -z "$SIZE16"; then
  10470. as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
  10471. fi
  10472. if test -z "$USIZE16"; then
  10473. as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
  10474. fi
  10475. if test -z "$SIZE32"; then
  10476. as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
  10477. fi
  10478. if test -z "$USIZE32"; then
  10479. as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
  10480. fi
  10481. if test -z "$SIZE64"; then
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
  10483. $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
  10484. fi
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  10486. $as_echo_n "checking for working memcmp... " >&6; }
  10487. if ${ac_cv_func_memcmp_working+:} false; then :
  10488. $as_echo_n "(cached) " >&6
  10489. else
  10490. if test "$cross_compiling" = yes; then :
  10491. ac_cv_func_memcmp_working=no
  10492. else
  10493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10494. /* end confdefs.h. */
  10495. $ac_includes_default
  10496. int
  10497. main ()
  10498. {
  10499. /* Some versions of memcmp are not 8-bit clean. */
  10500. char c0 = '\100', c1 = '\200', c2 = '\201';
  10501. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10502. return 1;
  10503. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10504. or more and with at least one buffer not starting on a 4-byte boundary.
  10505. William Lewis provided this test program. */
  10506. {
  10507. char foo[21];
  10508. char bar[21];
  10509. int i;
  10510. for (i = 0; i < 4; i++)
  10511. {
  10512. char *a = foo + i;
  10513. char *b = bar + i;
  10514. strcpy (a, "--------01111111");
  10515. strcpy (b, "--------10000000");
  10516. if (memcmp (a, b, 16) >= 0)
  10517. return 1;
  10518. }
  10519. return 0;
  10520. }
  10521. ;
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. if ac_fn_c_try_run "$LINENO"; then :
  10526. ac_cv_func_memcmp_working=yes
  10527. else
  10528. ac_cv_func_memcmp_working=no
  10529. fi
  10530. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10531. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10532. fi
  10533. fi
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  10535. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  10536. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10537. *" memcmp.$ac_objext "* ) ;;
  10538. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10539. ;;
  10540. esac
  10541. ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
  10542. ac_config_headers="$ac_config_headers config.h"
  10543. cat >confcache <<\_ACEOF
  10544. # This file is a shell script that caches the results of configure
  10545. # tests run on this system so they can be shared between configure
  10546. # scripts and configure runs, see configure's option --config-cache.
  10547. # It is not useful on other systems. If it contains results you don't
  10548. # want to keep, you may remove or edit it.
  10549. #
  10550. # config.status only pays attention to the cache file if you give it
  10551. # the --recheck option to rerun configure.
  10552. #
  10553. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10554. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10555. # following values.
  10556. _ACEOF
  10557. # The following way of writing the cache mishandles newlines in values,
  10558. # but we know of no workaround that is simple, portable, and efficient.
  10559. # So, we kill variables containing newlines.
  10560. # Ultrix sh set writes to stderr and can't be redirected directly,
  10561. # and sets the high bit in the cache file unless we assign to the vars.
  10562. (
  10563. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10564. eval ac_val=\$$ac_var
  10565. case $ac_val in #(
  10566. *${as_nl}*)
  10567. case $ac_var in #(
  10568. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10569. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10570. esac
  10571. case $ac_var in #(
  10572. _ | IFS | as_nl) ;; #(
  10573. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10574. *) { eval $ac_var=; unset $ac_var;} ;;
  10575. esac ;;
  10576. esac
  10577. done
  10578. (set) 2>&1 |
  10579. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10580. *${as_nl}ac_space=\ *)
  10581. # `set' does not quote correctly, so add quotes: double-quote
  10582. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10583. sed -n \
  10584. "s/'/'\\\\''/g;
  10585. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10586. ;; #(
  10587. *)
  10588. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10589. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10590. ;;
  10591. esac |
  10592. sort
  10593. ) |
  10594. sed '
  10595. /^ac_cv_env_/b end
  10596. t clear
  10597. :clear
  10598. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10599. t end
  10600. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10601. :end' >>confcache
  10602. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10603. if test -w "$cache_file"; then
  10604. if test "x$cache_file" != "x/dev/null"; then
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10606. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10607. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10608. cat confcache >"$cache_file"
  10609. else
  10610. case $cache_file in #(
  10611. */* | ?:*)
  10612. mv -f confcache "$cache_file"$$ &&
  10613. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10614. *)
  10615. mv -f confcache "$cache_file" ;;
  10616. esac
  10617. fi
  10618. fi
  10619. else
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10621. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10622. fi
  10623. fi
  10624. rm -f confcache
  10625. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10626. # Let make expand exec_prefix.
  10627. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10628. DEFS=-DHAVE_CONFIG_H
  10629. ac_libobjs=
  10630. ac_ltlibobjs=
  10631. U=
  10632. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10633. # 1. Remove the extension, and $U if already installed.
  10634. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10635. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10636. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10637. # will be set to the directory where LIBOBJS objects are built.
  10638. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10639. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10640. done
  10641. LIBOBJS=$ac_libobjs
  10642. LTLIBOBJS=$ac_ltlibobjs
  10643. if test -n "$EXEEXT"; then
  10644. am__EXEEXT_TRUE=
  10645. am__EXEEXT_FALSE='#'
  10646. else
  10647. am__EXEEXT_TRUE='#'
  10648. am__EXEEXT_FALSE=
  10649. fi
  10650. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10651. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10652. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10653. fi
  10654. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10655. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10656. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10657. fi
  10658. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10659. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10660. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10661. fi
  10662. : "${CONFIG_STATUS=./config.status}"
  10663. ac_write_fail=0
  10664. ac_clean_files_save=$ac_clean_files
  10665. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10667. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10668. as_write_fail=0
  10669. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10670. #! $SHELL
  10671. # Generated by $as_me.
  10672. # Run this file to recreate the current configuration.
  10673. # Compiler output produced by configure, useful for debugging
  10674. # configure, is in config.log if it exists.
  10675. debug=false
  10676. ac_cs_recheck=false
  10677. ac_cs_silent=false
  10678. SHELL=\${CONFIG_SHELL-$SHELL}
  10679. export SHELL
  10680. _ASEOF
  10681. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10682. ## -------------------- ##
  10683. ## M4sh Initialization. ##
  10684. ## -------------------- ##
  10685. # Be more Bourne compatible
  10686. DUALCASE=1; export DUALCASE # for MKS sh
  10687. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10688. emulate sh
  10689. NULLCMD=:
  10690. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10691. # is contrary to our usage. Disable this feature.
  10692. alias -g '${1+"$@"}'='"$@"'
  10693. setopt NO_GLOB_SUBST
  10694. else
  10695. case `(set -o) 2>/dev/null` in #(
  10696. *posix*) :
  10697. set -o posix ;; #(
  10698. *) :
  10699. ;;
  10700. esac
  10701. fi
  10702. as_nl='
  10703. '
  10704. export as_nl
  10705. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10706. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10707. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10708. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10709. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10710. # but without wasting forks for bash or zsh.
  10711. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10712. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10713. as_echo='print -r --'
  10714. as_echo_n='print -rn --'
  10715. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10716. as_echo='printf %s\n'
  10717. as_echo_n='printf %s'
  10718. else
  10719. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10720. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10721. as_echo_n='/usr/ucb/echo -n'
  10722. else
  10723. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10724. as_echo_n_body='eval
  10725. arg=$1;
  10726. case $arg in #(
  10727. *"$as_nl"*)
  10728. expr "X$arg" : "X\\(.*\\)$as_nl";
  10729. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10730. esac;
  10731. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10732. '
  10733. export as_echo_n_body
  10734. as_echo_n='sh -c $as_echo_n_body as_echo'
  10735. fi
  10736. export as_echo_body
  10737. as_echo='sh -c $as_echo_body as_echo'
  10738. fi
  10739. # The user is always right.
  10740. if test "${PATH_SEPARATOR+set}" != set; then
  10741. PATH_SEPARATOR=:
  10742. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10743. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10744. PATH_SEPARATOR=';'
  10745. }
  10746. fi
  10747. # IFS
  10748. # We need space, tab and new line, in precisely that order. Quoting is
  10749. # there to prevent editors from complaining about space-tab.
  10750. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10751. # splitting by setting IFS to empty value.)
  10752. IFS=" "" $as_nl"
  10753. # Find who we are. Look in the path if we contain no directory separator.
  10754. as_myself=
  10755. case $0 in #((
  10756. *[\\/]* ) as_myself=$0 ;;
  10757. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10758. for as_dir in $PATH
  10759. do
  10760. IFS=$as_save_IFS
  10761. test -z "$as_dir" && as_dir=.
  10762. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10763. done
  10764. IFS=$as_save_IFS
  10765. ;;
  10766. esac
  10767. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10768. # in which case we are not to be found in the path.
  10769. if test "x$as_myself" = x; then
  10770. as_myself=$0
  10771. fi
  10772. if test ! -f "$as_myself"; then
  10773. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10774. exit 1
  10775. fi
  10776. # Unset variables that we do not need and which cause bugs (e.g. in
  10777. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10778. # suppresses any "Segmentation fault" message there. '((' could
  10779. # trigger a bug in pdksh 5.2.14.
  10780. for as_var in BASH_ENV ENV MAIL MAILPATH
  10781. do eval test x\${$as_var+set} = xset \
  10782. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10783. done
  10784. PS1='$ '
  10785. PS2='> '
  10786. PS4='+ '
  10787. # NLS nuisances.
  10788. LC_ALL=C
  10789. export LC_ALL
  10790. LANGUAGE=C
  10791. export LANGUAGE
  10792. # CDPATH.
  10793. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10794. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10795. # ----------------------------------------
  10796. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10797. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10798. # script with STATUS, using 1 if that was 0.
  10799. as_fn_error ()
  10800. {
  10801. as_status=$1; test $as_status -eq 0 && as_status=1
  10802. if test "$4"; then
  10803. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10804. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10805. fi
  10806. $as_echo "$as_me: error: $2" >&2
  10807. as_fn_exit $as_status
  10808. } # as_fn_error
  10809. # as_fn_set_status STATUS
  10810. # -----------------------
  10811. # Set $? to STATUS, without forking.
  10812. as_fn_set_status ()
  10813. {
  10814. return $1
  10815. } # as_fn_set_status
  10816. # as_fn_exit STATUS
  10817. # -----------------
  10818. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10819. as_fn_exit ()
  10820. {
  10821. set +e
  10822. as_fn_set_status $1
  10823. exit $1
  10824. } # as_fn_exit
  10825. # as_fn_unset VAR
  10826. # ---------------
  10827. # Portably unset VAR.
  10828. as_fn_unset ()
  10829. {
  10830. { eval $1=; unset $1;}
  10831. }
  10832. as_unset=as_fn_unset
  10833. # as_fn_append VAR VALUE
  10834. # ----------------------
  10835. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10836. # advantage of any shell optimizations that allow amortized linear growth over
  10837. # repeated appends, instead of the typical quadratic growth present in naive
  10838. # implementations.
  10839. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10840. eval 'as_fn_append ()
  10841. {
  10842. eval $1+=\$2
  10843. }'
  10844. else
  10845. as_fn_append ()
  10846. {
  10847. eval $1=\$$1\$2
  10848. }
  10849. fi # as_fn_append
  10850. # as_fn_arith ARG...
  10851. # ------------------
  10852. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10853. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10854. # must be portable across $(()) and expr.
  10855. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10856. eval 'as_fn_arith ()
  10857. {
  10858. as_val=$(( $* ))
  10859. }'
  10860. else
  10861. as_fn_arith ()
  10862. {
  10863. as_val=`expr "$@" || test $? -eq 1`
  10864. }
  10865. fi # as_fn_arith
  10866. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10867. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10868. as_expr=expr
  10869. else
  10870. as_expr=false
  10871. fi
  10872. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10873. as_basename=basename
  10874. else
  10875. as_basename=false
  10876. fi
  10877. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10878. as_dirname=dirname
  10879. else
  10880. as_dirname=false
  10881. fi
  10882. as_me=`$as_basename -- "$0" ||
  10883. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10884. X"$0" : 'X\(//\)$' \| \
  10885. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10886. $as_echo X/"$0" |
  10887. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10888. s//\1/
  10889. q
  10890. }
  10891. /^X\/\(\/\/\)$/{
  10892. s//\1/
  10893. q
  10894. }
  10895. /^X\/\(\/\).*/{
  10896. s//\1/
  10897. q
  10898. }
  10899. s/.*/./; q'`
  10900. # Avoid depending upon Character Ranges.
  10901. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10902. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10903. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10904. as_cr_digits='0123456789'
  10905. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10906. ECHO_C= ECHO_N= ECHO_T=
  10907. case `echo -n x` in #(((((
  10908. -n*)
  10909. case `echo 'xy\c'` in
  10910. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10911. xy) ECHO_C='\c';;
  10912. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10913. ECHO_T=' ';;
  10914. esac;;
  10915. *)
  10916. ECHO_N='-n';;
  10917. esac
  10918. rm -f conf$$ conf$$.exe conf$$.file
  10919. if test -d conf$$.dir; then
  10920. rm -f conf$$.dir/conf$$.file
  10921. else
  10922. rm -f conf$$.dir
  10923. mkdir conf$$.dir 2>/dev/null
  10924. fi
  10925. if (echo >conf$$.file) 2>/dev/null; then
  10926. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10927. as_ln_s='ln -s'
  10928. # ... but there are two gotchas:
  10929. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10930. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10931. # In both cases, we have to default to `cp -p'.
  10932. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10933. as_ln_s='cp -p'
  10934. elif ln conf$$.file conf$$ 2>/dev/null; then
  10935. as_ln_s=ln
  10936. else
  10937. as_ln_s='cp -p'
  10938. fi
  10939. else
  10940. as_ln_s='cp -p'
  10941. fi
  10942. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10943. rmdir conf$$.dir 2>/dev/null
  10944. # as_fn_mkdir_p
  10945. # -------------
  10946. # Create "$as_dir" as a directory, including parents if necessary.
  10947. as_fn_mkdir_p ()
  10948. {
  10949. case $as_dir in #(
  10950. -*) as_dir=./$as_dir;;
  10951. esac
  10952. test -d "$as_dir" || eval $as_mkdir_p || {
  10953. as_dirs=
  10954. while :; do
  10955. case $as_dir in #(
  10956. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10957. *) as_qdir=$as_dir;;
  10958. esac
  10959. as_dirs="'$as_qdir' $as_dirs"
  10960. as_dir=`$as_dirname -- "$as_dir" ||
  10961. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10962. X"$as_dir" : 'X\(//\)[^/]' \| \
  10963. X"$as_dir" : 'X\(//\)$' \| \
  10964. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10965. $as_echo X"$as_dir" |
  10966. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10967. s//\1/
  10968. q
  10969. }
  10970. /^X\(\/\/\)[^/].*/{
  10971. s//\1/
  10972. q
  10973. }
  10974. /^X\(\/\/\)$/{
  10975. s//\1/
  10976. q
  10977. }
  10978. /^X\(\/\).*/{
  10979. s//\1/
  10980. q
  10981. }
  10982. s/.*/./; q'`
  10983. test -d "$as_dir" && break
  10984. done
  10985. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10986. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10987. } # as_fn_mkdir_p
  10988. if mkdir -p . 2>/dev/null; then
  10989. as_mkdir_p='mkdir -p "$as_dir"'
  10990. else
  10991. test -d ./-p && rmdir ./-p
  10992. as_mkdir_p=false
  10993. fi
  10994. if test -x / >/dev/null 2>&1; then
  10995. as_test_x='test -x'
  10996. else
  10997. if ls -dL / >/dev/null 2>&1; then
  10998. as_ls_L_option=L
  10999. else
  11000. as_ls_L_option=
  11001. fi
  11002. as_test_x='
  11003. eval sh -c '\''
  11004. if test -d "$1"; then
  11005. test -d "$1/.";
  11006. else
  11007. case $1 in #(
  11008. -*)set "./$1";;
  11009. esac;
  11010. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11011. ???[sx]*):;;*)false;;esac;fi
  11012. '\'' sh
  11013. '
  11014. fi
  11015. as_executable_p=$as_test_x
  11016. # Sed expression to map a string onto a valid CPP name.
  11017. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11018. # Sed expression to map a string onto a valid variable name.
  11019. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11020. exec 6>&1
  11021. ## ----------------------------------- ##
  11022. ## Main body of $CONFIG_STATUS script. ##
  11023. ## ----------------------------------- ##
  11024. _ASEOF
  11025. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11026. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11027. # Save the log message, to keep $0 and so on meaningful, and to
  11028. # report actual input values of CONFIG_FILES etc. instead of their
  11029. # values after options handling.
  11030. ac_log="
  11031. This file was extended by libogg $as_me 1.3.1, which was
  11032. generated by GNU Autoconf 2.68. Invocation command line was
  11033. CONFIG_FILES = $CONFIG_FILES
  11034. CONFIG_HEADERS = $CONFIG_HEADERS
  11035. CONFIG_LINKS = $CONFIG_LINKS
  11036. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11037. $ $0 $@
  11038. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11039. "
  11040. _ACEOF
  11041. case $ac_config_files in *"
  11042. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11043. esac
  11044. case $ac_config_headers in *"
  11045. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11046. esac
  11047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11048. # Files that config.status was made for.
  11049. config_files="$ac_config_files"
  11050. config_headers="$ac_config_headers"
  11051. config_commands="$ac_config_commands"
  11052. _ACEOF
  11053. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11054. ac_cs_usage="\
  11055. \`$as_me' instantiates files and other configuration actions
  11056. from templates according to the current configuration. Unless the files
  11057. and actions are specified as TAGs, all are instantiated by default.
  11058. Usage: $0 [OPTION]... [TAG]...
  11059. -h, --help print this help, then exit
  11060. -V, --version print version number and configuration settings, then exit
  11061. --config print configuration, then exit
  11062. -q, --quiet, --silent
  11063. do not print progress messages
  11064. -d, --debug don't remove temporary files
  11065. --recheck update $as_me by reconfiguring in the same conditions
  11066. --file=FILE[:TEMPLATE]
  11067. instantiate the configuration file FILE
  11068. --header=FILE[:TEMPLATE]
  11069. instantiate the configuration header FILE
  11070. Configuration files:
  11071. $config_files
  11072. Configuration headers:
  11073. $config_headers
  11074. Configuration commands:
  11075. $config_commands
  11076. Report bugs to <[email protected]>."
  11077. _ACEOF
  11078. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11079. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11080. ac_cs_version="\\
  11081. libogg config.status 1.3.1
  11082. configured by $0, generated by GNU Autoconf 2.68,
  11083. with options \\"\$ac_cs_config\\"
  11084. Copyright (C) 2010 Free Software Foundation, Inc.
  11085. This config.status script is free software; the Free Software Foundation
  11086. gives unlimited permission to copy, distribute and modify it."
  11087. ac_pwd='$ac_pwd'
  11088. srcdir='$srcdir'
  11089. INSTALL='$INSTALL'
  11090. MKDIR_P='$MKDIR_P'
  11091. AWK='$AWK'
  11092. test -n "\$AWK" || AWK=awk
  11093. _ACEOF
  11094. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11095. # The default lists apply if the user does not specify any file.
  11096. ac_need_defaults=:
  11097. while test $# != 0
  11098. do
  11099. case $1 in
  11100. --*=?*)
  11101. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11102. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11103. ac_shift=:
  11104. ;;
  11105. --*=)
  11106. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11107. ac_optarg=
  11108. ac_shift=:
  11109. ;;
  11110. *)
  11111. ac_option=$1
  11112. ac_optarg=$2
  11113. ac_shift=shift
  11114. ;;
  11115. esac
  11116. case $ac_option in
  11117. # Handling of the options.
  11118. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11119. ac_cs_recheck=: ;;
  11120. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11121. $as_echo "$ac_cs_version"; exit ;;
  11122. --config | --confi | --conf | --con | --co | --c )
  11123. $as_echo "$ac_cs_config"; exit ;;
  11124. --debug | --debu | --deb | --de | --d | -d )
  11125. debug=: ;;
  11126. --file | --fil | --fi | --f )
  11127. $ac_shift
  11128. case $ac_optarg in
  11129. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11130. '') as_fn_error $? "missing file argument" ;;
  11131. esac
  11132. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11133. ac_need_defaults=false;;
  11134. --header | --heade | --head | --hea )
  11135. $ac_shift
  11136. case $ac_optarg in
  11137. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11138. esac
  11139. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11140. ac_need_defaults=false;;
  11141. --he | --h)
  11142. # Conflict between --help and --header
  11143. as_fn_error $? "ambiguous option: \`$1'
  11144. Try \`$0 --help' for more information.";;
  11145. --help | --hel | -h )
  11146. $as_echo "$ac_cs_usage"; exit ;;
  11147. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11148. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11149. ac_cs_silent=: ;;
  11150. # This is an error.
  11151. -*) as_fn_error $? "unrecognized option: \`$1'
  11152. Try \`$0 --help' for more information." ;;
  11153. *) as_fn_append ac_config_targets " $1"
  11154. ac_need_defaults=false ;;
  11155. esac
  11156. shift
  11157. done
  11158. ac_configure_extra_args=
  11159. if $ac_cs_silent; then
  11160. exec 6>/dev/null
  11161. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11162. fi
  11163. _ACEOF
  11164. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11165. if \$ac_cs_recheck; then
  11166. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11167. shift
  11168. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11169. CONFIG_SHELL='$SHELL'
  11170. export CONFIG_SHELL
  11171. exec "\$@"
  11172. fi
  11173. _ACEOF
  11174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11175. exec 5>>config.log
  11176. {
  11177. echo
  11178. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11179. ## Running $as_me. ##
  11180. _ASBOX
  11181. $as_echo "$ac_log"
  11182. } >&5
  11183. _ACEOF
  11184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11185. #
  11186. # INIT-COMMANDS
  11187. #
  11188. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11189. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11190. # if CDPATH is set.
  11191. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11192. sed_quote_subst='$sed_quote_subst'
  11193. double_quote_subst='$double_quote_subst'
  11194. delay_variable_subst='$delay_variable_subst'
  11195. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11196. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11197. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11198. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11199. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11200. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11201. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11202. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11203. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11204. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11205. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11206. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11207. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11208. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11209. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11210. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11211. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11212. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11213. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11214. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11215. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11216. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11217. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11218. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11219. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11220. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11221. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11222. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11223. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11224. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11225. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11226. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11227. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11228. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11229. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11230. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11231. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11232. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11233. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11234. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11235. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11236. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11237. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11238. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11239. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11240. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11241. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11242. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11243. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11244. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11245. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11246. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11247. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11248. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11249. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11250. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11251. 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"`'
  11252. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11253. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11254. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11255. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11256. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11257. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11258. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11259. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11260. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11261. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11262. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11263. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11264. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11265. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11266. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11267. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11268. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11269. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11270. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11271. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11272. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11273. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11274. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11275. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11276. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11277. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11278. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11279. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11280. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11281. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11282. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11283. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11284. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11285. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11286. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11287. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11288. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11289. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11290. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11291. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11292. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11293. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11294. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11295. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11296. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11297. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11298. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11299. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11300. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11301. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11302. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11303. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11304. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11305. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11306. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11307. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11308. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11309. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11310. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11311. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11312. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11313. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11314. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11315. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11316. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11317. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11318. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11319. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11320. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11321. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11322. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11323. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11324. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11325. LTCC='$LTCC'
  11326. LTCFLAGS='$LTCFLAGS'
  11327. compiler='$compiler_DEFAULT'
  11328. # A function that is used when there is no print builtin or printf.
  11329. func_fallback_echo ()
  11330. {
  11331. eval 'cat <<_LTECHO_EOF
  11332. \$1
  11333. _LTECHO_EOF'
  11334. }
  11335. # Quote evaled strings.
  11336. for var in SHELL \
  11337. ECHO \
  11338. PATH_SEPARATOR \
  11339. SED \
  11340. GREP \
  11341. EGREP \
  11342. FGREP \
  11343. LD \
  11344. NM \
  11345. LN_S \
  11346. lt_SP2NL \
  11347. lt_NL2SP \
  11348. reload_flag \
  11349. OBJDUMP \
  11350. deplibs_check_method \
  11351. file_magic_cmd \
  11352. file_magic_glob \
  11353. want_nocaseglob \
  11354. DLLTOOL \
  11355. sharedlib_from_linklib_cmd \
  11356. AR \
  11357. AR_FLAGS \
  11358. archiver_list_spec \
  11359. STRIP \
  11360. RANLIB \
  11361. CC \
  11362. CFLAGS \
  11363. compiler \
  11364. lt_cv_sys_global_symbol_pipe \
  11365. lt_cv_sys_global_symbol_to_cdecl \
  11366. lt_cv_sys_global_symbol_to_c_name_address \
  11367. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11368. nm_file_list_spec \
  11369. lt_prog_compiler_no_builtin_flag \
  11370. lt_prog_compiler_pic \
  11371. lt_prog_compiler_wl \
  11372. lt_prog_compiler_static \
  11373. lt_cv_prog_compiler_c_o \
  11374. need_locks \
  11375. MANIFEST_TOOL \
  11376. DSYMUTIL \
  11377. NMEDIT \
  11378. LIPO \
  11379. OTOOL \
  11380. OTOOL64 \
  11381. shrext_cmds \
  11382. export_dynamic_flag_spec \
  11383. whole_archive_flag_spec \
  11384. compiler_needs_object \
  11385. with_gnu_ld \
  11386. allow_undefined_flag \
  11387. no_undefined_flag \
  11388. hardcode_libdir_flag_spec \
  11389. hardcode_libdir_separator \
  11390. exclude_expsyms \
  11391. include_expsyms \
  11392. file_list_spec \
  11393. variables_saved_for_relink \
  11394. libname_spec \
  11395. library_names_spec \
  11396. soname_spec \
  11397. install_override_mode \
  11398. finish_eval \
  11399. old_striplib \
  11400. striplib; do
  11401. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11402. *[\\\\\\\`\\"\\\$]*)
  11403. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11404. ;;
  11405. *)
  11406. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11407. ;;
  11408. esac
  11409. done
  11410. # Double-quote double-evaled strings.
  11411. for var in reload_cmds \
  11412. old_postinstall_cmds \
  11413. old_postuninstall_cmds \
  11414. old_archive_cmds \
  11415. extract_expsyms_cmds \
  11416. old_archive_from_new_cmds \
  11417. old_archive_from_expsyms_cmds \
  11418. archive_cmds \
  11419. archive_expsym_cmds \
  11420. module_cmds \
  11421. module_expsym_cmds \
  11422. export_symbols_cmds \
  11423. prelink_cmds \
  11424. postlink_cmds \
  11425. postinstall_cmds \
  11426. postuninstall_cmds \
  11427. finish_cmds \
  11428. sys_lib_search_path_spec \
  11429. sys_lib_dlsearch_path_spec; do
  11430. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11431. *[\\\\\\\`\\"\\\$]*)
  11432. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11433. ;;
  11434. *)
  11435. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11436. ;;
  11437. esac
  11438. done
  11439. ac_aux_dir='$ac_aux_dir'
  11440. xsi_shell='$xsi_shell'
  11441. lt_shell_append='$lt_shell_append'
  11442. # See if we are running on zsh, and set the options which allow our
  11443. # commands through without removal of \ escapes INIT.
  11444. if test -n "\${ZSH_VERSION+set}" ; then
  11445. setopt NO_GLOB_SUBST
  11446. fi
  11447. PACKAGE='$PACKAGE'
  11448. VERSION='$VERSION'
  11449. TIMESTAMP='$TIMESTAMP'
  11450. RM='$RM'
  11451. ofile='$ofile'
  11452. _ACEOF
  11453. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11454. # Handling of arguments.
  11455. for ac_config_target in $ac_config_targets
  11456. do
  11457. case $ac_config_target in
  11458. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11459. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11460. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11461. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11462. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11463. "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
  11464. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  11465. "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
  11466. "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
  11467. "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
  11468. "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
  11469. "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
  11470. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11471. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11472. esac
  11473. done
  11474. # If the user did not use the arguments to specify the items to instantiate,
  11475. # then the envvar interface is used. Set only those that are not.
  11476. # We use the long form for the default assignment because of an extremely
  11477. # bizarre bug on SunOS 4.1.3.
  11478. if $ac_need_defaults; then
  11479. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11480. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11481. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11482. fi
  11483. # Have a temporary directory for convenience. Make it in the build tree
  11484. # simply because there is no reason against having it here, and in addition,
  11485. # creating and moving files from /tmp can sometimes cause problems.
  11486. # Hook for its removal unless debugging.
  11487. # Note that there is a small window in which the directory will not be cleaned:
  11488. # after its creation but before its name has been assigned to `$tmp'.
  11489. $debug ||
  11490. {
  11491. tmp= ac_tmp=
  11492. trap 'exit_status=$?
  11493. : "${ac_tmp:=$tmp}"
  11494. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11495. ' 0
  11496. trap 'as_fn_exit 1' 1 2 13 15
  11497. }
  11498. # Create a (secure) tmp directory for tmp files.
  11499. {
  11500. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11501. test -d "$tmp"
  11502. } ||
  11503. {
  11504. tmp=./conf$$-$RANDOM
  11505. (umask 077 && mkdir "$tmp")
  11506. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11507. ac_tmp=$tmp
  11508. # Set up the scripts for CONFIG_FILES section.
  11509. # No need to generate them if there are no CONFIG_FILES.
  11510. # This happens for instance with `./config.status config.h'.
  11511. if test -n "$CONFIG_FILES"; then
  11512. ac_cr=`echo X | tr X '\015'`
  11513. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11514. # But we know of no other shell where ac_cr would be empty at this
  11515. # point, so we can use a bashism as a fallback.
  11516. if test "x$ac_cr" = x; then
  11517. eval ac_cr=\$\'\\r\'
  11518. fi
  11519. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11520. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11521. ac_cs_awk_cr='\\r'
  11522. else
  11523. ac_cs_awk_cr=$ac_cr
  11524. fi
  11525. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11526. _ACEOF
  11527. {
  11528. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11529. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11530. echo "_ACEOF"
  11531. } >conf$$subs.sh ||
  11532. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11533. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11534. ac_delim='%!_!# '
  11535. for ac_last_try in false false false false false :; do
  11536. . ./conf$$subs.sh ||
  11537. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11538. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11539. if test $ac_delim_n = $ac_delim_num; then
  11540. break
  11541. elif $ac_last_try; then
  11542. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11543. else
  11544. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11545. fi
  11546. done
  11547. rm -f conf$$subs.sh
  11548. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11549. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11550. _ACEOF
  11551. sed -n '
  11552. h
  11553. s/^/S["/; s/!.*/"]=/
  11554. p
  11555. g
  11556. s/^[^!]*!//
  11557. :repl
  11558. t repl
  11559. s/'"$ac_delim"'$//
  11560. t delim
  11561. :nl
  11562. h
  11563. s/\(.\{148\}\)..*/\1/
  11564. t more1
  11565. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11566. p
  11567. n
  11568. b repl
  11569. :more1
  11570. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11571. p
  11572. g
  11573. s/.\{148\}//
  11574. t nl
  11575. :delim
  11576. h
  11577. s/\(.\{148\}\)..*/\1/
  11578. t more2
  11579. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11580. p
  11581. b
  11582. :more2
  11583. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11584. p
  11585. g
  11586. s/.\{148\}//
  11587. t delim
  11588. ' <conf$$subs.awk | sed '
  11589. /^[^""]/{
  11590. N
  11591. s/\n//
  11592. }
  11593. ' >>$CONFIG_STATUS || ac_write_fail=1
  11594. rm -f conf$$subs.awk
  11595. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11596. _ACAWK
  11597. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11598. for (key in S) S_is_set[key] = 1
  11599. FS = ""
  11600. }
  11601. {
  11602. line = $ 0
  11603. nfields = split(line, field, "@")
  11604. substed = 0
  11605. len = length(field[1])
  11606. for (i = 2; i < nfields; i++) {
  11607. key = field[i]
  11608. keylen = length(key)
  11609. if (S_is_set[key]) {
  11610. value = S[key]
  11611. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11612. len += length(value) + length(field[++i])
  11613. substed = 1
  11614. } else
  11615. len += 1 + keylen
  11616. }
  11617. print line
  11618. }
  11619. _ACAWK
  11620. _ACEOF
  11621. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11622. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11623. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11624. else
  11625. cat
  11626. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11627. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11628. _ACEOF
  11629. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11630. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11631. # trailing colons and then remove the whole line if VPATH becomes empty
  11632. # (actually we leave an empty line to preserve line numbers).
  11633. if test "x$srcdir" = x.; then
  11634. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11635. h
  11636. s///
  11637. s/^/:/
  11638. s/[ ]*$/:/
  11639. s/:\$(srcdir):/:/g
  11640. s/:\${srcdir}:/:/g
  11641. s/:@srcdir@:/:/g
  11642. s/^:*//
  11643. s/:*$//
  11644. x
  11645. s/\(=[ ]*\).*/\1/
  11646. G
  11647. s/\n//
  11648. s/^[^=]*=[ ]*$//
  11649. }'
  11650. fi
  11651. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11652. fi # test -n "$CONFIG_FILES"
  11653. # Set up the scripts for CONFIG_HEADERS section.
  11654. # No need to generate them if there are no CONFIG_HEADERS.
  11655. # This happens for instance with `./config.status Makefile'.
  11656. if test -n "$CONFIG_HEADERS"; then
  11657. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11658. BEGIN {
  11659. _ACEOF
  11660. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11661. # here-document in config.status, that substitutes the proper values into
  11662. # config.h.in to produce config.h.
  11663. # Create a delimiter string that does not exist in confdefs.h, to ease
  11664. # handling of long lines.
  11665. ac_delim='%!_!# '
  11666. for ac_last_try in false false :; do
  11667. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11668. if test -z "$ac_tt"; then
  11669. break
  11670. elif $ac_last_try; then
  11671. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11672. else
  11673. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11674. fi
  11675. done
  11676. # For the awk script, D is an array of macro values keyed by name,
  11677. # likewise P contains macro parameters if any. Preserve backslash
  11678. # newline sequences.
  11679. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11680. sed -n '
  11681. s/.\{148\}/&'"$ac_delim"'/g
  11682. t rset
  11683. :rset
  11684. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11685. t def
  11686. d
  11687. :def
  11688. s/\\$//
  11689. t bsnl
  11690. s/["\\]/\\&/g
  11691. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11692. D["\1"]=" \3"/p
  11693. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11694. d
  11695. :bsnl
  11696. s/["\\]/\\&/g
  11697. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11698. D["\1"]=" \3\\\\\\n"\\/p
  11699. t cont
  11700. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11701. t cont
  11702. d
  11703. :cont
  11704. n
  11705. s/.\{148\}/&'"$ac_delim"'/g
  11706. t clear
  11707. :clear
  11708. s/\\$//
  11709. t bsnlc
  11710. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11711. d
  11712. :bsnlc
  11713. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11714. b cont
  11715. ' <confdefs.h | sed '
  11716. s/'"$ac_delim"'/"\\\
  11717. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11719. for (key in D) D_is_set[key] = 1
  11720. FS = ""
  11721. }
  11722. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11723. line = \$ 0
  11724. split(line, arg, " ")
  11725. if (arg[1] == "#") {
  11726. defundef = arg[2]
  11727. mac1 = arg[3]
  11728. } else {
  11729. defundef = substr(arg[1], 2)
  11730. mac1 = arg[2]
  11731. }
  11732. split(mac1, mac2, "(") #)
  11733. macro = mac2[1]
  11734. prefix = substr(line, 1, index(line, defundef) - 1)
  11735. if (D_is_set[macro]) {
  11736. # Preserve the white space surrounding the "#".
  11737. print prefix "define", macro P[macro] D[macro]
  11738. next
  11739. } else {
  11740. # Replace #undef with comments. This is necessary, for example,
  11741. # in the case of _POSIX_SOURCE, which is predefined and required
  11742. # on some systems where configure will not decide to define it.
  11743. if (defundef == "undef") {
  11744. print "/*", prefix defundef, macro, "*/"
  11745. next
  11746. }
  11747. }
  11748. }
  11749. { print }
  11750. _ACAWK
  11751. _ACEOF
  11752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11753. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11754. fi # test -n "$CONFIG_HEADERS"
  11755. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11756. shift
  11757. for ac_tag
  11758. do
  11759. case $ac_tag in
  11760. :[FHLC]) ac_mode=$ac_tag; continue;;
  11761. esac
  11762. case $ac_mode$ac_tag in
  11763. :[FHL]*:*);;
  11764. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11765. :[FH]-) ac_tag=-:-;;
  11766. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11767. esac
  11768. ac_save_IFS=$IFS
  11769. IFS=:
  11770. set x $ac_tag
  11771. IFS=$ac_save_IFS
  11772. shift
  11773. ac_file=$1
  11774. shift
  11775. case $ac_mode in
  11776. :L) ac_source=$1;;
  11777. :[FH])
  11778. ac_file_inputs=
  11779. for ac_f
  11780. do
  11781. case $ac_f in
  11782. -) ac_f="$ac_tmp/stdin";;
  11783. *) # Look for the file first in the build tree, then in the source tree
  11784. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11785. # because $ac_f cannot contain `:'.
  11786. test -f "$ac_f" ||
  11787. case $ac_f in
  11788. [\\/$]*) false;;
  11789. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11790. esac ||
  11791. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11792. esac
  11793. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11794. as_fn_append ac_file_inputs " '$ac_f'"
  11795. done
  11796. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11797. # use $as_me), people would be surprised to read:
  11798. # /* config.h. Generated by config.status. */
  11799. configure_input='Generated from '`
  11800. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11801. `' by configure.'
  11802. if test x"$ac_file" != x-; then
  11803. configure_input="$ac_file. $configure_input"
  11804. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11805. $as_echo "$as_me: creating $ac_file" >&6;}
  11806. fi
  11807. # Neutralize special characters interpreted by sed in replacement strings.
  11808. case $configure_input in #(
  11809. *\&* | *\|* | *\\* )
  11810. ac_sed_conf_input=`$as_echo "$configure_input" |
  11811. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11812. *) ac_sed_conf_input=$configure_input;;
  11813. esac
  11814. case $ac_tag in
  11815. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11816. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11817. esac
  11818. ;;
  11819. esac
  11820. ac_dir=`$as_dirname -- "$ac_file" ||
  11821. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11822. X"$ac_file" : 'X\(//\)[^/]' \| \
  11823. X"$ac_file" : 'X\(//\)$' \| \
  11824. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11825. $as_echo X"$ac_file" |
  11826. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11827. s//\1/
  11828. q
  11829. }
  11830. /^X\(\/\/\)[^/].*/{
  11831. s//\1/
  11832. q
  11833. }
  11834. /^X\(\/\/\)$/{
  11835. s//\1/
  11836. q
  11837. }
  11838. /^X\(\/\).*/{
  11839. s//\1/
  11840. q
  11841. }
  11842. s/.*/./; q'`
  11843. as_dir="$ac_dir"; as_fn_mkdir_p
  11844. ac_builddir=.
  11845. case "$ac_dir" in
  11846. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11847. *)
  11848. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11849. # A ".." for each directory in $ac_dir_suffix.
  11850. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11851. case $ac_top_builddir_sub in
  11852. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11853. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11854. esac ;;
  11855. esac
  11856. ac_abs_top_builddir=$ac_pwd
  11857. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11858. # for backward compatibility:
  11859. ac_top_builddir=$ac_top_build_prefix
  11860. case $srcdir in
  11861. .) # We are building in place.
  11862. ac_srcdir=.
  11863. ac_top_srcdir=$ac_top_builddir_sub
  11864. ac_abs_top_srcdir=$ac_pwd ;;
  11865. [\\/]* | ?:[\\/]* ) # Absolute name.
  11866. ac_srcdir=$srcdir$ac_dir_suffix;
  11867. ac_top_srcdir=$srcdir
  11868. ac_abs_top_srcdir=$srcdir ;;
  11869. *) # Relative name.
  11870. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11871. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11872. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11873. esac
  11874. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11875. case $ac_mode in
  11876. :F)
  11877. #
  11878. # CONFIG_FILE
  11879. #
  11880. case $INSTALL in
  11881. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11882. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11883. esac
  11884. ac_MKDIR_P=$MKDIR_P
  11885. case $MKDIR_P in
  11886. [\\/$]* | ?:[\\/]* ) ;;
  11887. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11888. esac
  11889. _ACEOF
  11890. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11891. # If the template does not know about datarootdir, expand it.
  11892. # FIXME: This hack should be removed a few years after 2.60.
  11893. ac_datarootdir_hack=; ac_datarootdir_seen=
  11894. ac_sed_dataroot='
  11895. /datarootdir/ {
  11896. p
  11897. q
  11898. }
  11899. /@datadir@/p
  11900. /@docdir@/p
  11901. /@infodir@/p
  11902. /@localedir@/p
  11903. /@mandir@/p'
  11904. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11905. *datarootdir*) ac_datarootdir_seen=yes;;
  11906. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11908. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11909. _ACEOF
  11910. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11911. ac_datarootdir_hack='
  11912. s&@datadir@&$datadir&g
  11913. s&@docdir@&$docdir&g
  11914. s&@infodir@&$infodir&g
  11915. s&@localedir@&$localedir&g
  11916. s&@mandir@&$mandir&g
  11917. s&\\\${datarootdir}&$datarootdir&g' ;;
  11918. esac
  11919. _ACEOF
  11920. # Neutralize VPATH when `$srcdir' = `.'.
  11921. # Shell code in configure.ac might set extrasub.
  11922. # FIXME: do we really want to maintain this feature?
  11923. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11924. ac_sed_extra="$ac_vpsub
  11925. $extrasub
  11926. _ACEOF
  11927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11928. :t
  11929. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11930. s|@configure_input@|$ac_sed_conf_input|;t t
  11931. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11932. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11933. s&@srcdir@&$ac_srcdir&;t t
  11934. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11935. s&@top_srcdir@&$ac_top_srcdir&;t t
  11936. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11937. s&@builddir@&$ac_builddir&;t t
  11938. s&@abs_builddir@&$ac_abs_builddir&;t t
  11939. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11940. s&@INSTALL@&$ac_INSTALL&;t t
  11941. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11942. $ac_datarootdir_hack
  11943. "
  11944. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11945. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11946. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11947. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11948. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11949. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11951. which seems to be undefined. Please make sure it is defined" >&5
  11952. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11953. which seems to be undefined. Please make sure it is defined" >&2;}
  11954. rm -f "$ac_tmp/stdin"
  11955. case $ac_file in
  11956. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11957. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11958. esac \
  11959. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11960. ;;
  11961. :H)
  11962. #
  11963. # CONFIG_HEADER
  11964. #
  11965. if test x"$ac_file" != x-; then
  11966. {
  11967. $as_echo "/* $configure_input */" \
  11968. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11969. } >"$ac_tmp/config.h" \
  11970. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11971. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11972. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11973. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11974. else
  11975. rm -f "$ac_file"
  11976. mv "$ac_tmp/config.h" "$ac_file" \
  11977. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11978. fi
  11979. else
  11980. $as_echo "/* $configure_input */" \
  11981. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11982. || as_fn_error $? "could not create -" "$LINENO" 5
  11983. fi
  11984. # Compute "$ac_file"'s index in $config_headers.
  11985. _am_arg="$ac_file"
  11986. _am_stamp_count=1
  11987. for _am_header in $config_headers :; do
  11988. case $_am_header in
  11989. $_am_arg | $_am_arg:* )
  11990. break ;;
  11991. * )
  11992. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11993. esac
  11994. done
  11995. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11996. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11997. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11998. X"$_am_arg" : 'X\(//\)$' \| \
  11999. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12000. $as_echo X"$_am_arg" |
  12001. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12002. s//\1/
  12003. q
  12004. }
  12005. /^X\(\/\/\)[^/].*/{
  12006. s//\1/
  12007. q
  12008. }
  12009. /^X\(\/\/\)$/{
  12010. s//\1/
  12011. q
  12012. }
  12013. /^X\(\/\).*/{
  12014. s//\1/
  12015. q
  12016. }
  12017. s/.*/./; q'`/stamp-h$_am_stamp_count
  12018. ;;
  12019. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12020. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12021. ;;
  12022. esac
  12023. case $ac_file$ac_mode in
  12024. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12025. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12026. # are listed without --file. Let's play safe and only enable the eval
  12027. # if we detect the quoting.
  12028. case $CONFIG_FILES in
  12029. *\'*) eval set x "$CONFIG_FILES" ;;
  12030. *) set x $CONFIG_FILES ;;
  12031. esac
  12032. shift
  12033. for mf
  12034. do
  12035. # Strip MF so we end up with the name of the file.
  12036. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12037. # Check whether this is an Automake generated Makefile or not.
  12038. # We used to match only the files named `Makefile.in', but
  12039. # some people rename them; so instead we look at the file content.
  12040. # Grep'ing the first line is not enough: some people post-process
  12041. # each Makefile.in and add a new line on top of each file to say so.
  12042. # Grep'ing the whole file is not good either: AIX grep has a line
  12043. # limit of 2048, but all sed's we know have understand at least 4000.
  12044. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12045. dirpart=`$as_dirname -- "$mf" ||
  12046. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12047. X"$mf" : 'X\(//\)[^/]' \| \
  12048. X"$mf" : 'X\(//\)$' \| \
  12049. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12050. $as_echo X"$mf" |
  12051. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12052. s//\1/
  12053. q
  12054. }
  12055. /^X\(\/\/\)[^/].*/{
  12056. s//\1/
  12057. q
  12058. }
  12059. /^X\(\/\/\)$/{
  12060. s//\1/
  12061. q
  12062. }
  12063. /^X\(\/\).*/{
  12064. s//\1/
  12065. q
  12066. }
  12067. s/.*/./; q'`
  12068. else
  12069. continue
  12070. fi
  12071. # Extract the definition of DEPDIR, am__include, and am__quote
  12072. # from the Makefile without running `make'.
  12073. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12074. test -z "$DEPDIR" && continue
  12075. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12076. test -z "am__include" && continue
  12077. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12078. # When using ansi2knr, U may be empty or an underscore; expand it
  12079. U=`sed -n 's/^U = //p' < "$mf"`
  12080. # Find all dependency output files, they are included files with
  12081. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12082. # simplest approach to changing $(DEPDIR) to its actual value in the
  12083. # expansion.
  12084. for file in `sed -n "
  12085. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12086. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12087. # Make sure the directory exists.
  12088. test -f "$dirpart/$file" && continue
  12089. fdir=`$as_dirname -- "$file" ||
  12090. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12091. X"$file" : 'X\(//\)[^/]' \| \
  12092. X"$file" : 'X\(//\)$' \| \
  12093. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12094. $as_echo X"$file" |
  12095. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12096. s//\1/
  12097. q
  12098. }
  12099. /^X\(\/\/\)[^/].*/{
  12100. s//\1/
  12101. q
  12102. }
  12103. /^X\(\/\/\)$/{
  12104. s//\1/
  12105. q
  12106. }
  12107. /^X\(\/\).*/{
  12108. s//\1/
  12109. q
  12110. }
  12111. s/.*/./; q'`
  12112. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12113. # echo "creating $dirpart/$file"
  12114. echo '# dummy' > "$dirpart/$file"
  12115. done
  12116. done
  12117. }
  12118. ;;
  12119. "libtool":C)
  12120. # See if we are running on zsh, and set the options which allow our
  12121. # commands through without removal of \ escapes.
  12122. if test -n "${ZSH_VERSION+set}" ; then
  12123. setopt NO_GLOB_SUBST
  12124. fi
  12125. cfgfile="${ofile}T"
  12126. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12127. $RM "$cfgfile"
  12128. cat <<_LT_EOF >> "$cfgfile"
  12129. #! $SHELL
  12130. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12131. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12132. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12133. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12134. #
  12135. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12136. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  12137. # Foundation, Inc.
  12138. # Written by Gordon Matzigkeit, 1996
  12139. #
  12140. # This file is part of GNU Libtool.
  12141. #
  12142. # GNU Libtool is free software; you can redistribute it and/or
  12143. # modify it under the terms of the GNU General Public License as
  12144. # published by the Free Software Foundation; either version 2 of
  12145. # the License, or (at your option) any later version.
  12146. #
  12147. # As a special exception to the GNU General Public License,
  12148. # if you distribute this file as part of a program or library that
  12149. # is built using GNU Libtool, you may include this file under the
  12150. # same distribution terms that you use for the rest of that program.
  12151. #
  12152. # GNU Libtool is distributed in the hope that it will be useful,
  12153. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12154. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12155. # GNU General Public License for more details.
  12156. #
  12157. # You should have received a copy of the GNU General Public License
  12158. # along with GNU Libtool; see the file COPYING. If not, a copy
  12159. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12160. # obtained by writing to the Free Software Foundation, Inc.,
  12161. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12162. # The names of the tagged configurations supported by this script.
  12163. available_tags=""
  12164. # ### BEGIN LIBTOOL CONFIG
  12165. # Which release of libtool.m4 was used?
  12166. macro_version=$macro_version
  12167. macro_revision=$macro_revision
  12168. # Whether or not to build shared libraries.
  12169. build_libtool_libs=$enable_shared
  12170. # Whether or not to build static libraries.
  12171. build_old_libs=$enable_static
  12172. # What type of objects to build.
  12173. pic_mode=$pic_mode
  12174. # Whether or not to optimize for fast installation.
  12175. fast_install=$enable_fast_install
  12176. # Shell to use when invoking shell scripts.
  12177. SHELL=$lt_SHELL
  12178. # An echo program that protects backslashes.
  12179. ECHO=$lt_ECHO
  12180. # The PATH separator for the build system.
  12181. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12182. # The host system.
  12183. host_alias=$host_alias
  12184. host=$host
  12185. host_os=$host_os
  12186. # The build system.
  12187. build_alias=$build_alias
  12188. build=$build
  12189. build_os=$build_os
  12190. # A sed program that does not truncate output.
  12191. SED=$lt_SED
  12192. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12193. Xsed="\$SED -e 1s/^X//"
  12194. # A grep program that handles long lines.
  12195. GREP=$lt_GREP
  12196. # An ERE matcher.
  12197. EGREP=$lt_EGREP
  12198. # A literal string matcher.
  12199. FGREP=$lt_FGREP
  12200. # A BSD- or MS-compatible name lister.
  12201. NM=$lt_NM
  12202. # Whether we need soft or hard links.
  12203. LN_S=$lt_LN_S
  12204. # What is the maximum length of a command?
  12205. max_cmd_len=$max_cmd_len
  12206. # Object file suffix (normally "o").
  12207. objext=$ac_objext
  12208. # Executable file suffix (normally "").
  12209. exeext=$exeext
  12210. # whether the shell understands "unset".
  12211. lt_unset=$lt_unset
  12212. # turn spaces into newlines.
  12213. SP2NL=$lt_lt_SP2NL
  12214. # turn newlines into spaces.
  12215. NL2SP=$lt_lt_NL2SP
  12216. # convert \$build file names to \$host format.
  12217. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12218. # convert \$build files to toolchain format.
  12219. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12220. # An object symbol dumper.
  12221. OBJDUMP=$lt_OBJDUMP
  12222. # Method to check whether dependent libraries are shared objects.
  12223. deplibs_check_method=$lt_deplibs_check_method
  12224. # Command to use when deplibs_check_method = "file_magic".
  12225. file_magic_cmd=$lt_file_magic_cmd
  12226. # How to find potential files when deplibs_check_method = "file_magic".
  12227. file_magic_glob=$lt_file_magic_glob
  12228. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12229. want_nocaseglob=$lt_want_nocaseglob
  12230. # DLL creation program.
  12231. DLLTOOL=$lt_DLLTOOL
  12232. # Command to associate shared and link libraries.
  12233. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12234. # The archiver.
  12235. AR=$lt_AR
  12236. # Flags to create an archive.
  12237. AR_FLAGS=$lt_AR_FLAGS
  12238. # How to feed a file listing to the archiver.
  12239. archiver_list_spec=$lt_archiver_list_spec
  12240. # A symbol stripping program.
  12241. STRIP=$lt_STRIP
  12242. # Commands used to install an old-style archive.
  12243. RANLIB=$lt_RANLIB
  12244. old_postinstall_cmds=$lt_old_postinstall_cmds
  12245. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12246. # Whether to use a lock for old archive extraction.
  12247. lock_old_archive_extraction=$lock_old_archive_extraction
  12248. # A C compiler.
  12249. LTCC=$lt_CC
  12250. # LTCC compiler flags.
  12251. LTCFLAGS=$lt_CFLAGS
  12252. # Take the output of nm and produce a listing of raw symbols and C names.
  12253. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12254. # Transform the output of nm in a proper C declaration.
  12255. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12256. # Transform the output of nm in a C name address pair.
  12257. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12258. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12259. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12260. # Specify filename containing input files for \$NM.
  12261. nm_file_list_spec=$lt_nm_file_list_spec
  12262. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12263. lt_sysroot=$lt_sysroot
  12264. # The name of the directory that contains temporary libtool files.
  12265. objdir=$objdir
  12266. # Used to examine libraries when file_magic_cmd begins with "file".
  12267. MAGIC_CMD=$MAGIC_CMD
  12268. # Must we lock files when doing compilation?
  12269. need_locks=$lt_need_locks
  12270. # Manifest tool.
  12271. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12272. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12273. DSYMUTIL=$lt_DSYMUTIL
  12274. # Tool to change global to local symbols on Mac OS X.
  12275. NMEDIT=$lt_NMEDIT
  12276. # Tool to manipulate fat objects and archives on Mac OS X.
  12277. LIPO=$lt_LIPO
  12278. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12279. OTOOL=$lt_OTOOL
  12280. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12281. OTOOL64=$lt_OTOOL64
  12282. # Old archive suffix (normally "a").
  12283. libext=$libext
  12284. # Shared library suffix (normally ".so").
  12285. shrext_cmds=$lt_shrext_cmds
  12286. # The commands to extract the exported symbol list from a shared archive.
  12287. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12288. # Variables whose values should be saved in libtool wrapper scripts and
  12289. # restored at link time.
  12290. variables_saved_for_relink=$lt_variables_saved_for_relink
  12291. # Do we need the "lib" prefix for modules?
  12292. need_lib_prefix=$need_lib_prefix
  12293. # Do we need a version for libraries?
  12294. need_version=$need_version
  12295. # Library versioning type.
  12296. version_type=$version_type
  12297. # Shared library runtime path variable.
  12298. runpath_var=$runpath_var
  12299. # Shared library path variable.
  12300. shlibpath_var=$shlibpath_var
  12301. # Is shlibpath searched before the hard-coded library search path?
  12302. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12303. # Format of library name prefix.
  12304. libname_spec=$lt_libname_spec
  12305. # List of archive names. First name is the real one, the rest are links.
  12306. # The last name is the one that the linker finds with -lNAME
  12307. library_names_spec=$lt_library_names_spec
  12308. # The coded name of the library, if different from the real name.
  12309. soname_spec=$lt_soname_spec
  12310. # Permission mode override for installation of shared libraries.
  12311. install_override_mode=$lt_install_override_mode
  12312. # Command to use after installation of a shared archive.
  12313. postinstall_cmds=$lt_postinstall_cmds
  12314. # Command to use after uninstallation of a shared archive.
  12315. postuninstall_cmds=$lt_postuninstall_cmds
  12316. # Commands used to finish a libtool library installation in a directory.
  12317. finish_cmds=$lt_finish_cmds
  12318. # As "finish_cmds", except a single script fragment to be evaled but
  12319. # not shown.
  12320. finish_eval=$lt_finish_eval
  12321. # Whether we should hardcode library paths into libraries.
  12322. hardcode_into_libs=$hardcode_into_libs
  12323. # Compile-time system search path for libraries.
  12324. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12325. # Run-time system search path for libraries.
  12326. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12327. # Whether dlopen is supported.
  12328. dlopen_support=$enable_dlopen
  12329. # Whether dlopen of programs is supported.
  12330. dlopen_self=$enable_dlopen_self
  12331. # Whether dlopen of statically linked programs is supported.
  12332. dlopen_self_static=$enable_dlopen_self_static
  12333. # Commands to strip libraries.
  12334. old_striplib=$lt_old_striplib
  12335. striplib=$lt_striplib
  12336. # The linker used to build libraries.
  12337. LD=$lt_LD
  12338. # How to create reloadable object files.
  12339. reload_flag=$lt_reload_flag
  12340. reload_cmds=$lt_reload_cmds
  12341. # Commands used to build an old-style archive.
  12342. old_archive_cmds=$lt_old_archive_cmds
  12343. # A language specific compiler.
  12344. CC=$lt_compiler
  12345. # Is the compiler the GNU compiler?
  12346. with_gcc=$GCC
  12347. # Compiler flag to turn off builtin functions.
  12348. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12349. # Additional compiler flags for building library objects.
  12350. pic_flag=$lt_lt_prog_compiler_pic
  12351. # How to pass a linker flag through the compiler.
  12352. wl=$lt_lt_prog_compiler_wl
  12353. # Compiler flag to prevent dynamic linking.
  12354. link_static_flag=$lt_lt_prog_compiler_static
  12355. # Does compiler simultaneously support -c and -o options?
  12356. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12357. # Whether or not to add -lc for building shared libraries.
  12358. build_libtool_need_lc=$archive_cmds_need_lc
  12359. # Whether or not to disallow shared libs when runtime libs are static.
  12360. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12361. # Compiler flag to allow reflexive dlopens.
  12362. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12363. # Compiler flag to generate shared objects directly from archives.
  12364. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12365. # Whether the compiler copes with passing no objects directly.
  12366. compiler_needs_object=$lt_compiler_needs_object
  12367. # Create an old-style archive from a shared archive.
  12368. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12369. # Create a temporary old-style archive to link instead of a shared archive.
  12370. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12371. # Commands used to build a shared archive.
  12372. archive_cmds=$lt_archive_cmds
  12373. archive_expsym_cmds=$lt_archive_expsym_cmds
  12374. # Commands used to build a loadable module if different from building
  12375. # a shared archive.
  12376. module_cmds=$lt_module_cmds
  12377. module_expsym_cmds=$lt_module_expsym_cmds
  12378. # Whether we are building with GNU ld or not.
  12379. with_gnu_ld=$lt_with_gnu_ld
  12380. # Flag that allows shared libraries with undefined symbols to be built.
  12381. allow_undefined_flag=$lt_allow_undefined_flag
  12382. # Flag that enforces no undefined symbols.
  12383. no_undefined_flag=$lt_no_undefined_flag
  12384. # Flag to hardcode \$libdir into a binary during linking.
  12385. # This must work even if \$libdir does not exist
  12386. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12387. # Whether we need a single "-rpath" flag with a separated argument.
  12388. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12389. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12390. # DIR into the resulting binary.
  12391. hardcode_direct=$hardcode_direct
  12392. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12393. # DIR into the resulting binary and the resulting library dependency is
  12394. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12395. # library is relocated.
  12396. hardcode_direct_absolute=$hardcode_direct_absolute
  12397. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12398. # into the resulting binary.
  12399. hardcode_minus_L=$hardcode_minus_L
  12400. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12401. # into the resulting binary.
  12402. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12403. # Set to "yes" if building a shared library automatically hardcodes DIR
  12404. # into the library and all subsequent libraries and executables linked
  12405. # against it.
  12406. hardcode_automatic=$hardcode_automatic
  12407. # Set to yes if linker adds runtime paths of dependent libraries
  12408. # to runtime path list.
  12409. inherit_rpath=$inherit_rpath
  12410. # Whether libtool must link a program against all its dependency libraries.
  12411. link_all_deplibs=$link_all_deplibs
  12412. # Set to "yes" if exported symbols are required.
  12413. always_export_symbols=$always_export_symbols
  12414. # The commands to list exported symbols.
  12415. export_symbols_cmds=$lt_export_symbols_cmds
  12416. # Symbols that should not be listed in the preloaded symbols.
  12417. exclude_expsyms=$lt_exclude_expsyms
  12418. # Symbols that must always be exported.
  12419. include_expsyms=$lt_include_expsyms
  12420. # Commands necessary for linking programs (against libraries) with templates.
  12421. prelink_cmds=$lt_prelink_cmds
  12422. # Commands necessary for finishing linking programs.
  12423. postlink_cmds=$lt_postlink_cmds
  12424. # Specify filename containing input files.
  12425. file_list_spec=$lt_file_list_spec
  12426. # How to hardcode a shared library path into an executable.
  12427. hardcode_action=$hardcode_action
  12428. # ### END LIBTOOL CONFIG
  12429. _LT_EOF
  12430. case $host_os in
  12431. aix3*)
  12432. cat <<\_LT_EOF >> "$cfgfile"
  12433. # AIX sometimes has problems with the GCC collect2 program. For some
  12434. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12435. # vanish in a puff of smoke.
  12436. if test "X${COLLECT_NAMES+set}" != Xset; then
  12437. COLLECT_NAMES=
  12438. export COLLECT_NAMES
  12439. fi
  12440. _LT_EOF
  12441. ;;
  12442. esac
  12443. ltmain="$ac_aux_dir/ltmain.sh"
  12444. # We use sed instead of cat because bash on DJGPP gets confused if
  12445. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12446. # text mode, it properly converts lines to CR/LF. This bash problem
  12447. # is reportedly fixed, but why not run on old versions too?
  12448. sed '$q' "$ltmain" >> "$cfgfile" \
  12449. || (rm -f "$cfgfile"; exit 1)
  12450. if test x"$xsi_shell" = xyes; then
  12451. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  12452. func_dirname ()\
  12453. {\
  12454. \ case ${1} in\
  12455. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12456. \ * ) func_dirname_result="${3}" ;;\
  12457. \ esac\
  12458. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  12459. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12460. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12461. test 0 -eq $? || _lt_function_replace_fail=:
  12462. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  12463. func_basename ()\
  12464. {\
  12465. \ func_basename_result="${1##*/}"\
  12466. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12467. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12468. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12469. test 0 -eq $? || _lt_function_replace_fail=:
  12470. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12471. func_dirname_and_basename ()\
  12472. {\
  12473. \ case ${1} in\
  12474. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12475. \ * ) func_dirname_result="${3}" ;;\
  12476. \ esac\
  12477. \ func_basename_result="${1##*/}"\
  12478. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12479. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12480. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12481. test 0 -eq $? || _lt_function_replace_fail=:
  12482. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12483. func_stripname ()\
  12484. {\
  12485. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12486. \ # positional parameters, so assign one to ordinary parameter first.\
  12487. \ func_stripname_result=${3}\
  12488. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12489. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12490. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12491. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12492. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12493. test 0 -eq $? || _lt_function_replace_fail=:
  12494. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12495. func_split_long_opt ()\
  12496. {\
  12497. \ func_split_long_opt_name=${1%%=*}\
  12498. \ func_split_long_opt_arg=${1#*=}\
  12499. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12500. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12501. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12502. test 0 -eq $? || _lt_function_replace_fail=:
  12503. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12504. func_split_short_opt ()\
  12505. {\
  12506. \ func_split_short_opt_arg=${1#??}\
  12507. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12508. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12509. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12510. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12511. test 0 -eq $? || _lt_function_replace_fail=:
  12512. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12513. func_lo2o ()\
  12514. {\
  12515. \ case ${1} in\
  12516. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12517. \ *) func_lo2o_result=${1} ;;\
  12518. \ esac\
  12519. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12520. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12521. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12522. test 0 -eq $? || _lt_function_replace_fail=:
  12523. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12524. func_xform ()\
  12525. {\
  12526. func_xform_result=${1%.*}.lo\
  12527. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12528. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12529. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12530. test 0 -eq $? || _lt_function_replace_fail=:
  12531. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12532. func_arith ()\
  12533. {\
  12534. func_arith_result=$(( $* ))\
  12535. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12536. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12537. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12538. test 0 -eq $? || _lt_function_replace_fail=:
  12539. sed -e '/^func_len ()$/,/^} # func_len /c\
  12540. func_len ()\
  12541. {\
  12542. func_len_result=${#1}\
  12543. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12544. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12545. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12546. test 0 -eq $? || _lt_function_replace_fail=:
  12547. fi
  12548. if test x"$lt_shell_append" = xyes; then
  12549. sed -e '/^func_append ()$/,/^} # func_append /c\
  12550. func_append ()\
  12551. {\
  12552. eval "${1}+=\\${2}"\
  12553. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12554. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12555. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12556. test 0 -eq $? || _lt_function_replace_fail=:
  12557. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12558. func_append_quoted ()\
  12559. {\
  12560. \ func_quote_for_eval "${2}"\
  12561. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12562. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12563. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12564. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12565. test 0 -eq $? || _lt_function_replace_fail=:
  12566. # Save a `func_append' function call where possible by direct use of '+='
  12567. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12568. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12569. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12570. test 0 -eq $? || _lt_function_replace_fail=:
  12571. else
  12572. # Save a `func_append' function call even when '+=' is not available
  12573. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12574. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12575. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12576. test 0 -eq $? || _lt_function_replace_fail=:
  12577. fi
  12578. if test x"$_lt_function_replace_fail" = x":"; then
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12580. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12581. fi
  12582. mv -f "$cfgfile" "$ofile" ||
  12583. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12584. chmod +x "$ofile"
  12585. ;;
  12586. esac
  12587. done # for ac_tag
  12588. as_fn_exit 0
  12589. _ACEOF
  12590. ac_clean_files=$ac_clean_files_save
  12591. test $ac_write_fail = 0 ||
  12592. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12593. # configure is writing to config.log, and then calls config.status.
  12594. # config.status does its own redirection, appending to config.log.
  12595. # Unfortunately, on DOS this fails, as config.log is still kept open
  12596. # by configure, so config.status won't be able to write to it; its
  12597. # output is simply discarded. So we exec the FD to /dev/null,
  12598. # effectively closing config.log, so it can be properly (re)opened and
  12599. # appended to by config.status. When coming back to configure, we
  12600. # need to make the FD available again.
  12601. if test "$no_create" != yes; then
  12602. ac_cs_success=:
  12603. ac_config_status_args=
  12604. test "$silent" = yes &&
  12605. ac_config_status_args="$ac_config_status_args --quiet"
  12606. exec 5>/dev/null
  12607. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12608. exec 5>>config.log
  12609. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12610. # would make configure fail if this is the last instruction.
  12611. $ac_cs_success || as_fn_exit 1
  12612. fi
  12613. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12615. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12616. fi