configure 456 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for opusfile 0.11.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and [email protected]
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='opusfile'
  542. PACKAGE_TARNAME='opusfile'
  543. PACKAGE_VERSION='0.11'
  544. PACKAGE_STRING='opusfile 0.11'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/opusfile.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. HAVE_DOXYGEN_FALSE
  588. HAVE_DOXYGEN_TRUE
  589. HAVE_DOT
  590. HAVE_DOXYGEN
  591. lrintf_lib
  592. OP_ENABLE_EXAMPLES_FALSE
  593. OP_ENABLE_EXAMPLES_TRUE
  594. DEPS_LIBS
  595. DEPS_CFLAGS
  596. openssl
  597. OP_ENABLE_HTTP_FALSE
  598. OP_ENABLE_HTTP_TRUE
  599. URL_DEPS_LIBS
  600. URL_DEPS_CFLAGS
  601. PKG_CONFIG_LIBDIR
  602. PKG_CONFIG_PATH
  603. PKG_CONFIG
  604. OP_WIN32_FALSE
  605. OP_WIN32_TRUE
  606. OP_LT_AGE
  607. OP_LT_REVISION
  608. OP_LT_CURRENT
  609. LT_SYS_LIBRARY_PATH
  610. OTOOL64
  611. OTOOL
  612. LIPO
  613. NMEDIT
  614. DSYMUTIL
  615. MANIFEST_TOOL
  616. RANLIB
  617. ac_ct_AR
  618. AR
  619. DLLTOOL
  620. OBJDUMP
  621. LN_S
  622. NM
  623. ac_ct_DUMPBIN
  624. DUMPBIN
  625. LD
  626. FGREP
  627. SED
  628. host_os
  629. host_vendor
  630. host_cpu
  631. host
  632. build_os
  633. build_vendor
  634. build_cpu
  635. build
  636. LIBTOOL
  637. MAINT
  638. MAINTAINER_MODE_FALSE
  639. MAINTAINER_MODE_TRUE
  640. AM_BACKSLASH
  641. AM_DEFAULT_VERBOSITY
  642. AM_DEFAULT_V
  643. AM_V
  644. am__fastdepCC_FALSE
  645. am__fastdepCC_TRUE
  646. CCDEPMODE
  647. am__nodep
  648. AMDEPBACKSLASH
  649. AMDEP_FALSE
  650. AMDEP_TRUE
  651. am__quote
  652. am__include
  653. DEPDIR
  654. am__untar
  655. am__tar
  656. AMTAR
  657. am__leading_dot
  658. SET_MAKE
  659. AWK
  660. mkdir_p
  661. MKDIR_P
  662. INSTALL_STRIP_PROGRAM
  663. STRIP
  664. install_sh
  665. MAKEINFO
  666. AUTOHEADER
  667. AUTOMAKE
  668. AUTOCONF
  669. ACLOCAL
  670. VERSION
  671. PACKAGE
  672. CYGPATH_W
  673. am__isrc
  674. INSTALL_DATA
  675. INSTALL_SCRIPT
  676. INSTALL_PROGRAM
  677. EGREP
  678. GREP
  679. CPP
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. target_alias
  688. host_alias
  689. build_alias
  690. LIBS
  691. ECHO_T
  692. ECHO_N
  693. ECHO_C
  694. DEFS
  695. mandir
  696. localedir
  697. libdir
  698. psdir
  699. pdfdir
  700. dvidir
  701. htmldir
  702. infodir
  703. docdir
  704. oldincludedir
  705. includedir
  706. localstatedir
  707. sharedstatedir
  708. sysconfdir
  709. datadir
  710. datarootdir
  711. libexecdir
  712. sbindir
  713. bindir
  714. program_transform_name
  715. prefix
  716. exec_prefix
  717. PACKAGE_URL
  718. PACKAGE_BUGREPORT
  719. PACKAGE_STRING
  720. PACKAGE_VERSION
  721. PACKAGE_TARNAME
  722. PACKAGE_NAME
  723. PATH_SEPARATOR
  724. SHELL'
  725. ac_subst_files=''
  726. ac_user_opts='
  727. enable_option_checking
  728. enable_largefile
  729. enable_dependency_tracking
  730. enable_silent_rules
  731. enable_maintainer_mode
  732. enable_shared
  733. enable_static
  734. with_pic
  735. enable_fast_install
  736. with_aix_soname
  737. with_gnu_ld
  738. with_sysroot
  739. enable_libtool_lock
  740. enable_assertions
  741. enable_http
  742. enable_fixed_point
  743. enable_float
  744. enable_examples
  745. enable_doc
  746. '
  747. ac_precious_vars='build_alias
  748. host_alias
  749. target_alias
  750. CC
  751. CFLAGS
  752. LDFLAGS
  753. LIBS
  754. CPPFLAGS
  755. CPP
  756. LT_SYS_LIBRARY_PATH
  757. PKG_CONFIG
  758. PKG_CONFIG_PATH
  759. PKG_CONFIG_LIBDIR
  760. URL_DEPS_CFLAGS
  761. URL_DEPS_LIBS
  762. DEPS_CFLAGS
  763. DEPS_LIBS'
  764. # Initialize some variables set by options.
  765. ac_init_help=
  766. ac_init_version=false
  767. ac_unrecognized_opts=
  768. ac_unrecognized_sep=
  769. # The variables have the same names as the options, with
  770. # dashes changed to underlines.
  771. cache_file=/dev/null
  772. exec_prefix=NONE
  773. no_create=
  774. no_recursion=
  775. prefix=NONE
  776. program_prefix=NONE
  777. program_suffix=NONE
  778. program_transform_name=s,x,x,
  779. silent=
  780. site=
  781. srcdir=
  782. verbose=
  783. x_includes=NONE
  784. x_libraries=NONE
  785. # Installation directory options.
  786. # These are left unexpanded so users can "make install exec_prefix=/foo"
  787. # and all the variables that are supposed to be based on exec_prefix
  788. # by default will actually change.
  789. # Use braces instead of parens because sh, perl, etc. also accept them.
  790. # (The list follows the same order as the GNU Coding Standards.)
  791. bindir='${exec_prefix}/bin'
  792. sbindir='${exec_prefix}/sbin'
  793. libexecdir='${exec_prefix}/libexec'
  794. datarootdir='${prefix}/share'
  795. datadir='${datarootdir}'
  796. sysconfdir='${prefix}/etc'
  797. sharedstatedir='${prefix}/com'
  798. localstatedir='${prefix}/var'
  799. includedir='${prefix}/include'
  800. oldincludedir='/usr/include'
  801. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  802. infodir='${datarootdir}/info'
  803. htmldir='${docdir}'
  804. dvidir='${docdir}'
  805. pdfdir='${docdir}'
  806. psdir='${docdir}'
  807. libdir='${exec_prefix}/lib'
  808. localedir='${datarootdir}/locale'
  809. mandir='${datarootdir}/man'
  810. ac_prev=
  811. ac_dashdash=
  812. for ac_option
  813. do
  814. # If the previous option needs an argument, assign it.
  815. if test -n "$ac_prev"; then
  816. eval $ac_prev=\$ac_option
  817. ac_prev=
  818. continue
  819. fi
  820. case $ac_option in
  821. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  822. *=) ac_optarg= ;;
  823. *) ac_optarg=yes ;;
  824. esac
  825. # Accept the important Cygnus configure options, so we can diagnose typos.
  826. case $ac_dashdash$ac_option in
  827. --)
  828. ac_dashdash=yes ;;
  829. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  830. ac_prev=bindir ;;
  831. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  832. bindir=$ac_optarg ;;
  833. -build | --build | --buil | --bui | --bu)
  834. ac_prev=build_alias ;;
  835. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  836. build_alias=$ac_optarg ;;
  837. -cache-file | --cache-file | --cache-fil | --cache-fi \
  838. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  839. ac_prev=cache_file ;;
  840. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  841. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  842. cache_file=$ac_optarg ;;
  843. --config-cache | -C)
  844. cache_file=config.cache ;;
  845. -datadir | --datadir | --datadi | --datad)
  846. ac_prev=datadir ;;
  847. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  848. datadir=$ac_optarg ;;
  849. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  850. | --dataroo | --dataro | --datar)
  851. ac_prev=datarootdir ;;
  852. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  853. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  854. datarootdir=$ac_optarg ;;
  855. -disable-* | --disable-*)
  856. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  857. # Reject names that are not valid shell variable names.
  858. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  859. as_fn_error $? "invalid feature name: $ac_useropt"
  860. ac_useropt_orig=$ac_useropt
  861. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  862. case $ac_user_opts in
  863. *"
  864. "enable_$ac_useropt"
  865. "*) ;;
  866. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  867. ac_unrecognized_sep=', ';;
  868. esac
  869. eval enable_$ac_useropt=no ;;
  870. -docdir | --docdir | --docdi | --doc | --do)
  871. ac_prev=docdir ;;
  872. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  873. docdir=$ac_optarg ;;
  874. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  875. ac_prev=dvidir ;;
  876. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  877. dvidir=$ac_optarg ;;
  878. -enable-* | --enable-*)
  879. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  880. # Reject names that are not valid shell variable names.
  881. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  882. as_fn_error $? "invalid feature name: $ac_useropt"
  883. ac_useropt_orig=$ac_useropt
  884. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  885. case $ac_user_opts in
  886. *"
  887. "enable_$ac_useropt"
  888. "*) ;;
  889. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  890. ac_unrecognized_sep=', ';;
  891. esac
  892. eval enable_$ac_useropt=\$ac_optarg ;;
  893. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  894. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  895. | --exec | --exe | --ex)
  896. ac_prev=exec_prefix ;;
  897. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  898. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  899. | --exec=* | --exe=* | --ex=*)
  900. exec_prefix=$ac_optarg ;;
  901. -gas | --gas | --ga | --g)
  902. # Obsolete; use --with-gas.
  903. with_gas=yes ;;
  904. -help | --help | --hel | --he | -h)
  905. ac_init_help=long ;;
  906. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  907. ac_init_help=recursive ;;
  908. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  909. ac_init_help=short ;;
  910. -host | --host | --hos | --ho)
  911. ac_prev=host_alias ;;
  912. -host=* | --host=* | --hos=* | --ho=*)
  913. host_alias=$ac_optarg ;;
  914. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  915. ac_prev=htmldir ;;
  916. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  917. | --ht=*)
  918. htmldir=$ac_optarg ;;
  919. -includedir | --includedir | --includedi | --included | --include \
  920. | --includ | --inclu | --incl | --inc)
  921. ac_prev=includedir ;;
  922. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  923. | --includ=* | --inclu=* | --incl=* | --inc=*)
  924. includedir=$ac_optarg ;;
  925. -infodir | --infodir | --infodi | --infod | --info | --inf)
  926. ac_prev=infodir ;;
  927. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  928. infodir=$ac_optarg ;;
  929. -libdir | --libdir | --libdi | --libd)
  930. ac_prev=libdir ;;
  931. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  932. libdir=$ac_optarg ;;
  933. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  934. | --libexe | --libex | --libe)
  935. ac_prev=libexecdir ;;
  936. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  937. | --libexe=* | --libex=* | --libe=*)
  938. libexecdir=$ac_optarg ;;
  939. -localedir | --localedir | --localedi | --localed | --locale)
  940. ac_prev=localedir ;;
  941. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  942. localedir=$ac_optarg ;;
  943. -localstatedir | --localstatedir | --localstatedi | --localstated \
  944. | --localstate | --localstat | --localsta | --localst | --locals)
  945. ac_prev=localstatedir ;;
  946. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  947. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  948. localstatedir=$ac_optarg ;;
  949. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  950. ac_prev=mandir ;;
  951. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  952. mandir=$ac_optarg ;;
  953. -nfp | --nfp | --nf)
  954. # Obsolete; use --without-fp.
  955. with_fp=no ;;
  956. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  957. | --no-cr | --no-c | -n)
  958. no_create=yes ;;
  959. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  960. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  961. no_recursion=yes ;;
  962. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  963. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  964. | --oldin | --oldi | --old | --ol | --o)
  965. ac_prev=oldincludedir ;;
  966. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  967. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  968. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  969. oldincludedir=$ac_optarg ;;
  970. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  971. ac_prev=prefix ;;
  972. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  973. prefix=$ac_optarg ;;
  974. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  975. | --program-pre | --program-pr | --program-p)
  976. ac_prev=program_prefix ;;
  977. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  978. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  979. program_prefix=$ac_optarg ;;
  980. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  981. | --program-suf | --program-su | --program-s)
  982. ac_prev=program_suffix ;;
  983. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  984. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  985. program_suffix=$ac_optarg ;;
  986. -program-transform-name | --program-transform-name \
  987. | --program-transform-nam | --program-transform-na \
  988. | --program-transform-n | --program-transform- \
  989. | --program-transform | --program-transfor \
  990. | --program-transfo | --program-transf \
  991. | --program-trans | --program-tran \
  992. | --progr-tra | --program-tr | --program-t)
  993. ac_prev=program_transform_name ;;
  994. -program-transform-name=* | --program-transform-name=* \
  995. | --program-transform-nam=* | --program-transform-na=* \
  996. | --program-transform-n=* | --program-transform-=* \
  997. | --program-transform=* | --program-transfor=* \
  998. | --program-transfo=* | --program-transf=* \
  999. | --program-trans=* | --program-tran=* \
  1000. | --progr-tra=* | --program-tr=* | --program-t=*)
  1001. program_transform_name=$ac_optarg ;;
  1002. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1003. ac_prev=pdfdir ;;
  1004. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1005. pdfdir=$ac_optarg ;;
  1006. -psdir | --psdir | --psdi | --psd | --ps)
  1007. ac_prev=psdir ;;
  1008. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1009. psdir=$ac_optarg ;;
  1010. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1011. | -silent | --silent | --silen | --sile | --sil)
  1012. silent=yes ;;
  1013. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1014. ac_prev=sbindir ;;
  1015. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1016. | --sbi=* | --sb=*)
  1017. sbindir=$ac_optarg ;;
  1018. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1019. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1020. | --sharedst | --shareds | --shared | --share | --shar \
  1021. | --sha | --sh)
  1022. ac_prev=sharedstatedir ;;
  1023. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1024. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1025. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1026. | --sha=* | --sh=*)
  1027. sharedstatedir=$ac_optarg ;;
  1028. -site | --site | --sit)
  1029. ac_prev=site ;;
  1030. -site=* | --site=* | --sit=*)
  1031. site=$ac_optarg ;;
  1032. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1033. ac_prev=srcdir ;;
  1034. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1035. srcdir=$ac_optarg ;;
  1036. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1037. | --syscon | --sysco | --sysc | --sys | --sy)
  1038. ac_prev=sysconfdir ;;
  1039. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1040. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1041. sysconfdir=$ac_optarg ;;
  1042. -target | --target | --targe | --targ | --tar | --ta | --t)
  1043. ac_prev=target_alias ;;
  1044. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1045. target_alias=$ac_optarg ;;
  1046. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1047. verbose=yes ;;
  1048. -version | --version | --versio | --versi | --vers | -V)
  1049. ac_init_version=: ;;
  1050. -with-* | --with-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid package name: $ac_useropt"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "with_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval with_$ac_useropt=\$ac_optarg ;;
  1065. -without-* | --without-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid package name: $ac_useropt"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "with_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval with_$ac_useropt=no ;;
  1080. --x)
  1081. # Obsolete; use --with-x.
  1082. with_x=yes ;;
  1083. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1084. | --x-incl | --x-inc | --x-in | --x-i)
  1085. ac_prev=x_includes ;;
  1086. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1087. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1088. x_includes=$ac_optarg ;;
  1089. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1090. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1091. ac_prev=x_libraries ;;
  1092. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1093. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1094. x_libraries=$ac_optarg ;;
  1095. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1096. Try \`$0 --help' for more information"
  1097. ;;
  1098. *=*)
  1099. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1100. # Reject names that are not valid shell variable names.
  1101. case $ac_envvar in #(
  1102. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1103. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1104. esac
  1105. eval $ac_envvar=\$ac_optarg
  1106. export $ac_envvar ;;
  1107. *)
  1108. # FIXME: should be removed in autoconf 3.0.
  1109. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1110. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1111. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1112. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1113. ;;
  1114. esac
  1115. done
  1116. if test -n "$ac_prev"; then
  1117. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1118. as_fn_error $? "missing argument to $ac_option"
  1119. fi
  1120. if test -n "$ac_unrecognized_opts"; then
  1121. case $enable_option_checking in
  1122. no) ;;
  1123. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1124. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1125. esac
  1126. fi
  1127. # Check all directory arguments for consistency.
  1128. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1129. datadir sysconfdir sharedstatedir localstatedir includedir \
  1130. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1131. libdir localedir mandir
  1132. do
  1133. eval ac_val=\$$ac_var
  1134. # Remove trailing slashes.
  1135. case $ac_val in
  1136. */ )
  1137. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1138. eval $ac_var=\$ac_val;;
  1139. esac
  1140. # Be sure to have absolute directory names.
  1141. case $ac_val in
  1142. [\\/$]* | ?:[\\/]* ) continue;;
  1143. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1144. esac
  1145. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1146. done
  1147. # There might be people who depend on the old broken behavior: `$host'
  1148. # used to hold the argument of --host etc.
  1149. # FIXME: To remove some day.
  1150. build=$build_alias
  1151. host=$host_alias
  1152. target=$target_alias
  1153. # FIXME: To remove some day.
  1154. if test "x$host_alias" != x; then
  1155. if test "x$build_alias" = x; then
  1156. cross_compiling=maybe
  1157. elif test "x$build_alias" != "x$host_alias"; then
  1158. cross_compiling=yes
  1159. fi
  1160. fi
  1161. ac_tool_prefix=
  1162. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1163. test "$silent" = yes && exec 6>/dev/null
  1164. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1165. ac_ls_di=`ls -di .` &&
  1166. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1167. as_fn_error $? "working directory cannot be determined"
  1168. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1169. as_fn_error $? "pwd does not report name of working directory"
  1170. # Find the source files, if location was not specified.
  1171. if test -z "$srcdir"; then
  1172. ac_srcdir_defaulted=yes
  1173. # Try the directory containing this script, then the parent directory.
  1174. ac_confdir=`$as_dirname -- "$as_myself" ||
  1175. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1176. X"$as_myself" : 'X\(//\)[^/]' \| \
  1177. X"$as_myself" : 'X\(//\)$' \| \
  1178. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1179. $as_echo X"$as_myself" |
  1180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1181. s//\1/
  1182. q
  1183. }
  1184. /^X\(\/\/\)[^/].*/{
  1185. s//\1/
  1186. q
  1187. }
  1188. /^X\(\/\/\)$/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\).*/{
  1193. s//\1/
  1194. q
  1195. }
  1196. s/.*/./; q'`
  1197. srcdir=$ac_confdir
  1198. if test ! -r "$srcdir/$ac_unique_file"; then
  1199. srcdir=..
  1200. fi
  1201. else
  1202. ac_srcdir_defaulted=no
  1203. fi
  1204. if test ! -r "$srcdir/$ac_unique_file"; then
  1205. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1206. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1207. fi
  1208. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1209. ac_abs_confdir=`(
  1210. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1211. pwd)`
  1212. # When building in place, set srcdir=.
  1213. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1214. srcdir=.
  1215. fi
  1216. # Remove unnecessary trailing slashes from srcdir.
  1217. # Double slashes in file names in object file debugging info
  1218. # mess up M-x gdb in Emacs.
  1219. case $srcdir in
  1220. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1221. esac
  1222. for ac_var in $ac_precious_vars; do
  1223. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1224. eval ac_env_${ac_var}_value=\$${ac_var}
  1225. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1226. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1227. done
  1228. #
  1229. # Report the --help message.
  1230. #
  1231. if test "$ac_init_help" = "long"; then
  1232. # Omit some internal or obsolete options to make the list less imposing.
  1233. # This message is too long to be a string in the A/UX 3.1 sh.
  1234. cat <<_ACEOF
  1235. \`configure' configures opusfile 0.11 to adapt to many kinds of systems.
  1236. Usage: $0 [OPTION]... [VAR=VALUE]...
  1237. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1238. VAR=VALUE. See below for descriptions of some of the useful variables.
  1239. Defaults for the options are specified in brackets.
  1240. Configuration:
  1241. -h, --help display this help and exit
  1242. --help=short display options specific to this package
  1243. --help=recursive display the short help of all the included packages
  1244. -V, --version display version information and exit
  1245. -q, --quiet, --silent do not print \`checking ...' messages
  1246. --cache-file=FILE cache test results in FILE [disabled]
  1247. -C, --config-cache alias for \`--cache-file=config.cache'
  1248. -n, --no-create do not create output files
  1249. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1250. Installation directories:
  1251. --prefix=PREFIX install architecture-independent files in PREFIX
  1252. [$ac_default_prefix]
  1253. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1254. [PREFIX]
  1255. By default, \`make install' will install all the files in
  1256. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1257. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1258. for instance \`--prefix=\$HOME'.
  1259. For better control, use the options below.
  1260. Fine tuning of the installation directories:
  1261. --bindir=DIR user executables [EPREFIX/bin]
  1262. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1263. --libexecdir=DIR program executables [EPREFIX/libexec]
  1264. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1265. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1266. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1267. --libdir=DIR object code libraries [EPREFIX/lib]
  1268. --includedir=DIR C header files [PREFIX/include]
  1269. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1270. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1271. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1272. --infodir=DIR info documentation [DATAROOTDIR/info]
  1273. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1274. --mandir=DIR man documentation [DATAROOTDIR/man]
  1275. --docdir=DIR documentation root [DATAROOTDIR/doc/opusfile]
  1276. --htmldir=DIR html documentation [DOCDIR]
  1277. --dvidir=DIR dvi documentation [DOCDIR]
  1278. --pdfdir=DIR pdf documentation [DOCDIR]
  1279. --psdir=DIR ps documentation [DOCDIR]
  1280. _ACEOF
  1281. cat <<\_ACEOF
  1282. Program names:
  1283. --program-prefix=PREFIX prepend PREFIX to installed program names
  1284. --program-suffix=SUFFIX append SUFFIX to installed program names
  1285. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1286. System types:
  1287. --build=BUILD configure for building on BUILD [guessed]
  1288. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1289. _ACEOF
  1290. fi
  1291. if test -n "$ac_init_help"; then
  1292. case $ac_init_help in
  1293. short | recursive ) echo "Configuration of opusfile 0.11:";;
  1294. esac
  1295. cat <<\_ACEOF
  1296. Optional Features:
  1297. --disable-option-checking ignore unrecognized --enable/--with options
  1298. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1299. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1300. --disable-largefile omit support for large files
  1301. --enable-dependency-tracking
  1302. do not reject slow dependency extractors
  1303. --disable-dependency-tracking
  1304. speeds up one-time build
  1305. --enable-silent-rules less verbose build output (undo: "make V=1")
  1306. --disable-silent-rules verbose build output (undo: "make V=0")
  1307. --disable-maintainer-mode
  1308. disable make rules and dependencies not useful (and
  1309. sometimes confusing) to the casual installer
  1310. --enable-shared[=PKGS] build shared libraries [default=yes]
  1311. --enable-static[=PKGS] build static libraries [default=yes]
  1312. --enable-fast-install[=PKGS]
  1313. optimize for fast installation [default=yes]
  1314. --disable-libtool-lock avoid locking (might break parallel builds)
  1315. --enable-assertions Enable assertions in code
  1316. --disable-http Disable HTTP support
  1317. --enable-fixed-point Enable fixed-point calculation
  1318. --disable-float Disable floating-point API
  1319. --disable-examples Do not build example applications
  1320. --disable-doc Do not build API documentation
  1321. Optional Packages:
  1322. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1323. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1324. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1325. both]
  1326. --with-aix-soname=aix|svr4|both
  1327. shared library versioning (aka "SONAME") variant to
  1328. provide on AIX, [default=aix].
  1329. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1330. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1331. compiler's sysroot if not specified).
  1332. Some influential environment variables:
  1333. CC C compiler command
  1334. CFLAGS C compiler flags
  1335. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1336. nonstandard directory <lib dir>
  1337. LIBS libraries to pass to the linker, e.g. -l<library>
  1338. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1339. you have headers in a nonstandard directory <include dir>
  1340. CPP C preprocessor
  1341. LT_SYS_LIBRARY_PATH
  1342. User-defined run-time library search path.
  1343. PKG_CONFIG path to pkg-config utility
  1344. PKG_CONFIG_PATH
  1345. directories to add to pkg-config's search path
  1346. PKG_CONFIG_LIBDIR
  1347. path overriding pkg-config's built-in search path
  1348. URL_DEPS_CFLAGS
  1349. C compiler flags for URL_DEPS, overriding pkg-config
  1350. URL_DEPS_LIBS
  1351. linker flags for URL_DEPS, overriding pkg-config
  1352. DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
  1353. DEPS_LIBS linker flags for DEPS, overriding pkg-config
  1354. Use these variables to override the choices made by `configure' or to help
  1355. it to find libraries and programs with nonstandard names/locations.
  1356. Report bugs to <[email protected]>.
  1357. _ACEOF
  1358. ac_status=$?
  1359. fi
  1360. if test "$ac_init_help" = "recursive"; then
  1361. # If there are subdirs, report their specific --help.
  1362. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1363. test -d "$ac_dir" ||
  1364. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1365. continue
  1366. ac_builddir=.
  1367. case "$ac_dir" in
  1368. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1369. *)
  1370. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1371. # A ".." for each directory in $ac_dir_suffix.
  1372. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1373. case $ac_top_builddir_sub in
  1374. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1375. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1376. esac ;;
  1377. esac
  1378. ac_abs_top_builddir=$ac_pwd
  1379. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1380. # for backward compatibility:
  1381. ac_top_builddir=$ac_top_build_prefix
  1382. case $srcdir in
  1383. .) # We are building in place.
  1384. ac_srcdir=.
  1385. ac_top_srcdir=$ac_top_builddir_sub
  1386. ac_abs_top_srcdir=$ac_pwd ;;
  1387. [\\/]* | ?:[\\/]* ) # Absolute name.
  1388. ac_srcdir=$srcdir$ac_dir_suffix;
  1389. ac_top_srcdir=$srcdir
  1390. ac_abs_top_srcdir=$srcdir ;;
  1391. *) # Relative name.
  1392. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1393. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1394. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1395. esac
  1396. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1397. cd "$ac_dir" || { ac_status=$?; continue; }
  1398. # Check for guested configure.
  1399. if test -f "$ac_srcdir/configure.gnu"; then
  1400. echo &&
  1401. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1402. elif test -f "$ac_srcdir/configure"; then
  1403. echo &&
  1404. $SHELL "$ac_srcdir/configure" --help=recursive
  1405. else
  1406. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1407. fi || ac_status=$?
  1408. cd "$ac_pwd" || { ac_status=$?; break; }
  1409. done
  1410. fi
  1411. test -n "$ac_init_help" && exit $ac_status
  1412. if $ac_init_version; then
  1413. cat <<\_ACEOF
  1414. opusfile configure 0.11
  1415. generated by GNU Autoconf 2.69
  1416. Copyright (C) 2012 Free Software Foundation, Inc.
  1417. This configure script is free software; the Free Software Foundation
  1418. gives unlimited permission to copy, distribute and modify it.
  1419. _ACEOF
  1420. exit
  1421. fi
  1422. ## ------------------------ ##
  1423. ## Autoconf initialization. ##
  1424. ## ------------------------ ##
  1425. # ac_fn_c_try_compile LINENO
  1426. # --------------------------
  1427. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_compile ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. rm -f conftest.$ac_objext
  1432. if { { ac_try="$ac_compile"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_compile") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && {
  1448. test -z "$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. } && test -s conftest.$ac_objext; then :
  1451. ac_retval=0
  1452. else
  1453. $as_echo "$as_me: failed program was:" >&5
  1454. sed 's/^/| /' conftest.$ac_ext >&5
  1455. ac_retval=1
  1456. fi
  1457. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1458. as_fn_set_status $ac_retval
  1459. } # ac_fn_c_try_compile
  1460. # ac_fn_c_try_cpp LINENO
  1461. # ----------------------
  1462. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1463. ac_fn_c_try_cpp ()
  1464. {
  1465. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1466. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1467. case "(($ac_try" in
  1468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1469. *) ac_try_echo=$ac_try;;
  1470. esac
  1471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1472. $as_echo "$ac_try_echo"; } >&5
  1473. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1474. ac_status=$?
  1475. if test -s conftest.err; then
  1476. grep -v '^ *+' conftest.err >conftest.er1
  1477. cat conftest.er1 >&5
  1478. mv -f conftest.er1 conftest.err
  1479. fi
  1480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1481. test $ac_status = 0; } > conftest.i && {
  1482. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1483. test ! -s conftest.err
  1484. }; then :
  1485. ac_retval=0
  1486. else
  1487. $as_echo "$as_me: failed program was:" >&5
  1488. sed 's/^/| /' conftest.$ac_ext >&5
  1489. ac_retval=1
  1490. fi
  1491. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1492. as_fn_set_status $ac_retval
  1493. } # ac_fn_c_try_cpp
  1494. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1495. # -------------------------------------------------------
  1496. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1497. # the include files in INCLUDES and setting the cache variable VAR
  1498. # accordingly.
  1499. ac_fn_c_check_header_mongrel ()
  1500. {
  1501. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1502. if eval \${$3+:} false; then :
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1504. $as_echo_n "checking for $2... " >&6; }
  1505. if eval \${$3+:} false; then :
  1506. $as_echo_n "(cached) " >&6
  1507. fi
  1508. eval ac_res=\$$3
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1510. $as_echo "$ac_res" >&6; }
  1511. else
  1512. # Is the header compilable?
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1514. $as_echo_n "checking $2 usability... " >&6; }
  1515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1516. /* end confdefs.h. */
  1517. $4
  1518. #include <$2>
  1519. _ACEOF
  1520. if ac_fn_c_try_compile "$LINENO"; then :
  1521. ac_header_compiler=yes
  1522. else
  1523. ac_header_compiler=no
  1524. fi
  1525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1527. $as_echo "$ac_header_compiler" >&6; }
  1528. # Is the header present?
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1530. $as_echo_n "checking $2 presence... " >&6; }
  1531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1532. /* end confdefs.h. */
  1533. #include <$2>
  1534. _ACEOF
  1535. if ac_fn_c_try_cpp "$LINENO"; then :
  1536. ac_header_preproc=yes
  1537. else
  1538. ac_header_preproc=no
  1539. fi
  1540. rm -f conftest.err conftest.i conftest.$ac_ext
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1542. $as_echo "$ac_header_preproc" >&6; }
  1543. # So? What about this header?
  1544. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1545. yes:no: )
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1547. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1549. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1550. ;;
  1551. no:yes:* )
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1553. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1555. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1557. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1559. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1561. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1562. ( $as_echo "## ---------------------------- ##
  1563. ## Report this to [email protected] ##
  1564. ## ---------------------------- ##"
  1565. ) | sed "s/^/$as_me: WARNING: /" >&2
  1566. ;;
  1567. esac
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1569. $as_echo_n "checking for $2... " >&6; }
  1570. if eval \${$3+:} false; then :
  1571. $as_echo_n "(cached) " >&6
  1572. else
  1573. eval "$3=\$ac_header_compiler"
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. fi
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. } # ac_fn_c_check_header_mongrel
  1581. # ac_fn_c_try_run LINENO
  1582. # ----------------------
  1583. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1584. # that executables *can* be run.
  1585. ac_fn_c_try_run ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. if { { ac_try="$ac_link"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_link") 2>&5
  1596. ac_status=$?
  1597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1598. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1599. { { case "(($ac_try" in
  1600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601. *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605. (eval "$ac_try") 2>&5
  1606. ac_status=$?
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; }; }; then :
  1609. ac_retval=0
  1610. else
  1611. $as_echo "$as_me: program exited with status $ac_status" >&5
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=$ac_status
  1615. fi
  1616. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1617. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1618. as_fn_set_status $ac_retval
  1619. } # ac_fn_c_try_run
  1620. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1621. # -------------------------------------------------------
  1622. # Tests whether HEADER exists and can be compiled using the include files in
  1623. # INCLUDES, setting the cache variable VAR accordingly.
  1624. ac_fn_c_check_header_compile ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1628. $as_echo_n "checking for $2... " >&6; }
  1629. if eval \${$3+:} false; then :
  1630. $as_echo_n "(cached) " >&6
  1631. else
  1632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end confdefs.h. */
  1634. $4
  1635. #include <$2>
  1636. _ACEOF
  1637. if ac_fn_c_try_compile "$LINENO"; then :
  1638. eval "$3=yes"
  1639. else
  1640. eval "$3=no"
  1641. fi
  1642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1643. fi
  1644. eval ac_res=\$$3
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1646. $as_echo "$ac_res" >&6; }
  1647. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1648. } # ac_fn_c_check_header_compile
  1649. # ac_fn_c_try_link LINENO
  1650. # -----------------------
  1651. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1652. ac_fn_c_try_link ()
  1653. {
  1654. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1655. rm -f conftest.$ac_objext conftest$ac_exeext
  1656. if { { ac_try="$ac_link"
  1657. case "(($ac_try" in
  1658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1659. *) ac_try_echo=$ac_try;;
  1660. esac
  1661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1662. $as_echo "$ac_try_echo"; } >&5
  1663. (eval "$ac_link") 2>conftest.err
  1664. ac_status=$?
  1665. if test -s conftest.err; then
  1666. grep -v '^ *+' conftest.err >conftest.er1
  1667. cat conftest.er1 >&5
  1668. mv -f conftest.er1 conftest.err
  1669. fi
  1670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1671. test $ac_status = 0; } && {
  1672. test -z "$ac_c_werror_flag" ||
  1673. test ! -s conftest.err
  1674. } && test -s conftest$ac_exeext && {
  1675. test "$cross_compiling" = yes ||
  1676. test -x conftest$ac_exeext
  1677. }; then :
  1678. ac_retval=0
  1679. else
  1680. $as_echo "$as_me: failed program was:" >&5
  1681. sed 's/^/| /' conftest.$ac_ext >&5
  1682. ac_retval=1
  1683. fi
  1684. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1685. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1686. # interfere with the next link command; also delete a directory that is
  1687. # left behind by Apple's compiler. We do this before executing the actions.
  1688. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. as_fn_set_status $ac_retval
  1691. } # ac_fn_c_try_link
  1692. # ac_fn_c_check_func LINENO FUNC VAR
  1693. # ----------------------------------
  1694. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1695. ac_fn_c_check_func ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1699. $as_echo_n "checking for $2... " >&6; }
  1700. if eval \${$3+:} false; then :
  1701. $as_echo_n "(cached) " >&6
  1702. else
  1703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1704. /* end confdefs.h. */
  1705. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1706. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1707. #define $2 innocuous_$2
  1708. /* System header to define __stub macros and hopefully few prototypes,
  1709. which can conflict with char $2 (); below.
  1710. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1711. <limits.h> exists even on freestanding compilers. */
  1712. #ifdef __STDC__
  1713. # include <limits.h>
  1714. #else
  1715. # include <assert.h>
  1716. #endif
  1717. #undef $2
  1718. /* Override any GCC internal prototype to avoid an error.
  1719. Use char because int might match the return type of a GCC
  1720. builtin and then its argument prototype would still apply. */
  1721. #ifdef __cplusplus
  1722. extern "C"
  1723. #endif
  1724. char $2 ();
  1725. /* The GNU C library defines this for functions which it implements
  1726. to always fail with ENOSYS. Some functions are actually named
  1727. something starting with __ and the normal name is an alias. */
  1728. #if defined __stub_$2 || defined __stub___$2
  1729. choke me
  1730. #endif
  1731. int
  1732. main ()
  1733. {
  1734. return $2 ();
  1735. ;
  1736. return 0;
  1737. }
  1738. _ACEOF
  1739. if ac_fn_c_try_link "$LINENO"; then :
  1740. eval "$3=yes"
  1741. else
  1742. eval "$3=no"
  1743. fi
  1744. rm -f core conftest.err conftest.$ac_objext \
  1745. conftest$ac_exeext conftest.$ac_ext
  1746. fi
  1747. eval ac_res=\$$3
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1749. $as_echo "$ac_res" >&6; }
  1750. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1751. } # ac_fn_c_check_func
  1752. cat >config.log <<_ACEOF
  1753. This file contains any messages produced by compilers while
  1754. running configure, to aid debugging if configure makes a mistake.
  1755. It was created by opusfile $as_me 0.11, which was
  1756. generated by GNU Autoconf 2.69. Invocation command line was
  1757. $ $0 $@
  1758. _ACEOF
  1759. exec 5>>config.log
  1760. {
  1761. cat <<_ASUNAME
  1762. ## --------- ##
  1763. ## Platform. ##
  1764. ## --------- ##
  1765. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1766. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1767. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1768. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1769. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1770. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1771. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1772. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1773. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1774. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1775. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1776. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1777. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1778. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1779. _ASUNAME
  1780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1781. for as_dir in $PATH
  1782. do
  1783. IFS=$as_save_IFS
  1784. test -z "$as_dir" && as_dir=.
  1785. $as_echo "PATH: $as_dir"
  1786. done
  1787. IFS=$as_save_IFS
  1788. } >&5
  1789. cat >&5 <<_ACEOF
  1790. ## ----------- ##
  1791. ## Core tests. ##
  1792. ## ----------- ##
  1793. _ACEOF
  1794. # Keep a trace of the command line.
  1795. # Strip out --no-create and --no-recursion so they do not pile up.
  1796. # Strip out --silent because we don't want to record it for future runs.
  1797. # Also quote any args containing shell meta-characters.
  1798. # Make two passes to allow for proper duplicate-argument suppression.
  1799. ac_configure_args=
  1800. ac_configure_args0=
  1801. ac_configure_args1=
  1802. ac_must_keep_next=false
  1803. for ac_pass in 1 2
  1804. do
  1805. for ac_arg
  1806. do
  1807. case $ac_arg in
  1808. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1809. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1810. | -silent | --silent | --silen | --sile | --sil)
  1811. continue ;;
  1812. *\'*)
  1813. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1814. esac
  1815. case $ac_pass in
  1816. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1817. 2)
  1818. as_fn_append ac_configure_args1 " '$ac_arg'"
  1819. if test $ac_must_keep_next = true; then
  1820. ac_must_keep_next=false # Got value, back to normal.
  1821. else
  1822. case $ac_arg in
  1823. *=* | --config-cache | -C | -disable-* | --disable-* \
  1824. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1825. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1826. | -with-* | --with-* | -without-* | --without-* | --x)
  1827. case "$ac_configure_args0 " in
  1828. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1829. esac
  1830. ;;
  1831. -* ) ac_must_keep_next=true ;;
  1832. esac
  1833. fi
  1834. as_fn_append ac_configure_args " '$ac_arg'"
  1835. ;;
  1836. esac
  1837. done
  1838. done
  1839. { ac_configure_args0=; unset ac_configure_args0;}
  1840. { ac_configure_args1=; unset ac_configure_args1;}
  1841. # When interrupted or exit'd, cleanup temporary files, and complete
  1842. # config.log. We remove comments because anyway the quotes in there
  1843. # would cause problems or look ugly.
  1844. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1845. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1846. trap 'exit_status=$?
  1847. # Save into config.log some information that might help in debugging.
  1848. {
  1849. echo
  1850. $as_echo "## ---------------- ##
  1851. ## Cache variables. ##
  1852. ## ---------------- ##"
  1853. echo
  1854. # The following way of writing the cache mishandles newlines in values,
  1855. (
  1856. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1857. eval ac_val=\$$ac_var
  1858. case $ac_val in #(
  1859. *${as_nl}*)
  1860. case $ac_var in #(
  1861. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1862. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1863. esac
  1864. case $ac_var in #(
  1865. _ | IFS | as_nl) ;; #(
  1866. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1867. *) { eval $ac_var=; unset $ac_var;} ;;
  1868. esac ;;
  1869. esac
  1870. done
  1871. (set) 2>&1 |
  1872. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1873. *${as_nl}ac_space=\ *)
  1874. sed -n \
  1875. "s/'\''/'\''\\\\'\'''\''/g;
  1876. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1877. ;; #(
  1878. *)
  1879. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1880. ;;
  1881. esac |
  1882. sort
  1883. )
  1884. echo
  1885. $as_echo "## ----------------- ##
  1886. ## Output variables. ##
  1887. ## ----------------- ##"
  1888. echo
  1889. for ac_var in $ac_subst_vars
  1890. do
  1891. eval ac_val=\$$ac_var
  1892. case $ac_val in
  1893. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1894. esac
  1895. $as_echo "$ac_var='\''$ac_val'\''"
  1896. done | sort
  1897. echo
  1898. if test -n "$ac_subst_files"; then
  1899. $as_echo "## ------------------- ##
  1900. ## File substitutions. ##
  1901. ## ------------------- ##"
  1902. echo
  1903. for ac_var in $ac_subst_files
  1904. do
  1905. eval ac_val=\$$ac_var
  1906. case $ac_val in
  1907. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1908. esac
  1909. $as_echo "$ac_var='\''$ac_val'\''"
  1910. done | sort
  1911. echo
  1912. fi
  1913. if test -s confdefs.h; then
  1914. $as_echo "## ----------- ##
  1915. ## confdefs.h. ##
  1916. ## ----------- ##"
  1917. echo
  1918. cat confdefs.h
  1919. echo
  1920. fi
  1921. test "$ac_signal" != 0 &&
  1922. $as_echo "$as_me: caught signal $ac_signal"
  1923. $as_echo "$as_me: exit $exit_status"
  1924. } >&5
  1925. rm -f core *.core core.conftest.* &&
  1926. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1927. exit $exit_status
  1928. ' 0
  1929. for ac_signal in 1 2 13 15; do
  1930. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1931. done
  1932. ac_signal=0
  1933. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1934. rm -f -r conftest* confdefs.h
  1935. $as_echo "/* confdefs.h */" > confdefs.h
  1936. # Predefined preprocessor variables.
  1937. cat >>confdefs.h <<_ACEOF
  1938. #define PACKAGE_NAME "$PACKAGE_NAME"
  1939. _ACEOF
  1940. cat >>confdefs.h <<_ACEOF
  1941. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1942. _ACEOF
  1943. cat >>confdefs.h <<_ACEOF
  1944. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1945. _ACEOF
  1946. cat >>confdefs.h <<_ACEOF
  1947. #define PACKAGE_STRING "$PACKAGE_STRING"
  1948. _ACEOF
  1949. cat >>confdefs.h <<_ACEOF
  1950. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1951. _ACEOF
  1952. cat >>confdefs.h <<_ACEOF
  1953. #define PACKAGE_URL "$PACKAGE_URL"
  1954. _ACEOF
  1955. # Let the site file select an alternate cache file if it wants to.
  1956. # Prefer an explicitly selected file to automatically selected ones.
  1957. ac_site_file1=NONE
  1958. ac_site_file2=NONE
  1959. if test -n "$CONFIG_SITE"; then
  1960. # We do not want a PATH search for config.site.
  1961. case $CONFIG_SITE in #((
  1962. -*) ac_site_file1=./$CONFIG_SITE;;
  1963. */*) ac_site_file1=$CONFIG_SITE;;
  1964. *) ac_site_file1=./$CONFIG_SITE;;
  1965. esac
  1966. elif test "x$prefix" != xNONE; then
  1967. ac_site_file1=$prefix/share/config.site
  1968. ac_site_file2=$prefix/etc/config.site
  1969. else
  1970. ac_site_file1=$ac_default_prefix/share/config.site
  1971. ac_site_file2=$ac_default_prefix/etc/config.site
  1972. fi
  1973. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1974. do
  1975. test "x$ac_site_file" = xNONE && continue
  1976. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1978. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1979. sed 's/^/| /' "$ac_site_file" >&5
  1980. . "$ac_site_file" \
  1981. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1983. as_fn_error $? "failed to load site script $ac_site_file
  1984. See \`config.log' for more details" "$LINENO" 5; }
  1985. fi
  1986. done
  1987. if test -r "$cache_file"; then
  1988. # Some versions of bash will fail to source /dev/null (special files
  1989. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1990. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1992. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1993. case $cache_file in
  1994. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1995. *) . "./$cache_file";;
  1996. esac
  1997. fi
  1998. else
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2000. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2001. >$cache_file
  2002. fi
  2003. # Check that the precious variables saved in the cache have kept the same
  2004. # value.
  2005. ac_cache_corrupted=false
  2006. for ac_var in $ac_precious_vars; do
  2007. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2008. eval ac_new_set=\$ac_env_${ac_var}_set
  2009. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2010. eval ac_new_val=\$ac_env_${ac_var}_value
  2011. case $ac_old_set,$ac_new_set in
  2012. set,)
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2014. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2015. ac_cache_corrupted=: ;;
  2016. ,set)
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2018. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2019. ac_cache_corrupted=: ;;
  2020. ,);;
  2021. *)
  2022. if test "x$ac_old_val" != "x$ac_new_val"; then
  2023. # differences in whitespace do not lead to failure.
  2024. ac_old_val_w=`echo x $ac_old_val`
  2025. ac_new_val_w=`echo x $ac_new_val`
  2026. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2028. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2029. ac_cache_corrupted=:
  2030. else
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2032. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2033. eval $ac_var=\$ac_old_val
  2034. fi
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2036. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2038. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2039. fi;;
  2040. esac
  2041. # Pass precious variables to config.status.
  2042. if test "$ac_new_set" = set; then
  2043. case $ac_new_val in
  2044. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2045. *) ac_arg=$ac_var=$ac_new_val ;;
  2046. esac
  2047. case " $ac_configure_args " in
  2048. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2049. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2050. esac
  2051. fi
  2052. done
  2053. if $ac_cache_corrupted; then
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2055. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2057. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2058. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2059. fi
  2060. ## -------------------- ##
  2061. ## Main body of script. ##
  2062. ## -------------------- ##
  2063. ac_ext=c
  2064. ac_cpp='$CPP $CPPFLAGS'
  2065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2068. ac_aux_dir=
  2069. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2070. if test -f "$ac_dir/install-sh"; then
  2071. ac_aux_dir=$ac_dir
  2072. ac_install_sh="$ac_aux_dir/install-sh -c"
  2073. break
  2074. elif test -f "$ac_dir/install.sh"; then
  2075. ac_aux_dir=$ac_dir
  2076. ac_install_sh="$ac_aux_dir/install.sh -c"
  2077. break
  2078. elif test -f "$ac_dir/shtool"; then
  2079. ac_aux_dir=$ac_dir
  2080. ac_install_sh="$ac_aux_dir/shtool install -c"
  2081. break
  2082. fi
  2083. done
  2084. if test -z "$ac_aux_dir"; then
  2085. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2086. fi
  2087. # These three variables are undocumented and unsupported,
  2088. # and are intended to be withdrawn in a future Autoconf release.
  2089. # They can cause serious problems if a builder's source tree is in a directory
  2090. # whose full name contains unusual characters.
  2091. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2092. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2093. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2094. # Expand $ac_aux_dir to an absolute path.
  2095. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2096. ac_ext=c
  2097. ac_cpp='$CPP $CPPFLAGS'
  2098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2101. if test -n "$ac_tool_prefix"; then
  2102. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2103. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2105. $as_echo_n "checking for $ac_word... " >&6; }
  2106. if ${ac_cv_prog_CC+:} false; then :
  2107. $as_echo_n "(cached) " >&6
  2108. else
  2109. if test -n "$CC"; then
  2110. ac_cv_prog_CC="$CC" # Let the user override the test.
  2111. else
  2112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2113. for as_dir in $PATH
  2114. do
  2115. IFS=$as_save_IFS
  2116. test -z "$as_dir" && as_dir=.
  2117. for ac_exec_ext in '' $ac_executable_extensions; do
  2118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2119. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2121. break 2
  2122. fi
  2123. done
  2124. done
  2125. IFS=$as_save_IFS
  2126. fi
  2127. fi
  2128. CC=$ac_cv_prog_CC
  2129. if test -n "$CC"; then
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2131. $as_echo "$CC" >&6; }
  2132. else
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2134. $as_echo "no" >&6; }
  2135. fi
  2136. fi
  2137. if test -z "$ac_cv_prog_CC"; then
  2138. ac_ct_CC=$CC
  2139. # Extract the first word of "gcc", so it can be a program name with args.
  2140. set dummy gcc; ac_word=$2
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2142. $as_echo_n "checking for $ac_word... " >&6; }
  2143. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2144. $as_echo_n "(cached) " >&6
  2145. else
  2146. if test -n "$ac_ct_CC"; then
  2147. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2148. else
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. for ac_exec_ext in '' $ac_executable_extensions; do
  2155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2156. ac_cv_prog_ac_ct_CC="gcc"
  2157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2158. break 2
  2159. fi
  2160. done
  2161. done
  2162. IFS=$as_save_IFS
  2163. fi
  2164. fi
  2165. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2166. if test -n "$ac_ct_CC"; then
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2168. $as_echo "$ac_ct_CC" >&6; }
  2169. else
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2171. $as_echo "no" >&6; }
  2172. fi
  2173. if test "x$ac_ct_CC" = x; then
  2174. CC=""
  2175. else
  2176. case $cross_compiling:$ac_tool_warned in
  2177. yes:)
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2179. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2180. ac_tool_warned=yes ;;
  2181. esac
  2182. CC=$ac_ct_CC
  2183. fi
  2184. else
  2185. CC="$ac_cv_prog_CC"
  2186. fi
  2187. if test -z "$CC"; then
  2188. if test -n "$ac_tool_prefix"; then
  2189. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2190. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2192. $as_echo_n "checking for $ac_word... " >&6; }
  2193. if ${ac_cv_prog_CC+:} false; then :
  2194. $as_echo_n "(cached) " >&6
  2195. else
  2196. if test -n "$CC"; then
  2197. ac_cv_prog_CC="$CC" # Let the user override the test.
  2198. else
  2199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2200. for as_dir in $PATH
  2201. do
  2202. IFS=$as_save_IFS
  2203. test -z "$as_dir" && as_dir=.
  2204. for ac_exec_ext in '' $ac_executable_extensions; do
  2205. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2206. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2207. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2208. break 2
  2209. fi
  2210. done
  2211. done
  2212. IFS=$as_save_IFS
  2213. fi
  2214. fi
  2215. CC=$ac_cv_prog_CC
  2216. if test -n "$CC"; then
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2218. $as_echo "$CC" >&6; }
  2219. else
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2221. $as_echo "no" >&6; }
  2222. fi
  2223. fi
  2224. fi
  2225. if test -z "$CC"; then
  2226. # Extract the first word of "cc", so it can be a program name with args.
  2227. set dummy cc; ac_word=$2
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2229. $as_echo_n "checking for $ac_word... " >&6; }
  2230. if ${ac_cv_prog_CC+:} false; then :
  2231. $as_echo_n "(cached) " >&6
  2232. else
  2233. if test -n "$CC"; then
  2234. ac_cv_prog_CC="$CC" # Let the user override the test.
  2235. else
  2236. ac_prog_rejected=no
  2237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2238. for as_dir in $PATH
  2239. do
  2240. IFS=$as_save_IFS
  2241. test -z "$as_dir" && as_dir=.
  2242. for ac_exec_ext in '' $ac_executable_extensions; do
  2243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2244. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2245. ac_prog_rejected=yes
  2246. continue
  2247. fi
  2248. ac_cv_prog_CC="cc"
  2249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2250. break 2
  2251. fi
  2252. done
  2253. done
  2254. IFS=$as_save_IFS
  2255. if test $ac_prog_rejected = yes; then
  2256. # We found a bogon in the path, so make sure we never use it.
  2257. set dummy $ac_cv_prog_CC
  2258. shift
  2259. if test $# != 0; then
  2260. # We chose a different compiler from the bogus one.
  2261. # However, it has the same basename, so the bogon will be chosen
  2262. # first if we set CC to just the basename; use the full file name.
  2263. shift
  2264. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2265. fi
  2266. fi
  2267. fi
  2268. fi
  2269. CC=$ac_cv_prog_CC
  2270. if test -n "$CC"; then
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2272. $as_echo "$CC" >&6; }
  2273. else
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2275. $as_echo "no" >&6; }
  2276. fi
  2277. fi
  2278. if test -z "$CC"; then
  2279. if test -n "$ac_tool_prefix"; then
  2280. for ac_prog in cl.exe
  2281. do
  2282. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2283. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2285. $as_echo_n "checking for $ac_word... " >&6; }
  2286. if ${ac_cv_prog_CC+:} false; then :
  2287. $as_echo_n "(cached) " >&6
  2288. else
  2289. if test -n "$CC"; then
  2290. ac_cv_prog_CC="$CC" # Let the user override the test.
  2291. else
  2292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2293. for as_dir in $PATH
  2294. do
  2295. IFS=$as_save_IFS
  2296. test -z "$as_dir" && as_dir=.
  2297. for ac_exec_ext in '' $ac_executable_extensions; do
  2298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2299. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2301. break 2
  2302. fi
  2303. done
  2304. done
  2305. IFS=$as_save_IFS
  2306. fi
  2307. fi
  2308. CC=$ac_cv_prog_CC
  2309. if test -n "$CC"; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2311. $as_echo "$CC" >&6; }
  2312. else
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2314. $as_echo "no" >&6; }
  2315. fi
  2316. test -n "$CC" && break
  2317. done
  2318. fi
  2319. if test -z "$CC"; then
  2320. ac_ct_CC=$CC
  2321. for ac_prog in cl.exe
  2322. do
  2323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2324. set dummy $ac_prog; ac_word=$2
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2326. $as_echo_n "checking for $ac_word... " >&6; }
  2327. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2328. $as_echo_n "(cached) " >&6
  2329. else
  2330. if test -n "$ac_ct_CC"; then
  2331. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2332. else
  2333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2334. for as_dir in $PATH
  2335. do
  2336. IFS=$as_save_IFS
  2337. test -z "$as_dir" && as_dir=.
  2338. for ac_exec_ext in '' $ac_executable_extensions; do
  2339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2340. ac_cv_prog_ac_ct_CC="$ac_prog"
  2341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. IFS=$as_save_IFS
  2347. fi
  2348. fi
  2349. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2350. if test -n "$ac_ct_CC"; then
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2352. $as_echo "$ac_ct_CC" >&6; }
  2353. else
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2355. $as_echo "no" >&6; }
  2356. fi
  2357. test -n "$ac_ct_CC" && break
  2358. done
  2359. if test "x$ac_ct_CC" = x; then
  2360. CC=""
  2361. else
  2362. case $cross_compiling:$ac_tool_warned in
  2363. yes:)
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2366. ac_tool_warned=yes ;;
  2367. esac
  2368. CC=$ac_ct_CC
  2369. fi
  2370. fi
  2371. fi
  2372. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2373. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2374. as_fn_error $? "no acceptable C compiler found in \$PATH
  2375. See \`config.log' for more details" "$LINENO" 5; }
  2376. # Provide some information about the compiler.
  2377. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2378. set X $ac_compile
  2379. ac_compiler=$2
  2380. for ac_option in --version -v -V -qversion; do
  2381. { { ac_try="$ac_compiler $ac_option >&5"
  2382. case "(($ac_try" in
  2383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2384. *) ac_try_echo=$ac_try;;
  2385. esac
  2386. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2387. $as_echo "$ac_try_echo"; } >&5
  2388. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2389. ac_status=$?
  2390. if test -s conftest.err; then
  2391. sed '10a\
  2392. ... rest of stderr output deleted ...
  2393. 10q' conftest.err >conftest.er1
  2394. cat conftest.er1 >&5
  2395. fi
  2396. rm -f conftest.er1 conftest.err
  2397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2398. test $ac_status = 0; }
  2399. done
  2400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2401. /* end confdefs.h. */
  2402. int
  2403. main ()
  2404. {
  2405. ;
  2406. return 0;
  2407. }
  2408. _ACEOF
  2409. ac_clean_files_save=$ac_clean_files
  2410. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2411. # Try to create an executable without -o first, disregard a.out.
  2412. # It will help us diagnose broken compilers, and finding out an intuition
  2413. # of exeext.
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2415. $as_echo_n "checking whether the C compiler works... " >&6; }
  2416. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2417. # The possible output files:
  2418. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2419. ac_rmfiles=
  2420. for ac_file in $ac_files
  2421. do
  2422. case $ac_file in
  2423. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2424. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2425. esac
  2426. done
  2427. rm -f $ac_rmfiles
  2428. if { { ac_try="$ac_link_default"
  2429. case "(($ac_try" in
  2430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2431. *) ac_try_echo=$ac_try;;
  2432. esac
  2433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2434. $as_echo "$ac_try_echo"; } >&5
  2435. (eval "$ac_link_default") 2>&5
  2436. ac_status=$?
  2437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2438. test $ac_status = 0; }; then :
  2439. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2440. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2441. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2442. # so that the user can short-circuit this test for compilers unknown to
  2443. # Autoconf.
  2444. for ac_file in $ac_files ''
  2445. do
  2446. test -f "$ac_file" || continue
  2447. case $ac_file in
  2448. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2449. ;;
  2450. [ab].out )
  2451. # We found the default executable, but exeext='' is most
  2452. # certainly right.
  2453. break;;
  2454. *.* )
  2455. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2456. then :; else
  2457. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2458. fi
  2459. # We set ac_cv_exeext here because the later test for it is not
  2460. # safe: cross compilers may not add the suffix if given an `-o'
  2461. # argument, so we may need to know it at that point already.
  2462. # Even if this section looks crufty: it has the advantage of
  2463. # actually working.
  2464. break;;
  2465. * )
  2466. break;;
  2467. esac
  2468. done
  2469. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2470. else
  2471. ac_file=''
  2472. fi
  2473. if test -z "$ac_file"; then :
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2475. $as_echo "no" >&6; }
  2476. $as_echo "$as_me: failed program was:" >&5
  2477. sed 's/^/| /' conftest.$ac_ext >&5
  2478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2480. as_fn_error 77 "C compiler cannot create executables
  2481. See \`config.log' for more details" "$LINENO" 5; }
  2482. else
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2484. $as_echo "yes" >&6; }
  2485. fi
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2487. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2489. $as_echo "$ac_file" >&6; }
  2490. ac_exeext=$ac_cv_exeext
  2491. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2492. ac_clean_files=$ac_clean_files_save
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2494. $as_echo_n "checking for suffix of executables... " >&6; }
  2495. if { { ac_try="$ac_link"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2501. $as_echo "$ac_try_echo"; } >&5
  2502. (eval "$ac_link") 2>&5
  2503. ac_status=$?
  2504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2505. test $ac_status = 0; }; then :
  2506. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2507. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2508. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2509. # `rm'.
  2510. for ac_file in conftest.exe conftest conftest.*; do
  2511. test -f "$ac_file" || continue
  2512. case $ac_file in
  2513. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2514. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2515. break;;
  2516. * ) break;;
  2517. esac
  2518. done
  2519. else
  2520. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2521. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2522. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2523. See \`config.log' for more details" "$LINENO" 5; }
  2524. fi
  2525. rm -f conftest conftest$ac_cv_exeext
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2527. $as_echo "$ac_cv_exeext" >&6; }
  2528. rm -f conftest.$ac_ext
  2529. EXEEXT=$ac_cv_exeext
  2530. ac_exeext=$EXEEXT
  2531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2532. /* end confdefs.h. */
  2533. #include <stdio.h>
  2534. int
  2535. main ()
  2536. {
  2537. FILE *f = fopen ("conftest.out", "w");
  2538. return ferror (f) || fclose (f) != 0;
  2539. ;
  2540. return 0;
  2541. }
  2542. _ACEOF
  2543. ac_clean_files="$ac_clean_files conftest.out"
  2544. # Check that the compiler produces executables we can run. If not, either
  2545. # the compiler is broken, or we cross compile.
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2547. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2548. if test "$cross_compiling" != yes; then
  2549. { { ac_try="$ac_link"
  2550. case "(($ac_try" in
  2551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2552. *) ac_try_echo=$ac_try;;
  2553. esac
  2554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2555. $as_echo "$ac_try_echo"; } >&5
  2556. (eval "$ac_link") 2>&5
  2557. ac_status=$?
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2559. test $ac_status = 0; }
  2560. if { ac_try='./conftest$ac_cv_exeext'
  2561. { { case "(($ac_try" in
  2562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2563. *) ac_try_echo=$ac_try;;
  2564. esac
  2565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2566. $as_echo "$ac_try_echo"; } >&5
  2567. (eval "$ac_try") 2>&5
  2568. ac_status=$?
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2570. test $ac_status = 0; }; }; then
  2571. cross_compiling=no
  2572. else
  2573. if test "$cross_compiling" = maybe; then
  2574. cross_compiling=yes
  2575. else
  2576. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2577. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2578. as_fn_error $? "cannot run C compiled programs.
  2579. If you meant to cross compile, use \`--host'.
  2580. See \`config.log' for more details" "$LINENO" 5; }
  2581. fi
  2582. fi
  2583. fi
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2585. $as_echo "$cross_compiling" >&6; }
  2586. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2587. ac_clean_files=$ac_clean_files_save
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2589. $as_echo_n "checking for suffix of object files... " >&6; }
  2590. if ${ac_cv_objext+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2594. /* end confdefs.h. */
  2595. int
  2596. main ()
  2597. {
  2598. ;
  2599. return 0;
  2600. }
  2601. _ACEOF
  2602. rm -f conftest.o conftest.obj
  2603. if { { ac_try="$ac_compile"
  2604. case "(($ac_try" in
  2605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2606. *) ac_try_echo=$ac_try;;
  2607. esac
  2608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2609. $as_echo "$ac_try_echo"; } >&5
  2610. (eval "$ac_compile") 2>&5
  2611. ac_status=$?
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2613. test $ac_status = 0; }; then :
  2614. for ac_file in conftest.o conftest.obj conftest.*; do
  2615. test -f "$ac_file" || continue;
  2616. case $ac_file in
  2617. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2618. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2619. break;;
  2620. esac
  2621. done
  2622. else
  2623. $as_echo "$as_me: failed program was:" >&5
  2624. sed 's/^/| /' conftest.$ac_ext >&5
  2625. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2627. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2628. See \`config.log' for more details" "$LINENO" 5; }
  2629. fi
  2630. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2631. fi
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2633. $as_echo "$ac_cv_objext" >&6; }
  2634. OBJEXT=$ac_cv_objext
  2635. ac_objext=$OBJEXT
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2637. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2638. if ${ac_cv_c_compiler_gnu+:} false; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2642. /* end confdefs.h. */
  2643. int
  2644. main ()
  2645. {
  2646. #ifndef __GNUC__
  2647. choke me
  2648. #endif
  2649. ;
  2650. return 0;
  2651. }
  2652. _ACEOF
  2653. if ac_fn_c_try_compile "$LINENO"; then :
  2654. ac_compiler_gnu=yes
  2655. else
  2656. ac_compiler_gnu=no
  2657. fi
  2658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2659. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2660. fi
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2662. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2663. if test $ac_compiler_gnu = yes; then
  2664. GCC=yes
  2665. else
  2666. GCC=
  2667. fi
  2668. ac_test_CFLAGS=${CFLAGS+set}
  2669. ac_save_CFLAGS=$CFLAGS
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2671. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2672. if ${ac_cv_prog_cc_g+:} false; then :
  2673. $as_echo_n "(cached) " >&6
  2674. else
  2675. ac_save_c_werror_flag=$ac_c_werror_flag
  2676. ac_c_werror_flag=yes
  2677. ac_cv_prog_cc_g=no
  2678. CFLAGS="-g"
  2679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2680. /* end confdefs.h. */
  2681. int
  2682. main ()
  2683. {
  2684. ;
  2685. return 0;
  2686. }
  2687. _ACEOF
  2688. if ac_fn_c_try_compile "$LINENO"; then :
  2689. ac_cv_prog_cc_g=yes
  2690. else
  2691. CFLAGS=""
  2692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2693. /* end confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. ;
  2698. return 0;
  2699. }
  2700. _ACEOF
  2701. if ac_fn_c_try_compile "$LINENO"; then :
  2702. else
  2703. ac_c_werror_flag=$ac_save_c_werror_flag
  2704. CFLAGS="-g"
  2705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2706. /* end confdefs.h. */
  2707. int
  2708. main ()
  2709. {
  2710. ;
  2711. return 0;
  2712. }
  2713. _ACEOF
  2714. if ac_fn_c_try_compile "$LINENO"; then :
  2715. ac_cv_prog_cc_g=yes
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. fi
  2719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. fi
  2721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2722. ac_c_werror_flag=$ac_save_c_werror_flag
  2723. fi
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2725. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2726. if test "$ac_test_CFLAGS" = set; then
  2727. CFLAGS=$ac_save_CFLAGS
  2728. elif test $ac_cv_prog_cc_g = yes; then
  2729. if test "$GCC" = yes; then
  2730. CFLAGS="-g -O2"
  2731. else
  2732. CFLAGS="-g"
  2733. fi
  2734. else
  2735. if test "$GCC" = yes; then
  2736. CFLAGS="-O2"
  2737. else
  2738. CFLAGS=
  2739. fi
  2740. fi
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2742. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2743. if ${ac_cv_prog_cc_c89+:} false; then :
  2744. $as_echo_n "(cached) " >&6
  2745. else
  2746. ac_cv_prog_cc_c89=no
  2747. ac_save_CC=$CC
  2748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2749. /* end confdefs.h. */
  2750. #include <stdarg.h>
  2751. #include <stdio.h>
  2752. struct stat;
  2753. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2754. struct buf { int x; };
  2755. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2756. static char *e (p, i)
  2757. char **p;
  2758. int i;
  2759. {
  2760. return p[i];
  2761. }
  2762. static char *f (char * (*g) (char **, int), char **p, ...)
  2763. {
  2764. char *s;
  2765. va_list v;
  2766. va_start (v,p);
  2767. s = g (p, va_arg (v,int));
  2768. va_end (v);
  2769. return s;
  2770. }
  2771. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2772. function prototypes and stuff, but not '\xHH' hex character constants.
  2773. These don't provoke an error unfortunately, instead are silently treated
  2774. as 'x'. The following induces an error, until -std is added to get
  2775. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2776. array size at least. It's necessary to write '\x00'==0 to get something
  2777. that's true only with -std. */
  2778. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2779. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2780. inside strings and character constants. */
  2781. #define FOO(x) 'x'
  2782. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2783. int test (int i, double x);
  2784. struct s1 {int (*f) (int a);};
  2785. struct s2 {int (*f) (double a);};
  2786. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2787. int argc;
  2788. char **argv;
  2789. int
  2790. main ()
  2791. {
  2792. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2793. ;
  2794. return 0;
  2795. }
  2796. _ACEOF
  2797. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2798. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2799. do
  2800. CC="$ac_save_CC $ac_arg"
  2801. if ac_fn_c_try_compile "$LINENO"; then :
  2802. ac_cv_prog_cc_c89=$ac_arg
  2803. fi
  2804. rm -f core conftest.err conftest.$ac_objext
  2805. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2806. done
  2807. rm -f conftest.$ac_ext
  2808. CC=$ac_save_CC
  2809. fi
  2810. # AC_CACHE_VAL
  2811. case "x$ac_cv_prog_cc_c89" in
  2812. x)
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2814. $as_echo "none needed" >&6; } ;;
  2815. xno)
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2817. $as_echo "unsupported" >&6; } ;;
  2818. *)
  2819. CC="$CC $ac_cv_prog_cc_c89"
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2821. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2822. esac
  2823. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2824. fi
  2825. ac_ext=c
  2826. ac_cpp='$CPP $CPPFLAGS'
  2827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2830. ac_ext=c
  2831. ac_cpp='$CPP $CPPFLAGS'
  2832. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2833. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2834. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  2836. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  2837. if ${am_cv_prog_cc_c_o+:} false; then :
  2838. $as_echo_n "(cached) " >&6
  2839. else
  2840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end confdefs.h. */
  2842. int
  2843. main ()
  2844. {
  2845. ;
  2846. return 0;
  2847. }
  2848. _ACEOF
  2849. # Make sure it works both with $CC and with simple cc.
  2850. # Following AC_PROG_CC_C_O, we do the test twice because some
  2851. # compilers refuse to overwrite an existing .o file with -o,
  2852. # though they will create one.
  2853. am_cv_prog_cc_c_o=yes
  2854. for am_i in 1 2; do
  2855. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  2856. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  2857. ac_status=$?
  2858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2859. (exit $ac_status); } \
  2860. && test -f conftest2.$ac_objext; then
  2861. : OK
  2862. else
  2863. am_cv_prog_cc_c_o=no
  2864. break
  2865. fi
  2866. done
  2867. rm -f core conftest*
  2868. unset am_i
  2869. fi
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  2871. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  2872. if test "$am_cv_prog_cc_c_o" != yes; then
  2873. # Losing compiler, so override with the script.
  2874. # FIXME: It is wrong to rewrite CC.
  2875. # But if we don't then we get into trouble of one sort or another.
  2876. # A longer-term fix would be to have automake use am__CC in this case,
  2877. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  2878. CC="$am_aux_dir/compile $CC"
  2879. fi
  2880. ac_ext=c
  2881. ac_cpp='$CPP $CPPFLAGS'
  2882. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2883. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2884. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2885. ac_ext=c
  2886. ac_cpp='$CPP $CPPFLAGS'
  2887. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2888. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2889. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2891. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2892. # On Suns, sometimes $CPP names a directory.
  2893. if test -n "$CPP" && test -d "$CPP"; then
  2894. CPP=
  2895. fi
  2896. if test -z "$CPP"; then
  2897. if ${ac_cv_prog_CPP+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. # Double quotes because CPP needs to be expanded
  2901. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2902. do
  2903. ac_preproc_ok=false
  2904. for ac_c_preproc_warn_flag in '' yes
  2905. do
  2906. # Use a header file that comes with gcc, so configuring glibc
  2907. # with a fresh cross-compiler works.
  2908. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2909. # <limits.h> exists even on freestanding compilers.
  2910. # On the NeXT, cc -E runs the code through the compiler's parser,
  2911. # not just through cpp. "Syntax error" is here to catch this case.
  2912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2913. /* end confdefs.h. */
  2914. #ifdef __STDC__
  2915. # include <limits.h>
  2916. #else
  2917. # include <assert.h>
  2918. #endif
  2919. Syntax error
  2920. _ACEOF
  2921. if ac_fn_c_try_cpp "$LINENO"; then :
  2922. else
  2923. # Broken: fails on valid input.
  2924. continue
  2925. fi
  2926. rm -f conftest.err conftest.i conftest.$ac_ext
  2927. # OK, works on sane cases. Now check whether nonexistent headers
  2928. # can be detected and how.
  2929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2930. /* end confdefs.h. */
  2931. #include <ac_nonexistent.h>
  2932. _ACEOF
  2933. if ac_fn_c_try_cpp "$LINENO"; then :
  2934. # Broken: success on invalid input.
  2935. continue
  2936. else
  2937. # Passes both tests.
  2938. ac_preproc_ok=:
  2939. break
  2940. fi
  2941. rm -f conftest.err conftest.i conftest.$ac_ext
  2942. done
  2943. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2944. rm -f conftest.i conftest.err conftest.$ac_ext
  2945. if $ac_preproc_ok; then :
  2946. break
  2947. fi
  2948. done
  2949. ac_cv_prog_CPP=$CPP
  2950. fi
  2951. CPP=$ac_cv_prog_CPP
  2952. else
  2953. ac_cv_prog_CPP=$CPP
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2956. $as_echo "$CPP" >&6; }
  2957. ac_preproc_ok=false
  2958. for ac_c_preproc_warn_flag in '' yes
  2959. do
  2960. # Use a header file that comes with gcc, so configuring glibc
  2961. # with a fresh cross-compiler works.
  2962. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2963. # <limits.h> exists even on freestanding compilers.
  2964. # On the NeXT, cc -E runs the code through the compiler's parser,
  2965. # not just through cpp. "Syntax error" is here to catch this case.
  2966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2967. /* end confdefs.h. */
  2968. #ifdef __STDC__
  2969. # include <limits.h>
  2970. #else
  2971. # include <assert.h>
  2972. #endif
  2973. Syntax error
  2974. _ACEOF
  2975. if ac_fn_c_try_cpp "$LINENO"; then :
  2976. else
  2977. # Broken: fails on valid input.
  2978. continue
  2979. fi
  2980. rm -f conftest.err conftest.i conftest.$ac_ext
  2981. # OK, works on sane cases. Now check whether nonexistent headers
  2982. # can be detected and how.
  2983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2984. /* end confdefs.h. */
  2985. #include <ac_nonexistent.h>
  2986. _ACEOF
  2987. if ac_fn_c_try_cpp "$LINENO"; then :
  2988. # Broken: success on invalid input.
  2989. continue
  2990. else
  2991. # Passes both tests.
  2992. ac_preproc_ok=:
  2993. break
  2994. fi
  2995. rm -f conftest.err conftest.i conftest.$ac_ext
  2996. done
  2997. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2998. rm -f conftest.i conftest.err conftest.$ac_ext
  2999. if $ac_preproc_ok; then :
  3000. else
  3001. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3002. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3003. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3004. See \`config.log' for more details" "$LINENO" 5; }
  3005. fi
  3006. ac_ext=c
  3007. ac_cpp='$CPP $CPPFLAGS'
  3008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3012. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3013. if ${ac_cv_path_GREP+:} false; then :
  3014. $as_echo_n "(cached) " >&6
  3015. else
  3016. if test -z "$GREP"; then
  3017. ac_path_GREP_found=false
  3018. # Loop through the user's path and test for each of PROGNAME-LIST
  3019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3020. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3021. do
  3022. IFS=$as_save_IFS
  3023. test -z "$as_dir" && as_dir=.
  3024. for ac_prog in grep ggrep; do
  3025. for ac_exec_ext in '' $ac_executable_extensions; do
  3026. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3027. as_fn_executable_p "$ac_path_GREP" || continue
  3028. # Check for GNU ac_path_GREP and select it if it is found.
  3029. # Check for GNU $ac_path_GREP
  3030. case `"$ac_path_GREP" --version 2>&1` in
  3031. *GNU*)
  3032. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3033. *)
  3034. ac_count=0
  3035. $as_echo_n 0123456789 >"conftest.in"
  3036. while :
  3037. do
  3038. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3039. mv "conftest.tmp" "conftest.in"
  3040. cp "conftest.in" "conftest.nl"
  3041. $as_echo 'GREP' >> "conftest.nl"
  3042. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3043. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3044. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3045. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3046. # Best one so far, save it but keep looking for a better one
  3047. ac_cv_path_GREP="$ac_path_GREP"
  3048. ac_path_GREP_max=$ac_count
  3049. fi
  3050. # 10*(2^10) chars as input seems more than enough
  3051. test $ac_count -gt 10 && break
  3052. done
  3053. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3054. esac
  3055. $ac_path_GREP_found && break 3
  3056. done
  3057. done
  3058. done
  3059. IFS=$as_save_IFS
  3060. if test -z "$ac_cv_path_GREP"; then
  3061. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3062. fi
  3063. else
  3064. ac_cv_path_GREP=$GREP
  3065. fi
  3066. fi
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3068. $as_echo "$ac_cv_path_GREP" >&6; }
  3069. GREP="$ac_cv_path_GREP"
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3071. $as_echo_n "checking for egrep... " >&6; }
  3072. if ${ac_cv_path_EGREP+:} false; then :
  3073. $as_echo_n "(cached) " >&6
  3074. else
  3075. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3076. then ac_cv_path_EGREP="$GREP -E"
  3077. else
  3078. if test -z "$EGREP"; then
  3079. ac_path_EGREP_found=false
  3080. # Loop through the user's path and test for each of PROGNAME-LIST
  3081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3082. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3083. do
  3084. IFS=$as_save_IFS
  3085. test -z "$as_dir" && as_dir=.
  3086. for ac_prog in egrep; do
  3087. for ac_exec_ext in '' $ac_executable_extensions; do
  3088. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3089. as_fn_executable_p "$ac_path_EGREP" || continue
  3090. # Check for GNU ac_path_EGREP and select it if it is found.
  3091. # Check for GNU $ac_path_EGREP
  3092. case `"$ac_path_EGREP" --version 2>&1` in
  3093. *GNU*)
  3094. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3095. *)
  3096. ac_count=0
  3097. $as_echo_n 0123456789 >"conftest.in"
  3098. while :
  3099. do
  3100. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3101. mv "conftest.tmp" "conftest.in"
  3102. cp "conftest.in" "conftest.nl"
  3103. $as_echo 'EGREP' >> "conftest.nl"
  3104. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3105. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3106. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3107. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3108. # Best one so far, save it but keep looking for a better one
  3109. ac_cv_path_EGREP="$ac_path_EGREP"
  3110. ac_path_EGREP_max=$ac_count
  3111. fi
  3112. # 10*(2^10) chars as input seems more than enough
  3113. test $ac_count -gt 10 && break
  3114. done
  3115. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3116. esac
  3117. $ac_path_EGREP_found && break 3
  3118. done
  3119. done
  3120. done
  3121. IFS=$as_save_IFS
  3122. if test -z "$ac_cv_path_EGREP"; then
  3123. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3124. fi
  3125. else
  3126. ac_cv_path_EGREP=$EGREP
  3127. fi
  3128. fi
  3129. fi
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3131. $as_echo "$ac_cv_path_EGREP" >&6; }
  3132. EGREP="$ac_cv_path_EGREP"
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3134. $as_echo_n "checking for ANSI C header files... " >&6; }
  3135. if ${ac_cv_header_stdc+:} false; then :
  3136. $as_echo_n "(cached) " >&6
  3137. else
  3138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3139. /* end confdefs.h. */
  3140. #include <stdlib.h>
  3141. #include <stdarg.h>
  3142. #include <string.h>
  3143. #include <float.h>
  3144. int
  3145. main ()
  3146. {
  3147. ;
  3148. return 0;
  3149. }
  3150. _ACEOF
  3151. if ac_fn_c_try_compile "$LINENO"; then :
  3152. ac_cv_header_stdc=yes
  3153. else
  3154. ac_cv_header_stdc=no
  3155. fi
  3156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3157. if test $ac_cv_header_stdc = yes; then
  3158. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3160. /* end confdefs.h. */
  3161. #include <string.h>
  3162. _ACEOF
  3163. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3164. $EGREP "memchr" >/dev/null 2>&1; then :
  3165. else
  3166. ac_cv_header_stdc=no
  3167. fi
  3168. rm -f conftest*
  3169. fi
  3170. if test $ac_cv_header_stdc = yes; then
  3171. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. #include <stdlib.h>
  3175. _ACEOF
  3176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3177. $EGREP "free" >/dev/null 2>&1; then :
  3178. else
  3179. ac_cv_header_stdc=no
  3180. fi
  3181. rm -f conftest*
  3182. fi
  3183. if test $ac_cv_header_stdc = yes; then
  3184. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3185. if test "$cross_compiling" = yes; then :
  3186. :
  3187. else
  3188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3189. /* end confdefs.h. */
  3190. #include <ctype.h>
  3191. #include <stdlib.h>
  3192. #if ((' ' & 0x0FF) == 0x020)
  3193. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3194. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3195. #else
  3196. # define ISLOWER(c) \
  3197. (('a' <= (c) && (c) <= 'i') \
  3198. || ('j' <= (c) && (c) <= 'r') \
  3199. || ('s' <= (c) && (c) <= 'z'))
  3200. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3201. #endif
  3202. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3203. int
  3204. main ()
  3205. {
  3206. int i;
  3207. for (i = 0; i < 256; i++)
  3208. if (XOR (islower (i), ISLOWER (i))
  3209. || toupper (i) != TOUPPER (i))
  3210. return 2;
  3211. return 0;
  3212. }
  3213. _ACEOF
  3214. if ac_fn_c_try_run "$LINENO"; then :
  3215. else
  3216. ac_cv_header_stdc=no
  3217. fi
  3218. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3219. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3220. fi
  3221. fi
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3224. $as_echo "$ac_cv_header_stdc" >&6; }
  3225. if test $ac_cv_header_stdc = yes; then
  3226. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3227. fi
  3228. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3229. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3230. inttypes.h stdint.h unistd.h
  3231. do :
  3232. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3233. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3234. "
  3235. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3236. cat >>confdefs.h <<_ACEOF
  3237. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3238. _ACEOF
  3239. fi
  3240. done
  3241. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3242. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3243. MINIX=yes
  3244. else
  3245. MINIX=
  3246. fi
  3247. if test "$MINIX" = yes; then
  3248. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3249. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3250. $as_echo "#define _MINIX 1" >>confdefs.h
  3251. fi
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3253. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3254. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3258. /* end confdefs.h. */
  3259. # define __EXTENSIONS__ 1
  3260. $ac_includes_default
  3261. int
  3262. main ()
  3263. {
  3264. ;
  3265. return 0;
  3266. }
  3267. _ACEOF
  3268. if ac_fn_c_try_compile "$LINENO"; then :
  3269. ac_cv_safe_to_define___extensions__=yes
  3270. else
  3271. ac_cv_safe_to_define___extensions__=no
  3272. fi
  3273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3274. fi
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3276. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3277. test $ac_cv_safe_to_define___extensions__ = yes &&
  3278. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3279. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3280. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3281. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3282. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3283. # Check whether --enable-largefile was given.
  3284. if test "${enable_largefile+set}" = set; then :
  3285. enableval=$enable_largefile;
  3286. fi
  3287. if test "$enable_largefile" != no; then
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3289. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3290. if ${ac_cv_sys_largefile_CC+:} false; then :
  3291. $as_echo_n "(cached) " >&6
  3292. else
  3293. ac_cv_sys_largefile_CC=no
  3294. if test "$GCC" != yes; then
  3295. ac_save_CC=$CC
  3296. while :; do
  3297. # IRIX 6.2 and later do not support large files by default,
  3298. # so use the C compiler's -n32 option if that helps.
  3299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3300. /* end confdefs.h. */
  3301. #include <sys/types.h>
  3302. /* Check that off_t can represent 2**63 - 1 correctly.
  3303. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3304. since some C++ compilers masquerading as C compilers
  3305. incorrectly reject 9223372036854775807. */
  3306. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3307. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3308. && LARGE_OFF_T % 2147483647 == 1)
  3309. ? 1 : -1];
  3310. int
  3311. main ()
  3312. {
  3313. ;
  3314. return 0;
  3315. }
  3316. _ACEOF
  3317. if ac_fn_c_try_compile "$LINENO"; then :
  3318. break
  3319. fi
  3320. rm -f core conftest.err conftest.$ac_objext
  3321. CC="$CC -n32"
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323. ac_cv_sys_largefile_CC=' -n32'; break
  3324. fi
  3325. rm -f core conftest.err conftest.$ac_objext
  3326. break
  3327. done
  3328. CC=$ac_save_CC
  3329. rm -f conftest.$ac_ext
  3330. fi
  3331. fi
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3333. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3334. if test "$ac_cv_sys_largefile_CC" != no; then
  3335. CC=$CC$ac_cv_sys_largefile_CC
  3336. fi
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3338. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3339. if ${ac_cv_sys_file_offset_bits+:} false; then :
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. while :; do
  3343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3344. /* end confdefs.h. */
  3345. #include <sys/types.h>
  3346. /* Check that off_t can represent 2**63 - 1 correctly.
  3347. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3348. since some C++ compilers masquerading as C compilers
  3349. incorrectly reject 9223372036854775807. */
  3350. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3351. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3352. && LARGE_OFF_T % 2147483647 == 1)
  3353. ? 1 : -1];
  3354. int
  3355. main ()
  3356. {
  3357. ;
  3358. return 0;
  3359. }
  3360. _ACEOF
  3361. if ac_fn_c_try_compile "$LINENO"; then :
  3362. ac_cv_sys_file_offset_bits=no; break
  3363. fi
  3364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. #define _FILE_OFFSET_BITS 64
  3368. #include <sys/types.h>
  3369. /* Check that off_t can represent 2**63 - 1 correctly.
  3370. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3371. since some C++ compilers masquerading as C compilers
  3372. incorrectly reject 9223372036854775807. */
  3373. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3374. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3375. && LARGE_OFF_T % 2147483647 == 1)
  3376. ? 1 : -1];
  3377. int
  3378. main ()
  3379. {
  3380. ;
  3381. return 0;
  3382. }
  3383. _ACEOF
  3384. if ac_fn_c_try_compile "$LINENO"; then :
  3385. ac_cv_sys_file_offset_bits=64; break
  3386. fi
  3387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3388. ac_cv_sys_file_offset_bits=unknown
  3389. break
  3390. done
  3391. fi
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3393. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3394. case $ac_cv_sys_file_offset_bits in #(
  3395. no | unknown) ;;
  3396. *)
  3397. cat >>confdefs.h <<_ACEOF
  3398. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3399. _ACEOF
  3400. ;;
  3401. esac
  3402. rm -rf conftest*
  3403. if test $ac_cv_sys_file_offset_bits = unknown; then
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3405. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3406. if ${ac_cv_sys_large_files+:} false; then :
  3407. $as_echo_n "(cached) " >&6
  3408. else
  3409. while :; do
  3410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3411. /* end confdefs.h. */
  3412. #include <sys/types.h>
  3413. /* Check that off_t can represent 2**63 - 1 correctly.
  3414. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3415. since some C++ compilers masquerading as C compilers
  3416. incorrectly reject 9223372036854775807. */
  3417. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3418. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3419. && LARGE_OFF_T % 2147483647 == 1)
  3420. ? 1 : -1];
  3421. int
  3422. main ()
  3423. {
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. if ac_fn_c_try_compile "$LINENO"; then :
  3429. ac_cv_sys_large_files=no; break
  3430. fi
  3431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3433. /* end confdefs.h. */
  3434. #define _LARGE_FILES 1
  3435. #include <sys/types.h>
  3436. /* Check that off_t can represent 2**63 - 1 correctly.
  3437. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3438. since some C++ compilers masquerading as C compilers
  3439. incorrectly reject 9223372036854775807. */
  3440. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3441. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3442. && LARGE_OFF_T % 2147483647 == 1)
  3443. ? 1 : -1];
  3444. int
  3445. main ()
  3446. {
  3447. ;
  3448. return 0;
  3449. }
  3450. _ACEOF
  3451. if ac_fn_c_try_compile "$LINENO"; then :
  3452. ac_cv_sys_large_files=1; break
  3453. fi
  3454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3455. ac_cv_sys_large_files=unknown
  3456. break
  3457. done
  3458. fi
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3460. $as_echo "$ac_cv_sys_large_files" >&6; }
  3461. case $ac_cv_sys_large_files in #(
  3462. no | unknown) ;;
  3463. *)
  3464. cat >>confdefs.h <<_ACEOF
  3465. #define _LARGE_FILES $ac_cv_sys_large_files
  3466. _ACEOF
  3467. ;;
  3468. esac
  3469. rm -rf conftest*
  3470. fi
  3471. fi
  3472. am__api_version='1.15'
  3473. # Find a good install program. We prefer a C program (faster),
  3474. # so one script is as good as another. But avoid the broken or
  3475. # incompatible versions:
  3476. # SysV /etc/install, /usr/sbin/install
  3477. # SunOS /usr/etc/install
  3478. # IRIX /sbin/install
  3479. # AIX /bin/install
  3480. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3481. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3482. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3483. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3484. # OS/2's system install, which has a completely different semantic
  3485. # ./install, which can be erroneously created by make from ./install.sh.
  3486. # Reject install programs that cannot install multiple files.
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3488. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3489. if test -z "$INSTALL"; then
  3490. if ${ac_cv_path_install+:} false; then :
  3491. $as_echo_n "(cached) " >&6
  3492. else
  3493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494. for as_dir in $PATH
  3495. do
  3496. IFS=$as_save_IFS
  3497. test -z "$as_dir" && as_dir=.
  3498. # Account for people who put trailing slashes in PATH elements.
  3499. case $as_dir/ in #((
  3500. ./ | .// | /[cC]/* | \
  3501. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3502. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3503. /usr/ucb/* ) ;;
  3504. *)
  3505. # OSF1 and SCO ODT 3.0 have their own names for install.
  3506. # Don't use installbsd from OSF since it installs stuff as root
  3507. # by default.
  3508. for ac_prog in ginstall scoinst install; do
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3511. if test $ac_prog = install &&
  3512. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3513. # AIX install. It has an incompatible calling convention.
  3514. :
  3515. elif test $ac_prog = install &&
  3516. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3517. # program-specific install script used by HP pwplus--don't use.
  3518. :
  3519. else
  3520. rm -rf conftest.one conftest.two conftest.dir
  3521. echo one > conftest.one
  3522. echo two > conftest.two
  3523. mkdir conftest.dir
  3524. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3525. test -s conftest.one && test -s conftest.two &&
  3526. test -s conftest.dir/conftest.one &&
  3527. test -s conftest.dir/conftest.two
  3528. then
  3529. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3530. break 3
  3531. fi
  3532. fi
  3533. fi
  3534. done
  3535. done
  3536. ;;
  3537. esac
  3538. done
  3539. IFS=$as_save_IFS
  3540. rm -rf conftest.one conftest.two conftest.dir
  3541. fi
  3542. if test "${ac_cv_path_install+set}" = set; then
  3543. INSTALL=$ac_cv_path_install
  3544. else
  3545. # As a last resort, use the slow shell script. Don't cache a
  3546. # value for INSTALL within a source directory, because that will
  3547. # break other packages using the cache if that directory is
  3548. # removed, or if the value is a relative name.
  3549. INSTALL=$ac_install_sh
  3550. fi
  3551. fi
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3553. $as_echo "$INSTALL" >&6; }
  3554. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3555. # It thinks the first close brace ends the variable substitution.
  3556. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3557. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3558. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3560. $as_echo_n "checking whether build environment is sane... " >&6; }
  3561. # Reject unsafe characters in $srcdir or the absolute working directory
  3562. # name. Accept space and tab only in the latter.
  3563. am_lf='
  3564. '
  3565. case `pwd` in
  3566. *[\\\"\#\$\&\'\`$am_lf]*)
  3567. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3568. esac
  3569. case $srcdir in
  3570. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3571. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3572. esac
  3573. # Do 'set' in a subshell so we don't clobber the current shell's
  3574. # arguments. Must try -L first in case configure is actually a
  3575. # symlink; some systems play weird games with the mod time of symlinks
  3576. # (eg FreeBSD returns the mod time of the symlink's containing
  3577. # directory).
  3578. if (
  3579. am_has_slept=no
  3580. for am_try in 1 2; do
  3581. echo "timestamp, slept: $am_has_slept" > conftest.file
  3582. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3583. if test "$*" = "X"; then
  3584. # -L didn't work.
  3585. set X `ls -t "$srcdir/configure" conftest.file`
  3586. fi
  3587. if test "$*" != "X $srcdir/configure conftest.file" \
  3588. && test "$*" != "X conftest.file $srcdir/configure"; then
  3589. # If neither matched, then we have a broken ls. This can happen
  3590. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3591. # broken ls alias from the environment. This has actually
  3592. # happened. Such a system could not be considered "sane".
  3593. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3594. alias in your environment" "$LINENO" 5
  3595. fi
  3596. if test "$2" = conftest.file || test $am_try -eq 2; then
  3597. break
  3598. fi
  3599. # Just in case.
  3600. sleep 1
  3601. am_has_slept=yes
  3602. done
  3603. test "$2" = conftest.file
  3604. )
  3605. then
  3606. # Ok.
  3607. :
  3608. else
  3609. as_fn_error $? "newly created file is older than distributed files!
  3610. Check your system clock" "$LINENO" 5
  3611. fi
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3613. $as_echo "yes" >&6; }
  3614. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3615. # generated files are strictly newer.
  3616. am_sleep_pid=
  3617. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3618. ( sleep 1 ) &
  3619. am_sleep_pid=$!
  3620. fi
  3621. rm -f conftest.file
  3622. test "$program_prefix" != NONE &&
  3623. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3624. # Use a double $ so make ignores it.
  3625. test "$program_suffix" != NONE &&
  3626. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3627. # Double any \ or $.
  3628. # By default was `s,x,x', remove it if useless.
  3629. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3630. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3631. if test x"${MISSING+set}" != xset; then
  3632. case $am_aux_dir in
  3633. *\ * | *\ *)
  3634. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3635. *)
  3636. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3637. esac
  3638. fi
  3639. # Use eval to expand $SHELL
  3640. if eval "$MISSING --is-lightweight"; then
  3641. am_missing_run="$MISSING "
  3642. else
  3643. am_missing_run=
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3645. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3646. fi
  3647. if test x"${install_sh+set}" != xset; then
  3648. case $am_aux_dir in
  3649. *\ * | *\ *)
  3650. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3651. *)
  3652. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3653. esac
  3654. fi
  3655. # Installed binaries are usually stripped using 'strip' when the user
  3656. # run "make install-strip". However 'strip' might not be the right
  3657. # tool to use in cross-compilation environments, therefore Automake
  3658. # will honor the 'STRIP' environment variable to overrule this program.
  3659. if test "$cross_compiling" != no; then
  3660. if test -n "$ac_tool_prefix"; then
  3661. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3662. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3664. $as_echo_n "checking for $ac_word... " >&6; }
  3665. if ${ac_cv_prog_STRIP+:} false; then :
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. if test -n "$STRIP"; then
  3669. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3670. else
  3671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3672. for as_dir in $PATH
  3673. do
  3674. IFS=$as_save_IFS
  3675. test -z "$as_dir" && as_dir=.
  3676. for ac_exec_ext in '' $ac_executable_extensions; do
  3677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3678. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3680. break 2
  3681. fi
  3682. done
  3683. done
  3684. IFS=$as_save_IFS
  3685. fi
  3686. fi
  3687. STRIP=$ac_cv_prog_STRIP
  3688. if test -n "$STRIP"; then
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3690. $as_echo "$STRIP" >&6; }
  3691. else
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3693. $as_echo "no" >&6; }
  3694. fi
  3695. fi
  3696. if test -z "$ac_cv_prog_STRIP"; then
  3697. ac_ct_STRIP=$STRIP
  3698. # Extract the first word of "strip", so it can be a program name with args.
  3699. set dummy strip; ac_word=$2
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3701. $as_echo_n "checking for $ac_word... " >&6; }
  3702. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. if test -n "$ac_ct_STRIP"; then
  3706. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3707. else
  3708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3709. for as_dir in $PATH
  3710. do
  3711. IFS=$as_save_IFS
  3712. test -z "$as_dir" && as_dir=.
  3713. for ac_exec_ext in '' $ac_executable_extensions; do
  3714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3715. ac_cv_prog_ac_ct_STRIP="strip"
  3716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3717. break 2
  3718. fi
  3719. done
  3720. done
  3721. IFS=$as_save_IFS
  3722. fi
  3723. fi
  3724. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3725. if test -n "$ac_ct_STRIP"; then
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3727. $as_echo "$ac_ct_STRIP" >&6; }
  3728. else
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3730. $as_echo "no" >&6; }
  3731. fi
  3732. if test "x$ac_ct_STRIP" = x; then
  3733. STRIP=":"
  3734. else
  3735. case $cross_compiling:$ac_tool_warned in
  3736. yes:)
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3739. ac_tool_warned=yes ;;
  3740. esac
  3741. STRIP=$ac_ct_STRIP
  3742. fi
  3743. else
  3744. STRIP="$ac_cv_prog_STRIP"
  3745. fi
  3746. fi
  3747. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3749. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3750. if test -z "$MKDIR_P"; then
  3751. if ${ac_cv_path_mkdir+:} false; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3755. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3756. do
  3757. IFS=$as_save_IFS
  3758. test -z "$as_dir" && as_dir=.
  3759. for ac_prog in mkdir gmkdir; do
  3760. for ac_exec_ext in '' $ac_executable_extensions; do
  3761. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3762. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3763. 'mkdir (GNU coreutils) '* | \
  3764. 'mkdir (coreutils) '* | \
  3765. 'mkdir (fileutils) '4.1*)
  3766. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3767. break 3;;
  3768. esac
  3769. done
  3770. done
  3771. done
  3772. IFS=$as_save_IFS
  3773. fi
  3774. test -d ./--version && rmdir ./--version
  3775. if test "${ac_cv_path_mkdir+set}" = set; then
  3776. MKDIR_P="$ac_cv_path_mkdir -p"
  3777. else
  3778. # As a last resort, use the slow shell script. Don't cache a
  3779. # value for MKDIR_P within a source directory, because that will
  3780. # break other packages using the cache if that directory is
  3781. # removed, or if the value is a relative name.
  3782. MKDIR_P="$ac_install_sh -d"
  3783. fi
  3784. fi
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3786. $as_echo "$MKDIR_P" >&6; }
  3787. for ac_prog in gawk mawk nawk awk
  3788. do
  3789. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3790. set dummy $ac_prog; ac_word=$2
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3792. $as_echo_n "checking for $ac_word... " >&6; }
  3793. if ${ac_cv_prog_AWK+:} false; then :
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. if test -n "$AWK"; then
  3797. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3798. else
  3799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3800. for as_dir in $PATH
  3801. do
  3802. IFS=$as_save_IFS
  3803. test -z "$as_dir" && as_dir=.
  3804. for ac_exec_ext in '' $ac_executable_extensions; do
  3805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3806. ac_cv_prog_AWK="$ac_prog"
  3807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3808. break 2
  3809. fi
  3810. done
  3811. done
  3812. IFS=$as_save_IFS
  3813. fi
  3814. fi
  3815. AWK=$ac_cv_prog_AWK
  3816. if test -n "$AWK"; then
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3818. $as_echo "$AWK" >&6; }
  3819. else
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3821. $as_echo "no" >&6; }
  3822. fi
  3823. test -n "$AWK" && break
  3824. done
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3826. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3827. set x ${MAKE-make}
  3828. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3829. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. cat >conftest.make <<\_ACEOF
  3833. SHELL = /bin/sh
  3834. all:
  3835. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3836. _ACEOF
  3837. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3838. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3839. *@@@%%%=?*=@@@%%%*)
  3840. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3841. *)
  3842. eval ac_cv_prog_make_${ac_make}_set=no;;
  3843. esac
  3844. rm -f conftest.make
  3845. fi
  3846. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3848. $as_echo "yes" >&6; }
  3849. SET_MAKE=
  3850. else
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3852. $as_echo "no" >&6; }
  3853. SET_MAKE="MAKE=${MAKE-make}"
  3854. fi
  3855. rm -rf .tst 2>/dev/null
  3856. mkdir .tst 2>/dev/null
  3857. if test -d .tst; then
  3858. am__leading_dot=.
  3859. else
  3860. am__leading_dot=_
  3861. fi
  3862. rmdir .tst 2>/dev/null
  3863. DEPDIR="${am__leading_dot}deps"
  3864. ac_config_commands="$ac_config_commands depfiles"
  3865. am_make=${MAKE-make}
  3866. cat > confinc << 'END'
  3867. am__doit:
  3868. @echo this is the am__doit target
  3869. .PHONY: am__doit
  3870. END
  3871. # If we don't find an include directive, just comment out the code.
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3873. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3874. am__include="#"
  3875. am__quote=
  3876. _am_result=none
  3877. # First try GNU make style include.
  3878. echo "include confinc" > confmf
  3879. # Ignore all kinds of additional output from 'make'.
  3880. case `$am_make -s -f confmf 2> /dev/null` in #(
  3881. *the\ am__doit\ target*)
  3882. am__include=include
  3883. am__quote=
  3884. _am_result=GNU
  3885. ;;
  3886. esac
  3887. # Now try BSD make style include.
  3888. if test "$am__include" = "#"; then
  3889. echo '.include "confinc"' > confmf
  3890. case `$am_make -s -f confmf 2> /dev/null` in #(
  3891. *the\ am__doit\ target*)
  3892. am__include=.include
  3893. am__quote="\""
  3894. _am_result=BSD
  3895. ;;
  3896. esac
  3897. fi
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3899. $as_echo "$_am_result" >&6; }
  3900. rm -f confinc confmf
  3901. # Check whether --enable-dependency-tracking was given.
  3902. if test "${enable_dependency_tracking+set}" = set; then :
  3903. enableval=$enable_dependency_tracking;
  3904. fi
  3905. if test "x$enable_dependency_tracking" != xno; then
  3906. am_depcomp="$ac_aux_dir/depcomp"
  3907. AMDEPBACKSLASH='\'
  3908. am__nodep='_no'
  3909. fi
  3910. if test "x$enable_dependency_tracking" != xno; then
  3911. AMDEP_TRUE=
  3912. AMDEP_FALSE='#'
  3913. else
  3914. AMDEP_TRUE='#'
  3915. AMDEP_FALSE=
  3916. fi
  3917. # Check whether --enable-silent-rules was given.
  3918. if test "${enable_silent_rules+set}" = set; then :
  3919. enableval=$enable_silent_rules;
  3920. fi
  3921. case $enable_silent_rules in # (((
  3922. yes) AM_DEFAULT_VERBOSITY=0;;
  3923. no) AM_DEFAULT_VERBOSITY=1;;
  3924. *) AM_DEFAULT_VERBOSITY=1;;
  3925. esac
  3926. am_make=${MAKE-make}
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3928. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3929. if ${am_cv_make_support_nested_variables+:} false; then :
  3930. $as_echo_n "(cached) " >&6
  3931. else
  3932. if $as_echo 'TRUE=$(BAR$(V))
  3933. BAR0=false
  3934. BAR1=true
  3935. V=1
  3936. am__doit:
  3937. @$(TRUE)
  3938. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3939. am_cv_make_support_nested_variables=yes
  3940. else
  3941. am_cv_make_support_nested_variables=no
  3942. fi
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3945. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3946. if test $am_cv_make_support_nested_variables = yes; then
  3947. AM_V='$(V)'
  3948. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3949. else
  3950. AM_V=$AM_DEFAULT_VERBOSITY
  3951. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3952. fi
  3953. AM_BACKSLASH='\'
  3954. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3955. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3956. # is not polluted with repeated "-I."
  3957. am__isrc=' -I$(srcdir)'
  3958. # test to see if srcdir already configured
  3959. if test -f $srcdir/config.status; then
  3960. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3961. fi
  3962. fi
  3963. # test whether we have cygpath
  3964. if test -z "$CYGPATH_W"; then
  3965. if (cygpath --version) >/dev/null 2>/dev/null; then
  3966. CYGPATH_W='cygpath -w'
  3967. else
  3968. CYGPATH_W=echo
  3969. fi
  3970. fi
  3971. # Define the identity of the package.
  3972. PACKAGE='opusfile'
  3973. VERSION='0.11'
  3974. # Some tools Automake needs.
  3975. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3976. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3977. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3978. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3979. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3980. # For better backward compatibility. To be removed once Automake 1.9.x
  3981. # dies out for good. For more background, see:
  3982. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3983. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3984. mkdir_p='$(MKDIR_P)'
  3985. # We need awk for the "check" target (and possibly the TAP driver). The
  3986. # system "awk" is bad on some platforms.
  3987. # Always define AMTAR for backward compatibility. Yes, it's still used
  3988. # in the wild :-( We should find a proper way to deprecate it ...
  3989. AMTAR='$${TAR-tar}'
  3990. # We'll loop over all known methods to create a tar archive until one works.
  3991. _am_tools='gnutar pax cpio none'
  3992. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3993. depcc="$CC" am_compiler_list=
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3995. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3996. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4000. # We make a subdir and do the tests there. Otherwise we can end up
  4001. # making bogus files that we don't know about and never remove. For
  4002. # instance it was reported that on HP-UX the gcc test will end up
  4003. # making a dummy file named 'D' -- because '-MD' means "put the output
  4004. # in D".
  4005. rm -rf conftest.dir
  4006. mkdir conftest.dir
  4007. # Copy depcomp to subdir because otherwise we won't find it if we're
  4008. # using a relative directory.
  4009. cp "$am_depcomp" conftest.dir
  4010. cd conftest.dir
  4011. # We will build objects and dependencies in a subdirectory because
  4012. # it helps to detect inapplicable dependency modes. For instance
  4013. # both Tru64's cc and ICC support -MD to output dependencies as a
  4014. # side effect of compilation, but ICC will put the dependencies in
  4015. # the current directory while Tru64 will put them in the object
  4016. # directory.
  4017. mkdir sub
  4018. am_cv_CC_dependencies_compiler_type=none
  4019. if test "$am_compiler_list" = ""; then
  4020. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4021. fi
  4022. am__universal=false
  4023. case " $depcc " in #(
  4024. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4025. esac
  4026. for depmode in $am_compiler_list; do
  4027. # Setup a source with many dependencies, because some compilers
  4028. # like to wrap large dependency lists on column 80 (with \), and
  4029. # we should not choose a depcomp mode which is confused by this.
  4030. #
  4031. # We need to recreate these files for each test, as the compiler may
  4032. # overwrite some of them when testing with obscure command lines.
  4033. # This happens at least with the AIX C compiler.
  4034. : > sub/conftest.c
  4035. for i in 1 2 3 4 5 6; do
  4036. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4037. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4038. # Solaris 10 /bin/sh.
  4039. echo '/* dummy */' > sub/conftst$i.h
  4040. done
  4041. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4042. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4043. # mode. It turns out that the SunPro C++ compiler does not properly
  4044. # handle '-M -o', and we need to detect this. Also, some Intel
  4045. # versions had trouble with output in subdirs.
  4046. am__obj=sub/conftest.${OBJEXT-o}
  4047. am__minus_obj="-o $am__obj"
  4048. case $depmode in
  4049. gcc)
  4050. # This depmode causes a compiler race in universal mode.
  4051. test "$am__universal" = false || continue
  4052. ;;
  4053. nosideeffect)
  4054. # After this tag, mechanisms are not by side-effect, so they'll
  4055. # only be used when explicitly requested.
  4056. if test "x$enable_dependency_tracking" = xyes; then
  4057. continue
  4058. else
  4059. break
  4060. fi
  4061. ;;
  4062. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4063. # This compiler won't grok '-c -o', but also, the minuso test has
  4064. # not run yet. These depmodes are late enough in the game, and
  4065. # so weak that their functioning should not be impacted.
  4066. am__obj=conftest.${OBJEXT-o}
  4067. am__minus_obj=
  4068. ;;
  4069. none) break ;;
  4070. esac
  4071. if depmode=$depmode \
  4072. source=sub/conftest.c object=$am__obj \
  4073. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4074. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4075. >/dev/null 2>conftest.err &&
  4076. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4077. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4078. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4079. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4080. # icc doesn't choke on unknown options, it will just issue warnings
  4081. # or remarks (even with -Werror). So we grep stderr for any message
  4082. # that says an option was ignored or not supported.
  4083. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4084. # icc: Command line warning: ignoring option '-M'; no argument required
  4085. # The diagnosis changed in icc 8.0:
  4086. # icc: Command line remark: option '-MP' not supported
  4087. if (grep 'ignoring option' conftest.err ||
  4088. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4089. am_cv_CC_dependencies_compiler_type=$depmode
  4090. break
  4091. fi
  4092. fi
  4093. done
  4094. cd ..
  4095. rm -rf conftest.dir
  4096. else
  4097. am_cv_CC_dependencies_compiler_type=none
  4098. fi
  4099. fi
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4101. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4102. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4103. if
  4104. test "x$enable_dependency_tracking" != xno \
  4105. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4106. am__fastdepCC_TRUE=
  4107. am__fastdepCC_FALSE='#'
  4108. else
  4109. am__fastdepCC_TRUE='#'
  4110. am__fastdepCC_FALSE=
  4111. fi
  4112. # POSIX will say in a future version that running "rm -f" with no argument
  4113. # is OK; and we want to be able to make that assumption in our Makefile
  4114. # recipes. So use an aggressive probe to check that the usage we want is
  4115. # actually supported "in the wild" to an acceptable degree.
  4116. # See automake bug#10828.
  4117. # To make any issue more visible, cause the running configure to be aborted
  4118. # by default if the 'rm' program in use doesn't match our expectations; the
  4119. # user can still override this though.
  4120. if rm -f && rm -fr && rm -rf; then : OK; else
  4121. cat >&2 <<'END'
  4122. Oops!
  4123. Your 'rm' program seems unable to run without file operands specified
  4124. on the command line, even when the '-f' option is present. This is contrary
  4125. to the behaviour of most rm programs out there, and not conforming with
  4126. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4127. Please tell [email protected] about your system, including the value
  4128. of your $PATH and any error possibly output before this message. This
  4129. can help us improve future automake versions.
  4130. END
  4131. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4132. echo 'Configuration will proceed anyway, since you have set the' >&2
  4133. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4134. echo >&2
  4135. else
  4136. cat >&2 <<'END'
  4137. Aborting the configuration process, to ensure you take notice of the issue.
  4138. You can download and install GNU coreutils to get an 'rm' implementation
  4139. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4140. If you want to complete the configuration process using your problematic
  4141. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4142. to "yes", and re-run configure.
  4143. END
  4144. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4145. fi
  4146. fi
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4148. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4149. # Check whether --enable-maintainer-mode was given.
  4150. if test "${enable_maintainer_mode+set}" = set; then :
  4151. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4152. else
  4153. USE_MAINTAINER_MODE=yes
  4154. fi
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4156. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4157. if test $USE_MAINTAINER_MODE = yes; then
  4158. MAINTAINER_MODE_TRUE=
  4159. MAINTAINER_MODE_FALSE='#'
  4160. else
  4161. MAINTAINER_MODE_TRUE='#'
  4162. MAINTAINER_MODE_FALSE=
  4163. fi
  4164. MAINT=$MAINTAINER_MODE_TRUE
  4165. case `pwd` in
  4166. *\ * | *\ *)
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4168. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4169. esac
  4170. macro_version='2.4.6'
  4171. macro_revision='2.4.6'
  4172. ltmain=$ac_aux_dir/ltmain.sh
  4173. # Make sure we can run config.sub.
  4174. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4175. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4177. $as_echo_n "checking build system type... " >&6; }
  4178. if ${ac_cv_build+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. ac_build_alias=$build_alias
  4182. test "x$ac_build_alias" = x &&
  4183. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4184. test "x$ac_build_alias" = x &&
  4185. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4186. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4187. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4188. fi
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4190. $as_echo "$ac_cv_build" >&6; }
  4191. case $ac_cv_build in
  4192. *-*-*) ;;
  4193. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4194. esac
  4195. build=$ac_cv_build
  4196. ac_save_IFS=$IFS; IFS='-'
  4197. set x $ac_cv_build
  4198. shift
  4199. build_cpu=$1
  4200. build_vendor=$2
  4201. shift; shift
  4202. # Remember, the first character of IFS is used to create $*,
  4203. # except with old shells:
  4204. build_os=$*
  4205. IFS=$ac_save_IFS
  4206. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4208. $as_echo_n "checking host system type... " >&6; }
  4209. if ${ac_cv_host+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. if test "x$host_alias" = x; then
  4213. ac_cv_host=$ac_cv_build
  4214. else
  4215. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4216. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4217. fi
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4220. $as_echo "$ac_cv_host" >&6; }
  4221. case $ac_cv_host in
  4222. *-*-*) ;;
  4223. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4224. esac
  4225. host=$ac_cv_host
  4226. ac_save_IFS=$IFS; IFS='-'
  4227. set x $ac_cv_host
  4228. shift
  4229. host_cpu=$1
  4230. host_vendor=$2
  4231. shift; shift
  4232. # Remember, the first character of IFS is used to create $*,
  4233. # except with old shells:
  4234. host_os=$*
  4235. IFS=$ac_save_IFS
  4236. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4237. # Backslashify metacharacters that are still active within
  4238. # double-quoted strings.
  4239. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4240. # Same as above, but do not quote variable references.
  4241. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4242. # Sed substitution to delay expansion of an escaped shell variable in a
  4243. # double_quote_subst'ed string.
  4244. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4245. # Sed substitution to delay expansion of an escaped single quote.
  4246. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4247. # Sed substitution to avoid accidental globbing in evaled expressions
  4248. no_glob_subst='s/\*/\\\*/g'
  4249. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4250. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4251. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4253. $as_echo_n "checking how to print strings... " >&6; }
  4254. # Test print first, because it will be a builtin if present.
  4255. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4256. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4257. ECHO='print -r --'
  4258. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4259. ECHO='printf %s\n'
  4260. else
  4261. # Use this function as a fallback that always works.
  4262. func_fallback_echo ()
  4263. {
  4264. eval 'cat <<_LTECHO_EOF
  4265. $1
  4266. _LTECHO_EOF'
  4267. }
  4268. ECHO='func_fallback_echo'
  4269. fi
  4270. # func_echo_all arg...
  4271. # Invoke $ECHO with all args, space-separated.
  4272. func_echo_all ()
  4273. {
  4274. $ECHO ""
  4275. }
  4276. case $ECHO in
  4277. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4278. $as_echo "printf" >&6; } ;;
  4279. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4280. $as_echo "print -r" >&6; } ;;
  4281. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4282. $as_echo "cat" >&6; } ;;
  4283. esac
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4285. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4286. if ${ac_cv_path_SED+:} false; then :
  4287. $as_echo_n "(cached) " >&6
  4288. else
  4289. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4290. for ac_i in 1 2 3 4 5 6 7; do
  4291. ac_script="$ac_script$as_nl$ac_script"
  4292. done
  4293. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4294. { ac_script=; unset ac_script;}
  4295. if test -z "$SED"; then
  4296. ac_path_SED_found=false
  4297. # Loop through the user's path and test for each of PROGNAME-LIST
  4298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4299. for as_dir in $PATH
  4300. do
  4301. IFS=$as_save_IFS
  4302. test -z "$as_dir" && as_dir=.
  4303. for ac_prog in sed gsed; do
  4304. for ac_exec_ext in '' $ac_executable_extensions; do
  4305. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4306. as_fn_executable_p "$ac_path_SED" || continue
  4307. # Check for GNU ac_path_SED and select it if it is found.
  4308. # Check for GNU $ac_path_SED
  4309. case `"$ac_path_SED" --version 2>&1` in
  4310. *GNU*)
  4311. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4312. *)
  4313. ac_count=0
  4314. $as_echo_n 0123456789 >"conftest.in"
  4315. while :
  4316. do
  4317. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4318. mv "conftest.tmp" "conftest.in"
  4319. cp "conftest.in" "conftest.nl"
  4320. $as_echo '' >> "conftest.nl"
  4321. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4322. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4323. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4324. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4325. # Best one so far, save it but keep looking for a better one
  4326. ac_cv_path_SED="$ac_path_SED"
  4327. ac_path_SED_max=$ac_count
  4328. fi
  4329. # 10*(2^10) chars as input seems more than enough
  4330. test $ac_count -gt 10 && break
  4331. done
  4332. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4333. esac
  4334. $ac_path_SED_found && break 3
  4335. done
  4336. done
  4337. done
  4338. IFS=$as_save_IFS
  4339. if test -z "$ac_cv_path_SED"; then
  4340. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4341. fi
  4342. else
  4343. ac_cv_path_SED=$SED
  4344. fi
  4345. fi
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4347. $as_echo "$ac_cv_path_SED" >&6; }
  4348. SED="$ac_cv_path_SED"
  4349. rm -f conftest.sed
  4350. test -z "$SED" && SED=sed
  4351. Xsed="$SED -e 1s/^X//"
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4353. $as_echo_n "checking for fgrep... " >&6; }
  4354. if ${ac_cv_path_FGREP+:} false; then :
  4355. $as_echo_n "(cached) " >&6
  4356. else
  4357. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4358. then ac_cv_path_FGREP="$GREP -F"
  4359. else
  4360. if test -z "$FGREP"; then
  4361. ac_path_FGREP_found=false
  4362. # Loop through the user's path and test for each of PROGNAME-LIST
  4363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4364. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4365. do
  4366. IFS=$as_save_IFS
  4367. test -z "$as_dir" && as_dir=.
  4368. for ac_prog in fgrep; do
  4369. for ac_exec_ext in '' $ac_executable_extensions; do
  4370. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4371. as_fn_executable_p "$ac_path_FGREP" || continue
  4372. # Check for GNU ac_path_FGREP and select it if it is found.
  4373. # Check for GNU $ac_path_FGREP
  4374. case `"$ac_path_FGREP" --version 2>&1` in
  4375. *GNU*)
  4376. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4377. *)
  4378. ac_count=0
  4379. $as_echo_n 0123456789 >"conftest.in"
  4380. while :
  4381. do
  4382. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4383. mv "conftest.tmp" "conftest.in"
  4384. cp "conftest.in" "conftest.nl"
  4385. $as_echo 'FGREP' >> "conftest.nl"
  4386. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4387. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4388. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4389. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4390. # Best one so far, save it but keep looking for a better one
  4391. ac_cv_path_FGREP="$ac_path_FGREP"
  4392. ac_path_FGREP_max=$ac_count
  4393. fi
  4394. # 10*(2^10) chars as input seems more than enough
  4395. test $ac_count -gt 10 && break
  4396. done
  4397. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4398. esac
  4399. $ac_path_FGREP_found && break 3
  4400. done
  4401. done
  4402. done
  4403. IFS=$as_save_IFS
  4404. if test -z "$ac_cv_path_FGREP"; then
  4405. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4406. fi
  4407. else
  4408. ac_cv_path_FGREP=$FGREP
  4409. fi
  4410. fi
  4411. fi
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4413. $as_echo "$ac_cv_path_FGREP" >&6; }
  4414. FGREP="$ac_cv_path_FGREP"
  4415. test -z "$GREP" && GREP=grep
  4416. # Check whether --with-gnu-ld was given.
  4417. if test "${with_gnu_ld+set}" = set; then :
  4418. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4419. else
  4420. with_gnu_ld=no
  4421. fi
  4422. ac_prog=ld
  4423. if test yes = "$GCC"; then
  4424. # Check if gcc -print-prog-name=ld gives a path.
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4426. $as_echo_n "checking for ld used by $CC... " >&6; }
  4427. case $host in
  4428. *-*-mingw*)
  4429. # gcc leaves a trailing carriage return, which upsets mingw
  4430. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4431. *)
  4432. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4433. esac
  4434. case $ac_prog in
  4435. # Accept absolute paths.
  4436. [\\/]* | ?:[\\/]*)
  4437. re_direlt='/[^/][^/]*/\.\./'
  4438. # Canonicalize the pathname of ld
  4439. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4440. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4441. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4442. done
  4443. test -z "$LD" && LD=$ac_prog
  4444. ;;
  4445. "")
  4446. # If it fails, then pretend we aren't using GCC.
  4447. ac_prog=ld
  4448. ;;
  4449. *)
  4450. # If it is relative, then search for the first ld in PATH.
  4451. with_gnu_ld=unknown
  4452. ;;
  4453. esac
  4454. elif test yes = "$with_gnu_ld"; then
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4456. $as_echo_n "checking for GNU ld... " >&6; }
  4457. else
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4459. $as_echo_n "checking for non-GNU ld... " >&6; }
  4460. fi
  4461. if ${lt_cv_path_LD+:} false; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -z "$LD"; then
  4465. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4466. for ac_dir in $PATH; do
  4467. IFS=$lt_save_ifs
  4468. test -z "$ac_dir" && ac_dir=.
  4469. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4470. lt_cv_path_LD=$ac_dir/$ac_prog
  4471. # Check to see if the program is GNU ld. I'd rather use --version,
  4472. # but apparently some variants of GNU ld only accept -v.
  4473. # Break only if it was the GNU/non-GNU ld that we prefer.
  4474. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4475. *GNU* | *'with BFD'*)
  4476. test no != "$with_gnu_ld" && break
  4477. ;;
  4478. *)
  4479. test yes != "$with_gnu_ld" && break
  4480. ;;
  4481. esac
  4482. fi
  4483. done
  4484. IFS=$lt_save_ifs
  4485. else
  4486. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4487. fi
  4488. fi
  4489. LD=$lt_cv_path_LD
  4490. if test -n "$LD"; then
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4492. $as_echo "$LD" >&6; }
  4493. else
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4495. $as_echo "no" >&6; }
  4496. fi
  4497. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4499. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4500. if ${lt_cv_prog_gnu_ld+:} false; then :
  4501. $as_echo_n "(cached) " >&6
  4502. else
  4503. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4504. case `$LD -v 2>&1 </dev/null` in
  4505. *GNU* | *'with BFD'*)
  4506. lt_cv_prog_gnu_ld=yes
  4507. ;;
  4508. *)
  4509. lt_cv_prog_gnu_ld=no
  4510. ;;
  4511. esac
  4512. fi
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4514. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4515. with_gnu_ld=$lt_cv_prog_gnu_ld
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4517. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4518. if ${lt_cv_path_NM+:} false; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. if test -n "$NM"; then
  4522. # Let the user override the test.
  4523. lt_cv_path_NM=$NM
  4524. else
  4525. lt_nm_to_check=${ac_tool_prefix}nm
  4526. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4527. lt_nm_to_check="$lt_nm_to_check nm"
  4528. fi
  4529. for lt_tmp_nm in $lt_nm_to_check; do
  4530. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4531. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4532. IFS=$lt_save_ifs
  4533. test -z "$ac_dir" && ac_dir=.
  4534. tmp_nm=$ac_dir/$lt_tmp_nm
  4535. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4536. # Check to see if the nm accepts a BSD-compat flag.
  4537. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4538. # nm: unknown option "B" ignored
  4539. # Tru64's nm complains that /dev/null is an invalid object file
  4540. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4541. case $build_os in
  4542. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4543. *) lt_bad_file=/dev/null ;;
  4544. esac
  4545. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4546. *$lt_bad_file* | *'Invalid file or object type'*)
  4547. lt_cv_path_NM="$tmp_nm -B"
  4548. break 2
  4549. ;;
  4550. *)
  4551. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4552. */dev/null*)
  4553. lt_cv_path_NM="$tmp_nm -p"
  4554. break 2
  4555. ;;
  4556. *)
  4557. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4558. continue # so that we can try to find one that supports BSD flags
  4559. ;;
  4560. esac
  4561. ;;
  4562. esac
  4563. fi
  4564. done
  4565. IFS=$lt_save_ifs
  4566. done
  4567. : ${lt_cv_path_NM=no}
  4568. fi
  4569. fi
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4571. $as_echo "$lt_cv_path_NM" >&6; }
  4572. if test no != "$lt_cv_path_NM"; then
  4573. NM=$lt_cv_path_NM
  4574. else
  4575. # Didn't find any BSD compatible name lister, look for dumpbin.
  4576. if test -n "$DUMPBIN"; then :
  4577. # Let the user override the test.
  4578. else
  4579. if test -n "$ac_tool_prefix"; then
  4580. for ac_prog in dumpbin "link -dump"
  4581. do
  4582. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4583. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4585. $as_echo_n "checking for $ac_word... " >&6; }
  4586. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. if test -n "$DUMPBIN"; then
  4590. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4591. else
  4592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4593. for as_dir in $PATH
  4594. do
  4595. IFS=$as_save_IFS
  4596. test -z "$as_dir" && as_dir=.
  4597. for ac_exec_ext in '' $ac_executable_extensions; do
  4598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4599. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4601. break 2
  4602. fi
  4603. done
  4604. done
  4605. IFS=$as_save_IFS
  4606. fi
  4607. fi
  4608. DUMPBIN=$ac_cv_prog_DUMPBIN
  4609. if test -n "$DUMPBIN"; then
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4611. $as_echo "$DUMPBIN" >&6; }
  4612. else
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4614. $as_echo "no" >&6; }
  4615. fi
  4616. test -n "$DUMPBIN" && break
  4617. done
  4618. fi
  4619. if test -z "$DUMPBIN"; then
  4620. ac_ct_DUMPBIN=$DUMPBIN
  4621. for ac_prog in dumpbin "link -dump"
  4622. do
  4623. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4624. set dummy $ac_prog; ac_word=$2
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4626. $as_echo_n "checking for $ac_word... " >&6; }
  4627. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. if test -n "$ac_ct_DUMPBIN"; then
  4631. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4632. else
  4633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4634. for as_dir in $PATH
  4635. do
  4636. IFS=$as_save_IFS
  4637. test -z "$as_dir" && as_dir=.
  4638. for ac_exec_ext in '' $ac_executable_extensions; do
  4639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4640. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4642. break 2
  4643. fi
  4644. done
  4645. done
  4646. IFS=$as_save_IFS
  4647. fi
  4648. fi
  4649. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4650. if test -n "$ac_ct_DUMPBIN"; then
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4652. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4653. else
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4655. $as_echo "no" >&6; }
  4656. fi
  4657. test -n "$ac_ct_DUMPBIN" && break
  4658. done
  4659. if test "x$ac_ct_DUMPBIN" = x; then
  4660. DUMPBIN=":"
  4661. else
  4662. case $cross_compiling:$ac_tool_warned in
  4663. yes:)
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4666. ac_tool_warned=yes ;;
  4667. esac
  4668. DUMPBIN=$ac_ct_DUMPBIN
  4669. fi
  4670. fi
  4671. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4672. *COFF*)
  4673. DUMPBIN="$DUMPBIN -symbols -headers"
  4674. ;;
  4675. *)
  4676. DUMPBIN=:
  4677. ;;
  4678. esac
  4679. fi
  4680. if test : != "$DUMPBIN"; then
  4681. NM=$DUMPBIN
  4682. fi
  4683. fi
  4684. test -z "$NM" && NM=nm
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4686. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4687. if ${lt_cv_nm_interface+:} false; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. lt_cv_nm_interface="BSD nm"
  4691. echo "int some_variable = 0;" > conftest.$ac_ext
  4692. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4693. (eval "$ac_compile" 2>conftest.err)
  4694. cat conftest.err >&5
  4695. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4696. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4697. cat conftest.err >&5
  4698. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4699. cat conftest.out >&5
  4700. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4701. lt_cv_nm_interface="MS dumpbin"
  4702. fi
  4703. rm -f conftest*
  4704. fi
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4706. $as_echo "$lt_cv_nm_interface" >&6; }
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4708. $as_echo_n "checking whether ln -s works... " >&6; }
  4709. LN_S=$as_ln_s
  4710. if test "$LN_S" = "ln -s"; then
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4712. $as_echo "yes" >&6; }
  4713. else
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4715. $as_echo "no, using $LN_S" >&6; }
  4716. fi
  4717. # find the maximum length of command line arguments
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4719. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4720. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4721. $as_echo_n "(cached) " >&6
  4722. else
  4723. i=0
  4724. teststring=ABCD
  4725. case $build_os in
  4726. msdosdjgpp*)
  4727. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4728. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4729. # during glob expansion). Even if it were fixed, the result of this
  4730. # check would be larger than it should be.
  4731. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4732. ;;
  4733. gnu*)
  4734. # Under GNU Hurd, this test is not required because there is
  4735. # no limit to the length of command line arguments.
  4736. # Libtool will interpret -1 as no limit whatsoever
  4737. lt_cv_sys_max_cmd_len=-1;
  4738. ;;
  4739. cygwin* | mingw* | cegcc*)
  4740. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4741. # about 5 minutes as the teststring grows exponentially.
  4742. # Worse, since 9x/ME are not pre-emptively multitasking,
  4743. # you end up with a "frozen" computer, even though with patience
  4744. # the test eventually succeeds (with a max line length of 256k).
  4745. # Instead, let's just punt: use the minimum linelength reported by
  4746. # all of the supported platforms: 8192 (on NT/2K/XP).
  4747. lt_cv_sys_max_cmd_len=8192;
  4748. ;;
  4749. mint*)
  4750. # On MiNT this can take a long time and run out of memory.
  4751. lt_cv_sys_max_cmd_len=8192;
  4752. ;;
  4753. amigaos*)
  4754. # On AmigaOS with pdksh, this test takes hours, literally.
  4755. # So we just punt and use a minimum line length of 8192.
  4756. lt_cv_sys_max_cmd_len=8192;
  4757. ;;
  4758. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4759. # This has been around since 386BSD, at least. Likely further.
  4760. if test -x /sbin/sysctl; then
  4761. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4762. elif test -x /usr/sbin/sysctl; then
  4763. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4764. else
  4765. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4766. fi
  4767. # And add a safety zone
  4768. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4769. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4770. ;;
  4771. interix*)
  4772. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4773. lt_cv_sys_max_cmd_len=196608
  4774. ;;
  4775. os2*)
  4776. # The test takes a long time on OS/2.
  4777. lt_cv_sys_max_cmd_len=8192
  4778. ;;
  4779. osf*)
  4780. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4781. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4782. # nice to cause kernel panics so lets avoid the loop below.
  4783. # First set a reasonable default.
  4784. lt_cv_sys_max_cmd_len=16384
  4785. #
  4786. if test -x /sbin/sysconfig; then
  4787. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4788. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4789. esac
  4790. fi
  4791. ;;
  4792. sco3.2v5*)
  4793. lt_cv_sys_max_cmd_len=102400
  4794. ;;
  4795. sysv5* | sco5v6* | sysv4.2uw2*)
  4796. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4797. if test -n "$kargmax"; then
  4798. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4799. else
  4800. lt_cv_sys_max_cmd_len=32768
  4801. fi
  4802. ;;
  4803. *)
  4804. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4805. if test -n "$lt_cv_sys_max_cmd_len" && \
  4806. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4807. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4808. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4809. else
  4810. # Make teststring a little bigger before we do anything with it.
  4811. # a 1K string should be a reasonable start.
  4812. for i in 1 2 3 4 5 6 7 8; do
  4813. teststring=$teststring$teststring
  4814. done
  4815. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4816. # If test is not a shell built-in, we'll probably end up computing a
  4817. # maximum length that is only half of the actual maximum length, but
  4818. # we can't tell.
  4819. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4820. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4821. test 17 != "$i" # 1/2 MB should be enough
  4822. do
  4823. i=`expr $i + 1`
  4824. teststring=$teststring$teststring
  4825. done
  4826. # Only check the string length outside the loop.
  4827. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4828. teststring=
  4829. # Add a significant safety factor because C++ compilers can tack on
  4830. # massive amounts of additional arguments before passing them to the
  4831. # linker. It appears as though 1/2 is a usable value.
  4832. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4833. fi
  4834. ;;
  4835. esac
  4836. fi
  4837. if test -n "$lt_cv_sys_max_cmd_len"; then
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4839. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4840. else
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4842. $as_echo "none" >&6; }
  4843. fi
  4844. max_cmd_len=$lt_cv_sys_max_cmd_len
  4845. : ${CP="cp -f"}
  4846. : ${MV="mv -f"}
  4847. : ${RM="rm -f"}
  4848. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4849. lt_unset=unset
  4850. else
  4851. lt_unset=false
  4852. fi
  4853. # test EBCDIC or ASCII
  4854. case `echo X|tr X '\101'` in
  4855. A) # ASCII based system
  4856. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4857. lt_SP2NL='tr \040 \012'
  4858. lt_NL2SP='tr \015\012 \040\040'
  4859. ;;
  4860. *) # EBCDIC based system
  4861. lt_SP2NL='tr \100 \n'
  4862. lt_NL2SP='tr \r\n \100\100'
  4863. ;;
  4864. esac
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4866. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4867. if ${lt_cv_to_host_file_cmd+:} false; then :
  4868. $as_echo_n "(cached) " >&6
  4869. else
  4870. case $host in
  4871. *-*-mingw* )
  4872. case $build in
  4873. *-*-mingw* ) # actually msys
  4874. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4875. ;;
  4876. *-*-cygwin* )
  4877. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4878. ;;
  4879. * ) # otherwise, assume *nix
  4880. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4881. ;;
  4882. esac
  4883. ;;
  4884. *-*-cygwin* )
  4885. case $build in
  4886. *-*-mingw* ) # actually msys
  4887. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4888. ;;
  4889. *-*-cygwin* )
  4890. lt_cv_to_host_file_cmd=func_convert_file_noop
  4891. ;;
  4892. * ) # otherwise, assume *nix
  4893. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4894. ;;
  4895. esac
  4896. ;;
  4897. * ) # unhandled hosts (and "normal" native builds)
  4898. lt_cv_to_host_file_cmd=func_convert_file_noop
  4899. ;;
  4900. esac
  4901. fi
  4902. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4904. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4906. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4907. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. #assume ordinary cross tools, or native build.
  4911. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4912. case $host in
  4913. *-*-mingw* )
  4914. case $build in
  4915. *-*-mingw* ) # actually msys
  4916. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4917. ;;
  4918. esac
  4919. ;;
  4920. esac
  4921. fi
  4922. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4924. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4926. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4927. if ${lt_cv_ld_reload_flag+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. lt_cv_ld_reload_flag='-r'
  4931. fi
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4933. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4934. reload_flag=$lt_cv_ld_reload_flag
  4935. case $reload_flag in
  4936. "" | " "*) ;;
  4937. *) reload_flag=" $reload_flag" ;;
  4938. esac
  4939. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4940. case $host_os in
  4941. cygwin* | mingw* | pw32* | cegcc*)
  4942. if test yes != "$GCC"; then
  4943. reload_cmds=false
  4944. fi
  4945. ;;
  4946. darwin*)
  4947. if test yes = "$GCC"; then
  4948. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4949. else
  4950. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4951. fi
  4952. ;;
  4953. esac
  4954. if test -n "$ac_tool_prefix"; then
  4955. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4956. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4958. $as_echo_n "checking for $ac_word... " >&6; }
  4959. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. if test -n "$OBJDUMP"; then
  4963. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4964. else
  4965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4966. for as_dir in $PATH
  4967. do
  4968. IFS=$as_save_IFS
  4969. test -z "$as_dir" && as_dir=.
  4970. for ac_exec_ext in '' $ac_executable_extensions; do
  4971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4972. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4974. break 2
  4975. fi
  4976. done
  4977. done
  4978. IFS=$as_save_IFS
  4979. fi
  4980. fi
  4981. OBJDUMP=$ac_cv_prog_OBJDUMP
  4982. if test -n "$OBJDUMP"; then
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4984. $as_echo "$OBJDUMP" >&6; }
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4987. $as_echo "no" >&6; }
  4988. fi
  4989. fi
  4990. if test -z "$ac_cv_prog_OBJDUMP"; then
  4991. ac_ct_OBJDUMP=$OBJDUMP
  4992. # Extract the first word of "objdump", so it can be a program name with args.
  4993. set dummy objdump; ac_word=$2
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4995. $as_echo_n "checking for $ac_word... " >&6; }
  4996. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. if test -n "$ac_ct_OBJDUMP"; then
  5000. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5001. else
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. test -z "$as_dir" && as_dir=.
  5007. for ac_exec_ext in '' $ac_executable_extensions; do
  5008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5009. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5011. break 2
  5012. fi
  5013. done
  5014. done
  5015. IFS=$as_save_IFS
  5016. fi
  5017. fi
  5018. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5019. if test -n "$ac_ct_OBJDUMP"; then
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5021. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5022. else
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5024. $as_echo "no" >&6; }
  5025. fi
  5026. if test "x$ac_ct_OBJDUMP" = x; then
  5027. OBJDUMP="false"
  5028. else
  5029. case $cross_compiling:$ac_tool_warned in
  5030. yes:)
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5032. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5033. ac_tool_warned=yes ;;
  5034. esac
  5035. OBJDUMP=$ac_ct_OBJDUMP
  5036. fi
  5037. else
  5038. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5039. fi
  5040. test -z "$OBJDUMP" && OBJDUMP=objdump
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5042. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5043. if ${lt_cv_deplibs_check_method+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5047. lt_cv_file_magic_test_file=
  5048. lt_cv_deplibs_check_method='unknown'
  5049. # Need to set the preceding variable on all platforms that support
  5050. # interlibrary dependencies.
  5051. # 'none' -- dependencies not supported.
  5052. # 'unknown' -- same as none, but documents that we really don't know.
  5053. # 'pass_all' -- all dependencies passed with no checks.
  5054. # 'test_compile' -- check by making test program.
  5055. # 'file_magic [[regex]]' -- check by looking for files in library path
  5056. # that responds to the $file_magic_cmd with a given extended regex.
  5057. # If you have 'file' or equivalent on your system and you're not sure
  5058. # whether 'pass_all' will *always* work, you probably want this one.
  5059. case $host_os in
  5060. aix[4-9]*)
  5061. lt_cv_deplibs_check_method=pass_all
  5062. ;;
  5063. beos*)
  5064. lt_cv_deplibs_check_method=pass_all
  5065. ;;
  5066. bsdi[45]*)
  5067. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5068. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5069. lt_cv_file_magic_test_file=/shlib/libc.so
  5070. ;;
  5071. cygwin*)
  5072. # func_win32_libid is a shell function defined in ltmain.sh
  5073. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5074. lt_cv_file_magic_cmd='func_win32_libid'
  5075. ;;
  5076. mingw* | pw32*)
  5077. # Base MSYS/MinGW do not provide the 'file' command needed by
  5078. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5079. # unless we find 'file', for example because we are cross-compiling.
  5080. if ( file / ) >/dev/null 2>&1; then
  5081. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5082. lt_cv_file_magic_cmd='func_win32_libid'
  5083. else
  5084. # Keep this pattern in sync with the one in func_win32_libid.
  5085. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5086. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5087. fi
  5088. ;;
  5089. cegcc*)
  5090. # use the weaker test based on 'objdump'. See mingw*.
  5091. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5092. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5093. ;;
  5094. darwin* | rhapsody*)
  5095. lt_cv_deplibs_check_method=pass_all
  5096. ;;
  5097. freebsd* | dragonfly*)
  5098. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5099. case $host_cpu in
  5100. i*86 )
  5101. # Not sure whether the presence of OpenBSD here was a mistake.
  5102. # Let's accept both of them until this is cleared up.
  5103. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5104. lt_cv_file_magic_cmd=/usr/bin/file
  5105. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5106. ;;
  5107. esac
  5108. else
  5109. lt_cv_deplibs_check_method=pass_all
  5110. fi
  5111. ;;
  5112. haiku*)
  5113. lt_cv_deplibs_check_method=pass_all
  5114. ;;
  5115. hpux10.20* | hpux11*)
  5116. lt_cv_file_magic_cmd=/usr/bin/file
  5117. case $host_cpu in
  5118. ia64*)
  5119. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5120. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5121. ;;
  5122. hppa*64*)
  5123. 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]'
  5124. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5125. ;;
  5126. *)
  5127. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5128. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5129. ;;
  5130. esac
  5131. ;;
  5132. interix[3-9]*)
  5133. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5134. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5135. ;;
  5136. irix5* | irix6* | nonstopux*)
  5137. case $LD in
  5138. *-32|*"-32 ") libmagic=32-bit;;
  5139. *-n32|*"-n32 ") libmagic=N32;;
  5140. *-64|*"-64 ") libmagic=64-bit;;
  5141. *) libmagic=never-match;;
  5142. esac
  5143. lt_cv_deplibs_check_method=pass_all
  5144. ;;
  5145. # This must be glibc/ELF.
  5146. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149. netbsd*)
  5150. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5151. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5152. else
  5153. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5154. fi
  5155. ;;
  5156. newos6*)
  5157. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5158. lt_cv_file_magic_cmd=/usr/bin/file
  5159. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5160. ;;
  5161. *nto* | *qnx*)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. openbsd* | bitrig*)
  5165. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5166. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5167. else
  5168. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5169. fi
  5170. ;;
  5171. osf3* | osf4* | osf5*)
  5172. lt_cv_deplibs_check_method=pass_all
  5173. ;;
  5174. rdos*)
  5175. lt_cv_deplibs_check_method=pass_all
  5176. ;;
  5177. solaris*)
  5178. lt_cv_deplibs_check_method=pass_all
  5179. ;;
  5180. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5181. lt_cv_deplibs_check_method=pass_all
  5182. ;;
  5183. sysv4 | sysv4.3*)
  5184. case $host_vendor in
  5185. motorola)
  5186. 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]'
  5187. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5188. ;;
  5189. ncr)
  5190. lt_cv_deplibs_check_method=pass_all
  5191. ;;
  5192. sequent)
  5193. lt_cv_file_magic_cmd='/bin/file'
  5194. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5195. ;;
  5196. sni)
  5197. lt_cv_file_magic_cmd='/bin/file'
  5198. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5199. lt_cv_file_magic_test_file=/lib/libc.so
  5200. ;;
  5201. siemens)
  5202. lt_cv_deplibs_check_method=pass_all
  5203. ;;
  5204. pc)
  5205. lt_cv_deplibs_check_method=pass_all
  5206. ;;
  5207. esac
  5208. ;;
  5209. tpf*)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. os2*)
  5213. lt_cv_deplibs_check_method=pass_all
  5214. ;;
  5215. esac
  5216. fi
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5218. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5219. file_magic_glob=
  5220. want_nocaseglob=no
  5221. if test "$build" = "$host"; then
  5222. case $host_os in
  5223. mingw* | pw32*)
  5224. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5225. want_nocaseglob=yes
  5226. else
  5227. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5228. fi
  5229. ;;
  5230. esac
  5231. fi
  5232. file_magic_cmd=$lt_cv_file_magic_cmd
  5233. deplibs_check_method=$lt_cv_deplibs_check_method
  5234. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5235. if test -n "$ac_tool_prefix"; then
  5236. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5237. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5239. $as_echo_n "checking for $ac_word... " >&6; }
  5240. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5241. $as_echo_n "(cached) " >&6
  5242. else
  5243. if test -n "$DLLTOOL"; then
  5244. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5245. else
  5246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5247. for as_dir in $PATH
  5248. do
  5249. IFS=$as_save_IFS
  5250. test -z "$as_dir" && as_dir=.
  5251. for ac_exec_ext in '' $ac_executable_extensions; do
  5252. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5253. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5254. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5255. break 2
  5256. fi
  5257. done
  5258. done
  5259. IFS=$as_save_IFS
  5260. fi
  5261. fi
  5262. DLLTOOL=$ac_cv_prog_DLLTOOL
  5263. if test -n "$DLLTOOL"; then
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5265. $as_echo "$DLLTOOL" >&6; }
  5266. else
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5268. $as_echo "no" >&6; }
  5269. fi
  5270. fi
  5271. if test -z "$ac_cv_prog_DLLTOOL"; then
  5272. ac_ct_DLLTOOL=$DLLTOOL
  5273. # Extract the first word of "dlltool", so it can be a program name with args.
  5274. set dummy dlltool; ac_word=$2
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5276. $as_echo_n "checking for $ac_word... " >&6; }
  5277. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5278. $as_echo_n "(cached) " >&6
  5279. else
  5280. if test -n "$ac_ct_DLLTOOL"; then
  5281. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5282. else
  5283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5284. for as_dir in $PATH
  5285. do
  5286. IFS=$as_save_IFS
  5287. test -z "$as_dir" && as_dir=.
  5288. for ac_exec_ext in '' $ac_executable_extensions; do
  5289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5290. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5292. break 2
  5293. fi
  5294. done
  5295. done
  5296. IFS=$as_save_IFS
  5297. fi
  5298. fi
  5299. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5300. if test -n "$ac_ct_DLLTOOL"; then
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5302. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5303. else
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5305. $as_echo "no" >&6; }
  5306. fi
  5307. if test "x$ac_ct_DLLTOOL" = x; then
  5308. DLLTOOL="false"
  5309. else
  5310. case $cross_compiling:$ac_tool_warned in
  5311. yes:)
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5313. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5314. ac_tool_warned=yes ;;
  5315. esac
  5316. DLLTOOL=$ac_ct_DLLTOOL
  5317. fi
  5318. else
  5319. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5320. fi
  5321. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5323. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5324. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5325. $as_echo_n "(cached) " >&6
  5326. else
  5327. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5328. case $host_os in
  5329. cygwin* | mingw* | pw32* | cegcc*)
  5330. # two different shell functions defined in ltmain.sh;
  5331. # decide which one to use based on capabilities of $DLLTOOL
  5332. case `$DLLTOOL --help 2>&1` in
  5333. *--identify-strict*)
  5334. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5335. ;;
  5336. *)
  5337. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5338. ;;
  5339. esac
  5340. ;;
  5341. *)
  5342. # fallback: assume linklib IS sharedlib
  5343. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5344. ;;
  5345. esac
  5346. fi
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5348. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5349. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5350. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5351. if test -n "$ac_tool_prefix"; then
  5352. for ac_prog in ar
  5353. do
  5354. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5355. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5357. $as_echo_n "checking for $ac_word... " >&6; }
  5358. if ${ac_cv_prog_AR+:} false; then :
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. if test -n "$AR"; then
  5362. ac_cv_prog_AR="$AR" # Let the user override the test.
  5363. else
  5364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5365. for as_dir in $PATH
  5366. do
  5367. IFS=$as_save_IFS
  5368. test -z "$as_dir" && as_dir=.
  5369. for ac_exec_ext in '' $ac_executable_extensions; do
  5370. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5371. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5373. break 2
  5374. fi
  5375. done
  5376. done
  5377. IFS=$as_save_IFS
  5378. fi
  5379. fi
  5380. AR=$ac_cv_prog_AR
  5381. if test -n "$AR"; then
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5383. $as_echo "$AR" >&6; }
  5384. else
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5386. $as_echo "no" >&6; }
  5387. fi
  5388. test -n "$AR" && break
  5389. done
  5390. fi
  5391. if test -z "$AR"; then
  5392. ac_ct_AR=$AR
  5393. for ac_prog in ar
  5394. do
  5395. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5396. set dummy $ac_prog; ac_word=$2
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5398. $as_echo_n "checking for $ac_word... " >&6; }
  5399. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5400. $as_echo_n "(cached) " >&6
  5401. else
  5402. if test -n "$ac_ct_AR"; then
  5403. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5404. else
  5405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5406. for as_dir in $PATH
  5407. do
  5408. IFS=$as_save_IFS
  5409. test -z "$as_dir" && as_dir=.
  5410. for ac_exec_ext in '' $ac_executable_extensions; do
  5411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5412. ac_cv_prog_ac_ct_AR="$ac_prog"
  5413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5414. break 2
  5415. fi
  5416. done
  5417. done
  5418. IFS=$as_save_IFS
  5419. fi
  5420. fi
  5421. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5422. if test -n "$ac_ct_AR"; then
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5424. $as_echo "$ac_ct_AR" >&6; }
  5425. else
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5427. $as_echo "no" >&6; }
  5428. fi
  5429. test -n "$ac_ct_AR" && break
  5430. done
  5431. if test "x$ac_ct_AR" = x; then
  5432. AR="false"
  5433. else
  5434. case $cross_compiling:$ac_tool_warned in
  5435. yes:)
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5438. ac_tool_warned=yes ;;
  5439. esac
  5440. AR=$ac_ct_AR
  5441. fi
  5442. fi
  5443. : ${AR=ar}
  5444. : ${AR_FLAGS=cru}
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5446. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5447. if ${lt_cv_ar_at_file+:} false; then :
  5448. $as_echo_n "(cached) " >&6
  5449. else
  5450. lt_cv_ar_at_file=no
  5451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5452. /* end confdefs.h. */
  5453. int
  5454. main ()
  5455. {
  5456. ;
  5457. return 0;
  5458. }
  5459. _ACEOF
  5460. if ac_fn_c_try_compile "$LINENO"; then :
  5461. echo conftest.$ac_objext > conftest.lst
  5462. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5463. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5464. (eval $lt_ar_try) 2>&5
  5465. ac_status=$?
  5466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5467. test $ac_status = 0; }
  5468. if test 0 -eq "$ac_status"; then
  5469. # Ensure the archiver fails upon bogus file names.
  5470. rm -f conftest.$ac_objext libconftest.a
  5471. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5472. (eval $lt_ar_try) 2>&5
  5473. ac_status=$?
  5474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5475. test $ac_status = 0; }
  5476. if test 0 -ne "$ac_status"; then
  5477. lt_cv_ar_at_file=@
  5478. fi
  5479. fi
  5480. rm -f conftest.* libconftest.a
  5481. fi
  5482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5483. fi
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5485. $as_echo "$lt_cv_ar_at_file" >&6; }
  5486. if test no = "$lt_cv_ar_at_file"; then
  5487. archiver_list_spec=
  5488. else
  5489. archiver_list_spec=$lt_cv_ar_at_file
  5490. fi
  5491. if test -n "$ac_tool_prefix"; then
  5492. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5493. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_STRIP+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$STRIP"; then
  5500. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5509. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. STRIP=$ac_cv_prog_STRIP
  5519. if test -n "$STRIP"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5521. $as_echo "$STRIP" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. fi
  5527. if test -z "$ac_cv_prog_STRIP"; then
  5528. ac_ct_STRIP=$STRIP
  5529. # Extract the first word of "strip", so it can be a program name with args.
  5530. set dummy strip; ac_word=$2
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5532. $as_echo_n "checking for $ac_word... " >&6; }
  5533. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. if test -n "$ac_ct_STRIP"; then
  5537. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5538. else
  5539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540. for as_dir in $PATH
  5541. do
  5542. IFS=$as_save_IFS
  5543. test -z "$as_dir" && as_dir=.
  5544. for ac_exec_ext in '' $ac_executable_extensions; do
  5545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5546. ac_cv_prog_ac_ct_STRIP="strip"
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5548. break 2
  5549. fi
  5550. done
  5551. done
  5552. IFS=$as_save_IFS
  5553. fi
  5554. fi
  5555. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5556. if test -n "$ac_ct_STRIP"; then
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5558. $as_echo "$ac_ct_STRIP" >&6; }
  5559. else
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5561. $as_echo "no" >&6; }
  5562. fi
  5563. if test "x$ac_ct_STRIP" = x; then
  5564. STRIP=":"
  5565. else
  5566. case $cross_compiling:$ac_tool_warned in
  5567. yes:)
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5570. ac_tool_warned=yes ;;
  5571. esac
  5572. STRIP=$ac_ct_STRIP
  5573. fi
  5574. else
  5575. STRIP="$ac_cv_prog_STRIP"
  5576. fi
  5577. test -z "$STRIP" && STRIP=:
  5578. if test -n "$ac_tool_prefix"; then
  5579. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5580. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5582. $as_echo_n "checking for $ac_word... " >&6; }
  5583. if ${ac_cv_prog_RANLIB+:} false; then :
  5584. $as_echo_n "(cached) " >&6
  5585. else
  5586. if test -n "$RANLIB"; then
  5587. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5588. else
  5589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5590. for as_dir in $PATH
  5591. do
  5592. IFS=$as_save_IFS
  5593. test -z "$as_dir" && as_dir=.
  5594. for ac_exec_ext in '' $ac_executable_extensions; do
  5595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5596. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5598. break 2
  5599. fi
  5600. done
  5601. done
  5602. IFS=$as_save_IFS
  5603. fi
  5604. fi
  5605. RANLIB=$ac_cv_prog_RANLIB
  5606. if test -n "$RANLIB"; then
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5608. $as_echo "$RANLIB" >&6; }
  5609. else
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5611. $as_echo "no" >&6; }
  5612. fi
  5613. fi
  5614. if test -z "$ac_cv_prog_RANLIB"; then
  5615. ac_ct_RANLIB=$RANLIB
  5616. # Extract the first word of "ranlib", so it can be a program name with args.
  5617. set dummy ranlib; ac_word=$2
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5619. $as_echo_n "checking for $ac_word... " >&6; }
  5620. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5621. $as_echo_n "(cached) " >&6
  5622. else
  5623. if test -n "$ac_ct_RANLIB"; then
  5624. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5625. else
  5626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5627. for as_dir in $PATH
  5628. do
  5629. IFS=$as_save_IFS
  5630. test -z "$as_dir" && as_dir=.
  5631. for ac_exec_ext in '' $ac_executable_extensions; do
  5632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5633. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5635. break 2
  5636. fi
  5637. done
  5638. done
  5639. IFS=$as_save_IFS
  5640. fi
  5641. fi
  5642. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5643. if test -n "$ac_ct_RANLIB"; then
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5645. $as_echo "$ac_ct_RANLIB" >&6; }
  5646. else
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5648. $as_echo "no" >&6; }
  5649. fi
  5650. if test "x$ac_ct_RANLIB" = x; then
  5651. RANLIB=":"
  5652. else
  5653. case $cross_compiling:$ac_tool_warned in
  5654. yes:)
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5656. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5657. ac_tool_warned=yes ;;
  5658. esac
  5659. RANLIB=$ac_ct_RANLIB
  5660. fi
  5661. else
  5662. RANLIB="$ac_cv_prog_RANLIB"
  5663. fi
  5664. test -z "$RANLIB" && RANLIB=:
  5665. # Determine commands to create old-style static archives.
  5666. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5667. old_postinstall_cmds='chmod 644 $oldlib'
  5668. old_postuninstall_cmds=
  5669. if test -n "$RANLIB"; then
  5670. case $host_os in
  5671. bitrig* | openbsd*)
  5672. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5673. ;;
  5674. *)
  5675. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5676. ;;
  5677. esac
  5678. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5679. fi
  5680. case $host_os in
  5681. darwin*)
  5682. lock_old_archive_extraction=yes ;;
  5683. *)
  5684. lock_old_archive_extraction=no ;;
  5685. esac
  5686. # If no C compiler was specified, use CC.
  5687. LTCC=${LTCC-"$CC"}
  5688. # If no C compiler flags were specified, use CFLAGS.
  5689. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5690. # Allow CC to be a program name with arguments.
  5691. compiler=$CC
  5692. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5694. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5695. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. # These are sane defaults that work on at least a few old systems.
  5699. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5700. # Character class describing NM global symbol codes.
  5701. symcode='[BCDEGRST]'
  5702. # Regexp to match symbols that can be accessed directly from C.
  5703. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5704. # Define system-specific variables.
  5705. case $host_os in
  5706. aix*)
  5707. symcode='[BCDT]'
  5708. ;;
  5709. cygwin* | mingw* | pw32* | cegcc*)
  5710. symcode='[ABCDGISTW]'
  5711. ;;
  5712. hpux*)
  5713. if test ia64 = "$host_cpu"; then
  5714. symcode='[ABCDEGRST]'
  5715. fi
  5716. ;;
  5717. irix* | nonstopux*)
  5718. symcode='[BCDEGRST]'
  5719. ;;
  5720. osf*)
  5721. symcode='[BCDEGQRST]'
  5722. ;;
  5723. solaris*)
  5724. symcode='[BDRT]'
  5725. ;;
  5726. sco3.2v5*)
  5727. symcode='[DT]'
  5728. ;;
  5729. sysv4.2uw2*)
  5730. symcode='[DT]'
  5731. ;;
  5732. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5733. symcode='[ABDT]'
  5734. ;;
  5735. sysv4)
  5736. symcode='[DFNSTU]'
  5737. ;;
  5738. esac
  5739. # If we're using GNU nm, then use its standard symbol codes.
  5740. case `$NM -V 2>&1` in
  5741. *GNU* | *'with BFD'*)
  5742. symcode='[ABCDGIRSTW]' ;;
  5743. esac
  5744. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5745. # Gets list of data symbols to import.
  5746. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5747. # Adjust the below global symbol transforms to fixup imported variables.
  5748. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5749. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5750. lt_c_name_lib_hook="\
  5751. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5752. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5753. else
  5754. # Disable hooks by default.
  5755. lt_cv_sys_global_symbol_to_import=
  5756. lt_cdecl_hook=
  5757. lt_c_name_hook=
  5758. lt_c_name_lib_hook=
  5759. fi
  5760. # Transform an extracted symbol line into a proper C declaration.
  5761. # Some systems (esp. on ia64) link data and code symbols differently,
  5762. # so use this general approach.
  5763. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5764. $lt_cdecl_hook\
  5765. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5766. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5767. # Transform an extracted symbol line into symbol name and symbol address
  5768. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5769. $lt_c_name_hook\
  5770. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5771. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5772. # Transform an extracted symbol line into symbol name with lib prefix and
  5773. # symbol address.
  5774. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5775. $lt_c_name_lib_hook\
  5776. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5777. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5778. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5779. # Handle CRLF in mingw tool chain
  5780. opt_cr=
  5781. case $build_os in
  5782. mingw*)
  5783. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5784. ;;
  5785. esac
  5786. # Try without a prefix underscore, then with it.
  5787. for ac_symprfx in "" "_"; do
  5788. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5789. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5790. # Write the raw and C identifiers.
  5791. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5792. # Fake it for dumpbin and say T for any non-static function,
  5793. # D for any global variable and I for any imported variable.
  5794. # Also find C++ and __fastcall symbols from MSVC++,
  5795. # which start with @ or ?.
  5796. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5797. " {last_section=section; section=\$ 3};"\
  5798. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5799. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5800. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5801. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5802. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5803. " \$ 0!~/External *\|/{next};"\
  5804. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5805. " {if(hide[section]) next};"\
  5806. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5807. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5808. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5809. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5810. " ' prfx=^$ac_symprfx"
  5811. else
  5812. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5813. fi
  5814. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5815. # Check to see that the pipe works correctly.
  5816. pipe_works=no
  5817. rm -f conftest*
  5818. cat > conftest.$ac_ext <<_LT_EOF
  5819. #ifdef __cplusplus
  5820. extern "C" {
  5821. #endif
  5822. char nm_test_var;
  5823. void nm_test_func(void);
  5824. void nm_test_func(void){}
  5825. #ifdef __cplusplus
  5826. }
  5827. #endif
  5828. int main(){nm_test_var='a';nm_test_func();return(0);}
  5829. _LT_EOF
  5830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5831. (eval $ac_compile) 2>&5
  5832. ac_status=$?
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5834. test $ac_status = 0; }; then
  5835. # Now try to grab the symbols.
  5836. nlist=conftest.nm
  5837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5838. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5839. ac_status=$?
  5840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5841. test $ac_status = 0; } && test -s "$nlist"; then
  5842. # Try sorting and uniquifying the output.
  5843. if sort "$nlist" | uniq > "$nlist"T; then
  5844. mv -f "$nlist"T "$nlist"
  5845. else
  5846. rm -f "$nlist"T
  5847. fi
  5848. # Make sure that we snagged all the symbols we need.
  5849. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5850. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5851. cat <<_LT_EOF > conftest.$ac_ext
  5852. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5853. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5854. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5855. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5856. # define LT_DLSYM_CONST
  5857. #elif defined __osf__
  5858. /* This system does not cope well with relocations in const data. */
  5859. # define LT_DLSYM_CONST
  5860. #else
  5861. # define LT_DLSYM_CONST const
  5862. #endif
  5863. #ifdef __cplusplus
  5864. extern "C" {
  5865. #endif
  5866. _LT_EOF
  5867. # Now generate the symbol file.
  5868. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5869. cat <<_LT_EOF >> conftest.$ac_ext
  5870. /* The mapping between symbol names and symbols. */
  5871. LT_DLSYM_CONST struct {
  5872. const char *name;
  5873. void *address;
  5874. }
  5875. lt__PROGRAM__LTX_preloaded_symbols[] =
  5876. {
  5877. { "@PROGRAM@", (void *) 0 },
  5878. _LT_EOF
  5879. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5880. cat <<\_LT_EOF >> conftest.$ac_ext
  5881. {0, (void *) 0}
  5882. };
  5883. /* This works around a problem in FreeBSD linker */
  5884. #ifdef FREEBSD_WORKAROUND
  5885. static const void *lt_preloaded_setup() {
  5886. return lt__PROGRAM__LTX_preloaded_symbols;
  5887. }
  5888. #endif
  5889. #ifdef __cplusplus
  5890. }
  5891. #endif
  5892. _LT_EOF
  5893. # Now try linking the two files.
  5894. mv conftest.$ac_objext conftstm.$ac_objext
  5895. lt_globsym_save_LIBS=$LIBS
  5896. lt_globsym_save_CFLAGS=$CFLAGS
  5897. LIBS=conftstm.$ac_objext
  5898. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5900. (eval $ac_link) 2>&5
  5901. ac_status=$?
  5902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5903. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5904. pipe_works=yes
  5905. fi
  5906. LIBS=$lt_globsym_save_LIBS
  5907. CFLAGS=$lt_globsym_save_CFLAGS
  5908. else
  5909. echo "cannot find nm_test_func in $nlist" >&5
  5910. fi
  5911. else
  5912. echo "cannot find nm_test_var in $nlist" >&5
  5913. fi
  5914. else
  5915. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5916. fi
  5917. else
  5918. echo "$progname: failed program was:" >&5
  5919. cat conftest.$ac_ext >&5
  5920. fi
  5921. rm -rf conftest* conftst*
  5922. # Do not use the global_symbol_pipe unless it works.
  5923. if test yes = "$pipe_works"; then
  5924. break
  5925. else
  5926. lt_cv_sys_global_symbol_pipe=
  5927. fi
  5928. done
  5929. fi
  5930. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5931. lt_cv_sys_global_symbol_to_cdecl=
  5932. fi
  5933. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5935. $as_echo "failed" >&6; }
  5936. else
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5938. $as_echo "ok" >&6; }
  5939. fi
  5940. # Response file support.
  5941. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5942. nm_file_list_spec='@'
  5943. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5944. nm_file_list_spec='@'
  5945. fi
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5947. $as_echo_n "checking for sysroot... " >&6; }
  5948. # Check whether --with-sysroot was given.
  5949. if test "${with_sysroot+set}" = set; then :
  5950. withval=$with_sysroot;
  5951. else
  5952. with_sysroot=no
  5953. fi
  5954. lt_sysroot=
  5955. case $with_sysroot in #(
  5956. yes)
  5957. if test yes = "$GCC"; then
  5958. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5959. fi
  5960. ;; #(
  5961. /*)
  5962. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5963. ;; #(
  5964. no|'')
  5965. ;; #(
  5966. *)
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5968. $as_echo "$with_sysroot" >&6; }
  5969. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5970. ;;
  5971. esac
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5973. $as_echo "${lt_sysroot:-no}" >&6; }
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5975. $as_echo_n "checking for a working dd... " >&6; }
  5976. if ${ac_cv_path_lt_DD+:} false; then :
  5977. $as_echo_n "(cached) " >&6
  5978. else
  5979. printf 0123456789abcdef0123456789abcdef >conftest.i
  5980. cat conftest.i conftest.i >conftest2.i
  5981. : ${lt_DD:=$DD}
  5982. if test -z "$lt_DD"; then
  5983. ac_path_lt_DD_found=false
  5984. # Loop through the user's path and test for each of PROGNAME-LIST
  5985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5986. for as_dir in $PATH
  5987. do
  5988. IFS=$as_save_IFS
  5989. test -z "$as_dir" && as_dir=.
  5990. for ac_prog in dd; do
  5991. for ac_exec_ext in '' $ac_executable_extensions; do
  5992. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5993. as_fn_executable_p "$ac_path_lt_DD" || continue
  5994. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5995. cmp -s conftest.i conftest.out \
  5996. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5997. fi
  5998. $ac_path_lt_DD_found && break 3
  5999. done
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. if test -z "$ac_cv_path_lt_DD"; then
  6004. :
  6005. fi
  6006. else
  6007. ac_cv_path_lt_DD=$lt_DD
  6008. fi
  6009. rm -f conftest.i conftest2.i conftest.out
  6010. fi
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6012. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6014. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6015. if ${lt_cv_truncate_bin+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. printf 0123456789abcdef0123456789abcdef >conftest.i
  6019. cat conftest.i conftest.i >conftest2.i
  6020. lt_cv_truncate_bin=
  6021. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6022. cmp -s conftest.i conftest.out \
  6023. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6024. fi
  6025. rm -f conftest.i conftest2.i conftest.out
  6026. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6027. fi
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6029. $as_echo "$lt_cv_truncate_bin" >&6; }
  6030. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6031. func_cc_basename ()
  6032. {
  6033. for cc_temp in $*""; do
  6034. case $cc_temp in
  6035. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6036. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6037. \-*) ;;
  6038. *) break;;
  6039. esac
  6040. done
  6041. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6042. }
  6043. # Check whether --enable-libtool-lock was given.
  6044. if test "${enable_libtool_lock+set}" = set; then :
  6045. enableval=$enable_libtool_lock;
  6046. fi
  6047. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6048. # Some flags need to be propagated to the compiler or linker for good
  6049. # libtool support.
  6050. case $host in
  6051. ia64-*-hpux*)
  6052. # Find out what ABI is being produced by ac_compile, and set mode
  6053. # options accordingly.
  6054. echo 'int i;' > conftest.$ac_ext
  6055. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6056. (eval $ac_compile) 2>&5
  6057. ac_status=$?
  6058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6059. test $ac_status = 0; }; then
  6060. case `/usr/bin/file conftest.$ac_objext` in
  6061. *ELF-32*)
  6062. HPUX_IA64_MODE=32
  6063. ;;
  6064. *ELF-64*)
  6065. HPUX_IA64_MODE=64
  6066. ;;
  6067. esac
  6068. fi
  6069. rm -rf conftest*
  6070. ;;
  6071. *-*-irix6*)
  6072. # Find out what ABI is being produced by ac_compile, and set linker
  6073. # options accordingly.
  6074. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6075. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6076. (eval $ac_compile) 2>&5
  6077. ac_status=$?
  6078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6079. test $ac_status = 0; }; then
  6080. if test yes = "$lt_cv_prog_gnu_ld"; then
  6081. case `/usr/bin/file conftest.$ac_objext` in
  6082. *32-bit*)
  6083. LD="${LD-ld} -melf32bsmip"
  6084. ;;
  6085. *N32*)
  6086. LD="${LD-ld} -melf32bmipn32"
  6087. ;;
  6088. *64-bit*)
  6089. LD="${LD-ld} -melf64bmip"
  6090. ;;
  6091. esac
  6092. else
  6093. case `/usr/bin/file conftest.$ac_objext` in
  6094. *32-bit*)
  6095. LD="${LD-ld} -32"
  6096. ;;
  6097. *N32*)
  6098. LD="${LD-ld} -n32"
  6099. ;;
  6100. *64-bit*)
  6101. LD="${LD-ld} -64"
  6102. ;;
  6103. esac
  6104. fi
  6105. fi
  6106. rm -rf conftest*
  6107. ;;
  6108. mips64*-*linux*)
  6109. # Find out what ABI is being produced by ac_compile, and set linker
  6110. # options accordingly.
  6111. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6112. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6113. (eval $ac_compile) 2>&5
  6114. ac_status=$?
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6116. test $ac_status = 0; }; then
  6117. emul=elf
  6118. case `/usr/bin/file conftest.$ac_objext` in
  6119. *32-bit*)
  6120. emul="${emul}32"
  6121. ;;
  6122. *64-bit*)
  6123. emul="${emul}64"
  6124. ;;
  6125. esac
  6126. case `/usr/bin/file conftest.$ac_objext` in
  6127. *MSB*)
  6128. emul="${emul}btsmip"
  6129. ;;
  6130. *LSB*)
  6131. emul="${emul}ltsmip"
  6132. ;;
  6133. esac
  6134. case `/usr/bin/file conftest.$ac_objext` in
  6135. *N32*)
  6136. emul="${emul}n32"
  6137. ;;
  6138. esac
  6139. LD="${LD-ld} -m $emul"
  6140. fi
  6141. rm -rf conftest*
  6142. ;;
  6143. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6144. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6145. # Find out what ABI is being produced by ac_compile, and set linker
  6146. # options accordingly. Note that the listed cases only cover the
  6147. # situations where additional linker options are needed (such as when
  6148. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6149. # vice versa); the common cases where no linker options are needed do
  6150. # not appear in the list.
  6151. echo 'int i;' > conftest.$ac_ext
  6152. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6153. (eval $ac_compile) 2>&5
  6154. ac_status=$?
  6155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6156. test $ac_status = 0; }; then
  6157. case `/usr/bin/file conftest.o` in
  6158. *32-bit*)
  6159. case $host in
  6160. x86_64-*kfreebsd*-gnu)
  6161. LD="${LD-ld} -m elf_i386_fbsd"
  6162. ;;
  6163. x86_64-*linux*)
  6164. case `/usr/bin/file conftest.o` in
  6165. *x86-64*)
  6166. LD="${LD-ld} -m elf32_x86_64"
  6167. ;;
  6168. *)
  6169. LD="${LD-ld} -m elf_i386"
  6170. ;;
  6171. esac
  6172. ;;
  6173. powerpc64le-*linux*)
  6174. LD="${LD-ld} -m elf32lppclinux"
  6175. ;;
  6176. powerpc64-*linux*)
  6177. LD="${LD-ld} -m elf32ppclinux"
  6178. ;;
  6179. s390x-*linux*)
  6180. LD="${LD-ld} -m elf_s390"
  6181. ;;
  6182. sparc64-*linux*)
  6183. LD="${LD-ld} -m elf32_sparc"
  6184. ;;
  6185. esac
  6186. ;;
  6187. *64-bit*)
  6188. case $host in
  6189. x86_64-*kfreebsd*-gnu)
  6190. LD="${LD-ld} -m elf_x86_64_fbsd"
  6191. ;;
  6192. x86_64-*linux*)
  6193. LD="${LD-ld} -m elf_x86_64"
  6194. ;;
  6195. powerpcle-*linux*)
  6196. LD="${LD-ld} -m elf64lppc"
  6197. ;;
  6198. powerpc-*linux*)
  6199. LD="${LD-ld} -m elf64ppc"
  6200. ;;
  6201. s390*-*linux*|s390*-*tpf*)
  6202. LD="${LD-ld} -m elf64_s390"
  6203. ;;
  6204. sparc*-*linux*)
  6205. LD="${LD-ld} -m elf64_sparc"
  6206. ;;
  6207. esac
  6208. ;;
  6209. esac
  6210. fi
  6211. rm -rf conftest*
  6212. ;;
  6213. *-*-sco3.2v5*)
  6214. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6215. SAVE_CFLAGS=$CFLAGS
  6216. CFLAGS="$CFLAGS -belf"
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6218. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6219. if ${lt_cv_cc_needs_belf+:} false; then :
  6220. $as_echo_n "(cached) " >&6
  6221. else
  6222. ac_ext=c
  6223. ac_cpp='$CPP $CPPFLAGS'
  6224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6228. /* end confdefs.h. */
  6229. int
  6230. main ()
  6231. {
  6232. ;
  6233. return 0;
  6234. }
  6235. _ACEOF
  6236. if ac_fn_c_try_link "$LINENO"; then :
  6237. lt_cv_cc_needs_belf=yes
  6238. else
  6239. lt_cv_cc_needs_belf=no
  6240. fi
  6241. rm -f core conftest.err conftest.$ac_objext \
  6242. conftest$ac_exeext conftest.$ac_ext
  6243. ac_ext=c
  6244. ac_cpp='$CPP $CPPFLAGS'
  6245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6250. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6251. if test yes != "$lt_cv_cc_needs_belf"; then
  6252. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6253. CFLAGS=$SAVE_CFLAGS
  6254. fi
  6255. ;;
  6256. *-*solaris*)
  6257. # Find out what ABI is being produced by ac_compile, and set linker
  6258. # options accordingly.
  6259. echo 'int i;' > conftest.$ac_ext
  6260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6261. (eval $ac_compile) 2>&5
  6262. ac_status=$?
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6264. test $ac_status = 0; }; then
  6265. case `/usr/bin/file conftest.o` in
  6266. *64-bit*)
  6267. case $lt_cv_prog_gnu_ld in
  6268. yes*)
  6269. case $host in
  6270. i?86-*-solaris*|x86_64-*-solaris*)
  6271. LD="${LD-ld} -m elf_x86_64"
  6272. ;;
  6273. sparc*-*-solaris*)
  6274. LD="${LD-ld} -m elf64_sparc"
  6275. ;;
  6276. esac
  6277. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6278. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6279. LD=${LD-ld}_sol2
  6280. fi
  6281. ;;
  6282. *)
  6283. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6284. LD="${LD-ld} -64"
  6285. fi
  6286. ;;
  6287. esac
  6288. ;;
  6289. esac
  6290. fi
  6291. rm -rf conftest*
  6292. ;;
  6293. esac
  6294. need_locks=$enable_libtool_lock
  6295. if test -n "$ac_tool_prefix"; then
  6296. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6297. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6299. $as_echo_n "checking for $ac_word... " >&6; }
  6300. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. if test -n "$MANIFEST_TOOL"; then
  6304. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6305. else
  6306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6307. for as_dir in $PATH
  6308. do
  6309. IFS=$as_save_IFS
  6310. test -z "$as_dir" && as_dir=.
  6311. for ac_exec_ext in '' $ac_executable_extensions; do
  6312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6313. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6315. break 2
  6316. fi
  6317. done
  6318. done
  6319. IFS=$as_save_IFS
  6320. fi
  6321. fi
  6322. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6323. if test -n "$MANIFEST_TOOL"; then
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6325. $as_echo "$MANIFEST_TOOL" >&6; }
  6326. else
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6328. $as_echo "no" >&6; }
  6329. fi
  6330. fi
  6331. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6332. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6333. # Extract the first word of "mt", so it can be a program name with args.
  6334. set dummy mt; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6341. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6350. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6360. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6362. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6368. MANIFEST_TOOL=":"
  6369. else
  6370. case $cross_compiling:$ac_tool_warned in
  6371. yes:)
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6374. ac_tool_warned=yes ;;
  6375. esac
  6376. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6377. fi
  6378. else
  6379. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6380. fi
  6381. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6383. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6384. if ${lt_cv_path_mainfest_tool+:} false; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. lt_cv_path_mainfest_tool=no
  6388. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6389. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6390. cat conftest.err >&5
  6391. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6392. lt_cv_path_mainfest_tool=yes
  6393. fi
  6394. rm -f conftest*
  6395. fi
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6397. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6398. if test yes != "$lt_cv_path_mainfest_tool"; then
  6399. MANIFEST_TOOL=:
  6400. fi
  6401. case $host_os in
  6402. rhapsody* | darwin*)
  6403. if test -n "$ac_tool_prefix"; then
  6404. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6405. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6407. $as_echo_n "checking for $ac_word... " >&6; }
  6408. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6409. $as_echo_n "(cached) " >&6
  6410. else
  6411. if test -n "$DSYMUTIL"; then
  6412. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6413. else
  6414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6415. for as_dir in $PATH
  6416. do
  6417. IFS=$as_save_IFS
  6418. test -z "$as_dir" && as_dir=.
  6419. for ac_exec_ext in '' $ac_executable_extensions; do
  6420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6421. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6423. break 2
  6424. fi
  6425. done
  6426. done
  6427. IFS=$as_save_IFS
  6428. fi
  6429. fi
  6430. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6431. if test -n "$DSYMUTIL"; then
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6433. $as_echo "$DSYMUTIL" >&6; }
  6434. else
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6436. $as_echo "no" >&6; }
  6437. fi
  6438. fi
  6439. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6440. ac_ct_DSYMUTIL=$DSYMUTIL
  6441. # Extract the first word of "dsymutil", so it can be a program name with args.
  6442. set dummy dsymutil; ac_word=$2
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6444. $as_echo_n "checking for $ac_word... " >&6; }
  6445. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. if test -n "$ac_ct_DSYMUTIL"; then
  6449. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6450. else
  6451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6452. for as_dir in $PATH
  6453. do
  6454. IFS=$as_save_IFS
  6455. test -z "$as_dir" && as_dir=.
  6456. for ac_exec_ext in '' $ac_executable_extensions; do
  6457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6458. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6460. break 2
  6461. fi
  6462. done
  6463. done
  6464. IFS=$as_save_IFS
  6465. fi
  6466. fi
  6467. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6468. if test -n "$ac_ct_DSYMUTIL"; then
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6470. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6471. else
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6473. $as_echo "no" >&6; }
  6474. fi
  6475. if test "x$ac_ct_DSYMUTIL" = x; then
  6476. DSYMUTIL=":"
  6477. else
  6478. case $cross_compiling:$ac_tool_warned in
  6479. yes:)
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6482. ac_tool_warned=yes ;;
  6483. esac
  6484. DSYMUTIL=$ac_ct_DSYMUTIL
  6485. fi
  6486. else
  6487. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6488. fi
  6489. if test -n "$ac_tool_prefix"; then
  6490. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6491. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6493. $as_echo_n "checking for $ac_word... " >&6; }
  6494. if ${ac_cv_prog_NMEDIT+:} false; then :
  6495. $as_echo_n "(cached) " >&6
  6496. else
  6497. if test -n "$NMEDIT"; then
  6498. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6499. else
  6500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6501. for as_dir in $PATH
  6502. do
  6503. IFS=$as_save_IFS
  6504. test -z "$as_dir" && as_dir=.
  6505. for ac_exec_ext in '' $ac_executable_extensions; do
  6506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6507. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6509. break 2
  6510. fi
  6511. done
  6512. done
  6513. IFS=$as_save_IFS
  6514. fi
  6515. fi
  6516. NMEDIT=$ac_cv_prog_NMEDIT
  6517. if test -n "$NMEDIT"; then
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6519. $as_echo "$NMEDIT" >&6; }
  6520. else
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6522. $as_echo "no" >&6; }
  6523. fi
  6524. fi
  6525. if test -z "$ac_cv_prog_NMEDIT"; then
  6526. ac_ct_NMEDIT=$NMEDIT
  6527. # Extract the first word of "nmedit", so it can be a program name with args.
  6528. set dummy nmedit; ac_word=$2
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6530. $as_echo_n "checking for $ac_word... " >&6; }
  6531. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6532. $as_echo_n "(cached) " >&6
  6533. else
  6534. if test -n "$ac_ct_NMEDIT"; then
  6535. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6536. else
  6537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6538. for as_dir in $PATH
  6539. do
  6540. IFS=$as_save_IFS
  6541. test -z "$as_dir" && as_dir=.
  6542. for ac_exec_ext in '' $ac_executable_extensions; do
  6543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6544. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6546. break 2
  6547. fi
  6548. done
  6549. done
  6550. IFS=$as_save_IFS
  6551. fi
  6552. fi
  6553. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6554. if test -n "$ac_ct_NMEDIT"; then
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6556. $as_echo "$ac_ct_NMEDIT" >&6; }
  6557. else
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6559. $as_echo "no" >&6; }
  6560. fi
  6561. if test "x$ac_ct_NMEDIT" = x; then
  6562. NMEDIT=":"
  6563. else
  6564. case $cross_compiling:$ac_tool_warned in
  6565. yes:)
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6568. ac_tool_warned=yes ;;
  6569. esac
  6570. NMEDIT=$ac_ct_NMEDIT
  6571. fi
  6572. else
  6573. NMEDIT="$ac_cv_prog_NMEDIT"
  6574. fi
  6575. if test -n "$ac_tool_prefix"; then
  6576. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6577. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6579. $as_echo_n "checking for $ac_word... " >&6; }
  6580. if ${ac_cv_prog_LIPO+:} false; then :
  6581. $as_echo_n "(cached) " >&6
  6582. else
  6583. if test -n "$LIPO"; then
  6584. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6585. else
  6586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6587. for as_dir in $PATH
  6588. do
  6589. IFS=$as_save_IFS
  6590. test -z "$as_dir" && as_dir=.
  6591. for ac_exec_ext in '' $ac_executable_extensions; do
  6592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6593. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6595. break 2
  6596. fi
  6597. done
  6598. done
  6599. IFS=$as_save_IFS
  6600. fi
  6601. fi
  6602. LIPO=$ac_cv_prog_LIPO
  6603. if test -n "$LIPO"; then
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6605. $as_echo "$LIPO" >&6; }
  6606. else
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6608. $as_echo "no" >&6; }
  6609. fi
  6610. fi
  6611. if test -z "$ac_cv_prog_LIPO"; then
  6612. ac_ct_LIPO=$LIPO
  6613. # Extract the first word of "lipo", so it can be a program name with args.
  6614. set dummy lipo; ac_word=$2
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6616. $as_echo_n "checking for $ac_word... " >&6; }
  6617. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. if test -n "$ac_ct_LIPO"; then
  6621. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6622. else
  6623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6624. for as_dir in $PATH
  6625. do
  6626. IFS=$as_save_IFS
  6627. test -z "$as_dir" && as_dir=.
  6628. for ac_exec_ext in '' $ac_executable_extensions; do
  6629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6630. ac_cv_prog_ac_ct_LIPO="lipo"
  6631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6632. break 2
  6633. fi
  6634. done
  6635. done
  6636. IFS=$as_save_IFS
  6637. fi
  6638. fi
  6639. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6640. if test -n "$ac_ct_LIPO"; then
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6642. $as_echo "$ac_ct_LIPO" >&6; }
  6643. else
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6645. $as_echo "no" >&6; }
  6646. fi
  6647. if test "x$ac_ct_LIPO" = x; then
  6648. LIPO=":"
  6649. else
  6650. case $cross_compiling:$ac_tool_warned in
  6651. yes:)
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6654. ac_tool_warned=yes ;;
  6655. esac
  6656. LIPO=$ac_ct_LIPO
  6657. fi
  6658. else
  6659. LIPO="$ac_cv_prog_LIPO"
  6660. fi
  6661. if test -n "$ac_tool_prefix"; then
  6662. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6663. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6665. $as_echo_n "checking for $ac_word... " >&6; }
  6666. if ${ac_cv_prog_OTOOL+:} false; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. if test -n "$OTOOL"; then
  6670. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6671. else
  6672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6673. for as_dir in $PATH
  6674. do
  6675. IFS=$as_save_IFS
  6676. test -z "$as_dir" && as_dir=.
  6677. for ac_exec_ext in '' $ac_executable_extensions; do
  6678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6679. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6681. break 2
  6682. fi
  6683. done
  6684. done
  6685. IFS=$as_save_IFS
  6686. fi
  6687. fi
  6688. OTOOL=$ac_cv_prog_OTOOL
  6689. if test -n "$OTOOL"; then
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6691. $as_echo "$OTOOL" >&6; }
  6692. else
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6694. $as_echo "no" >&6; }
  6695. fi
  6696. fi
  6697. if test -z "$ac_cv_prog_OTOOL"; then
  6698. ac_ct_OTOOL=$OTOOL
  6699. # Extract the first word of "otool", so it can be a program name with args.
  6700. set dummy otool; ac_word=$2
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6702. $as_echo_n "checking for $ac_word... " >&6; }
  6703. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6704. $as_echo_n "(cached) " >&6
  6705. else
  6706. if test -n "$ac_ct_OTOOL"; then
  6707. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6708. else
  6709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6710. for as_dir in $PATH
  6711. do
  6712. IFS=$as_save_IFS
  6713. test -z "$as_dir" && as_dir=.
  6714. for ac_exec_ext in '' $ac_executable_extensions; do
  6715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6716. ac_cv_prog_ac_ct_OTOOL="otool"
  6717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6718. break 2
  6719. fi
  6720. done
  6721. done
  6722. IFS=$as_save_IFS
  6723. fi
  6724. fi
  6725. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6726. if test -n "$ac_ct_OTOOL"; then
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6728. $as_echo "$ac_ct_OTOOL" >&6; }
  6729. else
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6731. $as_echo "no" >&6; }
  6732. fi
  6733. if test "x$ac_ct_OTOOL" = x; then
  6734. OTOOL=":"
  6735. else
  6736. case $cross_compiling:$ac_tool_warned in
  6737. yes:)
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6739. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6740. ac_tool_warned=yes ;;
  6741. esac
  6742. OTOOL=$ac_ct_OTOOL
  6743. fi
  6744. else
  6745. OTOOL="$ac_cv_prog_OTOOL"
  6746. fi
  6747. if test -n "$ac_tool_prefix"; then
  6748. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6749. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6751. $as_echo_n "checking for $ac_word... " >&6; }
  6752. if ${ac_cv_prog_OTOOL64+:} false; then :
  6753. $as_echo_n "(cached) " >&6
  6754. else
  6755. if test -n "$OTOOL64"; then
  6756. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6757. else
  6758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6759. for as_dir in $PATH
  6760. do
  6761. IFS=$as_save_IFS
  6762. test -z "$as_dir" && as_dir=.
  6763. for ac_exec_ext in '' $ac_executable_extensions; do
  6764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6765. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6767. break 2
  6768. fi
  6769. done
  6770. done
  6771. IFS=$as_save_IFS
  6772. fi
  6773. fi
  6774. OTOOL64=$ac_cv_prog_OTOOL64
  6775. if test -n "$OTOOL64"; then
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6777. $as_echo "$OTOOL64" >&6; }
  6778. else
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6780. $as_echo "no" >&6; }
  6781. fi
  6782. fi
  6783. if test -z "$ac_cv_prog_OTOOL64"; then
  6784. ac_ct_OTOOL64=$OTOOL64
  6785. # Extract the first word of "otool64", so it can be a program name with args.
  6786. set dummy otool64; ac_word=$2
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6788. $as_echo_n "checking for $ac_word... " >&6; }
  6789. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. if test -n "$ac_ct_OTOOL64"; then
  6793. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6794. else
  6795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6796. for as_dir in $PATH
  6797. do
  6798. IFS=$as_save_IFS
  6799. test -z "$as_dir" && as_dir=.
  6800. for ac_exec_ext in '' $ac_executable_extensions; do
  6801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6802. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6804. break 2
  6805. fi
  6806. done
  6807. done
  6808. IFS=$as_save_IFS
  6809. fi
  6810. fi
  6811. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6812. if test -n "$ac_ct_OTOOL64"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6814. $as_echo "$ac_ct_OTOOL64" >&6; }
  6815. else
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6817. $as_echo "no" >&6; }
  6818. fi
  6819. if test "x$ac_ct_OTOOL64" = x; then
  6820. OTOOL64=":"
  6821. else
  6822. case $cross_compiling:$ac_tool_warned in
  6823. yes:)
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6826. ac_tool_warned=yes ;;
  6827. esac
  6828. OTOOL64=$ac_ct_OTOOL64
  6829. fi
  6830. else
  6831. OTOOL64="$ac_cv_prog_OTOOL64"
  6832. fi
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6834. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6835. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6836. $as_echo_n "(cached) " >&6
  6837. else
  6838. lt_cv_apple_cc_single_mod=no
  6839. if test -z "$LT_MULTI_MODULE"; then
  6840. # By default we will add the -single_module flag. You can override
  6841. # by either setting the environment variable LT_MULTI_MODULE
  6842. # non-empty at configure time, or by adding -multi_module to the
  6843. # link flags.
  6844. rm -rf libconftest.dylib*
  6845. echo "int foo(void){return 1;}" > conftest.c
  6846. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6847. -dynamiclib -Wl,-single_module conftest.c" >&5
  6848. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6849. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6850. _lt_result=$?
  6851. # If there is a non-empty error log, and "single_module"
  6852. # appears in it, assume the flag caused a linker warning
  6853. if test -s conftest.err && $GREP single_module conftest.err; then
  6854. cat conftest.err >&5
  6855. # Otherwise, if the output was created with a 0 exit code from
  6856. # the compiler, it worked.
  6857. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6858. lt_cv_apple_cc_single_mod=yes
  6859. else
  6860. cat conftest.err >&5
  6861. fi
  6862. rm -rf libconftest.dylib*
  6863. rm -f conftest.*
  6864. fi
  6865. fi
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6867. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6869. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6870. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6871. $as_echo_n "(cached) " >&6
  6872. else
  6873. lt_cv_ld_exported_symbols_list=no
  6874. save_LDFLAGS=$LDFLAGS
  6875. echo "_main" > conftest.sym
  6876. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6878. /* end confdefs.h. */
  6879. int
  6880. main ()
  6881. {
  6882. ;
  6883. return 0;
  6884. }
  6885. _ACEOF
  6886. if ac_fn_c_try_link "$LINENO"; then :
  6887. lt_cv_ld_exported_symbols_list=yes
  6888. else
  6889. lt_cv_ld_exported_symbols_list=no
  6890. fi
  6891. rm -f core conftest.err conftest.$ac_objext \
  6892. conftest$ac_exeext conftest.$ac_ext
  6893. LDFLAGS=$save_LDFLAGS
  6894. fi
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6896. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6898. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6899. if ${lt_cv_ld_force_load+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. lt_cv_ld_force_load=no
  6903. cat > conftest.c << _LT_EOF
  6904. int forced_loaded() { return 2;}
  6905. _LT_EOF
  6906. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6907. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6908. echo "$AR cru libconftest.a conftest.o" >&5
  6909. $AR cru libconftest.a conftest.o 2>&5
  6910. echo "$RANLIB libconftest.a" >&5
  6911. $RANLIB libconftest.a 2>&5
  6912. cat > conftest.c << _LT_EOF
  6913. int main() { return 0;}
  6914. _LT_EOF
  6915. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6916. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6917. _lt_result=$?
  6918. if test -s conftest.err && $GREP force_load conftest.err; then
  6919. cat conftest.err >&5
  6920. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6921. lt_cv_ld_force_load=yes
  6922. else
  6923. cat conftest.err >&5
  6924. fi
  6925. rm -f conftest.err libconftest.a conftest conftest.c
  6926. rm -rf conftest.dSYM
  6927. fi
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6929. $as_echo "$lt_cv_ld_force_load" >&6; }
  6930. case $host_os in
  6931. rhapsody* | darwin1.[012])
  6932. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6933. darwin1.*)
  6934. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6935. darwin*) # darwin 5.x on
  6936. # if running on 10.5 or later, the deployment target defaults
  6937. # to the OS version, if on x86, and 10.4, the deployment
  6938. # target defaults to 10.4. Don't you love it?
  6939. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6940. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6941. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6942. 10.[012][,.]*)
  6943. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6944. 10.*)
  6945. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6946. esac
  6947. ;;
  6948. esac
  6949. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6950. _lt_dar_single_mod='$single_module'
  6951. fi
  6952. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6953. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6954. else
  6955. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6956. fi
  6957. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6958. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6959. else
  6960. _lt_dsymutil=
  6961. fi
  6962. ;;
  6963. esac
  6964. # func_munge_path_list VARIABLE PATH
  6965. # -----------------------------------
  6966. # VARIABLE is name of variable containing _space_ separated list of
  6967. # directories to be munged by the contents of PATH, which is string
  6968. # having a format:
  6969. # "DIR[:DIR]:"
  6970. # string "DIR[ DIR]" will be prepended to VARIABLE
  6971. # ":DIR[:DIR]"
  6972. # string "DIR[ DIR]" will be appended to VARIABLE
  6973. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6974. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6975. # "DIRA[ DIRA]" will be appended to VARIABLE
  6976. # "DIR[:DIR]"
  6977. # VARIABLE will be replaced by "DIR[ DIR]"
  6978. func_munge_path_list ()
  6979. {
  6980. case x$2 in
  6981. x)
  6982. ;;
  6983. *:)
  6984. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6985. ;;
  6986. x:*)
  6987. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6988. ;;
  6989. *::*)
  6990. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6991. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6992. ;;
  6993. *)
  6994. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6995. ;;
  6996. esac
  6997. }
  6998. for ac_header in dlfcn.h
  6999. do :
  7000. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7001. "
  7002. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7003. cat >>confdefs.h <<_ACEOF
  7004. #define HAVE_DLFCN_H 1
  7005. _ACEOF
  7006. fi
  7007. done
  7008. # Set options
  7009. enable_dlopen=no
  7010. enable_win32_dll=no
  7011. # Check whether --enable-shared was given.
  7012. if test "${enable_shared+set}" = set; then :
  7013. enableval=$enable_shared; p=${PACKAGE-default}
  7014. case $enableval in
  7015. yes) enable_shared=yes ;;
  7016. no) enable_shared=no ;;
  7017. *)
  7018. enable_shared=no
  7019. # Look at the argument we got. We use all the common list separators.
  7020. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7021. for pkg in $enableval; do
  7022. IFS=$lt_save_ifs
  7023. if test "X$pkg" = "X$p"; then
  7024. enable_shared=yes
  7025. fi
  7026. done
  7027. IFS=$lt_save_ifs
  7028. ;;
  7029. esac
  7030. else
  7031. enable_shared=yes
  7032. fi
  7033. # Check whether --enable-static was given.
  7034. if test "${enable_static+set}" = set; then :
  7035. enableval=$enable_static; p=${PACKAGE-default}
  7036. case $enableval in
  7037. yes) enable_static=yes ;;
  7038. no) enable_static=no ;;
  7039. *)
  7040. enable_static=no
  7041. # Look at the argument we got. We use all the common list separators.
  7042. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7043. for pkg in $enableval; do
  7044. IFS=$lt_save_ifs
  7045. if test "X$pkg" = "X$p"; then
  7046. enable_static=yes
  7047. fi
  7048. done
  7049. IFS=$lt_save_ifs
  7050. ;;
  7051. esac
  7052. else
  7053. enable_static=yes
  7054. fi
  7055. # Check whether --with-pic was given.
  7056. if test "${with_pic+set}" = set; then :
  7057. withval=$with_pic; lt_p=${PACKAGE-default}
  7058. case $withval in
  7059. yes|no) pic_mode=$withval ;;
  7060. *)
  7061. pic_mode=default
  7062. # Look at the argument we got. We use all the common list separators.
  7063. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7064. for lt_pkg in $withval; do
  7065. IFS=$lt_save_ifs
  7066. if test "X$lt_pkg" = "X$lt_p"; then
  7067. pic_mode=yes
  7068. fi
  7069. done
  7070. IFS=$lt_save_ifs
  7071. ;;
  7072. esac
  7073. else
  7074. pic_mode=default
  7075. fi
  7076. # Check whether --enable-fast-install was given.
  7077. if test "${enable_fast_install+set}" = set; then :
  7078. enableval=$enable_fast_install; p=${PACKAGE-default}
  7079. case $enableval in
  7080. yes) enable_fast_install=yes ;;
  7081. no) enable_fast_install=no ;;
  7082. *)
  7083. enable_fast_install=no
  7084. # Look at the argument we got. We use all the common list separators.
  7085. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7086. for pkg in $enableval; do
  7087. IFS=$lt_save_ifs
  7088. if test "X$pkg" = "X$p"; then
  7089. enable_fast_install=yes
  7090. fi
  7091. done
  7092. IFS=$lt_save_ifs
  7093. ;;
  7094. esac
  7095. else
  7096. enable_fast_install=yes
  7097. fi
  7098. shared_archive_member_spec=
  7099. case $host,$enable_shared in
  7100. power*-*-aix[5-9]*,yes)
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7102. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7103. # Check whether --with-aix-soname was given.
  7104. if test "${with_aix_soname+set}" = set; then :
  7105. withval=$with_aix_soname; case $withval in
  7106. aix|svr4|both)
  7107. ;;
  7108. *)
  7109. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7110. ;;
  7111. esac
  7112. lt_cv_with_aix_soname=$with_aix_soname
  7113. else
  7114. if ${lt_cv_with_aix_soname+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. lt_cv_with_aix_soname=aix
  7118. fi
  7119. with_aix_soname=$lt_cv_with_aix_soname
  7120. fi
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7122. $as_echo "$with_aix_soname" >&6; }
  7123. if test aix != "$with_aix_soname"; then
  7124. # For the AIX way of multilib, we name the shared archive member
  7125. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7126. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7127. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7128. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7129. if test 64 = "${OBJECT_MODE-32}"; then
  7130. shared_archive_member_spec=shr_64
  7131. else
  7132. shared_archive_member_spec=shr
  7133. fi
  7134. fi
  7135. ;;
  7136. *)
  7137. with_aix_soname=aix
  7138. ;;
  7139. esac
  7140. # This can be used to rebuild libtool when needed
  7141. LIBTOOL_DEPS=$ltmain
  7142. # Always use our own libtool.
  7143. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7144. test -z "$LN_S" && LN_S="ln -s"
  7145. if test -n "${ZSH_VERSION+set}"; then
  7146. setopt NO_GLOB_SUBST
  7147. fi
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7149. $as_echo_n "checking for objdir... " >&6; }
  7150. if ${lt_cv_objdir+:} false; then :
  7151. $as_echo_n "(cached) " >&6
  7152. else
  7153. rm -f .libs 2>/dev/null
  7154. mkdir .libs 2>/dev/null
  7155. if test -d .libs; then
  7156. lt_cv_objdir=.libs
  7157. else
  7158. # MS-DOS does not allow filenames that begin with a dot.
  7159. lt_cv_objdir=_libs
  7160. fi
  7161. rmdir .libs 2>/dev/null
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7164. $as_echo "$lt_cv_objdir" >&6; }
  7165. objdir=$lt_cv_objdir
  7166. cat >>confdefs.h <<_ACEOF
  7167. #define LT_OBJDIR "$lt_cv_objdir/"
  7168. _ACEOF
  7169. case $host_os in
  7170. aix3*)
  7171. # AIX sometimes has problems with the GCC collect2 program. For some
  7172. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7173. # vanish in a puff of smoke.
  7174. if test set != "${COLLECT_NAMES+set}"; then
  7175. COLLECT_NAMES=
  7176. export COLLECT_NAMES
  7177. fi
  7178. ;;
  7179. esac
  7180. # Global variables:
  7181. ofile=libtool
  7182. can_build_shared=yes
  7183. # All known linkers require a '.a' archive for static linking (except MSVC,
  7184. # which needs '.lib').
  7185. libext=a
  7186. with_gnu_ld=$lt_cv_prog_gnu_ld
  7187. old_CC=$CC
  7188. old_CFLAGS=$CFLAGS
  7189. # Set sane defaults for various variables
  7190. test -z "$CC" && CC=cc
  7191. test -z "$LTCC" && LTCC=$CC
  7192. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7193. test -z "$LD" && LD=ld
  7194. test -z "$ac_objext" && ac_objext=o
  7195. func_cc_basename $compiler
  7196. cc_basename=$func_cc_basename_result
  7197. # Only perform the check for file, if the check method requires it
  7198. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7199. case $deplibs_check_method in
  7200. file_magic*)
  7201. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7203. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7204. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. case $MAGIC_CMD in
  7208. [\\/*] | ?:[\\/]*)
  7209. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7210. ;;
  7211. *)
  7212. lt_save_MAGIC_CMD=$MAGIC_CMD
  7213. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7214. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7215. for ac_dir in $ac_dummy; do
  7216. IFS=$lt_save_ifs
  7217. test -z "$ac_dir" && ac_dir=.
  7218. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7219. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7220. if test -n "$file_magic_test_file"; then
  7221. case $deplibs_check_method in
  7222. "file_magic "*)
  7223. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7224. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7225. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7226. $EGREP "$file_magic_regex" > /dev/null; then
  7227. :
  7228. else
  7229. cat <<_LT_EOF 1>&2
  7230. *** Warning: the command libtool uses to detect shared libraries,
  7231. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7232. *** The result is that libtool may fail to recognize shared libraries
  7233. *** as such. This will affect the creation of libtool libraries that
  7234. *** depend on shared libraries, but programs linked with such libtool
  7235. *** libraries will work regardless of this problem. Nevertheless, you
  7236. *** may want to report the problem to your system manager and/or to
  7237. *** [email protected]
  7238. _LT_EOF
  7239. fi ;;
  7240. esac
  7241. fi
  7242. break
  7243. fi
  7244. done
  7245. IFS=$lt_save_ifs
  7246. MAGIC_CMD=$lt_save_MAGIC_CMD
  7247. ;;
  7248. esac
  7249. fi
  7250. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7251. if test -n "$MAGIC_CMD"; then
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7253. $as_echo "$MAGIC_CMD" >&6; }
  7254. else
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7256. $as_echo "no" >&6; }
  7257. fi
  7258. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7259. if test -n "$ac_tool_prefix"; then
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7261. $as_echo_n "checking for file... " >&6; }
  7262. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. case $MAGIC_CMD in
  7266. [\\/*] | ?:[\\/]*)
  7267. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7268. ;;
  7269. *)
  7270. lt_save_MAGIC_CMD=$MAGIC_CMD
  7271. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7272. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7273. for ac_dir in $ac_dummy; do
  7274. IFS=$lt_save_ifs
  7275. test -z "$ac_dir" && ac_dir=.
  7276. if test -f "$ac_dir/file"; then
  7277. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7278. if test -n "$file_magic_test_file"; then
  7279. case $deplibs_check_method in
  7280. "file_magic "*)
  7281. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7282. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7283. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7284. $EGREP "$file_magic_regex" > /dev/null; then
  7285. :
  7286. else
  7287. cat <<_LT_EOF 1>&2
  7288. *** Warning: the command libtool uses to detect shared libraries,
  7289. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7290. *** The result is that libtool may fail to recognize shared libraries
  7291. *** as such. This will affect the creation of libtool libraries that
  7292. *** depend on shared libraries, but programs linked with such libtool
  7293. *** libraries will work regardless of this problem. Nevertheless, you
  7294. *** may want to report the problem to your system manager and/or to
  7295. *** [email protected]
  7296. _LT_EOF
  7297. fi ;;
  7298. esac
  7299. fi
  7300. break
  7301. fi
  7302. done
  7303. IFS=$lt_save_ifs
  7304. MAGIC_CMD=$lt_save_MAGIC_CMD
  7305. ;;
  7306. esac
  7307. fi
  7308. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7309. if test -n "$MAGIC_CMD"; then
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7311. $as_echo "$MAGIC_CMD" >&6; }
  7312. else
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. $as_echo "no" >&6; }
  7315. fi
  7316. else
  7317. MAGIC_CMD=:
  7318. fi
  7319. fi
  7320. fi
  7321. ;;
  7322. esac
  7323. # Use C for the default configuration in the libtool script
  7324. lt_save_CC=$CC
  7325. ac_ext=c
  7326. ac_cpp='$CPP $CPPFLAGS'
  7327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7330. # Source file extension for C test sources.
  7331. ac_ext=c
  7332. # Object file extension for compiled C test sources.
  7333. objext=o
  7334. objext=$objext
  7335. # Code to be used in simple compile tests
  7336. lt_simple_compile_test_code="int some_variable = 0;"
  7337. # Code to be used in simple link tests
  7338. lt_simple_link_test_code='int main(){return(0);}'
  7339. # If no C compiler was specified, use CC.
  7340. LTCC=${LTCC-"$CC"}
  7341. # If no C compiler flags were specified, use CFLAGS.
  7342. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7343. # Allow CC to be a program name with arguments.
  7344. compiler=$CC
  7345. # Save the default compiler, since it gets overwritten when the other
  7346. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7347. compiler_DEFAULT=$CC
  7348. # save warnings/boilerplate of simple test code
  7349. ac_outfile=conftest.$ac_objext
  7350. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7351. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7352. _lt_compiler_boilerplate=`cat conftest.err`
  7353. $RM conftest*
  7354. ac_outfile=conftest.$ac_objext
  7355. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7356. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7357. _lt_linker_boilerplate=`cat conftest.err`
  7358. $RM -r conftest*
  7359. ## CAVEAT EMPTOR:
  7360. ## There is no encapsulation within the following macros, do not change
  7361. ## the running order or otherwise move them around unless you know exactly
  7362. ## what you are doing...
  7363. if test -n "$compiler"; then
  7364. lt_prog_compiler_no_builtin_flag=
  7365. if test yes = "$GCC"; then
  7366. case $cc_basename in
  7367. nvcc*)
  7368. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7369. *)
  7370. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7371. esac
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7373. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7374. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. lt_cv_prog_compiler_rtti_exceptions=no
  7378. ac_outfile=conftest.$ac_objext
  7379. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7380. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7381. # Insert the option either (1) after the last *FLAGS variable, or
  7382. # (2) before a word containing "conftest.", or (3) at the end.
  7383. # Note that $ac_compile itself does not contain backslashes and begins
  7384. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7385. # The option is referenced via a variable to avoid confusing sed.
  7386. lt_compile=`echo "$ac_compile" | $SED \
  7387. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7388. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7389. -e 's:$: $lt_compiler_flag:'`
  7390. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7391. (eval "$lt_compile" 2>conftest.err)
  7392. ac_status=$?
  7393. cat conftest.err >&5
  7394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7395. if (exit $ac_status) && test -s "$ac_outfile"; then
  7396. # The compiler can only warn and ignore the option if not recognized
  7397. # So say no if there are warnings other than the usual output.
  7398. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7399. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7400. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7401. lt_cv_prog_compiler_rtti_exceptions=yes
  7402. fi
  7403. fi
  7404. $RM conftest*
  7405. fi
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7407. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7408. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7409. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7410. else
  7411. :
  7412. fi
  7413. fi
  7414. lt_prog_compiler_wl=
  7415. lt_prog_compiler_pic=
  7416. lt_prog_compiler_static=
  7417. if test yes = "$GCC"; then
  7418. lt_prog_compiler_wl='-Wl,'
  7419. lt_prog_compiler_static='-static'
  7420. case $host_os in
  7421. aix*)
  7422. # All AIX code is PIC.
  7423. if test ia64 = "$host_cpu"; then
  7424. # AIX 5 now supports IA64 processor
  7425. lt_prog_compiler_static='-Bstatic'
  7426. fi
  7427. lt_prog_compiler_pic='-fPIC'
  7428. ;;
  7429. amigaos*)
  7430. case $host_cpu in
  7431. powerpc)
  7432. # see comment about AmigaOS4 .so support
  7433. lt_prog_compiler_pic='-fPIC'
  7434. ;;
  7435. m68k)
  7436. # FIXME: we need at least 68020 code to build shared libraries, but
  7437. # adding the '-m68020' flag to GCC prevents building anything better,
  7438. # like '-m68040'.
  7439. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7440. ;;
  7441. esac
  7442. ;;
  7443. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7444. # PIC is the default for these OSes.
  7445. ;;
  7446. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7447. # This hack is so that the source file can tell whether it is being
  7448. # built for inclusion in a dll (and should export symbols for example).
  7449. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7450. # (--disable-auto-import) libraries
  7451. lt_prog_compiler_pic='-DDLL_EXPORT'
  7452. case $host_os in
  7453. os2*)
  7454. lt_prog_compiler_static='$wl-static'
  7455. ;;
  7456. esac
  7457. ;;
  7458. darwin* | rhapsody*)
  7459. # PIC is the default on this platform
  7460. # Common symbols not allowed in MH_DYLIB files
  7461. lt_prog_compiler_pic='-fno-common'
  7462. ;;
  7463. haiku*)
  7464. # PIC is the default for Haiku.
  7465. # The "-static" flag exists, but is broken.
  7466. lt_prog_compiler_static=
  7467. ;;
  7468. hpux*)
  7469. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7470. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7471. # sets the default TLS model and affects inlining.
  7472. case $host_cpu in
  7473. hppa*64*)
  7474. # +Z the default
  7475. ;;
  7476. *)
  7477. lt_prog_compiler_pic='-fPIC'
  7478. ;;
  7479. esac
  7480. ;;
  7481. interix[3-9]*)
  7482. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7483. # Instead, we relocate shared libraries at runtime.
  7484. ;;
  7485. msdosdjgpp*)
  7486. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7487. # on systems that don't support them.
  7488. lt_prog_compiler_can_build_shared=no
  7489. enable_shared=no
  7490. ;;
  7491. *nto* | *qnx*)
  7492. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7493. # it will coredump.
  7494. lt_prog_compiler_pic='-fPIC -shared'
  7495. ;;
  7496. sysv4*MP*)
  7497. if test -d /usr/nec; then
  7498. lt_prog_compiler_pic=-Kconform_pic
  7499. fi
  7500. ;;
  7501. *)
  7502. lt_prog_compiler_pic='-fPIC'
  7503. ;;
  7504. esac
  7505. case $cc_basename in
  7506. nvcc*) # Cuda Compiler Driver 2.2
  7507. lt_prog_compiler_wl='-Xlinker '
  7508. if test -n "$lt_prog_compiler_pic"; then
  7509. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7510. fi
  7511. ;;
  7512. esac
  7513. else
  7514. # PORTME Check for flag to pass linker flags through the system compiler.
  7515. case $host_os in
  7516. aix*)
  7517. lt_prog_compiler_wl='-Wl,'
  7518. if test ia64 = "$host_cpu"; then
  7519. # AIX 5 now supports IA64 processor
  7520. lt_prog_compiler_static='-Bstatic'
  7521. else
  7522. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7523. fi
  7524. ;;
  7525. darwin* | rhapsody*)
  7526. # PIC is the default on this platform
  7527. # Common symbols not allowed in MH_DYLIB files
  7528. lt_prog_compiler_pic='-fno-common'
  7529. case $cc_basename in
  7530. nagfor*)
  7531. # NAG Fortran compiler
  7532. lt_prog_compiler_wl='-Wl,-Wl,,'
  7533. lt_prog_compiler_pic='-PIC'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. ;;
  7536. esac
  7537. ;;
  7538. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7539. # This hack is so that the source file can tell whether it is being
  7540. # built for inclusion in a dll (and should export symbols for example).
  7541. lt_prog_compiler_pic='-DDLL_EXPORT'
  7542. case $host_os in
  7543. os2*)
  7544. lt_prog_compiler_static='$wl-static'
  7545. ;;
  7546. esac
  7547. ;;
  7548. hpux9* | hpux10* | hpux11*)
  7549. lt_prog_compiler_wl='-Wl,'
  7550. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7551. # not for PA HP-UX.
  7552. case $host_cpu in
  7553. hppa*64*|ia64*)
  7554. # +Z the default
  7555. ;;
  7556. *)
  7557. lt_prog_compiler_pic='+Z'
  7558. ;;
  7559. esac
  7560. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7561. lt_prog_compiler_static='$wl-a ${wl}archive'
  7562. ;;
  7563. irix5* | irix6* | nonstopux*)
  7564. lt_prog_compiler_wl='-Wl,'
  7565. # PIC (with -KPIC) is the default.
  7566. lt_prog_compiler_static='-non_shared'
  7567. ;;
  7568. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7569. case $cc_basename in
  7570. # old Intel for x86_64, which still supported -KPIC.
  7571. ecc*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. lt_prog_compiler_pic='-KPIC'
  7574. lt_prog_compiler_static='-static'
  7575. ;;
  7576. # icc used to be incompatible with GCC.
  7577. # ICC 10 doesn't accept -KPIC any more.
  7578. icc* | ifort*)
  7579. lt_prog_compiler_wl='-Wl,'
  7580. lt_prog_compiler_pic='-fPIC'
  7581. lt_prog_compiler_static='-static'
  7582. ;;
  7583. # Lahey Fortran 8.1.
  7584. lf95*)
  7585. lt_prog_compiler_wl='-Wl,'
  7586. lt_prog_compiler_pic='--shared'
  7587. lt_prog_compiler_static='--static'
  7588. ;;
  7589. nagfor*)
  7590. # NAG Fortran compiler
  7591. lt_prog_compiler_wl='-Wl,-Wl,,'
  7592. lt_prog_compiler_pic='-PIC'
  7593. lt_prog_compiler_static='-Bstatic'
  7594. ;;
  7595. tcc*)
  7596. # Fabrice Bellard et al's Tiny C Compiler
  7597. lt_prog_compiler_wl='-Wl,'
  7598. lt_prog_compiler_pic='-fPIC'
  7599. lt_prog_compiler_static='-static'
  7600. ;;
  7601. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7602. # Portland Group compilers (*not* the Pentium gcc compiler,
  7603. # which looks to be a dead project)
  7604. lt_prog_compiler_wl='-Wl,'
  7605. lt_prog_compiler_pic='-fpic'
  7606. lt_prog_compiler_static='-Bstatic'
  7607. ;;
  7608. ccc*)
  7609. lt_prog_compiler_wl='-Wl,'
  7610. # All Alpha code is PIC.
  7611. lt_prog_compiler_static='-non_shared'
  7612. ;;
  7613. xl* | bgxl* | bgf* | mpixl*)
  7614. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7615. lt_prog_compiler_wl='-Wl,'
  7616. lt_prog_compiler_pic='-qpic'
  7617. lt_prog_compiler_static='-qstaticlink'
  7618. ;;
  7619. *)
  7620. case `$CC -V 2>&1 | sed 5q` in
  7621. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7622. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7623. lt_prog_compiler_pic='-KPIC'
  7624. lt_prog_compiler_static='-Bstatic'
  7625. lt_prog_compiler_wl=''
  7626. ;;
  7627. *Sun\ F* | *Sun*Fortran*)
  7628. lt_prog_compiler_pic='-KPIC'
  7629. lt_prog_compiler_static='-Bstatic'
  7630. lt_prog_compiler_wl='-Qoption ld '
  7631. ;;
  7632. *Sun\ C*)
  7633. # Sun C 5.9
  7634. lt_prog_compiler_pic='-KPIC'
  7635. lt_prog_compiler_static='-Bstatic'
  7636. lt_prog_compiler_wl='-Wl,'
  7637. ;;
  7638. *Intel*\ [CF]*Compiler*)
  7639. lt_prog_compiler_wl='-Wl,'
  7640. lt_prog_compiler_pic='-fPIC'
  7641. lt_prog_compiler_static='-static'
  7642. ;;
  7643. *Portland\ Group*)
  7644. lt_prog_compiler_wl='-Wl,'
  7645. lt_prog_compiler_pic='-fpic'
  7646. lt_prog_compiler_static='-Bstatic'
  7647. ;;
  7648. esac
  7649. ;;
  7650. esac
  7651. ;;
  7652. newsos6)
  7653. lt_prog_compiler_pic='-KPIC'
  7654. lt_prog_compiler_static='-Bstatic'
  7655. ;;
  7656. *nto* | *qnx*)
  7657. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7658. # it will coredump.
  7659. lt_prog_compiler_pic='-fPIC -shared'
  7660. ;;
  7661. osf3* | osf4* | osf5*)
  7662. lt_prog_compiler_wl='-Wl,'
  7663. # All OSF/1 code is PIC.
  7664. lt_prog_compiler_static='-non_shared'
  7665. ;;
  7666. rdos*)
  7667. lt_prog_compiler_static='-non_shared'
  7668. ;;
  7669. solaris*)
  7670. lt_prog_compiler_pic='-KPIC'
  7671. lt_prog_compiler_static='-Bstatic'
  7672. case $cc_basename in
  7673. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7674. lt_prog_compiler_wl='-Qoption ld ';;
  7675. *)
  7676. lt_prog_compiler_wl='-Wl,';;
  7677. esac
  7678. ;;
  7679. sunos4*)
  7680. lt_prog_compiler_wl='-Qoption ld '
  7681. lt_prog_compiler_pic='-PIC'
  7682. lt_prog_compiler_static='-Bstatic'
  7683. ;;
  7684. sysv4 | sysv4.2uw2* | sysv4.3*)
  7685. lt_prog_compiler_wl='-Wl,'
  7686. lt_prog_compiler_pic='-KPIC'
  7687. lt_prog_compiler_static='-Bstatic'
  7688. ;;
  7689. sysv4*MP*)
  7690. if test -d /usr/nec; then
  7691. lt_prog_compiler_pic='-Kconform_pic'
  7692. lt_prog_compiler_static='-Bstatic'
  7693. fi
  7694. ;;
  7695. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7696. lt_prog_compiler_wl='-Wl,'
  7697. lt_prog_compiler_pic='-KPIC'
  7698. lt_prog_compiler_static='-Bstatic'
  7699. ;;
  7700. unicos*)
  7701. lt_prog_compiler_wl='-Wl,'
  7702. lt_prog_compiler_can_build_shared=no
  7703. ;;
  7704. uts4*)
  7705. lt_prog_compiler_pic='-pic'
  7706. lt_prog_compiler_static='-Bstatic'
  7707. ;;
  7708. *)
  7709. lt_prog_compiler_can_build_shared=no
  7710. ;;
  7711. esac
  7712. fi
  7713. case $host_os in
  7714. # For platforms that do not support PIC, -DPIC is meaningless:
  7715. *djgpp*)
  7716. lt_prog_compiler_pic=
  7717. ;;
  7718. *)
  7719. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7720. ;;
  7721. esac
  7722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7723. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7724. if ${lt_cv_prog_compiler_pic+:} false; then :
  7725. $as_echo_n "(cached) " >&6
  7726. else
  7727. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7728. fi
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7730. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7731. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7732. #
  7733. # Check to make sure the PIC flag actually works.
  7734. #
  7735. if test -n "$lt_prog_compiler_pic"; then
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7737. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7738. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7739. $as_echo_n "(cached) " >&6
  7740. else
  7741. lt_cv_prog_compiler_pic_works=no
  7742. ac_outfile=conftest.$ac_objext
  7743. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7744. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7745. # Insert the option either (1) after the last *FLAGS variable, or
  7746. # (2) before a word containing "conftest.", or (3) at the end.
  7747. # Note that $ac_compile itself does not contain backslashes and begins
  7748. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7749. # The option is referenced via a variable to avoid confusing sed.
  7750. lt_compile=`echo "$ac_compile" | $SED \
  7751. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7752. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7753. -e 's:$: $lt_compiler_flag:'`
  7754. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7755. (eval "$lt_compile" 2>conftest.err)
  7756. ac_status=$?
  7757. cat conftest.err >&5
  7758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7759. if (exit $ac_status) && test -s "$ac_outfile"; then
  7760. # The compiler can only warn and ignore the option if not recognized
  7761. # So say no if there are warnings other than the usual output.
  7762. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7763. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7764. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7765. lt_cv_prog_compiler_pic_works=yes
  7766. fi
  7767. fi
  7768. $RM conftest*
  7769. fi
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7771. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7772. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7773. case $lt_prog_compiler_pic in
  7774. "" | " "*) ;;
  7775. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7776. esac
  7777. else
  7778. lt_prog_compiler_pic=
  7779. lt_prog_compiler_can_build_shared=no
  7780. fi
  7781. fi
  7782. #
  7783. # Check to make sure the static flag actually works.
  7784. #
  7785. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7787. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7788. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7789. $as_echo_n "(cached) " >&6
  7790. else
  7791. lt_cv_prog_compiler_static_works=no
  7792. save_LDFLAGS=$LDFLAGS
  7793. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7794. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7795. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7796. # The linker can only warn and ignore the option if not recognized
  7797. # So say no if there are warnings
  7798. if test -s conftest.err; then
  7799. # Append any errors to the config.log.
  7800. cat conftest.err 1>&5
  7801. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7802. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7803. if diff conftest.exp conftest.er2 >/dev/null; then
  7804. lt_cv_prog_compiler_static_works=yes
  7805. fi
  7806. else
  7807. lt_cv_prog_compiler_static_works=yes
  7808. fi
  7809. fi
  7810. $RM -r conftest*
  7811. LDFLAGS=$save_LDFLAGS
  7812. fi
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7814. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7815. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7816. :
  7817. else
  7818. lt_prog_compiler_static=
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7821. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7822. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7823. $as_echo_n "(cached) " >&6
  7824. else
  7825. lt_cv_prog_compiler_c_o=no
  7826. $RM -r conftest 2>/dev/null
  7827. mkdir conftest
  7828. cd conftest
  7829. mkdir out
  7830. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7831. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7832. # Insert the option either (1) after the last *FLAGS variable, or
  7833. # (2) before a word containing "conftest.", or (3) at the end.
  7834. # Note that $ac_compile itself does not contain backslashes and begins
  7835. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7836. lt_compile=`echo "$ac_compile" | $SED \
  7837. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7838. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7839. -e 's:$: $lt_compiler_flag:'`
  7840. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7841. (eval "$lt_compile" 2>out/conftest.err)
  7842. ac_status=$?
  7843. cat out/conftest.err >&5
  7844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7845. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7846. then
  7847. # The compiler can only warn and ignore the option if not recognized
  7848. # So say no if there are warnings
  7849. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7850. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7851. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7852. lt_cv_prog_compiler_c_o=yes
  7853. fi
  7854. fi
  7855. chmod u+w . 2>&5
  7856. $RM conftest*
  7857. # SGI C++ compiler will create directory out/ii_files/ for
  7858. # template instantiation
  7859. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7860. $RM out/* && rmdir out
  7861. cd ..
  7862. $RM -r conftest
  7863. $RM conftest*
  7864. fi
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7866. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7868. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7869. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7870. $as_echo_n "(cached) " >&6
  7871. else
  7872. lt_cv_prog_compiler_c_o=no
  7873. $RM -r conftest 2>/dev/null
  7874. mkdir conftest
  7875. cd conftest
  7876. mkdir out
  7877. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7878. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7879. # Insert the option either (1) after the last *FLAGS variable, or
  7880. # (2) before a word containing "conftest.", or (3) at the end.
  7881. # Note that $ac_compile itself does not contain backslashes and begins
  7882. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7883. lt_compile=`echo "$ac_compile" | $SED \
  7884. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7885. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7886. -e 's:$: $lt_compiler_flag:'`
  7887. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7888. (eval "$lt_compile" 2>out/conftest.err)
  7889. ac_status=$?
  7890. cat out/conftest.err >&5
  7891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7892. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7893. then
  7894. # The compiler can only warn and ignore the option if not recognized
  7895. # So say no if there are warnings
  7896. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7897. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7898. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7899. lt_cv_prog_compiler_c_o=yes
  7900. fi
  7901. fi
  7902. chmod u+w . 2>&5
  7903. $RM conftest*
  7904. # SGI C++ compiler will create directory out/ii_files/ for
  7905. # template instantiation
  7906. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7907. $RM out/* && rmdir out
  7908. cd ..
  7909. $RM -r conftest
  7910. $RM conftest*
  7911. fi
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7913. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7914. hard_links=nottested
  7915. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7916. # do not overwrite the value of need_locks provided by the user
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7918. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7919. hard_links=yes
  7920. $RM conftest*
  7921. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7922. touch conftest.a
  7923. ln conftest.a conftest.b 2>&5 || hard_links=no
  7924. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7926. $as_echo "$hard_links" >&6; }
  7927. if test no = "$hard_links"; then
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7929. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7930. need_locks=warn
  7931. fi
  7932. else
  7933. need_locks=no
  7934. fi
  7935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7936. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7937. runpath_var=
  7938. allow_undefined_flag=
  7939. always_export_symbols=no
  7940. archive_cmds=
  7941. archive_expsym_cmds=
  7942. compiler_needs_object=no
  7943. enable_shared_with_static_runtimes=no
  7944. export_dynamic_flag_spec=
  7945. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7946. hardcode_automatic=no
  7947. hardcode_direct=no
  7948. hardcode_direct_absolute=no
  7949. hardcode_libdir_flag_spec=
  7950. hardcode_libdir_separator=
  7951. hardcode_minus_L=no
  7952. hardcode_shlibpath_var=unsupported
  7953. inherit_rpath=no
  7954. link_all_deplibs=unknown
  7955. module_cmds=
  7956. module_expsym_cmds=
  7957. old_archive_from_new_cmds=
  7958. old_archive_from_expsyms_cmds=
  7959. thread_safe_flag_spec=
  7960. whole_archive_flag_spec=
  7961. # include_expsyms should be a list of space-separated symbols to be *always*
  7962. # included in the symbol list
  7963. include_expsyms=
  7964. # exclude_expsyms can be an extended regexp of symbols to exclude
  7965. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7966. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7967. # as well as any symbol that contains 'd'.
  7968. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7969. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7970. # platforms (ab)use it in PIC code, but their linkers get confused if
  7971. # the symbol is explicitly referenced. Since portable code cannot
  7972. # rely on this symbol name, it's probably fine to never include it in
  7973. # preloaded symbol tables.
  7974. # Exclude shared library initialization/finalization symbols.
  7975. extract_expsyms_cmds=
  7976. case $host_os in
  7977. cygwin* | mingw* | pw32* | cegcc*)
  7978. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7979. # When not using gcc, we currently assume that we are using
  7980. # Microsoft Visual C++.
  7981. if test yes != "$GCC"; then
  7982. with_gnu_ld=no
  7983. fi
  7984. ;;
  7985. interix*)
  7986. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7987. with_gnu_ld=yes
  7988. ;;
  7989. openbsd* | bitrig*)
  7990. with_gnu_ld=no
  7991. ;;
  7992. esac
  7993. ld_shlibs=yes
  7994. # On some targets, GNU ld is compatible enough with the native linker
  7995. # that we're better off using the native interface for both.
  7996. lt_use_gnu_ld_interface=no
  7997. if test yes = "$with_gnu_ld"; then
  7998. case $host_os in
  7999. aix*)
  8000. # The AIX port of GNU ld has always aspired to compatibility
  8001. # with the native linker. However, as the warning in the GNU ld
  8002. # block says, versions before 2.19.5* couldn't really create working
  8003. # shared libraries, regardless of the interface used.
  8004. case `$LD -v 2>&1` in
  8005. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8006. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8007. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8008. *)
  8009. lt_use_gnu_ld_interface=yes
  8010. ;;
  8011. esac
  8012. ;;
  8013. *)
  8014. lt_use_gnu_ld_interface=yes
  8015. ;;
  8016. esac
  8017. fi
  8018. if test yes = "$lt_use_gnu_ld_interface"; then
  8019. # If archive_cmds runs LD, not CC, wlarc should be empty
  8020. wlarc='$wl'
  8021. # Set some defaults for GNU ld with shared library support. These
  8022. # are reset later if shared libraries are not supported. Putting them
  8023. # here allows them to be overridden if necessary.
  8024. runpath_var=LD_RUN_PATH
  8025. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8026. export_dynamic_flag_spec='$wl--export-dynamic'
  8027. # ancient GNU ld didn't support --whole-archive et. al.
  8028. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8029. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8030. else
  8031. whole_archive_flag_spec=
  8032. fi
  8033. supports_anon_versioning=no
  8034. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8035. *GNU\ gold*) supports_anon_versioning=yes ;;
  8036. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8037. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8038. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8039. *\ 2.11.*) ;; # other 2.11 versions
  8040. *) supports_anon_versioning=yes ;;
  8041. esac
  8042. # See if GNU ld supports shared libraries.
  8043. case $host_os in
  8044. aix[3-9]*)
  8045. # On AIX/PPC, the GNU linker is very broken
  8046. if test ia64 != "$host_cpu"; then
  8047. ld_shlibs=no
  8048. cat <<_LT_EOF 1>&2
  8049. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8050. *** to be unable to reliably create shared libraries on AIX.
  8051. *** Therefore, libtool is disabling shared libraries support. If you
  8052. *** really care for shared libraries, you may want to install binutils
  8053. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8054. *** You will then need to restart the configuration process.
  8055. _LT_EOF
  8056. fi
  8057. ;;
  8058. amigaos*)
  8059. case $host_cpu in
  8060. powerpc)
  8061. # see comment about AmigaOS4 .so support
  8062. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8063. archive_expsym_cmds=''
  8064. ;;
  8065. m68k)
  8066. 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)'
  8067. hardcode_libdir_flag_spec='-L$libdir'
  8068. hardcode_minus_L=yes
  8069. ;;
  8070. esac
  8071. ;;
  8072. beos*)
  8073. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8074. allow_undefined_flag=unsupported
  8075. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8076. # support --undefined. This deserves some investigation. FIXME
  8077. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8078. else
  8079. ld_shlibs=no
  8080. fi
  8081. ;;
  8082. cygwin* | mingw* | pw32* | cegcc*)
  8083. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8084. # as there is no search path for DLLs.
  8085. hardcode_libdir_flag_spec='-L$libdir'
  8086. export_dynamic_flag_spec='$wl--export-all-symbols'
  8087. allow_undefined_flag=unsupported
  8088. always_export_symbols=no
  8089. enable_shared_with_static_runtimes=yes
  8090. 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'
  8091. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8092. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8093. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8094. # If the export-symbols file already is a .def file, use it as
  8095. # is; otherwise, prepend EXPORTS...
  8096. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8097. cp $export_symbols $output_objdir/$soname.def;
  8098. else
  8099. echo EXPORTS > $output_objdir/$soname.def;
  8100. cat $export_symbols >> $output_objdir/$soname.def;
  8101. fi~
  8102. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8103. else
  8104. ld_shlibs=no
  8105. fi
  8106. ;;
  8107. haiku*)
  8108. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8109. link_all_deplibs=yes
  8110. ;;
  8111. os2*)
  8112. hardcode_libdir_flag_spec='-L$libdir'
  8113. hardcode_minus_L=yes
  8114. allow_undefined_flag=unsupported
  8115. shrext_cmds=.dll
  8116. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8117. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8118. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8119. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8120. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8121. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8122. emximp -o $lib $output_objdir/$libname.def'
  8123. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8124. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8125. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8126. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8127. prefix_cmds="$SED"~
  8128. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8129. prefix_cmds="$prefix_cmds -e 1d";
  8130. fi~
  8131. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8132. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8133. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8134. emximp -o $lib $output_objdir/$libname.def'
  8135. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8136. enable_shared_with_static_runtimes=yes
  8137. ;;
  8138. interix[3-9]*)
  8139. hardcode_direct=no
  8140. hardcode_shlibpath_var=no
  8141. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8142. export_dynamic_flag_spec='$wl-E'
  8143. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8144. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8145. # default) and relocated if they conflict, which is a slow very memory
  8146. # consuming and fragmenting process. To avoid this, we pick a random,
  8147. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8148. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8149. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8150. 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'
  8151. ;;
  8152. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8153. tmp_diet=no
  8154. if test linux-dietlibc = "$host_os"; then
  8155. case $cc_basename in
  8156. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8157. esac
  8158. fi
  8159. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8160. && test no = "$tmp_diet"
  8161. then
  8162. tmp_addflag=' $pic_flag'
  8163. tmp_sharedflag='-shared'
  8164. case $cc_basename,$host_cpu in
  8165. pgcc*) # Portland Group C compiler
  8166. 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'
  8167. tmp_addflag=' $pic_flag'
  8168. ;;
  8169. pgf77* | pgf90* | pgf95* | pgfortran*)
  8170. # Portland Group f77 and f90 compilers
  8171. 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'
  8172. tmp_addflag=' $pic_flag -Mnomain' ;;
  8173. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8174. tmp_addflag=' -i_dynamic' ;;
  8175. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8176. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8177. ifc* | ifort*) # Intel Fortran compiler
  8178. tmp_addflag=' -nofor_main' ;;
  8179. lf95*) # Lahey Fortran 8.1
  8180. whole_archive_flag_spec=
  8181. tmp_sharedflag='--shared' ;;
  8182. nagfor*) # NAGFOR 5.3
  8183. tmp_sharedflag='-Wl,-shared' ;;
  8184. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8185. tmp_sharedflag='-qmkshrobj'
  8186. tmp_addflag= ;;
  8187. nvcc*) # Cuda Compiler Driver 2.2
  8188. 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'
  8189. compiler_needs_object=yes
  8190. ;;
  8191. esac
  8192. case `$CC -V 2>&1 | sed 5q` in
  8193. *Sun\ C*) # Sun C 5.9
  8194. 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'
  8195. compiler_needs_object=yes
  8196. tmp_sharedflag='-G' ;;
  8197. *Sun\ F*) # Sun Fortran 8.3
  8198. tmp_sharedflag='-G' ;;
  8199. esac
  8200. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8201. if test yes = "$supports_anon_versioning"; then
  8202. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8203. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8204. echo "local: *; };" >> $output_objdir/$libname.ver~
  8205. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8206. fi
  8207. case $cc_basename in
  8208. tcc*)
  8209. export_dynamic_flag_spec='-rdynamic'
  8210. ;;
  8211. xlf* | bgf* | bgxlf* | mpixlf*)
  8212. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8213. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8214. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8215. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8216. if test yes = "$supports_anon_versioning"; then
  8217. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8218. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8219. echo "local: *; };" >> $output_objdir/$libname.ver~
  8220. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8221. fi
  8222. ;;
  8223. esac
  8224. else
  8225. ld_shlibs=no
  8226. fi
  8227. ;;
  8228. netbsd*)
  8229. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8230. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8231. wlarc=
  8232. else
  8233. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8234. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8235. fi
  8236. ;;
  8237. solaris*)
  8238. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8239. ld_shlibs=no
  8240. cat <<_LT_EOF 1>&2
  8241. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8242. *** create shared libraries on Solaris systems. Therefore, libtool
  8243. *** is disabling shared libraries support. We urge you to upgrade GNU
  8244. *** binutils to release 2.9.1 or newer. Another option is to modify
  8245. *** your PATH or compiler configuration so that the native linker is
  8246. *** used, and then restart.
  8247. _LT_EOF
  8248. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8249. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8250. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8251. else
  8252. ld_shlibs=no
  8253. fi
  8254. ;;
  8255. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8256. case `$LD -v 2>&1` in
  8257. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8258. ld_shlibs=no
  8259. cat <<_LT_EOF 1>&2
  8260. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8261. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8262. *** is disabling shared libraries support. We urge you to upgrade GNU
  8263. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8264. *** your PATH or compiler configuration so that the native linker is
  8265. *** used, and then restart.
  8266. _LT_EOF
  8267. ;;
  8268. *)
  8269. # For security reasons, it is highly recommended that you always
  8270. # use absolute paths for naming shared libraries, and exclude the
  8271. # DT_RUNPATH tag from executables and libraries. But doing so
  8272. # requires that you compile everything twice, which is a pain.
  8273. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8274. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8275. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8276. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8277. else
  8278. ld_shlibs=no
  8279. fi
  8280. ;;
  8281. esac
  8282. ;;
  8283. sunos4*)
  8284. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8285. wlarc=
  8286. hardcode_direct=yes
  8287. hardcode_shlibpath_var=no
  8288. ;;
  8289. *)
  8290. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8291. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8292. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8293. else
  8294. ld_shlibs=no
  8295. fi
  8296. ;;
  8297. esac
  8298. if test no = "$ld_shlibs"; then
  8299. runpath_var=
  8300. hardcode_libdir_flag_spec=
  8301. export_dynamic_flag_spec=
  8302. whole_archive_flag_spec=
  8303. fi
  8304. else
  8305. # PORTME fill in a description of your system's linker (not GNU ld)
  8306. case $host_os in
  8307. aix3*)
  8308. allow_undefined_flag=unsupported
  8309. always_export_symbols=yes
  8310. 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'
  8311. # Note: this linker hardcodes the directories in LIBPATH if there
  8312. # are no directories specified by -L.
  8313. hardcode_minus_L=yes
  8314. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8315. # Neither direct hardcoding nor static linking is supported with a
  8316. # broken collect2.
  8317. hardcode_direct=unsupported
  8318. fi
  8319. ;;
  8320. aix[4-9]*)
  8321. if test ia64 = "$host_cpu"; then
  8322. # On IA64, the linker does run time linking by default, so we don't
  8323. # have to do anything special.
  8324. aix_use_runtimelinking=no
  8325. exp_sym_flag='-Bexport'
  8326. no_entry_flag=
  8327. else
  8328. # If we're using GNU nm, then we don't want the "-C" option.
  8329. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8330. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8331. # weak defined symbols like other global defined symbols, whereas
  8332. # GNU nm marks them as "W".
  8333. # While the 'weak' keyword is ignored in the Export File, we need
  8334. # it in the Import File for the 'aix-soname' feature, so we have
  8335. # to replace the "-B" option with "-P" for AIX nm.
  8336. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8337. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8338. else
  8339. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8340. fi
  8341. aix_use_runtimelinking=no
  8342. # Test if we are trying to use run time linking or normal
  8343. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8344. # have runtime linking enabled, and use it for executables.
  8345. # For shared libraries, we enable/disable runtime linking
  8346. # depending on the kind of the shared library created -
  8347. # when "with_aix_soname,aix_use_runtimelinking" is:
  8348. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8349. # "aix,yes" lib.so shared, rtl:yes, for executables
  8350. # lib.a static archive
  8351. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8352. # lib.a(lib.so.V) shared, rtl:no, for executables
  8353. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8354. # lib.a(lib.so.V) shared, rtl:no
  8355. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8356. # lib.a static archive
  8357. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8358. for ld_flag in $LDFLAGS; do
  8359. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8360. aix_use_runtimelinking=yes
  8361. break
  8362. fi
  8363. done
  8364. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8365. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8366. # so we don't have lib.a shared libs to link our executables.
  8367. # We have to force runtime linking in this case.
  8368. aix_use_runtimelinking=yes
  8369. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8370. fi
  8371. ;;
  8372. esac
  8373. exp_sym_flag='-bexport'
  8374. no_entry_flag='-bnoentry'
  8375. fi
  8376. # When large executables or shared objects are built, AIX ld can
  8377. # have problems creating the table of contents. If linking a library
  8378. # or program results in "error TOC overflow" add -mminimal-toc to
  8379. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8380. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8381. archive_cmds=''
  8382. hardcode_direct=yes
  8383. hardcode_direct_absolute=yes
  8384. hardcode_libdir_separator=':'
  8385. link_all_deplibs=yes
  8386. file_list_spec='$wl-f,'
  8387. case $with_aix_soname,$aix_use_runtimelinking in
  8388. aix,*) ;; # traditional, no import file
  8389. svr4,* | *,yes) # use import file
  8390. # The Import File defines what to hardcode.
  8391. hardcode_direct=no
  8392. hardcode_direct_absolute=no
  8393. ;;
  8394. esac
  8395. if test yes = "$GCC"; then
  8396. case $host_os in aix4.[012]|aix4.[012].*)
  8397. # We only want to do this on AIX 4.2 and lower, the check
  8398. # below for broken collect2 doesn't work under 4.3+
  8399. collect2name=`$CC -print-prog-name=collect2`
  8400. if test -f "$collect2name" &&
  8401. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8402. then
  8403. # We have reworked collect2
  8404. :
  8405. else
  8406. # We have old collect2
  8407. hardcode_direct=unsupported
  8408. # It fails to find uninstalled libraries when the uninstalled
  8409. # path is not listed in the libpath. Setting hardcode_minus_L
  8410. # to unsupported forces relinking
  8411. hardcode_minus_L=yes
  8412. hardcode_libdir_flag_spec='-L$libdir'
  8413. hardcode_libdir_separator=
  8414. fi
  8415. ;;
  8416. esac
  8417. shared_flag='-shared'
  8418. if test yes = "$aix_use_runtimelinking"; then
  8419. shared_flag="$shared_flag "'$wl-G'
  8420. fi
  8421. # Need to ensure runtime linking is disabled for the traditional
  8422. # shared library, or the linker may eventually find shared libraries
  8423. # /with/ Import File - we do not want to mix them.
  8424. shared_flag_aix='-shared'
  8425. shared_flag_svr4='-shared $wl-G'
  8426. else
  8427. # not using gcc
  8428. if test ia64 = "$host_cpu"; then
  8429. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8430. # chokes on -Wl,-G. The following line is correct:
  8431. shared_flag='-G'
  8432. else
  8433. if test yes = "$aix_use_runtimelinking"; then
  8434. shared_flag='$wl-G'
  8435. else
  8436. shared_flag='$wl-bM:SRE'
  8437. fi
  8438. shared_flag_aix='$wl-bM:SRE'
  8439. shared_flag_svr4='$wl-G'
  8440. fi
  8441. fi
  8442. export_dynamic_flag_spec='$wl-bexpall'
  8443. # It seems that -bexpall does not export symbols beginning with
  8444. # underscore (_), so it is better to generate a list of symbols to export.
  8445. always_export_symbols=yes
  8446. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8447. # Warning - without using the other runtime loading flags (-brtl),
  8448. # -berok will link without error, but may produce a broken library.
  8449. allow_undefined_flag='-berok'
  8450. # Determine the default libpath from the value encoded in an
  8451. # empty executable.
  8452. if test set = "${lt_cv_aix_libpath+set}"; then
  8453. aix_libpath=$lt_cv_aix_libpath
  8454. else
  8455. if ${lt_cv_aix_libpath_+:} false; then :
  8456. $as_echo_n "(cached) " >&6
  8457. else
  8458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8459. /* end confdefs.h. */
  8460. int
  8461. main ()
  8462. {
  8463. ;
  8464. return 0;
  8465. }
  8466. _ACEOF
  8467. if ac_fn_c_try_link "$LINENO"; then :
  8468. lt_aix_libpath_sed='
  8469. /Import File Strings/,/^$/ {
  8470. /^0/ {
  8471. s/^0 *\([^ ]*\) *$/\1/
  8472. p
  8473. }
  8474. }'
  8475. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8476. # Check for a 64-bit object if we didn't find anything.
  8477. if test -z "$lt_cv_aix_libpath_"; then
  8478. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8479. fi
  8480. fi
  8481. rm -f core conftest.err conftest.$ac_objext \
  8482. conftest$ac_exeext conftest.$ac_ext
  8483. if test -z "$lt_cv_aix_libpath_"; then
  8484. lt_cv_aix_libpath_=/usr/lib:/lib
  8485. fi
  8486. fi
  8487. aix_libpath=$lt_cv_aix_libpath_
  8488. fi
  8489. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8490. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8491. else
  8492. if test ia64 = "$host_cpu"; then
  8493. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8494. allow_undefined_flag="-z nodefs"
  8495. 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"
  8496. else
  8497. # Determine the default libpath from the value encoded in an
  8498. # empty executable.
  8499. if test set = "${lt_cv_aix_libpath+set}"; then
  8500. aix_libpath=$lt_cv_aix_libpath
  8501. else
  8502. if ${lt_cv_aix_libpath_+:} false; then :
  8503. $as_echo_n "(cached) " >&6
  8504. else
  8505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8506. /* end confdefs.h. */
  8507. int
  8508. main ()
  8509. {
  8510. ;
  8511. return 0;
  8512. }
  8513. _ACEOF
  8514. if ac_fn_c_try_link "$LINENO"; then :
  8515. lt_aix_libpath_sed='
  8516. /Import File Strings/,/^$/ {
  8517. /^0/ {
  8518. s/^0 *\([^ ]*\) *$/\1/
  8519. p
  8520. }
  8521. }'
  8522. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8523. # Check for a 64-bit object if we didn't find anything.
  8524. if test -z "$lt_cv_aix_libpath_"; then
  8525. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8526. fi
  8527. fi
  8528. rm -f core conftest.err conftest.$ac_objext \
  8529. conftest$ac_exeext conftest.$ac_ext
  8530. if test -z "$lt_cv_aix_libpath_"; then
  8531. lt_cv_aix_libpath_=/usr/lib:/lib
  8532. fi
  8533. fi
  8534. aix_libpath=$lt_cv_aix_libpath_
  8535. fi
  8536. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8537. # Warning - without using the other run time loading flags,
  8538. # -berok will link without error, but may produce a broken library.
  8539. no_undefined_flag=' $wl-bernotok'
  8540. allow_undefined_flag=' $wl-berok'
  8541. if test yes = "$with_gnu_ld"; then
  8542. # We only use this code for GNU lds that support --whole-archive.
  8543. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8544. else
  8545. # Exported symbols can be pulled into shared objects from archives
  8546. whole_archive_flag_spec='$convenience'
  8547. fi
  8548. archive_cmds_need_lc=yes
  8549. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8550. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8551. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8552. if test svr4 != "$with_aix_soname"; then
  8553. # This is similar to how AIX traditionally builds its shared libraries.
  8554. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8555. fi
  8556. if test aix != "$with_aix_soname"; then
  8557. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8558. else
  8559. # used by -dlpreopen to get the symbols
  8560. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8561. fi
  8562. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8563. fi
  8564. fi
  8565. ;;
  8566. amigaos*)
  8567. case $host_cpu in
  8568. powerpc)
  8569. # see comment about AmigaOS4 .so support
  8570. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8571. archive_expsym_cmds=''
  8572. ;;
  8573. m68k)
  8574. 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)'
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_minus_L=yes
  8577. ;;
  8578. esac
  8579. ;;
  8580. bsdi[45]*)
  8581. export_dynamic_flag_spec=-rdynamic
  8582. ;;
  8583. cygwin* | mingw* | pw32* | cegcc*)
  8584. # When not using gcc, we currently assume that we are using
  8585. # Microsoft Visual C++.
  8586. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8587. # no search path for DLLs.
  8588. case $cc_basename in
  8589. cl*)
  8590. # Native MSVC
  8591. hardcode_libdir_flag_spec=' '
  8592. allow_undefined_flag=unsupported
  8593. always_export_symbols=yes
  8594. file_list_spec='@'
  8595. # Tell ltmain to make .lib files, not .a files.
  8596. libext=lib
  8597. # Tell ltmain to make .dll files, not .so files.
  8598. shrext_cmds=.dll
  8599. # FIXME: Setting linknames here is a bad hack.
  8600. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8601. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8602. cp "$export_symbols" "$output_objdir/$soname.def";
  8603. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8604. else
  8605. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8606. fi~
  8607. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8608. linknames='
  8609. # The linker will not automatically build a static lib if we build a DLL.
  8610. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8611. enable_shared_with_static_runtimes=yes
  8612. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8613. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8614. # Don't use ranlib
  8615. old_postinstall_cmds='chmod 644 $oldlib'
  8616. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8617. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8618. case $lt_outputfile in
  8619. *.exe|*.EXE) ;;
  8620. *)
  8621. lt_outputfile=$lt_outputfile.exe
  8622. lt_tool_outputfile=$lt_tool_outputfile.exe
  8623. ;;
  8624. esac~
  8625. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8626. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8627. $RM "$lt_outputfile.manifest";
  8628. fi'
  8629. ;;
  8630. *)
  8631. # Assume MSVC wrapper
  8632. hardcode_libdir_flag_spec=' '
  8633. allow_undefined_flag=unsupported
  8634. # Tell ltmain to make .lib files, not .a files.
  8635. libext=lib
  8636. # Tell ltmain to make .dll files, not .so files.
  8637. shrext_cmds=.dll
  8638. # FIXME: Setting linknames here is a bad hack.
  8639. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8640. # The linker will automatically build a .lib file if we build a DLL.
  8641. old_archive_from_new_cmds='true'
  8642. # FIXME: Should let the user specify the lib program.
  8643. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8644. enable_shared_with_static_runtimes=yes
  8645. ;;
  8646. esac
  8647. ;;
  8648. darwin* | rhapsody*)
  8649. archive_cmds_need_lc=no
  8650. hardcode_direct=no
  8651. hardcode_automatic=yes
  8652. hardcode_shlibpath_var=unsupported
  8653. if test yes = "$lt_cv_ld_force_load"; then
  8654. 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\"`'
  8655. else
  8656. whole_archive_flag_spec=''
  8657. fi
  8658. link_all_deplibs=yes
  8659. allow_undefined_flag=$_lt_dar_allow_undefined
  8660. case $cc_basename in
  8661. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8662. *) _lt_dar_can_shared=$GCC ;;
  8663. esac
  8664. if test yes = "$_lt_dar_can_shared"; then
  8665. output_verbose_link_cmd=func_echo_all
  8666. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8667. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8668. 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"
  8669. 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"
  8670. else
  8671. ld_shlibs=no
  8672. fi
  8673. ;;
  8674. dgux*)
  8675. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8676. hardcode_libdir_flag_spec='-L$libdir'
  8677. hardcode_shlibpath_var=no
  8678. ;;
  8679. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8680. # support. Future versions do this automatically, but an explicit c++rt0.o
  8681. # does not break anything, and helps significantly (at the cost of a little
  8682. # extra space).
  8683. freebsd2.2*)
  8684. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8685. hardcode_libdir_flag_spec='-R$libdir'
  8686. hardcode_direct=yes
  8687. hardcode_shlibpath_var=no
  8688. ;;
  8689. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8690. freebsd2.*)
  8691. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8692. hardcode_direct=yes
  8693. hardcode_minus_L=yes
  8694. hardcode_shlibpath_var=no
  8695. ;;
  8696. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8697. freebsd* | dragonfly*)
  8698. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8699. hardcode_libdir_flag_spec='-R$libdir'
  8700. hardcode_direct=yes
  8701. hardcode_shlibpath_var=no
  8702. ;;
  8703. hpux9*)
  8704. if test yes = "$GCC"; then
  8705. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8706. else
  8707. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8708. fi
  8709. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8710. hardcode_libdir_separator=:
  8711. hardcode_direct=yes
  8712. # hardcode_minus_L: Not really in the search PATH,
  8713. # but as the default location of the library.
  8714. hardcode_minus_L=yes
  8715. export_dynamic_flag_spec='$wl-E'
  8716. ;;
  8717. hpux10*)
  8718. if test yes,no = "$GCC,$with_gnu_ld"; then
  8719. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8720. else
  8721. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8722. fi
  8723. if test no = "$with_gnu_ld"; then
  8724. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8725. hardcode_libdir_separator=:
  8726. hardcode_direct=yes
  8727. hardcode_direct_absolute=yes
  8728. export_dynamic_flag_spec='$wl-E'
  8729. # hardcode_minus_L: Not really in the search PATH,
  8730. # but as the default location of the library.
  8731. hardcode_minus_L=yes
  8732. fi
  8733. ;;
  8734. hpux11*)
  8735. if test yes,no = "$GCC,$with_gnu_ld"; then
  8736. case $host_cpu in
  8737. hppa*64*)
  8738. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8739. ;;
  8740. ia64*)
  8741. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8742. ;;
  8743. *)
  8744. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8745. ;;
  8746. esac
  8747. else
  8748. case $host_cpu in
  8749. hppa*64*)
  8750. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8751. ;;
  8752. ia64*)
  8753. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8754. ;;
  8755. *)
  8756. # Older versions of the 11.00 compiler do not understand -b yet
  8757. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8759. $as_echo_n "checking if $CC understands -b... " >&6; }
  8760. if ${lt_cv_prog_compiler__b+:} false; then :
  8761. $as_echo_n "(cached) " >&6
  8762. else
  8763. lt_cv_prog_compiler__b=no
  8764. save_LDFLAGS=$LDFLAGS
  8765. LDFLAGS="$LDFLAGS -b"
  8766. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8767. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8768. # The linker can only warn and ignore the option if not recognized
  8769. # So say no if there are warnings
  8770. if test -s conftest.err; then
  8771. # Append any errors to the config.log.
  8772. cat conftest.err 1>&5
  8773. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8774. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8775. if diff conftest.exp conftest.er2 >/dev/null; then
  8776. lt_cv_prog_compiler__b=yes
  8777. fi
  8778. else
  8779. lt_cv_prog_compiler__b=yes
  8780. fi
  8781. fi
  8782. $RM -r conftest*
  8783. LDFLAGS=$save_LDFLAGS
  8784. fi
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8786. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8787. if test yes = "$lt_cv_prog_compiler__b"; then
  8788. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8789. else
  8790. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8791. fi
  8792. ;;
  8793. esac
  8794. fi
  8795. if test no = "$with_gnu_ld"; then
  8796. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8797. hardcode_libdir_separator=:
  8798. case $host_cpu in
  8799. hppa*64*|ia64*)
  8800. hardcode_direct=no
  8801. hardcode_shlibpath_var=no
  8802. ;;
  8803. *)
  8804. hardcode_direct=yes
  8805. hardcode_direct_absolute=yes
  8806. export_dynamic_flag_spec='$wl-E'
  8807. # hardcode_minus_L: Not really in the search PATH,
  8808. # but as the default location of the library.
  8809. hardcode_minus_L=yes
  8810. ;;
  8811. esac
  8812. fi
  8813. ;;
  8814. irix5* | irix6* | nonstopux*)
  8815. if test yes = "$GCC"; then
  8816. 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'
  8817. # Try to use the -exported_symbol ld option, if it does not
  8818. # work, assume that -exports_file does not work either and
  8819. # implicitly export all symbols.
  8820. # This should be the same for all languages, so no per-tag cache variable.
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8822. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8823. if ${lt_cv_irix_exported_symbol+:} false; then :
  8824. $as_echo_n "(cached) " >&6
  8825. else
  8826. save_LDFLAGS=$LDFLAGS
  8827. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8829. /* end confdefs.h. */
  8830. int foo (void) { return 0; }
  8831. _ACEOF
  8832. if ac_fn_c_try_link "$LINENO"; then :
  8833. lt_cv_irix_exported_symbol=yes
  8834. else
  8835. lt_cv_irix_exported_symbol=no
  8836. fi
  8837. rm -f core conftest.err conftest.$ac_objext \
  8838. conftest$ac_exeext conftest.$ac_ext
  8839. LDFLAGS=$save_LDFLAGS
  8840. fi
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8842. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8843. if test yes = "$lt_cv_irix_exported_symbol"; then
  8844. 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'
  8845. fi
  8846. else
  8847. 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'
  8848. 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'
  8849. fi
  8850. archive_cmds_need_lc='no'
  8851. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8852. hardcode_libdir_separator=:
  8853. inherit_rpath=yes
  8854. link_all_deplibs=yes
  8855. ;;
  8856. linux*)
  8857. case $cc_basename in
  8858. tcc*)
  8859. # Fabrice Bellard et al's Tiny C Compiler
  8860. ld_shlibs=yes
  8861. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8862. ;;
  8863. esac
  8864. ;;
  8865. netbsd*)
  8866. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8867. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8868. else
  8869. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8870. fi
  8871. hardcode_libdir_flag_spec='-R$libdir'
  8872. hardcode_direct=yes
  8873. hardcode_shlibpath_var=no
  8874. ;;
  8875. newsos6)
  8876. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8877. hardcode_direct=yes
  8878. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8879. hardcode_libdir_separator=:
  8880. hardcode_shlibpath_var=no
  8881. ;;
  8882. *nto* | *qnx*)
  8883. ;;
  8884. openbsd* | bitrig*)
  8885. if test -f /usr/libexec/ld.so; then
  8886. hardcode_direct=yes
  8887. hardcode_shlibpath_var=no
  8888. hardcode_direct_absolute=yes
  8889. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8890. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8891. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8892. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8893. export_dynamic_flag_spec='$wl-E'
  8894. else
  8895. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8896. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8897. fi
  8898. else
  8899. ld_shlibs=no
  8900. fi
  8901. ;;
  8902. os2*)
  8903. hardcode_libdir_flag_spec='-L$libdir'
  8904. hardcode_minus_L=yes
  8905. allow_undefined_flag=unsupported
  8906. shrext_cmds=.dll
  8907. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8908. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8909. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8910. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8911. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8912. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8913. emximp -o $lib $output_objdir/$libname.def'
  8914. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8915. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8916. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8917. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8918. prefix_cmds="$SED"~
  8919. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8920. prefix_cmds="$prefix_cmds -e 1d";
  8921. fi~
  8922. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8923. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8924. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8925. emximp -o $lib $output_objdir/$libname.def'
  8926. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8927. enable_shared_with_static_runtimes=yes
  8928. ;;
  8929. osf3*)
  8930. if test yes = "$GCC"; then
  8931. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8932. 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'
  8933. else
  8934. allow_undefined_flag=' -expect_unresolved \*'
  8935. 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'
  8936. fi
  8937. archive_cmds_need_lc='no'
  8938. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8939. hardcode_libdir_separator=:
  8940. ;;
  8941. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8942. if test yes = "$GCC"; then
  8943. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8944. 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'
  8945. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8946. else
  8947. allow_undefined_flag=' -expect_unresolved \*'
  8948. 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'
  8949. 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~
  8950. $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'
  8951. # Both c and cxx compiler support -rpath directly
  8952. hardcode_libdir_flag_spec='-rpath $libdir'
  8953. fi
  8954. archive_cmds_need_lc='no'
  8955. hardcode_libdir_separator=:
  8956. ;;
  8957. solaris*)
  8958. no_undefined_flag=' -z defs'
  8959. if test yes = "$GCC"; then
  8960. wlarc='$wl'
  8961. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8962. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8963. $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'
  8964. else
  8965. case `$CC -V 2>&1` in
  8966. *"Compilers 5.0"*)
  8967. wlarc=''
  8968. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8969. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8970. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8971. ;;
  8972. *)
  8973. wlarc='$wl'
  8974. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8975. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8976. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8977. ;;
  8978. esac
  8979. fi
  8980. hardcode_libdir_flag_spec='-R$libdir'
  8981. hardcode_shlibpath_var=no
  8982. case $host_os in
  8983. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8984. *)
  8985. # The compiler driver will combine and reorder linker options,
  8986. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8987. # but is careful enough not to reorder.
  8988. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8989. if test yes = "$GCC"; then
  8990. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8991. else
  8992. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8993. fi
  8994. ;;
  8995. esac
  8996. link_all_deplibs=yes
  8997. ;;
  8998. sunos4*)
  8999. if test sequent = "$host_vendor"; then
  9000. # Use $CC to link under sequent, because it throws in some extra .o
  9001. # files that make .init and .fini sections work.
  9002. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9003. else
  9004. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9005. fi
  9006. hardcode_libdir_flag_spec='-L$libdir'
  9007. hardcode_direct=yes
  9008. hardcode_minus_L=yes
  9009. hardcode_shlibpath_var=no
  9010. ;;
  9011. sysv4)
  9012. case $host_vendor in
  9013. sni)
  9014. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9015. hardcode_direct=yes # is this really true???
  9016. ;;
  9017. siemens)
  9018. ## LD is ld it makes a PLAMLIB
  9019. ## CC just makes a GrossModule.
  9020. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9021. reload_cmds='$CC -r -o $output$reload_objs'
  9022. hardcode_direct=no
  9023. ;;
  9024. motorola)
  9025. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9026. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9027. ;;
  9028. esac
  9029. runpath_var='LD_RUN_PATH'
  9030. hardcode_shlibpath_var=no
  9031. ;;
  9032. sysv4.3*)
  9033. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9034. hardcode_shlibpath_var=no
  9035. export_dynamic_flag_spec='-Bexport'
  9036. ;;
  9037. sysv4*MP*)
  9038. if test -d /usr/nec; then
  9039. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9040. hardcode_shlibpath_var=no
  9041. runpath_var=LD_RUN_PATH
  9042. hardcode_runpath_var=yes
  9043. ld_shlibs=yes
  9044. fi
  9045. ;;
  9046. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9047. no_undefined_flag='$wl-z,text'
  9048. archive_cmds_need_lc=no
  9049. hardcode_shlibpath_var=no
  9050. runpath_var='LD_RUN_PATH'
  9051. if test yes = "$GCC"; then
  9052. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9053. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9054. else
  9055. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9056. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9057. fi
  9058. ;;
  9059. sysv5* | sco3.2v5* | sco5v6*)
  9060. # Note: We CANNOT use -z defs as we might desire, because we do not
  9061. # link with -lc, and that would cause any symbols used from libc to
  9062. # always be unresolved, which means just about no library would
  9063. # ever link correctly. If we're not using GNU ld we use -z text
  9064. # though, which does catch some bad symbols but isn't as heavy-handed
  9065. # as -z defs.
  9066. no_undefined_flag='$wl-z,text'
  9067. allow_undefined_flag='$wl-z,nodefs'
  9068. archive_cmds_need_lc=no
  9069. hardcode_shlibpath_var=no
  9070. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9071. hardcode_libdir_separator=':'
  9072. link_all_deplibs=yes
  9073. export_dynamic_flag_spec='$wl-Bexport'
  9074. runpath_var='LD_RUN_PATH'
  9075. if test yes = "$GCC"; then
  9076. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9077. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9078. else
  9079. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9080. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9081. fi
  9082. ;;
  9083. uts4*)
  9084. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9085. hardcode_libdir_flag_spec='-L$libdir'
  9086. hardcode_shlibpath_var=no
  9087. ;;
  9088. *)
  9089. ld_shlibs=no
  9090. ;;
  9091. esac
  9092. if test sni = "$host_vendor"; then
  9093. case $host in
  9094. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9095. export_dynamic_flag_spec='$wl-Blargedynsym'
  9096. ;;
  9097. esac
  9098. fi
  9099. fi
  9100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9101. $as_echo "$ld_shlibs" >&6; }
  9102. test no = "$ld_shlibs" && can_build_shared=no
  9103. with_gnu_ld=$with_gnu_ld
  9104. #
  9105. # Do we need to explicitly link libc?
  9106. #
  9107. case "x$archive_cmds_need_lc" in
  9108. x|xyes)
  9109. # Assume -lc should be added
  9110. archive_cmds_need_lc=yes
  9111. if test yes,yes = "$GCC,$enable_shared"; then
  9112. case $archive_cmds in
  9113. *'~'*)
  9114. # FIXME: we may have to deal with multi-command sequences.
  9115. ;;
  9116. '$CC '*)
  9117. # Test whether the compiler implicitly links with -lc since on some
  9118. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9119. # to ld, don't add -lc before -lgcc.
  9120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9121. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9122. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9123. $as_echo_n "(cached) " >&6
  9124. else
  9125. $RM conftest*
  9126. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9127. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9128. (eval $ac_compile) 2>&5
  9129. ac_status=$?
  9130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9131. test $ac_status = 0; } 2>conftest.err; then
  9132. soname=conftest
  9133. lib=conftest
  9134. libobjs=conftest.$ac_objext
  9135. deplibs=
  9136. wl=$lt_prog_compiler_wl
  9137. pic_flag=$lt_prog_compiler_pic
  9138. compiler_flags=-v
  9139. linker_flags=-v
  9140. verstring=
  9141. output_objdir=.
  9142. libname=conftest
  9143. lt_save_allow_undefined_flag=$allow_undefined_flag
  9144. allow_undefined_flag=
  9145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9146. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9147. ac_status=$?
  9148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9149. test $ac_status = 0; }
  9150. then
  9151. lt_cv_archive_cmds_need_lc=no
  9152. else
  9153. lt_cv_archive_cmds_need_lc=yes
  9154. fi
  9155. allow_undefined_flag=$lt_save_allow_undefined_flag
  9156. else
  9157. cat conftest.err 1>&5
  9158. fi
  9159. $RM conftest*
  9160. fi
  9161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9162. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9163. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9164. ;;
  9165. esac
  9166. fi
  9167. ;;
  9168. esac
  9169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9170. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9171. if test yes = "$GCC"; then
  9172. case $host_os in
  9173. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9174. *) lt_awk_arg='/^libraries:/' ;;
  9175. esac
  9176. case $host_os in
  9177. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9178. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9179. esac
  9180. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9181. case $lt_search_path_spec in
  9182. *\;*)
  9183. # if the path contains ";" then we assume it to be the separator
  9184. # otherwise default to the standard path separator (i.e. ":") - it is
  9185. # assumed that no part of a normal pathname contains ";" but that should
  9186. # okay in the real world where ";" in dirpaths is itself problematic.
  9187. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9188. ;;
  9189. *)
  9190. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9191. ;;
  9192. esac
  9193. # Ok, now we have the path, separated by spaces, we can step through it
  9194. # and add multilib dir if necessary...
  9195. lt_tmp_lt_search_path_spec=
  9196. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9197. # ...but if some path component already ends with the multilib dir we assume
  9198. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9199. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9200. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9201. lt_multi_os_dir=
  9202. ;;
  9203. esac
  9204. for lt_sys_path in $lt_search_path_spec; do
  9205. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9206. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9207. elif test -n "$lt_multi_os_dir"; then
  9208. test -d "$lt_sys_path" && \
  9209. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9210. fi
  9211. done
  9212. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9213. BEGIN {RS = " "; FS = "/|\n";} {
  9214. lt_foo = "";
  9215. lt_count = 0;
  9216. for (lt_i = NF; lt_i > 0; lt_i--) {
  9217. if ($lt_i != "" && $lt_i != ".") {
  9218. if ($lt_i == "..") {
  9219. lt_count++;
  9220. } else {
  9221. if (lt_count == 0) {
  9222. lt_foo = "/" $lt_i lt_foo;
  9223. } else {
  9224. lt_count--;
  9225. }
  9226. }
  9227. }
  9228. }
  9229. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9230. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9231. }'`
  9232. # AWK program above erroneously prepends '/' to C:/dos/paths
  9233. # for these hosts.
  9234. case $host_os in
  9235. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9236. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9237. esac
  9238. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9239. else
  9240. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9241. fi
  9242. library_names_spec=
  9243. libname_spec='lib$name'
  9244. soname_spec=
  9245. shrext_cmds=.so
  9246. postinstall_cmds=
  9247. postuninstall_cmds=
  9248. finish_cmds=
  9249. finish_eval=
  9250. shlibpath_var=
  9251. shlibpath_overrides_runpath=unknown
  9252. version_type=none
  9253. dynamic_linker="$host_os ld.so"
  9254. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9255. need_lib_prefix=unknown
  9256. hardcode_into_libs=no
  9257. # when you set need_version to no, make sure it does not cause -set_version
  9258. # flags to be left without arguments
  9259. need_version=unknown
  9260. case $host_os in
  9261. aix3*)
  9262. version_type=linux # correct to gnu/linux during the next big refactor
  9263. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9264. shlibpath_var=LIBPATH
  9265. # AIX 3 has no versioning support, so we append a major version to the name.
  9266. soname_spec='$libname$release$shared_ext$major'
  9267. ;;
  9268. aix[4-9]*)
  9269. version_type=linux # correct to gnu/linux during the next big refactor
  9270. need_lib_prefix=no
  9271. need_version=no
  9272. hardcode_into_libs=yes
  9273. if test ia64 = "$host_cpu"; then
  9274. # AIX 5 supports IA64
  9275. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9276. shlibpath_var=LD_LIBRARY_PATH
  9277. else
  9278. # With GCC up to 2.95.x, collect2 would create an import file
  9279. # for dependence libraries. The import file would start with
  9280. # the line '#! .'. This would cause the generated library to
  9281. # depend on '.', always an invalid library. This was fixed in
  9282. # development snapshots of GCC prior to 3.0.
  9283. case $host_os in
  9284. aix4 | aix4.[01] | aix4.[01].*)
  9285. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9286. echo ' yes '
  9287. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9288. :
  9289. else
  9290. can_build_shared=no
  9291. fi
  9292. ;;
  9293. esac
  9294. # Using Import Files as archive members, it is possible to support
  9295. # filename-based versioning of shared library archives on AIX. While
  9296. # this would work for both with and without runtime linking, it will
  9297. # prevent static linking of such archives. So we do filename-based
  9298. # shared library versioning with .so extension only, which is used
  9299. # when both runtime linking and shared linking is enabled.
  9300. # Unfortunately, runtime linking may impact performance, so we do
  9301. # not want this to be the default eventually. Also, we use the
  9302. # versioned .so libs for executables only if there is the -brtl
  9303. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9304. # To allow for filename-based versioning support, we need to create
  9305. # libNAME.so.V as an archive file, containing:
  9306. # *) an Import File, referring to the versioned filename of the
  9307. # archive as well as the shared archive member, telling the
  9308. # bitwidth (32 or 64) of that shared object, and providing the
  9309. # list of exported symbols of that shared object, eventually
  9310. # decorated with the 'weak' keyword
  9311. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9312. # it being seen by the linker.
  9313. # At run time we better use the real file rather than another symlink,
  9314. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9315. case $with_aix_soname,$aix_use_runtimelinking in
  9316. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9317. # soname into executable. Probably we can add versioning support to
  9318. # collect2, so additional links can be useful in future.
  9319. aix,yes) # traditional libtool
  9320. dynamic_linker='AIX unversionable lib.so'
  9321. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9322. # instead of lib<name>.a to let people know that these are not
  9323. # typical AIX shared libraries.
  9324. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9325. ;;
  9326. aix,no) # traditional AIX only
  9327. dynamic_linker='AIX lib.a(lib.so.V)'
  9328. # We preserve .a as extension for shared libraries through AIX4.2
  9329. # and later when we are not doing run time linking.
  9330. library_names_spec='$libname$release.a $libname.a'
  9331. soname_spec='$libname$release$shared_ext$major'
  9332. ;;
  9333. svr4,*) # full svr4 only
  9334. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9335. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9336. # We do not specify a path in Import Files, so LIBPATH fires.
  9337. shlibpath_overrides_runpath=yes
  9338. ;;
  9339. *,yes) # both, prefer svr4
  9340. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9341. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9342. # unpreferred sharedlib libNAME.a needs extra handling
  9343. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9344. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9345. # We do not specify a path in Import Files, so LIBPATH fires.
  9346. shlibpath_overrides_runpath=yes
  9347. ;;
  9348. *,no) # both, prefer aix
  9349. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9350. library_names_spec='$libname$release.a $libname.a'
  9351. soname_spec='$libname$release$shared_ext$major'
  9352. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9353. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9354. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9355. ;;
  9356. esac
  9357. shlibpath_var=LIBPATH
  9358. fi
  9359. ;;
  9360. amigaos*)
  9361. case $host_cpu in
  9362. powerpc)
  9363. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9364. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9365. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9366. ;;
  9367. m68k)
  9368. library_names_spec='$libname.ixlibrary $libname.a'
  9369. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9370. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9371. ;;
  9372. esac
  9373. ;;
  9374. beos*)
  9375. library_names_spec='$libname$shared_ext'
  9376. dynamic_linker="$host_os ld.so"
  9377. shlibpath_var=LIBRARY_PATH
  9378. ;;
  9379. bsdi[45]*)
  9380. version_type=linux # correct to gnu/linux during the next big refactor
  9381. need_version=no
  9382. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9383. soname_spec='$libname$release$shared_ext$major'
  9384. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9385. shlibpath_var=LD_LIBRARY_PATH
  9386. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9387. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9388. # the default ld.so.conf also contains /usr/contrib/lib and
  9389. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9390. # libtool to hard-code these into programs
  9391. ;;
  9392. cygwin* | mingw* | pw32* | cegcc*)
  9393. version_type=windows
  9394. shrext_cmds=.dll
  9395. need_version=no
  9396. need_lib_prefix=no
  9397. case $GCC,$cc_basename in
  9398. yes,*)
  9399. # gcc
  9400. library_names_spec='$libname.dll.a'
  9401. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9402. postinstall_cmds='base_file=`basename \$file`~
  9403. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9404. dldir=$destdir/`dirname \$dlpath`~
  9405. test -d \$dldir || mkdir -p \$dldir~
  9406. $install_prog $dir/$dlname \$dldir/$dlname~
  9407. chmod a+x \$dldir/$dlname~
  9408. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9409. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9410. fi'
  9411. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9412. dlpath=$dir/\$dldll~
  9413. $RM \$dlpath'
  9414. shlibpath_overrides_runpath=yes
  9415. case $host_os in
  9416. cygwin*)
  9417. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9418. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9419. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9420. ;;
  9421. mingw* | cegcc*)
  9422. # MinGW DLLs use traditional 'lib' prefix
  9423. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9424. ;;
  9425. pw32*)
  9426. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9427. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9428. ;;
  9429. esac
  9430. dynamic_linker='Win32 ld.exe'
  9431. ;;
  9432. *,cl*)
  9433. # Native MSVC
  9434. libname_spec='$name'
  9435. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9436. library_names_spec='$libname.dll.lib'
  9437. case $build_os in
  9438. mingw*)
  9439. sys_lib_search_path_spec=
  9440. lt_save_ifs=$IFS
  9441. IFS=';'
  9442. for lt_path in $LIB
  9443. do
  9444. IFS=$lt_save_ifs
  9445. # Let DOS variable expansion print the short 8.3 style file name.
  9446. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9447. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9448. done
  9449. IFS=$lt_save_ifs
  9450. # Convert to MSYS style.
  9451. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9452. ;;
  9453. cygwin*)
  9454. # Convert to unix form, then to dos form, then back to unix form
  9455. # but this time dos style (no spaces!) so that the unix form looks
  9456. # like /cygdrive/c/PROGRA~1:/cygdr...
  9457. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9458. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9459. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9460. ;;
  9461. *)
  9462. sys_lib_search_path_spec=$LIB
  9463. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9464. # It is most probably a Windows format PATH.
  9465. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9466. else
  9467. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9468. fi
  9469. # FIXME: find the short name or the path components, as spaces are
  9470. # common. (e.g. "Program Files" -> "PROGRA~1")
  9471. ;;
  9472. esac
  9473. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9474. postinstall_cmds='base_file=`basename \$file`~
  9475. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9476. dldir=$destdir/`dirname \$dlpath`~
  9477. test -d \$dldir || mkdir -p \$dldir~
  9478. $install_prog $dir/$dlname \$dldir/$dlname'
  9479. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9480. dlpath=$dir/\$dldll~
  9481. $RM \$dlpath'
  9482. shlibpath_overrides_runpath=yes
  9483. dynamic_linker='Win32 link.exe'
  9484. ;;
  9485. *)
  9486. # Assume MSVC wrapper
  9487. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9488. dynamic_linker='Win32 ld.exe'
  9489. ;;
  9490. esac
  9491. # FIXME: first we should search . and the directory the executable is in
  9492. shlibpath_var=PATH
  9493. ;;
  9494. darwin* | rhapsody*)
  9495. dynamic_linker="$host_os dyld"
  9496. version_type=darwin
  9497. need_lib_prefix=no
  9498. need_version=no
  9499. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9500. soname_spec='$libname$release$major$shared_ext'
  9501. shlibpath_overrides_runpath=yes
  9502. shlibpath_var=DYLD_LIBRARY_PATH
  9503. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9504. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9505. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9506. ;;
  9507. dgux*)
  9508. version_type=linux # correct to gnu/linux during the next big refactor
  9509. need_lib_prefix=no
  9510. need_version=no
  9511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9512. soname_spec='$libname$release$shared_ext$major'
  9513. shlibpath_var=LD_LIBRARY_PATH
  9514. ;;
  9515. freebsd* | dragonfly*)
  9516. # DragonFly does not have aout. When/if they implement a new
  9517. # versioning mechanism, adjust this.
  9518. if test -x /usr/bin/objformat; then
  9519. objformat=`/usr/bin/objformat`
  9520. else
  9521. case $host_os in
  9522. freebsd[23].*) objformat=aout ;;
  9523. *) objformat=elf ;;
  9524. esac
  9525. fi
  9526. version_type=freebsd-$objformat
  9527. case $version_type in
  9528. freebsd-elf*)
  9529. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9530. soname_spec='$libname$release$shared_ext$major'
  9531. need_version=no
  9532. need_lib_prefix=no
  9533. ;;
  9534. freebsd-*)
  9535. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9536. need_version=yes
  9537. ;;
  9538. esac
  9539. shlibpath_var=LD_LIBRARY_PATH
  9540. case $host_os in
  9541. freebsd2.*)
  9542. shlibpath_overrides_runpath=yes
  9543. ;;
  9544. freebsd3.[01]* | freebsdelf3.[01]*)
  9545. shlibpath_overrides_runpath=yes
  9546. hardcode_into_libs=yes
  9547. ;;
  9548. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9549. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9550. shlibpath_overrides_runpath=no
  9551. hardcode_into_libs=yes
  9552. ;;
  9553. *) # from 4.6 on, and DragonFly
  9554. shlibpath_overrides_runpath=yes
  9555. hardcode_into_libs=yes
  9556. ;;
  9557. esac
  9558. ;;
  9559. haiku*)
  9560. version_type=linux # correct to gnu/linux during the next big refactor
  9561. need_lib_prefix=no
  9562. need_version=no
  9563. dynamic_linker="$host_os runtime_loader"
  9564. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9565. soname_spec='$libname$release$shared_ext$major'
  9566. shlibpath_var=LIBRARY_PATH
  9567. shlibpath_overrides_runpath=no
  9568. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9569. hardcode_into_libs=yes
  9570. ;;
  9571. hpux9* | hpux10* | hpux11*)
  9572. # Give a soname corresponding to the major version so that dld.sl refuses to
  9573. # link against other versions.
  9574. version_type=sunos
  9575. need_lib_prefix=no
  9576. need_version=no
  9577. case $host_cpu in
  9578. ia64*)
  9579. shrext_cmds='.so'
  9580. hardcode_into_libs=yes
  9581. dynamic_linker="$host_os dld.so"
  9582. shlibpath_var=LD_LIBRARY_PATH
  9583. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9584. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9585. soname_spec='$libname$release$shared_ext$major'
  9586. if test 32 = "$HPUX_IA64_MODE"; then
  9587. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9588. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9589. else
  9590. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9591. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9592. fi
  9593. ;;
  9594. hppa*64*)
  9595. shrext_cmds='.sl'
  9596. hardcode_into_libs=yes
  9597. dynamic_linker="$host_os dld.sl"
  9598. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9599. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9601. soname_spec='$libname$release$shared_ext$major'
  9602. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9603. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9604. ;;
  9605. *)
  9606. shrext_cmds='.sl'
  9607. dynamic_linker="$host_os dld.sl"
  9608. shlibpath_var=SHLIB_PATH
  9609. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9610. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9611. soname_spec='$libname$release$shared_ext$major'
  9612. ;;
  9613. esac
  9614. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9615. postinstall_cmds='chmod 555 $lib'
  9616. # or fails outright, so override atomically:
  9617. install_override_mode=555
  9618. ;;
  9619. interix[3-9]*)
  9620. version_type=linux # correct to gnu/linux during the next big refactor
  9621. need_lib_prefix=no
  9622. need_version=no
  9623. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9624. soname_spec='$libname$release$shared_ext$major'
  9625. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9626. shlibpath_var=LD_LIBRARY_PATH
  9627. shlibpath_overrides_runpath=no
  9628. hardcode_into_libs=yes
  9629. ;;
  9630. irix5* | irix6* | nonstopux*)
  9631. case $host_os in
  9632. nonstopux*) version_type=nonstopux ;;
  9633. *)
  9634. if test yes = "$lt_cv_prog_gnu_ld"; then
  9635. version_type=linux # correct to gnu/linux during the next big refactor
  9636. else
  9637. version_type=irix
  9638. fi ;;
  9639. esac
  9640. need_lib_prefix=no
  9641. need_version=no
  9642. soname_spec='$libname$release$shared_ext$major'
  9643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9644. case $host_os in
  9645. irix5* | nonstopux*)
  9646. libsuff= shlibsuff=
  9647. ;;
  9648. *)
  9649. case $LD in # libtool.m4 will add one of these switches to LD
  9650. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9651. libsuff= shlibsuff= libmagic=32-bit;;
  9652. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9653. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9654. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9655. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9656. *) libsuff= shlibsuff= libmagic=never-match;;
  9657. esac
  9658. ;;
  9659. esac
  9660. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9661. shlibpath_overrides_runpath=no
  9662. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9663. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9664. hardcode_into_libs=yes
  9665. ;;
  9666. # No shared lib support for Linux oldld, aout, or coff.
  9667. linux*oldld* | linux*aout* | linux*coff*)
  9668. dynamic_linker=no
  9669. ;;
  9670. linux*android*)
  9671. version_type=none # Android doesn't support versioned libraries.
  9672. need_lib_prefix=no
  9673. need_version=no
  9674. library_names_spec='$libname$release$shared_ext'
  9675. soname_spec='$libname$release$shared_ext'
  9676. finish_cmds=
  9677. shlibpath_var=LD_LIBRARY_PATH
  9678. shlibpath_overrides_runpath=yes
  9679. # This implies no fast_install, which is unacceptable.
  9680. # Some rework will be needed to allow for fast_install
  9681. # before this can be enabled.
  9682. hardcode_into_libs=yes
  9683. dynamic_linker='Android linker'
  9684. # Don't embed -rpath directories since the linker doesn't support them.
  9685. hardcode_libdir_flag_spec='-L$libdir'
  9686. ;;
  9687. # This must be glibc/ELF.
  9688. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9689. version_type=linux # correct to gnu/linux during the next big refactor
  9690. need_lib_prefix=no
  9691. need_version=no
  9692. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9693. soname_spec='$libname$release$shared_ext$major'
  9694. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9695. shlibpath_var=LD_LIBRARY_PATH
  9696. shlibpath_overrides_runpath=no
  9697. # Some binutils ld are patched to set DT_RUNPATH
  9698. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9699. $as_echo_n "(cached) " >&6
  9700. else
  9701. lt_cv_shlibpath_overrides_runpath=no
  9702. save_LDFLAGS=$LDFLAGS
  9703. save_libdir=$libdir
  9704. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9705. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9707. /* end confdefs.h. */
  9708. int
  9709. main ()
  9710. {
  9711. ;
  9712. return 0;
  9713. }
  9714. _ACEOF
  9715. if ac_fn_c_try_link "$LINENO"; then :
  9716. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9717. lt_cv_shlibpath_overrides_runpath=yes
  9718. fi
  9719. fi
  9720. rm -f core conftest.err conftest.$ac_objext \
  9721. conftest$ac_exeext conftest.$ac_ext
  9722. LDFLAGS=$save_LDFLAGS
  9723. libdir=$save_libdir
  9724. fi
  9725. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9726. # This implies no fast_install, which is unacceptable.
  9727. # Some rework will be needed to allow for fast_install
  9728. # before this can be enabled.
  9729. hardcode_into_libs=yes
  9730. # Add ABI-specific directories to the system library path.
  9731. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9732. # Ideally, we could use ldconfig to report *all* directores which are
  9733. # searched for libraries, however this is still not possible. Aside from not
  9734. # being certain /sbin/ldconfig is available, command
  9735. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9736. # even though it is searched at run-time. Try to do the best guess by
  9737. # appending ld.so.conf contents (and includes) to the search path.
  9738. if test -f /etc/ld.so.conf; then
  9739. 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' ' '`
  9740. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9741. fi
  9742. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9743. # powerpc, because MkLinux only supported shared libraries with the
  9744. # GNU dynamic linker. Since this was broken with cross compilers,
  9745. # most powerpc-linux boxes support dynamic linking these days and
  9746. # people can always --disable-shared, the test was removed, and we
  9747. # assume the GNU/Linux dynamic linker is in use.
  9748. dynamic_linker='GNU/Linux ld.so'
  9749. ;;
  9750. netbsd*)
  9751. version_type=sunos
  9752. need_lib_prefix=no
  9753. need_version=no
  9754. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9755. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9756. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9757. dynamic_linker='NetBSD (a.out) ld.so'
  9758. else
  9759. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9760. soname_spec='$libname$release$shared_ext$major'
  9761. dynamic_linker='NetBSD ld.elf_so'
  9762. fi
  9763. shlibpath_var=LD_LIBRARY_PATH
  9764. shlibpath_overrides_runpath=yes
  9765. hardcode_into_libs=yes
  9766. ;;
  9767. newsos6)
  9768. version_type=linux # correct to gnu/linux during the next big refactor
  9769. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. shlibpath_overrides_runpath=yes
  9772. ;;
  9773. *nto* | *qnx*)
  9774. version_type=qnx
  9775. need_lib_prefix=no
  9776. need_version=no
  9777. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9778. soname_spec='$libname$release$shared_ext$major'
  9779. shlibpath_var=LD_LIBRARY_PATH
  9780. shlibpath_overrides_runpath=no
  9781. hardcode_into_libs=yes
  9782. dynamic_linker='ldqnx.so'
  9783. ;;
  9784. openbsd* | bitrig*)
  9785. version_type=sunos
  9786. sys_lib_dlsearch_path_spec=/usr/lib
  9787. need_lib_prefix=no
  9788. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9789. need_version=no
  9790. else
  9791. need_version=yes
  9792. fi
  9793. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9794. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. shlibpath_overrides_runpath=yes
  9797. ;;
  9798. os2*)
  9799. libname_spec='$name'
  9800. version_type=windows
  9801. shrext_cmds=.dll
  9802. need_version=no
  9803. need_lib_prefix=no
  9804. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9805. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9806. v=$($ECHO $release$versuffix | tr -d .-);
  9807. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9808. $ECHO $n$v`$shared_ext'
  9809. library_names_spec='${libname}_dll.$libext'
  9810. dynamic_linker='OS/2 ld.exe'
  9811. shlibpath_var=BEGINLIBPATH
  9812. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9813. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9814. postinstall_cmds='base_file=`basename \$file`~
  9815. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9816. dldir=$destdir/`dirname \$dlpath`~
  9817. test -d \$dldir || mkdir -p \$dldir~
  9818. $install_prog $dir/$dlname \$dldir/$dlname~
  9819. chmod a+x \$dldir/$dlname~
  9820. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9821. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9822. fi'
  9823. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9824. dlpath=$dir/\$dldll~
  9825. $RM \$dlpath'
  9826. ;;
  9827. osf3* | osf4* | osf5*)
  9828. version_type=osf
  9829. need_lib_prefix=no
  9830. need_version=no
  9831. soname_spec='$libname$release$shared_ext$major'
  9832. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9833. shlibpath_var=LD_LIBRARY_PATH
  9834. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9835. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9836. ;;
  9837. rdos*)
  9838. dynamic_linker=no
  9839. ;;
  9840. solaris*)
  9841. version_type=linux # correct to gnu/linux during the next big refactor
  9842. need_lib_prefix=no
  9843. need_version=no
  9844. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9845. soname_spec='$libname$release$shared_ext$major'
  9846. shlibpath_var=LD_LIBRARY_PATH
  9847. shlibpath_overrides_runpath=yes
  9848. hardcode_into_libs=yes
  9849. # ldd complains unless libraries are executable
  9850. postinstall_cmds='chmod +x $lib'
  9851. ;;
  9852. sunos4*)
  9853. version_type=sunos
  9854. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9855. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9856. shlibpath_var=LD_LIBRARY_PATH
  9857. shlibpath_overrides_runpath=yes
  9858. if test yes = "$with_gnu_ld"; then
  9859. need_lib_prefix=no
  9860. fi
  9861. need_version=yes
  9862. ;;
  9863. sysv4 | sysv4.3*)
  9864. version_type=linux # correct to gnu/linux during the next big refactor
  9865. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9866. soname_spec='$libname$release$shared_ext$major'
  9867. shlibpath_var=LD_LIBRARY_PATH
  9868. case $host_vendor in
  9869. sni)
  9870. shlibpath_overrides_runpath=no
  9871. need_lib_prefix=no
  9872. runpath_var=LD_RUN_PATH
  9873. ;;
  9874. siemens)
  9875. need_lib_prefix=no
  9876. ;;
  9877. motorola)
  9878. need_lib_prefix=no
  9879. need_version=no
  9880. shlibpath_overrides_runpath=no
  9881. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9882. ;;
  9883. esac
  9884. ;;
  9885. sysv4*MP*)
  9886. if test -d /usr/nec; then
  9887. version_type=linux # correct to gnu/linux during the next big refactor
  9888. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9889. soname_spec='$libname$shared_ext.$major'
  9890. shlibpath_var=LD_LIBRARY_PATH
  9891. fi
  9892. ;;
  9893. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9894. version_type=sco
  9895. need_lib_prefix=no
  9896. need_version=no
  9897. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9898. soname_spec='$libname$release$shared_ext$major'
  9899. shlibpath_var=LD_LIBRARY_PATH
  9900. shlibpath_overrides_runpath=yes
  9901. hardcode_into_libs=yes
  9902. if test yes = "$with_gnu_ld"; then
  9903. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9904. else
  9905. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9906. case $host_os in
  9907. sco3.2v5*)
  9908. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9909. ;;
  9910. esac
  9911. fi
  9912. sys_lib_dlsearch_path_spec='/usr/lib'
  9913. ;;
  9914. tpf*)
  9915. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9916. version_type=linux # correct to gnu/linux during the next big refactor
  9917. need_lib_prefix=no
  9918. need_version=no
  9919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9920. shlibpath_var=LD_LIBRARY_PATH
  9921. shlibpath_overrides_runpath=no
  9922. hardcode_into_libs=yes
  9923. ;;
  9924. uts4*)
  9925. version_type=linux # correct to gnu/linux during the next big refactor
  9926. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9927. soname_spec='$libname$release$shared_ext$major'
  9928. shlibpath_var=LD_LIBRARY_PATH
  9929. ;;
  9930. *)
  9931. dynamic_linker=no
  9932. ;;
  9933. esac
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9935. $as_echo "$dynamic_linker" >&6; }
  9936. test no = "$dynamic_linker" && can_build_shared=no
  9937. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9938. if test yes = "$GCC"; then
  9939. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9940. fi
  9941. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9942. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9943. fi
  9944. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9945. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9946. fi
  9947. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9948. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9949. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9950. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9951. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9952. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9954. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9955. hardcode_action=
  9956. if test -n "$hardcode_libdir_flag_spec" ||
  9957. test -n "$runpath_var" ||
  9958. test yes = "$hardcode_automatic"; then
  9959. # We can hardcode non-existent directories.
  9960. if test no != "$hardcode_direct" &&
  9961. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9962. # have to relink, otherwise we might link with an installed library
  9963. # when we should be linking with a yet-to-be-installed one
  9964. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9965. test no != "$hardcode_minus_L"; then
  9966. # Linking always hardcodes the temporary library directory.
  9967. hardcode_action=relink
  9968. else
  9969. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9970. hardcode_action=immediate
  9971. fi
  9972. else
  9973. # We cannot hardcode anything, or else we can only hardcode existing
  9974. # directories.
  9975. hardcode_action=unsupported
  9976. fi
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9978. $as_echo "$hardcode_action" >&6; }
  9979. if test relink = "$hardcode_action" ||
  9980. test yes = "$inherit_rpath"; then
  9981. # Fast installation is not supported
  9982. enable_fast_install=no
  9983. elif test yes = "$shlibpath_overrides_runpath" ||
  9984. test no = "$enable_shared"; then
  9985. # Fast installation is not necessary
  9986. enable_fast_install=needless
  9987. fi
  9988. if test yes != "$enable_dlopen"; then
  9989. enable_dlopen=unknown
  9990. enable_dlopen_self=unknown
  9991. enable_dlopen_self_static=unknown
  9992. else
  9993. lt_cv_dlopen=no
  9994. lt_cv_dlopen_libs=
  9995. case $host_os in
  9996. beos*)
  9997. lt_cv_dlopen=load_add_on
  9998. lt_cv_dlopen_libs=
  9999. lt_cv_dlopen_self=yes
  10000. ;;
  10001. mingw* | pw32* | cegcc*)
  10002. lt_cv_dlopen=LoadLibrary
  10003. lt_cv_dlopen_libs=
  10004. ;;
  10005. cygwin*)
  10006. lt_cv_dlopen=dlopen
  10007. lt_cv_dlopen_libs=
  10008. ;;
  10009. darwin*)
  10010. # if libdl is installed we need to link against it
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10012. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10013. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10014. $as_echo_n "(cached) " >&6
  10015. else
  10016. ac_check_lib_save_LIBS=$LIBS
  10017. LIBS="-ldl $LIBS"
  10018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10019. /* end confdefs.h. */
  10020. /* Override any GCC internal prototype to avoid an error.
  10021. Use char because int might match the return type of a GCC
  10022. builtin and then its argument prototype would still apply. */
  10023. #ifdef __cplusplus
  10024. extern "C"
  10025. #endif
  10026. char dlopen ();
  10027. int
  10028. main ()
  10029. {
  10030. return dlopen ();
  10031. ;
  10032. return 0;
  10033. }
  10034. _ACEOF
  10035. if ac_fn_c_try_link "$LINENO"; then :
  10036. ac_cv_lib_dl_dlopen=yes
  10037. else
  10038. ac_cv_lib_dl_dlopen=no
  10039. fi
  10040. rm -f core conftest.err conftest.$ac_objext \
  10041. conftest$ac_exeext conftest.$ac_ext
  10042. LIBS=$ac_check_lib_save_LIBS
  10043. fi
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10045. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10046. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10047. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10048. else
  10049. lt_cv_dlopen=dyld
  10050. lt_cv_dlopen_libs=
  10051. lt_cv_dlopen_self=yes
  10052. fi
  10053. ;;
  10054. tpf*)
  10055. # Don't try to run any link tests for TPF. We know it's impossible
  10056. # because TPF is a cross-compiler, and we know how we open DSOs.
  10057. lt_cv_dlopen=dlopen
  10058. lt_cv_dlopen_libs=
  10059. lt_cv_dlopen_self=no
  10060. ;;
  10061. *)
  10062. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10063. if test "x$ac_cv_func_shl_load" = xyes; then :
  10064. lt_cv_dlopen=shl_load
  10065. else
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10067. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10068. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10069. $as_echo_n "(cached) " >&6
  10070. else
  10071. ac_check_lib_save_LIBS=$LIBS
  10072. LIBS="-ldld $LIBS"
  10073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10074. /* end confdefs.h. */
  10075. /* Override any GCC internal prototype to avoid an error.
  10076. Use char because int might match the return type of a GCC
  10077. builtin and then its argument prototype would still apply. */
  10078. #ifdef __cplusplus
  10079. extern "C"
  10080. #endif
  10081. char shl_load ();
  10082. int
  10083. main ()
  10084. {
  10085. return shl_load ();
  10086. ;
  10087. return 0;
  10088. }
  10089. _ACEOF
  10090. if ac_fn_c_try_link "$LINENO"; then :
  10091. ac_cv_lib_dld_shl_load=yes
  10092. else
  10093. ac_cv_lib_dld_shl_load=no
  10094. fi
  10095. rm -f core conftest.err conftest.$ac_objext \
  10096. conftest$ac_exeext conftest.$ac_ext
  10097. LIBS=$ac_check_lib_save_LIBS
  10098. fi
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10100. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10101. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10102. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10103. else
  10104. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10105. if test "x$ac_cv_func_dlopen" = xyes; then :
  10106. lt_cv_dlopen=dlopen
  10107. else
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10109. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10110. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. ac_check_lib_save_LIBS=$LIBS
  10114. LIBS="-ldl $LIBS"
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. /* Override any GCC internal prototype to avoid an error.
  10118. Use char because int might match the return type of a GCC
  10119. builtin and then its argument prototype would still apply. */
  10120. #ifdef __cplusplus
  10121. extern "C"
  10122. #endif
  10123. char dlopen ();
  10124. int
  10125. main ()
  10126. {
  10127. return dlopen ();
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. if ac_fn_c_try_link "$LINENO"; then :
  10133. ac_cv_lib_dl_dlopen=yes
  10134. else
  10135. ac_cv_lib_dl_dlopen=no
  10136. fi
  10137. rm -f core conftest.err conftest.$ac_objext \
  10138. conftest$ac_exeext conftest.$ac_ext
  10139. LIBS=$ac_check_lib_save_LIBS
  10140. fi
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10142. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10143. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10144. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10145. else
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10147. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10148. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10149. $as_echo_n "(cached) " >&6
  10150. else
  10151. ac_check_lib_save_LIBS=$LIBS
  10152. LIBS="-lsvld $LIBS"
  10153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10154. /* end confdefs.h. */
  10155. /* Override any GCC internal prototype to avoid an error.
  10156. Use char because int might match the return type of a GCC
  10157. builtin and then its argument prototype would still apply. */
  10158. #ifdef __cplusplus
  10159. extern "C"
  10160. #endif
  10161. char dlopen ();
  10162. int
  10163. main ()
  10164. {
  10165. return dlopen ();
  10166. ;
  10167. return 0;
  10168. }
  10169. _ACEOF
  10170. if ac_fn_c_try_link "$LINENO"; then :
  10171. ac_cv_lib_svld_dlopen=yes
  10172. else
  10173. ac_cv_lib_svld_dlopen=no
  10174. fi
  10175. rm -f core conftest.err conftest.$ac_objext \
  10176. conftest$ac_exeext conftest.$ac_ext
  10177. LIBS=$ac_check_lib_save_LIBS
  10178. fi
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10180. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10181. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10182. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10183. else
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10185. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10186. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10187. $as_echo_n "(cached) " >&6
  10188. else
  10189. ac_check_lib_save_LIBS=$LIBS
  10190. LIBS="-ldld $LIBS"
  10191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10192. /* end confdefs.h. */
  10193. /* Override any GCC internal prototype to avoid an error.
  10194. Use char because int might match the return type of a GCC
  10195. builtin and then its argument prototype would still apply. */
  10196. #ifdef __cplusplus
  10197. extern "C"
  10198. #endif
  10199. char dld_link ();
  10200. int
  10201. main ()
  10202. {
  10203. return dld_link ();
  10204. ;
  10205. return 0;
  10206. }
  10207. _ACEOF
  10208. if ac_fn_c_try_link "$LINENO"; then :
  10209. ac_cv_lib_dld_dld_link=yes
  10210. else
  10211. ac_cv_lib_dld_dld_link=no
  10212. fi
  10213. rm -f core conftest.err conftest.$ac_objext \
  10214. conftest$ac_exeext conftest.$ac_ext
  10215. LIBS=$ac_check_lib_save_LIBS
  10216. fi
  10217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10218. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10219. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10220. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10221. fi
  10222. fi
  10223. fi
  10224. fi
  10225. fi
  10226. fi
  10227. ;;
  10228. esac
  10229. if test no = "$lt_cv_dlopen"; then
  10230. enable_dlopen=no
  10231. else
  10232. enable_dlopen=yes
  10233. fi
  10234. case $lt_cv_dlopen in
  10235. dlopen)
  10236. save_CPPFLAGS=$CPPFLAGS
  10237. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10238. save_LDFLAGS=$LDFLAGS
  10239. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10240. save_LIBS=$LIBS
  10241. LIBS="$lt_cv_dlopen_libs $LIBS"
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10243. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10244. if ${lt_cv_dlopen_self+:} false; then :
  10245. $as_echo_n "(cached) " >&6
  10246. else
  10247. if test yes = "$cross_compiling"; then :
  10248. lt_cv_dlopen_self=cross
  10249. else
  10250. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10251. lt_status=$lt_dlunknown
  10252. cat > conftest.$ac_ext <<_LT_EOF
  10253. #line $LINENO "configure"
  10254. #include "confdefs.h"
  10255. #if HAVE_DLFCN_H
  10256. #include <dlfcn.h>
  10257. #endif
  10258. #include <stdio.h>
  10259. #ifdef RTLD_GLOBAL
  10260. # define LT_DLGLOBAL RTLD_GLOBAL
  10261. #else
  10262. # ifdef DL_GLOBAL
  10263. # define LT_DLGLOBAL DL_GLOBAL
  10264. # else
  10265. # define LT_DLGLOBAL 0
  10266. # endif
  10267. #endif
  10268. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10269. find out it does not work in some platform. */
  10270. #ifndef LT_DLLAZY_OR_NOW
  10271. # ifdef RTLD_LAZY
  10272. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10273. # else
  10274. # ifdef DL_LAZY
  10275. # define LT_DLLAZY_OR_NOW DL_LAZY
  10276. # else
  10277. # ifdef RTLD_NOW
  10278. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10279. # else
  10280. # ifdef DL_NOW
  10281. # define LT_DLLAZY_OR_NOW DL_NOW
  10282. # else
  10283. # define LT_DLLAZY_OR_NOW 0
  10284. # endif
  10285. # endif
  10286. # endif
  10287. # endif
  10288. #endif
  10289. /* When -fvisibility=hidden is used, assume the code has been annotated
  10290. correspondingly for the symbols needed. */
  10291. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10292. int fnord () __attribute__((visibility("default")));
  10293. #endif
  10294. int fnord () { return 42; }
  10295. int main ()
  10296. {
  10297. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10298. int status = $lt_dlunknown;
  10299. if (self)
  10300. {
  10301. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10302. else
  10303. {
  10304. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10305. else puts (dlerror ());
  10306. }
  10307. /* dlclose (self); */
  10308. }
  10309. else
  10310. puts (dlerror ());
  10311. return status;
  10312. }
  10313. _LT_EOF
  10314. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10315. (eval $ac_link) 2>&5
  10316. ac_status=$?
  10317. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10318. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10319. (./conftest; exit; ) >&5 2>/dev/null
  10320. lt_status=$?
  10321. case x$lt_status in
  10322. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10323. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10324. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10325. esac
  10326. else :
  10327. # compilation failed
  10328. lt_cv_dlopen_self=no
  10329. fi
  10330. fi
  10331. rm -fr conftest*
  10332. fi
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10334. $as_echo "$lt_cv_dlopen_self" >&6; }
  10335. if test yes = "$lt_cv_dlopen_self"; then
  10336. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10338. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10339. if ${lt_cv_dlopen_self_static+:} false; then :
  10340. $as_echo_n "(cached) " >&6
  10341. else
  10342. if test yes = "$cross_compiling"; then :
  10343. lt_cv_dlopen_self_static=cross
  10344. else
  10345. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10346. lt_status=$lt_dlunknown
  10347. cat > conftest.$ac_ext <<_LT_EOF
  10348. #line $LINENO "configure"
  10349. #include "confdefs.h"
  10350. #if HAVE_DLFCN_H
  10351. #include <dlfcn.h>
  10352. #endif
  10353. #include <stdio.h>
  10354. #ifdef RTLD_GLOBAL
  10355. # define LT_DLGLOBAL RTLD_GLOBAL
  10356. #else
  10357. # ifdef DL_GLOBAL
  10358. # define LT_DLGLOBAL DL_GLOBAL
  10359. # else
  10360. # define LT_DLGLOBAL 0
  10361. # endif
  10362. #endif
  10363. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10364. find out it does not work in some platform. */
  10365. #ifndef LT_DLLAZY_OR_NOW
  10366. # ifdef RTLD_LAZY
  10367. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10368. # else
  10369. # ifdef DL_LAZY
  10370. # define LT_DLLAZY_OR_NOW DL_LAZY
  10371. # else
  10372. # ifdef RTLD_NOW
  10373. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10374. # else
  10375. # ifdef DL_NOW
  10376. # define LT_DLLAZY_OR_NOW DL_NOW
  10377. # else
  10378. # define LT_DLLAZY_OR_NOW 0
  10379. # endif
  10380. # endif
  10381. # endif
  10382. # endif
  10383. #endif
  10384. /* When -fvisibility=hidden is used, assume the code has been annotated
  10385. correspondingly for the symbols needed. */
  10386. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10387. int fnord () __attribute__((visibility("default")));
  10388. #endif
  10389. int fnord () { return 42; }
  10390. int main ()
  10391. {
  10392. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10393. int status = $lt_dlunknown;
  10394. if (self)
  10395. {
  10396. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10397. else
  10398. {
  10399. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10400. else puts (dlerror ());
  10401. }
  10402. /* dlclose (self); */
  10403. }
  10404. else
  10405. puts (dlerror ());
  10406. return status;
  10407. }
  10408. _LT_EOF
  10409. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10410. (eval $ac_link) 2>&5
  10411. ac_status=$?
  10412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10413. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10414. (./conftest; exit; ) >&5 2>/dev/null
  10415. lt_status=$?
  10416. case x$lt_status in
  10417. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10418. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10419. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10420. esac
  10421. else :
  10422. # compilation failed
  10423. lt_cv_dlopen_self_static=no
  10424. fi
  10425. fi
  10426. rm -fr conftest*
  10427. fi
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10429. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10430. fi
  10431. CPPFLAGS=$save_CPPFLAGS
  10432. LDFLAGS=$save_LDFLAGS
  10433. LIBS=$save_LIBS
  10434. ;;
  10435. esac
  10436. case $lt_cv_dlopen_self in
  10437. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10438. *) enable_dlopen_self=unknown ;;
  10439. esac
  10440. case $lt_cv_dlopen_self_static in
  10441. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10442. *) enable_dlopen_self_static=unknown ;;
  10443. esac
  10444. fi
  10445. striplib=
  10446. old_striplib=
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10448. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10449. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10450. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10451. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10453. $as_echo "yes" >&6; }
  10454. else
  10455. # FIXME - insert some real tests, host_os isn't really good enough
  10456. case $host_os in
  10457. darwin*)
  10458. if test -n "$STRIP"; then
  10459. striplib="$STRIP -x"
  10460. old_striplib="$STRIP -S"
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10462. $as_echo "yes" >&6; }
  10463. else
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10465. $as_echo "no" >&6; }
  10466. fi
  10467. ;;
  10468. *)
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10470. $as_echo "no" >&6; }
  10471. ;;
  10472. esac
  10473. fi
  10474. # Report what library types will actually be built
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10476. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10478. $as_echo "$can_build_shared" >&6; }
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10480. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10481. test no = "$can_build_shared" && enable_shared=no
  10482. # On AIX, shared libraries and static libraries use the same namespace, and
  10483. # are all built from PIC.
  10484. case $host_os in
  10485. aix3*)
  10486. test yes = "$enable_shared" && enable_static=no
  10487. if test -n "$RANLIB"; then
  10488. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10489. postinstall_cmds='$RANLIB $lib'
  10490. fi
  10491. ;;
  10492. aix[4-9]*)
  10493. if test ia64 != "$host_cpu"; then
  10494. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10495. yes,aix,yes) ;; # shared object as lib.so file only
  10496. yes,svr4,*) ;; # shared object as lib.so archive member only
  10497. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10498. esac
  10499. fi
  10500. ;;
  10501. esac
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10503. $as_echo "$enable_shared" >&6; }
  10504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10505. $as_echo_n "checking whether to build static libraries... " >&6; }
  10506. # Make sure either enable_shared or enable_static is yes.
  10507. test yes = "$enable_shared" || enable_static=yes
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10509. $as_echo "$enable_static" >&6; }
  10510. fi
  10511. ac_ext=c
  10512. ac_cpp='$CPP $CPPFLAGS'
  10513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10516. CC=$lt_save_CC
  10517. ac_config_commands="$ac_config_commands libtool"
  10518. # Only expand once:
  10519. # Check whether --enable-silent-rules was given.
  10520. if test "${enable_silent_rules+set}" = set; then :
  10521. enableval=$enable_silent_rules;
  10522. fi
  10523. case $enable_silent_rules in # (((
  10524. yes) AM_DEFAULT_VERBOSITY=0;;
  10525. no) AM_DEFAULT_VERBOSITY=1;;
  10526. *) AM_DEFAULT_VERBOSITY=0;;
  10527. esac
  10528. am_make=${MAKE-make}
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  10530. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  10531. if ${am_cv_make_support_nested_variables+:} false; then :
  10532. $as_echo_n "(cached) " >&6
  10533. else
  10534. if $as_echo 'TRUE=$(BAR$(V))
  10535. BAR0=false
  10536. BAR1=true
  10537. V=1
  10538. am__doit:
  10539. @$(TRUE)
  10540. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  10541. am_cv_make_support_nested_variables=yes
  10542. else
  10543. am_cv_make_support_nested_variables=no
  10544. fi
  10545. fi
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  10547. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  10548. if test $am_cv_make_support_nested_variables = yes; then
  10549. AM_V='$(V)'
  10550. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  10551. else
  10552. AM_V=$AM_DEFAULT_VERBOSITY
  10553. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  10554. fi
  10555. AM_BACKSLASH='\'
  10556. OP_LT_CURRENT=4
  10557. OP_LT_REVISION=4
  10558. OP_LT_AGE=4
  10559. for flag in -std=c89 -pedantic -Wall -Wextra -Wno-parentheses -Wno-long-long; do
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
  10561. $as_echo_n "checking if $CC supports $flag flag... " >&6; }
  10562. if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
  10563. $as_echo_n "(cached) " >&6
  10564. else
  10565. if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
  10566. $as_echo_n "(cached) " >&6
  10567. else
  10568. ac_save_CFLAGS="$CFLAGS"
  10569. CFLAGS="$CFLAGS $flag"
  10570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10571. /* end confdefs.h. */
  10572. int main() { return 0; }
  10573. _ACEOF
  10574. if ac_fn_c_try_link "$LINENO"; then :
  10575. eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
  10576. else
  10577. eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
  10578. fi
  10579. rm -f core conftest.err conftest.$ac_objext \
  10580. conftest$ac_exeext conftest.$ac_ext
  10581. CFLAGS="$ac_save_CFLAGS"
  10582. fi
  10583. if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
  10584. fi
  10585. fi
  10586. eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10588. $as_echo "$ac_res" >&6; }
  10589. if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
  10590. CFLAGS="$CFLAGS $flag";
  10591. fi
  10592. done
  10593. # Platform-specific tweaks
  10594. case $host in
  10595. *-mingw*)
  10596. # -std=c89 causes some warnings under mingw.
  10597. for flag in -U__STRICT_ANSI__; do
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
  10599. $as_echo_n "checking if $CC supports $flag flag... " >&6; }
  10600. if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
  10601. $as_echo_n "(cached) " >&6
  10602. else
  10603. if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
  10604. $as_echo_n "(cached) " >&6
  10605. else
  10606. ac_save_CFLAGS="$CFLAGS"
  10607. CFLAGS="$CFLAGS $flag"
  10608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10609. /* end confdefs.h. */
  10610. int main() { return 0; }
  10611. _ACEOF
  10612. if ac_fn_c_try_link "$LINENO"; then :
  10613. eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
  10614. else
  10615. eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
  10616. fi
  10617. rm -f core conftest.err conftest.$ac_objext \
  10618. conftest$ac_exeext conftest.$ac_ext
  10619. CFLAGS="$ac_save_CFLAGS"
  10620. fi
  10621. if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
  10622. fi
  10623. fi
  10624. eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10626. $as_echo "$ac_res" >&6; }
  10627. if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
  10628. CFLAGS="$CFLAGS $flag";
  10629. fi
  10630. done
  10631. # We need WINNT>=0x501 (WindowsXP) for getaddrinfo/freeaddrinfo.
  10632. # It's okay to define this even when HTTP support is disabled, as it only
  10633. # affects header declarations, not linking (unless we actually use some
  10634. # XP-only functions).
  10635. cat >>confdefs.h <<_ACEOF
  10636. #define _WIN32_WINNT 0x501
  10637. _ACEOF
  10638. host_mingw=true
  10639. ;;
  10640. esac
  10641. if test "$host_mingw" = "true"; then
  10642. OP_WIN32_TRUE=
  10643. OP_WIN32_FALSE='#'
  10644. else
  10645. OP_WIN32_TRUE='#'
  10646. OP_WIN32_FALSE=
  10647. fi
  10648. # Check whether --enable-assertions was given.
  10649. if test "${enable_assertions+set}" = set; then :
  10650. enableval=$enable_assertions;
  10651. else
  10652. enable_assertions=no
  10653. fi
  10654. if test "$enable_assertions" = "yes"; then :
  10655. $as_echo "#define OP_ENABLE_ASSERTIONS 1" >>confdefs.h
  10656. fi
  10657. # Check whether --enable-http was given.
  10658. if test "${enable_http+set}" = set; then :
  10659. enableval=$enable_http;
  10660. else
  10661. enable_http=yes
  10662. fi
  10663. if test -z "$OP_WIN32_TRUE"; then :
  10664. if test "$enable_http" != "no"; then :
  10665. ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  10666. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  10667. else
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a Winsock socket library." >&5
  10669. $as_echo "$as_me: WARNING: HTTP support requires a Winsock socket library." >&2;}
  10670. enable_http=no
  10671. fi
  10672. fi
  10673. else
  10674. if test "$enable_http" != "no"; then :
  10675. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  10676. if test "x$ac_cv_header_sys_socket_h" = xyes; then :
  10677. else
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a POSIX socket library." >&5
  10679. $as_echo "$as_me: WARNING: HTTP support requires a POSIX socket library." >&2;}
  10680. enable_http=no
  10681. fi
  10682. fi
  10683. fi
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ftime" >&5
  10685. $as_echo_n "checking for library containing ftime... " >&6; }
  10686. if ${ac_cv_search_ftime+:} false; then :
  10687. $as_echo_n "(cached) " >&6
  10688. else
  10689. ac_func_search_save_LIBS=$LIBS
  10690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10691. /* end confdefs.h. */
  10692. /* Override any GCC internal prototype to avoid an error.
  10693. Use char because int might match the return type of a GCC
  10694. builtin and then its argument prototype would still apply. */
  10695. #ifdef __cplusplus
  10696. extern "C"
  10697. #endif
  10698. char ftime ();
  10699. int
  10700. main ()
  10701. {
  10702. return ftime ();
  10703. ;
  10704. return 0;
  10705. }
  10706. _ACEOF
  10707. for ac_lib in '' compat; do
  10708. if test -z "$ac_lib"; then
  10709. ac_res="none required"
  10710. else
  10711. ac_res=-l$ac_lib
  10712. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10713. fi
  10714. if ac_fn_c_try_link "$LINENO"; then :
  10715. ac_cv_search_ftime=$ac_res
  10716. fi
  10717. rm -f core conftest.err conftest.$ac_objext \
  10718. conftest$ac_exeext
  10719. if ${ac_cv_search_ftime+:} false; then :
  10720. break
  10721. fi
  10722. done
  10723. if ${ac_cv_search_ftime+:} false; then :
  10724. else
  10725. ac_cv_search_ftime=no
  10726. fi
  10727. rm conftest.$ac_ext
  10728. LIBS=$ac_func_search_save_LIBS
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ftime" >&5
  10731. $as_echo "$ac_cv_search_ftime" >&6; }
  10732. ac_res=$ac_cv_search_ftime
  10733. if test "$ac_res" != no; then :
  10734. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10735. else
  10736. enable_http=no
  10737. fi
  10738. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10739. if test -n "$ac_tool_prefix"; then
  10740. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10741. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10743. $as_echo_n "checking for $ac_word... " >&6; }
  10744. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10745. $as_echo_n "(cached) " >&6
  10746. else
  10747. case $PKG_CONFIG in
  10748. [\\/]* | ?:[\\/]*)
  10749. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10750. ;;
  10751. *)
  10752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10753. for as_dir in $PATH
  10754. do
  10755. IFS=$as_save_IFS
  10756. test -z "$as_dir" && as_dir=.
  10757. for ac_exec_ext in '' $ac_executable_extensions; do
  10758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10759. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10761. break 2
  10762. fi
  10763. done
  10764. done
  10765. IFS=$as_save_IFS
  10766. ;;
  10767. esac
  10768. fi
  10769. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10770. if test -n "$PKG_CONFIG"; then
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10772. $as_echo "$PKG_CONFIG" >&6; }
  10773. else
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10775. $as_echo "no" >&6; }
  10776. fi
  10777. fi
  10778. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10779. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10780. # Extract the first word of "pkg-config", so it can be a program name with args.
  10781. set dummy pkg-config; ac_word=$2
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10783. $as_echo_n "checking for $ac_word... " >&6; }
  10784. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10785. $as_echo_n "(cached) " >&6
  10786. else
  10787. case $ac_pt_PKG_CONFIG in
  10788. [\\/]* | ?:[\\/]*)
  10789. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10790. ;;
  10791. *)
  10792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10793. for as_dir in $PATH
  10794. do
  10795. IFS=$as_save_IFS
  10796. test -z "$as_dir" && as_dir=.
  10797. for ac_exec_ext in '' $ac_executable_extensions; do
  10798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10799. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10801. break 2
  10802. fi
  10803. done
  10804. done
  10805. IFS=$as_save_IFS
  10806. ;;
  10807. esac
  10808. fi
  10809. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10810. if test -n "$ac_pt_PKG_CONFIG"; then
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10812. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10813. else
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10815. $as_echo "no" >&6; }
  10816. fi
  10817. if test "x$ac_pt_PKG_CONFIG" = x; then
  10818. PKG_CONFIG=""
  10819. else
  10820. case $cross_compiling:$ac_tool_warned in
  10821. yes:)
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10823. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10824. ac_tool_warned=yes ;;
  10825. esac
  10826. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10827. fi
  10828. else
  10829. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10830. fi
  10831. fi
  10832. if test -n "$PKG_CONFIG"; then
  10833. _pkg_min_version=0.9.0
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10835. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10836. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10838. $as_echo "yes" >&6; }
  10839. else
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10841. $as_echo "no" >&6; }
  10842. PKG_CONFIG=""
  10843. fi
  10844. fi
  10845. if test "$enable_http" != "no"; then :
  10846. openssl="openssl"
  10847. $as_echo "#define OP_ENABLE_HTTP 1" >>confdefs.h
  10848. pkg_failed=no
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for URL_DEPS" >&5
  10850. $as_echo_n "checking for URL_DEPS... " >&6; }
  10851. if test -n "$URL_DEPS_CFLAGS"; then
  10852. pkg_cv_URL_DEPS_CFLAGS="$URL_DEPS_CFLAGS"
  10853. elif test -n "$PKG_CONFIG"; then
  10854. if test -n "$PKG_CONFIG" && \
  10855. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
  10856. ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
  10857. ac_status=$?
  10858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10859. test $ac_status = 0; }; then
  10860. pkg_cv_URL_DEPS_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
  10861. test "x$?" != "x0" && pkg_failed=yes
  10862. else
  10863. pkg_failed=yes
  10864. fi
  10865. else
  10866. pkg_failed=untried
  10867. fi
  10868. if test -n "$URL_DEPS_LIBS"; then
  10869. pkg_cv_URL_DEPS_LIBS="$URL_DEPS_LIBS"
  10870. elif test -n "$PKG_CONFIG"; then
  10871. if test -n "$PKG_CONFIG" && \
  10872. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
  10873. ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
  10874. ac_status=$?
  10875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10876. test $ac_status = 0; }; then
  10877. pkg_cv_URL_DEPS_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
  10878. test "x$?" != "x0" && pkg_failed=yes
  10879. else
  10880. pkg_failed=yes
  10881. fi
  10882. else
  10883. pkg_failed=untried
  10884. fi
  10885. if test $pkg_failed = yes; then
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10887. $as_echo "no" >&6; }
  10888. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10889. _pkg_short_errors_supported=yes
  10890. else
  10891. _pkg_short_errors_supported=no
  10892. fi
  10893. if test $_pkg_short_errors_supported = yes; then
  10894. URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
  10895. else
  10896. URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
  10897. fi
  10898. # Put the nasty error message in config.log where it belongs
  10899. echo "$URL_DEPS_PKG_ERRORS" >&5
  10900. as_fn_error $? "Package requirements (openssl) were not met:
  10901. $URL_DEPS_PKG_ERRORS
  10902. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  10903. installed software in a non-standard prefix.
  10904. Alternatively, you may set the environment variables URL_DEPS_CFLAGS
  10905. and URL_DEPS_LIBS to avoid the need to call pkg-config.
  10906. See the pkg-config man page for more details." "$LINENO" 5
  10907. elif test $pkg_failed = untried; then
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10909. $as_echo "no" >&6; }
  10910. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10911. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10912. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  10913. is in your PATH or set the PKG_CONFIG environment variable to the full
  10914. path to pkg-config.
  10915. Alternatively, you may set the environment variables URL_DEPS_CFLAGS
  10916. and URL_DEPS_LIBS to avoid the need to call pkg-config.
  10917. See the pkg-config man page for more details.
  10918. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  10919. See \`config.log' for more details" "$LINENO" 5; }
  10920. else
  10921. URL_DEPS_CFLAGS=$pkg_cv_URL_DEPS_CFLAGS
  10922. URL_DEPS_LIBS=$pkg_cv_URL_DEPS_LIBS
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10924. $as_echo "yes" >&6; }
  10925. fi
  10926. fi
  10927. if test "$enable_http" != "no"; then
  10928. OP_ENABLE_HTTP_TRUE=
  10929. OP_ENABLE_HTTP_FALSE='#'
  10930. else
  10931. OP_ENABLE_HTTP_TRUE='#'
  10932. OP_ENABLE_HTTP_FALSE=
  10933. fi
  10934. pkg_failed=no
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5
  10936. $as_echo_n "checking for DEPS... " >&6; }
  10937. if test -n "$DEPS_CFLAGS"; then
  10938. pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
  10939. elif test -n "$PKG_CONFIG"; then
  10940. if test -n "$PKG_CONFIG" && \
  10941. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
  10942. ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
  10943. ac_status=$?
  10944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10945. test $ac_status = 0; }; then
  10946. pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
  10947. test "x$?" != "x0" && pkg_failed=yes
  10948. else
  10949. pkg_failed=yes
  10950. fi
  10951. else
  10952. pkg_failed=untried
  10953. fi
  10954. if test -n "$DEPS_LIBS"; then
  10955. pkg_cv_DEPS_LIBS="$DEPS_LIBS"
  10956. elif test -n "$PKG_CONFIG"; then
  10957. if test -n "$PKG_CONFIG" && \
  10958. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
  10959. ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
  10960. ac_status=$?
  10961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10962. test $ac_status = 0; }; then
  10963. pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
  10964. test "x$?" != "x0" && pkg_failed=yes
  10965. else
  10966. pkg_failed=yes
  10967. fi
  10968. else
  10969. pkg_failed=untried
  10970. fi
  10971. if test $pkg_failed = yes; then
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10973. $as_echo "no" >&6; }
  10974. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10975. _pkg_short_errors_supported=yes
  10976. else
  10977. _pkg_short_errors_supported=no
  10978. fi
  10979. if test $_pkg_short_errors_supported = yes; then
  10980. DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
  10981. else
  10982. DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
  10983. fi
  10984. # Put the nasty error message in config.log where it belongs
  10985. echo "$DEPS_PKG_ERRORS" >&5
  10986. as_fn_error $? "Package requirements (ogg >= 1.3 opus >= 1.0.1) were not met:
  10987. $DEPS_PKG_ERRORS
  10988. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  10989. installed software in a non-standard prefix.
  10990. Alternatively, you may set the environment variables DEPS_CFLAGS
  10991. and DEPS_LIBS to avoid the need to call pkg-config.
  10992. See the pkg-config man page for more details." "$LINENO" 5
  10993. elif test $pkg_failed = untried; then
  10994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10995. $as_echo "no" >&6; }
  10996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10998. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  10999. is in your PATH or set the PKG_CONFIG environment variable to the full
  11000. path to pkg-config.
  11001. Alternatively, you may set the environment variables DEPS_CFLAGS
  11002. and DEPS_LIBS to avoid the need to call pkg-config.
  11003. See the pkg-config man page for more details.
  11004. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11005. See \`config.log' for more details" "$LINENO" 5; }
  11006. else
  11007. DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
  11008. DEPS_LIBS=$pkg_cv_DEPS_LIBS
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11010. $as_echo "yes" >&6; }
  11011. fi
  11012. # Check whether --enable-fixed-point was given.
  11013. if test "${enable_fixed_point+set}" = set; then :
  11014. enableval=$enable_fixed_point;
  11015. else
  11016. enable_fixed_point=no
  11017. fi
  11018. # Check whether --enable-float was given.
  11019. if test "${enable_float+set}" = set; then :
  11020. enableval=$enable_float;
  11021. else
  11022. enable_float=yes
  11023. fi
  11024. if test "$enable_float" = "no"; then :
  11025. enable_fixed_point=yes
  11026. $as_echo "#define OP_DISABLE_FLOAT_API 1" >>confdefs.h
  11027. fi
  11028. if test "$enable_fixed_point" = "yes"; then :
  11029. $as_echo "#define OP_FIXED_POINT 1" >>confdefs.h
  11030. else
  11031. saved_LIBS="$LIBS"
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrintf" >&5
  11033. $as_echo_n "checking for library containing lrintf... " >&6; }
  11034. if ${ac_cv_search_lrintf+:} false; then :
  11035. $as_echo_n "(cached) " >&6
  11036. else
  11037. ac_func_search_save_LIBS=$LIBS
  11038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11039. /* end confdefs.h. */
  11040. /* Override any GCC internal prototype to avoid an error.
  11041. Use char because int might match the return type of a GCC
  11042. builtin and then its argument prototype would still apply. */
  11043. #ifdef __cplusplus
  11044. extern "C"
  11045. #endif
  11046. char lrintf ();
  11047. int
  11048. main ()
  11049. {
  11050. return lrintf ();
  11051. ;
  11052. return 0;
  11053. }
  11054. _ACEOF
  11055. for ac_lib in '' m; do
  11056. if test -z "$ac_lib"; then
  11057. ac_res="none required"
  11058. else
  11059. ac_res=-l$ac_lib
  11060. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11061. fi
  11062. if ac_fn_c_try_link "$LINENO"; then :
  11063. ac_cv_search_lrintf=$ac_res
  11064. fi
  11065. rm -f core conftest.err conftest.$ac_objext \
  11066. conftest$ac_exeext
  11067. if ${ac_cv_search_lrintf+:} false; then :
  11068. break
  11069. fi
  11070. done
  11071. if ${ac_cv_search_lrintf+:} false; then :
  11072. else
  11073. ac_cv_search_lrintf=no
  11074. fi
  11075. rm conftest.$ac_ext
  11076. LIBS=$ac_func_search_save_LIBS
  11077. fi
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrintf" >&5
  11079. $as_echo "$ac_cv_search_lrintf" >&6; }
  11080. ac_res=$ac_cv_search_lrintf
  11081. if test "$ac_res" != no; then :
  11082. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11083. $as_echo "#define OP_HAVE_LRINTF 1" >>confdefs.h
  11084. lrintf_notice="
  11085. Library for lrintf() ......... ${ac_cv_search_lrintf}"
  11086. fi
  11087. LIBS="$saved_LIBS"
  11088. fi
  11089. # Check whether --enable-examples was given.
  11090. if test "${enable_examples+set}" = set; then :
  11091. enableval=$enable_examples;
  11092. else
  11093. enable_examples=yes
  11094. fi
  11095. if test "$enable_examples" = "yes"; then
  11096. OP_ENABLE_EXAMPLES_TRUE=
  11097. OP_ENABLE_EXAMPLES_FALSE='#'
  11098. else
  11099. OP_ENABLE_EXAMPLES_TRUE='#'
  11100. OP_ENABLE_EXAMPLES_FALSE=
  11101. fi
  11102. case "$ac_cv_search_lrintf" in #(
  11103. "no") :
  11104. ;; #(
  11105. "none required") :
  11106. ;; #(
  11107. *) :
  11108. lrintf_lib="$ac_cv_search_lrintf" ;;
  11109. esac
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
  11111. $as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
  11112. if ${cc_cv_werror+:} false; then :
  11113. $as_echo_n "(cached) " >&6
  11114. else
  11115. if ${cc_cv_cflags__Werror+:} false; then :
  11116. $as_echo_n "(cached) " >&6
  11117. else
  11118. ac_save_CFLAGS="$CFLAGS"
  11119. CFLAGS="$CFLAGS -Werror"
  11120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11121. /* end confdefs.h. */
  11122. int main() { return 0; }
  11123. _ACEOF
  11124. if ac_fn_c_try_link "$LINENO"; then :
  11125. eval "cc_cv_cflags__Werror='yes'"
  11126. else
  11127. eval "cc_cv_cflags__Werror='no'"
  11128. fi
  11129. rm -f core conftest.err conftest.$ac_objext \
  11130. conftest$ac_exeext conftest.$ac_ext
  11131. CFLAGS="$ac_save_CFLAGS"
  11132. fi
  11133. if eval test x$cc_cv_cflags__Werror = xyes; then :
  11134. cc_cv_werror=-Werror
  11135. else
  11136. if ${cc_cv_cflags__errwarn__all+:} false; then :
  11137. $as_echo_n "(cached) " >&6
  11138. else
  11139. ac_save_CFLAGS="$CFLAGS"
  11140. CFLAGS="$CFLAGS -errwarn=%all"
  11141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11142. /* end confdefs.h. */
  11143. int main() { return 0; }
  11144. _ACEOF
  11145. if ac_fn_c_try_link "$LINENO"; then :
  11146. eval "cc_cv_cflags__errwarn__all='yes'"
  11147. else
  11148. eval "cc_cv_cflags__errwarn__all='no'"
  11149. fi
  11150. rm -f core conftest.err conftest.$ac_objext \
  11151. conftest$ac_exeext conftest.$ac_ext
  11152. CFLAGS="$ac_save_CFLAGS"
  11153. fi
  11154. if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
  11155. cc_cv_werror=-errwarn=%all
  11156. fi
  11157. fi
  11158. fi
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
  11160. $as_echo "$cc_cv_werror" >&6; }
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5
  11162. $as_echo_n "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; }
  11163. if ${cc_cv_attribute_visibility_default+:} false; then :
  11164. $as_echo_n "(cached) " >&6
  11165. else
  11166. ac_save_CFLAGS="$CFLAGS"
  11167. CFLAGS="$CFLAGS $cc_cv_werror"
  11168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11169. /* end confdefs.h. */
  11170. void __attribute__((visibility("default"))) default_function() { }
  11171. _ACEOF
  11172. if ac_fn_c_try_compile "$LINENO"; then :
  11173. eval "cc_cv_attribute_visibility_default='yes'"
  11174. else
  11175. eval "cc_cv_attribute_visibility_default='no'"
  11176. fi
  11177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11178. CFLAGS="$ac_save_CFLAGS"
  11179. fi
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5
  11181. $as_echo "$cc_cv_attribute_visibility_default" >&6; }
  11182. if eval test x$cc_cv_attribute_visibility_default = xyes; then :
  11183. $as_echo "#define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5
  11185. $as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; }
  11186. if ${cc_cv_flag_visibility+:} false; then :
  11187. $as_echo_n "(cached) " >&6
  11188. else
  11189. cc_flag_visibility_save_CFLAGS="$CFLAGS"
  11190. CFLAGS="$CFLAGS $cc_cv_werror"
  11191. if ${cc_cv_cflags__fvisibility_hidden+:} false; then :
  11192. $as_echo_n "(cached) " >&6
  11193. else
  11194. ac_save_CFLAGS="$CFLAGS"
  11195. CFLAGS="$CFLAGS -fvisibility=hidden"
  11196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11197. /* end confdefs.h. */
  11198. int main() { return 0; }
  11199. _ACEOF
  11200. if ac_fn_c_try_link "$LINENO"; then :
  11201. eval "cc_cv_cflags__fvisibility_hidden='yes'"
  11202. else
  11203. eval "cc_cv_cflags__fvisibility_hidden='no'"
  11204. fi
  11205. rm -f core conftest.err conftest.$ac_objext \
  11206. conftest$ac_exeext conftest.$ac_ext
  11207. CFLAGS="$ac_save_CFLAGS"
  11208. fi
  11209. if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then :
  11210. cc_cv_flag_visibility='yes'
  11211. else
  11212. cc_cv_flag_visibility='no'
  11213. fi
  11214. CFLAGS="$cc_flag_visibility_save_CFLAGS"
  11215. fi
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5
  11217. $as_echo "$cc_cv_flag_visibility" >&6; }
  11218. if test "x$cc_cv_flag_visibility" = "xyes"; then :
  11219. $as_echo "#define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h
  11220. CFLAGS="${CFLAGS} -fvisibility=hidden"
  11221. fi
  11222. fi
  11223. # Check whether --enable-doc was given.
  11224. if test "${enable_doc+set}" = set; then :
  11225. enableval=$enable_doc;
  11226. else
  11227. enable_doc=yes
  11228. fi
  11229. if test "$enable_doc" = "yes"; then :
  11230. # Extract the first word of "doxygen", so it can be a program name with args.
  11231. set dummy doxygen; ac_word=$2
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11233. $as_echo_n "checking for $ac_word... " >&6; }
  11234. if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
  11235. $as_echo_n "(cached) " >&6
  11236. else
  11237. if test -n "$HAVE_DOXYGEN"; then
  11238. ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
  11239. else
  11240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11241. for as_dir in $PATH
  11242. do
  11243. IFS=$as_save_IFS
  11244. test -z "$as_dir" && as_dir=.
  11245. for ac_exec_ext in '' $ac_executable_extensions; do
  11246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11247. ac_cv_prog_HAVE_DOXYGEN="yes"
  11248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11249. break 2
  11250. fi
  11251. done
  11252. done
  11253. IFS=$as_save_IFS
  11254. test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
  11255. fi
  11256. fi
  11257. HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
  11258. if test -n "$HAVE_DOXYGEN"; then
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
  11260. $as_echo "$HAVE_DOXYGEN" >&6; }
  11261. else
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11263. $as_echo "no" >&6; }
  11264. fi
  11265. # Extract the first word of "dot", so it can be a program name with args.
  11266. set dummy dot; ac_word=$2
  11267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11268. $as_echo_n "checking for $ac_word... " >&6; }
  11269. if ${ac_cv_prog_HAVE_DOT+:} false; then :
  11270. $as_echo_n "(cached) " >&6
  11271. else
  11272. if test -n "$HAVE_DOT"; then
  11273. ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
  11274. else
  11275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11276. for as_dir in $PATH
  11277. do
  11278. IFS=$as_save_IFS
  11279. test -z "$as_dir" && as_dir=.
  11280. for ac_exec_ext in '' $ac_executable_extensions; do
  11281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11282. ac_cv_prog_HAVE_DOT="yes"
  11283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11284. break 2
  11285. fi
  11286. done
  11287. done
  11288. IFS=$as_save_IFS
  11289. test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
  11290. fi
  11291. fi
  11292. HAVE_DOT=$ac_cv_prog_HAVE_DOT
  11293. if test -n "$HAVE_DOT"; then
  11294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
  11295. $as_echo "$HAVE_DOT" >&6; }
  11296. else
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11298. $as_echo "no" >&6; }
  11299. fi
  11300. else
  11301. HAVE_DOXYGEN=no
  11302. fi
  11303. if test "$HAVE_DOXYGEN" = "yes"; then
  11304. HAVE_DOXYGEN_TRUE=
  11305. HAVE_DOXYGEN_FALSE='#'
  11306. else
  11307. HAVE_DOXYGEN_TRUE='#'
  11308. HAVE_DOXYGEN_FALSE=
  11309. fi
  11310. ac_config_files="$ac_config_files Makefile opusfile.pc opusurl.pc opusfile-uninstalled.pc opusurl-uninstalled.pc doc/Doxyfile"
  11311. ac_config_headers="$ac_config_headers config.h"
  11312. cat >confcache <<\_ACEOF
  11313. # This file is a shell script that caches the results of configure
  11314. # tests run on this system so they can be shared between configure
  11315. # scripts and configure runs, see configure's option --config-cache.
  11316. # It is not useful on other systems. If it contains results you don't
  11317. # want to keep, you may remove or edit it.
  11318. #
  11319. # config.status only pays attention to the cache file if you give it
  11320. # the --recheck option to rerun configure.
  11321. #
  11322. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11323. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11324. # following values.
  11325. _ACEOF
  11326. # The following way of writing the cache mishandles newlines in values,
  11327. # but we know of no workaround that is simple, portable, and efficient.
  11328. # So, we kill variables containing newlines.
  11329. # Ultrix sh set writes to stderr and can't be redirected directly,
  11330. # and sets the high bit in the cache file unless we assign to the vars.
  11331. (
  11332. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11333. eval ac_val=\$$ac_var
  11334. case $ac_val in #(
  11335. *${as_nl}*)
  11336. case $ac_var in #(
  11337. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11338. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11339. esac
  11340. case $ac_var in #(
  11341. _ | IFS | as_nl) ;; #(
  11342. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11343. *) { eval $ac_var=; unset $ac_var;} ;;
  11344. esac ;;
  11345. esac
  11346. done
  11347. (set) 2>&1 |
  11348. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11349. *${as_nl}ac_space=\ *)
  11350. # `set' does not quote correctly, so add quotes: double-quote
  11351. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11352. sed -n \
  11353. "s/'/'\\\\''/g;
  11354. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11355. ;; #(
  11356. *)
  11357. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11358. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11359. ;;
  11360. esac |
  11361. sort
  11362. ) |
  11363. sed '
  11364. /^ac_cv_env_/b end
  11365. t clear
  11366. :clear
  11367. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11368. t end
  11369. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11370. :end' >>confcache
  11371. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11372. if test -w "$cache_file"; then
  11373. if test "x$cache_file" != "x/dev/null"; then
  11374. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11375. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11376. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11377. cat confcache >"$cache_file"
  11378. else
  11379. case $cache_file in #(
  11380. */* | ?:*)
  11381. mv -f confcache "$cache_file"$$ &&
  11382. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11383. *)
  11384. mv -f confcache "$cache_file" ;;
  11385. esac
  11386. fi
  11387. fi
  11388. else
  11389. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11390. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11391. fi
  11392. fi
  11393. rm -f confcache
  11394. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11395. # Let make expand exec_prefix.
  11396. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11397. DEFS=-DHAVE_CONFIG_H
  11398. ac_libobjs=
  11399. ac_ltlibobjs=
  11400. U=
  11401. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11402. # 1. Remove the extension, and $U if already installed.
  11403. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11404. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11405. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11406. # will be set to the directory where LIBOBJS objects are built.
  11407. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11408. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11409. done
  11410. LIBOBJS=$ac_libobjs
  11411. LTLIBOBJS=$ac_ltlibobjs
  11412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11413. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11414. if test -n "$am_sleep_pid"; then
  11415. # Hide warnings about reused PIDs.
  11416. wait $am_sleep_pid 2>/dev/null
  11417. fi
  11418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11419. $as_echo "done" >&6; }
  11420. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11421. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11422. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11423. fi
  11424. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11425. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11426. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11427. fi
  11428. if test -n "$EXEEXT"; then
  11429. am__EXEEXT_TRUE=
  11430. am__EXEEXT_FALSE='#'
  11431. else
  11432. am__EXEEXT_TRUE='#'
  11433. am__EXEEXT_FALSE=
  11434. fi
  11435. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11436. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11438. fi
  11439. if test -z "${OP_WIN32_TRUE}" && test -z "${OP_WIN32_FALSE}"; then
  11440. as_fn_error $? "conditional \"OP_WIN32\" was never defined.
  11441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11442. fi
  11443. if test -z "${OP_ENABLE_HTTP_TRUE}" && test -z "${OP_ENABLE_HTTP_FALSE}"; then
  11444. as_fn_error $? "conditional \"OP_ENABLE_HTTP\" was never defined.
  11445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11446. fi
  11447. if test -z "${OP_ENABLE_EXAMPLES_TRUE}" && test -z "${OP_ENABLE_EXAMPLES_FALSE}"; then
  11448. as_fn_error $? "conditional \"OP_ENABLE_EXAMPLES\" was never defined.
  11449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11450. fi
  11451. if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
  11452. as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
  11453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11454. fi
  11455. : "${CONFIG_STATUS=./config.status}"
  11456. ac_write_fail=0
  11457. ac_clean_files_save=$ac_clean_files
  11458. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11459. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11460. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11461. as_write_fail=0
  11462. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11463. #! $SHELL
  11464. # Generated by $as_me.
  11465. # Run this file to recreate the current configuration.
  11466. # Compiler output produced by configure, useful for debugging
  11467. # configure, is in config.log if it exists.
  11468. debug=false
  11469. ac_cs_recheck=false
  11470. ac_cs_silent=false
  11471. SHELL=\${CONFIG_SHELL-$SHELL}
  11472. export SHELL
  11473. _ASEOF
  11474. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11475. ## -------------------- ##
  11476. ## M4sh Initialization. ##
  11477. ## -------------------- ##
  11478. # Be more Bourne compatible
  11479. DUALCASE=1; export DUALCASE # for MKS sh
  11480. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11481. emulate sh
  11482. NULLCMD=:
  11483. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11484. # is contrary to our usage. Disable this feature.
  11485. alias -g '${1+"$@"}'='"$@"'
  11486. setopt NO_GLOB_SUBST
  11487. else
  11488. case `(set -o) 2>/dev/null` in #(
  11489. *posix*) :
  11490. set -o posix ;; #(
  11491. *) :
  11492. ;;
  11493. esac
  11494. fi
  11495. as_nl='
  11496. '
  11497. export as_nl
  11498. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11499. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11500. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11501. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11502. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11503. # but without wasting forks for bash or zsh.
  11504. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11505. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11506. as_echo='print -r --'
  11507. as_echo_n='print -rn --'
  11508. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11509. as_echo='printf %s\n'
  11510. as_echo_n='printf %s'
  11511. else
  11512. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11513. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11514. as_echo_n='/usr/ucb/echo -n'
  11515. else
  11516. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11517. as_echo_n_body='eval
  11518. arg=$1;
  11519. case $arg in #(
  11520. *"$as_nl"*)
  11521. expr "X$arg" : "X\\(.*\\)$as_nl";
  11522. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11523. esac;
  11524. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11525. '
  11526. export as_echo_n_body
  11527. as_echo_n='sh -c $as_echo_n_body as_echo'
  11528. fi
  11529. export as_echo_body
  11530. as_echo='sh -c $as_echo_body as_echo'
  11531. fi
  11532. # The user is always right.
  11533. if test "${PATH_SEPARATOR+set}" != set; then
  11534. PATH_SEPARATOR=:
  11535. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11536. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11537. PATH_SEPARATOR=';'
  11538. }
  11539. fi
  11540. # IFS
  11541. # We need space, tab and new line, in precisely that order. Quoting is
  11542. # there to prevent editors from complaining about space-tab.
  11543. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11544. # splitting by setting IFS to empty value.)
  11545. IFS=" "" $as_nl"
  11546. # Find who we are. Look in the path if we contain no directory separator.
  11547. as_myself=
  11548. case $0 in #((
  11549. *[\\/]* ) as_myself=$0 ;;
  11550. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11551. for as_dir in $PATH
  11552. do
  11553. IFS=$as_save_IFS
  11554. test -z "$as_dir" && as_dir=.
  11555. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11556. done
  11557. IFS=$as_save_IFS
  11558. ;;
  11559. esac
  11560. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11561. # in which case we are not to be found in the path.
  11562. if test "x$as_myself" = x; then
  11563. as_myself=$0
  11564. fi
  11565. if test ! -f "$as_myself"; then
  11566. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11567. exit 1
  11568. fi
  11569. # Unset variables that we do not need and which cause bugs (e.g. in
  11570. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11571. # suppresses any "Segmentation fault" message there. '((' could
  11572. # trigger a bug in pdksh 5.2.14.
  11573. for as_var in BASH_ENV ENV MAIL MAILPATH
  11574. do eval test x\${$as_var+set} = xset \
  11575. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11576. done
  11577. PS1='$ '
  11578. PS2='> '
  11579. PS4='+ '
  11580. # NLS nuisances.
  11581. LC_ALL=C
  11582. export LC_ALL
  11583. LANGUAGE=C
  11584. export LANGUAGE
  11585. # CDPATH.
  11586. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11587. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11588. # ----------------------------------------
  11589. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11590. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11591. # script with STATUS, using 1 if that was 0.
  11592. as_fn_error ()
  11593. {
  11594. as_status=$1; test $as_status -eq 0 && as_status=1
  11595. if test "$4"; then
  11596. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11597. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11598. fi
  11599. $as_echo "$as_me: error: $2" >&2
  11600. as_fn_exit $as_status
  11601. } # as_fn_error
  11602. # as_fn_set_status STATUS
  11603. # -----------------------
  11604. # Set $? to STATUS, without forking.
  11605. as_fn_set_status ()
  11606. {
  11607. return $1
  11608. } # as_fn_set_status
  11609. # as_fn_exit STATUS
  11610. # -----------------
  11611. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11612. as_fn_exit ()
  11613. {
  11614. set +e
  11615. as_fn_set_status $1
  11616. exit $1
  11617. } # as_fn_exit
  11618. # as_fn_unset VAR
  11619. # ---------------
  11620. # Portably unset VAR.
  11621. as_fn_unset ()
  11622. {
  11623. { eval $1=; unset $1;}
  11624. }
  11625. as_unset=as_fn_unset
  11626. # as_fn_append VAR VALUE
  11627. # ----------------------
  11628. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11629. # advantage of any shell optimizations that allow amortized linear growth over
  11630. # repeated appends, instead of the typical quadratic growth present in naive
  11631. # implementations.
  11632. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11633. eval 'as_fn_append ()
  11634. {
  11635. eval $1+=\$2
  11636. }'
  11637. else
  11638. as_fn_append ()
  11639. {
  11640. eval $1=\$$1\$2
  11641. }
  11642. fi # as_fn_append
  11643. # as_fn_arith ARG...
  11644. # ------------------
  11645. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11646. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11647. # must be portable across $(()) and expr.
  11648. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11649. eval 'as_fn_arith ()
  11650. {
  11651. as_val=$(( $* ))
  11652. }'
  11653. else
  11654. as_fn_arith ()
  11655. {
  11656. as_val=`expr "$@" || test $? -eq 1`
  11657. }
  11658. fi # as_fn_arith
  11659. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11660. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11661. as_expr=expr
  11662. else
  11663. as_expr=false
  11664. fi
  11665. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11666. as_basename=basename
  11667. else
  11668. as_basename=false
  11669. fi
  11670. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11671. as_dirname=dirname
  11672. else
  11673. as_dirname=false
  11674. fi
  11675. as_me=`$as_basename -- "$0" ||
  11676. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11677. X"$0" : 'X\(//\)$' \| \
  11678. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11679. $as_echo X/"$0" |
  11680. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11681. s//\1/
  11682. q
  11683. }
  11684. /^X\/\(\/\/\)$/{
  11685. s//\1/
  11686. q
  11687. }
  11688. /^X\/\(\/\).*/{
  11689. s//\1/
  11690. q
  11691. }
  11692. s/.*/./; q'`
  11693. # Avoid depending upon Character Ranges.
  11694. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11695. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11696. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11697. as_cr_digits='0123456789'
  11698. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11699. ECHO_C= ECHO_N= ECHO_T=
  11700. case `echo -n x` in #(((((
  11701. -n*)
  11702. case `echo 'xy\c'` in
  11703. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11704. xy) ECHO_C='\c';;
  11705. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11706. ECHO_T=' ';;
  11707. esac;;
  11708. *)
  11709. ECHO_N='-n';;
  11710. esac
  11711. rm -f conf$$ conf$$.exe conf$$.file
  11712. if test -d conf$$.dir; then
  11713. rm -f conf$$.dir/conf$$.file
  11714. else
  11715. rm -f conf$$.dir
  11716. mkdir conf$$.dir 2>/dev/null
  11717. fi
  11718. if (echo >conf$$.file) 2>/dev/null; then
  11719. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11720. as_ln_s='ln -s'
  11721. # ... but there are two gotchas:
  11722. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11723. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11724. # In both cases, we have to default to `cp -pR'.
  11725. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11726. as_ln_s='cp -pR'
  11727. elif ln conf$$.file conf$$ 2>/dev/null; then
  11728. as_ln_s=ln
  11729. else
  11730. as_ln_s='cp -pR'
  11731. fi
  11732. else
  11733. as_ln_s='cp -pR'
  11734. fi
  11735. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11736. rmdir conf$$.dir 2>/dev/null
  11737. # as_fn_mkdir_p
  11738. # -------------
  11739. # Create "$as_dir" as a directory, including parents if necessary.
  11740. as_fn_mkdir_p ()
  11741. {
  11742. case $as_dir in #(
  11743. -*) as_dir=./$as_dir;;
  11744. esac
  11745. test -d "$as_dir" || eval $as_mkdir_p || {
  11746. as_dirs=
  11747. while :; do
  11748. case $as_dir in #(
  11749. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11750. *) as_qdir=$as_dir;;
  11751. esac
  11752. as_dirs="'$as_qdir' $as_dirs"
  11753. as_dir=`$as_dirname -- "$as_dir" ||
  11754. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11755. X"$as_dir" : 'X\(//\)[^/]' \| \
  11756. X"$as_dir" : 'X\(//\)$' \| \
  11757. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11758. $as_echo X"$as_dir" |
  11759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11760. s//\1/
  11761. q
  11762. }
  11763. /^X\(\/\/\)[^/].*/{
  11764. s//\1/
  11765. q
  11766. }
  11767. /^X\(\/\/\)$/{
  11768. s//\1/
  11769. q
  11770. }
  11771. /^X\(\/\).*/{
  11772. s//\1/
  11773. q
  11774. }
  11775. s/.*/./; q'`
  11776. test -d "$as_dir" && break
  11777. done
  11778. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11779. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11780. } # as_fn_mkdir_p
  11781. if mkdir -p . 2>/dev/null; then
  11782. as_mkdir_p='mkdir -p "$as_dir"'
  11783. else
  11784. test -d ./-p && rmdir ./-p
  11785. as_mkdir_p=false
  11786. fi
  11787. # as_fn_executable_p FILE
  11788. # -----------------------
  11789. # Test if FILE is an executable regular file.
  11790. as_fn_executable_p ()
  11791. {
  11792. test -f "$1" && test -x "$1"
  11793. } # as_fn_executable_p
  11794. as_test_x='test -x'
  11795. as_executable_p=as_fn_executable_p
  11796. # Sed expression to map a string onto a valid CPP name.
  11797. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11798. # Sed expression to map a string onto a valid variable name.
  11799. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11800. exec 6>&1
  11801. ## ----------------------------------- ##
  11802. ## Main body of $CONFIG_STATUS script. ##
  11803. ## ----------------------------------- ##
  11804. _ASEOF
  11805. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11806. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11807. # Save the log message, to keep $0 and so on meaningful, and to
  11808. # report actual input values of CONFIG_FILES etc. instead of their
  11809. # values after options handling.
  11810. ac_log="
  11811. This file was extended by opusfile $as_me 0.11, which was
  11812. generated by GNU Autoconf 2.69. Invocation command line was
  11813. CONFIG_FILES = $CONFIG_FILES
  11814. CONFIG_HEADERS = $CONFIG_HEADERS
  11815. CONFIG_LINKS = $CONFIG_LINKS
  11816. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11817. $ $0 $@
  11818. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11819. "
  11820. _ACEOF
  11821. case $ac_config_files in *"
  11822. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11823. esac
  11824. case $ac_config_headers in *"
  11825. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11826. esac
  11827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11828. # Files that config.status was made for.
  11829. config_files="$ac_config_files"
  11830. config_headers="$ac_config_headers"
  11831. config_commands="$ac_config_commands"
  11832. _ACEOF
  11833. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11834. ac_cs_usage="\
  11835. \`$as_me' instantiates files and other configuration actions
  11836. from templates according to the current configuration. Unless the files
  11837. and actions are specified as TAGs, all are instantiated by default.
  11838. Usage: $0 [OPTION]... [TAG]...
  11839. -h, --help print this help, then exit
  11840. -V, --version print version number and configuration settings, then exit
  11841. --config print configuration, then exit
  11842. -q, --quiet, --silent
  11843. do not print progress messages
  11844. -d, --debug don't remove temporary files
  11845. --recheck update $as_me by reconfiguring in the same conditions
  11846. --file=FILE[:TEMPLATE]
  11847. instantiate the configuration file FILE
  11848. --header=FILE[:TEMPLATE]
  11849. instantiate the configuration header FILE
  11850. Configuration files:
  11851. $config_files
  11852. Configuration headers:
  11853. $config_headers
  11854. Configuration commands:
  11855. $config_commands
  11856. Report bugs to <[email protected]>."
  11857. _ACEOF
  11858. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11859. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11860. ac_cs_version="\\
  11861. opusfile config.status 0.11
  11862. configured by $0, generated by GNU Autoconf 2.69,
  11863. with options \\"\$ac_cs_config\\"
  11864. Copyright (C) 2012 Free Software Foundation, Inc.
  11865. This config.status script is free software; the Free Software Foundation
  11866. gives unlimited permission to copy, distribute and modify it."
  11867. ac_pwd='$ac_pwd'
  11868. srcdir='$srcdir'
  11869. INSTALL='$INSTALL'
  11870. MKDIR_P='$MKDIR_P'
  11871. AWK='$AWK'
  11872. test -n "\$AWK" || AWK=awk
  11873. _ACEOF
  11874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11875. # The default lists apply if the user does not specify any file.
  11876. ac_need_defaults=:
  11877. while test $# != 0
  11878. do
  11879. case $1 in
  11880. --*=?*)
  11881. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11882. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11883. ac_shift=:
  11884. ;;
  11885. --*=)
  11886. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11887. ac_optarg=
  11888. ac_shift=:
  11889. ;;
  11890. *)
  11891. ac_option=$1
  11892. ac_optarg=$2
  11893. ac_shift=shift
  11894. ;;
  11895. esac
  11896. case $ac_option in
  11897. # Handling of the options.
  11898. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11899. ac_cs_recheck=: ;;
  11900. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11901. $as_echo "$ac_cs_version"; exit ;;
  11902. --config | --confi | --conf | --con | --co | --c )
  11903. $as_echo "$ac_cs_config"; exit ;;
  11904. --debug | --debu | --deb | --de | --d | -d )
  11905. debug=: ;;
  11906. --file | --fil | --fi | --f )
  11907. $ac_shift
  11908. case $ac_optarg in
  11909. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11910. '') as_fn_error $? "missing file argument" ;;
  11911. esac
  11912. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11913. ac_need_defaults=false;;
  11914. --header | --heade | --head | --hea )
  11915. $ac_shift
  11916. case $ac_optarg in
  11917. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11918. esac
  11919. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11920. ac_need_defaults=false;;
  11921. --he | --h)
  11922. # Conflict between --help and --header
  11923. as_fn_error $? "ambiguous option: \`$1'
  11924. Try \`$0 --help' for more information.";;
  11925. --help | --hel | -h )
  11926. $as_echo "$ac_cs_usage"; exit ;;
  11927. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11928. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11929. ac_cs_silent=: ;;
  11930. # This is an error.
  11931. -*) as_fn_error $? "unrecognized option: \`$1'
  11932. Try \`$0 --help' for more information." ;;
  11933. *) as_fn_append ac_config_targets " $1"
  11934. ac_need_defaults=false ;;
  11935. esac
  11936. shift
  11937. done
  11938. ac_configure_extra_args=
  11939. if $ac_cs_silent; then
  11940. exec 6>/dev/null
  11941. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11942. fi
  11943. _ACEOF
  11944. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11945. if \$ac_cs_recheck; then
  11946. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11947. shift
  11948. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11949. CONFIG_SHELL='$SHELL'
  11950. export CONFIG_SHELL
  11951. exec "\$@"
  11952. fi
  11953. _ACEOF
  11954. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11955. exec 5>>config.log
  11956. {
  11957. echo
  11958. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11959. ## Running $as_me. ##
  11960. _ASBOX
  11961. $as_echo "$ac_log"
  11962. } >&5
  11963. _ACEOF
  11964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11965. #
  11966. # INIT-COMMANDS
  11967. #
  11968. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11969. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11970. # if CDPATH is set.
  11971. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11972. sed_quote_subst='$sed_quote_subst'
  11973. double_quote_subst='$double_quote_subst'
  11974. delay_variable_subst='$delay_variable_subst'
  11975. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11976. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11977. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11978. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11979. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11980. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11981. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11982. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11983. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11984. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11985. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11986. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11987. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11988. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11989. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11990. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11991. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11992. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11993. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11994. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11995. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11996. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11997. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11998. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11999. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12000. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12001. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12002. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12003. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12004. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12005. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12006. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12007. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12008. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12009. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12010. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12011. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12012. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12013. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12014. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12015. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12016. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12017. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12018. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12019. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12020. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12021. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12022. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12023. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12024. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12025. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12026. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12027. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12028. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12029. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12030. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12031. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  12032. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12033. 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"`'
  12034. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  12035. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12036. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12037. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  12038. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12039. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12040. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12041. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12042. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12043. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12044. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12045. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12046. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12047. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12048. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12049. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12050. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12051. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12052. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12053. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12054. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12055. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12056. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12057. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12058. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12059. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12060. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12061. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12062. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12063. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12064. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12065. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12066. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12067. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12068. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12069. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12070. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12071. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12072. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12073. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12074. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12075. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12076. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12077. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12078. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12079. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12080. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12081. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12082. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12083. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12084. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12085. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12086. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12087. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12088. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12089. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12090. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12091. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12092. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12093. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12094. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12095. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12096. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12097. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12098. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12099. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12100. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12101. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12102. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  12103. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  12104. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12105. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12106. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12107. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12108. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12109. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12110. LTCC='$LTCC'
  12111. LTCFLAGS='$LTCFLAGS'
  12112. compiler='$compiler_DEFAULT'
  12113. # A function that is used when there is no print builtin or printf.
  12114. func_fallback_echo ()
  12115. {
  12116. eval 'cat <<_LTECHO_EOF
  12117. \$1
  12118. _LTECHO_EOF'
  12119. }
  12120. # Quote evaled strings.
  12121. for var in SHELL \
  12122. ECHO \
  12123. PATH_SEPARATOR \
  12124. SED \
  12125. GREP \
  12126. EGREP \
  12127. FGREP \
  12128. LD \
  12129. NM \
  12130. LN_S \
  12131. lt_SP2NL \
  12132. lt_NL2SP \
  12133. reload_flag \
  12134. OBJDUMP \
  12135. deplibs_check_method \
  12136. file_magic_cmd \
  12137. file_magic_glob \
  12138. want_nocaseglob \
  12139. DLLTOOL \
  12140. sharedlib_from_linklib_cmd \
  12141. AR \
  12142. AR_FLAGS \
  12143. archiver_list_spec \
  12144. STRIP \
  12145. RANLIB \
  12146. CC \
  12147. CFLAGS \
  12148. compiler \
  12149. lt_cv_sys_global_symbol_pipe \
  12150. lt_cv_sys_global_symbol_to_cdecl \
  12151. lt_cv_sys_global_symbol_to_import \
  12152. lt_cv_sys_global_symbol_to_c_name_address \
  12153. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12154. lt_cv_nm_interface \
  12155. nm_file_list_spec \
  12156. lt_cv_truncate_bin \
  12157. lt_prog_compiler_no_builtin_flag \
  12158. lt_prog_compiler_pic \
  12159. lt_prog_compiler_wl \
  12160. lt_prog_compiler_static \
  12161. lt_cv_prog_compiler_c_o \
  12162. need_locks \
  12163. MANIFEST_TOOL \
  12164. DSYMUTIL \
  12165. NMEDIT \
  12166. LIPO \
  12167. OTOOL \
  12168. OTOOL64 \
  12169. shrext_cmds \
  12170. export_dynamic_flag_spec \
  12171. whole_archive_flag_spec \
  12172. compiler_needs_object \
  12173. with_gnu_ld \
  12174. allow_undefined_flag \
  12175. no_undefined_flag \
  12176. hardcode_libdir_flag_spec \
  12177. hardcode_libdir_separator \
  12178. exclude_expsyms \
  12179. include_expsyms \
  12180. file_list_spec \
  12181. variables_saved_for_relink \
  12182. libname_spec \
  12183. library_names_spec \
  12184. soname_spec \
  12185. install_override_mode \
  12186. finish_eval \
  12187. old_striplib \
  12188. striplib; do
  12189. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12190. *[\\\\\\\`\\"\\\$]*)
  12191. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12192. ;;
  12193. *)
  12194. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12195. ;;
  12196. esac
  12197. done
  12198. # Double-quote double-evaled strings.
  12199. for var in reload_cmds \
  12200. old_postinstall_cmds \
  12201. old_postuninstall_cmds \
  12202. old_archive_cmds \
  12203. extract_expsyms_cmds \
  12204. old_archive_from_new_cmds \
  12205. old_archive_from_expsyms_cmds \
  12206. archive_cmds \
  12207. archive_expsym_cmds \
  12208. module_cmds \
  12209. module_expsym_cmds \
  12210. export_symbols_cmds \
  12211. prelink_cmds \
  12212. postlink_cmds \
  12213. postinstall_cmds \
  12214. postuninstall_cmds \
  12215. finish_cmds \
  12216. sys_lib_search_path_spec \
  12217. configure_time_dlsearch_path \
  12218. configure_time_lt_sys_library_path; do
  12219. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12220. *[\\\\\\\`\\"\\\$]*)
  12221. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12222. ;;
  12223. *)
  12224. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12225. ;;
  12226. esac
  12227. done
  12228. ac_aux_dir='$ac_aux_dir'
  12229. # See if we are running on zsh, and set the options that allow our
  12230. # commands through without removal of \ escapes INIT.
  12231. if test -n "\${ZSH_VERSION+set}"; then
  12232. setopt NO_GLOB_SUBST
  12233. fi
  12234. PACKAGE='$PACKAGE'
  12235. VERSION='$VERSION'
  12236. RM='$RM'
  12237. ofile='$ofile'
  12238. _ACEOF
  12239. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12240. # Handling of arguments.
  12241. for ac_config_target in $ac_config_targets
  12242. do
  12243. case $ac_config_target in
  12244. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12245. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12246. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12247. "opusfile.pc") CONFIG_FILES="$CONFIG_FILES opusfile.pc" ;;
  12248. "opusurl.pc") CONFIG_FILES="$CONFIG_FILES opusurl.pc" ;;
  12249. "opusfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusfile-uninstalled.pc" ;;
  12250. "opusurl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusurl-uninstalled.pc" ;;
  12251. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  12252. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12253. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12254. esac
  12255. done
  12256. # If the user did not use the arguments to specify the items to instantiate,
  12257. # then the envvar interface is used. Set only those that are not.
  12258. # We use the long form for the default assignment because of an extremely
  12259. # bizarre bug on SunOS 4.1.3.
  12260. if $ac_need_defaults; then
  12261. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12262. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12263. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12264. fi
  12265. # Have a temporary directory for convenience. Make it in the build tree
  12266. # simply because there is no reason against having it here, and in addition,
  12267. # creating and moving files from /tmp can sometimes cause problems.
  12268. # Hook for its removal unless debugging.
  12269. # Note that there is a small window in which the directory will not be cleaned:
  12270. # after its creation but before its name has been assigned to `$tmp'.
  12271. $debug ||
  12272. {
  12273. tmp= ac_tmp=
  12274. trap 'exit_status=$?
  12275. : "${ac_tmp:=$tmp}"
  12276. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12277. ' 0
  12278. trap 'as_fn_exit 1' 1 2 13 15
  12279. }
  12280. # Create a (secure) tmp directory for tmp files.
  12281. {
  12282. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12283. test -d "$tmp"
  12284. } ||
  12285. {
  12286. tmp=./conf$$-$RANDOM
  12287. (umask 077 && mkdir "$tmp")
  12288. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12289. ac_tmp=$tmp
  12290. # Set up the scripts for CONFIG_FILES section.
  12291. # No need to generate them if there are no CONFIG_FILES.
  12292. # This happens for instance with `./config.status config.h'.
  12293. if test -n "$CONFIG_FILES"; then
  12294. ac_cr=`echo X | tr X '\015'`
  12295. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12296. # But we know of no other shell where ac_cr would be empty at this
  12297. # point, so we can use a bashism as a fallback.
  12298. if test "x$ac_cr" = x; then
  12299. eval ac_cr=\$\'\\r\'
  12300. fi
  12301. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12302. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12303. ac_cs_awk_cr='\\r'
  12304. else
  12305. ac_cs_awk_cr=$ac_cr
  12306. fi
  12307. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12308. _ACEOF
  12309. {
  12310. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12311. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12312. echo "_ACEOF"
  12313. } >conf$$subs.sh ||
  12314. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12315. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12316. ac_delim='%!_!# '
  12317. for ac_last_try in false false false false false :; do
  12318. . ./conf$$subs.sh ||
  12319. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12320. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12321. if test $ac_delim_n = $ac_delim_num; then
  12322. break
  12323. elif $ac_last_try; then
  12324. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12325. else
  12326. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12327. fi
  12328. done
  12329. rm -f conf$$subs.sh
  12330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12331. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12332. _ACEOF
  12333. sed -n '
  12334. h
  12335. s/^/S["/; s/!.*/"]=/
  12336. p
  12337. g
  12338. s/^[^!]*!//
  12339. :repl
  12340. t repl
  12341. s/'"$ac_delim"'$//
  12342. t delim
  12343. :nl
  12344. h
  12345. s/\(.\{148\}\)..*/\1/
  12346. t more1
  12347. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12348. p
  12349. n
  12350. b repl
  12351. :more1
  12352. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12353. p
  12354. g
  12355. s/.\{148\}//
  12356. t nl
  12357. :delim
  12358. h
  12359. s/\(.\{148\}\)..*/\1/
  12360. t more2
  12361. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12362. p
  12363. b
  12364. :more2
  12365. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12366. p
  12367. g
  12368. s/.\{148\}//
  12369. t delim
  12370. ' <conf$$subs.awk | sed '
  12371. /^[^""]/{
  12372. N
  12373. s/\n//
  12374. }
  12375. ' >>$CONFIG_STATUS || ac_write_fail=1
  12376. rm -f conf$$subs.awk
  12377. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12378. _ACAWK
  12379. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12380. for (key in S) S_is_set[key] = 1
  12381. FS = ""
  12382. }
  12383. {
  12384. line = $ 0
  12385. nfields = split(line, field, "@")
  12386. substed = 0
  12387. len = length(field[1])
  12388. for (i = 2; i < nfields; i++) {
  12389. key = field[i]
  12390. keylen = length(key)
  12391. if (S_is_set[key]) {
  12392. value = S[key]
  12393. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12394. len += length(value) + length(field[++i])
  12395. substed = 1
  12396. } else
  12397. len += 1 + keylen
  12398. }
  12399. print line
  12400. }
  12401. _ACAWK
  12402. _ACEOF
  12403. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12404. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12405. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12406. else
  12407. cat
  12408. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12409. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12410. _ACEOF
  12411. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12412. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12413. # trailing colons and then remove the whole line if VPATH becomes empty
  12414. # (actually we leave an empty line to preserve line numbers).
  12415. if test "x$srcdir" = x.; then
  12416. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12417. h
  12418. s///
  12419. s/^/:/
  12420. s/[ ]*$/:/
  12421. s/:\$(srcdir):/:/g
  12422. s/:\${srcdir}:/:/g
  12423. s/:@srcdir@:/:/g
  12424. s/^:*//
  12425. s/:*$//
  12426. x
  12427. s/\(=[ ]*\).*/\1/
  12428. G
  12429. s/\n//
  12430. s/^[^=]*=[ ]*$//
  12431. }'
  12432. fi
  12433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12434. fi # test -n "$CONFIG_FILES"
  12435. # Set up the scripts for CONFIG_HEADERS section.
  12436. # No need to generate them if there are no CONFIG_HEADERS.
  12437. # This happens for instance with `./config.status Makefile'.
  12438. if test -n "$CONFIG_HEADERS"; then
  12439. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12440. BEGIN {
  12441. _ACEOF
  12442. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12443. # here-document in config.status, that substitutes the proper values into
  12444. # config.h.in to produce config.h.
  12445. # Create a delimiter string that does not exist in confdefs.h, to ease
  12446. # handling of long lines.
  12447. ac_delim='%!_!# '
  12448. for ac_last_try in false false :; do
  12449. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12450. if test -z "$ac_tt"; then
  12451. break
  12452. elif $ac_last_try; then
  12453. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12454. else
  12455. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12456. fi
  12457. done
  12458. # For the awk script, D is an array of macro values keyed by name,
  12459. # likewise P contains macro parameters if any. Preserve backslash
  12460. # newline sequences.
  12461. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12462. sed -n '
  12463. s/.\{148\}/&'"$ac_delim"'/g
  12464. t rset
  12465. :rset
  12466. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12467. t def
  12468. d
  12469. :def
  12470. s/\\$//
  12471. t bsnl
  12472. s/["\\]/\\&/g
  12473. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12474. D["\1"]=" \3"/p
  12475. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12476. d
  12477. :bsnl
  12478. s/["\\]/\\&/g
  12479. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12480. D["\1"]=" \3\\\\\\n"\\/p
  12481. t cont
  12482. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12483. t cont
  12484. d
  12485. :cont
  12486. n
  12487. s/.\{148\}/&'"$ac_delim"'/g
  12488. t clear
  12489. :clear
  12490. s/\\$//
  12491. t bsnlc
  12492. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12493. d
  12494. :bsnlc
  12495. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12496. b cont
  12497. ' <confdefs.h | sed '
  12498. s/'"$ac_delim"'/"\\\
  12499. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12500. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12501. for (key in D) D_is_set[key] = 1
  12502. FS = ""
  12503. }
  12504. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12505. line = \$ 0
  12506. split(line, arg, " ")
  12507. if (arg[1] == "#") {
  12508. defundef = arg[2]
  12509. mac1 = arg[3]
  12510. } else {
  12511. defundef = substr(arg[1], 2)
  12512. mac1 = arg[2]
  12513. }
  12514. split(mac1, mac2, "(") #)
  12515. macro = mac2[1]
  12516. prefix = substr(line, 1, index(line, defundef) - 1)
  12517. if (D_is_set[macro]) {
  12518. # Preserve the white space surrounding the "#".
  12519. print prefix "define", macro P[macro] D[macro]
  12520. next
  12521. } else {
  12522. # Replace #undef with comments. This is necessary, for example,
  12523. # in the case of _POSIX_SOURCE, which is predefined and required
  12524. # on some systems where configure will not decide to define it.
  12525. if (defundef == "undef") {
  12526. print "/*", prefix defundef, macro, "*/"
  12527. next
  12528. }
  12529. }
  12530. }
  12531. { print }
  12532. _ACAWK
  12533. _ACEOF
  12534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12535. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12536. fi # test -n "$CONFIG_HEADERS"
  12537. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12538. shift
  12539. for ac_tag
  12540. do
  12541. case $ac_tag in
  12542. :[FHLC]) ac_mode=$ac_tag; continue;;
  12543. esac
  12544. case $ac_mode$ac_tag in
  12545. :[FHL]*:*);;
  12546. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12547. :[FH]-) ac_tag=-:-;;
  12548. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12549. esac
  12550. ac_save_IFS=$IFS
  12551. IFS=:
  12552. set x $ac_tag
  12553. IFS=$ac_save_IFS
  12554. shift
  12555. ac_file=$1
  12556. shift
  12557. case $ac_mode in
  12558. :L) ac_source=$1;;
  12559. :[FH])
  12560. ac_file_inputs=
  12561. for ac_f
  12562. do
  12563. case $ac_f in
  12564. -) ac_f="$ac_tmp/stdin";;
  12565. *) # Look for the file first in the build tree, then in the source tree
  12566. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12567. # because $ac_f cannot contain `:'.
  12568. test -f "$ac_f" ||
  12569. case $ac_f in
  12570. [\\/$]*) false;;
  12571. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12572. esac ||
  12573. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12574. esac
  12575. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12576. as_fn_append ac_file_inputs " '$ac_f'"
  12577. done
  12578. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12579. # use $as_me), people would be surprised to read:
  12580. # /* config.h. Generated by config.status. */
  12581. configure_input='Generated from '`
  12582. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12583. `' by configure.'
  12584. if test x"$ac_file" != x-; then
  12585. configure_input="$ac_file. $configure_input"
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12587. $as_echo "$as_me: creating $ac_file" >&6;}
  12588. fi
  12589. # Neutralize special characters interpreted by sed in replacement strings.
  12590. case $configure_input in #(
  12591. *\&* | *\|* | *\\* )
  12592. ac_sed_conf_input=`$as_echo "$configure_input" |
  12593. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12594. *) ac_sed_conf_input=$configure_input;;
  12595. esac
  12596. case $ac_tag in
  12597. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12598. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12599. esac
  12600. ;;
  12601. esac
  12602. ac_dir=`$as_dirname -- "$ac_file" ||
  12603. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12604. X"$ac_file" : 'X\(//\)[^/]' \| \
  12605. X"$ac_file" : 'X\(//\)$' \| \
  12606. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12607. $as_echo X"$ac_file" |
  12608. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12609. s//\1/
  12610. q
  12611. }
  12612. /^X\(\/\/\)[^/].*/{
  12613. s//\1/
  12614. q
  12615. }
  12616. /^X\(\/\/\)$/{
  12617. s//\1/
  12618. q
  12619. }
  12620. /^X\(\/\).*/{
  12621. s//\1/
  12622. q
  12623. }
  12624. s/.*/./; q'`
  12625. as_dir="$ac_dir"; as_fn_mkdir_p
  12626. ac_builddir=.
  12627. case "$ac_dir" in
  12628. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12629. *)
  12630. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12631. # A ".." for each directory in $ac_dir_suffix.
  12632. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12633. case $ac_top_builddir_sub in
  12634. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12635. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12636. esac ;;
  12637. esac
  12638. ac_abs_top_builddir=$ac_pwd
  12639. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12640. # for backward compatibility:
  12641. ac_top_builddir=$ac_top_build_prefix
  12642. case $srcdir in
  12643. .) # We are building in place.
  12644. ac_srcdir=.
  12645. ac_top_srcdir=$ac_top_builddir_sub
  12646. ac_abs_top_srcdir=$ac_pwd ;;
  12647. [\\/]* | ?:[\\/]* ) # Absolute name.
  12648. ac_srcdir=$srcdir$ac_dir_suffix;
  12649. ac_top_srcdir=$srcdir
  12650. ac_abs_top_srcdir=$srcdir ;;
  12651. *) # Relative name.
  12652. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12653. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12654. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12655. esac
  12656. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12657. case $ac_mode in
  12658. :F)
  12659. #
  12660. # CONFIG_FILE
  12661. #
  12662. case $INSTALL in
  12663. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12664. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12665. esac
  12666. ac_MKDIR_P=$MKDIR_P
  12667. case $MKDIR_P in
  12668. [\\/$]* | ?:[\\/]* ) ;;
  12669. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12670. esac
  12671. _ACEOF
  12672. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12673. # If the template does not know about datarootdir, expand it.
  12674. # FIXME: This hack should be removed a few years after 2.60.
  12675. ac_datarootdir_hack=; ac_datarootdir_seen=
  12676. ac_sed_dataroot='
  12677. /datarootdir/ {
  12678. p
  12679. q
  12680. }
  12681. /@datadir@/p
  12682. /@docdir@/p
  12683. /@infodir@/p
  12684. /@localedir@/p
  12685. /@mandir@/p'
  12686. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12687. *datarootdir*) ac_datarootdir_seen=yes;;
  12688. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12690. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12691. _ACEOF
  12692. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12693. ac_datarootdir_hack='
  12694. s&@datadir@&$datadir&g
  12695. s&@docdir@&$docdir&g
  12696. s&@infodir@&$infodir&g
  12697. s&@localedir@&$localedir&g
  12698. s&@mandir@&$mandir&g
  12699. s&\\\${datarootdir}&$datarootdir&g' ;;
  12700. esac
  12701. _ACEOF
  12702. # Neutralize VPATH when `$srcdir' = `.'.
  12703. # Shell code in configure.ac might set extrasub.
  12704. # FIXME: do we really want to maintain this feature?
  12705. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12706. ac_sed_extra="$ac_vpsub
  12707. $extrasub
  12708. _ACEOF
  12709. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12710. :t
  12711. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12712. s|@configure_input@|$ac_sed_conf_input|;t t
  12713. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12714. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12715. s&@srcdir@&$ac_srcdir&;t t
  12716. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12717. s&@top_srcdir@&$ac_top_srcdir&;t t
  12718. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12719. s&@builddir@&$ac_builddir&;t t
  12720. s&@abs_builddir@&$ac_abs_builddir&;t t
  12721. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12722. s&@INSTALL@&$ac_INSTALL&;t t
  12723. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12724. $ac_datarootdir_hack
  12725. "
  12726. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12727. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12728. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12729. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12730. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12731. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12733. which seems to be undefined. Please make sure it is defined" >&5
  12734. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12735. which seems to be undefined. Please make sure it is defined" >&2;}
  12736. rm -f "$ac_tmp/stdin"
  12737. case $ac_file in
  12738. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12739. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12740. esac \
  12741. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12742. ;;
  12743. :H)
  12744. #
  12745. # CONFIG_HEADER
  12746. #
  12747. if test x"$ac_file" != x-; then
  12748. {
  12749. $as_echo "/* $configure_input */" \
  12750. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12751. } >"$ac_tmp/config.h" \
  12752. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12753. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12754. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12755. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12756. else
  12757. rm -f "$ac_file"
  12758. mv "$ac_tmp/config.h" "$ac_file" \
  12759. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12760. fi
  12761. else
  12762. $as_echo "/* $configure_input */" \
  12763. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12764. || as_fn_error $? "could not create -" "$LINENO" 5
  12765. fi
  12766. # Compute "$ac_file"'s index in $config_headers.
  12767. _am_arg="$ac_file"
  12768. _am_stamp_count=1
  12769. for _am_header in $config_headers :; do
  12770. case $_am_header in
  12771. $_am_arg | $_am_arg:* )
  12772. break ;;
  12773. * )
  12774. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12775. esac
  12776. done
  12777. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12778. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12779. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12780. X"$_am_arg" : 'X\(//\)$' \| \
  12781. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12782. $as_echo X"$_am_arg" |
  12783. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12784. s//\1/
  12785. q
  12786. }
  12787. /^X\(\/\/\)[^/].*/{
  12788. s//\1/
  12789. q
  12790. }
  12791. /^X\(\/\/\)$/{
  12792. s//\1/
  12793. q
  12794. }
  12795. /^X\(\/\).*/{
  12796. s//\1/
  12797. q
  12798. }
  12799. s/.*/./; q'`/stamp-h$_am_stamp_count
  12800. ;;
  12801. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12802. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12803. ;;
  12804. esac
  12805. case $ac_file$ac_mode in
  12806. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12807. # Older Autoconf quotes --file arguments for eval, but not when files
  12808. # are listed without --file. Let's play safe and only enable the eval
  12809. # if we detect the quoting.
  12810. case $CONFIG_FILES in
  12811. *\'*) eval set x "$CONFIG_FILES" ;;
  12812. *) set x $CONFIG_FILES ;;
  12813. esac
  12814. shift
  12815. for mf
  12816. do
  12817. # Strip MF so we end up with the name of the file.
  12818. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12819. # Check whether this is an Automake generated Makefile or not.
  12820. # We used to match only the files named 'Makefile.in', but
  12821. # some people rename them; so instead we look at the file content.
  12822. # Grep'ing the first line is not enough: some people post-process
  12823. # each Makefile.in and add a new line on top of each file to say so.
  12824. # Grep'ing the whole file is not good either: AIX grep has a line
  12825. # limit of 2048, but all sed's we know have understand at least 4000.
  12826. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12827. dirpart=`$as_dirname -- "$mf" ||
  12828. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12829. X"$mf" : 'X\(//\)[^/]' \| \
  12830. X"$mf" : 'X\(//\)$' \| \
  12831. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12832. $as_echo X"$mf" |
  12833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12834. s//\1/
  12835. q
  12836. }
  12837. /^X\(\/\/\)[^/].*/{
  12838. s//\1/
  12839. q
  12840. }
  12841. /^X\(\/\/\)$/{
  12842. s//\1/
  12843. q
  12844. }
  12845. /^X\(\/\).*/{
  12846. s//\1/
  12847. q
  12848. }
  12849. s/.*/./; q'`
  12850. else
  12851. continue
  12852. fi
  12853. # Extract the definition of DEPDIR, am__include, and am__quote
  12854. # from the Makefile without running 'make'.
  12855. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12856. test -z "$DEPDIR" && continue
  12857. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12858. test -z "$am__include" && continue
  12859. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12860. # Find all dependency output files, they are included files with
  12861. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12862. # simplest approach to changing $(DEPDIR) to its actual value in the
  12863. # expansion.
  12864. for file in `sed -n "
  12865. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12866. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12867. # Make sure the directory exists.
  12868. test -f "$dirpart/$file" && continue
  12869. fdir=`$as_dirname -- "$file" ||
  12870. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12871. X"$file" : 'X\(//\)[^/]' \| \
  12872. X"$file" : 'X\(//\)$' \| \
  12873. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12874. $as_echo X"$file" |
  12875. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12876. s//\1/
  12877. q
  12878. }
  12879. /^X\(\/\/\)[^/].*/{
  12880. s//\1/
  12881. q
  12882. }
  12883. /^X\(\/\/\)$/{
  12884. s//\1/
  12885. q
  12886. }
  12887. /^X\(\/\).*/{
  12888. s//\1/
  12889. q
  12890. }
  12891. s/.*/./; q'`
  12892. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12893. # echo "creating $dirpart/$file"
  12894. echo '# dummy' > "$dirpart/$file"
  12895. done
  12896. done
  12897. }
  12898. ;;
  12899. "libtool":C)
  12900. # See if we are running on zsh, and set the options that allow our
  12901. # commands through without removal of \ escapes.
  12902. if test -n "${ZSH_VERSION+set}"; then
  12903. setopt NO_GLOB_SUBST
  12904. fi
  12905. cfgfile=${ofile}T
  12906. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12907. $RM "$cfgfile"
  12908. cat <<_LT_EOF >> "$cfgfile"
  12909. #! $SHELL
  12910. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12911. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12912. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12913. # Provide generalized library-building support services.
  12914. # Written by Gordon Matzigkeit, 1996
  12915. # Copyright (C) 2014 Free Software Foundation, Inc.
  12916. # This is free software; see the source for copying conditions. There is NO
  12917. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12918. # GNU Libtool is free software; you can redistribute it and/or modify
  12919. # it under the terms of the GNU General Public License as published by
  12920. # the Free Software Foundation; either version 2 of of the License, or
  12921. # (at your option) any later version.
  12922. #
  12923. # As a special exception to the GNU General Public License, if you
  12924. # distribute this file as part of a program or library that is built
  12925. # using GNU Libtool, you may include this file under the same
  12926. # distribution terms that you use for the rest of that program.
  12927. #
  12928. # GNU Libtool is distributed in the hope that it will be useful, but
  12929. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12930. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12931. # GNU General Public License for more details.
  12932. #
  12933. # You should have received a copy of the GNU General Public License
  12934. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12935. # The names of the tagged configurations supported by this script.
  12936. available_tags=''
  12937. # Configured defaults for sys_lib_dlsearch_path munging.
  12938. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12939. # ### BEGIN LIBTOOL CONFIG
  12940. # Which release of libtool.m4 was used?
  12941. macro_version=$macro_version
  12942. macro_revision=$macro_revision
  12943. # Whether or not to build shared libraries.
  12944. build_libtool_libs=$enable_shared
  12945. # Whether or not to build static libraries.
  12946. build_old_libs=$enable_static
  12947. # What type of objects to build.
  12948. pic_mode=$pic_mode
  12949. # Whether or not to optimize for fast installation.
  12950. fast_install=$enable_fast_install
  12951. # Shared archive member basename,for filename based shared library versioning on AIX.
  12952. shared_archive_member_spec=$shared_archive_member_spec
  12953. # Shell to use when invoking shell scripts.
  12954. SHELL=$lt_SHELL
  12955. # An echo program that protects backslashes.
  12956. ECHO=$lt_ECHO
  12957. # The PATH separator for the build system.
  12958. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12959. # The host system.
  12960. host_alias=$host_alias
  12961. host=$host
  12962. host_os=$host_os
  12963. # The build system.
  12964. build_alias=$build_alias
  12965. build=$build
  12966. build_os=$build_os
  12967. # A sed program that does not truncate output.
  12968. SED=$lt_SED
  12969. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12970. Xsed="\$SED -e 1s/^X//"
  12971. # A grep program that handles long lines.
  12972. GREP=$lt_GREP
  12973. # An ERE matcher.
  12974. EGREP=$lt_EGREP
  12975. # A literal string matcher.
  12976. FGREP=$lt_FGREP
  12977. # A BSD- or MS-compatible name lister.
  12978. NM=$lt_NM
  12979. # Whether we need soft or hard links.
  12980. LN_S=$lt_LN_S
  12981. # What is the maximum length of a command?
  12982. max_cmd_len=$max_cmd_len
  12983. # Object file suffix (normally "o").
  12984. objext=$ac_objext
  12985. # Executable file suffix (normally "").
  12986. exeext=$exeext
  12987. # whether the shell understands "unset".
  12988. lt_unset=$lt_unset
  12989. # turn spaces into newlines.
  12990. SP2NL=$lt_lt_SP2NL
  12991. # turn newlines into spaces.
  12992. NL2SP=$lt_lt_NL2SP
  12993. # convert \$build file names to \$host format.
  12994. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12995. # convert \$build files to toolchain format.
  12996. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12997. # An object symbol dumper.
  12998. OBJDUMP=$lt_OBJDUMP
  12999. # Method to check whether dependent libraries are shared objects.
  13000. deplibs_check_method=$lt_deplibs_check_method
  13001. # Command to use when deplibs_check_method = "file_magic".
  13002. file_magic_cmd=$lt_file_magic_cmd
  13003. # How to find potential files when deplibs_check_method = "file_magic".
  13004. file_magic_glob=$lt_file_magic_glob
  13005. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13006. want_nocaseglob=$lt_want_nocaseglob
  13007. # DLL creation program.
  13008. DLLTOOL=$lt_DLLTOOL
  13009. # Command to associate shared and link libraries.
  13010. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13011. # The archiver.
  13012. AR=$lt_AR
  13013. # Flags to create an archive.
  13014. AR_FLAGS=$lt_AR_FLAGS
  13015. # How to feed a file listing to the archiver.
  13016. archiver_list_spec=$lt_archiver_list_spec
  13017. # A symbol stripping program.
  13018. STRIP=$lt_STRIP
  13019. # Commands used to install an old-style archive.
  13020. RANLIB=$lt_RANLIB
  13021. old_postinstall_cmds=$lt_old_postinstall_cmds
  13022. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13023. # Whether to use a lock for old archive extraction.
  13024. lock_old_archive_extraction=$lock_old_archive_extraction
  13025. # A C compiler.
  13026. LTCC=$lt_CC
  13027. # LTCC compiler flags.
  13028. LTCFLAGS=$lt_CFLAGS
  13029. # Take the output of nm and produce a listing of raw symbols and C names.
  13030. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13031. # Transform the output of nm in a proper C declaration.
  13032. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13033. # Transform the output of nm into a list of symbols to manually relocate.
  13034. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  13035. # Transform the output of nm in a C name address pair.
  13036. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13037. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13038. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13039. # The name lister interface.
  13040. nm_interface=$lt_lt_cv_nm_interface
  13041. # Specify filename containing input files for \$NM.
  13042. nm_file_list_spec=$lt_nm_file_list_spec
  13043. # The root where to search for dependent libraries,and where our libraries should be installed.
  13044. lt_sysroot=$lt_sysroot
  13045. # Command to truncate a binary pipe.
  13046. lt_truncate_bin=$lt_lt_cv_truncate_bin
  13047. # The name of the directory that contains temporary libtool files.
  13048. objdir=$objdir
  13049. # Used to examine libraries when file_magic_cmd begins with "file".
  13050. MAGIC_CMD=$MAGIC_CMD
  13051. # Must we lock files when doing compilation?
  13052. need_locks=$lt_need_locks
  13053. # Manifest tool.
  13054. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13055. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13056. DSYMUTIL=$lt_DSYMUTIL
  13057. # Tool to change global to local symbols on Mac OS X.
  13058. NMEDIT=$lt_NMEDIT
  13059. # Tool to manipulate fat objects and archives on Mac OS X.
  13060. LIPO=$lt_LIPO
  13061. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13062. OTOOL=$lt_OTOOL
  13063. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13064. OTOOL64=$lt_OTOOL64
  13065. # Old archive suffix (normally "a").
  13066. libext=$libext
  13067. # Shared library suffix (normally ".so").
  13068. shrext_cmds=$lt_shrext_cmds
  13069. # The commands to extract the exported symbol list from a shared archive.
  13070. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13071. # Variables whose values should be saved in libtool wrapper scripts and
  13072. # restored at link time.
  13073. variables_saved_for_relink=$lt_variables_saved_for_relink
  13074. # Do we need the "lib" prefix for modules?
  13075. need_lib_prefix=$need_lib_prefix
  13076. # Do we need a version for libraries?
  13077. need_version=$need_version
  13078. # Library versioning type.
  13079. version_type=$version_type
  13080. # Shared library runtime path variable.
  13081. runpath_var=$runpath_var
  13082. # Shared library path variable.
  13083. shlibpath_var=$shlibpath_var
  13084. # Is shlibpath searched before the hard-coded library search path?
  13085. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13086. # Format of library name prefix.
  13087. libname_spec=$lt_libname_spec
  13088. # List of archive names. First name is the real one, the rest are links.
  13089. # The last name is the one that the linker finds with -lNAME
  13090. library_names_spec=$lt_library_names_spec
  13091. # The coded name of the library, if different from the real name.
  13092. soname_spec=$lt_soname_spec
  13093. # Permission mode override for installation of shared libraries.
  13094. install_override_mode=$lt_install_override_mode
  13095. # Command to use after installation of a shared archive.
  13096. postinstall_cmds=$lt_postinstall_cmds
  13097. # Command to use after uninstallation of a shared archive.
  13098. postuninstall_cmds=$lt_postuninstall_cmds
  13099. # Commands used to finish a libtool library installation in a directory.
  13100. finish_cmds=$lt_finish_cmds
  13101. # As "finish_cmds", except a single script fragment to be evaled but
  13102. # not shown.
  13103. finish_eval=$lt_finish_eval
  13104. # Whether we should hardcode library paths into libraries.
  13105. hardcode_into_libs=$hardcode_into_libs
  13106. # Compile-time system search path for libraries.
  13107. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13108. # Detected run-time system search path for libraries.
  13109. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  13110. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  13111. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  13112. # Whether dlopen is supported.
  13113. dlopen_support=$enable_dlopen
  13114. # Whether dlopen of programs is supported.
  13115. dlopen_self=$enable_dlopen_self
  13116. # Whether dlopen of statically linked programs is supported.
  13117. dlopen_self_static=$enable_dlopen_self_static
  13118. # Commands to strip libraries.
  13119. old_striplib=$lt_old_striplib
  13120. striplib=$lt_striplib
  13121. # The linker used to build libraries.
  13122. LD=$lt_LD
  13123. # How to create reloadable object files.
  13124. reload_flag=$lt_reload_flag
  13125. reload_cmds=$lt_reload_cmds
  13126. # Commands used to build an old-style archive.
  13127. old_archive_cmds=$lt_old_archive_cmds
  13128. # A language specific compiler.
  13129. CC=$lt_compiler
  13130. # Is the compiler the GNU compiler?
  13131. with_gcc=$GCC
  13132. # Compiler flag to turn off builtin functions.
  13133. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13134. # Additional compiler flags for building library objects.
  13135. pic_flag=$lt_lt_prog_compiler_pic
  13136. # How to pass a linker flag through the compiler.
  13137. wl=$lt_lt_prog_compiler_wl
  13138. # Compiler flag to prevent dynamic linking.
  13139. link_static_flag=$lt_lt_prog_compiler_static
  13140. # Does compiler simultaneously support -c and -o options?
  13141. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13142. # Whether or not to add -lc for building shared libraries.
  13143. build_libtool_need_lc=$archive_cmds_need_lc
  13144. # Whether or not to disallow shared libs when runtime libs are static.
  13145. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13146. # Compiler flag to allow reflexive dlopens.
  13147. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13148. # Compiler flag to generate shared objects directly from archives.
  13149. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13150. # Whether the compiler copes with passing no objects directly.
  13151. compiler_needs_object=$lt_compiler_needs_object
  13152. # Create an old-style archive from a shared archive.
  13153. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13154. # Create a temporary old-style archive to link instead of a shared archive.
  13155. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13156. # Commands used to build a shared archive.
  13157. archive_cmds=$lt_archive_cmds
  13158. archive_expsym_cmds=$lt_archive_expsym_cmds
  13159. # Commands used to build a loadable module if different from building
  13160. # a shared archive.
  13161. module_cmds=$lt_module_cmds
  13162. module_expsym_cmds=$lt_module_expsym_cmds
  13163. # Whether we are building with GNU ld or not.
  13164. with_gnu_ld=$lt_with_gnu_ld
  13165. # Flag that allows shared libraries with undefined symbols to be built.
  13166. allow_undefined_flag=$lt_allow_undefined_flag
  13167. # Flag that enforces no undefined symbols.
  13168. no_undefined_flag=$lt_no_undefined_flag
  13169. # Flag to hardcode \$libdir into a binary during linking.
  13170. # This must work even if \$libdir does not exist
  13171. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13172. # Whether we need a single "-rpath" flag with a separated argument.
  13173. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13174. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13175. # DIR into the resulting binary.
  13176. hardcode_direct=$hardcode_direct
  13177. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13178. # DIR into the resulting binary and the resulting library dependency is
  13179. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  13180. # library is relocated.
  13181. hardcode_direct_absolute=$hardcode_direct_absolute
  13182. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13183. # into the resulting binary.
  13184. hardcode_minus_L=$hardcode_minus_L
  13185. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13186. # into the resulting binary.
  13187. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13188. # Set to "yes" if building a shared library automatically hardcodes DIR
  13189. # into the library and all subsequent libraries and executables linked
  13190. # against it.
  13191. hardcode_automatic=$hardcode_automatic
  13192. # Set to yes if linker adds runtime paths of dependent libraries
  13193. # to runtime path list.
  13194. inherit_rpath=$inherit_rpath
  13195. # Whether libtool must link a program against all its dependency libraries.
  13196. link_all_deplibs=$link_all_deplibs
  13197. # Set to "yes" if exported symbols are required.
  13198. always_export_symbols=$always_export_symbols
  13199. # The commands to list exported symbols.
  13200. export_symbols_cmds=$lt_export_symbols_cmds
  13201. # Symbols that should not be listed in the preloaded symbols.
  13202. exclude_expsyms=$lt_exclude_expsyms
  13203. # Symbols that must always be exported.
  13204. include_expsyms=$lt_include_expsyms
  13205. # Commands necessary for linking programs (against libraries) with templates.
  13206. prelink_cmds=$lt_prelink_cmds
  13207. # Commands necessary for finishing linking programs.
  13208. postlink_cmds=$lt_postlink_cmds
  13209. # Specify filename containing input files.
  13210. file_list_spec=$lt_file_list_spec
  13211. # How to hardcode a shared library path into an executable.
  13212. hardcode_action=$hardcode_action
  13213. # ### END LIBTOOL CONFIG
  13214. _LT_EOF
  13215. cat <<'_LT_EOF' >> "$cfgfile"
  13216. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  13217. # func_munge_path_list VARIABLE PATH
  13218. # -----------------------------------
  13219. # VARIABLE is name of variable containing _space_ separated list of
  13220. # directories to be munged by the contents of PATH, which is string
  13221. # having a format:
  13222. # "DIR[:DIR]:"
  13223. # string "DIR[ DIR]" will be prepended to VARIABLE
  13224. # ":DIR[:DIR]"
  13225. # string "DIR[ DIR]" will be appended to VARIABLE
  13226. # "DIRP[:DIRP]::[DIRA:]DIRA"
  13227. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  13228. # "DIRA[ DIRA]" will be appended to VARIABLE
  13229. # "DIR[:DIR]"
  13230. # VARIABLE will be replaced by "DIR[ DIR]"
  13231. func_munge_path_list ()
  13232. {
  13233. case x$2 in
  13234. x)
  13235. ;;
  13236. *:)
  13237. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  13238. ;;
  13239. x:*)
  13240. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  13241. ;;
  13242. *::*)
  13243. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  13244. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  13245. ;;
  13246. *)
  13247. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  13248. ;;
  13249. esac
  13250. }
  13251. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13252. func_cc_basename ()
  13253. {
  13254. for cc_temp in $*""; do
  13255. case $cc_temp in
  13256. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13257. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13258. \-*) ;;
  13259. *) break;;
  13260. esac
  13261. done
  13262. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13263. }
  13264. # ### END FUNCTIONS SHARED WITH CONFIGURE
  13265. _LT_EOF
  13266. case $host_os in
  13267. aix3*)
  13268. cat <<\_LT_EOF >> "$cfgfile"
  13269. # AIX sometimes has problems with the GCC collect2 program. For some
  13270. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13271. # vanish in a puff of smoke.
  13272. if test set != "${COLLECT_NAMES+set}"; then
  13273. COLLECT_NAMES=
  13274. export COLLECT_NAMES
  13275. fi
  13276. _LT_EOF
  13277. ;;
  13278. esac
  13279. ltmain=$ac_aux_dir/ltmain.sh
  13280. # We use sed instead of cat because bash on DJGPP gets confused if
  13281. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13282. # text mode, it properly converts lines to CR/LF. This bash problem
  13283. # is reportedly fixed, but why not run on old versions too?
  13284. sed '$q' "$ltmain" >> "$cfgfile" \
  13285. || (rm -f "$cfgfile"; exit 1)
  13286. mv -f "$cfgfile" "$ofile" ||
  13287. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13288. chmod +x "$ofile"
  13289. ;;
  13290. esac
  13291. done # for ac_tag
  13292. as_fn_exit 0
  13293. _ACEOF
  13294. ac_clean_files=$ac_clean_files_save
  13295. test $ac_write_fail = 0 ||
  13296. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13297. # configure is writing to config.log, and then calls config.status.
  13298. # config.status does its own redirection, appending to config.log.
  13299. # Unfortunately, on DOS this fails, as config.log is still kept open
  13300. # by configure, so config.status won't be able to write to it; its
  13301. # output is simply discarded. So we exec the FD to /dev/null,
  13302. # effectively closing config.log, so it can be properly (re)opened and
  13303. # appended to by config.status. When coming back to configure, we
  13304. # need to make the FD available again.
  13305. if test "$no_create" != yes; then
  13306. ac_cs_success=:
  13307. ac_config_status_args=
  13308. test "$silent" = yes &&
  13309. ac_config_status_args="$ac_config_status_args --quiet"
  13310. exec 5>/dev/null
  13311. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13312. exec 5>>config.log
  13313. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13314. # would make configure fail if this is the last instruction.
  13315. $ac_cs_success || as_fn_exit 1
  13316. fi
  13317. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13319. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13320. fi
  13321. { $as_echo "$as_me:${as_lineno-$LINENO}:
  13322. ------------------------------------------------------------------------
  13323. $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
  13324. Assertions ................... ${enable_assertions}
  13325. HTTP support ................. ${enable_http}
  13326. Fixed-point .................. ${enable_fixed_point}
  13327. Floating-point API ........... ${enable_float}${lrintf_notice}
  13328. Hidden visibility ............ ${cc_cv_flag_visibility}
  13329. API code examples ............ ${enable_examples}
  13330. API documentation ............ ${enable_doc}
  13331. ------------------------------------------------------------------------
  13332. " >&5
  13333. $as_echo "$as_me:
  13334. ------------------------------------------------------------------------
  13335. $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
  13336. Assertions ................... ${enable_assertions}
  13337. HTTP support ................. ${enable_http}
  13338. Fixed-point .................. ${enable_fixed_point}
  13339. Floating-point API ........... ${enable_float}${lrintf_notice}
  13340. Hidden visibility ............ ${cc_cv_flag_visibility}
  13341. API code examples ............ ${enable_examples}
  13342. API documentation ............ ${enable_doc}
  13343. ------------------------------------------------------------------------
  13344. " >&6;}