configure 485 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for faux 2.0.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  259. $0: gmail dot com about your system, including any error
  260. $0: possibly output before this message. Then install a
  261. $0: modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='faux'
  542. PACKAGE_TARNAME='faux'
  543. PACKAGE_VERSION='2.0.0'
  544. PACKAGE_STRING='faux 2.0.0'
  545. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_config_libobj_dir=libc
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. PTHREAD_CFLAGS
  587. PTHREAD_LIBS
  588. PTHREAD_CC
  589. ax_pthread_config
  590. LIBOBJS
  591. TESTC_FALSE
  592. TESTC_TRUE
  593. DEBUG_FALSE
  594. DEBUG_TRUE
  595. HAVE_LD_VERSION_SCRIPT_FALSE
  596. HAVE_LD_VERSION_SCRIPT_TRUE
  597. AM_BACKSLASH
  598. AM_DEFAULT_VERBOSITY
  599. AM_DEFAULT_V
  600. AM_V
  601. am__fastdepCC_FALSE
  602. am__fastdepCC_TRUE
  603. CCDEPMODE
  604. am__nodep
  605. AMDEPBACKSLASH
  606. AMDEP_FALSE
  607. AMDEP_TRUE
  608. am__include
  609. DEPDIR
  610. am__untar
  611. am__tar
  612. AMTAR
  613. am__leading_dot
  614. SET_MAKE
  615. mkdir_p
  616. MKDIR_P
  617. INSTALL_STRIP_PROGRAM
  618. install_sh
  619. MAKEINFO
  620. AUTOHEADER
  621. AUTOMAKE
  622. AUTOCONF
  623. ACLOCAL
  624. VERSION
  625. PACKAGE
  626. CYGPATH_W
  627. am__isrc
  628. INSTALL_DATA
  629. INSTALL_SCRIPT
  630. INSTALL_PROGRAM
  631. LT_SYS_LIBRARY_PATH
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. SED
  650. LIBTOOL
  651. OBJDUMP
  652. DLLTOOL
  653. AS
  654. host_os
  655. host_vendor
  656. host_cpu
  657. host
  658. build_os
  659. build_vendor
  660. build_cpu
  661. build
  662. EGREP
  663. GREP
  664. CPP
  665. OBJEXT
  666. EXEEXT
  667. ac_ct_CC
  668. CPPFLAGS
  669. LDFLAGS
  670. CFLAGS
  671. CC
  672. SONAME_AGE
  673. SONAME_REVISION
  674. SONAME_CURRENT
  675. target_alias
  676. host_alias
  677. build_alias
  678. LIBS
  679. ECHO_T
  680. ECHO_N
  681. ECHO_C
  682. DEFS
  683. mandir
  684. localedir
  685. libdir
  686. psdir
  687. pdfdir
  688. dvidir
  689. htmldir
  690. infodir
  691. docdir
  692. oldincludedir
  693. includedir
  694. runstatedir
  695. localstatedir
  696. sharedstatedir
  697. sysconfdir
  698. datadir
  699. datarootdir
  700. libexecdir
  701. sbindir
  702. bindir
  703. program_transform_name
  704. prefix
  705. exec_prefix
  706. PACKAGE_URL
  707. PACKAGE_BUGREPORT
  708. PACKAGE_STRING
  709. PACKAGE_VERSION
  710. PACKAGE_TARNAME
  711. PACKAGE_NAME
  712. PATH_SEPARATOR
  713. SHELL
  714. am__quote'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_aix_soname
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_dependency_tracking
  727. enable_silent_rules
  728. enable_ld_version_script
  729. enable_debug
  730. enable_testc
  731. with_internal_getopt
  732. '
  733. ac_precious_vars='build_alias
  734. host_alias
  735. target_alias
  736. CC
  737. CFLAGS
  738. LDFLAGS
  739. LIBS
  740. CPPFLAGS
  741. CPP
  742. LT_SYS_LIBRARY_PATH'
  743. # Initialize some variables set by options.
  744. ac_init_help=
  745. ac_init_version=false
  746. ac_unrecognized_opts=
  747. ac_unrecognized_sep=
  748. # The variables have the same names as the options, with
  749. # dashes changed to underlines.
  750. cache_file=/dev/null
  751. exec_prefix=NONE
  752. no_create=
  753. no_recursion=
  754. prefix=NONE
  755. program_prefix=NONE
  756. program_suffix=NONE
  757. program_transform_name=s,x,x,
  758. silent=
  759. site=
  760. srcdir=
  761. verbose=
  762. x_includes=NONE
  763. x_libraries=NONE
  764. # Installation directory options.
  765. # These are left unexpanded so users can "make install exec_prefix=/foo"
  766. # and all the variables that are supposed to be based on exec_prefix
  767. # by default will actually change.
  768. # Use braces instead of parens because sh, perl, etc. also accept them.
  769. # (The list follows the same order as the GNU Coding Standards.)
  770. bindir='${exec_prefix}/bin'
  771. sbindir='${exec_prefix}/sbin'
  772. libexecdir='${exec_prefix}/libexec'
  773. datarootdir='${prefix}/share'
  774. datadir='${datarootdir}'
  775. sysconfdir='${prefix}/etc'
  776. sharedstatedir='${prefix}/com'
  777. localstatedir='${prefix}/var'
  778. runstatedir='${localstatedir}/run'
  779. includedir='${prefix}/include'
  780. oldincludedir='/usr/include'
  781. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  782. infodir='${datarootdir}/info'
  783. htmldir='${docdir}'
  784. dvidir='${docdir}'
  785. pdfdir='${docdir}'
  786. psdir='${docdir}'
  787. libdir='${exec_prefix}/lib'
  788. localedir='${datarootdir}/locale'
  789. mandir='${datarootdir}/man'
  790. ac_prev=
  791. ac_dashdash=
  792. for ac_option
  793. do
  794. # If the previous option needs an argument, assign it.
  795. if test -n "$ac_prev"; then
  796. eval $ac_prev=\$ac_option
  797. ac_prev=
  798. continue
  799. fi
  800. case $ac_option in
  801. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  802. *=) ac_optarg= ;;
  803. *) ac_optarg=yes ;;
  804. esac
  805. # Accept the important Cygnus configure options, so we can diagnose typos.
  806. case $ac_dashdash$ac_option in
  807. --)
  808. ac_dashdash=yes ;;
  809. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  810. ac_prev=bindir ;;
  811. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  812. bindir=$ac_optarg ;;
  813. -build | --build | --buil | --bui | --bu)
  814. ac_prev=build_alias ;;
  815. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  816. build_alias=$ac_optarg ;;
  817. -cache-file | --cache-file | --cache-fil | --cache-fi \
  818. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  819. ac_prev=cache_file ;;
  820. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  821. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  822. cache_file=$ac_optarg ;;
  823. --config-cache | -C)
  824. cache_file=config.cache ;;
  825. -datadir | --datadir | --datadi | --datad)
  826. ac_prev=datadir ;;
  827. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  828. datadir=$ac_optarg ;;
  829. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  830. | --dataroo | --dataro | --datar)
  831. ac_prev=datarootdir ;;
  832. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  833. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  834. datarootdir=$ac_optarg ;;
  835. -disable-* | --disable-*)
  836. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  837. # Reject names that are not valid shell variable names.
  838. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  839. as_fn_error $? "invalid feature name: $ac_useropt"
  840. ac_useropt_orig=$ac_useropt
  841. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  842. case $ac_user_opts in
  843. *"
  844. "enable_$ac_useropt"
  845. "*) ;;
  846. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  847. ac_unrecognized_sep=', ';;
  848. esac
  849. eval enable_$ac_useropt=no ;;
  850. -docdir | --docdir | --docdi | --doc | --do)
  851. ac_prev=docdir ;;
  852. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  853. docdir=$ac_optarg ;;
  854. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  855. ac_prev=dvidir ;;
  856. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  857. dvidir=$ac_optarg ;;
  858. -enable-* | --enable-*)
  859. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  860. # Reject names that are not valid shell variable names.
  861. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  862. as_fn_error $? "invalid feature name: $ac_useropt"
  863. ac_useropt_orig=$ac_useropt
  864. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  865. case $ac_user_opts in
  866. *"
  867. "enable_$ac_useropt"
  868. "*) ;;
  869. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  870. ac_unrecognized_sep=', ';;
  871. esac
  872. eval enable_$ac_useropt=\$ac_optarg ;;
  873. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  874. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  875. | --exec | --exe | --ex)
  876. ac_prev=exec_prefix ;;
  877. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  878. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  879. | --exec=* | --exe=* | --ex=*)
  880. exec_prefix=$ac_optarg ;;
  881. -gas | --gas | --ga | --g)
  882. # Obsolete; use --with-gas.
  883. with_gas=yes ;;
  884. -help | --help | --hel | --he | -h)
  885. ac_init_help=long ;;
  886. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  887. ac_init_help=recursive ;;
  888. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  889. ac_init_help=short ;;
  890. -host | --host | --hos | --ho)
  891. ac_prev=host_alias ;;
  892. -host=* | --host=* | --hos=* | --ho=*)
  893. host_alias=$ac_optarg ;;
  894. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  895. ac_prev=htmldir ;;
  896. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  897. | --ht=*)
  898. htmldir=$ac_optarg ;;
  899. -includedir | --includedir | --includedi | --included | --include \
  900. | --includ | --inclu | --incl | --inc)
  901. ac_prev=includedir ;;
  902. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  903. | --includ=* | --inclu=* | --incl=* | --inc=*)
  904. includedir=$ac_optarg ;;
  905. -infodir | --infodir | --infodi | --infod | --info | --inf)
  906. ac_prev=infodir ;;
  907. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  908. infodir=$ac_optarg ;;
  909. -libdir | --libdir | --libdi | --libd)
  910. ac_prev=libdir ;;
  911. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  912. libdir=$ac_optarg ;;
  913. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  914. | --libexe | --libex | --libe)
  915. ac_prev=libexecdir ;;
  916. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  917. | --libexe=* | --libex=* | --libe=*)
  918. libexecdir=$ac_optarg ;;
  919. -localedir | --localedir | --localedi | --localed | --locale)
  920. ac_prev=localedir ;;
  921. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  922. localedir=$ac_optarg ;;
  923. -localstatedir | --localstatedir | --localstatedi | --localstated \
  924. | --localstate | --localstat | --localsta | --localst | --locals)
  925. ac_prev=localstatedir ;;
  926. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  927. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  928. localstatedir=$ac_optarg ;;
  929. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  930. ac_prev=mandir ;;
  931. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  932. mandir=$ac_optarg ;;
  933. -nfp | --nfp | --nf)
  934. # Obsolete; use --without-fp.
  935. with_fp=no ;;
  936. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  937. | --no-cr | --no-c | -n)
  938. no_create=yes ;;
  939. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  940. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  941. no_recursion=yes ;;
  942. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  943. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  944. | --oldin | --oldi | --old | --ol | --o)
  945. ac_prev=oldincludedir ;;
  946. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  947. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  948. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  949. oldincludedir=$ac_optarg ;;
  950. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  951. ac_prev=prefix ;;
  952. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  953. prefix=$ac_optarg ;;
  954. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  955. | --program-pre | --program-pr | --program-p)
  956. ac_prev=program_prefix ;;
  957. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  958. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  959. program_prefix=$ac_optarg ;;
  960. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  961. | --program-suf | --program-su | --program-s)
  962. ac_prev=program_suffix ;;
  963. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  964. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  965. program_suffix=$ac_optarg ;;
  966. -program-transform-name | --program-transform-name \
  967. | --program-transform-nam | --program-transform-na \
  968. | --program-transform-n | --program-transform- \
  969. | --program-transform | --program-transfor \
  970. | --program-transfo | --program-transf \
  971. | --program-trans | --program-tran \
  972. | --progr-tra | --program-tr | --program-t)
  973. ac_prev=program_transform_name ;;
  974. -program-transform-name=* | --program-transform-name=* \
  975. | --program-transform-nam=* | --program-transform-na=* \
  976. | --program-transform-n=* | --program-transform-=* \
  977. | --program-transform=* | --program-transfor=* \
  978. | --program-transfo=* | --program-transf=* \
  979. | --program-trans=* | --program-tran=* \
  980. | --progr-tra=* | --program-tr=* | --program-t=*)
  981. program_transform_name=$ac_optarg ;;
  982. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  983. ac_prev=pdfdir ;;
  984. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  985. pdfdir=$ac_optarg ;;
  986. -psdir | --psdir | --psdi | --psd | --ps)
  987. ac_prev=psdir ;;
  988. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  989. psdir=$ac_optarg ;;
  990. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  991. | -silent | --silent | --silen | --sile | --sil)
  992. silent=yes ;;
  993. -runstatedir | --runstatedir | --runstatedi | --runstated \
  994. | --runstate | --runstat | --runsta | --runst | --runs \
  995. | --run | --ru | --r)
  996. ac_prev=runstatedir ;;
  997. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  998. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  999. | --run=* | --ru=* | --r=*)
  1000. runstatedir=$ac_optarg ;;
  1001. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1002. ac_prev=sbindir ;;
  1003. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1004. | --sbi=* | --sb=*)
  1005. sbindir=$ac_optarg ;;
  1006. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1007. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1008. | --sharedst | --shareds | --shared | --share | --shar \
  1009. | --sha | --sh)
  1010. ac_prev=sharedstatedir ;;
  1011. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1012. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1013. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1014. | --sha=* | --sh=*)
  1015. sharedstatedir=$ac_optarg ;;
  1016. -site | --site | --sit)
  1017. ac_prev=site ;;
  1018. -site=* | --site=* | --sit=*)
  1019. site=$ac_optarg ;;
  1020. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1021. ac_prev=srcdir ;;
  1022. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1023. srcdir=$ac_optarg ;;
  1024. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1025. | --syscon | --sysco | --sysc | --sys | --sy)
  1026. ac_prev=sysconfdir ;;
  1027. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1028. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1029. sysconfdir=$ac_optarg ;;
  1030. -target | --target | --targe | --targ | --tar | --ta | --t)
  1031. ac_prev=target_alias ;;
  1032. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1033. target_alias=$ac_optarg ;;
  1034. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1035. verbose=yes ;;
  1036. -version | --version | --versio | --versi | --vers | -V)
  1037. ac_init_version=: ;;
  1038. -with-* | --with-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid package name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "with_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval with_$ac_useropt=\$ac_optarg ;;
  1053. -without-* | --without-*)
  1054. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1057. as_fn_error $? "invalid package name: $ac_useropt"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. *"
  1062. "with_$ac_useropt"
  1063. "*) ;;
  1064. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1065. ac_unrecognized_sep=', ';;
  1066. esac
  1067. eval with_$ac_useropt=no ;;
  1068. --x)
  1069. # Obsolete; use --with-x.
  1070. with_x=yes ;;
  1071. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1072. | --x-incl | --x-inc | --x-in | --x-i)
  1073. ac_prev=x_includes ;;
  1074. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1075. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1076. x_includes=$ac_optarg ;;
  1077. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1078. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1079. ac_prev=x_libraries ;;
  1080. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1081. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1082. x_libraries=$ac_optarg ;;
  1083. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1084. Try \`$0 --help' for more information"
  1085. ;;
  1086. *=*)
  1087. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1088. # Reject names that are not valid shell variable names.
  1089. case $ac_envvar in #(
  1090. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1091. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1092. esac
  1093. eval $ac_envvar=\$ac_optarg
  1094. export $ac_envvar ;;
  1095. *)
  1096. # FIXME: should be removed in autoconf 3.0.
  1097. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1098. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1099. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1100. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1101. ;;
  1102. esac
  1103. done
  1104. if test -n "$ac_prev"; then
  1105. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1106. as_fn_error $? "missing argument to $ac_option"
  1107. fi
  1108. if test -n "$ac_unrecognized_opts"; then
  1109. case $enable_option_checking in
  1110. no) ;;
  1111. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1112. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1113. esac
  1114. fi
  1115. # Check all directory arguments for consistency.
  1116. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1117. datadir sysconfdir sharedstatedir localstatedir includedir \
  1118. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1119. libdir localedir mandir runstatedir
  1120. do
  1121. eval ac_val=\$$ac_var
  1122. # Remove trailing slashes.
  1123. case $ac_val in
  1124. */ )
  1125. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1126. eval $ac_var=\$ac_val;;
  1127. esac
  1128. # Be sure to have absolute directory names.
  1129. case $ac_val in
  1130. [\\/$]* | ?:[\\/]* ) continue;;
  1131. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1132. esac
  1133. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1134. done
  1135. # There might be people who depend on the old broken behavior: `$host'
  1136. # used to hold the argument of --host etc.
  1137. # FIXME: To remove some day.
  1138. build=$build_alias
  1139. host=$host_alias
  1140. target=$target_alias
  1141. # FIXME: To remove some day.
  1142. if test "x$host_alias" != x; then
  1143. if test "x$build_alias" = x; then
  1144. cross_compiling=maybe
  1145. elif test "x$build_alias" != "x$host_alias"; then
  1146. cross_compiling=yes
  1147. fi
  1148. fi
  1149. ac_tool_prefix=
  1150. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1151. test "$silent" = yes && exec 6>/dev/null
  1152. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1153. ac_ls_di=`ls -di .` &&
  1154. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1155. as_fn_error $? "working directory cannot be determined"
  1156. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1157. as_fn_error $? "pwd does not report name of working directory"
  1158. # Find the source files, if location was not specified.
  1159. if test -z "$srcdir"; then
  1160. ac_srcdir_defaulted=yes
  1161. # Try the directory containing this script, then the parent directory.
  1162. ac_confdir=`$as_dirname -- "$as_myself" ||
  1163. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1164. X"$as_myself" : 'X\(//\)[^/]' \| \
  1165. X"$as_myself" : 'X\(//\)$' \| \
  1166. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1167. $as_echo X"$as_myself" |
  1168. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1169. s//\1/
  1170. q
  1171. }
  1172. /^X\(\/\/\)[^/].*/{
  1173. s//\1/
  1174. q
  1175. }
  1176. /^X\(\/\/\)$/{
  1177. s//\1/
  1178. q
  1179. }
  1180. /^X\(\/\).*/{
  1181. s//\1/
  1182. q
  1183. }
  1184. s/.*/./; q'`
  1185. srcdir=$ac_confdir
  1186. if test ! -r "$srcdir/$ac_unique_file"; then
  1187. srcdir=..
  1188. fi
  1189. else
  1190. ac_srcdir_defaulted=no
  1191. fi
  1192. if test ! -r "$srcdir/$ac_unique_file"; then
  1193. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1194. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1195. fi
  1196. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1197. ac_abs_confdir=`(
  1198. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1199. pwd)`
  1200. # When building in place, set srcdir=.
  1201. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1202. srcdir=.
  1203. fi
  1204. # Remove unnecessary trailing slashes from srcdir.
  1205. # Double slashes in file names in object file debugging info
  1206. # mess up M-x gdb in Emacs.
  1207. case $srcdir in
  1208. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1209. esac
  1210. for ac_var in $ac_precious_vars; do
  1211. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1212. eval ac_env_${ac_var}_value=\$${ac_var}
  1213. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1214. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1215. done
  1216. #
  1217. # Report the --help message.
  1218. #
  1219. if test "$ac_init_help" = "long"; then
  1220. # Omit some internal or obsolete options to make the list less imposing.
  1221. # This message is too long to be a string in the A/UX 3.1 sh.
  1222. cat <<_ACEOF
  1223. \`configure' configures faux 2.0.0 to adapt to many kinds of systems.
  1224. Usage: $0 [OPTION]... [VAR=VALUE]...
  1225. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1226. VAR=VALUE. See below for descriptions of some of the useful variables.
  1227. Defaults for the options are specified in brackets.
  1228. Configuration:
  1229. -h, --help display this help and exit
  1230. --help=short display options specific to this package
  1231. --help=recursive display the short help of all the included packages
  1232. -V, --version display version information and exit
  1233. -q, --quiet, --silent do not print \`checking ...' messages
  1234. --cache-file=FILE cache test results in FILE [disabled]
  1235. -C, --config-cache alias for \`--cache-file=config.cache'
  1236. -n, --no-create do not create output files
  1237. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1238. Installation directories:
  1239. --prefix=PREFIX install architecture-independent files in PREFIX
  1240. [$ac_default_prefix]
  1241. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1242. [PREFIX]
  1243. By default, \`make install' will install all the files in
  1244. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1245. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1246. for instance \`--prefix=\$HOME'.
  1247. For better control, use the options below.
  1248. Fine tuning of the installation directories:
  1249. --bindir=DIR user executables [EPREFIX/bin]
  1250. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1251. --libexecdir=DIR program executables [EPREFIX/libexec]
  1252. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1253. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1254. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1255. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1256. --libdir=DIR object code libraries [EPREFIX/lib]
  1257. --includedir=DIR C header files [PREFIX/include]
  1258. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1259. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1260. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1261. --infodir=DIR info documentation [DATAROOTDIR/info]
  1262. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1263. --mandir=DIR man documentation [DATAROOTDIR/man]
  1264. --docdir=DIR documentation root [DATAROOTDIR/doc/faux]
  1265. --htmldir=DIR html documentation [DOCDIR]
  1266. --dvidir=DIR dvi documentation [DOCDIR]
  1267. --pdfdir=DIR pdf documentation [DOCDIR]
  1268. --psdir=DIR ps documentation [DOCDIR]
  1269. _ACEOF
  1270. cat <<\_ACEOF
  1271. Program names:
  1272. --program-prefix=PREFIX prepend PREFIX to installed program names
  1273. --program-suffix=SUFFIX append SUFFIX to installed program names
  1274. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1275. System types:
  1276. --build=BUILD configure for building on BUILD [guessed]
  1277. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1278. _ACEOF
  1279. fi
  1280. if test -n "$ac_init_help"; then
  1281. case $ac_init_help in
  1282. short | recursive ) echo "Configuration of faux 2.0.0:";;
  1283. esac
  1284. cat <<\_ACEOF
  1285. Optional Features:
  1286. --disable-option-checking ignore unrecognized --enable/--with options
  1287. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1288. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1289. --enable-shared[=PKGS] build shared libraries [default=yes]
  1290. --enable-static[=PKGS] build static libraries [default=yes]
  1291. --enable-fast-install[=PKGS]
  1292. optimize for fast installation [default=yes]
  1293. --disable-libtool-lock avoid locking (might break parallel builds)
  1294. --enable-dependency-tracking
  1295. do not reject slow dependency extractors
  1296. --disable-dependency-tracking
  1297. speeds up one-time build
  1298. --enable-silent-rules less verbose build output (undo: "make V=1")
  1299. --disable-silent-rules verbose build output (undo: "make V=0")
  1300. --enable-ld-version-script
  1301. enable linker version script (default is enabled
  1302. when possible)
  1303. --enable-debug Turn on debugging including asserts [default=no]
  1304. --enable-testc Enable testc tests compiling [default=no]
  1305. Optional Packages:
  1306. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1307. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1308. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1309. both]
  1310. --with-aix-soname=aix|svr4|both
  1311. shared library versioning (aka "SONAME") variant to
  1312. provide on AIX, [default=aix].
  1313. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1314. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1315. compiler's sysroot if not specified).
  1316. --with-internal-getopt Use internal implementation of getopt [default=no]
  1317. Some influential environment variables:
  1318. CC C compiler command
  1319. CFLAGS C compiler flags
  1320. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1321. nonstandard directory <lib dir>
  1322. LIBS libraries to pass to the linker, e.g. -l<library>
  1323. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1324. you have headers in a nonstandard directory <include dir>
  1325. CPP C preprocessor
  1326. LT_SYS_LIBRARY_PATH
  1327. User-defined run-time library search path.
  1328. Use these variables to override the choices made by `configure' or to help
  1329. it to find libraries and programs with nonstandard names/locations.
  1330. Report bugs to <serj.kalichev at gmail dot com>.
  1331. _ACEOF
  1332. ac_status=$?
  1333. fi
  1334. if test "$ac_init_help" = "recursive"; then
  1335. # If there are subdirs, report their specific --help.
  1336. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1337. test -d "$ac_dir" ||
  1338. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1339. continue
  1340. ac_builddir=.
  1341. case "$ac_dir" in
  1342. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343. *)
  1344. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1345. # A ".." for each directory in $ac_dir_suffix.
  1346. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1347. case $ac_top_builddir_sub in
  1348. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1349. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1350. esac ;;
  1351. esac
  1352. ac_abs_top_builddir=$ac_pwd
  1353. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1354. # for backward compatibility:
  1355. ac_top_builddir=$ac_top_build_prefix
  1356. case $srcdir in
  1357. .) # We are building in place.
  1358. ac_srcdir=.
  1359. ac_top_srcdir=$ac_top_builddir_sub
  1360. ac_abs_top_srcdir=$ac_pwd ;;
  1361. [\\/]* | ?:[\\/]* ) # Absolute name.
  1362. ac_srcdir=$srcdir$ac_dir_suffix;
  1363. ac_top_srcdir=$srcdir
  1364. ac_abs_top_srcdir=$srcdir ;;
  1365. *) # Relative name.
  1366. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1367. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1368. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1369. esac
  1370. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1371. cd "$ac_dir" || { ac_status=$?; continue; }
  1372. # Check for guested configure.
  1373. if test -f "$ac_srcdir/configure.gnu"; then
  1374. echo &&
  1375. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1376. elif test -f "$ac_srcdir/configure"; then
  1377. echo &&
  1378. $SHELL "$ac_srcdir/configure" --help=recursive
  1379. else
  1380. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1381. fi || ac_status=$?
  1382. cd "$ac_pwd" || { ac_status=$?; break; }
  1383. done
  1384. fi
  1385. test -n "$ac_init_help" && exit $ac_status
  1386. if $ac_init_version; then
  1387. cat <<\_ACEOF
  1388. faux configure 2.0.0
  1389. generated by GNU Autoconf 2.69
  1390. Copyright (C) 2012 Free Software Foundation, Inc.
  1391. This configure script is free software; the Free Software Foundation
  1392. gives unlimited permission to copy, distribute and modify it.
  1393. _ACEOF
  1394. exit
  1395. fi
  1396. ## ------------------------ ##
  1397. ## Autoconf initialization. ##
  1398. ## ------------------------ ##
  1399. # ac_fn_c_try_compile LINENO
  1400. # --------------------------
  1401. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1402. ac_fn_c_try_compile ()
  1403. {
  1404. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1405. rm -f conftest.$ac_objext
  1406. if { { ac_try="$ac_compile"
  1407. case "(($ac_try" in
  1408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1409. *) ac_try_echo=$ac_try;;
  1410. esac
  1411. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1412. $as_echo "$ac_try_echo"; } >&5
  1413. (eval "$ac_compile") 2>conftest.err
  1414. ac_status=$?
  1415. if test -s conftest.err; then
  1416. grep -v '^ *+' conftest.err >conftest.er1
  1417. cat conftest.er1 >&5
  1418. mv -f conftest.er1 conftest.err
  1419. fi
  1420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1421. test $ac_status = 0; } && {
  1422. test -z "$ac_c_werror_flag" ||
  1423. test ! -s conftest.err
  1424. } && test -s conftest.$ac_objext; then :
  1425. ac_retval=0
  1426. else
  1427. $as_echo "$as_me: failed program was:" >&5
  1428. sed 's/^/| /' conftest.$ac_ext >&5
  1429. ac_retval=1
  1430. fi
  1431. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1432. as_fn_set_status $ac_retval
  1433. } # ac_fn_c_try_compile
  1434. # ac_fn_c_try_cpp LINENO
  1435. # ----------------------
  1436. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1437. ac_fn_c_try_cpp ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1441. case "(($ac_try" in
  1442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1443. *) ac_try_echo=$ac_try;;
  1444. esac
  1445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1446. $as_echo "$ac_try_echo"; } >&5
  1447. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1448. ac_status=$?
  1449. if test -s conftest.err; then
  1450. grep -v '^ *+' conftest.err >conftest.er1
  1451. cat conftest.er1 >&5
  1452. mv -f conftest.er1 conftest.err
  1453. fi
  1454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1455. test $ac_status = 0; } > conftest.i && {
  1456. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1457. test ! -s conftest.err
  1458. }; then :
  1459. ac_retval=0
  1460. else
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=1
  1464. fi
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_c_try_cpp
  1468. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1469. # -------------------------------------------------------
  1470. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1471. # the include files in INCLUDES and setting the cache variable VAR
  1472. # accordingly.
  1473. ac_fn_c_check_header_mongrel ()
  1474. {
  1475. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1476. if eval \${$3+:} false; then :
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1478. $as_echo_n "checking for $2... " >&6; }
  1479. if eval \${$3+:} false; then :
  1480. $as_echo_n "(cached) " >&6
  1481. fi
  1482. eval ac_res=\$$3
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1484. $as_echo "$ac_res" >&6; }
  1485. else
  1486. # Is the header compilable?
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1488. $as_echo_n "checking $2 usability... " >&6; }
  1489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1490. /* end confdefs.h. */
  1491. $4
  1492. #include <$2>
  1493. _ACEOF
  1494. if ac_fn_c_try_compile "$LINENO"; then :
  1495. ac_header_compiler=yes
  1496. else
  1497. ac_header_compiler=no
  1498. fi
  1499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1501. $as_echo "$ac_header_compiler" >&6; }
  1502. # Is the header present?
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1504. $as_echo_n "checking $2 presence... " >&6; }
  1505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1506. /* end confdefs.h. */
  1507. #include <$2>
  1508. _ACEOF
  1509. if ac_fn_c_try_cpp "$LINENO"; then :
  1510. ac_header_preproc=yes
  1511. else
  1512. ac_header_preproc=no
  1513. fi
  1514. rm -f conftest.err conftest.i conftest.$ac_ext
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1516. $as_echo "$ac_header_preproc" >&6; }
  1517. # So? What about this header?
  1518. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1519. yes:no: )
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1521. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1523. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1524. ;;
  1525. no:yes:* )
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1527. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1529. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1531. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1533. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1535. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1536. ( $as_echo "## --------------------------------------------- ##
  1537. ## Report this to serj.kalichev at gmail dot com ##
  1538. ## --------------------------------------------- ##"
  1539. ) | sed "s/^/$as_me: WARNING: /" >&2
  1540. ;;
  1541. esac
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1543. $as_echo_n "checking for $2... " >&6; }
  1544. if eval \${$3+:} false; then :
  1545. $as_echo_n "(cached) " >&6
  1546. else
  1547. eval "$3=\$ac_header_compiler"
  1548. fi
  1549. eval ac_res=\$$3
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1551. $as_echo "$ac_res" >&6; }
  1552. fi
  1553. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1554. } # ac_fn_c_check_header_mongrel
  1555. # ac_fn_c_try_run LINENO
  1556. # ----------------------
  1557. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1558. # that executables *can* be run.
  1559. ac_fn_c_try_run ()
  1560. {
  1561. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1562. if { { ac_try="$ac_link"
  1563. case "(($ac_try" in
  1564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1565. *) ac_try_echo=$ac_try;;
  1566. esac
  1567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1568. $as_echo "$ac_try_echo"; } >&5
  1569. (eval "$ac_link") 2>&5
  1570. ac_status=$?
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1573. { { case "(($ac_try" in
  1574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1575. *) ac_try_echo=$ac_try;;
  1576. esac
  1577. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1578. $as_echo "$ac_try_echo"; } >&5
  1579. (eval "$ac_try") 2>&5
  1580. ac_status=$?
  1581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; }; }; then :
  1583. ac_retval=0
  1584. else
  1585. $as_echo "$as_me: program exited with status $ac_status" >&5
  1586. $as_echo "$as_me: failed program was:" >&5
  1587. sed 's/^/| /' conftest.$ac_ext >&5
  1588. ac_retval=$ac_status
  1589. fi
  1590. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1591. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1592. as_fn_set_status $ac_retval
  1593. } # ac_fn_c_try_run
  1594. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1595. # -------------------------------------------------------
  1596. # Tests whether HEADER exists and can be compiled using the include files in
  1597. # INCLUDES, setting the cache variable VAR accordingly.
  1598. ac_fn_c_check_header_compile ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1602. $as_echo_n "checking for $2... " >&6; }
  1603. if eval \${$3+:} false; then :
  1604. $as_echo_n "(cached) " >&6
  1605. else
  1606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1607. /* end confdefs.h. */
  1608. $4
  1609. #include <$2>
  1610. _ACEOF
  1611. if ac_fn_c_try_compile "$LINENO"; then :
  1612. eval "$3=yes"
  1613. else
  1614. eval "$3=no"
  1615. fi
  1616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1617. fi
  1618. eval ac_res=\$$3
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1620. $as_echo "$ac_res" >&6; }
  1621. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. } # ac_fn_c_check_header_compile
  1623. # ac_fn_c_try_link LINENO
  1624. # -----------------------
  1625. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1626. ac_fn_c_try_link ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. rm -f conftest.$ac_objext conftest$ac_exeext
  1630. if { { ac_try="$ac_link"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_link") 2>conftest.err
  1638. ac_status=$?
  1639. if test -s conftest.err; then
  1640. grep -v '^ *+' conftest.err >conftest.er1
  1641. cat conftest.er1 >&5
  1642. mv -f conftest.er1 conftest.err
  1643. fi
  1644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1645. test $ac_status = 0; } && {
  1646. test -z "$ac_c_werror_flag" ||
  1647. test ! -s conftest.err
  1648. } && test -s conftest$ac_exeext && {
  1649. test "$cross_compiling" = yes ||
  1650. test -x conftest$ac_exeext
  1651. }; then :
  1652. ac_retval=0
  1653. else
  1654. $as_echo "$as_me: failed program was:" >&5
  1655. sed 's/^/| /' conftest.$ac_ext >&5
  1656. ac_retval=1
  1657. fi
  1658. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1659. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1660. # interfere with the next link command; also delete a directory that is
  1661. # left behind by Apple's compiler. We do this before executing the actions.
  1662. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. as_fn_set_status $ac_retval
  1665. } # ac_fn_c_try_link
  1666. # ac_fn_c_check_func LINENO FUNC VAR
  1667. # ----------------------------------
  1668. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1669. ac_fn_c_check_func ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1673. $as_echo_n "checking for $2... " >&6; }
  1674. if eval \${$3+:} false; then :
  1675. $as_echo_n "(cached) " >&6
  1676. else
  1677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1678. /* end confdefs.h. */
  1679. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1680. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1681. #define $2 innocuous_$2
  1682. /* System header to define __stub macros and hopefully few prototypes,
  1683. which can conflict with char $2 (); below.
  1684. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1685. <limits.h> exists even on freestanding compilers. */
  1686. #ifdef __STDC__
  1687. # include <limits.h>
  1688. #else
  1689. # include <assert.h>
  1690. #endif
  1691. #undef $2
  1692. /* Override any GCC internal prototype to avoid an error.
  1693. Use char because int might match the return type of a GCC
  1694. builtin and then its argument prototype would still apply. */
  1695. #ifdef __cplusplus
  1696. extern "C"
  1697. #endif
  1698. char $2 ();
  1699. /* The GNU C library defines this for functions which it implements
  1700. to always fail with ENOSYS. Some functions are actually named
  1701. something starting with __ and the normal name is an alias. */
  1702. #if defined __stub_$2 || defined __stub___$2
  1703. choke me
  1704. #endif
  1705. int
  1706. main ()
  1707. {
  1708. return $2 ();
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. if ac_fn_c_try_link "$LINENO"; then :
  1714. eval "$3=yes"
  1715. else
  1716. eval "$3=no"
  1717. fi
  1718. rm -f core conftest.err conftest.$ac_objext \
  1719. conftest$ac_exeext conftest.$ac_ext
  1720. fi
  1721. eval ac_res=\$$3
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1723. $as_echo "$ac_res" >&6; }
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. } # ac_fn_c_check_func
  1726. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1727. # --------------------------------------------
  1728. # Tries to find the compile-time value of EXPR in a program that includes
  1729. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1730. # computed
  1731. ac_fn_c_compute_int ()
  1732. {
  1733. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1734. if test "$cross_compiling" = yes; then
  1735. # Depending upon the size, compute the lo and hi bounds.
  1736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1737. /* end confdefs.h. */
  1738. $4
  1739. int
  1740. main ()
  1741. {
  1742. static int test_array [1 - 2 * !(($2) >= 0)];
  1743. test_array [0] = 0;
  1744. return test_array [0];
  1745. ;
  1746. return 0;
  1747. }
  1748. _ACEOF
  1749. if ac_fn_c_try_compile "$LINENO"; then :
  1750. ac_lo=0 ac_mid=0
  1751. while :; do
  1752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1753. /* end confdefs.h. */
  1754. $4
  1755. int
  1756. main ()
  1757. {
  1758. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1759. test_array [0] = 0;
  1760. return test_array [0];
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_compile "$LINENO"; then :
  1766. ac_hi=$ac_mid; break
  1767. else
  1768. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1769. if test $ac_lo -le $ac_mid; then
  1770. ac_lo= ac_hi=
  1771. break
  1772. fi
  1773. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1774. fi
  1775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1776. done
  1777. else
  1778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1779. /* end confdefs.h. */
  1780. $4
  1781. int
  1782. main ()
  1783. {
  1784. static int test_array [1 - 2 * !(($2) < 0)];
  1785. test_array [0] = 0;
  1786. return test_array [0];
  1787. ;
  1788. return 0;
  1789. }
  1790. _ACEOF
  1791. if ac_fn_c_try_compile "$LINENO"; then :
  1792. ac_hi=-1 ac_mid=-1
  1793. while :; do
  1794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1795. /* end confdefs.h. */
  1796. $4
  1797. int
  1798. main ()
  1799. {
  1800. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1801. test_array [0] = 0;
  1802. return test_array [0];
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. if ac_fn_c_try_compile "$LINENO"; then :
  1808. ac_lo=$ac_mid; break
  1809. else
  1810. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1811. if test $ac_mid -le $ac_hi; then
  1812. ac_lo= ac_hi=
  1813. break
  1814. fi
  1815. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1816. fi
  1817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1818. done
  1819. else
  1820. ac_lo= ac_hi=
  1821. fi
  1822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. # Binary search between lo and hi bounds.
  1826. while test "x$ac_lo" != "x$ac_hi"; do
  1827. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1829. /* end confdefs.h. */
  1830. $4
  1831. int
  1832. main ()
  1833. {
  1834. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1835. test_array [0] = 0;
  1836. return test_array [0];
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842. ac_hi=$ac_mid
  1843. else
  1844. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1847. done
  1848. case $ac_lo in #((
  1849. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1850. '') ac_retval=1 ;;
  1851. esac
  1852. else
  1853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1854. /* end confdefs.h. */
  1855. $4
  1856. static long int longval () { return $2; }
  1857. static unsigned long int ulongval () { return $2; }
  1858. #include <stdio.h>
  1859. #include <stdlib.h>
  1860. int
  1861. main ()
  1862. {
  1863. FILE *f = fopen ("conftest.val", "w");
  1864. if (! f)
  1865. return 1;
  1866. if (($2) < 0)
  1867. {
  1868. long int i = longval ();
  1869. if (i != ($2))
  1870. return 1;
  1871. fprintf (f, "%ld", i);
  1872. }
  1873. else
  1874. {
  1875. unsigned long int i = ulongval ();
  1876. if (i != ($2))
  1877. return 1;
  1878. fprintf (f, "%lu", i);
  1879. }
  1880. /* Do not output a trailing newline, as this causes \r\n confusion
  1881. on some platforms. */
  1882. return ferror (f) || fclose (f) != 0;
  1883. ;
  1884. return 0;
  1885. }
  1886. _ACEOF
  1887. if ac_fn_c_try_run "$LINENO"; then :
  1888. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1889. else
  1890. ac_retval=1
  1891. fi
  1892. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1893. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1894. rm -f conftest.val
  1895. fi
  1896. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1897. as_fn_set_status $ac_retval
  1898. } # ac_fn_c_compute_int
  1899. cat >config.log <<_ACEOF
  1900. This file contains any messages produced by compilers while
  1901. running configure, to aid debugging if configure makes a mistake.
  1902. It was created by faux $as_me 2.0.0, which was
  1903. generated by GNU Autoconf 2.69. Invocation command line was
  1904. $ $0 $@
  1905. _ACEOF
  1906. exec 5>>config.log
  1907. {
  1908. cat <<_ASUNAME
  1909. ## --------- ##
  1910. ## Platform. ##
  1911. ## --------- ##
  1912. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1913. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1914. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1915. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1916. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1917. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1918. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1919. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1920. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1921. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1922. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1923. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1924. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1925. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1926. _ASUNAME
  1927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1928. for as_dir in $PATH
  1929. do
  1930. IFS=$as_save_IFS
  1931. test -z "$as_dir" && as_dir=.
  1932. $as_echo "PATH: $as_dir"
  1933. done
  1934. IFS=$as_save_IFS
  1935. } >&5
  1936. cat >&5 <<_ACEOF
  1937. ## ----------- ##
  1938. ## Core tests. ##
  1939. ## ----------- ##
  1940. _ACEOF
  1941. # Keep a trace of the command line.
  1942. # Strip out --no-create and --no-recursion so they do not pile up.
  1943. # Strip out --silent because we don't want to record it for future runs.
  1944. # Also quote any args containing shell meta-characters.
  1945. # Make two passes to allow for proper duplicate-argument suppression.
  1946. ac_configure_args=
  1947. ac_configure_args0=
  1948. ac_configure_args1=
  1949. ac_must_keep_next=false
  1950. for ac_pass in 1 2
  1951. do
  1952. for ac_arg
  1953. do
  1954. case $ac_arg in
  1955. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1956. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1957. | -silent | --silent | --silen | --sile | --sil)
  1958. continue ;;
  1959. *\'*)
  1960. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1961. esac
  1962. case $ac_pass in
  1963. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1964. 2)
  1965. as_fn_append ac_configure_args1 " '$ac_arg'"
  1966. if test $ac_must_keep_next = true; then
  1967. ac_must_keep_next=false # Got value, back to normal.
  1968. else
  1969. case $ac_arg in
  1970. *=* | --config-cache | -C | -disable-* | --disable-* \
  1971. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1972. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1973. | -with-* | --with-* | -without-* | --without-* | --x)
  1974. case "$ac_configure_args0 " in
  1975. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1976. esac
  1977. ;;
  1978. -* ) ac_must_keep_next=true ;;
  1979. esac
  1980. fi
  1981. as_fn_append ac_configure_args " '$ac_arg'"
  1982. ;;
  1983. esac
  1984. done
  1985. done
  1986. { ac_configure_args0=; unset ac_configure_args0;}
  1987. { ac_configure_args1=; unset ac_configure_args1;}
  1988. # When interrupted or exit'd, cleanup temporary files, and complete
  1989. # config.log. We remove comments because anyway the quotes in there
  1990. # would cause problems or look ugly.
  1991. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1992. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1993. trap 'exit_status=$?
  1994. # Save into config.log some information that might help in debugging.
  1995. {
  1996. echo
  1997. $as_echo "## ---------------- ##
  1998. ## Cache variables. ##
  1999. ## ---------------- ##"
  2000. echo
  2001. # The following way of writing the cache mishandles newlines in values,
  2002. (
  2003. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2004. eval ac_val=\$$ac_var
  2005. case $ac_val in #(
  2006. *${as_nl}*)
  2007. case $ac_var in #(
  2008. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2009. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2010. esac
  2011. case $ac_var in #(
  2012. _ | IFS | as_nl) ;; #(
  2013. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2014. *) { eval $ac_var=; unset $ac_var;} ;;
  2015. esac ;;
  2016. esac
  2017. done
  2018. (set) 2>&1 |
  2019. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2020. *${as_nl}ac_space=\ *)
  2021. sed -n \
  2022. "s/'\''/'\''\\\\'\'''\''/g;
  2023. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2024. ;; #(
  2025. *)
  2026. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2027. ;;
  2028. esac |
  2029. sort
  2030. )
  2031. echo
  2032. $as_echo "## ----------------- ##
  2033. ## Output variables. ##
  2034. ## ----------------- ##"
  2035. echo
  2036. for ac_var in $ac_subst_vars
  2037. do
  2038. eval ac_val=\$$ac_var
  2039. case $ac_val in
  2040. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2041. esac
  2042. $as_echo "$ac_var='\''$ac_val'\''"
  2043. done | sort
  2044. echo
  2045. if test -n "$ac_subst_files"; then
  2046. $as_echo "## ------------------- ##
  2047. ## File substitutions. ##
  2048. ## ------------------- ##"
  2049. echo
  2050. for ac_var in $ac_subst_files
  2051. do
  2052. eval ac_val=\$$ac_var
  2053. case $ac_val in
  2054. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2055. esac
  2056. $as_echo "$ac_var='\''$ac_val'\''"
  2057. done | sort
  2058. echo
  2059. fi
  2060. if test -s confdefs.h; then
  2061. $as_echo "## ----------- ##
  2062. ## confdefs.h. ##
  2063. ## ----------- ##"
  2064. echo
  2065. cat confdefs.h
  2066. echo
  2067. fi
  2068. test "$ac_signal" != 0 &&
  2069. $as_echo "$as_me: caught signal $ac_signal"
  2070. $as_echo "$as_me: exit $exit_status"
  2071. } >&5
  2072. rm -f core *.core core.conftest.* &&
  2073. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2074. exit $exit_status
  2075. ' 0
  2076. for ac_signal in 1 2 13 15; do
  2077. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2078. done
  2079. ac_signal=0
  2080. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2081. rm -f -r conftest* confdefs.h
  2082. $as_echo "/* confdefs.h */" > confdefs.h
  2083. # Predefined preprocessor variables.
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_NAME "$PACKAGE_NAME"
  2086. _ACEOF
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2089. _ACEOF
  2090. cat >>confdefs.h <<_ACEOF
  2091. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2092. _ACEOF
  2093. cat >>confdefs.h <<_ACEOF
  2094. #define PACKAGE_STRING "$PACKAGE_STRING"
  2095. _ACEOF
  2096. cat >>confdefs.h <<_ACEOF
  2097. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2098. _ACEOF
  2099. cat >>confdefs.h <<_ACEOF
  2100. #define PACKAGE_URL "$PACKAGE_URL"
  2101. _ACEOF
  2102. # Let the site file select an alternate cache file if it wants to.
  2103. # Prefer an explicitly selected file to automatically selected ones.
  2104. ac_site_file1=NONE
  2105. ac_site_file2=NONE
  2106. if test -n "$CONFIG_SITE"; then
  2107. # We do not want a PATH search for config.site.
  2108. case $CONFIG_SITE in #((
  2109. -*) ac_site_file1=./$CONFIG_SITE;;
  2110. */*) ac_site_file1=$CONFIG_SITE;;
  2111. *) ac_site_file1=./$CONFIG_SITE;;
  2112. esac
  2113. elif test "x$prefix" != xNONE; then
  2114. ac_site_file1=$prefix/share/config.site
  2115. ac_site_file2=$prefix/etc/config.site
  2116. else
  2117. ac_site_file1=$ac_default_prefix/share/config.site
  2118. ac_site_file2=$ac_default_prefix/etc/config.site
  2119. fi
  2120. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2121. do
  2122. test "x$ac_site_file" = xNONE && continue
  2123. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2125. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2126. sed 's/^/| /' "$ac_site_file" >&5
  2127. . "$ac_site_file" \
  2128. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2130. as_fn_error $? "failed to load site script $ac_site_file
  2131. See \`config.log' for more details" "$LINENO" 5; }
  2132. fi
  2133. done
  2134. if test -r "$cache_file"; then
  2135. # Some versions of bash will fail to source /dev/null (special files
  2136. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2137. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2139. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2140. case $cache_file in
  2141. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2142. *) . "./$cache_file";;
  2143. esac
  2144. fi
  2145. else
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2147. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2148. >$cache_file
  2149. fi
  2150. # Check that the precious variables saved in the cache have kept the same
  2151. # value.
  2152. ac_cache_corrupted=false
  2153. for ac_var in $ac_precious_vars; do
  2154. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2155. eval ac_new_set=\$ac_env_${ac_var}_set
  2156. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2157. eval ac_new_val=\$ac_env_${ac_var}_value
  2158. case $ac_old_set,$ac_new_set in
  2159. set,)
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2161. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2162. ac_cache_corrupted=: ;;
  2163. ,set)
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2165. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2166. ac_cache_corrupted=: ;;
  2167. ,);;
  2168. *)
  2169. if test "x$ac_old_val" != "x$ac_new_val"; then
  2170. # differences in whitespace do not lead to failure.
  2171. ac_old_val_w=`echo x $ac_old_val`
  2172. ac_new_val_w=`echo x $ac_new_val`
  2173. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2175. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2176. ac_cache_corrupted=:
  2177. else
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2179. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2180. eval $ac_var=\$ac_old_val
  2181. fi
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2183. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2185. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2186. fi;;
  2187. esac
  2188. # Pass precious variables to config.status.
  2189. if test "$ac_new_set" = set; then
  2190. case $ac_new_val in
  2191. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2192. *) ac_arg=$ac_var=$ac_new_val ;;
  2193. esac
  2194. case " $ac_configure_args " in
  2195. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2196. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2197. esac
  2198. fi
  2199. done
  2200. if $ac_cache_corrupted; then
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2204. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2205. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2206. fi
  2207. ## -------------------- ##
  2208. ## Main body of script. ##
  2209. ## -------------------- ##
  2210. ac_ext=c
  2211. ac_cpp='$CPP $CPPFLAGS'
  2212. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2213. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2214. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2215. ac_aux_dir=
  2216. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2217. if test -f "$ac_dir/install-sh"; then
  2218. ac_aux_dir=$ac_dir
  2219. ac_install_sh="$ac_aux_dir/install-sh -c"
  2220. break
  2221. elif test -f "$ac_dir/install.sh"; then
  2222. ac_aux_dir=$ac_dir
  2223. ac_install_sh="$ac_aux_dir/install.sh -c"
  2224. break
  2225. elif test -f "$ac_dir/shtool"; then
  2226. ac_aux_dir=$ac_dir
  2227. ac_install_sh="$ac_aux_dir/shtool install -c"
  2228. break
  2229. fi
  2230. done
  2231. if test -z "$ac_aux_dir"; then
  2232. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2233. fi
  2234. # These three variables are undocumented and unsupported,
  2235. # and are intended to be withdrawn in a future Autoconf release.
  2236. # They can cause serious problems if a builder's source tree is in a directory
  2237. # whose full name contains unusual characters.
  2238. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2239. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2240. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2241. # Values for SONAME. See -version-info for details.
  2242. SONAME_CURRENT=2
  2243. SONAME_REVISION=0
  2244. SONAME_AGE=0
  2245. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2246. # Expand $ac_aux_dir to an absolute path.
  2247. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2248. ac_ext=c
  2249. ac_cpp='$CPP $CPPFLAGS'
  2250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2253. if test -n "$ac_tool_prefix"; then
  2254. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2255. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2257. $as_echo_n "checking for $ac_word... " >&6; }
  2258. if ${ac_cv_prog_CC+:} false; then :
  2259. $as_echo_n "(cached) " >&6
  2260. else
  2261. if test -n "$CC"; then
  2262. ac_cv_prog_CC="$CC" # Let the user override the test.
  2263. else
  2264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. for as_dir in $PATH
  2266. do
  2267. IFS=$as_save_IFS
  2268. test -z "$as_dir" && as_dir=.
  2269. for ac_exec_ext in '' $ac_executable_extensions; do
  2270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2271. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2273. break 2
  2274. fi
  2275. done
  2276. done
  2277. IFS=$as_save_IFS
  2278. fi
  2279. fi
  2280. CC=$ac_cv_prog_CC
  2281. if test -n "$CC"; then
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2283. $as_echo "$CC" >&6; }
  2284. else
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2286. $as_echo "no" >&6; }
  2287. fi
  2288. fi
  2289. if test -z "$ac_cv_prog_CC"; then
  2290. ac_ct_CC=$CC
  2291. # Extract the first word of "gcc", so it can be a program name with args.
  2292. set dummy gcc; ac_word=$2
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2294. $as_echo_n "checking for $ac_word... " >&6; }
  2295. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2296. $as_echo_n "(cached) " >&6
  2297. else
  2298. if test -n "$ac_ct_CC"; then
  2299. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2300. else
  2301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2302. for as_dir in $PATH
  2303. do
  2304. IFS=$as_save_IFS
  2305. test -z "$as_dir" && as_dir=.
  2306. for ac_exec_ext in '' $ac_executable_extensions; do
  2307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2308. ac_cv_prog_ac_ct_CC="gcc"
  2309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2310. break 2
  2311. fi
  2312. done
  2313. done
  2314. IFS=$as_save_IFS
  2315. fi
  2316. fi
  2317. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2318. if test -n "$ac_ct_CC"; then
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2320. $as_echo "$ac_ct_CC" >&6; }
  2321. else
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2323. $as_echo "no" >&6; }
  2324. fi
  2325. if test "x$ac_ct_CC" = x; then
  2326. CC=""
  2327. else
  2328. case $cross_compiling:$ac_tool_warned in
  2329. yes:)
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2332. ac_tool_warned=yes ;;
  2333. esac
  2334. CC=$ac_ct_CC
  2335. fi
  2336. else
  2337. CC="$ac_cv_prog_CC"
  2338. fi
  2339. if test -z "$CC"; then
  2340. if test -n "$ac_tool_prefix"; then
  2341. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2342. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2344. $as_echo_n "checking for $ac_word... " >&6; }
  2345. if ${ac_cv_prog_CC+:} false; then :
  2346. $as_echo_n "(cached) " >&6
  2347. else
  2348. if test -n "$CC"; then
  2349. ac_cv_prog_CC="$CC" # Let the user override the test.
  2350. else
  2351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2352. for as_dir in $PATH
  2353. do
  2354. IFS=$as_save_IFS
  2355. test -z "$as_dir" && as_dir=.
  2356. for ac_exec_ext in '' $ac_executable_extensions; do
  2357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2358. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2360. break 2
  2361. fi
  2362. done
  2363. done
  2364. IFS=$as_save_IFS
  2365. fi
  2366. fi
  2367. CC=$ac_cv_prog_CC
  2368. if test -n "$CC"; then
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2370. $as_echo "$CC" >&6; }
  2371. else
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2373. $as_echo "no" >&6; }
  2374. fi
  2375. fi
  2376. fi
  2377. if test -z "$CC"; then
  2378. # Extract the first word of "cc", so it can be a program name with args.
  2379. set dummy cc; ac_word=$2
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2381. $as_echo_n "checking for $ac_word... " >&6; }
  2382. if ${ac_cv_prog_CC+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. if test -n "$CC"; then
  2386. ac_cv_prog_CC="$CC" # Let the user override the test.
  2387. else
  2388. ac_prog_rejected=no
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_exec_ext in '' $ac_executable_extensions; do
  2395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2396. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2397. ac_prog_rejected=yes
  2398. continue
  2399. fi
  2400. ac_cv_prog_CC="cc"
  2401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2402. break 2
  2403. fi
  2404. done
  2405. done
  2406. IFS=$as_save_IFS
  2407. if test $ac_prog_rejected = yes; then
  2408. # We found a bogon in the path, so make sure we never use it.
  2409. set dummy $ac_cv_prog_CC
  2410. shift
  2411. if test $# != 0; then
  2412. # We chose a different compiler from the bogus one.
  2413. # However, it has the same basename, so the bogon will be chosen
  2414. # first if we set CC to just the basename; use the full file name.
  2415. shift
  2416. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2417. fi
  2418. fi
  2419. fi
  2420. fi
  2421. CC=$ac_cv_prog_CC
  2422. if test -n "$CC"; then
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2424. $as_echo "$CC" >&6; }
  2425. else
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2427. $as_echo "no" >&6; }
  2428. fi
  2429. fi
  2430. if test -z "$CC"; then
  2431. if test -n "$ac_tool_prefix"; then
  2432. for ac_prog in cl.exe
  2433. do
  2434. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2435. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2437. $as_echo_n "checking for $ac_word... " >&6; }
  2438. if ${ac_cv_prog_CC+:} false; then :
  2439. $as_echo_n "(cached) " >&6
  2440. else
  2441. if test -n "$CC"; then
  2442. ac_cv_prog_CC="$CC" # Let the user override the test.
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. for ac_exec_ext in '' $ac_executable_extensions; do
  2450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2451. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2453. break 2
  2454. fi
  2455. done
  2456. done
  2457. IFS=$as_save_IFS
  2458. fi
  2459. fi
  2460. CC=$ac_cv_prog_CC
  2461. if test -n "$CC"; then
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2463. $as_echo "$CC" >&6; }
  2464. else
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2466. $as_echo "no" >&6; }
  2467. fi
  2468. test -n "$CC" && break
  2469. done
  2470. fi
  2471. if test -z "$CC"; then
  2472. ac_ct_CC=$CC
  2473. for ac_prog in cl.exe
  2474. do
  2475. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2476. set dummy $ac_prog; ac_word=$2
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2478. $as_echo_n "checking for $ac_word... " >&6; }
  2479. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2480. $as_echo_n "(cached) " >&6
  2481. else
  2482. if test -n "$ac_ct_CC"; then
  2483. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2492. ac_cv_prog_ac_ct_CC="$ac_prog"
  2493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. IFS=$as_save_IFS
  2499. fi
  2500. fi
  2501. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2502. if test -n "$ac_ct_CC"; then
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2504. $as_echo "$ac_ct_CC" >&6; }
  2505. else
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2507. $as_echo "no" >&6; }
  2508. fi
  2509. test -n "$ac_ct_CC" && break
  2510. done
  2511. if test "x$ac_ct_CC" = x; then
  2512. CC=""
  2513. else
  2514. case $cross_compiling:$ac_tool_warned in
  2515. yes:)
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2518. ac_tool_warned=yes ;;
  2519. esac
  2520. CC=$ac_ct_CC
  2521. fi
  2522. fi
  2523. fi
  2524. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2525. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2526. as_fn_error $? "no acceptable C compiler found in \$PATH
  2527. See \`config.log' for more details" "$LINENO" 5; }
  2528. # Provide some information about the compiler.
  2529. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2530. set X $ac_compile
  2531. ac_compiler=$2
  2532. for ac_option in --version -v -V -qversion; do
  2533. { { ac_try="$ac_compiler $ac_option >&5"
  2534. case "(($ac_try" in
  2535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2536. *) ac_try_echo=$ac_try;;
  2537. esac
  2538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2539. $as_echo "$ac_try_echo"; } >&5
  2540. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2541. ac_status=$?
  2542. if test -s conftest.err; then
  2543. sed '10a\
  2544. ... rest of stderr output deleted ...
  2545. 10q' conftest.err >conftest.er1
  2546. cat conftest.er1 >&5
  2547. fi
  2548. rm -f conftest.er1 conftest.err
  2549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2550. test $ac_status = 0; }
  2551. done
  2552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2553. /* end confdefs.h. */
  2554. int
  2555. main ()
  2556. {
  2557. ;
  2558. return 0;
  2559. }
  2560. _ACEOF
  2561. ac_clean_files_save=$ac_clean_files
  2562. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2563. # Try to create an executable without -o first, disregard a.out.
  2564. # It will help us diagnose broken compilers, and finding out an intuition
  2565. # of exeext.
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2567. $as_echo_n "checking whether the C compiler works... " >&6; }
  2568. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2569. # The possible output files:
  2570. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2571. ac_rmfiles=
  2572. for ac_file in $ac_files
  2573. do
  2574. case $ac_file in
  2575. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2576. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2577. esac
  2578. done
  2579. rm -f $ac_rmfiles
  2580. if { { ac_try="$ac_link_default"
  2581. case "(($ac_try" in
  2582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2583. *) ac_try_echo=$ac_try;;
  2584. esac
  2585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2586. $as_echo "$ac_try_echo"; } >&5
  2587. (eval "$ac_link_default") 2>&5
  2588. ac_status=$?
  2589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2590. test $ac_status = 0; }; then :
  2591. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2592. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2593. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2594. # so that the user can short-circuit this test for compilers unknown to
  2595. # Autoconf.
  2596. for ac_file in $ac_files ''
  2597. do
  2598. test -f "$ac_file" || continue
  2599. case $ac_file in
  2600. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2601. ;;
  2602. [ab].out )
  2603. # We found the default executable, but exeext='' is most
  2604. # certainly right.
  2605. break;;
  2606. *.* )
  2607. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2608. then :; else
  2609. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2610. fi
  2611. # We set ac_cv_exeext here because the later test for it is not
  2612. # safe: cross compilers may not add the suffix if given an `-o'
  2613. # argument, so we may need to know it at that point already.
  2614. # Even if this section looks crufty: it has the advantage of
  2615. # actually working.
  2616. break;;
  2617. * )
  2618. break;;
  2619. esac
  2620. done
  2621. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2622. else
  2623. ac_file=''
  2624. fi
  2625. if test -z "$ac_file"; then :
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2627. $as_echo "no" >&6; }
  2628. $as_echo "$as_me: failed program was:" >&5
  2629. sed 's/^/| /' conftest.$ac_ext >&5
  2630. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2631. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2632. as_fn_error 77 "C compiler cannot create executables
  2633. See \`config.log' for more details" "$LINENO" 5; }
  2634. else
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2636. $as_echo "yes" >&6; }
  2637. fi
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2639. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2641. $as_echo "$ac_file" >&6; }
  2642. ac_exeext=$ac_cv_exeext
  2643. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2644. ac_clean_files=$ac_clean_files_save
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2646. $as_echo_n "checking for suffix of executables... " >&6; }
  2647. if { { ac_try="$ac_link"
  2648. case "(($ac_try" in
  2649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2650. *) ac_try_echo=$ac_try;;
  2651. esac
  2652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2653. $as_echo "$ac_try_echo"; } >&5
  2654. (eval "$ac_link") 2>&5
  2655. ac_status=$?
  2656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2657. test $ac_status = 0; }; then :
  2658. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2659. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2660. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2661. # `rm'.
  2662. for ac_file in conftest.exe conftest conftest.*; do
  2663. test -f "$ac_file" || continue
  2664. case $ac_file in
  2665. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2666. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2667. break;;
  2668. * ) break;;
  2669. esac
  2670. done
  2671. else
  2672. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2673. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2674. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2675. See \`config.log' for more details" "$LINENO" 5; }
  2676. fi
  2677. rm -f conftest conftest$ac_cv_exeext
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2679. $as_echo "$ac_cv_exeext" >&6; }
  2680. rm -f conftest.$ac_ext
  2681. EXEEXT=$ac_cv_exeext
  2682. ac_exeext=$EXEEXT
  2683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2684. /* end confdefs.h. */
  2685. #include <stdio.h>
  2686. int
  2687. main ()
  2688. {
  2689. FILE *f = fopen ("conftest.out", "w");
  2690. return ferror (f) || fclose (f) != 0;
  2691. ;
  2692. return 0;
  2693. }
  2694. _ACEOF
  2695. ac_clean_files="$ac_clean_files conftest.out"
  2696. # Check that the compiler produces executables we can run. If not, either
  2697. # the compiler is broken, or we cross compile.
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2699. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2700. if test "$cross_compiling" != yes; then
  2701. { { ac_try="$ac_link"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2707. $as_echo "$ac_try_echo"; } >&5
  2708. (eval "$ac_link") 2>&5
  2709. ac_status=$?
  2710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2711. test $ac_status = 0; }
  2712. if { ac_try='./conftest$ac_cv_exeext'
  2713. { { case "(($ac_try" in
  2714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2715. *) ac_try_echo=$ac_try;;
  2716. esac
  2717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2718. $as_echo "$ac_try_echo"; } >&5
  2719. (eval "$ac_try") 2>&5
  2720. ac_status=$?
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2722. test $ac_status = 0; }; }; then
  2723. cross_compiling=no
  2724. else
  2725. if test "$cross_compiling" = maybe; then
  2726. cross_compiling=yes
  2727. else
  2728. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2729. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2730. as_fn_error $? "cannot run C compiled programs.
  2731. If you meant to cross compile, use \`--host'.
  2732. See \`config.log' for more details" "$LINENO" 5; }
  2733. fi
  2734. fi
  2735. fi
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2737. $as_echo "$cross_compiling" >&6; }
  2738. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2739. ac_clean_files=$ac_clean_files_save
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2741. $as_echo_n "checking for suffix of object files... " >&6; }
  2742. if ${ac_cv_objext+:} false; then :
  2743. $as_echo_n "(cached) " >&6
  2744. else
  2745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2746. /* end confdefs.h. */
  2747. int
  2748. main ()
  2749. {
  2750. ;
  2751. return 0;
  2752. }
  2753. _ACEOF
  2754. rm -f conftest.o conftest.obj
  2755. if { { ac_try="$ac_compile"
  2756. case "(($ac_try" in
  2757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2758. *) ac_try_echo=$ac_try;;
  2759. esac
  2760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2761. $as_echo "$ac_try_echo"; } >&5
  2762. (eval "$ac_compile") 2>&5
  2763. ac_status=$?
  2764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2765. test $ac_status = 0; }; then :
  2766. for ac_file in conftest.o conftest.obj conftest.*; do
  2767. test -f "$ac_file" || continue;
  2768. case $ac_file in
  2769. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2770. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2771. break;;
  2772. esac
  2773. done
  2774. else
  2775. $as_echo "$as_me: failed program was:" >&5
  2776. sed 's/^/| /' conftest.$ac_ext >&5
  2777. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2778. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2779. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2780. See \`config.log' for more details" "$LINENO" 5; }
  2781. fi
  2782. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2783. fi
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2785. $as_echo "$ac_cv_objext" >&6; }
  2786. OBJEXT=$ac_cv_objext
  2787. ac_objext=$OBJEXT
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2789. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2790. if ${ac_cv_c_compiler_gnu+:} false; then :
  2791. $as_echo_n "(cached) " >&6
  2792. else
  2793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2794. /* end confdefs.h. */
  2795. int
  2796. main ()
  2797. {
  2798. #ifndef __GNUC__
  2799. choke me
  2800. #endif
  2801. ;
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. if ac_fn_c_try_compile "$LINENO"; then :
  2806. ac_compiler_gnu=yes
  2807. else
  2808. ac_compiler_gnu=no
  2809. fi
  2810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2811. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2812. fi
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2814. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2815. if test $ac_compiler_gnu = yes; then
  2816. GCC=yes
  2817. else
  2818. GCC=
  2819. fi
  2820. ac_test_CFLAGS=${CFLAGS+set}
  2821. ac_save_CFLAGS=$CFLAGS
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2823. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2824. if ${ac_cv_prog_cc_g+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. ac_save_c_werror_flag=$ac_c_werror_flag
  2828. ac_c_werror_flag=yes
  2829. ac_cv_prog_cc_g=no
  2830. CFLAGS="-g"
  2831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2832. /* end confdefs.h. */
  2833. int
  2834. main ()
  2835. {
  2836. ;
  2837. return 0;
  2838. }
  2839. _ACEOF
  2840. if ac_fn_c_try_compile "$LINENO"; then :
  2841. ac_cv_prog_cc_g=yes
  2842. else
  2843. CFLAGS=""
  2844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. ;
  2850. return 0;
  2851. }
  2852. _ACEOF
  2853. if ac_fn_c_try_compile "$LINENO"; then :
  2854. else
  2855. ac_c_werror_flag=$ac_save_c_werror_flag
  2856. CFLAGS="-g"
  2857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2858. /* end confdefs.h. */
  2859. int
  2860. main ()
  2861. {
  2862. ;
  2863. return 0;
  2864. }
  2865. _ACEOF
  2866. if ac_fn_c_try_compile "$LINENO"; then :
  2867. ac_cv_prog_cc_g=yes
  2868. fi
  2869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2870. fi
  2871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2872. fi
  2873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2874. ac_c_werror_flag=$ac_save_c_werror_flag
  2875. fi
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2877. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2878. if test "$ac_test_CFLAGS" = set; then
  2879. CFLAGS=$ac_save_CFLAGS
  2880. elif test $ac_cv_prog_cc_g = yes; then
  2881. if test "$GCC" = yes; then
  2882. CFLAGS="-g -O2"
  2883. else
  2884. CFLAGS="-g"
  2885. fi
  2886. else
  2887. if test "$GCC" = yes; then
  2888. CFLAGS="-O2"
  2889. else
  2890. CFLAGS=
  2891. fi
  2892. fi
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2894. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2895. if ${ac_cv_prog_cc_c89+:} false; then :
  2896. $as_echo_n "(cached) " >&6
  2897. else
  2898. ac_cv_prog_cc_c89=no
  2899. ac_save_CC=$CC
  2900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2901. /* end confdefs.h. */
  2902. #include <stdarg.h>
  2903. #include <stdio.h>
  2904. struct stat;
  2905. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2906. struct buf { int x; };
  2907. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2908. static char *e (p, i)
  2909. char **p;
  2910. int i;
  2911. {
  2912. return p[i];
  2913. }
  2914. static char *f (char * (*g) (char **, int), char **p, ...)
  2915. {
  2916. char *s;
  2917. va_list v;
  2918. va_start (v,p);
  2919. s = g (p, va_arg (v,int));
  2920. va_end (v);
  2921. return s;
  2922. }
  2923. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2924. function prototypes and stuff, but not '\xHH' hex character constants.
  2925. These don't provoke an error unfortunately, instead are silently treated
  2926. as 'x'. The following induces an error, until -std is added to get
  2927. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2928. array size at least. It's necessary to write '\x00'==0 to get something
  2929. that's true only with -std. */
  2930. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2931. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2932. inside strings and character constants. */
  2933. #define FOO(x) 'x'
  2934. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2935. int test (int i, double x);
  2936. struct s1 {int (*f) (int a);};
  2937. struct s2 {int (*f) (double a);};
  2938. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2939. int argc;
  2940. char **argv;
  2941. int
  2942. main ()
  2943. {
  2944. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2950. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2951. do
  2952. CC="$ac_save_CC $ac_arg"
  2953. if ac_fn_c_try_compile "$LINENO"; then :
  2954. ac_cv_prog_cc_c89=$ac_arg
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext
  2957. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2958. done
  2959. rm -f conftest.$ac_ext
  2960. CC=$ac_save_CC
  2961. fi
  2962. # AC_CACHE_VAL
  2963. case "x$ac_cv_prog_cc_c89" in
  2964. x)
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2966. $as_echo "none needed" >&6; } ;;
  2967. xno)
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2969. $as_echo "unsupported" >&6; } ;;
  2970. *)
  2971. CC="$CC $ac_cv_prog_cc_c89"
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2973. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2974. esac
  2975. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2976. fi
  2977. ac_ext=c
  2978. ac_cpp='$CPP $CPPFLAGS'
  2979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2982. ac_ext=c
  2983. ac_cpp='$CPP $CPPFLAGS'
  2984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  2988. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  2989. if ${am_cv_prog_cc_c_o+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. int
  2995. main ()
  2996. {
  2997. ;
  2998. return 0;
  2999. }
  3000. _ACEOF
  3001. # Make sure it works both with $CC and with simple cc.
  3002. # Following AC_PROG_CC_C_O, we do the test twice because some
  3003. # compilers refuse to overwrite an existing .o file with -o,
  3004. # though they will create one.
  3005. am_cv_prog_cc_c_o=yes
  3006. for am_i in 1 2; do
  3007. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3008. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3009. ac_status=$?
  3010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3011. (exit $ac_status); } \
  3012. && test -f conftest2.$ac_objext; then
  3013. : OK
  3014. else
  3015. am_cv_prog_cc_c_o=no
  3016. break
  3017. fi
  3018. done
  3019. rm -f core conftest*
  3020. unset am_i
  3021. fi
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3023. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3024. if test "$am_cv_prog_cc_c_o" != yes; then
  3025. # Losing compiler, so override with the script.
  3026. # FIXME: It is wrong to rewrite CC.
  3027. # But if we don't then we get into trouble of one sort or another.
  3028. # A longer-term fix would be to have automake use am__CC in this case,
  3029. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3030. CC="$am_aux_dir/compile $CC"
  3031. fi
  3032. ac_ext=c
  3033. ac_cpp='$CPP $CPPFLAGS'
  3034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3037. ac_ext=c
  3038. ac_cpp='$CPP $CPPFLAGS'
  3039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3043. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3044. # On Suns, sometimes $CPP names a directory.
  3045. if test -n "$CPP" && test -d "$CPP"; then
  3046. CPP=
  3047. fi
  3048. if test -z "$CPP"; then
  3049. if ${ac_cv_prog_CPP+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. # Double quotes because CPP needs to be expanded
  3053. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3054. do
  3055. ac_preproc_ok=false
  3056. for ac_c_preproc_warn_flag in '' yes
  3057. do
  3058. # Use a header file that comes with gcc, so configuring glibc
  3059. # with a fresh cross-compiler works.
  3060. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3061. # <limits.h> exists even on freestanding compilers.
  3062. # On the NeXT, cc -E runs the code through the compiler's parser,
  3063. # not just through cpp. "Syntax error" is here to catch this case.
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. #ifdef __STDC__
  3067. # include <limits.h>
  3068. #else
  3069. # include <assert.h>
  3070. #endif
  3071. Syntax error
  3072. _ACEOF
  3073. if ac_fn_c_try_cpp "$LINENO"; then :
  3074. else
  3075. # Broken: fails on valid input.
  3076. continue
  3077. fi
  3078. rm -f conftest.err conftest.i conftest.$ac_ext
  3079. # OK, works on sane cases. Now check whether nonexistent headers
  3080. # can be detected and how.
  3081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3082. /* end confdefs.h. */
  3083. #include <ac_nonexistent.h>
  3084. _ACEOF
  3085. if ac_fn_c_try_cpp "$LINENO"; then :
  3086. # Broken: success on invalid input.
  3087. continue
  3088. else
  3089. # Passes both tests.
  3090. ac_preproc_ok=:
  3091. break
  3092. fi
  3093. rm -f conftest.err conftest.i conftest.$ac_ext
  3094. done
  3095. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3096. rm -f conftest.i conftest.err conftest.$ac_ext
  3097. if $ac_preproc_ok; then :
  3098. break
  3099. fi
  3100. done
  3101. ac_cv_prog_CPP=$CPP
  3102. fi
  3103. CPP=$ac_cv_prog_CPP
  3104. else
  3105. ac_cv_prog_CPP=$CPP
  3106. fi
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3108. $as_echo "$CPP" >&6; }
  3109. ac_preproc_ok=false
  3110. for ac_c_preproc_warn_flag in '' yes
  3111. do
  3112. # Use a header file that comes with gcc, so configuring glibc
  3113. # with a fresh cross-compiler works.
  3114. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3115. # <limits.h> exists even on freestanding compilers.
  3116. # On the NeXT, cc -E runs the code through the compiler's parser,
  3117. # not just through cpp. "Syntax error" is here to catch this case.
  3118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3119. /* end confdefs.h. */
  3120. #ifdef __STDC__
  3121. # include <limits.h>
  3122. #else
  3123. # include <assert.h>
  3124. #endif
  3125. Syntax error
  3126. _ACEOF
  3127. if ac_fn_c_try_cpp "$LINENO"; then :
  3128. else
  3129. # Broken: fails on valid input.
  3130. continue
  3131. fi
  3132. rm -f conftest.err conftest.i conftest.$ac_ext
  3133. # OK, works on sane cases. Now check whether nonexistent headers
  3134. # can be detected and how.
  3135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3136. /* end confdefs.h. */
  3137. #include <ac_nonexistent.h>
  3138. _ACEOF
  3139. if ac_fn_c_try_cpp "$LINENO"; then :
  3140. # Broken: success on invalid input.
  3141. continue
  3142. else
  3143. # Passes both tests.
  3144. ac_preproc_ok=:
  3145. break
  3146. fi
  3147. rm -f conftest.err conftest.i conftest.$ac_ext
  3148. done
  3149. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3150. rm -f conftest.i conftest.err conftest.$ac_ext
  3151. if $ac_preproc_ok; then :
  3152. else
  3153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3155. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3156. See \`config.log' for more details" "$LINENO" 5; }
  3157. fi
  3158. ac_ext=c
  3159. ac_cpp='$CPP $CPPFLAGS'
  3160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3164. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3165. if ${ac_cv_path_GREP+:} false; then :
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. if test -z "$GREP"; then
  3169. ac_path_GREP_found=false
  3170. # Loop through the user's path and test for each of PROGNAME-LIST
  3171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3172. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3173. do
  3174. IFS=$as_save_IFS
  3175. test -z "$as_dir" && as_dir=.
  3176. for ac_prog in grep ggrep; do
  3177. for ac_exec_ext in '' $ac_executable_extensions; do
  3178. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3179. as_fn_executable_p "$ac_path_GREP" || continue
  3180. # Check for GNU ac_path_GREP and select it if it is found.
  3181. # Check for GNU $ac_path_GREP
  3182. case `"$ac_path_GREP" --version 2>&1` in
  3183. *GNU*)
  3184. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3185. *)
  3186. ac_count=0
  3187. $as_echo_n 0123456789 >"conftest.in"
  3188. while :
  3189. do
  3190. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3191. mv "conftest.tmp" "conftest.in"
  3192. cp "conftest.in" "conftest.nl"
  3193. $as_echo 'GREP' >> "conftest.nl"
  3194. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3195. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3196. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3197. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3198. # Best one so far, save it but keep looking for a better one
  3199. ac_cv_path_GREP="$ac_path_GREP"
  3200. ac_path_GREP_max=$ac_count
  3201. fi
  3202. # 10*(2^10) chars as input seems more than enough
  3203. test $ac_count -gt 10 && break
  3204. done
  3205. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3206. esac
  3207. $ac_path_GREP_found && break 3
  3208. done
  3209. done
  3210. done
  3211. IFS=$as_save_IFS
  3212. if test -z "$ac_cv_path_GREP"; then
  3213. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3214. fi
  3215. else
  3216. ac_cv_path_GREP=$GREP
  3217. fi
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3220. $as_echo "$ac_cv_path_GREP" >&6; }
  3221. GREP="$ac_cv_path_GREP"
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3223. $as_echo_n "checking for egrep... " >&6; }
  3224. if ${ac_cv_path_EGREP+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3228. then ac_cv_path_EGREP="$GREP -E"
  3229. else
  3230. if test -z "$EGREP"; then
  3231. ac_path_EGREP_found=false
  3232. # Loop through the user's path and test for each of PROGNAME-LIST
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_prog in egrep; do
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3241. as_fn_executable_p "$ac_path_EGREP" || continue
  3242. # Check for GNU ac_path_EGREP and select it if it is found.
  3243. # Check for GNU $ac_path_EGREP
  3244. case `"$ac_path_EGREP" --version 2>&1` in
  3245. *GNU*)
  3246. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3247. *)
  3248. ac_count=0
  3249. $as_echo_n 0123456789 >"conftest.in"
  3250. while :
  3251. do
  3252. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3253. mv "conftest.tmp" "conftest.in"
  3254. cp "conftest.in" "conftest.nl"
  3255. $as_echo 'EGREP' >> "conftest.nl"
  3256. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3257. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3258. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3259. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3260. # Best one so far, save it but keep looking for a better one
  3261. ac_cv_path_EGREP="$ac_path_EGREP"
  3262. ac_path_EGREP_max=$ac_count
  3263. fi
  3264. # 10*(2^10) chars as input seems more than enough
  3265. test $ac_count -gt 10 && break
  3266. done
  3267. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3268. esac
  3269. $ac_path_EGREP_found && break 3
  3270. done
  3271. done
  3272. done
  3273. IFS=$as_save_IFS
  3274. if test -z "$ac_cv_path_EGREP"; then
  3275. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3276. fi
  3277. else
  3278. ac_cv_path_EGREP=$EGREP
  3279. fi
  3280. fi
  3281. fi
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3283. $as_echo "$ac_cv_path_EGREP" >&6; }
  3284. EGREP="$ac_cv_path_EGREP"
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3286. $as_echo_n "checking for ANSI C header files... " >&6; }
  3287. if ${ac_cv_header_stdc+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. #include <stdlib.h>
  3293. #include <stdarg.h>
  3294. #include <string.h>
  3295. #include <float.h>
  3296. int
  3297. main ()
  3298. {
  3299. ;
  3300. return 0;
  3301. }
  3302. _ACEOF
  3303. if ac_fn_c_try_compile "$LINENO"; then :
  3304. ac_cv_header_stdc=yes
  3305. else
  3306. ac_cv_header_stdc=no
  3307. fi
  3308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3309. if test $ac_cv_header_stdc = yes; then
  3310. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3312. /* end confdefs.h. */
  3313. #include <string.h>
  3314. _ACEOF
  3315. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3316. $EGREP "memchr" >/dev/null 2>&1; then :
  3317. else
  3318. ac_cv_header_stdc=no
  3319. fi
  3320. rm -f conftest*
  3321. fi
  3322. if test $ac_cv_header_stdc = yes; then
  3323. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3325. /* end confdefs.h. */
  3326. #include <stdlib.h>
  3327. _ACEOF
  3328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3329. $EGREP "free" >/dev/null 2>&1; then :
  3330. else
  3331. ac_cv_header_stdc=no
  3332. fi
  3333. rm -f conftest*
  3334. fi
  3335. if test $ac_cv_header_stdc = yes; then
  3336. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3337. if test "$cross_compiling" = yes; then :
  3338. :
  3339. else
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. #include <ctype.h>
  3343. #include <stdlib.h>
  3344. #if ((' ' & 0x0FF) == 0x020)
  3345. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3346. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3347. #else
  3348. # define ISLOWER(c) \
  3349. (('a' <= (c) && (c) <= 'i') \
  3350. || ('j' <= (c) && (c) <= 'r') \
  3351. || ('s' <= (c) && (c) <= 'z'))
  3352. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3353. #endif
  3354. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3355. int
  3356. main ()
  3357. {
  3358. int i;
  3359. for (i = 0; i < 256; i++)
  3360. if (XOR (islower (i), ISLOWER (i))
  3361. || toupper (i) != TOUPPER (i))
  3362. return 2;
  3363. return 0;
  3364. }
  3365. _ACEOF
  3366. if ac_fn_c_try_run "$LINENO"; then :
  3367. else
  3368. ac_cv_header_stdc=no
  3369. fi
  3370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3371. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3372. fi
  3373. fi
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3376. $as_echo "$ac_cv_header_stdc" >&6; }
  3377. if test $ac_cv_header_stdc = yes; then
  3378. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3379. fi
  3380. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3381. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3382. inttypes.h stdint.h unistd.h
  3383. do :
  3384. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3385. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3386. "
  3387. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3388. cat >>confdefs.h <<_ACEOF
  3389. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3390. _ACEOF
  3391. fi
  3392. done
  3393. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3394. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3395. MINIX=yes
  3396. else
  3397. MINIX=
  3398. fi
  3399. if test "$MINIX" = yes; then
  3400. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3401. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3402. $as_echo "#define _MINIX 1" >>confdefs.h
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3405. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3406. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3407. $as_echo_n "(cached) " >&6
  3408. else
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. # define __EXTENSIONS__ 1
  3412. $ac_includes_default
  3413. int
  3414. main ()
  3415. {
  3416. ;
  3417. return 0;
  3418. }
  3419. _ACEOF
  3420. if ac_fn_c_try_compile "$LINENO"; then :
  3421. ac_cv_safe_to_define___extensions__=yes
  3422. else
  3423. ac_cv_safe_to_define___extensions__=no
  3424. fi
  3425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3426. fi
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3428. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3429. test $ac_cv_safe_to_define___extensions__ = yes &&
  3430. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3431. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3432. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3433. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3434. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3435. # Checks for programs.
  3436. ac_ext=c
  3437. ac_cpp='$CPP $CPPFLAGS'
  3438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3441. if test -n "$ac_tool_prefix"; then
  3442. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3443. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3445. $as_echo_n "checking for $ac_word... " >&6; }
  3446. if ${ac_cv_prog_CC+:} false; then :
  3447. $as_echo_n "(cached) " >&6
  3448. else
  3449. if test -n "$CC"; then
  3450. ac_cv_prog_CC="$CC" # Let the user override the test.
  3451. else
  3452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3453. for as_dir in $PATH
  3454. do
  3455. IFS=$as_save_IFS
  3456. test -z "$as_dir" && as_dir=.
  3457. for ac_exec_ext in '' $ac_executable_extensions; do
  3458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3459. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3461. break 2
  3462. fi
  3463. done
  3464. done
  3465. IFS=$as_save_IFS
  3466. fi
  3467. fi
  3468. CC=$ac_cv_prog_CC
  3469. if test -n "$CC"; then
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3471. $as_echo "$CC" >&6; }
  3472. else
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3474. $as_echo "no" >&6; }
  3475. fi
  3476. fi
  3477. if test -z "$ac_cv_prog_CC"; then
  3478. ac_ct_CC=$CC
  3479. # Extract the first word of "gcc", so it can be a program name with args.
  3480. set dummy gcc; ac_word=$2
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3482. $as_echo_n "checking for $ac_word... " >&6; }
  3483. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. if test -n "$ac_ct_CC"; then
  3487. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3488. else
  3489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3490. for as_dir in $PATH
  3491. do
  3492. IFS=$as_save_IFS
  3493. test -z "$as_dir" && as_dir=.
  3494. for ac_exec_ext in '' $ac_executable_extensions; do
  3495. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3496. ac_cv_prog_ac_ct_CC="gcc"
  3497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3498. break 2
  3499. fi
  3500. done
  3501. done
  3502. IFS=$as_save_IFS
  3503. fi
  3504. fi
  3505. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3506. if test -n "$ac_ct_CC"; then
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3508. $as_echo "$ac_ct_CC" >&6; }
  3509. else
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3511. $as_echo "no" >&6; }
  3512. fi
  3513. if test "x$ac_ct_CC" = x; then
  3514. CC=""
  3515. else
  3516. case $cross_compiling:$ac_tool_warned in
  3517. yes:)
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3520. ac_tool_warned=yes ;;
  3521. esac
  3522. CC=$ac_ct_CC
  3523. fi
  3524. else
  3525. CC="$ac_cv_prog_CC"
  3526. fi
  3527. if test -z "$CC"; then
  3528. if test -n "$ac_tool_prefix"; then
  3529. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3530. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3532. $as_echo_n "checking for $ac_word... " >&6; }
  3533. if ${ac_cv_prog_CC+:} false; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. if test -n "$CC"; then
  3537. ac_cv_prog_CC="$CC" # Let the user override the test.
  3538. else
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH
  3541. do
  3542. IFS=$as_save_IFS
  3543. test -z "$as_dir" && as_dir=.
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3546. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3548. break 2
  3549. fi
  3550. done
  3551. done
  3552. IFS=$as_save_IFS
  3553. fi
  3554. fi
  3555. CC=$ac_cv_prog_CC
  3556. if test -n "$CC"; then
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3558. $as_echo "$CC" >&6; }
  3559. else
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. $as_echo "no" >&6; }
  3562. fi
  3563. fi
  3564. fi
  3565. if test -z "$CC"; then
  3566. # Extract the first word of "cc", so it can be a program name with args.
  3567. set dummy cc; ac_word=$2
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3569. $as_echo_n "checking for $ac_word... " >&6; }
  3570. if ${ac_cv_prog_CC+:} false; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. if test -n "$CC"; then
  3574. ac_cv_prog_CC="$CC" # Let the user override the test.
  3575. else
  3576. ac_prog_rejected=no
  3577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3578. for as_dir in $PATH
  3579. do
  3580. IFS=$as_save_IFS
  3581. test -z "$as_dir" && as_dir=.
  3582. for ac_exec_ext in '' $ac_executable_extensions; do
  3583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3584. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3585. ac_prog_rejected=yes
  3586. continue
  3587. fi
  3588. ac_cv_prog_CC="cc"
  3589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3590. break 2
  3591. fi
  3592. done
  3593. done
  3594. IFS=$as_save_IFS
  3595. if test $ac_prog_rejected = yes; then
  3596. # We found a bogon in the path, so make sure we never use it.
  3597. set dummy $ac_cv_prog_CC
  3598. shift
  3599. if test $# != 0; then
  3600. # We chose a different compiler from the bogus one.
  3601. # However, it has the same basename, so the bogon will be chosen
  3602. # first if we set CC to just the basename; use the full file name.
  3603. shift
  3604. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3605. fi
  3606. fi
  3607. fi
  3608. fi
  3609. CC=$ac_cv_prog_CC
  3610. if test -n "$CC"; then
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3612. $as_echo "$CC" >&6; }
  3613. else
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3615. $as_echo "no" >&6; }
  3616. fi
  3617. fi
  3618. if test -z "$CC"; then
  3619. if test -n "$ac_tool_prefix"; then
  3620. for ac_prog in cl.exe
  3621. do
  3622. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3623. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3625. $as_echo_n "checking for $ac_word... " >&6; }
  3626. if ${ac_cv_prog_CC+:} false; then :
  3627. $as_echo_n "(cached) " >&6
  3628. else
  3629. if test -n "$CC"; then
  3630. ac_cv_prog_CC="$CC" # Let the user override the test.
  3631. else
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH
  3634. do
  3635. IFS=$as_save_IFS
  3636. test -z "$as_dir" && as_dir=.
  3637. for ac_exec_ext in '' $ac_executable_extensions; do
  3638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3639. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3641. break 2
  3642. fi
  3643. done
  3644. done
  3645. IFS=$as_save_IFS
  3646. fi
  3647. fi
  3648. CC=$ac_cv_prog_CC
  3649. if test -n "$CC"; then
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3651. $as_echo "$CC" >&6; }
  3652. else
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3654. $as_echo "no" >&6; }
  3655. fi
  3656. test -n "$CC" && break
  3657. done
  3658. fi
  3659. if test -z "$CC"; then
  3660. ac_ct_CC=$CC
  3661. for ac_prog in cl.exe
  3662. do
  3663. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3664. set dummy $ac_prog; ac_word=$2
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3666. $as_echo_n "checking for $ac_word... " >&6; }
  3667. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. if test -n "$ac_ct_CC"; then
  3671. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3672. else
  3673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3674. for as_dir in $PATH
  3675. do
  3676. IFS=$as_save_IFS
  3677. test -z "$as_dir" && as_dir=.
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3680. ac_cv_prog_ac_ct_CC="$ac_prog"
  3681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3682. break 2
  3683. fi
  3684. done
  3685. done
  3686. IFS=$as_save_IFS
  3687. fi
  3688. fi
  3689. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3690. if test -n "$ac_ct_CC"; then
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3692. $as_echo "$ac_ct_CC" >&6; }
  3693. else
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3695. $as_echo "no" >&6; }
  3696. fi
  3697. test -n "$ac_ct_CC" && break
  3698. done
  3699. if test "x$ac_ct_CC" = x; then
  3700. CC=""
  3701. else
  3702. case $cross_compiling:$ac_tool_warned in
  3703. yes:)
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3706. ac_tool_warned=yes ;;
  3707. esac
  3708. CC=$ac_ct_CC
  3709. fi
  3710. fi
  3711. fi
  3712. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3714. as_fn_error $? "no acceptable C compiler found in \$PATH
  3715. See \`config.log' for more details" "$LINENO" 5; }
  3716. # Provide some information about the compiler.
  3717. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3718. set X $ac_compile
  3719. ac_compiler=$2
  3720. for ac_option in --version -v -V -qversion; do
  3721. { { ac_try="$ac_compiler $ac_option >&5"
  3722. case "(($ac_try" in
  3723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3724. *) ac_try_echo=$ac_try;;
  3725. esac
  3726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3727. $as_echo "$ac_try_echo"; } >&5
  3728. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3729. ac_status=$?
  3730. if test -s conftest.err; then
  3731. sed '10a\
  3732. ... rest of stderr output deleted ...
  3733. 10q' conftest.err >conftest.er1
  3734. cat conftest.er1 >&5
  3735. fi
  3736. rm -f conftest.er1 conftest.err
  3737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3738. test $ac_status = 0; }
  3739. done
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3741. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3742. if ${ac_cv_c_compiler_gnu+:} false; then :
  3743. $as_echo_n "(cached) " >&6
  3744. else
  3745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3746. /* end confdefs.h. */
  3747. int
  3748. main ()
  3749. {
  3750. #ifndef __GNUC__
  3751. choke me
  3752. #endif
  3753. ;
  3754. return 0;
  3755. }
  3756. _ACEOF
  3757. if ac_fn_c_try_compile "$LINENO"; then :
  3758. ac_compiler_gnu=yes
  3759. else
  3760. ac_compiler_gnu=no
  3761. fi
  3762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3763. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3766. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3767. if test $ac_compiler_gnu = yes; then
  3768. GCC=yes
  3769. else
  3770. GCC=
  3771. fi
  3772. ac_test_CFLAGS=${CFLAGS+set}
  3773. ac_save_CFLAGS=$CFLAGS
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3775. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3776. if ${ac_cv_prog_cc_g+:} false; then :
  3777. $as_echo_n "(cached) " >&6
  3778. else
  3779. ac_save_c_werror_flag=$ac_c_werror_flag
  3780. ac_c_werror_flag=yes
  3781. ac_cv_prog_cc_g=no
  3782. CFLAGS="-g"
  3783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3784. /* end confdefs.h. */
  3785. int
  3786. main ()
  3787. {
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. if ac_fn_c_try_compile "$LINENO"; then :
  3793. ac_cv_prog_cc_g=yes
  3794. else
  3795. CFLAGS=""
  3796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3797. /* end confdefs.h. */
  3798. int
  3799. main ()
  3800. {
  3801. ;
  3802. return 0;
  3803. }
  3804. _ACEOF
  3805. if ac_fn_c_try_compile "$LINENO"; then :
  3806. else
  3807. ac_c_werror_flag=$ac_save_c_werror_flag
  3808. CFLAGS="-g"
  3809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3810. /* end confdefs.h. */
  3811. int
  3812. main ()
  3813. {
  3814. ;
  3815. return 0;
  3816. }
  3817. _ACEOF
  3818. if ac_fn_c_try_compile "$LINENO"; then :
  3819. ac_cv_prog_cc_g=yes
  3820. fi
  3821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3822. fi
  3823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3824. fi
  3825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3826. ac_c_werror_flag=$ac_save_c_werror_flag
  3827. fi
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3829. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3830. if test "$ac_test_CFLAGS" = set; then
  3831. CFLAGS=$ac_save_CFLAGS
  3832. elif test $ac_cv_prog_cc_g = yes; then
  3833. if test "$GCC" = yes; then
  3834. CFLAGS="-g -O2"
  3835. else
  3836. CFLAGS="-g"
  3837. fi
  3838. else
  3839. if test "$GCC" = yes; then
  3840. CFLAGS="-O2"
  3841. else
  3842. CFLAGS=
  3843. fi
  3844. fi
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3846. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3847. if ${ac_cv_prog_cc_c89+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. ac_cv_prog_cc_c89=no
  3851. ac_save_CC=$CC
  3852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3853. /* end confdefs.h. */
  3854. #include <stdarg.h>
  3855. #include <stdio.h>
  3856. struct stat;
  3857. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3858. struct buf { int x; };
  3859. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3860. static char *e (p, i)
  3861. char **p;
  3862. int i;
  3863. {
  3864. return p[i];
  3865. }
  3866. static char *f (char * (*g) (char **, int), char **p, ...)
  3867. {
  3868. char *s;
  3869. va_list v;
  3870. va_start (v,p);
  3871. s = g (p, va_arg (v,int));
  3872. va_end (v);
  3873. return s;
  3874. }
  3875. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3876. function prototypes and stuff, but not '\xHH' hex character constants.
  3877. These don't provoke an error unfortunately, instead are silently treated
  3878. as 'x'. The following induces an error, until -std is added to get
  3879. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3880. array size at least. It's necessary to write '\x00'==0 to get something
  3881. that's true only with -std. */
  3882. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3883. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3884. inside strings and character constants. */
  3885. #define FOO(x) 'x'
  3886. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3887. int test (int i, double x);
  3888. struct s1 {int (*f) (int a);};
  3889. struct s2 {int (*f) (double a);};
  3890. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3891. int argc;
  3892. char **argv;
  3893. int
  3894. main ()
  3895. {
  3896. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3897. ;
  3898. return 0;
  3899. }
  3900. _ACEOF
  3901. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3902. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3903. do
  3904. CC="$ac_save_CC $ac_arg"
  3905. if ac_fn_c_try_compile "$LINENO"; then :
  3906. ac_cv_prog_cc_c89=$ac_arg
  3907. fi
  3908. rm -f core conftest.err conftest.$ac_objext
  3909. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3910. done
  3911. rm -f conftest.$ac_ext
  3912. CC=$ac_save_CC
  3913. fi
  3914. # AC_CACHE_VAL
  3915. case "x$ac_cv_prog_cc_c89" in
  3916. x)
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3918. $as_echo "none needed" >&6; } ;;
  3919. xno)
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3921. $as_echo "unsupported" >&6; } ;;
  3922. *)
  3923. CC="$CC $ac_cv_prog_cc_c89"
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3925. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3926. esac
  3927. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3928. fi
  3929. ac_ext=c
  3930. ac_cpp='$CPP $CPPFLAGS'
  3931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3934. ac_ext=c
  3935. ac_cpp='$CPP $CPPFLAGS'
  3936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3940. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3941. if ${am_cv_prog_cc_c_o+:} false; then :
  3942. $as_echo_n "(cached) " >&6
  3943. else
  3944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3945. /* end confdefs.h. */
  3946. int
  3947. main ()
  3948. {
  3949. ;
  3950. return 0;
  3951. }
  3952. _ACEOF
  3953. # Make sure it works both with $CC and with simple cc.
  3954. # Following AC_PROG_CC_C_O, we do the test twice because some
  3955. # compilers refuse to overwrite an existing .o file with -o,
  3956. # though they will create one.
  3957. am_cv_prog_cc_c_o=yes
  3958. for am_i in 1 2; do
  3959. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3960. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3961. ac_status=$?
  3962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963. (exit $ac_status); } \
  3964. && test -f conftest2.$ac_objext; then
  3965. : OK
  3966. else
  3967. am_cv_prog_cc_c_o=no
  3968. break
  3969. fi
  3970. done
  3971. rm -f core conftest*
  3972. unset am_i
  3973. fi
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3975. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3976. if test "$am_cv_prog_cc_c_o" != yes; then
  3977. # Losing compiler, so override with the script.
  3978. # FIXME: It is wrong to rewrite CC.
  3979. # But if we don't then we get into trouble of one sort or another.
  3980. # A longer-term fix would be to have automake use am__CC in this case,
  3981. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3982. CC="$am_aux_dir/compile $CC"
  3983. fi
  3984. ac_ext=c
  3985. ac_cpp='$CPP $CPPFLAGS'
  3986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3989. # Make sure we can run config.sub.
  3990. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3991. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3993. $as_echo_n "checking build system type... " >&6; }
  3994. if ${ac_cv_build+:} false; then :
  3995. $as_echo_n "(cached) " >&6
  3996. else
  3997. ac_build_alias=$build_alias
  3998. test "x$ac_build_alias" = x &&
  3999. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4000. test "x$ac_build_alias" = x &&
  4001. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4002. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4003. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4004. fi
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4006. $as_echo "$ac_cv_build" >&6; }
  4007. case $ac_cv_build in
  4008. *-*-*) ;;
  4009. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4010. esac
  4011. build=$ac_cv_build
  4012. ac_save_IFS=$IFS; IFS='-'
  4013. set x $ac_cv_build
  4014. shift
  4015. build_cpu=$1
  4016. build_vendor=$2
  4017. shift; shift
  4018. # Remember, the first character of IFS is used to create $*,
  4019. # except with old shells:
  4020. build_os=$*
  4021. IFS=$ac_save_IFS
  4022. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4024. $as_echo_n "checking host system type... " >&6; }
  4025. if ${ac_cv_host+:} false; then :
  4026. $as_echo_n "(cached) " >&6
  4027. else
  4028. if test "x$host_alias" = x; then
  4029. ac_cv_host=$ac_cv_build
  4030. else
  4031. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4032. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4033. fi
  4034. fi
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4036. $as_echo "$ac_cv_host" >&6; }
  4037. case $ac_cv_host in
  4038. *-*-*) ;;
  4039. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4040. esac
  4041. host=$ac_cv_host
  4042. ac_save_IFS=$IFS; IFS='-'
  4043. set x $ac_cv_host
  4044. shift
  4045. host_cpu=$1
  4046. host_vendor=$2
  4047. shift; shift
  4048. # Remember, the first character of IFS is used to create $*,
  4049. # except with old shells:
  4050. host_os=$*
  4051. IFS=$ac_save_IFS
  4052. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4053. enable_win32_dll=yes
  4054. case $host in
  4055. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4056. if test -n "$ac_tool_prefix"; then
  4057. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4058. set dummy ${ac_tool_prefix}as; ac_word=$2
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4060. $as_echo_n "checking for $ac_word... " >&6; }
  4061. if ${ac_cv_prog_AS+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. if test -n "$AS"; then
  4065. ac_cv_prog_AS="$AS" # Let the user override the test.
  4066. else
  4067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4068. for as_dir in $PATH
  4069. do
  4070. IFS=$as_save_IFS
  4071. test -z "$as_dir" && as_dir=.
  4072. for ac_exec_ext in '' $ac_executable_extensions; do
  4073. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4074. ac_cv_prog_AS="${ac_tool_prefix}as"
  4075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4076. break 2
  4077. fi
  4078. done
  4079. done
  4080. IFS=$as_save_IFS
  4081. fi
  4082. fi
  4083. AS=$ac_cv_prog_AS
  4084. if test -n "$AS"; then
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4086. $as_echo "$AS" >&6; }
  4087. else
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4089. $as_echo "no" >&6; }
  4090. fi
  4091. fi
  4092. if test -z "$ac_cv_prog_AS"; then
  4093. ac_ct_AS=$AS
  4094. # Extract the first word of "as", so it can be a program name with args.
  4095. set dummy as; ac_word=$2
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4097. $as_echo_n "checking for $ac_word... " >&6; }
  4098. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. if test -n "$ac_ct_AS"; then
  4102. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4103. else
  4104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4105. for as_dir in $PATH
  4106. do
  4107. IFS=$as_save_IFS
  4108. test -z "$as_dir" && as_dir=.
  4109. for ac_exec_ext in '' $ac_executable_extensions; do
  4110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4111. ac_cv_prog_ac_ct_AS="as"
  4112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4113. break 2
  4114. fi
  4115. done
  4116. done
  4117. IFS=$as_save_IFS
  4118. fi
  4119. fi
  4120. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4121. if test -n "$ac_ct_AS"; then
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4123. $as_echo "$ac_ct_AS" >&6; }
  4124. else
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4126. $as_echo "no" >&6; }
  4127. fi
  4128. if test "x$ac_ct_AS" = x; then
  4129. AS="false"
  4130. else
  4131. case $cross_compiling:$ac_tool_warned in
  4132. yes:)
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4134. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4135. ac_tool_warned=yes ;;
  4136. esac
  4137. AS=$ac_ct_AS
  4138. fi
  4139. else
  4140. AS="$ac_cv_prog_AS"
  4141. fi
  4142. if test -n "$ac_tool_prefix"; then
  4143. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4144. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4146. $as_echo_n "checking for $ac_word... " >&6; }
  4147. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if test -n "$DLLTOOL"; then
  4151. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4152. else
  4153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4154. for as_dir in $PATH
  4155. do
  4156. IFS=$as_save_IFS
  4157. test -z "$as_dir" && as_dir=.
  4158. for ac_exec_ext in '' $ac_executable_extensions; do
  4159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4160. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4162. break 2
  4163. fi
  4164. done
  4165. done
  4166. IFS=$as_save_IFS
  4167. fi
  4168. fi
  4169. DLLTOOL=$ac_cv_prog_DLLTOOL
  4170. if test -n "$DLLTOOL"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4172. $as_echo "$DLLTOOL" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. fi
  4178. if test -z "$ac_cv_prog_DLLTOOL"; then
  4179. ac_ct_DLLTOOL=$DLLTOOL
  4180. # Extract the first word of "dlltool", so it can be a program name with args.
  4181. set dummy dlltool; ac_word=$2
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4183. $as_echo_n "checking for $ac_word... " >&6; }
  4184. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. if test -n "$ac_ct_DLLTOOL"; then
  4188. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4189. else
  4190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4191. for as_dir in $PATH
  4192. do
  4193. IFS=$as_save_IFS
  4194. test -z "$as_dir" && as_dir=.
  4195. for ac_exec_ext in '' $ac_executable_extensions; do
  4196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4197. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4199. break 2
  4200. fi
  4201. done
  4202. done
  4203. IFS=$as_save_IFS
  4204. fi
  4205. fi
  4206. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4207. if test -n "$ac_ct_DLLTOOL"; then
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4209. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4210. else
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4212. $as_echo "no" >&6; }
  4213. fi
  4214. if test "x$ac_ct_DLLTOOL" = x; then
  4215. DLLTOOL="false"
  4216. else
  4217. case $cross_compiling:$ac_tool_warned in
  4218. yes:)
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4220. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4221. ac_tool_warned=yes ;;
  4222. esac
  4223. DLLTOOL=$ac_ct_DLLTOOL
  4224. fi
  4225. else
  4226. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4227. fi
  4228. if test -n "$ac_tool_prefix"; then
  4229. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4230. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4232. $as_echo_n "checking for $ac_word... " >&6; }
  4233. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4234. $as_echo_n "(cached) " >&6
  4235. else
  4236. if test -n "$OBJDUMP"; then
  4237. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4238. else
  4239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4240. for as_dir in $PATH
  4241. do
  4242. IFS=$as_save_IFS
  4243. test -z "$as_dir" && as_dir=.
  4244. for ac_exec_ext in '' $ac_executable_extensions; do
  4245. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4246. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4248. break 2
  4249. fi
  4250. done
  4251. done
  4252. IFS=$as_save_IFS
  4253. fi
  4254. fi
  4255. OBJDUMP=$ac_cv_prog_OBJDUMP
  4256. if test -n "$OBJDUMP"; then
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4258. $as_echo "$OBJDUMP" >&6; }
  4259. else
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4261. $as_echo "no" >&6; }
  4262. fi
  4263. fi
  4264. if test -z "$ac_cv_prog_OBJDUMP"; then
  4265. ac_ct_OBJDUMP=$OBJDUMP
  4266. # Extract the first word of "objdump", so it can be a program name with args.
  4267. set dummy objdump; ac_word=$2
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4269. $as_echo_n "checking for $ac_word... " >&6; }
  4270. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. if test -n "$ac_ct_OBJDUMP"; then
  4274. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4275. else
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. test -z "$as_dir" && as_dir=.
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4283. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4285. break 2
  4286. fi
  4287. done
  4288. done
  4289. IFS=$as_save_IFS
  4290. fi
  4291. fi
  4292. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4293. if test -n "$ac_ct_OBJDUMP"; then
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4295. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4296. else
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4298. $as_echo "no" >&6; }
  4299. fi
  4300. if test "x$ac_ct_OBJDUMP" = x; then
  4301. OBJDUMP="false"
  4302. else
  4303. case $cross_compiling:$ac_tool_warned in
  4304. yes:)
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4306. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4307. ac_tool_warned=yes ;;
  4308. esac
  4309. OBJDUMP=$ac_ct_OBJDUMP
  4310. fi
  4311. else
  4312. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4313. fi
  4314. ;;
  4315. esac
  4316. test -z "$AS" && AS=as
  4317. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4318. test -z "$OBJDUMP" && OBJDUMP=objdump
  4319. case `pwd` in
  4320. *\ * | *\ *)
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4322. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4323. esac
  4324. macro_version='2.4.6'
  4325. macro_revision='2.4.6'
  4326. ltmain=$ac_aux_dir/ltmain.sh
  4327. # Backslashify metacharacters that are still active within
  4328. # double-quoted strings.
  4329. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4330. # Same as above, but do not quote variable references.
  4331. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4332. # Sed substitution to delay expansion of an escaped shell variable in a
  4333. # double_quote_subst'ed string.
  4334. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4335. # Sed substitution to delay expansion of an escaped single quote.
  4336. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4337. # Sed substitution to avoid accidental globbing in evaled expressions
  4338. no_glob_subst='s/\*/\\\*/g'
  4339. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4340. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4341. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4343. $as_echo_n "checking how to print strings... " >&6; }
  4344. # Test print first, because it will be a builtin if present.
  4345. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4346. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4347. ECHO='print -r --'
  4348. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4349. ECHO='printf %s\n'
  4350. else
  4351. # Use this function as a fallback that always works.
  4352. func_fallback_echo ()
  4353. {
  4354. eval 'cat <<_LTECHO_EOF
  4355. $1
  4356. _LTECHO_EOF'
  4357. }
  4358. ECHO='func_fallback_echo'
  4359. fi
  4360. # func_echo_all arg...
  4361. # Invoke $ECHO with all args, space-separated.
  4362. func_echo_all ()
  4363. {
  4364. $ECHO ""
  4365. }
  4366. case $ECHO in
  4367. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4368. $as_echo "printf" >&6; } ;;
  4369. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4370. $as_echo "print -r" >&6; } ;;
  4371. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4372. $as_echo "cat" >&6; } ;;
  4373. esac
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4375. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4376. if ${ac_cv_path_SED+:} false; then :
  4377. $as_echo_n "(cached) " >&6
  4378. else
  4379. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4380. for ac_i in 1 2 3 4 5 6 7; do
  4381. ac_script="$ac_script$as_nl$ac_script"
  4382. done
  4383. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4384. { ac_script=; unset ac_script;}
  4385. if test -z "$SED"; then
  4386. ac_path_SED_found=false
  4387. # Loop through the user's path and test for each of PROGNAME-LIST
  4388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4389. for as_dir in $PATH
  4390. do
  4391. IFS=$as_save_IFS
  4392. test -z "$as_dir" && as_dir=.
  4393. for ac_prog in sed gsed; do
  4394. for ac_exec_ext in '' $ac_executable_extensions; do
  4395. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4396. as_fn_executable_p "$ac_path_SED" || continue
  4397. # Check for GNU ac_path_SED and select it if it is found.
  4398. # Check for GNU $ac_path_SED
  4399. case `"$ac_path_SED" --version 2>&1` in
  4400. *GNU*)
  4401. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4402. *)
  4403. ac_count=0
  4404. $as_echo_n 0123456789 >"conftest.in"
  4405. while :
  4406. do
  4407. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4408. mv "conftest.tmp" "conftest.in"
  4409. cp "conftest.in" "conftest.nl"
  4410. $as_echo '' >> "conftest.nl"
  4411. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4412. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4413. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4414. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4415. # Best one so far, save it but keep looking for a better one
  4416. ac_cv_path_SED="$ac_path_SED"
  4417. ac_path_SED_max=$ac_count
  4418. fi
  4419. # 10*(2^10) chars as input seems more than enough
  4420. test $ac_count -gt 10 && break
  4421. done
  4422. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4423. esac
  4424. $ac_path_SED_found && break 3
  4425. done
  4426. done
  4427. done
  4428. IFS=$as_save_IFS
  4429. if test -z "$ac_cv_path_SED"; then
  4430. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4431. fi
  4432. else
  4433. ac_cv_path_SED=$SED
  4434. fi
  4435. fi
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4437. $as_echo "$ac_cv_path_SED" >&6; }
  4438. SED="$ac_cv_path_SED"
  4439. rm -f conftest.sed
  4440. test -z "$SED" && SED=sed
  4441. Xsed="$SED -e 1s/^X//"
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4443. $as_echo_n "checking for fgrep... " >&6; }
  4444. if ${ac_cv_path_FGREP+:} false; then :
  4445. $as_echo_n "(cached) " >&6
  4446. else
  4447. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4448. then ac_cv_path_FGREP="$GREP -F"
  4449. else
  4450. if test -z "$FGREP"; then
  4451. ac_path_FGREP_found=false
  4452. # Loop through the user's path and test for each of PROGNAME-LIST
  4453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4454. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4455. do
  4456. IFS=$as_save_IFS
  4457. test -z "$as_dir" && as_dir=.
  4458. for ac_prog in fgrep; do
  4459. for ac_exec_ext in '' $ac_executable_extensions; do
  4460. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4461. as_fn_executable_p "$ac_path_FGREP" || continue
  4462. # Check for GNU ac_path_FGREP and select it if it is found.
  4463. # Check for GNU $ac_path_FGREP
  4464. case `"$ac_path_FGREP" --version 2>&1` in
  4465. *GNU*)
  4466. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4467. *)
  4468. ac_count=0
  4469. $as_echo_n 0123456789 >"conftest.in"
  4470. while :
  4471. do
  4472. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4473. mv "conftest.tmp" "conftest.in"
  4474. cp "conftest.in" "conftest.nl"
  4475. $as_echo 'FGREP' >> "conftest.nl"
  4476. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4477. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4478. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4479. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4480. # Best one so far, save it but keep looking for a better one
  4481. ac_cv_path_FGREP="$ac_path_FGREP"
  4482. ac_path_FGREP_max=$ac_count
  4483. fi
  4484. # 10*(2^10) chars as input seems more than enough
  4485. test $ac_count -gt 10 && break
  4486. done
  4487. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4488. esac
  4489. $ac_path_FGREP_found && break 3
  4490. done
  4491. done
  4492. done
  4493. IFS=$as_save_IFS
  4494. if test -z "$ac_cv_path_FGREP"; then
  4495. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4496. fi
  4497. else
  4498. ac_cv_path_FGREP=$FGREP
  4499. fi
  4500. fi
  4501. fi
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4503. $as_echo "$ac_cv_path_FGREP" >&6; }
  4504. FGREP="$ac_cv_path_FGREP"
  4505. test -z "$GREP" && GREP=grep
  4506. # Check whether --with-gnu-ld was given.
  4507. if test "${with_gnu_ld+set}" = set; then :
  4508. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4509. else
  4510. with_gnu_ld=no
  4511. fi
  4512. ac_prog=ld
  4513. if test yes = "$GCC"; then
  4514. # Check if gcc -print-prog-name=ld gives a path.
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4516. $as_echo_n "checking for ld used by $CC... " >&6; }
  4517. case $host in
  4518. *-*-mingw*)
  4519. # gcc leaves a trailing carriage return, which upsets mingw
  4520. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4521. *)
  4522. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4523. esac
  4524. case $ac_prog in
  4525. # Accept absolute paths.
  4526. [\\/]* | ?:[\\/]*)
  4527. re_direlt='/[^/][^/]*/\.\./'
  4528. # Canonicalize the pathname of ld
  4529. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4530. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4531. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4532. done
  4533. test -z "$LD" && LD=$ac_prog
  4534. ;;
  4535. "")
  4536. # If it fails, then pretend we aren't using GCC.
  4537. ac_prog=ld
  4538. ;;
  4539. *)
  4540. # If it is relative, then search for the first ld in PATH.
  4541. with_gnu_ld=unknown
  4542. ;;
  4543. esac
  4544. elif test yes = "$with_gnu_ld"; then
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4546. $as_echo_n "checking for GNU ld... " >&6; }
  4547. else
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4549. $as_echo_n "checking for non-GNU ld... " >&6; }
  4550. fi
  4551. if ${lt_cv_path_LD+:} false; then :
  4552. $as_echo_n "(cached) " >&6
  4553. else
  4554. if test -z "$LD"; then
  4555. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4556. for ac_dir in $PATH; do
  4557. IFS=$lt_save_ifs
  4558. test -z "$ac_dir" && ac_dir=.
  4559. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4560. lt_cv_path_LD=$ac_dir/$ac_prog
  4561. # Check to see if the program is GNU ld. I'd rather use --version,
  4562. # but apparently some variants of GNU ld only accept -v.
  4563. # Break only if it was the GNU/non-GNU ld that we prefer.
  4564. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4565. *GNU* | *'with BFD'*)
  4566. test no != "$with_gnu_ld" && break
  4567. ;;
  4568. *)
  4569. test yes != "$with_gnu_ld" && break
  4570. ;;
  4571. esac
  4572. fi
  4573. done
  4574. IFS=$lt_save_ifs
  4575. else
  4576. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4577. fi
  4578. fi
  4579. LD=$lt_cv_path_LD
  4580. if test -n "$LD"; then
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4582. $as_echo "$LD" >&6; }
  4583. else
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4585. $as_echo "no" >&6; }
  4586. fi
  4587. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4589. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4590. if ${lt_cv_prog_gnu_ld+:} false; then :
  4591. $as_echo_n "(cached) " >&6
  4592. else
  4593. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4594. case `$LD -v 2>&1 </dev/null` in
  4595. *GNU* | *'with BFD'*)
  4596. lt_cv_prog_gnu_ld=yes
  4597. ;;
  4598. *)
  4599. lt_cv_prog_gnu_ld=no
  4600. ;;
  4601. esac
  4602. fi
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4604. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4605. with_gnu_ld=$lt_cv_prog_gnu_ld
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4607. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4608. if ${lt_cv_path_NM+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$NM"; then
  4612. # Let the user override the test.
  4613. lt_cv_path_NM=$NM
  4614. else
  4615. lt_nm_to_check=${ac_tool_prefix}nm
  4616. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4617. lt_nm_to_check="$lt_nm_to_check nm"
  4618. fi
  4619. for lt_tmp_nm in $lt_nm_to_check; do
  4620. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4621. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4622. IFS=$lt_save_ifs
  4623. test -z "$ac_dir" && ac_dir=.
  4624. tmp_nm=$ac_dir/$lt_tmp_nm
  4625. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4626. # Check to see if the nm accepts a BSD-compat flag.
  4627. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4628. # nm: unknown option "B" ignored
  4629. # Tru64's nm complains that /dev/null is an invalid object file
  4630. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4631. case $build_os in
  4632. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4633. *) lt_bad_file=/dev/null ;;
  4634. esac
  4635. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4636. *$lt_bad_file* | *'Invalid file or object type'*)
  4637. lt_cv_path_NM="$tmp_nm -B"
  4638. break 2
  4639. ;;
  4640. *)
  4641. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4642. */dev/null*)
  4643. lt_cv_path_NM="$tmp_nm -p"
  4644. break 2
  4645. ;;
  4646. *)
  4647. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4648. continue # so that we can try to find one that supports BSD flags
  4649. ;;
  4650. esac
  4651. ;;
  4652. esac
  4653. fi
  4654. done
  4655. IFS=$lt_save_ifs
  4656. done
  4657. : ${lt_cv_path_NM=no}
  4658. fi
  4659. fi
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4661. $as_echo "$lt_cv_path_NM" >&6; }
  4662. if test no != "$lt_cv_path_NM"; then
  4663. NM=$lt_cv_path_NM
  4664. else
  4665. # Didn't find any BSD compatible name lister, look for dumpbin.
  4666. if test -n "$DUMPBIN"; then :
  4667. # Let the user override the test.
  4668. else
  4669. if test -n "$ac_tool_prefix"; then
  4670. for ac_prog in dumpbin "link -dump"
  4671. do
  4672. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4673. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4675. $as_echo_n "checking for $ac_word... " >&6; }
  4676. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4677. $as_echo_n "(cached) " >&6
  4678. else
  4679. if test -n "$DUMPBIN"; then
  4680. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4681. else
  4682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4683. for as_dir in $PATH
  4684. do
  4685. IFS=$as_save_IFS
  4686. test -z "$as_dir" && as_dir=.
  4687. for ac_exec_ext in '' $ac_executable_extensions; do
  4688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4689. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4691. break 2
  4692. fi
  4693. done
  4694. done
  4695. IFS=$as_save_IFS
  4696. fi
  4697. fi
  4698. DUMPBIN=$ac_cv_prog_DUMPBIN
  4699. if test -n "$DUMPBIN"; then
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4701. $as_echo "$DUMPBIN" >&6; }
  4702. else
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4704. $as_echo "no" >&6; }
  4705. fi
  4706. test -n "$DUMPBIN" && break
  4707. done
  4708. fi
  4709. if test -z "$DUMPBIN"; then
  4710. ac_ct_DUMPBIN=$DUMPBIN
  4711. for ac_prog in dumpbin "link -dump"
  4712. do
  4713. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4714. set dummy $ac_prog; ac_word=$2
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4716. $as_echo_n "checking for $ac_word... " >&6; }
  4717. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. if test -n "$ac_ct_DUMPBIN"; then
  4721. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4722. else
  4723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4724. for as_dir in $PATH
  4725. do
  4726. IFS=$as_save_IFS
  4727. test -z "$as_dir" && as_dir=.
  4728. for ac_exec_ext in '' $ac_executable_extensions; do
  4729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4730. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4732. break 2
  4733. fi
  4734. done
  4735. done
  4736. IFS=$as_save_IFS
  4737. fi
  4738. fi
  4739. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4740. if test -n "$ac_ct_DUMPBIN"; then
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4742. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4743. else
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4745. $as_echo "no" >&6; }
  4746. fi
  4747. test -n "$ac_ct_DUMPBIN" && break
  4748. done
  4749. if test "x$ac_ct_DUMPBIN" = x; then
  4750. DUMPBIN=":"
  4751. else
  4752. case $cross_compiling:$ac_tool_warned in
  4753. yes:)
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4755. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4756. ac_tool_warned=yes ;;
  4757. esac
  4758. DUMPBIN=$ac_ct_DUMPBIN
  4759. fi
  4760. fi
  4761. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4762. *COFF*)
  4763. DUMPBIN="$DUMPBIN -symbols -headers"
  4764. ;;
  4765. *)
  4766. DUMPBIN=:
  4767. ;;
  4768. esac
  4769. fi
  4770. if test : != "$DUMPBIN"; then
  4771. NM=$DUMPBIN
  4772. fi
  4773. fi
  4774. test -z "$NM" && NM=nm
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4776. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4777. if ${lt_cv_nm_interface+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. lt_cv_nm_interface="BSD nm"
  4781. echo "int some_variable = 0;" > conftest.$ac_ext
  4782. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4783. (eval "$ac_compile" 2>conftest.err)
  4784. cat conftest.err >&5
  4785. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4786. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4787. cat conftest.err >&5
  4788. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4789. cat conftest.out >&5
  4790. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4791. lt_cv_nm_interface="MS dumpbin"
  4792. fi
  4793. rm -f conftest*
  4794. fi
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4796. $as_echo "$lt_cv_nm_interface" >&6; }
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4798. $as_echo_n "checking whether ln -s works... " >&6; }
  4799. LN_S=$as_ln_s
  4800. if test "$LN_S" = "ln -s"; then
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4802. $as_echo "yes" >&6; }
  4803. else
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4805. $as_echo "no, using $LN_S" >&6; }
  4806. fi
  4807. # find the maximum length of command line arguments
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4809. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4810. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4811. $as_echo_n "(cached) " >&6
  4812. else
  4813. i=0
  4814. teststring=ABCD
  4815. case $build_os in
  4816. msdosdjgpp*)
  4817. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4818. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4819. # during glob expansion). Even if it were fixed, the result of this
  4820. # check would be larger than it should be.
  4821. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4822. ;;
  4823. gnu*)
  4824. # Under GNU Hurd, this test is not required because there is
  4825. # no limit to the length of command line arguments.
  4826. # Libtool will interpret -1 as no limit whatsoever
  4827. lt_cv_sys_max_cmd_len=-1;
  4828. ;;
  4829. cygwin* | mingw* | cegcc*)
  4830. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4831. # about 5 minutes as the teststring grows exponentially.
  4832. # Worse, since 9x/ME are not pre-emptively multitasking,
  4833. # you end up with a "frozen" computer, even though with patience
  4834. # the test eventually succeeds (with a max line length of 256k).
  4835. # Instead, let's just punt: use the minimum linelength reported by
  4836. # all of the supported platforms: 8192 (on NT/2K/XP).
  4837. lt_cv_sys_max_cmd_len=8192;
  4838. ;;
  4839. mint*)
  4840. # On MiNT this can take a long time and run out of memory.
  4841. lt_cv_sys_max_cmd_len=8192;
  4842. ;;
  4843. amigaos*)
  4844. # On AmigaOS with pdksh, this test takes hours, literally.
  4845. # So we just punt and use a minimum line length of 8192.
  4846. lt_cv_sys_max_cmd_len=8192;
  4847. ;;
  4848. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4849. # This has been around since 386BSD, at least. Likely further.
  4850. if test -x /sbin/sysctl; then
  4851. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4852. elif test -x /usr/sbin/sysctl; then
  4853. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4854. else
  4855. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4856. fi
  4857. # And add a safety zone
  4858. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4859. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4860. ;;
  4861. interix*)
  4862. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4863. lt_cv_sys_max_cmd_len=196608
  4864. ;;
  4865. os2*)
  4866. # The test takes a long time on OS/2.
  4867. lt_cv_sys_max_cmd_len=8192
  4868. ;;
  4869. osf*)
  4870. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4871. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4872. # nice to cause kernel panics so lets avoid the loop below.
  4873. # First set a reasonable default.
  4874. lt_cv_sys_max_cmd_len=16384
  4875. #
  4876. if test -x /sbin/sysconfig; then
  4877. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4878. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4879. esac
  4880. fi
  4881. ;;
  4882. sco3.2v5*)
  4883. lt_cv_sys_max_cmd_len=102400
  4884. ;;
  4885. sysv5* | sco5v6* | sysv4.2uw2*)
  4886. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4887. if test -n "$kargmax"; then
  4888. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4889. else
  4890. lt_cv_sys_max_cmd_len=32768
  4891. fi
  4892. ;;
  4893. *)
  4894. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4895. if test -n "$lt_cv_sys_max_cmd_len" && \
  4896. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4897. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4898. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4899. else
  4900. # Make teststring a little bigger before we do anything with it.
  4901. # a 1K string should be a reasonable start.
  4902. for i in 1 2 3 4 5 6 7 8; do
  4903. teststring=$teststring$teststring
  4904. done
  4905. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4906. # If test is not a shell built-in, we'll probably end up computing a
  4907. # maximum length that is only half of the actual maximum length, but
  4908. # we can't tell.
  4909. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4910. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4911. test 17 != "$i" # 1/2 MB should be enough
  4912. do
  4913. i=`expr $i + 1`
  4914. teststring=$teststring$teststring
  4915. done
  4916. # Only check the string length outside the loop.
  4917. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4918. teststring=
  4919. # Add a significant safety factor because C++ compilers can tack on
  4920. # massive amounts of additional arguments before passing them to the
  4921. # linker. It appears as though 1/2 is a usable value.
  4922. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4923. fi
  4924. ;;
  4925. esac
  4926. fi
  4927. if test -n "$lt_cv_sys_max_cmd_len"; then
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4929. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4930. else
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4932. $as_echo "none" >&6; }
  4933. fi
  4934. max_cmd_len=$lt_cv_sys_max_cmd_len
  4935. : ${CP="cp -f"}
  4936. : ${MV="mv -f"}
  4937. : ${RM="rm -f"}
  4938. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4939. lt_unset=unset
  4940. else
  4941. lt_unset=false
  4942. fi
  4943. # test EBCDIC or ASCII
  4944. case `echo X|tr X '\101'` in
  4945. A) # ASCII based system
  4946. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4947. lt_SP2NL='tr \040 \012'
  4948. lt_NL2SP='tr \015\012 \040\040'
  4949. ;;
  4950. *) # EBCDIC based system
  4951. lt_SP2NL='tr \100 \n'
  4952. lt_NL2SP='tr \r\n \100\100'
  4953. ;;
  4954. esac
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4956. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4957. if ${lt_cv_to_host_file_cmd+:} false; then :
  4958. $as_echo_n "(cached) " >&6
  4959. else
  4960. case $host in
  4961. *-*-mingw* )
  4962. case $build in
  4963. *-*-mingw* ) # actually msys
  4964. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4965. ;;
  4966. *-*-cygwin* )
  4967. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4968. ;;
  4969. * ) # otherwise, assume *nix
  4970. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4971. ;;
  4972. esac
  4973. ;;
  4974. *-*-cygwin* )
  4975. case $build in
  4976. *-*-mingw* ) # actually msys
  4977. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4978. ;;
  4979. *-*-cygwin* )
  4980. lt_cv_to_host_file_cmd=func_convert_file_noop
  4981. ;;
  4982. * ) # otherwise, assume *nix
  4983. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4984. ;;
  4985. esac
  4986. ;;
  4987. * ) # unhandled hosts (and "normal" native builds)
  4988. lt_cv_to_host_file_cmd=func_convert_file_noop
  4989. ;;
  4990. esac
  4991. fi
  4992. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4994. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4996. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4997. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. #assume ordinary cross tools, or native build.
  5001. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5002. case $host in
  5003. *-*-mingw* )
  5004. case $build in
  5005. *-*-mingw* ) # actually msys
  5006. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5007. ;;
  5008. esac
  5009. ;;
  5010. esac
  5011. fi
  5012. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5014. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5016. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5017. if ${lt_cv_ld_reload_flag+:} false; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. lt_cv_ld_reload_flag='-r'
  5021. fi
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5023. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5024. reload_flag=$lt_cv_ld_reload_flag
  5025. case $reload_flag in
  5026. "" | " "*) ;;
  5027. *) reload_flag=" $reload_flag" ;;
  5028. esac
  5029. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5030. case $host_os in
  5031. cygwin* | mingw* | pw32* | cegcc*)
  5032. if test yes != "$GCC"; then
  5033. reload_cmds=false
  5034. fi
  5035. ;;
  5036. darwin*)
  5037. if test yes = "$GCC"; then
  5038. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5039. else
  5040. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5041. fi
  5042. ;;
  5043. esac
  5044. if test -n "$ac_tool_prefix"; then
  5045. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5046. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5048. $as_echo_n "checking for $ac_word... " >&6; }
  5049. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5050. $as_echo_n "(cached) " >&6
  5051. else
  5052. if test -n "$OBJDUMP"; then
  5053. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5054. else
  5055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5056. for as_dir in $PATH
  5057. do
  5058. IFS=$as_save_IFS
  5059. test -z "$as_dir" && as_dir=.
  5060. for ac_exec_ext in '' $ac_executable_extensions; do
  5061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5062. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5064. break 2
  5065. fi
  5066. done
  5067. done
  5068. IFS=$as_save_IFS
  5069. fi
  5070. fi
  5071. OBJDUMP=$ac_cv_prog_OBJDUMP
  5072. if test -n "$OBJDUMP"; then
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5074. $as_echo "$OBJDUMP" >&6; }
  5075. else
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5077. $as_echo "no" >&6; }
  5078. fi
  5079. fi
  5080. if test -z "$ac_cv_prog_OBJDUMP"; then
  5081. ac_ct_OBJDUMP=$OBJDUMP
  5082. # Extract the first word of "objdump", so it can be a program name with args.
  5083. set dummy objdump; ac_word=$2
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5085. $as_echo_n "checking for $ac_word... " >&6; }
  5086. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5087. $as_echo_n "(cached) " >&6
  5088. else
  5089. if test -n "$ac_ct_OBJDUMP"; then
  5090. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5091. else
  5092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5093. for as_dir in $PATH
  5094. do
  5095. IFS=$as_save_IFS
  5096. test -z "$as_dir" && as_dir=.
  5097. for ac_exec_ext in '' $ac_executable_extensions; do
  5098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5099. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5101. break 2
  5102. fi
  5103. done
  5104. done
  5105. IFS=$as_save_IFS
  5106. fi
  5107. fi
  5108. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5109. if test -n "$ac_ct_OBJDUMP"; then
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5111. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5112. else
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5114. $as_echo "no" >&6; }
  5115. fi
  5116. if test "x$ac_ct_OBJDUMP" = x; then
  5117. OBJDUMP="false"
  5118. else
  5119. case $cross_compiling:$ac_tool_warned in
  5120. yes:)
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5123. ac_tool_warned=yes ;;
  5124. esac
  5125. OBJDUMP=$ac_ct_OBJDUMP
  5126. fi
  5127. else
  5128. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5129. fi
  5130. test -z "$OBJDUMP" && OBJDUMP=objdump
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5132. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5133. if ${lt_cv_deplibs_check_method+:} false; then :
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5137. lt_cv_file_magic_test_file=
  5138. lt_cv_deplibs_check_method='unknown'
  5139. # Need to set the preceding variable on all platforms that support
  5140. # interlibrary dependencies.
  5141. # 'none' -- dependencies not supported.
  5142. # 'unknown' -- same as none, but documents that we really don't know.
  5143. # 'pass_all' -- all dependencies passed with no checks.
  5144. # 'test_compile' -- check by making test program.
  5145. # 'file_magic [[regex]]' -- check by looking for files in library path
  5146. # that responds to the $file_magic_cmd with a given extended regex.
  5147. # If you have 'file' or equivalent on your system and you're not sure
  5148. # whether 'pass_all' will *always* work, you probably want this one.
  5149. case $host_os in
  5150. aix[4-9]*)
  5151. lt_cv_deplibs_check_method=pass_all
  5152. ;;
  5153. beos*)
  5154. lt_cv_deplibs_check_method=pass_all
  5155. ;;
  5156. bsdi[45]*)
  5157. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5158. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5159. lt_cv_file_magic_test_file=/shlib/libc.so
  5160. ;;
  5161. cygwin*)
  5162. # func_win32_libid is a shell function defined in ltmain.sh
  5163. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5164. lt_cv_file_magic_cmd='func_win32_libid'
  5165. ;;
  5166. mingw* | pw32*)
  5167. # Base MSYS/MinGW do not provide the 'file' command needed by
  5168. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5169. # unless we find 'file', for example because we are cross-compiling.
  5170. if ( file / ) >/dev/null 2>&1; then
  5171. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5172. lt_cv_file_magic_cmd='func_win32_libid'
  5173. else
  5174. # Keep this pattern in sync with the one in func_win32_libid.
  5175. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5176. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5177. fi
  5178. ;;
  5179. cegcc*)
  5180. # use the weaker test based on 'objdump'. See mingw*.
  5181. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5182. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5183. ;;
  5184. darwin* | rhapsody*)
  5185. lt_cv_deplibs_check_method=pass_all
  5186. ;;
  5187. freebsd* | dragonfly*)
  5188. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5189. case $host_cpu in
  5190. i*86 )
  5191. # Not sure whether the presence of OpenBSD here was a mistake.
  5192. # Let's accept both of them until this is cleared up.
  5193. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5194. lt_cv_file_magic_cmd=/usr/bin/file
  5195. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5196. ;;
  5197. esac
  5198. else
  5199. lt_cv_deplibs_check_method=pass_all
  5200. fi
  5201. ;;
  5202. haiku*)
  5203. lt_cv_deplibs_check_method=pass_all
  5204. ;;
  5205. hpux10.20* | hpux11*)
  5206. lt_cv_file_magic_cmd=/usr/bin/file
  5207. case $host_cpu in
  5208. ia64*)
  5209. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5210. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5211. ;;
  5212. hppa*64*)
  5213. 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]'
  5214. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5215. ;;
  5216. *)
  5217. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5218. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5219. ;;
  5220. esac
  5221. ;;
  5222. interix[3-9]*)
  5223. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5224. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5225. ;;
  5226. irix5* | irix6* | nonstopux*)
  5227. case $LD in
  5228. *-32|*"-32 ") libmagic=32-bit;;
  5229. *-n32|*"-n32 ") libmagic=N32;;
  5230. *-64|*"-64 ") libmagic=64-bit;;
  5231. *) libmagic=never-match;;
  5232. esac
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. # This must be glibc/ELF.
  5236. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5237. lt_cv_deplibs_check_method=pass_all
  5238. ;;
  5239. netbsd* | netbsdelf*-gnu)
  5240. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5241. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5242. else
  5243. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5244. fi
  5245. ;;
  5246. newos6*)
  5247. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5248. lt_cv_file_magic_cmd=/usr/bin/file
  5249. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5250. ;;
  5251. *nto* | *qnx*)
  5252. lt_cv_deplibs_check_method=pass_all
  5253. ;;
  5254. openbsd* | bitrig*)
  5255. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5256. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5257. else
  5258. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5259. fi
  5260. ;;
  5261. osf3* | osf4* | osf5*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. rdos*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. solaris*)
  5268. lt_cv_deplibs_check_method=pass_all
  5269. ;;
  5270. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5271. lt_cv_deplibs_check_method=pass_all
  5272. ;;
  5273. sysv4 | sysv4.3*)
  5274. case $host_vendor in
  5275. motorola)
  5276. 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]'
  5277. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5278. ;;
  5279. ncr)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. sequent)
  5283. lt_cv_file_magic_cmd='/bin/file'
  5284. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5285. ;;
  5286. sni)
  5287. lt_cv_file_magic_cmd='/bin/file'
  5288. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5289. lt_cv_file_magic_test_file=/lib/libc.so
  5290. ;;
  5291. siemens)
  5292. lt_cv_deplibs_check_method=pass_all
  5293. ;;
  5294. pc)
  5295. lt_cv_deplibs_check_method=pass_all
  5296. ;;
  5297. esac
  5298. ;;
  5299. tpf*)
  5300. lt_cv_deplibs_check_method=pass_all
  5301. ;;
  5302. os2*)
  5303. lt_cv_deplibs_check_method=pass_all
  5304. ;;
  5305. esac
  5306. fi
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5308. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5309. file_magic_glob=
  5310. want_nocaseglob=no
  5311. if test "$build" = "$host"; then
  5312. case $host_os in
  5313. mingw* | pw32*)
  5314. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5315. want_nocaseglob=yes
  5316. else
  5317. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5318. fi
  5319. ;;
  5320. esac
  5321. fi
  5322. file_magic_cmd=$lt_cv_file_magic_cmd
  5323. deplibs_check_method=$lt_cv_deplibs_check_method
  5324. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5325. if test -n "$ac_tool_prefix"; then
  5326. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5327. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5329. $as_echo_n "checking for $ac_word... " >&6; }
  5330. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. if test -n "$DLLTOOL"; then
  5334. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5335. else
  5336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5337. for as_dir in $PATH
  5338. do
  5339. IFS=$as_save_IFS
  5340. test -z "$as_dir" && as_dir=.
  5341. for ac_exec_ext in '' $ac_executable_extensions; do
  5342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5343. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5345. break 2
  5346. fi
  5347. done
  5348. done
  5349. IFS=$as_save_IFS
  5350. fi
  5351. fi
  5352. DLLTOOL=$ac_cv_prog_DLLTOOL
  5353. if test -n "$DLLTOOL"; then
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5355. $as_echo "$DLLTOOL" >&6; }
  5356. else
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5358. $as_echo "no" >&6; }
  5359. fi
  5360. fi
  5361. if test -z "$ac_cv_prog_DLLTOOL"; then
  5362. ac_ct_DLLTOOL=$DLLTOOL
  5363. # Extract the first word of "dlltool", so it can be a program name with args.
  5364. set dummy dlltool; ac_word=$2
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5366. $as_echo_n "checking for $ac_word... " >&6; }
  5367. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. if test -n "$ac_ct_DLLTOOL"; then
  5371. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5372. else
  5373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5374. for as_dir in $PATH
  5375. do
  5376. IFS=$as_save_IFS
  5377. test -z "$as_dir" && as_dir=.
  5378. for ac_exec_ext in '' $ac_executable_extensions; do
  5379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5380. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5382. break 2
  5383. fi
  5384. done
  5385. done
  5386. IFS=$as_save_IFS
  5387. fi
  5388. fi
  5389. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5390. if test -n "$ac_ct_DLLTOOL"; then
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5392. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5393. else
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5395. $as_echo "no" >&6; }
  5396. fi
  5397. if test "x$ac_ct_DLLTOOL" = x; then
  5398. DLLTOOL="false"
  5399. else
  5400. case $cross_compiling:$ac_tool_warned in
  5401. yes:)
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5403. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5404. ac_tool_warned=yes ;;
  5405. esac
  5406. DLLTOOL=$ac_ct_DLLTOOL
  5407. fi
  5408. else
  5409. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5410. fi
  5411. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5413. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5414. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5415. $as_echo_n "(cached) " >&6
  5416. else
  5417. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5418. case $host_os in
  5419. cygwin* | mingw* | pw32* | cegcc*)
  5420. # two different shell functions defined in ltmain.sh;
  5421. # decide which one to use based on capabilities of $DLLTOOL
  5422. case `$DLLTOOL --help 2>&1` in
  5423. *--identify-strict*)
  5424. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5425. ;;
  5426. *)
  5427. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5428. ;;
  5429. esac
  5430. ;;
  5431. *)
  5432. # fallback: assume linklib IS sharedlib
  5433. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5434. ;;
  5435. esac
  5436. fi
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5438. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5439. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5440. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5441. if test -n "$ac_tool_prefix"; then
  5442. for ac_prog in ar
  5443. do
  5444. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5445. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5447. $as_echo_n "checking for $ac_word... " >&6; }
  5448. if ${ac_cv_prog_AR+:} false; then :
  5449. $as_echo_n "(cached) " >&6
  5450. else
  5451. if test -n "$AR"; then
  5452. ac_cv_prog_AR="$AR" # Let the user override the test.
  5453. else
  5454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5455. for as_dir in $PATH
  5456. do
  5457. IFS=$as_save_IFS
  5458. test -z "$as_dir" && as_dir=.
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. AR=$ac_cv_prog_AR
  5471. if test -n "$AR"; then
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5473. $as_echo "$AR" >&6; }
  5474. else
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. $as_echo "no" >&6; }
  5477. fi
  5478. test -n "$AR" && break
  5479. done
  5480. fi
  5481. if test -z "$AR"; then
  5482. ac_ct_AR=$AR
  5483. for ac_prog in ar
  5484. do
  5485. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5486. set dummy $ac_prog; ac_word=$2
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5488. $as_echo_n "checking for $ac_word... " >&6; }
  5489. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. if test -n "$ac_ct_AR"; then
  5493. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5494. else
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5502. ac_cv_prog_ac_ct_AR="$ac_prog"
  5503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509. fi
  5510. fi
  5511. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5512. if test -n "$ac_ct_AR"; then
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5514. $as_echo "$ac_ct_AR" >&6; }
  5515. else
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5517. $as_echo "no" >&6; }
  5518. fi
  5519. test -n "$ac_ct_AR" && break
  5520. done
  5521. if test "x$ac_ct_AR" = x; then
  5522. AR="false"
  5523. else
  5524. case $cross_compiling:$ac_tool_warned in
  5525. yes:)
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5528. ac_tool_warned=yes ;;
  5529. esac
  5530. AR=$ac_ct_AR
  5531. fi
  5532. fi
  5533. : ${AR=ar}
  5534. : ${AR_FLAGS=cr}
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5536. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5537. if ${lt_cv_ar_at_file+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. lt_cv_ar_at_file=no
  5541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5542. /* end confdefs.h. */
  5543. int
  5544. main ()
  5545. {
  5546. ;
  5547. return 0;
  5548. }
  5549. _ACEOF
  5550. if ac_fn_c_try_compile "$LINENO"; then :
  5551. echo conftest.$ac_objext > conftest.lst
  5552. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5553. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5554. (eval $lt_ar_try) 2>&5
  5555. ac_status=$?
  5556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5557. test $ac_status = 0; }
  5558. if test 0 -eq "$ac_status"; then
  5559. # Ensure the archiver fails upon bogus file names.
  5560. rm -f conftest.$ac_objext libconftest.a
  5561. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5562. (eval $lt_ar_try) 2>&5
  5563. ac_status=$?
  5564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5565. test $ac_status = 0; }
  5566. if test 0 -ne "$ac_status"; then
  5567. lt_cv_ar_at_file=@
  5568. fi
  5569. fi
  5570. rm -f conftest.* libconftest.a
  5571. fi
  5572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5573. fi
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5575. $as_echo "$lt_cv_ar_at_file" >&6; }
  5576. if test no = "$lt_cv_ar_at_file"; then
  5577. archiver_list_spec=
  5578. else
  5579. archiver_list_spec=$lt_cv_ar_at_file
  5580. fi
  5581. if test -n "$ac_tool_prefix"; then
  5582. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5583. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5585. $as_echo_n "checking for $ac_word... " >&6; }
  5586. if ${ac_cv_prog_STRIP+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. if test -n "$STRIP"; then
  5590. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5591. else
  5592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5593. for as_dir in $PATH
  5594. do
  5595. IFS=$as_save_IFS
  5596. test -z "$as_dir" && as_dir=.
  5597. for ac_exec_ext in '' $ac_executable_extensions; do
  5598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5599. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5601. break 2
  5602. fi
  5603. done
  5604. done
  5605. IFS=$as_save_IFS
  5606. fi
  5607. fi
  5608. STRIP=$ac_cv_prog_STRIP
  5609. if test -n "$STRIP"; then
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5611. $as_echo "$STRIP" >&6; }
  5612. else
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5614. $as_echo "no" >&6; }
  5615. fi
  5616. fi
  5617. if test -z "$ac_cv_prog_STRIP"; then
  5618. ac_ct_STRIP=$STRIP
  5619. # Extract the first word of "strip", so it can be a program name with args.
  5620. set dummy strip; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$ac_ct_STRIP"; then
  5627. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_ac_ct_STRIP="strip"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5646. if test -n "$ac_ct_STRIP"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5648. $as_echo "$ac_ct_STRIP" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. if test "x$ac_ct_STRIP" = x; then
  5654. STRIP=":"
  5655. else
  5656. case $cross_compiling:$ac_tool_warned in
  5657. yes:)
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5660. ac_tool_warned=yes ;;
  5661. esac
  5662. STRIP=$ac_ct_STRIP
  5663. fi
  5664. else
  5665. STRIP="$ac_cv_prog_STRIP"
  5666. fi
  5667. test -z "$STRIP" && STRIP=:
  5668. if test -n "$ac_tool_prefix"; then
  5669. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5670. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5672. $as_echo_n "checking for $ac_word... " >&6; }
  5673. if ${ac_cv_prog_RANLIB+:} false; then :
  5674. $as_echo_n "(cached) " >&6
  5675. else
  5676. if test -n "$RANLIB"; then
  5677. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5678. else
  5679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5680. for as_dir in $PATH
  5681. do
  5682. IFS=$as_save_IFS
  5683. test -z "$as_dir" && as_dir=.
  5684. for ac_exec_ext in '' $ac_executable_extensions; do
  5685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5686. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5688. break 2
  5689. fi
  5690. done
  5691. done
  5692. IFS=$as_save_IFS
  5693. fi
  5694. fi
  5695. RANLIB=$ac_cv_prog_RANLIB
  5696. if test -n "$RANLIB"; then
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5698. $as_echo "$RANLIB" >&6; }
  5699. else
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5701. $as_echo "no" >&6; }
  5702. fi
  5703. fi
  5704. if test -z "$ac_cv_prog_RANLIB"; then
  5705. ac_ct_RANLIB=$RANLIB
  5706. # Extract the first word of "ranlib", so it can be a program name with args.
  5707. set dummy ranlib; ac_word=$2
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5709. $as_echo_n "checking for $ac_word... " >&6; }
  5710. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. if test -n "$ac_ct_RANLIB"; then
  5714. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5715. else
  5716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5717. for as_dir in $PATH
  5718. do
  5719. IFS=$as_save_IFS
  5720. test -z "$as_dir" && as_dir=.
  5721. for ac_exec_ext in '' $ac_executable_extensions; do
  5722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5723. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5725. break 2
  5726. fi
  5727. done
  5728. done
  5729. IFS=$as_save_IFS
  5730. fi
  5731. fi
  5732. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5733. if test -n "$ac_ct_RANLIB"; then
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5735. $as_echo "$ac_ct_RANLIB" >&6; }
  5736. else
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5738. $as_echo "no" >&6; }
  5739. fi
  5740. if test "x$ac_ct_RANLIB" = x; then
  5741. RANLIB=":"
  5742. else
  5743. case $cross_compiling:$ac_tool_warned in
  5744. yes:)
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5746. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5747. ac_tool_warned=yes ;;
  5748. esac
  5749. RANLIB=$ac_ct_RANLIB
  5750. fi
  5751. else
  5752. RANLIB="$ac_cv_prog_RANLIB"
  5753. fi
  5754. test -z "$RANLIB" && RANLIB=:
  5755. # Determine commands to create old-style static archives.
  5756. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5757. old_postinstall_cmds='chmod 644 $oldlib'
  5758. old_postuninstall_cmds=
  5759. if test -n "$RANLIB"; then
  5760. case $host_os in
  5761. bitrig* | openbsd*)
  5762. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5763. ;;
  5764. *)
  5765. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5766. ;;
  5767. esac
  5768. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5769. fi
  5770. case $host_os in
  5771. darwin*)
  5772. lock_old_archive_extraction=yes ;;
  5773. *)
  5774. lock_old_archive_extraction=no ;;
  5775. esac
  5776. for ac_prog in gawk mawk nawk awk
  5777. do
  5778. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5779. set dummy $ac_prog; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if ${ac_cv_prog_AWK+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$AWK"; then
  5786. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_AWK="$ac_prog"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. AWK=$ac_cv_prog_AWK
  5805. if test -n "$AWK"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5807. $as_echo "$AWK" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. test -n "$AWK" && break
  5813. done
  5814. # If no C compiler was specified, use CC.
  5815. LTCC=${LTCC-"$CC"}
  5816. # If no C compiler flags were specified, use CFLAGS.
  5817. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5818. # Allow CC to be a program name with arguments.
  5819. compiler=$CC
  5820. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5822. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5823. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. # These are sane defaults that work on at least a few old systems.
  5827. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5828. # Character class describing NM global symbol codes.
  5829. symcode='[BCDEGRST]'
  5830. # Regexp to match symbols that can be accessed directly from C.
  5831. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5832. # Define system-specific variables.
  5833. case $host_os in
  5834. aix*)
  5835. symcode='[BCDT]'
  5836. ;;
  5837. cygwin* | mingw* | pw32* | cegcc*)
  5838. symcode='[ABCDGISTW]'
  5839. ;;
  5840. hpux*)
  5841. if test ia64 = "$host_cpu"; then
  5842. symcode='[ABCDEGRST]'
  5843. fi
  5844. ;;
  5845. irix* | nonstopux*)
  5846. symcode='[BCDEGRST]'
  5847. ;;
  5848. osf*)
  5849. symcode='[BCDEGQRST]'
  5850. ;;
  5851. solaris*)
  5852. symcode='[BDRT]'
  5853. ;;
  5854. sco3.2v5*)
  5855. symcode='[DT]'
  5856. ;;
  5857. sysv4.2uw2*)
  5858. symcode='[DT]'
  5859. ;;
  5860. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5861. symcode='[ABDT]'
  5862. ;;
  5863. sysv4)
  5864. symcode='[DFNSTU]'
  5865. ;;
  5866. esac
  5867. # If we're using GNU nm, then use its standard symbol codes.
  5868. case `$NM -V 2>&1` in
  5869. *GNU* | *'with BFD'*)
  5870. symcode='[ABCDGIRSTW]' ;;
  5871. esac
  5872. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5873. # Gets list of data symbols to import.
  5874. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5875. # Adjust the below global symbol transforms to fixup imported variables.
  5876. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5877. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5878. lt_c_name_lib_hook="\
  5879. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5880. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5881. else
  5882. # Disable hooks by default.
  5883. lt_cv_sys_global_symbol_to_import=
  5884. lt_cdecl_hook=
  5885. lt_c_name_hook=
  5886. lt_c_name_lib_hook=
  5887. fi
  5888. # Transform an extracted symbol line into a proper C declaration.
  5889. # Some systems (esp. on ia64) link data and code symbols differently,
  5890. # so use this general approach.
  5891. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5892. $lt_cdecl_hook\
  5893. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5894. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5895. # Transform an extracted symbol line into symbol name and symbol address
  5896. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5897. $lt_c_name_hook\
  5898. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5899. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5900. # Transform an extracted symbol line into symbol name with lib prefix and
  5901. # symbol address.
  5902. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5903. $lt_c_name_lib_hook\
  5904. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5905. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5906. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5907. # Handle CRLF in mingw tool chain
  5908. opt_cr=
  5909. case $build_os in
  5910. mingw*)
  5911. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5912. ;;
  5913. esac
  5914. # Try without a prefix underscore, then with it.
  5915. for ac_symprfx in "" "_"; do
  5916. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5917. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5918. # Write the raw and C identifiers.
  5919. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5920. # Fake it for dumpbin and say T for any non-static function,
  5921. # D for any global variable and I for any imported variable.
  5922. # Also find C++ and __fastcall symbols from MSVC++,
  5923. # which start with @ or ?.
  5924. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5925. " {last_section=section; section=\$ 3};"\
  5926. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5927. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5928. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5929. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5930. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5931. " \$ 0!~/External *\|/{next};"\
  5932. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5933. " {if(hide[section]) next};"\
  5934. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5935. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5936. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5937. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5938. " ' prfx=^$ac_symprfx"
  5939. else
  5940. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5941. fi
  5942. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5943. # Check to see that the pipe works correctly.
  5944. pipe_works=no
  5945. rm -f conftest*
  5946. cat > conftest.$ac_ext <<_LT_EOF
  5947. #ifdef __cplusplus
  5948. extern "C" {
  5949. #endif
  5950. char nm_test_var;
  5951. void nm_test_func(void);
  5952. void nm_test_func(void){}
  5953. #ifdef __cplusplus
  5954. }
  5955. #endif
  5956. int main(){nm_test_var='a';nm_test_func();return(0);}
  5957. _LT_EOF
  5958. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5959. (eval $ac_compile) 2>&5
  5960. ac_status=$?
  5961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5962. test $ac_status = 0; }; then
  5963. # Now try to grab the symbols.
  5964. nlist=conftest.nm
  5965. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  5966. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  5967. # Try sorting and uniquifying the output.
  5968. if sort "$nlist" | uniq > "$nlist"T; then
  5969. mv -f "$nlist"T "$nlist"
  5970. else
  5971. rm -f "$nlist"T
  5972. fi
  5973. # Make sure that we snagged all the symbols we need.
  5974. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5975. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5976. cat <<_LT_EOF > conftest.$ac_ext
  5977. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5978. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5979. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5980. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5981. # define LT_DLSYM_CONST
  5982. #elif defined __osf__
  5983. /* This system does not cope well with relocations in const data. */
  5984. # define LT_DLSYM_CONST
  5985. #else
  5986. # define LT_DLSYM_CONST const
  5987. #endif
  5988. #ifdef __cplusplus
  5989. extern "C" {
  5990. #endif
  5991. _LT_EOF
  5992. # Now generate the symbol file.
  5993. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5994. cat <<_LT_EOF >> conftest.$ac_ext
  5995. /* The mapping between symbol names and symbols. */
  5996. LT_DLSYM_CONST struct {
  5997. const char *name;
  5998. void *address;
  5999. }
  6000. lt__PROGRAM__LTX_preloaded_symbols[] =
  6001. {
  6002. { "@PROGRAM@", (void *) 0 },
  6003. _LT_EOF
  6004. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6005. cat <<\_LT_EOF >> conftest.$ac_ext
  6006. {0, (void *) 0}
  6007. };
  6008. /* This works around a problem in FreeBSD linker */
  6009. #ifdef FREEBSD_WORKAROUND
  6010. static const void *lt_preloaded_setup() {
  6011. return lt__PROGRAM__LTX_preloaded_symbols;
  6012. }
  6013. #endif
  6014. #ifdef __cplusplus
  6015. }
  6016. #endif
  6017. _LT_EOF
  6018. # Now try linking the two files.
  6019. mv conftest.$ac_objext conftstm.$ac_objext
  6020. lt_globsym_save_LIBS=$LIBS
  6021. lt_globsym_save_CFLAGS=$CFLAGS
  6022. LIBS=conftstm.$ac_objext
  6023. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6024. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6025. (eval $ac_link) 2>&5
  6026. ac_status=$?
  6027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6028. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6029. pipe_works=yes
  6030. fi
  6031. LIBS=$lt_globsym_save_LIBS
  6032. CFLAGS=$lt_globsym_save_CFLAGS
  6033. else
  6034. echo "cannot find nm_test_func in $nlist" >&5
  6035. fi
  6036. else
  6037. echo "cannot find nm_test_var in $nlist" >&5
  6038. fi
  6039. else
  6040. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6041. fi
  6042. else
  6043. echo "$progname: failed program was:" >&5
  6044. cat conftest.$ac_ext >&5
  6045. fi
  6046. rm -rf conftest* conftst*
  6047. # Do not use the global_symbol_pipe unless it works.
  6048. if test yes = "$pipe_works"; then
  6049. break
  6050. else
  6051. lt_cv_sys_global_symbol_pipe=
  6052. fi
  6053. done
  6054. fi
  6055. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6056. lt_cv_sys_global_symbol_to_cdecl=
  6057. fi
  6058. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6060. $as_echo "failed" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6063. $as_echo "ok" >&6; }
  6064. fi
  6065. # Response file support.
  6066. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6067. nm_file_list_spec='@'
  6068. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6069. nm_file_list_spec='@'
  6070. fi
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6072. $as_echo_n "checking for sysroot... " >&6; }
  6073. # Check whether --with-sysroot was given.
  6074. if test "${with_sysroot+set}" = set; then :
  6075. withval=$with_sysroot;
  6076. else
  6077. with_sysroot=no
  6078. fi
  6079. lt_sysroot=
  6080. case $with_sysroot in #(
  6081. yes)
  6082. if test yes = "$GCC"; then
  6083. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6084. fi
  6085. ;; #(
  6086. /*)
  6087. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6088. ;; #(
  6089. no|'')
  6090. ;; #(
  6091. *)
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6093. $as_echo "$with_sysroot" >&6; }
  6094. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6095. ;;
  6096. esac
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6098. $as_echo "${lt_sysroot:-no}" >&6; }
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6100. $as_echo_n "checking for a working dd... " >&6; }
  6101. if ${ac_cv_path_lt_DD+:} false; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. printf 0123456789abcdef0123456789abcdef >conftest.i
  6105. cat conftest.i conftest.i >conftest2.i
  6106. : ${lt_DD:=$DD}
  6107. if test -z "$lt_DD"; then
  6108. ac_path_lt_DD_found=false
  6109. # Loop through the user's path and test for each of PROGNAME-LIST
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. test -z "$as_dir" && as_dir=.
  6115. for ac_prog in dd; do
  6116. for ac_exec_ext in '' $ac_executable_extensions; do
  6117. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6118. as_fn_executable_p "$ac_path_lt_DD" || continue
  6119. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6120. cmp -s conftest.i conftest.out \
  6121. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6122. fi
  6123. $ac_path_lt_DD_found && break 3
  6124. done
  6125. done
  6126. done
  6127. IFS=$as_save_IFS
  6128. if test -z "$ac_cv_path_lt_DD"; then
  6129. :
  6130. fi
  6131. else
  6132. ac_cv_path_lt_DD=$lt_DD
  6133. fi
  6134. rm -f conftest.i conftest2.i conftest.out
  6135. fi
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6137. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6139. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6140. if ${lt_cv_truncate_bin+:} false; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. printf 0123456789abcdef0123456789abcdef >conftest.i
  6144. cat conftest.i conftest.i >conftest2.i
  6145. lt_cv_truncate_bin=
  6146. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6147. cmp -s conftest.i conftest.out \
  6148. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6149. fi
  6150. rm -f conftest.i conftest2.i conftest.out
  6151. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6152. fi
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6154. $as_echo "$lt_cv_truncate_bin" >&6; }
  6155. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6156. func_cc_basename ()
  6157. {
  6158. for cc_temp in $*""; do
  6159. case $cc_temp in
  6160. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6161. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6162. \-*) ;;
  6163. *) break;;
  6164. esac
  6165. done
  6166. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6167. }
  6168. # Check whether --enable-libtool-lock was given.
  6169. if test "${enable_libtool_lock+set}" = set; then :
  6170. enableval=$enable_libtool_lock;
  6171. fi
  6172. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6173. # Some flags need to be propagated to the compiler or linker for good
  6174. # libtool support.
  6175. case $host in
  6176. ia64-*-hpux*)
  6177. # Find out what ABI is being produced by ac_compile, and set mode
  6178. # options accordingly.
  6179. echo 'int i;' > conftest.$ac_ext
  6180. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6181. (eval $ac_compile) 2>&5
  6182. ac_status=$?
  6183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6184. test $ac_status = 0; }; then
  6185. case `/usr/bin/file conftest.$ac_objext` in
  6186. *ELF-32*)
  6187. HPUX_IA64_MODE=32
  6188. ;;
  6189. *ELF-64*)
  6190. HPUX_IA64_MODE=64
  6191. ;;
  6192. esac
  6193. fi
  6194. rm -rf conftest*
  6195. ;;
  6196. *-*-irix6*)
  6197. # Find out what ABI is being produced by ac_compile, and set linker
  6198. # options accordingly.
  6199. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6201. (eval $ac_compile) 2>&5
  6202. ac_status=$?
  6203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6204. test $ac_status = 0; }; then
  6205. if test yes = "$lt_cv_prog_gnu_ld"; then
  6206. case `/usr/bin/file conftest.$ac_objext` in
  6207. *32-bit*)
  6208. LD="${LD-ld} -melf32bsmip"
  6209. ;;
  6210. *N32*)
  6211. LD="${LD-ld} -melf32bmipn32"
  6212. ;;
  6213. *64-bit*)
  6214. LD="${LD-ld} -melf64bmip"
  6215. ;;
  6216. esac
  6217. else
  6218. case `/usr/bin/file conftest.$ac_objext` in
  6219. *32-bit*)
  6220. LD="${LD-ld} -32"
  6221. ;;
  6222. *N32*)
  6223. LD="${LD-ld} -n32"
  6224. ;;
  6225. *64-bit*)
  6226. LD="${LD-ld} -64"
  6227. ;;
  6228. esac
  6229. fi
  6230. fi
  6231. rm -rf conftest*
  6232. ;;
  6233. mips64*-*linux*)
  6234. # Find out what ABI is being produced by ac_compile, and set linker
  6235. # options accordingly.
  6236. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6238. (eval $ac_compile) 2>&5
  6239. ac_status=$?
  6240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6241. test $ac_status = 0; }; then
  6242. emul=elf
  6243. case `/usr/bin/file conftest.$ac_objext` in
  6244. *32-bit*)
  6245. emul="${emul}32"
  6246. ;;
  6247. *64-bit*)
  6248. emul="${emul}64"
  6249. ;;
  6250. esac
  6251. case `/usr/bin/file conftest.$ac_objext` in
  6252. *MSB*)
  6253. emul="${emul}btsmip"
  6254. ;;
  6255. *LSB*)
  6256. emul="${emul}ltsmip"
  6257. ;;
  6258. esac
  6259. case `/usr/bin/file conftest.$ac_objext` in
  6260. *N32*)
  6261. emul="${emul}n32"
  6262. ;;
  6263. esac
  6264. LD="${LD-ld} -m $emul"
  6265. fi
  6266. rm -rf conftest*
  6267. ;;
  6268. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6269. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6270. # Find out what ABI is being produced by ac_compile, and set linker
  6271. # options accordingly. Note that the listed cases only cover the
  6272. # situations where additional linker options are needed (such as when
  6273. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6274. # vice versa); the common cases where no linker options are needed do
  6275. # not appear in the list.
  6276. echo 'int i;' > conftest.$ac_ext
  6277. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6278. (eval $ac_compile) 2>&5
  6279. ac_status=$?
  6280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6281. test $ac_status = 0; }; then
  6282. case `/usr/bin/file conftest.o` in
  6283. *32-bit*)
  6284. case $host in
  6285. x86_64-*kfreebsd*-gnu)
  6286. LD="${LD-ld} -m elf_i386_fbsd"
  6287. ;;
  6288. x86_64-*linux*)
  6289. case `/usr/bin/file conftest.o` in
  6290. *x86-64*)
  6291. LD="${LD-ld} -m elf32_x86_64"
  6292. ;;
  6293. *)
  6294. LD="${LD-ld} -m elf_i386"
  6295. ;;
  6296. esac
  6297. ;;
  6298. powerpc64le-*linux*)
  6299. LD="${LD-ld} -m elf32lppclinux"
  6300. ;;
  6301. powerpc64-*linux*)
  6302. LD="${LD-ld} -m elf32ppclinux"
  6303. ;;
  6304. s390x-*linux*)
  6305. LD="${LD-ld} -m elf_s390"
  6306. ;;
  6307. sparc64-*linux*)
  6308. LD="${LD-ld} -m elf32_sparc"
  6309. ;;
  6310. esac
  6311. ;;
  6312. *64-bit*)
  6313. case $host in
  6314. x86_64-*kfreebsd*-gnu)
  6315. LD="${LD-ld} -m elf_x86_64_fbsd"
  6316. ;;
  6317. x86_64-*linux*)
  6318. LD="${LD-ld} -m elf_x86_64"
  6319. ;;
  6320. powerpcle-*linux*)
  6321. LD="${LD-ld} -m elf64lppc"
  6322. ;;
  6323. powerpc-*linux*)
  6324. LD="${LD-ld} -m elf64ppc"
  6325. ;;
  6326. s390*-*linux*|s390*-*tpf*)
  6327. LD="${LD-ld} -m elf64_s390"
  6328. ;;
  6329. sparc*-*linux*)
  6330. LD="${LD-ld} -m elf64_sparc"
  6331. ;;
  6332. esac
  6333. ;;
  6334. esac
  6335. fi
  6336. rm -rf conftest*
  6337. ;;
  6338. *-*-sco3.2v5*)
  6339. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6340. SAVE_CFLAGS=$CFLAGS
  6341. CFLAGS="$CFLAGS -belf"
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6343. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6344. if ${lt_cv_cc_needs_belf+:} false; then :
  6345. $as_echo_n "(cached) " >&6
  6346. else
  6347. ac_ext=c
  6348. ac_cpp='$CPP $CPPFLAGS'
  6349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6353. /* end confdefs.h. */
  6354. int
  6355. main ()
  6356. {
  6357. ;
  6358. return 0;
  6359. }
  6360. _ACEOF
  6361. if ac_fn_c_try_link "$LINENO"; then :
  6362. lt_cv_cc_needs_belf=yes
  6363. else
  6364. lt_cv_cc_needs_belf=no
  6365. fi
  6366. rm -f core conftest.err conftest.$ac_objext \
  6367. conftest$ac_exeext conftest.$ac_ext
  6368. ac_ext=c
  6369. ac_cpp='$CPP $CPPFLAGS'
  6370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6373. fi
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6375. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6376. if test yes != "$lt_cv_cc_needs_belf"; then
  6377. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6378. CFLAGS=$SAVE_CFLAGS
  6379. fi
  6380. ;;
  6381. *-*solaris*)
  6382. # Find out what ABI is being produced by ac_compile, and set linker
  6383. # options accordingly.
  6384. echo 'int i;' > conftest.$ac_ext
  6385. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6386. (eval $ac_compile) 2>&5
  6387. ac_status=$?
  6388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6389. test $ac_status = 0; }; then
  6390. case `/usr/bin/file conftest.o` in
  6391. *64-bit*)
  6392. case $lt_cv_prog_gnu_ld in
  6393. yes*)
  6394. case $host in
  6395. i?86-*-solaris*|x86_64-*-solaris*)
  6396. LD="${LD-ld} -m elf_x86_64"
  6397. ;;
  6398. sparc*-*-solaris*)
  6399. LD="${LD-ld} -m elf64_sparc"
  6400. ;;
  6401. esac
  6402. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6403. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6404. LD=${LD-ld}_sol2
  6405. fi
  6406. ;;
  6407. *)
  6408. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6409. LD="${LD-ld} -64"
  6410. fi
  6411. ;;
  6412. esac
  6413. ;;
  6414. esac
  6415. fi
  6416. rm -rf conftest*
  6417. ;;
  6418. esac
  6419. need_locks=$enable_libtool_lock
  6420. if test -n "$ac_tool_prefix"; then
  6421. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6422. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. if test -n "$MANIFEST_TOOL"; then
  6429. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6430. else
  6431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6432. for as_dir in $PATH
  6433. do
  6434. IFS=$as_save_IFS
  6435. test -z "$as_dir" && as_dir=.
  6436. for ac_exec_ext in '' $ac_executable_extensions; do
  6437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6438. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6440. break 2
  6441. fi
  6442. done
  6443. done
  6444. IFS=$as_save_IFS
  6445. fi
  6446. fi
  6447. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6448. if test -n "$MANIFEST_TOOL"; then
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6450. $as_echo "$MANIFEST_TOOL" >&6; }
  6451. else
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6453. $as_echo "no" >&6; }
  6454. fi
  6455. fi
  6456. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6457. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6458. # Extract the first word of "mt", so it can be a program name with args.
  6459. set dummy mt; ac_word=$2
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6461. $as_echo_n "checking for $ac_word... " >&6; }
  6462. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6463. $as_echo_n "(cached) " >&6
  6464. else
  6465. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6466. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6467. else
  6468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6469. for as_dir in $PATH
  6470. do
  6471. IFS=$as_save_IFS
  6472. test -z "$as_dir" && as_dir=.
  6473. for ac_exec_ext in '' $ac_executable_extensions; do
  6474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6475. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6477. break 2
  6478. fi
  6479. done
  6480. done
  6481. IFS=$as_save_IFS
  6482. fi
  6483. fi
  6484. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6485. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6487. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6488. else
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6490. $as_echo "no" >&6; }
  6491. fi
  6492. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6493. MANIFEST_TOOL=":"
  6494. else
  6495. case $cross_compiling:$ac_tool_warned in
  6496. yes:)
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6499. ac_tool_warned=yes ;;
  6500. esac
  6501. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6502. fi
  6503. else
  6504. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6505. fi
  6506. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6508. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6509. if ${lt_cv_path_mainfest_tool+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. lt_cv_path_mainfest_tool=no
  6513. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6514. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6515. cat conftest.err >&5
  6516. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6517. lt_cv_path_mainfest_tool=yes
  6518. fi
  6519. rm -f conftest*
  6520. fi
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6522. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6523. if test yes != "$lt_cv_path_mainfest_tool"; then
  6524. MANIFEST_TOOL=:
  6525. fi
  6526. case $host_os in
  6527. rhapsody* | darwin*)
  6528. if test -n "$ac_tool_prefix"; then
  6529. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6530. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6532. $as_echo_n "checking for $ac_word... " >&6; }
  6533. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6534. $as_echo_n "(cached) " >&6
  6535. else
  6536. if test -n "$DSYMUTIL"; then
  6537. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6538. else
  6539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6540. for as_dir in $PATH
  6541. do
  6542. IFS=$as_save_IFS
  6543. test -z "$as_dir" && as_dir=.
  6544. for ac_exec_ext in '' $ac_executable_extensions; do
  6545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6546. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6548. break 2
  6549. fi
  6550. done
  6551. done
  6552. IFS=$as_save_IFS
  6553. fi
  6554. fi
  6555. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6556. if test -n "$DSYMUTIL"; then
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6558. $as_echo "$DSYMUTIL" >&6; }
  6559. else
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6561. $as_echo "no" >&6; }
  6562. fi
  6563. fi
  6564. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6565. ac_ct_DSYMUTIL=$DSYMUTIL
  6566. # Extract the first word of "dsymutil", so it can be a program name with args.
  6567. set dummy dsymutil; ac_word=$2
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6569. $as_echo_n "checking for $ac_word... " >&6; }
  6570. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6571. $as_echo_n "(cached) " >&6
  6572. else
  6573. if test -n "$ac_ct_DSYMUTIL"; then
  6574. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6575. else
  6576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6577. for as_dir in $PATH
  6578. do
  6579. IFS=$as_save_IFS
  6580. test -z "$as_dir" && as_dir=.
  6581. for ac_exec_ext in '' $ac_executable_extensions; do
  6582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6583. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6585. break 2
  6586. fi
  6587. done
  6588. done
  6589. IFS=$as_save_IFS
  6590. fi
  6591. fi
  6592. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6593. if test -n "$ac_ct_DSYMUTIL"; then
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6595. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6596. else
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6598. $as_echo "no" >&6; }
  6599. fi
  6600. if test "x$ac_ct_DSYMUTIL" = x; then
  6601. DSYMUTIL=":"
  6602. else
  6603. case $cross_compiling:$ac_tool_warned in
  6604. yes:)
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6607. ac_tool_warned=yes ;;
  6608. esac
  6609. DSYMUTIL=$ac_ct_DSYMUTIL
  6610. fi
  6611. else
  6612. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6613. fi
  6614. if test -n "$ac_tool_prefix"; then
  6615. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6616. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if ${ac_cv_prog_NMEDIT+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$NMEDIT"; then
  6623. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6632. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. NMEDIT=$ac_cv_prog_NMEDIT
  6642. if test -n "$NMEDIT"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6644. $as_echo "$NMEDIT" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. fi
  6650. if test -z "$ac_cv_prog_NMEDIT"; then
  6651. ac_ct_NMEDIT=$NMEDIT
  6652. # Extract the first word of "nmedit", so it can be a program name with args.
  6653. set dummy nmedit; ac_word=$2
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6655. $as_echo_n "checking for $ac_word... " >&6; }
  6656. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6657. $as_echo_n "(cached) " >&6
  6658. else
  6659. if test -n "$ac_ct_NMEDIT"; then
  6660. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6661. else
  6662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6663. for as_dir in $PATH
  6664. do
  6665. IFS=$as_save_IFS
  6666. test -z "$as_dir" && as_dir=.
  6667. for ac_exec_ext in '' $ac_executable_extensions; do
  6668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6669. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6671. break 2
  6672. fi
  6673. done
  6674. done
  6675. IFS=$as_save_IFS
  6676. fi
  6677. fi
  6678. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6679. if test -n "$ac_ct_NMEDIT"; then
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6681. $as_echo "$ac_ct_NMEDIT" >&6; }
  6682. else
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6684. $as_echo "no" >&6; }
  6685. fi
  6686. if test "x$ac_ct_NMEDIT" = x; then
  6687. NMEDIT=":"
  6688. else
  6689. case $cross_compiling:$ac_tool_warned in
  6690. yes:)
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6693. ac_tool_warned=yes ;;
  6694. esac
  6695. NMEDIT=$ac_ct_NMEDIT
  6696. fi
  6697. else
  6698. NMEDIT="$ac_cv_prog_NMEDIT"
  6699. fi
  6700. if test -n "$ac_tool_prefix"; then
  6701. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6702. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6704. $as_echo_n "checking for $ac_word... " >&6; }
  6705. if ${ac_cv_prog_LIPO+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. if test -n "$LIPO"; then
  6709. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. test -z "$as_dir" && as_dir=.
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6718. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi
  6726. fi
  6727. LIPO=$ac_cv_prog_LIPO
  6728. if test -n "$LIPO"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6730. $as_echo "$LIPO" >&6; }
  6731. else
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. $as_echo "no" >&6; }
  6734. fi
  6735. fi
  6736. if test -z "$ac_cv_prog_LIPO"; then
  6737. ac_ct_LIPO=$LIPO
  6738. # Extract the first word of "lipo", so it can be a program name with args.
  6739. set dummy lipo; ac_word=$2
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6741. $as_echo_n "checking for $ac_word... " >&6; }
  6742. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. if test -n "$ac_ct_LIPO"; then
  6746. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6747. else
  6748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6749. for as_dir in $PATH
  6750. do
  6751. IFS=$as_save_IFS
  6752. test -z "$as_dir" && as_dir=.
  6753. for ac_exec_ext in '' $ac_executable_extensions; do
  6754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6755. ac_cv_prog_ac_ct_LIPO="lipo"
  6756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6757. break 2
  6758. fi
  6759. done
  6760. done
  6761. IFS=$as_save_IFS
  6762. fi
  6763. fi
  6764. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6765. if test -n "$ac_ct_LIPO"; then
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6767. $as_echo "$ac_ct_LIPO" >&6; }
  6768. else
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. $as_echo "no" >&6; }
  6771. fi
  6772. if test "x$ac_ct_LIPO" = x; then
  6773. LIPO=":"
  6774. else
  6775. case $cross_compiling:$ac_tool_warned in
  6776. yes:)
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6779. ac_tool_warned=yes ;;
  6780. esac
  6781. LIPO=$ac_ct_LIPO
  6782. fi
  6783. else
  6784. LIPO="$ac_cv_prog_LIPO"
  6785. fi
  6786. if test -n "$ac_tool_prefix"; then
  6787. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6788. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. $as_echo_n "checking for $ac_word... " >&6; }
  6791. if ${ac_cv_prog_OTOOL+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -n "$OTOOL"; then
  6795. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6796. else
  6797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6798. for as_dir in $PATH
  6799. do
  6800. IFS=$as_save_IFS
  6801. test -z "$as_dir" && as_dir=.
  6802. for ac_exec_ext in '' $ac_executable_extensions; do
  6803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6804. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6806. break 2
  6807. fi
  6808. done
  6809. done
  6810. IFS=$as_save_IFS
  6811. fi
  6812. fi
  6813. OTOOL=$ac_cv_prog_OTOOL
  6814. if test -n "$OTOOL"; then
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6816. $as_echo "$OTOOL" >&6; }
  6817. else
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6819. $as_echo "no" >&6; }
  6820. fi
  6821. fi
  6822. if test -z "$ac_cv_prog_OTOOL"; then
  6823. ac_ct_OTOOL=$OTOOL
  6824. # Extract the first word of "otool", so it can be a program name with args.
  6825. set dummy otool; ac_word=$2
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6827. $as_echo_n "checking for $ac_word... " >&6; }
  6828. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. if test -n "$ac_ct_OTOOL"; then
  6832. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6833. else
  6834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6835. for as_dir in $PATH
  6836. do
  6837. IFS=$as_save_IFS
  6838. test -z "$as_dir" && as_dir=.
  6839. for ac_exec_ext in '' $ac_executable_extensions; do
  6840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6841. ac_cv_prog_ac_ct_OTOOL="otool"
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6843. break 2
  6844. fi
  6845. done
  6846. done
  6847. IFS=$as_save_IFS
  6848. fi
  6849. fi
  6850. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6851. if test -n "$ac_ct_OTOOL"; then
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6853. $as_echo "$ac_ct_OTOOL" >&6; }
  6854. else
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6856. $as_echo "no" >&6; }
  6857. fi
  6858. if test "x$ac_ct_OTOOL" = x; then
  6859. OTOOL=":"
  6860. else
  6861. case $cross_compiling:$ac_tool_warned in
  6862. yes:)
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6865. ac_tool_warned=yes ;;
  6866. esac
  6867. OTOOL=$ac_ct_OTOOL
  6868. fi
  6869. else
  6870. OTOOL="$ac_cv_prog_OTOOL"
  6871. fi
  6872. if test -n "$ac_tool_prefix"; then
  6873. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6874. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if ${ac_cv_prog_OTOOL64+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$OTOOL64"; then
  6881. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6890. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. OTOOL64=$ac_cv_prog_OTOOL64
  6900. if test -n "$OTOOL64"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6902. $as_echo "$OTOOL64" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. fi
  6908. if test -z "$ac_cv_prog_OTOOL64"; then
  6909. ac_ct_OTOOL64=$OTOOL64
  6910. # Extract the first word of "otool64", so it can be a program name with args.
  6911. set dummy otool64; ac_word=$2
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6913. $as_echo_n "checking for $ac_word... " >&6; }
  6914. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. if test -n "$ac_ct_OTOOL64"; then
  6918. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6919. else
  6920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6921. for as_dir in $PATH
  6922. do
  6923. IFS=$as_save_IFS
  6924. test -z "$as_dir" && as_dir=.
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6927. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6929. break 2
  6930. fi
  6931. done
  6932. done
  6933. IFS=$as_save_IFS
  6934. fi
  6935. fi
  6936. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6937. if test -n "$ac_ct_OTOOL64"; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6939. $as_echo "$ac_ct_OTOOL64" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. $as_echo "no" >&6; }
  6943. fi
  6944. if test "x$ac_ct_OTOOL64" = x; then
  6945. OTOOL64=":"
  6946. else
  6947. case $cross_compiling:$ac_tool_warned in
  6948. yes:)
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6951. ac_tool_warned=yes ;;
  6952. esac
  6953. OTOOL64=$ac_ct_OTOOL64
  6954. fi
  6955. else
  6956. OTOOL64="$ac_cv_prog_OTOOL64"
  6957. fi
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6959. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6960. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6961. $as_echo_n "(cached) " >&6
  6962. else
  6963. lt_cv_apple_cc_single_mod=no
  6964. if test -z "$LT_MULTI_MODULE"; then
  6965. # By default we will add the -single_module flag. You can override
  6966. # by either setting the environment variable LT_MULTI_MODULE
  6967. # non-empty at configure time, or by adding -multi_module to the
  6968. # link flags.
  6969. rm -rf libconftest.dylib*
  6970. echo "int foo(void){return 1;}" > conftest.c
  6971. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6972. -dynamiclib -Wl,-single_module conftest.c" >&5
  6973. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6974. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6975. _lt_result=$?
  6976. # If there is a non-empty error log, and "single_module"
  6977. # appears in it, assume the flag caused a linker warning
  6978. if test -s conftest.err && $GREP single_module conftest.err; then
  6979. cat conftest.err >&5
  6980. # Otherwise, if the output was created with a 0 exit code from
  6981. # the compiler, it worked.
  6982. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6983. lt_cv_apple_cc_single_mod=yes
  6984. else
  6985. cat conftest.err >&5
  6986. fi
  6987. rm -rf libconftest.dylib*
  6988. rm -f conftest.*
  6989. fi
  6990. fi
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6992. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6994. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6995. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6996. $as_echo_n "(cached) " >&6
  6997. else
  6998. lt_cv_ld_exported_symbols_list=no
  6999. save_LDFLAGS=$LDFLAGS
  7000. echo "_main" > conftest.sym
  7001. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7003. /* end confdefs.h. */
  7004. int
  7005. main ()
  7006. {
  7007. ;
  7008. return 0;
  7009. }
  7010. _ACEOF
  7011. if ac_fn_c_try_link "$LINENO"; then :
  7012. lt_cv_ld_exported_symbols_list=yes
  7013. else
  7014. lt_cv_ld_exported_symbols_list=no
  7015. fi
  7016. rm -f core conftest.err conftest.$ac_objext \
  7017. conftest$ac_exeext conftest.$ac_ext
  7018. LDFLAGS=$save_LDFLAGS
  7019. fi
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7021. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7023. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7024. if ${lt_cv_ld_force_load+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. lt_cv_ld_force_load=no
  7028. cat > conftest.c << _LT_EOF
  7029. int forced_loaded() { return 2;}
  7030. _LT_EOF
  7031. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7032. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7033. echo "$AR cr libconftest.a conftest.o" >&5
  7034. $AR cr libconftest.a conftest.o 2>&5
  7035. echo "$RANLIB libconftest.a" >&5
  7036. $RANLIB libconftest.a 2>&5
  7037. cat > conftest.c << _LT_EOF
  7038. int main() { return 0;}
  7039. _LT_EOF
  7040. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7041. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7042. _lt_result=$?
  7043. if test -s conftest.err && $GREP force_load conftest.err; then
  7044. cat conftest.err >&5
  7045. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7046. lt_cv_ld_force_load=yes
  7047. else
  7048. cat conftest.err >&5
  7049. fi
  7050. rm -f conftest.err libconftest.a conftest conftest.c
  7051. rm -rf conftest.dSYM
  7052. fi
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7054. $as_echo "$lt_cv_ld_force_load" >&6; }
  7055. case $host_os in
  7056. rhapsody* | darwin1.[012])
  7057. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7058. darwin1.*)
  7059. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7060. darwin*) # darwin 5.x on
  7061. # if running on 10.5 or later, the deployment target defaults
  7062. # to the OS version, if on x86, and 10.4, the deployment
  7063. # target defaults to 10.4. Don't you love it?
  7064. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7065. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7066. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7067. 10.[012][,.]*)
  7068. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7069. 10.*)
  7070. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7071. esac
  7072. ;;
  7073. esac
  7074. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7075. _lt_dar_single_mod='$single_module'
  7076. fi
  7077. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7078. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7079. else
  7080. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7081. fi
  7082. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7083. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7084. else
  7085. _lt_dsymutil=
  7086. fi
  7087. ;;
  7088. esac
  7089. # func_munge_path_list VARIABLE PATH
  7090. # -----------------------------------
  7091. # VARIABLE is name of variable containing _space_ separated list of
  7092. # directories to be munged by the contents of PATH, which is string
  7093. # having a format:
  7094. # "DIR[:DIR]:"
  7095. # string "DIR[ DIR]" will be prepended to VARIABLE
  7096. # ":DIR[:DIR]"
  7097. # string "DIR[ DIR]" will be appended to VARIABLE
  7098. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7099. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7100. # "DIRA[ DIRA]" will be appended to VARIABLE
  7101. # "DIR[:DIR]"
  7102. # VARIABLE will be replaced by "DIR[ DIR]"
  7103. func_munge_path_list ()
  7104. {
  7105. case x$2 in
  7106. x)
  7107. ;;
  7108. *:)
  7109. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7110. ;;
  7111. x:*)
  7112. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7113. ;;
  7114. *::*)
  7115. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7116. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7117. ;;
  7118. *)
  7119. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7120. ;;
  7121. esac
  7122. }
  7123. for ac_header in dlfcn.h
  7124. do :
  7125. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7126. "
  7127. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7128. cat >>confdefs.h <<_ACEOF
  7129. #define HAVE_DLFCN_H 1
  7130. _ACEOF
  7131. fi
  7132. done
  7133. # Set options
  7134. enable_dlopen=no
  7135. # Check whether --enable-shared was given.
  7136. if test "${enable_shared+set}" = set; then :
  7137. enableval=$enable_shared; p=${PACKAGE-default}
  7138. case $enableval in
  7139. yes) enable_shared=yes ;;
  7140. no) enable_shared=no ;;
  7141. *)
  7142. enable_shared=no
  7143. # Look at the argument we got. We use all the common list separators.
  7144. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7145. for pkg in $enableval; do
  7146. IFS=$lt_save_ifs
  7147. if test "X$pkg" = "X$p"; then
  7148. enable_shared=yes
  7149. fi
  7150. done
  7151. IFS=$lt_save_ifs
  7152. ;;
  7153. esac
  7154. else
  7155. enable_shared=yes
  7156. fi
  7157. # Check whether --enable-static was given.
  7158. if test "${enable_static+set}" = set; then :
  7159. enableval=$enable_static; p=${PACKAGE-default}
  7160. case $enableval in
  7161. yes) enable_static=yes ;;
  7162. no) enable_static=no ;;
  7163. *)
  7164. enable_static=no
  7165. # Look at the argument we got. We use all the common list separators.
  7166. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7167. for pkg in $enableval; do
  7168. IFS=$lt_save_ifs
  7169. if test "X$pkg" = "X$p"; then
  7170. enable_static=yes
  7171. fi
  7172. done
  7173. IFS=$lt_save_ifs
  7174. ;;
  7175. esac
  7176. else
  7177. enable_static=yes
  7178. fi
  7179. # Check whether --with-pic was given.
  7180. if test "${with_pic+set}" = set; then :
  7181. withval=$with_pic; lt_p=${PACKAGE-default}
  7182. case $withval in
  7183. yes|no) pic_mode=$withval ;;
  7184. *)
  7185. pic_mode=default
  7186. # Look at the argument we got. We use all the common list separators.
  7187. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7188. for lt_pkg in $withval; do
  7189. IFS=$lt_save_ifs
  7190. if test "X$lt_pkg" = "X$lt_p"; then
  7191. pic_mode=yes
  7192. fi
  7193. done
  7194. IFS=$lt_save_ifs
  7195. ;;
  7196. esac
  7197. else
  7198. pic_mode=default
  7199. fi
  7200. # Check whether --enable-fast-install was given.
  7201. if test "${enable_fast_install+set}" = set; then :
  7202. enableval=$enable_fast_install; p=${PACKAGE-default}
  7203. case $enableval in
  7204. yes) enable_fast_install=yes ;;
  7205. no) enable_fast_install=no ;;
  7206. *)
  7207. enable_fast_install=no
  7208. # Look at the argument we got. We use all the common list separators.
  7209. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7210. for pkg in $enableval; do
  7211. IFS=$lt_save_ifs
  7212. if test "X$pkg" = "X$p"; then
  7213. enable_fast_install=yes
  7214. fi
  7215. done
  7216. IFS=$lt_save_ifs
  7217. ;;
  7218. esac
  7219. else
  7220. enable_fast_install=yes
  7221. fi
  7222. shared_archive_member_spec=
  7223. case $host,$enable_shared in
  7224. power*-*-aix[5-9]*,yes)
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7226. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7227. # Check whether --with-aix-soname was given.
  7228. if test "${with_aix_soname+set}" = set; then :
  7229. withval=$with_aix_soname; case $withval in
  7230. aix|svr4|both)
  7231. ;;
  7232. *)
  7233. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7234. ;;
  7235. esac
  7236. lt_cv_with_aix_soname=$with_aix_soname
  7237. else
  7238. if ${lt_cv_with_aix_soname+:} false; then :
  7239. $as_echo_n "(cached) " >&6
  7240. else
  7241. lt_cv_with_aix_soname=aix
  7242. fi
  7243. with_aix_soname=$lt_cv_with_aix_soname
  7244. fi
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7246. $as_echo "$with_aix_soname" >&6; }
  7247. if test aix != "$with_aix_soname"; then
  7248. # For the AIX way of multilib, we name the shared archive member
  7249. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7250. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7251. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7252. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7253. if test 64 = "${OBJECT_MODE-32}"; then
  7254. shared_archive_member_spec=shr_64
  7255. else
  7256. shared_archive_member_spec=shr
  7257. fi
  7258. fi
  7259. ;;
  7260. *)
  7261. with_aix_soname=aix
  7262. ;;
  7263. esac
  7264. # This can be used to rebuild libtool when needed
  7265. LIBTOOL_DEPS=$ltmain
  7266. # Always use our own libtool.
  7267. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7268. test -z "$LN_S" && LN_S="ln -s"
  7269. if test -n "${ZSH_VERSION+set}"; then
  7270. setopt NO_GLOB_SUBST
  7271. fi
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7273. $as_echo_n "checking for objdir... " >&6; }
  7274. if ${lt_cv_objdir+:} false; then :
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. rm -f .libs 2>/dev/null
  7278. mkdir .libs 2>/dev/null
  7279. if test -d .libs; then
  7280. lt_cv_objdir=.libs
  7281. else
  7282. # MS-DOS does not allow filenames that begin with a dot.
  7283. lt_cv_objdir=_libs
  7284. fi
  7285. rmdir .libs 2>/dev/null
  7286. fi
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7288. $as_echo "$lt_cv_objdir" >&6; }
  7289. objdir=$lt_cv_objdir
  7290. cat >>confdefs.h <<_ACEOF
  7291. #define LT_OBJDIR "$lt_cv_objdir/"
  7292. _ACEOF
  7293. case $host_os in
  7294. aix3*)
  7295. # AIX sometimes has problems with the GCC collect2 program. For some
  7296. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7297. # vanish in a puff of smoke.
  7298. if test set != "${COLLECT_NAMES+set}"; then
  7299. COLLECT_NAMES=
  7300. export COLLECT_NAMES
  7301. fi
  7302. ;;
  7303. esac
  7304. # Global variables:
  7305. ofile=libtool
  7306. can_build_shared=yes
  7307. # All known linkers require a '.a' archive for static linking (except MSVC,
  7308. # which needs '.lib').
  7309. libext=a
  7310. with_gnu_ld=$lt_cv_prog_gnu_ld
  7311. old_CC=$CC
  7312. old_CFLAGS=$CFLAGS
  7313. # Set sane defaults for various variables
  7314. test -z "$CC" && CC=cc
  7315. test -z "$LTCC" && LTCC=$CC
  7316. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7317. test -z "$LD" && LD=ld
  7318. test -z "$ac_objext" && ac_objext=o
  7319. func_cc_basename $compiler
  7320. cc_basename=$func_cc_basename_result
  7321. # Only perform the check for file, if the check method requires it
  7322. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7323. case $deplibs_check_method in
  7324. file_magic*)
  7325. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7327. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7328. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. case $MAGIC_CMD in
  7332. [\\/*] | ?:[\\/]*)
  7333. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7334. ;;
  7335. *)
  7336. lt_save_MAGIC_CMD=$MAGIC_CMD
  7337. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7338. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7339. for ac_dir in $ac_dummy; do
  7340. IFS=$lt_save_ifs
  7341. test -z "$ac_dir" && ac_dir=.
  7342. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7343. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7344. if test -n "$file_magic_test_file"; then
  7345. case $deplibs_check_method in
  7346. "file_magic "*)
  7347. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7348. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7349. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7350. $EGREP "$file_magic_regex" > /dev/null; then
  7351. :
  7352. else
  7353. cat <<_LT_EOF 1>&2
  7354. *** Warning: the command libtool uses to detect shared libraries,
  7355. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7356. *** The result is that libtool may fail to recognize shared libraries
  7357. *** as such. This will affect the creation of libtool libraries that
  7358. *** depend on shared libraries, but programs linked with such libtool
  7359. *** libraries will work regardless of this problem. Nevertheless, you
  7360. *** may want to report the problem to your system manager and/or to
  7361. *** bug-libtool@gnu.org
  7362. _LT_EOF
  7363. fi ;;
  7364. esac
  7365. fi
  7366. break
  7367. fi
  7368. done
  7369. IFS=$lt_save_ifs
  7370. MAGIC_CMD=$lt_save_MAGIC_CMD
  7371. ;;
  7372. esac
  7373. fi
  7374. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7375. if test -n "$MAGIC_CMD"; then
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7377. $as_echo "$MAGIC_CMD" >&6; }
  7378. else
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7380. $as_echo "no" >&6; }
  7381. fi
  7382. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7383. if test -n "$ac_tool_prefix"; then
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7385. $as_echo_n "checking for file... " >&6; }
  7386. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7387. $as_echo_n "(cached) " >&6
  7388. else
  7389. case $MAGIC_CMD in
  7390. [\\/*] | ?:[\\/]*)
  7391. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7392. ;;
  7393. *)
  7394. lt_save_MAGIC_CMD=$MAGIC_CMD
  7395. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7396. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7397. for ac_dir in $ac_dummy; do
  7398. IFS=$lt_save_ifs
  7399. test -z "$ac_dir" && ac_dir=.
  7400. if test -f "$ac_dir/file"; then
  7401. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7402. if test -n "$file_magic_test_file"; then
  7403. case $deplibs_check_method in
  7404. "file_magic "*)
  7405. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7406. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7407. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7408. $EGREP "$file_magic_regex" > /dev/null; then
  7409. :
  7410. else
  7411. cat <<_LT_EOF 1>&2
  7412. *** Warning: the command libtool uses to detect shared libraries,
  7413. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7414. *** The result is that libtool may fail to recognize shared libraries
  7415. *** as such. This will affect the creation of libtool libraries that
  7416. *** depend on shared libraries, but programs linked with such libtool
  7417. *** libraries will work regardless of this problem. Nevertheless, you
  7418. *** may want to report the problem to your system manager and/or to
  7419. *** bug-libtool@gnu.org
  7420. _LT_EOF
  7421. fi ;;
  7422. esac
  7423. fi
  7424. break
  7425. fi
  7426. done
  7427. IFS=$lt_save_ifs
  7428. MAGIC_CMD=$lt_save_MAGIC_CMD
  7429. ;;
  7430. esac
  7431. fi
  7432. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7433. if test -n "$MAGIC_CMD"; then
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7435. $as_echo "$MAGIC_CMD" >&6; }
  7436. else
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7438. $as_echo "no" >&6; }
  7439. fi
  7440. else
  7441. MAGIC_CMD=:
  7442. fi
  7443. fi
  7444. fi
  7445. ;;
  7446. esac
  7447. # Use C for the default configuration in the libtool script
  7448. lt_save_CC=$CC
  7449. ac_ext=c
  7450. ac_cpp='$CPP $CPPFLAGS'
  7451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7454. # Source file extension for C test sources.
  7455. ac_ext=c
  7456. # Object file extension for compiled C test sources.
  7457. objext=o
  7458. objext=$objext
  7459. # Code to be used in simple compile tests
  7460. lt_simple_compile_test_code="int some_variable = 0;"
  7461. # Code to be used in simple link tests
  7462. lt_simple_link_test_code='int main(){return(0);}'
  7463. # If no C compiler was specified, use CC.
  7464. LTCC=${LTCC-"$CC"}
  7465. # If no C compiler flags were specified, use CFLAGS.
  7466. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7467. # Allow CC to be a program name with arguments.
  7468. compiler=$CC
  7469. # Save the default compiler, since it gets overwritten when the other
  7470. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7471. compiler_DEFAULT=$CC
  7472. # save warnings/boilerplate of simple test code
  7473. ac_outfile=conftest.$ac_objext
  7474. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7475. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7476. _lt_compiler_boilerplate=`cat conftest.err`
  7477. $RM conftest*
  7478. ac_outfile=conftest.$ac_objext
  7479. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7480. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7481. _lt_linker_boilerplate=`cat conftest.err`
  7482. $RM -r conftest*
  7483. ## CAVEAT EMPTOR:
  7484. ## There is no encapsulation within the following macros, do not change
  7485. ## the running order or otherwise move them around unless you know exactly
  7486. ## what you are doing...
  7487. if test -n "$compiler"; then
  7488. lt_prog_compiler_no_builtin_flag=
  7489. if test yes = "$GCC"; then
  7490. case $cc_basename in
  7491. nvcc*)
  7492. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7493. *)
  7494. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7495. esac
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7497. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7498. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7499. $as_echo_n "(cached) " >&6
  7500. else
  7501. lt_cv_prog_compiler_rtti_exceptions=no
  7502. ac_outfile=conftest.$ac_objext
  7503. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7504. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7505. # Insert the option either (1) after the last *FLAGS variable, or
  7506. # (2) before a word containing "conftest.", or (3) at the end.
  7507. # Note that $ac_compile itself does not contain backslashes and begins
  7508. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7509. # The option is referenced via a variable to avoid confusing sed.
  7510. lt_compile=`echo "$ac_compile" | $SED \
  7511. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7512. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7513. -e 's:$: $lt_compiler_flag:'`
  7514. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7515. (eval "$lt_compile" 2>conftest.err)
  7516. ac_status=$?
  7517. cat conftest.err >&5
  7518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7519. if (exit $ac_status) && test -s "$ac_outfile"; then
  7520. # The compiler can only warn and ignore the option if not recognized
  7521. # So say no if there are warnings other than the usual output.
  7522. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7523. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7524. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7525. lt_cv_prog_compiler_rtti_exceptions=yes
  7526. fi
  7527. fi
  7528. $RM conftest*
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7531. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7532. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7533. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7534. else
  7535. :
  7536. fi
  7537. fi
  7538. lt_prog_compiler_wl=
  7539. lt_prog_compiler_pic=
  7540. lt_prog_compiler_static=
  7541. if test yes = "$GCC"; then
  7542. lt_prog_compiler_wl='-Wl,'
  7543. lt_prog_compiler_static='-static'
  7544. case $host_os in
  7545. aix*)
  7546. # All AIX code is PIC.
  7547. if test ia64 = "$host_cpu"; then
  7548. # AIX 5 now supports IA64 processor
  7549. lt_prog_compiler_static='-Bstatic'
  7550. fi
  7551. lt_prog_compiler_pic='-fPIC'
  7552. ;;
  7553. amigaos*)
  7554. case $host_cpu in
  7555. powerpc)
  7556. # see comment about AmigaOS4 .so support
  7557. lt_prog_compiler_pic='-fPIC'
  7558. ;;
  7559. m68k)
  7560. # FIXME: we need at least 68020 code to build shared libraries, but
  7561. # adding the '-m68020' flag to GCC prevents building anything better,
  7562. # like '-m68040'.
  7563. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7564. ;;
  7565. esac
  7566. ;;
  7567. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7568. # PIC is the default for these OSes.
  7569. ;;
  7570. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7571. # This hack is so that the source file can tell whether it is being
  7572. # built for inclusion in a dll (and should export symbols for example).
  7573. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7574. # (--disable-auto-import) libraries
  7575. lt_prog_compiler_pic='-DDLL_EXPORT'
  7576. case $host_os in
  7577. os2*)
  7578. lt_prog_compiler_static='$wl-static'
  7579. ;;
  7580. esac
  7581. ;;
  7582. darwin* | rhapsody*)
  7583. # PIC is the default on this platform
  7584. # Common symbols not allowed in MH_DYLIB files
  7585. lt_prog_compiler_pic='-fno-common'
  7586. ;;
  7587. haiku*)
  7588. # PIC is the default for Haiku.
  7589. # The "-static" flag exists, but is broken.
  7590. lt_prog_compiler_static=
  7591. ;;
  7592. hpux*)
  7593. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7594. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7595. # sets the default TLS model and affects inlining.
  7596. case $host_cpu in
  7597. hppa*64*)
  7598. # +Z the default
  7599. ;;
  7600. *)
  7601. lt_prog_compiler_pic='-fPIC'
  7602. ;;
  7603. esac
  7604. ;;
  7605. interix[3-9]*)
  7606. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7607. # Instead, we relocate shared libraries at runtime.
  7608. ;;
  7609. msdosdjgpp*)
  7610. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7611. # on systems that don't support them.
  7612. lt_prog_compiler_can_build_shared=no
  7613. enable_shared=no
  7614. ;;
  7615. *nto* | *qnx*)
  7616. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7617. # it will coredump.
  7618. lt_prog_compiler_pic='-fPIC -shared'
  7619. ;;
  7620. sysv4*MP*)
  7621. if test -d /usr/nec; then
  7622. lt_prog_compiler_pic=-Kconform_pic
  7623. fi
  7624. ;;
  7625. *)
  7626. lt_prog_compiler_pic='-fPIC'
  7627. ;;
  7628. esac
  7629. case $cc_basename in
  7630. nvcc*) # Cuda Compiler Driver 2.2
  7631. lt_prog_compiler_wl='-Xlinker '
  7632. if test -n "$lt_prog_compiler_pic"; then
  7633. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7634. fi
  7635. ;;
  7636. esac
  7637. else
  7638. # PORTME Check for flag to pass linker flags through the system compiler.
  7639. case $host_os in
  7640. aix*)
  7641. lt_prog_compiler_wl='-Wl,'
  7642. if test ia64 = "$host_cpu"; then
  7643. # AIX 5 now supports IA64 processor
  7644. lt_prog_compiler_static='-Bstatic'
  7645. else
  7646. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7647. fi
  7648. ;;
  7649. darwin* | rhapsody*)
  7650. # PIC is the default on this platform
  7651. # Common symbols not allowed in MH_DYLIB files
  7652. lt_prog_compiler_pic='-fno-common'
  7653. case $cc_basename in
  7654. nagfor*)
  7655. # NAG Fortran compiler
  7656. lt_prog_compiler_wl='-Wl,-Wl,,'
  7657. lt_prog_compiler_pic='-PIC'
  7658. lt_prog_compiler_static='-Bstatic'
  7659. ;;
  7660. esac
  7661. ;;
  7662. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7663. # This hack is so that the source file can tell whether it is being
  7664. # built for inclusion in a dll (and should export symbols for example).
  7665. lt_prog_compiler_pic='-DDLL_EXPORT'
  7666. case $host_os in
  7667. os2*)
  7668. lt_prog_compiler_static='$wl-static'
  7669. ;;
  7670. esac
  7671. ;;
  7672. hpux9* | hpux10* | hpux11*)
  7673. lt_prog_compiler_wl='-Wl,'
  7674. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7675. # not for PA HP-UX.
  7676. case $host_cpu in
  7677. hppa*64*|ia64*)
  7678. # +Z the default
  7679. ;;
  7680. *)
  7681. lt_prog_compiler_pic='+Z'
  7682. ;;
  7683. esac
  7684. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7685. lt_prog_compiler_static='$wl-a ${wl}archive'
  7686. ;;
  7687. irix5* | irix6* | nonstopux*)
  7688. lt_prog_compiler_wl='-Wl,'
  7689. # PIC (with -KPIC) is the default.
  7690. lt_prog_compiler_static='-non_shared'
  7691. ;;
  7692. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7693. case $cc_basename in
  7694. # old Intel for x86_64, which still supported -KPIC.
  7695. ecc*)
  7696. lt_prog_compiler_wl='-Wl,'
  7697. lt_prog_compiler_pic='-KPIC'
  7698. lt_prog_compiler_static='-static'
  7699. ;;
  7700. # flang / f18. f95 an alias for gfortran or flang on Debian
  7701. flang* | f18* | f95*)
  7702. lt_prog_compiler_wl='-Wl,'
  7703. lt_prog_compiler_pic='-fPIC'
  7704. lt_prog_compiler_static='-static'
  7705. ;;
  7706. # icc used to be incompatible with GCC.
  7707. # ICC 10 doesn't accept -KPIC any more.
  7708. icc* | ifort*)
  7709. lt_prog_compiler_wl='-Wl,'
  7710. lt_prog_compiler_pic='-fPIC'
  7711. lt_prog_compiler_static='-static'
  7712. ;;
  7713. # Lahey Fortran 8.1.
  7714. lf95*)
  7715. lt_prog_compiler_wl='-Wl,'
  7716. lt_prog_compiler_pic='--shared'
  7717. lt_prog_compiler_static='--static'
  7718. ;;
  7719. nagfor*)
  7720. # NAG Fortran compiler
  7721. lt_prog_compiler_wl='-Wl,-Wl,,'
  7722. lt_prog_compiler_pic='-PIC'
  7723. lt_prog_compiler_static='-Bstatic'
  7724. ;;
  7725. tcc*)
  7726. # Fabrice Bellard et al's Tiny C Compiler
  7727. lt_prog_compiler_wl='-Wl,'
  7728. lt_prog_compiler_pic='-fPIC'
  7729. lt_prog_compiler_static='-static'
  7730. ;;
  7731. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7732. # Portland Group compilers (*not* the Pentium gcc compiler,
  7733. # which looks to be a dead project)
  7734. lt_prog_compiler_wl='-Wl,'
  7735. lt_prog_compiler_pic='-fpic'
  7736. lt_prog_compiler_static='-Bstatic'
  7737. ;;
  7738. ccc*)
  7739. lt_prog_compiler_wl='-Wl,'
  7740. # All Alpha code is PIC.
  7741. lt_prog_compiler_static='-non_shared'
  7742. ;;
  7743. xl* | bgxl* | bgf* | mpixl*)
  7744. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7745. lt_prog_compiler_wl='-Wl,'
  7746. lt_prog_compiler_pic='-qpic'
  7747. lt_prog_compiler_static='-qstaticlink'
  7748. ;;
  7749. *)
  7750. case `$CC -V 2>&1 | sed 5q` in
  7751. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7752. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7753. lt_prog_compiler_pic='-KPIC'
  7754. lt_prog_compiler_static='-Bstatic'
  7755. lt_prog_compiler_wl=''
  7756. ;;
  7757. *Sun\ F* | *Sun*Fortran*)
  7758. lt_prog_compiler_pic='-KPIC'
  7759. lt_prog_compiler_static='-Bstatic'
  7760. lt_prog_compiler_wl='-Qoption ld '
  7761. ;;
  7762. *Sun\ C*)
  7763. # Sun C 5.9
  7764. lt_prog_compiler_pic='-KPIC'
  7765. lt_prog_compiler_static='-Bstatic'
  7766. lt_prog_compiler_wl='-Wl,'
  7767. ;;
  7768. *Intel*\ [CF]*Compiler*)
  7769. lt_prog_compiler_wl='-Wl,'
  7770. lt_prog_compiler_pic='-fPIC'
  7771. lt_prog_compiler_static='-static'
  7772. ;;
  7773. *Portland\ Group*)
  7774. lt_prog_compiler_wl='-Wl,'
  7775. lt_prog_compiler_pic='-fpic'
  7776. lt_prog_compiler_static='-Bstatic'
  7777. ;;
  7778. esac
  7779. ;;
  7780. esac
  7781. ;;
  7782. newsos6)
  7783. lt_prog_compiler_pic='-KPIC'
  7784. lt_prog_compiler_static='-Bstatic'
  7785. ;;
  7786. *nto* | *qnx*)
  7787. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7788. # it will coredump.
  7789. lt_prog_compiler_pic='-fPIC -shared'
  7790. ;;
  7791. osf3* | osf4* | osf5*)
  7792. lt_prog_compiler_wl='-Wl,'
  7793. # All OSF/1 code is PIC.
  7794. lt_prog_compiler_static='-non_shared'
  7795. ;;
  7796. rdos*)
  7797. lt_prog_compiler_static='-non_shared'
  7798. ;;
  7799. solaris*)
  7800. lt_prog_compiler_pic='-KPIC'
  7801. lt_prog_compiler_static='-Bstatic'
  7802. case $cc_basename in
  7803. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7804. lt_prog_compiler_wl='-Qoption ld ';;
  7805. *)
  7806. lt_prog_compiler_wl='-Wl,';;
  7807. esac
  7808. ;;
  7809. sunos4*)
  7810. lt_prog_compiler_wl='-Qoption ld '
  7811. lt_prog_compiler_pic='-PIC'
  7812. lt_prog_compiler_static='-Bstatic'
  7813. ;;
  7814. sysv4 | sysv4.2uw2* | sysv4.3*)
  7815. lt_prog_compiler_wl='-Wl,'
  7816. lt_prog_compiler_pic='-KPIC'
  7817. lt_prog_compiler_static='-Bstatic'
  7818. ;;
  7819. sysv4*MP*)
  7820. if test -d /usr/nec; then
  7821. lt_prog_compiler_pic='-Kconform_pic'
  7822. lt_prog_compiler_static='-Bstatic'
  7823. fi
  7824. ;;
  7825. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7826. lt_prog_compiler_wl='-Wl,'
  7827. lt_prog_compiler_pic='-KPIC'
  7828. lt_prog_compiler_static='-Bstatic'
  7829. ;;
  7830. unicos*)
  7831. lt_prog_compiler_wl='-Wl,'
  7832. lt_prog_compiler_can_build_shared=no
  7833. ;;
  7834. uts4*)
  7835. lt_prog_compiler_pic='-pic'
  7836. lt_prog_compiler_static='-Bstatic'
  7837. ;;
  7838. *)
  7839. lt_prog_compiler_can_build_shared=no
  7840. ;;
  7841. esac
  7842. fi
  7843. case $host_os in
  7844. # For platforms that do not support PIC, -DPIC is meaningless:
  7845. *djgpp*)
  7846. lt_prog_compiler_pic=
  7847. ;;
  7848. *)
  7849. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7850. ;;
  7851. esac
  7852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7853. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7854. if ${lt_cv_prog_compiler_pic+:} false; then :
  7855. $as_echo_n "(cached) " >&6
  7856. else
  7857. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7858. fi
  7859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7860. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7861. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7862. #
  7863. # Check to make sure the PIC flag actually works.
  7864. #
  7865. if test -n "$lt_prog_compiler_pic"; then
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7867. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7868. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7869. $as_echo_n "(cached) " >&6
  7870. else
  7871. lt_cv_prog_compiler_pic_works=no
  7872. ac_outfile=conftest.$ac_objext
  7873. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7874. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7875. # Insert the option either (1) after the last *FLAGS variable, or
  7876. # (2) before a word containing "conftest.", or (3) at the end.
  7877. # Note that $ac_compile itself does not contain backslashes and begins
  7878. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7879. # The option is referenced via a variable to avoid confusing sed.
  7880. lt_compile=`echo "$ac_compile" | $SED \
  7881. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7882. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7883. -e 's:$: $lt_compiler_flag:'`
  7884. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7885. (eval "$lt_compile" 2>conftest.err)
  7886. ac_status=$?
  7887. cat conftest.err >&5
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. if (exit $ac_status) && test -s "$ac_outfile"; then
  7890. # The compiler can only warn and ignore the option if not recognized
  7891. # So say no if there are warnings other than the usual output.
  7892. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7893. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7894. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7895. lt_cv_prog_compiler_pic_works=yes
  7896. fi
  7897. fi
  7898. $RM conftest*
  7899. fi
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7901. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7902. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7903. case $lt_prog_compiler_pic in
  7904. "" | " "*) ;;
  7905. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7906. esac
  7907. else
  7908. lt_prog_compiler_pic=
  7909. lt_prog_compiler_can_build_shared=no
  7910. fi
  7911. fi
  7912. #
  7913. # Check to make sure the static flag actually works.
  7914. #
  7915. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7917. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7918. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. lt_cv_prog_compiler_static_works=no
  7922. save_LDFLAGS=$LDFLAGS
  7923. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7924. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7925. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7926. # The linker can only warn and ignore the option if not recognized
  7927. # So say no if there are warnings
  7928. if test -s conftest.err; then
  7929. # Append any errors to the config.log.
  7930. cat conftest.err 1>&5
  7931. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7932. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7933. if diff conftest.exp conftest.er2 >/dev/null; then
  7934. lt_cv_prog_compiler_static_works=yes
  7935. fi
  7936. else
  7937. lt_cv_prog_compiler_static_works=yes
  7938. fi
  7939. fi
  7940. $RM -r conftest*
  7941. LDFLAGS=$save_LDFLAGS
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7944. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7945. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7946. :
  7947. else
  7948. lt_prog_compiler_static=
  7949. fi
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7951. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7952. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7953. $as_echo_n "(cached) " >&6
  7954. else
  7955. lt_cv_prog_compiler_c_o=no
  7956. $RM -r conftest 2>/dev/null
  7957. mkdir conftest
  7958. cd conftest
  7959. mkdir out
  7960. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7961. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7962. # Insert the option either (1) after the last *FLAGS variable, or
  7963. # (2) before a word containing "conftest.", or (3) at the end.
  7964. # Note that $ac_compile itself does not contain backslashes and begins
  7965. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7966. lt_compile=`echo "$ac_compile" | $SED \
  7967. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7968. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7969. -e 's:$: $lt_compiler_flag:'`
  7970. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7971. (eval "$lt_compile" 2>out/conftest.err)
  7972. ac_status=$?
  7973. cat out/conftest.err >&5
  7974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7975. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7976. then
  7977. # The compiler can only warn and ignore the option if not recognized
  7978. # So say no if there are warnings
  7979. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7980. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7981. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7982. lt_cv_prog_compiler_c_o=yes
  7983. fi
  7984. fi
  7985. chmod u+w . 2>&5
  7986. $RM conftest*
  7987. # SGI C++ compiler will create directory out/ii_files/ for
  7988. # template instantiation
  7989. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7990. $RM out/* && rmdir out
  7991. cd ..
  7992. $RM -r conftest
  7993. $RM conftest*
  7994. fi
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7996. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7998. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7999. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8000. $as_echo_n "(cached) " >&6
  8001. else
  8002. lt_cv_prog_compiler_c_o=no
  8003. $RM -r conftest 2>/dev/null
  8004. mkdir conftest
  8005. cd conftest
  8006. mkdir out
  8007. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8008. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8009. # Insert the option either (1) after the last *FLAGS variable, or
  8010. # (2) before a word containing "conftest.", or (3) at the end.
  8011. # Note that $ac_compile itself does not contain backslashes and begins
  8012. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8013. lt_compile=`echo "$ac_compile" | $SED \
  8014. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8015. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8016. -e 's:$: $lt_compiler_flag:'`
  8017. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8018. (eval "$lt_compile" 2>out/conftest.err)
  8019. ac_status=$?
  8020. cat out/conftest.err >&5
  8021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8022. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8023. then
  8024. # The compiler can only warn and ignore the option if not recognized
  8025. # So say no if there are warnings
  8026. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8027. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8028. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8029. lt_cv_prog_compiler_c_o=yes
  8030. fi
  8031. fi
  8032. chmod u+w . 2>&5
  8033. $RM conftest*
  8034. # SGI C++ compiler will create directory out/ii_files/ for
  8035. # template instantiation
  8036. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8037. $RM out/* && rmdir out
  8038. cd ..
  8039. $RM -r conftest
  8040. $RM conftest*
  8041. fi
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8043. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8044. hard_links=nottested
  8045. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8046. # do not overwrite the value of need_locks provided by the user
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8048. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8049. hard_links=yes
  8050. $RM conftest*
  8051. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8052. touch conftest.a
  8053. ln conftest.a conftest.b 2>&5 || hard_links=no
  8054. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8056. $as_echo "$hard_links" >&6; }
  8057. if test no = "$hard_links"; then
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8059. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8060. need_locks=warn
  8061. fi
  8062. else
  8063. need_locks=no
  8064. fi
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8066. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8067. runpath_var=
  8068. allow_undefined_flag=
  8069. always_export_symbols=no
  8070. archive_cmds=
  8071. archive_expsym_cmds=
  8072. compiler_needs_object=no
  8073. enable_shared_with_static_runtimes=no
  8074. export_dynamic_flag_spec=
  8075. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8076. hardcode_automatic=no
  8077. hardcode_direct=no
  8078. hardcode_direct_absolute=no
  8079. hardcode_libdir_flag_spec=
  8080. hardcode_libdir_separator=
  8081. hardcode_minus_L=no
  8082. hardcode_shlibpath_var=unsupported
  8083. inherit_rpath=no
  8084. link_all_deplibs=unknown
  8085. module_cmds=
  8086. module_expsym_cmds=
  8087. old_archive_from_new_cmds=
  8088. old_archive_from_expsyms_cmds=
  8089. thread_safe_flag_spec=
  8090. whole_archive_flag_spec=
  8091. # include_expsyms should be a list of space-separated symbols to be *always*
  8092. # included in the symbol list
  8093. include_expsyms=
  8094. # exclude_expsyms can be an extended regexp of symbols to exclude
  8095. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8096. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8097. # as well as any symbol that contains 'd'.
  8098. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8099. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8100. # platforms (ab)use it in PIC code, but their linkers get confused if
  8101. # the symbol is explicitly referenced. Since portable code cannot
  8102. # rely on this symbol name, it's probably fine to never include it in
  8103. # preloaded symbol tables.
  8104. # Exclude shared library initialization/finalization symbols.
  8105. extract_expsyms_cmds=
  8106. case $host_os in
  8107. cygwin* | mingw* | pw32* | cegcc*)
  8108. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8109. # When not using gcc, we currently assume that we are using
  8110. # Microsoft Visual C++.
  8111. if test yes != "$GCC"; then
  8112. with_gnu_ld=no
  8113. fi
  8114. ;;
  8115. interix*)
  8116. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8117. with_gnu_ld=yes
  8118. ;;
  8119. openbsd* | bitrig*)
  8120. with_gnu_ld=no
  8121. ;;
  8122. linux* | k*bsd*-gnu | gnu*)
  8123. link_all_deplibs=no
  8124. ;;
  8125. esac
  8126. ld_shlibs=yes
  8127. # On some targets, GNU ld is compatible enough with the native linker
  8128. # that we're better off using the native interface for both.
  8129. lt_use_gnu_ld_interface=no
  8130. if test yes = "$with_gnu_ld"; then
  8131. case $host_os in
  8132. aix*)
  8133. # The AIX port of GNU ld has always aspired to compatibility
  8134. # with the native linker. However, as the warning in the GNU ld
  8135. # block says, versions before 2.19.5* couldn't really create working
  8136. # shared libraries, regardless of the interface used.
  8137. case `$LD -v 2>&1` in
  8138. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8139. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8140. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8141. *)
  8142. lt_use_gnu_ld_interface=yes
  8143. ;;
  8144. esac
  8145. ;;
  8146. *)
  8147. lt_use_gnu_ld_interface=yes
  8148. ;;
  8149. esac
  8150. fi
  8151. if test yes = "$lt_use_gnu_ld_interface"; then
  8152. # If archive_cmds runs LD, not CC, wlarc should be empty
  8153. wlarc='$wl'
  8154. # Set some defaults for GNU ld with shared library support. These
  8155. # are reset later if shared libraries are not supported. Putting them
  8156. # here allows them to be overridden if necessary.
  8157. runpath_var=LD_RUN_PATH
  8158. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8159. export_dynamic_flag_spec='$wl--export-dynamic'
  8160. # ancient GNU ld didn't support --whole-archive et. al.
  8161. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8162. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8163. else
  8164. whole_archive_flag_spec=
  8165. fi
  8166. supports_anon_versioning=no
  8167. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8168. *GNU\ gold*) supports_anon_versioning=yes ;;
  8169. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8170. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8171. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8172. *\ 2.11.*) ;; # other 2.11 versions
  8173. *) supports_anon_versioning=yes ;;
  8174. esac
  8175. # See if GNU ld supports shared libraries.
  8176. case $host_os in
  8177. aix[3-9]*)
  8178. # On AIX/PPC, the GNU linker is very broken
  8179. if test ia64 != "$host_cpu"; then
  8180. ld_shlibs=no
  8181. cat <<_LT_EOF 1>&2
  8182. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8183. *** to be unable to reliably create shared libraries on AIX.
  8184. *** Therefore, libtool is disabling shared libraries support. If you
  8185. *** really care for shared libraries, you may want to install binutils
  8186. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8187. *** You will then need to restart the configuration process.
  8188. _LT_EOF
  8189. fi
  8190. ;;
  8191. amigaos*)
  8192. case $host_cpu in
  8193. powerpc)
  8194. # see comment about AmigaOS4 .so support
  8195. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8196. archive_expsym_cmds=''
  8197. ;;
  8198. m68k)
  8199. 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)'
  8200. hardcode_libdir_flag_spec='-L$libdir'
  8201. hardcode_minus_L=yes
  8202. ;;
  8203. esac
  8204. ;;
  8205. beos*)
  8206. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8207. allow_undefined_flag=unsupported
  8208. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8209. # support --undefined. This deserves some investigation. FIXME
  8210. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8211. else
  8212. ld_shlibs=no
  8213. fi
  8214. ;;
  8215. cygwin* | mingw* | pw32* | cegcc*)
  8216. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8217. # as there is no search path for DLLs.
  8218. hardcode_libdir_flag_spec='-L$libdir'
  8219. export_dynamic_flag_spec='$wl--export-all-symbols'
  8220. allow_undefined_flag=unsupported
  8221. always_export_symbols=no
  8222. enable_shared_with_static_runtimes=yes
  8223. 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'
  8224. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8225. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8226. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8227. # If the export-symbols file already is a .def file, use it as
  8228. # is; otherwise, prepend EXPORTS...
  8229. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8230. cp $export_symbols $output_objdir/$soname.def;
  8231. else
  8232. echo EXPORTS > $output_objdir/$soname.def;
  8233. cat $export_symbols >> $output_objdir/$soname.def;
  8234. fi~
  8235. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8236. else
  8237. ld_shlibs=no
  8238. fi
  8239. ;;
  8240. haiku*)
  8241. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8242. link_all_deplibs=yes
  8243. ;;
  8244. os2*)
  8245. hardcode_libdir_flag_spec='-L$libdir'
  8246. hardcode_minus_L=yes
  8247. allow_undefined_flag=unsupported
  8248. shrext_cmds=.dll
  8249. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8250. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8251. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8252. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8253. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8254. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8255. emximp -o $lib $output_objdir/$libname.def'
  8256. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8257. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8258. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8259. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8260. prefix_cmds="$SED"~
  8261. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8262. prefix_cmds="$prefix_cmds -e 1d";
  8263. fi~
  8264. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8265. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8266. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8267. emximp -o $lib $output_objdir/$libname.def'
  8268. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8269. enable_shared_with_static_runtimes=yes
  8270. ;;
  8271. interix[3-9]*)
  8272. hardcode_direct=no
  8273. hardcode_shlibpath_var=no
  8274. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8275. export_dynamic_flag_spec='$wl-E'
  8276. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8277. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8278. # default) and relocated if they conflict, which is a slow very memory
  8279. # consuming and fragmenting process. To avoid this, we pick a random,
  8280. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8281. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8282. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8283. 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'
  8284. ;;
  8285. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8286. tmp_diet=no
  8287. if test linux-dietlibc = "$host_os"; then
  8288. case $cc_basename in
  8289. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8290. esac
  8291. fi
  8292. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8293. && test no = "$tmp_diet"
  8294. then
  8295. tmp_addflag=' $pic_flag'
  8296. tmp_sharedflag='-shared'
  8297. case $cc_basename,$host_cpu in
  8298. pgcc*) # Portland Group C compiler
  8299. 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'
  8300. tmp_addflag=' $pic_flag'
  8301. ;;
  8302. pgf77* | pgf90* | pgf95* | pgfortran*)
  8303. # Portland Group f77 and f90 compilers
  8304. 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'
  8305. tmp_addflag=' $pic_flag -Mnomain' ;;
  8306. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8307. tmp_addflag=' -i_dynamic' ;;
  8308. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8309. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8310. ifc* | ifort*) # Intel Fortran compiler
  8311. tmp_addflag=' -nofor_main' ;;
  8312. lf95*) # Lahey Fortran 8.1
  8313. whole_archive_flag_spec=
  8314. tmp_sharedflag='--shared' ;;
  8315. nagfor*) # NAGFOR 5.3
  8316. tmp_sharedflag='-Wl,-shared' ;;
  8317. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8318. tmp_sharedflag='-qmkshrobj'
  8319. tmp_addflag= ;;
  8320. nvcc*) # Cuda Compiler Driver 2.2
  8321. 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'
  8322. compiler_needs_object=yes
  8323. ;;
  8324. esac
  8325. case `$CC -V 2>&1 | sed 5q` in
  8326. *Sun\ C*) # Sun C 5.9
  8327. 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'
  8328. compiler_needs_object=yes
  8329. tmp_sharedflag='-G' ;;
  8330. *Sun\ F*) # Sun Fortran 8.3
  8331. tmp_sharedflag='-G' ;;
  8332. esac
  8333. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8334. if test yes = "$supports_anon_versioning"; then
  8335. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8336. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8337. echo "local: *; };" >> $output_objdir/$libname.ver~
  8338. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8339. fi
  8340. case $cc_basename in
  8341. tcc*)
  8342. export_dynamic_flag_spec='-rdynamic'
  8343. ;;
  8344. xlf* | bgf* | bgxlf* | mpixlf*)
  8345. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8346. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8347. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8348. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8349. if test yes = "$supports_anon_versioning"; then
  8350. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8351. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8352. echo "local: *; };" >> $output_objdir/$libname.ver~
  8353. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8354. fi
  8355. ;;
  8356. esac
  8357. else
  8358. ld_shlibs=no
  8359. fi
  8360. ;;
  8361. netbsd* | netbsdelf*-gnu)
  8362. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8363. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8364. wlarc=
  8365. else
  8366. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8367. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8368. fi
  8369. ;;
  8370. solaris*)
  8371. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8372. ld_shlibs=no
  8373. cat <<_LT_EOF 1>&2
  8374. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8375. *** create shared libraries on Solaris systems. Therefore, libtool
  8376. *** is disabling shared libraries support. We urge you to upgrade GNU
  8377. *** binutils to release 2.9.1 or newer. Another option is to modify
  8378. *** your PATH or compiler configuration so that the native linker is
  8379. *** used, and then restart.
  8380. _LT_EOF
  8381. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8382. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8383. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8384. else
  8385. ld_shlibs=no
  8386. fi
  8387. ;;
  8388. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8389. case `$LD -v 2>&1` in
  8390. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8391. ld_shlibs=no
  8392. cat <<_LT_EOF 1>&2
  8393. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8394. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8395. *** is disabling shared libraries support. We urge you to upgrade GNU
  8396. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8397. *** your PATH or compiler configuration so that the native linker is
  8398. *** used, and then restart.
  8399. _LT_EOF
  8400. ;;
  8401. *)
  8402. # For security reasons, it is highly recommended that you always
  8403. # use absolute paths for naming shared libraries, and exclude the
  8404. # DT_RUNPATH tag from executables and libraries. But doing so
  8405. # requires that you compile everything twice, which is a pain.
  8406. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8407. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8408. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8409. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8410. else
  8411. ld_shlibs=no
  8412. fi
  8413. ;;
  8414. esac
  8415. ;;
  8416. sunos4*)
  8417. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8418. wlarc=
  8419. hardcode_direct=yes
  8420. hardcode_shlibpath_var=no
  8421. ;;
  8422. *)
  8423. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8424. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8425. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8426. else
  8427. ld_shlibs=no
  8428. fi
  8429. ;;
  8430. esac
  8431. if test no = "$ld_shlibs"; then
  8432. runpath_var=
  8433. hardcode_libdir_flag_spec=
  8434. export_dynamic_flag_spec=
  8435. whole_archive_flag_spec=
  8436. fi
  8437. else
  8438. # PORTME fill in a description of your system's linker (not GNU ld)
  8439. case $host_os in
  8440. aix3*)
  8441. allow_undefined_flag=unsupported
  8442. always_export_symbols=yes
  8443. 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'
  8444. # Note: this linker hardcodes the directories in LIBPATH if there
  8445. # are no directories specified by -L.
  8446. hardcode_minus_L=yes
  8447. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8448. # Neither direct hardcoding nor static linking is supported with a
  8449. # broken collect2.
  8450. hardcode_direct=unsupported
  8451. fi
  8452. ;;
  8453. aix[4-9]*)
  8454. if test ia64 = "$host_cpu"; then
  8455. # On IA64, the linker does run time linking by default, so we don't
  8456. # have to do anything special.
  8457. aix_use_runtimelinking=no
  8458. exp_sym_flag='-Bexport'
  8459. no_entry_flag=
  8460. else
  8461. # If we're using GNU nm, then we don't want the "-C" option.
  8462. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8463. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8464. # weak defined symbols like other global defined symbols, whereas
  8465. # GNU nm marks them as "W".
  8466. # While the 'weak' keyword is ignored in the Export File, we need
  8467. # it in the Import File for the 'aix-soname' feature, so we have
  8468. # to replace the "-B" option with "-P" for AIX nm.
  8469. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8470. 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'
  8471. else
  8472. 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'
  8473. fi
  8474. aix_use_runtimelinking=no
  8475. # Test if we are trying to use run time linking or normal
  8476. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8477. # have runtime linking enabled, and use it for executables.
  8478. # For shared libraries, we enable/disable runtime linking
  8479. # depending on the kind of the shared library created -
  8480. # when "with_aix_soname,aix_use_runtimelinking" is:
  8481. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8482. # "aix,yes" lib.so shared, rtl:yes, for executables
  8483. # lib.a static archive
  8484. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8485. # lib.a(lib.so.V) shared, rtl:no, for executables
  8486. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8487. # lib.a(lib.so.V) shared, rtl:no
  8488. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8489. # lib.a static archive
  8490. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8491. for ld_flag in $LDFLAGS; do
  8492. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8493. aix_use_runtimelinking=yes
  8494. break
  8495. fi
  8496. done
  8497. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8498. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8499. # so we don't have lib.a shared libs to link our executables.
  8500. # We have to force runtime linking in this case.
  8501. aix_use_runtimelinking=yes
  8502. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8503. fi
  8504. ;;
  8505. esac
  8506. exp_sym_flag='-bexport'
  8507. no_entry_flag='-bnoentry'
  8508. fi
  8509. # When large executables or shared objects are built, AIX ld can
  8510. # have problems creating the table of contents. If linking a library
  8511. # or program results in "error TOC overflow" add -mminimal-toc to
  8512. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8513. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8514. archive_cmds=''
  8515. hardcode_direct=yes
  8516. hardcode_direct_absolute=yes
  8517. hardcode_libdir_separator=':'
  8518. link_all_deplibs=yes
  8519. file_list_spec='$wl-f,'
  8520. case $with_aix_soname,$aix_use_runtimelinking in
  8521. aix,*) ;; # traditional, no import file
  8522. svr4,* | *,yes) # use import file
  8523. # The Import File defines what to hardcode.
  8524. hardcode_direct=no
  8525. hardcode_direct_absolute=no
  8526. ;;
  8527. esac
  8528. if test yes = "$GCC"; then
  8529. case $host_os in aix4.[012]|aix4.[012].*)
  8530. # We only want to do this on AIX 4.2 and lower, the check
  8531. # below for broken collect2 doesn't work under 4.3+
  8532. collect2name=`$CC -print-prog-name=collect2`
  8533. if test -f "$collect2name" &&
  8534. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8535. then
  8536. # We have reworked collect2
  8537. :
  8538. else
  8539. # We have old collect2
  8540. hardcode_direct=unsupported
  8541. # It fails to find uninstalled libraries when the uninstalled
  8542. # path is not listed in the libpath. Setting hardcode_minus_L
  8543. # to unsupported forces relinking
  8544. hardcode_minus_L=yes
  8545. hardcode_libdir_flag_spec='-L$libdir'
  8546. hardcode_libdir_separator=
  8547. fi
  8548. ;;
  8549. esac
  8550. shared_flag='-shared'
  8551. if test yes = "$aix_use_runtimelinking"; then
  8552. shared_flag="$shared_flag "'$wl-G'
  8553. fi
  8554. # Need to ensure runtime linking is disabled for the traditional
  8555. # shared library, or the linker may eventually find shared libraries
  8556. # /with/ Import File - we do not want to mix them.
  8557. shared_flag_aix='-shared'
  8558. shared_flag_svr4='-shared $wl-G'
  8559. else
  8560. # not using gcc
  8561. if test ia64 = "$host_cpu"; then
  8562. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8563. # chokes on -Wl,-G. The following line is correct:
  8564. shared_flag='-G'
  8565. else
  8566. if test yes = "$aix_use_runtimelinking"; then
  8567. shared_flag='$wl-G'
  8568. else
  8569. shared_flag='$wl-bM:SRE'
  8570. fi
  8571. shared_flag_aix='$wl-bM:SRE'
  8572. shared_flag_svr4='$wl-G'
  8573. fi
  8574. fi
  8575. export_dynamic_flag_spec='$wl-bexpall'
  8576. # It seems that -bexpall does not export symbols beginning with
  8577. # underscore (_), so it is better to generate a list of symbols to export.
  8578. always_export_symbols=yes
  8579. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8580. # Warning - without using the other runtime loading flags (-brtl),
  8581. # -berok will link without error, but may produce a broken library.
  8582. allow_undefined_flag='-berok'
  8583. # Determine the default libpath from the value encoded in an
  8584. # empty executable.
  8585. if test set = "${lt_cv_aix_libpath+set}"; then
  8586. aix_libpath=$lt_cv_aix_libpath
  8587. else
  8588. if ${lt_cv_aix_libpath_+:} false; then :
  8589. $as_echo_n "(cached) " >&6
  8590. else
  8591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8592. /* end confdefs.h. */
  8593. int
  8594. main ()
  8595. {
  8596. ;
  8597. return 0;
  8598. }
  8599. _ACEOF
  8600. if ac_fn_c_try_link "$LINENO"; then :
  8601. lt_aix_libpath_sed='
  8602. /Import File Strings/,/^$/ {
  8603. /^0/ {
  8604. s/^0 *\([^ ]*\) *$/\1/
  8605. p
  8606. }
  8607. }'
  8608. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8609. # Check for a 64-bit object if we didn't find anything.
  8610. if test -z "$lt_cv_aix_libpath_"; then
  8611. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8612. fi
  8613. fi
  8614. rm -f core conftest.err conftest.$ac_objext \
  8615. conftest$ac_exeext conftest.$ac_ext
  8616. if test -z "$lt_cv_aix_libpath_"; then
  8617. lt_cv_aix_libpath_=/usr/lib:/lib
  8618. fi
  8619. fi
  8620. aix_libpath=$lt_cv_aix_libpath_
  8621. fi
  8622. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8623. 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
  8624. else
  8625. if test ia64 = "$host_cpu"; then
  8626. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8627. allow_undefined_flag="-z nodefs"
  8628. 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"
  8629. else
  8630. # Determine the default libpath from the value encoded in an
  8631. # empty executable.
  8632. if test set = "${lt_cv_aix_libpath+set}"; then
  8633. aix_libpath=$lt_cv_aix_libpath
  8634. else
  8635. if ${lt_cv_aix_libpath_+:} false; then :
  8636. $as_echo_n "(cached) " >&6
  8637. else
  8638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8639. /* end confdefs.h. */
  8640. int
  8641. main ()
  8642. {
  8643. ;
  8644. return 0;
  8645. }
  8646. _ACEOF
  8647. if ac_fn_c_try_link "$LINENO"; then :
  8648. lt_aix_libpath_sed='
  8649. /Import File Strings/,/^$/ {
  8650. /^0/ {
  8651. s/^0 *\([^ ]*\) *$/\1/
  8652. p
  8653. }
  8654. }'
  8655. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8656. # Check for a 64-bit object if we didn't find anything.
  8657. if test -z "$lt_cv_aix_libpath_"; then
  8658. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8659. fi
  8660. fi
  8661. rm -f core conftest.err conftest.$ac_objext \
  8662. conftest$ac_exeext conftest.$ac_ext
  8663. if test -z "$lt_cv_aix_libpath_"; then
  8664. lt_cv_aix_libpath_=/usr/lib:/lib
  8665. fi
  8666. fi
  8667. aix_libpath=$lt_cv_aix_libpath_
  8668. fi
  8669. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8670. # Warning - without using the other run time loading flags,
  8671. # -berok will link without error, but may produce a broken library.
  8672. no_undefined_flag=' $wl-bernotok'
  8673. allow_undefined_flag=' $wl-berok'
  8674. if test yes = "$with_gnu_ld"; then
  8675. # We only use this code for GNU lds that support --whole-archive.
  8676. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8677. else
  8678. # Exported symbols can be pulled into shared objects from archives
  8679. whole_archive_flag_spec='$convenience'
  8680. fi
  8681. archive_cmds_need_lc=yes
  8682. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8683. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8684. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8685. if test svr4 != "$with_aix_soname"; then
  8686. # This is similar to how AIX traditionally builds its shared libraries.
  8687. 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'
  8688. fi
  8689. if test aix != "$with_aix_soname"; then
  8690. 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'
  8691. else
  8692. # used by -dlpreopen to get the symbols
  8693. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8694. fi
  8695. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8696. fi
  8697. fi
  8698. ;;
  8699. amigaos*)
  8700. case $host_cpu in
  8701. powerpc)
  8702. # see comment about AmigaOS4 .so support
  8703. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8704. archive_expsym_cmds=''
  8705. ;;
  8706. m68k)
  8707. 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)'
  8708. hardcode_libdir_flag_spec='-L$libdir'
  8709. hardcode_minus_L=yes
  8710. ;;
  8711. esac
  8712. ;;
  8713. bsdi[45]*)
  8714. export_dynamic_flag_spec=-rdynamic
  8715. ;;
  8716. cygwin* | mingw* | pw32* | cegcc*)
  8717. # When not using gcc, we currently assume that we are using
  8718. # Microsoft Visual C++.
  8719. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8720. # no search path for DLLs.
  8721. case $cc_basename in
  8722. cl*)
  8723. # Native MSVC
  8724. hardcode_libdir_flag_spec=' '
  8725. allow_undefined_flag=unsupported
  8726. always_export_symbols=yes
  8727. file_list_spec='@'
  8728. # Tell ltmain to make .lib files, not .a files.
  8729. libext=lib
  8730. # Tell ltmain to make .dll files, not .so files.
  8731. shrext_cmds=.dll
  8732. # FIXME: Setting linknames here is a bad hack.
  8733. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8734. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8735. cp "$export_symbols" "$output_objdir/$soname.def";
  8736. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8737. else
  8738. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8739. fi~
  8740. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8741. linknames='
  8742. # The linker will not automatically build a static lib if we build a DLL.
  8743. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8744. enable_shared_with_static_runtimes=yes
  8745. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8746. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8747. # Don't use ranlib
  8748. old_postinstall_cmds='chmod 644 $oldlib'
  8749. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8750. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8751. case $lt_outputfile in
  8752. *.exe|*.EXE) ;;
  8753. *)
  8754. lt_outputfile=$lt_outputfile.exe
  8755. lt_tool_outputfile=$lt_tool_outputfile.exe
  8756. ;;
  8757. esac~
  8758. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8759. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8760. $RM "$lt_outputfile.manifest";
  8761. fi'
  8762. ;;
  8763. *)
  8764. # Assume MSVC wrapper
  8765. hardcode_libdir_flag_spec=' '
  8766. allow_undefined_flag=unsupported
  8767. # Tell ltmain to make .lib files, not .a files.
  8768. libext=lib
  8769. # Tell ltmain to make .dll files, not .so files.
  8770. shrext_cmds=.dll
  8771. # FIXME: Setting linknames here is a bad hack.
  8772. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8773. # The linker will automatically build a .lib file if we build a DLL.
  8774. old_archive_from_new_cmds='true'
  8775. # FIXME: Should let the user specify the lib program.
  8776. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8777. enable_shared_with_static_runtimes=yes
  8778. ;;
  8779. esac
  8780. ;;
  8781. darwin* | rhapsody*)
  8782. archive_cmds_need_lc=no
  8783. hardcode_direct=no
  8784. hardcode_automatic=yes
  8785. hardcode_shlibpath_var=unsupported
  8786. if test yes = "$lt_cv_ld_force_load"; then
  8787. 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\"`'
  8788. else
  8789. whole_archive_flag_spec=''
  8790. fi
  8791. link_all_deplibs=yes
  8792. allow_undefined_flag=$_lt_dar_allow_undefined
  8793. case $cc_basename in
  8794. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8795. *) _lt_dar_can_shared=$GCC ;;
  8796. esac
  8797. if test yes = "$_lt_dar_can_shared"; then
  8798. output_verbose_link_cmd=func_echo_all
  8799. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8800. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8801. 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"
  8802. 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"
  8803. else
  8804. ld_shlibs=no
  8805. fi
  8806. ;;
  8807. dgux*)
  8808. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8809. hardcode_libdir_flag_spec='-L$libdir'
  8810. hardcode_shlibpath_var=no
  8811. ;;
  8812. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8813. # support. Future versions do this automatically, but an explicit c++rt0.o
  8814. # does not break anything, and helps significantly (at the cost of a little
  8815. # extra space).
  8816. freebsd2.2*)
  8817. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8818. hardcode_libdir_flag_spec='-R$libdir'
  8819. hardcode_direct=yes
  8820. hardcode_shlibpath_var=no
  8821. ;;
  8822. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8823. freebsd2.*)
  8824. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8825. hardcode_direct=yes
  8826. hardcode_minus_L=yes
  8827. hardcode_shlibpath_var=no
  8828. ;;
  8829. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8830. freebsd* | dragonfly*)
  8831. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8832. hardcode_libdir_flag_spec='-R$libdir'
  8833. hardcode_direct=yes
  8834. hardcode_shlibpath_var=no
  8835. ;;
  8836. hpux9*)
  8837. if test yes = "$GCC"; then
  8838. 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'
  8839. else
  8840. 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'
  8841. fi
  8842. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8843. hardcode_libdir_separator=:
  8844. hardcode_direct=yes
  8845. # hardcode_minus_L: Not really in the search PATH,
  8846. # but as the default location of the library.
  8847. hardcode_minus_L=yes
  8848. export_dynamic_flag_spec='$wl-E'
  8849. ;;
  8850. hpux10*)
  8851. if test yes,no = "$GCC,$with_gnu_ld"; then
  8852. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8853. else
  8854. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8855. fi
  8856. if test no = "$with_gnu_ld"; then
  8857. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8858. hardcode_libdir_separator=:
  8859. hardcode_direct=yes
  8860. hardcode_direct_absolute=yes
  8861. export_dynamic_flag_spec='$wl-E'
  8862. # hardcode_minus_L: Not really in the search PATH,
  8863. # but as the default location of the library.
  8864. hardcode_minus_L=yes
  8865. fi
  8866. ;;
  8867. hpux11*)
  8868. if test yes,no = "$GCC,$with_gnu_ld"; then
  8869. case $host_cpu in
  8870. hppa*64*)
  8871. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8872. ;;
  8873. ia64*)
  8874. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8875. ;;
  8876. *)
  8877. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8878. ;;
  8879. esac
  8880. else
  8881. case $host_cpu in
  8882. hppa*64*)
  8883. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8884. ;;
  8885. ia64*)
  8886. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8887. ;;
  8888. *)
  8889. # Older versions of the 11.00 compiler do not understand -b yet
  8890. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8892. $as_echo_n "checking if $CC understands -b... " >&6; }
  8893. if ${lt_cv_prog_compiler__b+:} false; then :
  8894. $as_echo_n "(cached) " >&6
  8895. else
  8896. lt_cv_prog_compiler__b=no
  8897. save_LDFLAGS=$LDFLAGS
  8898. LDFLAGS="$LDFLAGS -b"
  8899. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8900. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8901. # The linker can only warn and ignore the option if not recognized
  8902. # So say no if there are warnings
  8903. if test -s conftest.err; then
  8904. # Append any errors to the config.log.
  8905. cat conftest.err 1>&5
  8906. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8907. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8908. if diff conftest.exp conftest.er2 >/dev/null; then
  8909. lt_cv_prog_compiler__b=yes
  8910. fi
  8911. else
  8912. lt_cv_prog_compiler__b=yes
  8913. fi
  8914. fi
  8915. $RM -r conftest*
  8916. LDFLAGS=$save_LDFLAGS
  8917. fi
  8918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8919. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8920. if test yes = "$lt_cv_prog_compiler__b"; then
  8921. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8922. else
  8923. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8924. fi
  8925. ;;
  8926. esac
  8927. fi
  8928. if test no = "$with_gnu_ld"; then
  8929. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8930. hardcode_libdir_separator=:
  8931. case $host_cpu in
  8932. hppa*64*|ia64*)
  8933. hardcode_direct=no
  8934. hardcode_shlibpath_var=no
  8935. ;;
  8936. *)
  8937. hardcode_direct=yes
  8938. hardcode_direct_absolute=yes
  8939. export_dynamic_flag_spec='$wl-E'
  8940. # hardcode_minus_L: Not really in the search PATH,
  8941. # but as the default location of the library.
  8942. hardcode_minus_L=yes
  8943. ;;
  8944. esac
  8945. fi
  8946. ;;
  8947. irix5* | irix6* | nonstopux*)
  8948. if test yes = "$GCC"; then
  8949. 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'
  8950. # Try to use the -exported_symbol ld option, if it does not
  8951. # work, assume that -exports_file does not work either and
  8952. # implicitly export all symbols.
  8953. # This should be the same for all languages, so no per-tag cache variable.
  8954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8955. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8956. if ${lt_cv_irix_exported_symbol+:} false; then :
  8957. $as_echo_n "(cached) " >&6
  8958. else
  8959. save_LDFLAGS=$LDFLAGS
  8960. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8962. /* end confdefs.h. */
  8963. int foo (void) { return 0; }
  8964. _ACEOF
  8965. if ac_fn_c_try_link "$LINENO"; then :
  8966. lt_cv_irix_exported_symbol=yes
  8967. else
  8968. lt_cv_irix_exported_symbol=no
  8969. fi
  8970. rm -f core conftest.err conftest.$ac_objext \
  8971. conftest$ac_exeext conftest.$ac_ext
  8972. LDFLAGS=$save_LDFLAGS
  8973. fi
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8975. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8976. if test yes = "$lt_cv_irix_exported_symbol"; then
  8977. 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'
  8978. fi
  8979. link_all_deplibs=no
  8980. else
  8981. 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'
  8982. 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'
  8983. fi
  8984. archive_cmds_need_lc='no'
  8985. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8986. hardcode_libdir_separator=:
  8987. inherit_rpath=yes
  8988. link_all_deplibs=yes
  8989. ;;
  8990. linux*)
  8991. case $cc_basename in
  8992. tcc*)
  8993. # Fabrice Bellard et al's Tiny C Compiler
  8994. ld_shlibs=yes
  8995. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8996. ;;
  8997. esac
  8998. ;;
  8999. netbsd* | netbsdelf*-gnu)
  9000. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9001. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9002. else
  9003. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9004. fi
  9005. hardcode_libdir_flag_spec='-R$libdir'
  9006. hardcode_direct=yes
  9007. hardcode_shlibpath_var=no
  9008. ;;
  9009. newsos6)
  9010. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9011. hardcode_direct=yes
  9012. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9013. hardcode_libdir_separator=:
  9014. hardcode_shlibpath_var=no
  9015. ;;
  9016. *nto* | *qnx*)
  9017. ;;
  9018. openbsd* | bitrig*)
  9019. if test -f /usr/libexec/ld.so; then
  9020. hardcode_direct=yes
  9021. hardcode_shlibpath_var=no
  9022. hardcode_direct_absolute=yes
  9023. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9024. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9025. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9026. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9027. export_dynamic_flag_spec='$wl-E'
  9028. else
  9029. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9030. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9031. fi
  9032. else
  9033. ld_shlibs=no
  9034. fi
  9035. ;;
  9036. os2*)
  9037. hardcode_libdir_flag_spec='-L$libdir'
  9038. hardcode_minus_L=yes
  9039. allow_undefined_flag=unsupported
  9040. shrext_cmds=.dll
  9041. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9042. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9043. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9044. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9045. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9046. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9047. emximp -o $lib $output_objdir/$libname.def'
  9048. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9049. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9050. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9051. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9052. prefix_cmds="$SED"~
  9053. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9054. prefix_cmds="$prefix_cmds -e 1d";
  9055. fi~
  9056. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9057. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9058. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9059. emximp -o $lib $output_objdir/$libname.def'
  9060. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9061. enable_shared_with_static_runtimes=yes
  9062. ;;
  9063. osf3*)
  9064. if test yes = "$GCC"; then
  9065. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9066. 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'
  9067. else
  9068. allow_undefined_flag=' -expect_unresolved \*'
  9069. 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'
  9070. fi
  9071. archive_cmds_need_lc='no'
  9072. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9073. hardcode_libdir_separator=:
  9074. ;;
  9075. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9076. if test yes = "$GCC"; then
  9077. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9078. 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'
  9079. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9080. else
  9081. allow_undefined_flag=' -expect_unresolved \*'
  9082. 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'
  9083. 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~
  9084. $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'
  9085. # Both c and cxx compiler support -rpath directly
  9086. hardcode_libdir_flag_spec='-rpath $libdir'
  9087. fi
  9088. archive_cmds_need_lc='no'
  9089. hardcode_libdir_separator=:
  9090. ;;
  9091. solaris*)
  9092. no_undefined_flag=' -z defs'
  9093. if test yes = "$GCC"; then
  9094. wlarc='$wl'
  9095. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9096. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9097. $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'
  9098. else
  9099. case `$CC -V 2>&1` in
  9100. *"Compilers 5.0"*)
  9101. wlarc=''
  9102. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9103. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9104. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9105. ;;
  9106. *)
  9107. wlarc='$wl'
  9108. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9109. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9110. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9111. ;;
  9112. esac
  9113. fi
  9114. hardcode_libdir_flag_spec='-R$libdir'
  9115. hardcode_shlibpath_var=no
  9116. case $host_os in
  9117. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9118. *)
  9119. # The compiler driver will combine and reorder linker options,
  9120. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9121. # but is careful enough not to reorder.
  9122. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9123. if test yes = "$GCC"; then
  9124. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9125. else
  9126. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9127. fi
  9128. ;;
  9129. esac
  9130. link_all_deplibs=yes
  9131. ;;
  9132. sunos4*)
  9133. if test sequent = "$host_vendor"; then
  9134. # Use $CC to link under sequent, because it throws in some extra .o
  9135. # files that make .init and .fini sections work.
  9136. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9137. else
  9138. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9139. fi
  9140. hardcode_libdir_flag_spec='-L$libdir'
  9141. hardcode_direct=yes
  9142. hardcode_minus_L=yes
  9143. hardcode_shlibpath_var=no
  9144. ;;
  9145. sysv4)
  9146. case $host_vendor in
  9147. sni)
  9148. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9149. hardcode_direct=yes # is this really true???
  9150. ;;
  9151. siemens)
  9152. ## LD is ld it makes a PLAMLIB
  9153. ## CC just makes a GrossModule.
  9154. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9155. reload_cmds='$CC -r -o $output$reload_objs'
  9156. hardcode_direct=no
  9157. ;;
  9158. motorola)
  9159. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9160. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9161. ;;
  9162. esac
  9163. runpath_var='LD_RUN_PATH'
  9164. hardcode_shlibpath_var=no
  9165. ;;
  9166. sysv4.3*)
  9167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9168. hardcode_shlibpath_var=no
  9169. export_dynamic_flag_spec='-Bexport'
  9170. ;;
  9171. sysv4*MP*)
  9172. if test -d /usr/nec; then
  9173. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9174. hardcode_shlibpath_var=no
  9175. runpath_var=LD_RUN_PATH
  9176. hardcode_runpath_var=yes
  9177. ld_shlibs=yes
  9178. fi
  9179. ;;
  9180. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9181. no_undefined_flag='$wl-z,text'
  9182. archive_cmds_need_lc=no
  9183. hardcode_shlibpath_var=no
  9184. runpath_var='LD_RUN_PATH'
  9185. if test yes = "$GCC"; then
  9186. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9187. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9188. else
  9189. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9190. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9191. fi
  9192. ;;
  9193. sysv5* | sco3.2v5* | sco5v6*)
  9194. # Note: We CANNOT use -z defs as we might desire, because we do not
  9195. # link with -lc, and that would cause any symbols used from libc to
  9196. # always be unresolved, which means just about no library would
  9197. # ever link correctly. If we're not using GNU ld we use -z text
  9198. # though, which does catch some bad symbols but isn't as heavy-handed
  9199. # as -z defs.
  9200. no_undefined_flag='$wl-z,text'
  9201. allow_undefined_flag='$wl-z,nodefs'
  9202. archive_cmds_need_lc=no
  9203. hardcode_shlibpath_var=no
  9204. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9205. hardcode_libdir_separator=':'
  9206. link_all_deplibs=yes
  9207. export_dynamic_flag_spec='$wl-Bexport'
  9208. runpath_var='LD_RUN_PATH'
  9209. if test yes = "$GCC"; then
  9210. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9211. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9212. else
  9213. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9214. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9215. fi
  9216. ;;
  9217. uts4*)
  9218. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9219. hardcode_libdir_flag_spec='-L$libdir'
  9220. hardcode_shlibpath_var=no
  9221. ;;
  9222. *)
  9223. ld_shlibs=no
  9224. ;;
  9225. esac
  9226. if test sni = "$host_vendor"; then
  9227. case $host in
  9228. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9229. export_dynamic_flag_spec='$wl-Blargedynsym'
  9230. ;;
  9231. esac
  9232. fi
  9233. fi
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9235. $as_echo "$ld_shlibs" >&6; }
  9236. test no = "$ld_shlibs" && can_build_shared=no
  9237. with_gnu_ld=$with_gnu_ld
  9238. #
  9239. # Do we need to explicitly link libc?
  9240. #
  9241. case "x$archive_cmds_need_lc" in
  9242. x|xyes)
  9243. # Assume -lc should be added
  9244. archive_cmds_need_lc=yes
  9245. if test yes,yes = "$GCC,$enable_shared"; then
  9246. case $archive_cmds in
  9247. *'~'*)
  9248. # FIXME: we may have to deal with multi-command sequences.
  9249. ;;
  9250. '$CC '*)
  9251. # Test whether the compiler implicitly links with -lc since on some
  9252. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9253. # to ld, don't add -lc before -lgcc.
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9255. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9256. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9257. $as_echo_n "(cached) " >&6
  9258. else
  9259. $RM conftest*
  9260. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9261. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9262. (eval $ac_compile) 2>&5
  9263. ac_status=$?
  9264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9265. test $ac_status = 0; } 2>conftest.err; then
  9266. soname=conftest
  9267. lib=conftest
  9268. libobjs=conftest.$ac_objext
  9269. deplibs=
  9270. wl=$lt_prog_compiler_wl
  9271. pic_flag=$lt_prog_compiler_pic
  9272. compiler_flags=-v
  9273. linker_flags=-v
  9274. verstring=
  9275. output_objdir=.
  9276. libname=conftest
  9277. lt_save_allow_undefined_flag=$allow_undefined_flag
  9278. allow_undefined_flag=
  9279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9280. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9281. ac_status=$?
  9282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9283. test $ac_status = 0; }
  9284. then
  9285. lt_cv_archive_cmds_need_lc=no
  9286. else
  9287. lt_cv_archive_cmds_need_lc=yes
  9288. fi
  9289. allow_undefined_flag=$lt_save_allow_undefined_flag
  9290. else
  9291. cat conftest.err 1>&5
  9292. fi
  9293. $RM conftest*
  9294. fi
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9296. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9297. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9298. ;;
  9299. esac
  9300. fi
  9301. ;;
  9302. esac
  9303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9304. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9305. if test yes = "$GCC"; then
  9306. case $host_os in
  9307. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9308. *) lt_awk_arg='/^libraries:/' ;;
  9309. esac
  9310. case $host_os in
  9311. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9312. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9313. esac
  9314. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9315. case $lt_search_path_spec in
  9316. *\;*)
  9317. # if the path contains ";" then we assume it to be the separator
  9318. # otherwise default to the standard path separator (i.e. ":") - it is
  9319. # assumed that no part of a normal pathname contains ";" but that should
  9320. # okay in the real world where ";" in dirpaths is itself problematic.
  9321. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9322. ;;
  9323. *)
  9324. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9325. ;;
  9326. esac
  9327. # Ok, now we have the path, separated by spaces, we can step through it
  9328. # and add multilib dir if necessary...
  9329. lt_tmp_lt_search_path_spec=
  9330. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9331. # ...but if some path component already ends with the multilib dir we assume
  9332. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9333. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9334. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9335. lt_multi_os_dir=
  9336. ;;
  9337. esac
  9338. for lt_sys_path in $lt_search_path_spec; do
  9339. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9340. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9341. elif test -n "$lt_multi_os_dir"; then
  9342. test -d "$lt_sys_path" && \
  9343. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9344. fi
  9345. done
  9346. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9347. BEGIN {RS = " "; FS = "/|\n";} {
  9348. lt_foo = "";
  9349. lt_count = 0;
  9350. for (lt_i = NF; lt_i > 0; lt_i--) {
  9351. if ($lt_i != "" && $lt_i != ".") {
  9352. if ($lt_i == "..") {
  9353. lt_count++;
  9354. } else {
  9355. if (lt_count == 0) {
  9356. lt_foo = "/" $lt_i lt_foo;
  9357. } else {
  9358. lt_count--;
  9359. }
  9360. }
  9361. }
  9362. }
  9363. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9364. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9365. }'`
  9366. # AWK program above erroneously prepends '/' to C:/dos/paths
  9367. # for these hosts.
  9368. case $host_os in
  9369. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9370. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9371. esac
  9372. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9373. else
  9374. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9375. fi
  9376. library_names_spec=
  9377. libname_spec='lib$name'
  9378. soname_spec=
  9379. shrext_cmds=.so
  9380. postinstall_cmds=
  9381. postuninstall_cmds=
  9382. finish_cmds=
  9383. finish_eval=
  9384. shlibpath_var=
  9385. shlibpath_overrides_runpath=unknown
  9386. version_type=none
  9387. dynamic_linker="$host_os ld.so"
  9388. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9389. need_lib_prefix=unknown
  9390. hardcode_into_libs=no
  9391. # when you set need_version to no, make sure it does not cause -set_version
  9392. # flags to be left without arguments
  9393. need_version=unknown
  9394. case $host_os in
  9395. aix3*)
  9396. version_type=linux # correct to gnu/linux during the next big refactor
  9397. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9398. shlibpath_var=LIBPATH
  9399. # AIX 3 has no versioning support, so we append a major version to the name.
  9400. soname_spec='$libname$release$shared_ext$major'
  9401. ;;
  9402. aix[4-9]*)
  9403. version_type=linux # correct to gnu/linux during the next big refactor
  9404. need_lib_prefix=no
  9405. need_version=no
  9406. hardcode_into_libs=yes
  9407. if test ia64 = "$host_cpu"; then
  9408. # AIX 5 supports IA64
  9409. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9410. shlibpath_var=LD_LIBRARY_PATH
  9411. else
  9412. # With GCC up to 2.95.x, collect2 would create an import file
  9413. # for dependence libraries. The import file would start with
  9414. # the line '#! .'. This would cause the generated library to
  9415. # depend on '.', always an invalid library. This was fixed in
  9416. # development snapshots of GCC prior to 3.0.
  9417. case $host_os in
  9418. aix4 | aix4.[01] | aix4.[01].*)
  9419. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9420. echo ' yes '
  9421. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9422. :
  9423. else
  9424. can_build_shared=no
  9425. fi
  9426. ;;
  9427. esac
  9428. # Using Import Files as archive members, it is possible to support
  9429. # filename-based versioning of shared library archives on AIX. While
  9430. # this would work for both with and without runtime linking, it will
  9431. # prevent static linking of such archives. So we do filename-based
  9432. # shared library versioning with .so extension only, which is used
  9433. # when both runtime linking and shared linking is enabled.
  9434. # Unfortunately, runtime linking may impact performance, so we do
  9435. # not want this to be the default eventually. Also, we use the
  9436. # versioned .so libs for executables only if there is the -brtl
  9437. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9438. # To allow for filename-based versioning support, we need to create
  9439. # libNAME.so.V as an archive file, containing:
  9440. # *) an Import File, referring to the versioned filename of the
  9441. # archive as well as the shared archive member, telling the
  9442. # bitwidth (32 or 64) of that shared object, and providing the
  9443. # list of exported symbols of that shared object, eventually
  9444. # decorated with the 'weak' keyword
  9445. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9446. # it being seen by the linker.
  9447. # At run time we better use the real file rather than another symlink,
  9448. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9449. case $with_aix_soname,$aix_use_runtimelinking in
  9450. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9451. # soname into executable. Probably we can add versioning support to
  9452. # collect2, so additional links can be useful in future.
  9453. aix,yes) # traditional libtool
  9454. dynamic_linker='AIX unversionable lib.so'
  9455. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9456. # instead of lib<name>.a to let people know that these are not
  9457. # typical AIX shared libraries.
  9458. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9459. ;;
  9460. aix,no) # traditional AIX only
  9461. dynamic_linker='AIX lib.a(lib.so.V)'
  9462. # We preserve .a as extension for shared libraries through AIX4.2
  9463. # and later when we are not doing run time linking.
  9464. library_names_spec='$libname$release.a $libname.a'
  9465. soname_spec='$libname$release$shared_ext$major'
  9466. ;;
  9467. svr4,*) # full svr4 only
  9468. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9469. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9470. # We do not specify a path in Import Files, so LIBPATH fires.
  9471. shlibpath_overrides_runpath=yes
  9472. ;;
  9473. *,yes) # both, prefer svr4
  9474. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9475. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9476. # unpreferred sharedlib libNAME.a needs extra handling
  9477. 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"'
  9478. 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"'
  9479. # We do not specify a path in Import Files, so LIBPATH fires.
  9480. shlibpath_overrides_runpath=yes
  9481. ;;
  9482. *,no) # both, prefer aix
  9483. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9484. library_names_spec='$libname$release.a $libname.a'
  9485. soname_spec='$libname$release$shared_ext$major'
  9486. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9487. 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)'
  9488. 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"'
  9489. ;;
  9490. esac
  9491. shlibpath_var=LIBPATH
  9492. fi
  9493. ;;
  9494. amigaos*)
  9495. case $host_cpu in
  9496. powerpc)
  9497. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9498. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9499. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9500. ;;
  9501. m68k)
  9502. library_names_spec='$libname.ixlibrary $libname.a'
  9503. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9504. 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'
  9505. ;;
  9506. esac
  9507. ;;
  9508. beos*)
  9509. library_names_spec='$libname$shared_ext'
  9510. dynamic_linker="$host_os ld.so"
  9511. shlibpath_var=LIBRARY_PATH
  9512. ;;
  9513. bsdi[45]*)
  9514. version_type=linux # correct to gnu/linux during the next big refactor
  9515. need_version=no
  9516. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9517. soname_spec='$libname$release$shared_ext$major'
  9518. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9519. shlibpath_var=LD_LIBRARY_PATH
  9520. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9521. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9522. # the default ld.so.conf also contains /usr/contrib/lib and
  9523. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9524. # libtool to hard-code these into programs
  9525. ;;
  9526. cygwin* | mingw* | pw32* | cegcc*)
  9527. version_type=windows
  9528. shrext_cmds=.dll
  9529. need_version=no
  9530. need_lib_prefix=no
  9531. case $GCC,$cc_basename in
  9532. yes,*)
  9533. # gcc
  9534. library_names_spec='$libname.dll.a'
  9535. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9536. postinstall_cmds='base_file=`basename \$file`~
  9537. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9538. dldir=$destdir/`dirname \$dlpath`~
  9539. test -d \$dldir || mkdir -p \$dldir~
  9540. $install_prog $dir/$dlname \$dldir/$dlname~
  9541. chmod a+x \$dldir/$dlname~
  9542. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9543. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9544. fi'
  9545. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9546. dlpath=$dir/\$dldll~
  9547. $RM \$dlpath'
  9548. shlibpath_overrides_runpath=yes
  9549. case $host_os in
  9550. cygwin*)
  9551. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9552. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9553. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9554. ;;
  9555. mingw* | cegcc*)
  9556. # MinGW DLLs use traditional 'lib' prefix
  9557. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9558. ;;
  9559. pw32*)
  9560. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9561. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9562. ;;
  9563. esac
  9564. dynamic_linker='Win32 ld.exe'
  9565. ;;
  9566. *,cl*)
  9567. # Native MSVC
  9568. libname_spec='$name'
  9569. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9570. library_names_spec='$libname.dll.lib'
  9571. case $build_os in
  9572. mingw*)
  9573. sys_lib_search_path_spec=
  9574. lt_save_ifs=$IFS
  9575. IFS=';'
  9576. for lt_path in $LIB
  9577. do
  9578. IFS=$lt_save_ifs
  9579. # Let DOS variable expansion print the short 8.3 style file name.
  9580. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9581. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9582. done
  9583. IFS=$lt_save_ifs
  9584. # Convert to MSYS style.
  9585. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9586. ;;
  9587. cygwin*)
  9588. # Convert to unix form, then to dos form, then back to unix form
  9589. # but this time dos style (no spaces!) so that the unix form looks
  9590. # like /cygdrive/c/PROGRA~1:/cygdr...
  9591. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9592. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9593. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9594. ;;
  9595. *)
  9596. sys_lib_search_path_spec=$LIB
  9597. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9598. # It is most probably a Windows format PATH.
  9599. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9600. else
  9601. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9602. fi
  9603. # FIXME: find the short name or the path components, as spaces are
  9604. # common. (e.g. "Program Files" -> "PROGRA~1")
  9605. ;;
  9606. esac
  9607. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9608. postinstall_cmds='base_file=`basename \$file`~
  9609. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9610. dldir=$destdir/`dirname \$dlpath`~
  9611. test -d \$dldir || mkdir -p \$dldir~
  9612. $install_prog $dir/$dlname \$dldir/$dlname'
  9613. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9614. dlpath=$dir/\$dldll~
  9615. $RM \$dlpath'
  9616. shlibpath_overrides_runpath=yes
  9617. dynamic_linker='Win32 link.exe'
  9618. ;;
  9619. *)
  9620. # Assume MSVC wrapper
  9621. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9622. dynamic_linker='Win32 ld.exe'
  9623. ;;
  9624. esac
  9625. # FIXME: first we should search . and the directory the executable is in
  9626. shlibpath_var=PATH
  9627. ;;
  9628. darwin* | rhapsody*)
  9629. dynamic_linker="$host_os dyld"
  9630. version_type=darwin
  9631. need_lib_prefix=no
  9632. need_version=no
  9633. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9634. soname_spec='$libname$release$major$shared_ext'
  9635. shlibpath_overrides_runpath=yes
  9636. shlibpath_var=DYLD_LIBRARY_PATH
  9637. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9638. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9639. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9640. ;;
  9641. dgux*)
  9642. version_type=linux # correct to gnu/linux during the next big refactor
  9643. need_lib_prefix=no
  9644. need_version=no
  9645. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9646. soname_spec='$libname$release$shared_ext$major'
  9647. shlibpath_var=LD_LIBRARY_PATH
  9648. ;;
  9649. freebsd* | dragonfly*)
  9650. # DragonFly does not have aout. When/if they implement a new
  9651. # versioning mechanism, adjust this.
  9652. if test -x /usr/bin/objformat; then
  9653. objformat=`/usr/bin/objformat`
  9654. else
  9655. case $host_os in
  9656. freebsd[23].*) objformat=aout ;;
  9657. *) objformat=elf ;;
  9658. esac
  9659. fi
  9660. version_type=freebsd-$objformat
  9661. case $version_type in
  9662. freebsd-elf*)
  9663. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9664. soname_spec='$libname$release$shared_ext$major'
  9665. need_version=no
  9666. need_lib_prefix=no
  9667. ;;
  9668. freebsd-*)
  9669. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9670. need_version=yes
  9671. ;;
  9672. esac
  9673. shlibpath_var=LD_LIBRARY_PATH
  9674. case $host_os in
  9675. freebsd2.*)
  9676. shlibpath_overrides_runpath=yes
  9677. ;;
  9678. freebsd3.[01]* | freebsdelf3.[01]*)
  9679. shlibpath_overrides_runpath=yes
  9680. hardcode_into_libs=yes
  9681. ;;
  9682. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9683. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9684. shlibpath_overrides_runpath=no
  9685. hardcode_into_libs=yes
  9686. ;;
  9687. *) # from 4.6 on, and DragonFly
  9688. shlibpath_overrides_runpath=yes
  9689. hardcode_into_libs=yes
  9690. ;;
  9691. esac
  9692. ;;
  9693. haiku*)
  9694. version_type=linux # correct to gnu/linux during the next big refactor
  9695. need_lib_prefix=no
  9696. need_version=no
  9697. dynamic_linker="$host_os runtime_loader"
  9698. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9699. soname_spec='$libname$release$shared_ext$major'
  9700. shlibpath_var=LIBRARY_PATH
  9701. shlibpath_overrides_runpath=no
  9702. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9703. hardcode_into_libs=yes
  9704. ;;
  9705. hpux9* | hpux10* | hpux11*)
  9706. # Give a soname corresponding to the major version so that dld.sl refuses to
  9707. # link against other versions.
  9708. version_type=sunos
  9709. need_lib_prefix=no
  9710. need_version=no
  9711. case $host_cpu in
  9712. ia64*)
  9713. shrext_cmds='.so'
  9714. hardcode_into_libs=yes
  9715. dynamic_linker="$host_os dld.so"
  9716. shlibpath_var=LD_LIBRARY_PATH
  9717. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9718. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9719. soname_spec='$libname$release$shared_ext$major'
  9720. if test 32 = "$HPUX_IA64_MODE"; then
  9721. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9722. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9723. else
  9724. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9725. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9726. fi
  9727. ;;
  9728. hppa*64*)
  9729. shrext_cmds='.sl'
  9730. hardcode_into_libs=yes
  9731. dynamic_linker="$host_os dld.sl"
  9732. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9733. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9734. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9735. soname_spec='$libname$release$shared_ext$major'
  9736. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9737. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9738. ;;
  9739. *)
  9740. shrext_cmds='.sl'
  9741. dynamic_linker="$host_os dld.sl"
  9742. shlibpath_var=SHLIB_PATH
  9743. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9744. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9745. soname_spec='$libname$release$shared_ext$major'
  9746. ;;
  9747. esac
  9748. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9749. postinstall_cmds='chmod 555 $lib'
  9750. # or fails outright, so override atomically:
  9751. install_override_mode=555
  9752. ;;
  9753. interix[3-9]*)
  9754. version_type=linux # correct to gnu/linux during the next big refactor
  9755. need_lib_prefix=no
  9756. need_version=no
  9757. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9758. soname_spec='$libname$release$shared_ext$major'
  9759. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9760. shlibpath_var=LD_LIBRARY_PATH
  9761. shlibpath_overrides_runpath=no
  9762. hardcode_into_libs=yes
  9763. ;;
  9764. irix5* | irix6* | nonstopux*)
  9765. case $host_os in
  9766. nonstopux*) version_type=nonstopux ;;
  9767. *)
  9768. if test yes = "$lt_cv_prog_gnu_ld"; then
  9769. version_type=linux # correct to gnu/linux during the next big refactor
  9770. else
  9771. version_type=irix
  9772. fi ;;
  9773. esac
  9774. need_lib_prefix=no
  9775. need_version=no
  9776. soname_spec='$libname$release$shared_ext$major'
  9777. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9778. case $host_os in
  9779. irix5* | nonstopux*)
  9780. libsuff= shlibsuff=
  9781. ;;
  9782. *)
  9783. case $LD in # libtool.m4 will add one of these switches to LD
  9784. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9785. libsuff= shlibsuff= libmagic=32-bit;;
  9786. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9787. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9788. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9789. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9790. *) libsuff= shlibsuff= libmagic=never-match;;
  9791. esac
  9792. ;;
  9793. esac
  9794. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9795. shlibpath_overrides_runpath=no
  9796. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9797. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9798. hardcode_into_libs=yes
  9799. ;;
  9800. # No shared lib support for Linux oldld, aout, or coff.
  9801. linux*oldld* | linux*aout* | linux*coff*)
  9802. dynamic_linker=no
  9803. ;;
  9804. linux*android*)
  9805. version_type=none # Android doesn't support versioned libraries.
  9806. need_lib_prefix=no
  9807. need_version=no
  9808. library_names_spec='$libname$release$shared_ext'
  9809. soname_spec='$libname$release$shared_ext'
  9810. finish_cmds=
  9811. shlibpath_var=LD_LIBRARY_PATH
  9812. shlibpath_overrides_runpath=yes
  9813. # This implies no fast_install, which is unacceptable.
  9814. # Some rework will be needed to allow for fast_install
  9815. # before this can be enabled.
  9816. hardcode_into_libs=yes
  9817. dynamic_linker='Android linker'
  9818. # Don't embed -rpath directories since the linker doesn't support them.
  9819. hardcode_libdir_flag_spec='-L$libdir'
  9820. ;;
  9821. # This must be glibc/ELF.
  9822. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9823. version_type=linux # correct to gnu/linux during the next big refactor
  9824. need_lib_prefix=no
  9825. need_version=no
  9826. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9827. soname_spec='$libname$release$shared_ext$major'
  9828. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9829. shlibpath_var=LD_LIBRARY_PATH
  9830. shlibpath_overrides_runpath=no
  9831. # Some binutils ld are patched to set DT_RUNPATH
  9832. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9833. $as_echo_n "(cached) " >&6
  9834. else
  9835. lt_cv_shlibpath_overrides_runpath=no
  9836. save_LDFLAGS=$LDFLAGS
  9837. save_libdir=$libdir
  9838. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9839. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9841. /* end confdefs.h. */
  9842. int
  9843. main ()
  9844. {
  9845. ;
  9846. return 0;
  9847. }
  9848. _ACEOF
  9849. if ac_fn_c_try_link "$LINENO"; then :
  9850. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9851. lt_cv_shlibpath_overrides_runpath=yes
  9852. fi
  9853. fi
  9854. rm -f core conftest.err conftest.$ac_objext \
  9855. conftest$ac_exeext conftest.$ac_ext
  9856. LDFLAGS=$save_LDFLAGS
  9857. libdir=$save_libdir
  9858. fi
  9859. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9860. # This implies no fast_install, which is unacceptable.
  9861. # Some rework will be needed to allow for fast_install
  9862. # before this can be enabled.
  9863. hardcode_into_libs=yes
  9864. # Ideally, we could use ldconfig to report *all* directores which are
  9865. # searched for libraries, however this is still not possible. Aside from not
  9866. # being certain /sbin/ldconfig is available, command
  9867. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9868. # even though it is searched at run-time. Try to do the best guess by
  9869. # appending ld.so.conf contents (and includes) to the search path.
  9870. if test -f /etc/ld.so.conf; then
  9871. 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' ' '`
  9872. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9873. fi
  9874. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9875. # powerpc, because MkLinux only supported shared libraries with the
  9876. # GNU dynamic linker. Since this was broken with cross compilers,
  9877. # most powerpc-linux boxes support dynamic linking these days and
  9878. # people can always --disable-shared, the test was removed, and we
  9879. # assume the GNU/Linux dynamic linker is in use.
  9880. dynamic_linker='GNU/Linux ld.so'
  9881. ;;
  9882. netbsdelf*-gnu)
  9883. version_type=linux
  9884. need_lib_prefix=no
  9885. need_version=no
  9886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9887. soname_spec='${libname}${release}${shared_ext}$major'
  9888. shlibpath_var=LD_LIBRARY_PATH
  9889. shlibpath_overrides_runpath=no
  9890. hardcode_into_libs=yes
  9891. dynamic_linker='NetBSD ld.elf_so'
  9892. ;;
  9893. netbsd*)
  9894. version_type=sunos
  9895. need_lib_prefix=no
  9896. need_version=no
  9897. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9898. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9899. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9900. dynamic_linker='NetBSD (a.out) ld.so'
  9901. else
  9902. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9903. soname_spec='$libname$release$shared_ext$major'
  9904. dynamic_linker='NetBSD ld.elf_so'
  9905. fi
  9906. shlibpath_var=LD_LIBRARY_PATH
  9907. shlibpath_overrides_runpath=yes
  9908. hardcode_into_libs=yes
  9909. ;;
  9910. newsos6)
  9911. version_type=linux # correct to gnu/linux during the next big refactor
  9912. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9913. shlibpath_var=LD_LIBRARY_PATH
  9914. shlibpath_overrides_runpath=yes
  9915. ;;
  9916. *nto* | *qnx*)
  9917. version_type=qnx
  9918. need_lib_prefix=no
  9919. need_version=no
  9920. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9921. soname_spec='$libname$release$shared_ext$major'
  9922. shlibpath_var=LD_LIBRARY_PATH
  9923. shlibpath_overrides_runpath=no
  9924. hardcode_into_libs=yes
  9925. dynamic_linker='ldqnx.so'
  9926. ;;
  9927. openbsd* | bitrig*)
  9928. version_type=sunos
  9929. sys_lib_dlsearch_path_spec=/usr/lib
  9930. need_lib_prefix=no
  9931. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9932. need_version=no
  9933. else
  9934. need_version=yes
  9935. fi
  9936. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9937. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9938. shlibpath_var=LD_LIBRARY_PATH
  9939. shlibpath_overrides_runpath=yes
  9940. ;;
  9941. os2*)
  9942. libname_spec='$name'
  9943. version_type=windows
  9944. shrext_cmds=.dll
  9945. need_version=no
  9946. need_lib_prefix=no
  9947. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9948. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9949. v=$($ECHO $release$versuffix | tr -d .-);
  9950. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9951. $ECHO $n$v`$shared_ext'
  9952. library_names_spec='${libname}_dll.$libext'
  9953. dynamic_linker='OS/2 ld.exe'
  9954. shlibpath_var=BEGINLIBPATH
  9955. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9956. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9957. postinstall_cmds='base_file=`basename \$file`~
  9958. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9959. dldir=$destdir/`dirname \$dlpath`~
  9960. test -d \$dldir || mkdir -p \$dldir~
  9961. $install_prog $dir/$dlname \$dldir/$dlname~
  9962. chmod a+x \$dldir/$dlname~
  9963. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9964. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9965. fi'
  9966. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9967. dlpath=$dir/\$dldll~
  9968. $RM \$dlpath'
  9969. ;;
  9970. osf3* | osf4* | osf5*)
  9971. version_type=osf
  9972. need_lib_prefix=no
  9973. need_version=no
  9974. soname_spec='$libname$release$shared_ext$major'
  9975. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9976. shlibpath_var=LD_LIBRARY_PATH
  9977. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9978. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9979. ;;
  9980. rdos*)
  9981. dynamic_linker=no
  9982. ;;
  9983. solaris*)
  9984. version_type=linux # correct to gnu/linux during the next big refactor
  9985. need_lib_prefix=no
  9986. need_version=no
  9987. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9988. soname_spec='$libname$release$shared_ext$major'
  9989. shlibpath_var=LD_LIBRARY_PATH
  9990. shlibpath_overrides_runpath=yes
  9991. hardcode_into_libs=yes
  9992. # ldd complains unless libraries are executable
  9993. postinstall_cmds='chmod +x $lib'
  9994. ;;
  9995. sunos4*)
  9996. version_type=sunos
  9997. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9998. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9999. shlibpath_var=LD_LIBRARY_PATH
  10000. shlibpath_overrides_runpath=yes
  10001. if test yes = "$with_gnu_ld"; then
  10002. need_lib_prefix=no
  10003. fi
  10004. need_version=yes
  10005. ;;
  10006. sysv4 | sysv4.3*)
  10007. version_type=linux # correct to gnu/linux during the next big refactor
  10008. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10009. soname_spec='$libname$release$shared_ext$major'
  10010. shlibpath_var=LD_LIBRARY_PATH
  10011. case $host_vendor in
  10012. sni)
  10013. shlibpath_overrides_runpath=no
  10014. need_lib_prefix=no
  10015. runpath_var=LD_RUN_PATH
  10016. ;;
  10017. siemens)
  10018. need_lib_prefix=no
  10019. ;;
  10020. motorola)
  10021. need_lib_prefix=no
  10022. need_version=no
  10023. shlibpath_overrides_runpath=no
  10024. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10025. ;;
  10026. esac
  10027. ;;
  10028. sysv4*MP*)
  10029. if test -d /usr/nec; then
  10030. version_type=linux # correct to gnu/linux during the next big refactor
  10031. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10032. soname_spec='$libname$shared_ext.$major'
  10033. shlibpath_var=LD_LIBRARY_PATH
  10034. fi
  10035. ;;
  10036. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10037. version_type=sco
  10038. need_lib_prefix=no
  10039. need_version=no
  10040. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10041. soname_spec='$libname$release$shared_ext$major'
  10042. shlibpath_var=LD_LIBRARY_PATH
  10043. shlibpath_overrides_runpath=yes
  10044. hardcode_into_libs=yes
  10045. if test yes = "$with_gnu_ld"; then
  10046. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10047. else
  10048. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10049. case $host_os in
  10050. sco3.2v5*)
  10051. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10052. ;;
  10053. esac
  10054. fi
  10055. sys_lib_dlsearch_path_spec='/usr/lib'
  10056. ;;
  10057. tpf*)
  10058. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10059. version_type=linux # correct to gnu/linux during the next big refactor
  10060. need_lib_prefix=no
  10061. need_version=no
  10062. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10063. shlibpath_var=LD_LIBRARY_PATH
  10064. shlibpath_overrides_runpath=no
  10065. hardcode_into_libs=yes
  10066. ;;
  10067. uts4*)
  10068. version_type=linux # correct to gnu/linux during the next big refactor
  10069. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10070. soname_spec='$libname$release$shared_ext$major'
  10071. shlibpath_var=LD_LIBRARY_PATH
  10072. ;;
  10073. *)
  10074. dynamic_linker=no
  10075. ;;
  10076. esac
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10078. $as_echo "$dynamic_linker" >&6; }
  10079. test no = "$dynamic_linker" && can_build_shared=no
  10080. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10081. if test yes = "$GCC"; then
  10082. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10083. fi
  10084. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10085. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10086. fi
  10087. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10088. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10089. fi
  10090. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10091. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10092. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10093. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10094. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10095. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10097. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10098. hardcode_action=
  10099. if test -n "$hardcode_libdir_flag_spec" ||
  10100. test -n "$runpath_var" ||
  10101. test yes = "$hardcode_automatic"; then
  10102. # We can hardcode non-existent directories.
  10103. if test no != "$hardcode_direct" &&
  10104. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10105. # have to relink, otherwise we might link with an installed library
  10106. # when we should be linking with a yet-to-be-installed one
  10107. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10108. test no != "$hardcode_minus_L"; then
  10109. # Linking always hardcodes the temporary library directory.
  10110. hardcode_action=relink
  10111. else
  10112. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10113. hardcode_action=immediate
  10114. fi
  10115. else
  10116. # We cannot hardcode anything, or else we can only hardcode existing
  10117. # directories.
  10118. hardcode_action=unsupported
  10119. fi
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10121. $as_echo "$hardcode_action" >&6; }
  10122. if test relink = "$hardcode_action" ||
  10123. test yes = "$inherit_rpath"; then
  10124. # Fast installation is not supported
  10125. enable_fast_install=no
  10126. elif test yes = "$shlibpath_overrides_runpath" ||
  10127. test no = "$enable_shared"; then
  10128. # Fast installation is not necessary
  10129. enable_fast_install=needless
  10130. fi
  10131. if test yes != "$enable_dlopen"; then
  10132. enable_dlopen=unknown
  10133. enable_dlopen_self=unknown
  10134. enable_dlopen_self_static=unknown
  10135. else
  10136. lt_cv_dlopen=no
  10137. lt_cv_dlopen_libs=
  10138. case $host_os in
  10139. beos*)
  10140. lt_cv_dlopen=load_add_on
  10141. lt_cv_dlopen_libs=
  10142. lt_cv_dlopen_self=yes
  10143. ;;
  10144. mingw* | pw32* | cegcc*)
  10145. lt_cv_dlopen=LoadLibrary
  10146. lt_cv_dlopen_libs=
  10147. ;;
  10148. cygwin*)
  10149. lt_cv_dlopen=dlopen
  10150. lt_cv_dlopen_libs=
  10151. ;;
  10152. darwin*)
  10153. # if libdl is installed we need to link against it
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10155. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10156. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10157. $as_echo_n "(cached) " >&6
  10158. else
  10159. ac_check_lib_save_LIBS=$LIBS
  10160. LIBS="-ldl $LIBS"
  10161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10162. /* end confdefs.h. */
  10163. /* Override any GCC internal prototype to avoid an error.
  10164. Use char because int might match the return type of a GCC
  10165. builtin and then its argument prototype would still apply. */
  10166. #ifdef __cplusplus
  10167. extern "C"
  10168. #endif
  10169. char dlopen ();
  10170. int
  10171. main ()
  10172. {
  10173. return dlopen ();
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. if ac_fn_c_try_link "$LINENO"; then :
  10179. ac_cv_lib_dl_dlopen=yes
  10180. else
  10181. ac_cv_lib_dl_dlopen=no
  10182. fi
  10183. rm -f core conftest.err conftest.$ac_objext \
  10184. conftest$ac_exeext conftest.$ac_ext
  10185. LIBS=$ac_check_lib_save_LIBS
  10186. fi
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10188. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10189. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10190. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10191. else
  10192. lt_cv_dlopen=dyld
  10193. lt_cv_dlopen_libs=
  10194. lt_cv_dlopen_self=yes
  10195. fi
  10196. ;;
  10197. tpf*)
  10198. # Don't try to run any link tests for TPF. We know it's impossible
  10199. # because TPF is a cross-compiler, and we know how we open DSOs.
  10200. lt_cv_dlopen=dlopen
  10201. lt_cv_dlopen_libs=
  10202. lt_cv_dlopen_self=no
  10203. ;;
  10204. *)
  10205. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10206. if test "x$ac_cv_func_shl_load" = xyes; then :
  10207. lt_cv_dlopen=shl_load
  10208. else
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10210. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10211. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10212. $as_echo_n "(cached) " >&6
  10213. else
  10214. ac_check_lib_save_LIBS=$LIBS
  10215. LIBS="-ldld $LIBS"
  10216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10217. /* end confdefs.h. */
  10218. /* Override any GCC internal prototype to avoid an error.
  10219. Use char because int might match the return type of a GCC
  10220. builtin and then its argument prototype would still apply. */
  10221. #ifdef __cplusplus
  10222. extern "C"
  10223. #endif
  10224. char shl_load ();
  10225. int
  10226. main ()
  10227. {
  10228. return shl_load ();
  10229. ;
  10230. return 0;
  10231. }
  10232. _ACEOF
  10233. if ac_fn_c_try_link "$LINENO"; then :
  10234. ac_cv_lib_dld_shl_load=yes
  10235. else
  10236. ac_cv_lib_dld_shl_load=no
  10237. fi
  10238. rm -f core conftest.err conftest.$ac_objext \
  10239. conftest$ac_exeext conftest.$ac_ext
  10240. LIBS=$ac_check_lib_save_LIBS
  10241. fi
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10243. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10244. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10245. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10246. else
  10247. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10248. if test "x$ac_cv_func_dlopen" = xyes; then :
  10249. lt_cv_dlopen=dlopen
  10250. else
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10252. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10253. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10254. $as_echo_n "(cached) " >&6
  10255. else
  10256. ac_check_lib_save_LIBS=$LIBS
  10257. LIBS="-ldl $LIBS"
  10258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10259. /* end confdefs.h. */
  10260. /* Override any GCC internal prototype to avoid an error.
  10261. Use char because int might match the return type of a GCC
  10262. builtin and then its argument prototype would still apply. */
  10263. #ifdef __cplusplus
  10264. extern "C"
  10265. #endif
  10266. char dlopen ();
  10267. int
  10268. main ()
  10269. {
  10270. return dlopen ();
  10271. ;
  10272. return 0;
  10273. }
  10274. _ACEOF
  10275. if ac_fn_c_try_link "$LINENO"; then :
  10276. ac_cv_lib_dl_dlopen=yes
  10277. else
  10278. ac_cv_lib_dl_dlopen=no
  10279. fi
  10280. rm -f core conftest.err conftest.$ac_objext \
  10281. conftest$ac_exeext conftest.$ac_ext
  10282. LIBS=$ac_check_lib_save_LIBS
  10283. fi
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10285. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10286. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10287. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10288. else
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10290. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10291. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. ac_check_lib_save_LIBS=$LIBS
  10295. LIBS="-lsvld $LIBS"
  10296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10297. /* end confdefs.h. */
  10298. /* Override any GCC internal prototype to avoid an error.
  10299. Use char because int might match the return type of a GCC
  10300. builtin and then its argument prototype would still apply. */
  10301. #ifdef __cplusplus
  10302. extern "C"
  10303. #endif
  10304. char dlopen ();
  10305. int
  10306. main ()
  10307. {
  10308. return dlopen ();
  10309. ;
  10310. return 0;
  10311. }
  10312. _ACEOF
  10313. if ac_fn_c_try_link "$LINENO"; then :
  10314. ac_cv_lib_svld_dlopen=yes
  10315. else
  10316. ac_cv_lib_svld_dlopen=no
  10317. fi
  10318. rm -f core conftest.err conftest.$ac_objext \
  10319. conftest$ac_exeext conftest.$ac_ext
  10320. LIBS=$ac_check_lib_save_LIBS
  10321. fi
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10323. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10324. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10325. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10326. else
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10328. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10329. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. ac_check_lib_save_LIBS=$LIBS
  10333. LIBS="-ldld $LIBS"
  10334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10335. /* end confdefs.h. */
  10336. /* Override any GCC internal prototype to avoid an error.
  10337. Use char because int might match the return type of a GCC
  10338. builtin and then its argument prototype would still apply. */
  10339. #ifdef __cplusplus
  10340. extern "C"
  10341. #endif
  10342. char dld_link ();
  10343. int
  10344. main ()
  10345. {
  10346. return dld_link ();
  10347. ;
  10348. return 0;
  10349. }
  10350. _ACEOF
  10351. if ac_fn_c_try_link "$LINENO"; then :
  10352. ac_cv_lib_dld_dld_link=yes
  10353. else
  10354. ac_cv_lib_dld_dld_link=no
  10355. fi
  10356. rm -f core conftest.err conftest.$ac_objext \
  10357. conftest$ac_exeext conftest.$ac_ext
  10358. LIBS=$ac_check_lib_save_LIBS
  10359. fi
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10361. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10362. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10363. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10364. fi
  10365. fi
  10366. fi
  10367. fi
  10368. fi
  10369. fi
  10370. ;;
  10371. esac
  10372. if test no = "$lt_cv_dlopen"; then
  10373. enable_dlopen=no
  10374. else
  10375. enable_dlopen=yes
  10376. fi
  10377. case $lt_cv_dlopen in
  10378. dlopen)
  10379. save_CPPFLAGS=$CPPFLAGS
  10380. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10381. save_LDFLAGS=$LDFLAGS
  10382. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10383. save_LIBS=$LIBS
  10384. LIBS="$lt_cv_dlopen_libs $LIBS"
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10386. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10387. if ${lt_cv_dlopen_self+:} false; then :
  10388. $as_echo_n "(cached) " >&6
  10389. else
  10390. if test yes = "$cross_compiling"; then :
  10391. lt_cv_dlopen_self=cross
  10392. else
  10393. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10394. lt_status=$lt_dlunknown
  10395. cat > conftest.$ac_ext <<_LT_EOF
  10396. #line $LINENO "configure"
  10397. #include "confdefs.h"
  10398. #if HAVE_DLFCN_H
  10399. #include <dlfcn.h>
  10400. #endif
  10401. #include <stdio.h>
  10402. #ifdef RTLD_GLOBAL
  10403. # define LT_DLGLOBAL RTLD_GLOBAL
  10404. #else
  10405. # ifdef DL_GLOBAL
  10406. # define LT_DLGLOBAL DL_GLOBAL
  10407. # else
  10408. # define LT_DLGLOBAL 0
  10409. # endif
  10410. #endif
  10411. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10412. find out it does not work in some platform. */
  10413. #ifndef LT_DLLAZY_OR_NOW
  10414. # ifdef RTLD_LAZY
  10415. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10416. # else
  10417. # ifdef DL_LAZY
  10418. # define LT_DLLAZY_OR_NOW DL_LAZY
  10419. # else
  10420. # ifdef RTLD_NOW
  10421. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10422. # else
  10423. # ifdef DL_NOW
  10424. # define LT_DLLAZY_OR_NOW DL_NOW
  10425. # else
  10426. # define LT_DLLAZY_OR_NOW 0
  10427. # endif
  10428. # endif
  10429. # endif
  10430. # endif
  10431. #endif
  10432. /* When -fvisibility=hidden is used, assume the code has been annotated
  10433. correspondingly for the symbols needed. */
  10434. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10435. int fnord () __attribute__((visibility("default")));
  10436. #endif
  10437. int fnord () { return 42; }
  10438. int main ()
  10439. {
  10440. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10441. int status = $lt_dlunknown;
  10442. if (self)
  10443. {
  10444. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10445. else
  10446. {
  10447. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10448. else puts (dlerror ());
  10449. }
  10450. /* dlclose (self); */
  10451. }
  10452. else
  10453. puts (dlerror ());
  10454. return status;
  10455. }
  10456. _LT_EOF
  10457. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10458. (eval $ac_link) 2>&5
  10459. ac_status=$?
  10460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10461. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10462. (./conftest; exit; ) >&5 2>/dev/null
  10463. lt_status=$?
  10464. case x$lt_status in
  10465. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10466. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10467. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10468. esac
  10469. else :
  10470. # compilation failed
  10471. lt_cv_dlopen_self=no
  10472. fi
  10473. fi
  10474. rm -fr conftest*
  10475. fi
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10477. $as_echo "$lt_cv_dlopen_self" >&6; }
  10478. if test yes = "$lt_cv_dlopen_self"; then
  10479. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10481. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10482. if ${lt_cv_dlopen_self_static+:} false; then :
  10483. $as_echo_n "(cached) " >&6
  10484. else
  10485. if test yes = "$cross_compiling"; then :
  10486. lt_cv_dlopen_self_static=cross
  10487. else
  10488. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10489. lt_status=$lt_dlunknown
  10490. cat > conftest.$ac_ext <<_LT_EOF
  10491. #line $LINENO "configure"
  10492. #include "confdefs.h"
  10493. #if HAVE_DLFCN_H
  10494. #include <dlfcn.h>
  10495. #endif
  10496. #include <stdio.h>
  10497. #ifdef RTLD_GLOBAL
  10498. # define LT_DLGLOBAL RTLD_GLOBAL
  10499. #else
  10500. # ifdef DL_GLOBAL
  10501. # define LT_DLGLOBAL DL_GLOBAL
  10502. # else
  10503. # define LT_DLGLOBAL 0
  10504. # endif
  10505. #endif
  10506. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10507. find out it does not work in some platform. */
  10508. #ifndef LT_DLLAZY_OR_NOW
  10509. # ifdef RTLD_LAZY
  10510. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10511. # else
  10512. # ifdef DL_LAZY
  10513. # define LT_DLLAZY_OR_NOW DL_LAZY
  10514. # else
  10515. # ifdef RTLD_NOW
  10516. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10517. # else
  10518. # ifdef DL_NOW
  10519. # define LT_DLLAZY_OR_NOW DL_NOW
  10520. # else
  10521. # define LT_DLLAZY_OR_NOW 0
  10522. # endif
  10523. # endif
  10524. # endif
  10525. # endif
  10526. #endif
  10527. /* When -fvisibility=hidden is used, assume the code has been annotated
  10528. correspondingly for the symbols needed. */
  10529. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10530. int fnord () __attribute__((visibility("default")));
  10531. #endif
  10532. int fnord () { return 42; }
  10533. int main ()
  10534. {
  10535. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10536. int status = $lt_dlunknown;
  10537. if (self)
  10538. {
  10539. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10540. else
  10541. {
  10542. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10543. else puts (dlerror ());
  10544. }
  10545. /* dlclose (self); */
  10546. }
  10547. else
  10548. puts (dlerror ());
  10549. return status;
  10550. }
  10551. _LT_EOF
  10552. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10553. (eval $ac_link) 2>&5
  10554. ac_status=$?
  10555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10556. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10557. (./conftest; exit; ) >&5 2>/dev/null
  10558. lt_status=$?
  10559. case x$lt_status in
  10560. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10561. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10562. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10563. esac
  10564. else :
  10565. # compilation failed
  10566. lt_cv_dlopen_self_static=no
  10567. fi
  10568. fi
  10569. rm -fr conftest*
  10570. fi
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10572. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10573. fi
  10574. CPPFLAGS=$save_CPPFLAGS
  10575. LDFLAGS=$save_LDFLAGS
  10576. LIBS=$save_LIBS
  10577. ;;
  10578. esac
  10579. case $lt_cv_dlopen_self in
  10580. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10581. *) enable_dlopen_self=unknown ;;
  10582. esac
  10583. case $lt_cv_dlopen_self_static in
  10584. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10585. *) enable_dlopen_self_static=unknown ;;
  10586. esac
  10587. fi
  10588. striplib=
  10589. old_striplib=
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10591. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10592. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10593. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10594. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10596. $as_echo "yes" >&6; }
  10597. else
  10598. # FIXME - insert some real tests, host_os isn't really good enough
  10599. case $host_os in
  10600. darwin*)
  10601. if test -n "$STRIP"; then
  10602. striplib="$STRIP -x"
  10603. old_striplib="$STRIP -S"
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10605. $as_echo "yes" >&6; }
  10606. else
  10607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10608. $as_echo "no" >&6; }
  10609. fi
  10610. ;;
  10611. *)
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10613. $as_echo "no" >&6; }
  10614. ;;
  10615. esac
  10616. fi
  10617. # Report what library types will actually be built
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10619. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10621. $as_echo "$can_build_shared" >&6; }
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10623. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10624. test no = "$can_build_shared" && enable_shared=no
  10625. # On AIX, shared libraries and static libraries use the same namespace, and
  10626. # are all built from PIC.
  10627. case $host_os in
  10628. aix3*)
  10629. test yes = "$enable_shared" && enable_static=no
  10630. if test -n "$RANLIB"; then
  10631. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10632. postinstall_cmds='$RANLIB $lib'
  10633. fi
  10634. ;;
  10635. aix[4-9]*)
  10636. if test ia64 != "$host_cpu"; then
  10637. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10638. yes,aix,yes) ;; # shared object as lib.so file only
  10639. yes,svr4,*) ;; # shared object as lib.so archive member only
  10640. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10641. esac
  10642. fi
  10643. ;;
  10644. esac
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10646. $as_echo "$enable_shared" >&6; }
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10648. $as_echo_n "checking whether to build static libraries... " >&6; }
  10649. # Make sure either enable_shared or enable_static is yes.
  10650. test yes = "$enable_shared" || enable_static=yes
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10652. $as_echo "$enable_static" >&6; }
  10653. fi
  10654. ac_ext=c
  10655. ac_cpp='$CPP $CPPFLAGS'
  10656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10659. CC=$lt_save_CC
  10660. ac_config_commands="$ac_config_commands libtool"
  10661. # Only expand once:
  10662. ac_config_headers="$ac_config_headers config.h"
  10663. am__api_version='1.16'
  10664. # Find a good install program. We prefer a C program (faster),
  10665. # so one script is as good as another. But avoid the broken or
  10666. # incompatible versions:
  10667. # SysV /etc/install, /usr/sbin/install
  10668. # SunOS /usr/etc/install
  10669. # IRIX /sbin/install
  10670. # AIX /bin/install
  10671. # AmigaOS /C/install, which installs bootblocks on floppy discs
  10672. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10673. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10674. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10675. # OS/2's system install, which has a completely different semantic
  10676. # ./install, which can be erroneously created by make from ./install.sh.
  10677. # Reject install programs that cannot install multiple files.
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  10679. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  10680. if test -z "$INSTALL"; then
  10681. if ${ac_cv_path_install+:} false; then :
  10682. $as_echo_n "(cached) " >&6
  10683. else
  10684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10685. for as_dir in $PATH
  10686. do
  10687. IFS=$as_save_IFS
  10688. test -z "$as_dir" && as_dir=.
  10689. # Account for people who put trailing slashes in PATH elements.
  10690. case $as_dir/ in #((
  10691. ./ | .// | /[cC]/* | \
  10692. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10693. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  10694. /usr/ucb/* ) ;;
  10695. *)
  10696. # OSF1 and SCO ODT 3.0 have their own names for install.
  10697. # Don't use installbsd from OSF since it installs stuff as root
  10698. # by default.
  10699. for ac_prog in ginstall scoinst install; do
  10700. for ac_exec_ext in '' $ac_executable_extensions; do
  10701. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10702. if test $ac_prog = install &&
  10703. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10704. # AIX install. It has an incompatible calling convention.
  10705. :
  10706. elif test $ac_prog = install &&
  10707. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10708. # program-specific install script used by HP pwplus--don't use.
  10709. :
  10710. else
  10711. rm -rf conftest.one conftest.two conftest.dir
  10712. echo one > conftest.one
  10713. echo two > conftest.two
  10714. mkdir conftest.dir
  10715. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  10716. test -s conftest.one && test -s conftest.two &&
  10717. test -s conftest.dir/conftest.one &&
  10718. test -s conftest.dir/conftest.two
  10719. then
  10720. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10721. break 3
  10722. fi
  10723. fi
  10724. fi
  10725. done
  10726. done
  10727. ;;
  10728. esac
  10729. done
  10730. IFS=$as_save_IFS
  10731. rm -rf conftest.one conftest.two conftest.dir
  10732. fi
  10733. if test "${ac_cv_path_install+set}" = set; then
  10734. INSTALL=$ac_cv_path_install
  10735. else
  10736. # As a last resort, use the slow shell script. Don't cache a
  10737. # value for INSTALL within a source directory, because that will
  10738. # break other packages using the cache if that directory is
  10739. # removed, or if the value is a relative name.
  10740. INSTALL=$ac_install_sh
  10741. fi
  10742. fi
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  10744. $as_echo "$INSTALL" >&6; }
  10745. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10746. # It thinks the first close brace ends the variable substitution.
  10747. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10748. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10749. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  10751. $as_echo_n "checking whether build environment is sane... " >&6; }
  10752. # Reject unsafe characters in $srcdir or the absolute working directory
  10753. # name. Accept space and tab only in the latter.
  10754. am_lf='
  10755. '
  10756. case `pwd` in
  10757. *[\\\"\#\$\&\'\`$am_lf]*)
  10758. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  10759. esac
  10760. case $srcdir in
  10761. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  10762. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  10763. esac
  10764. # Do 'set' in a subshell so we don't clobber the current shell's
  10765. # arguments. Must try -L first in case configure is actually a
  10766. # symlink; some systems play weird games with the mod time of symlinks
  10767. # (eg FreeBSD returns the mod time of the symlink's containing
  10768. # directory).
  10769. if (
  10770. am_has_slept=no
  10771. for am_try in 1 2; do
  10772. echo "timestamp, slept: $am_has_slept" > conftest.file
  10773. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  10774. if test "$*" = "X"; then
  10775. # -L didn't work.
  10776. set X `ls -t "$srcdir/configure" conftest.file`
  10777. fi
  10778. if test "$*" != "X $srcdir/configure conftest.file" \
  10779. && test "$*" != "X conftest.file $srcdir/configure"; then
  10780. # If neither matched, then we have a broken ls. This can happen
  10781. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10782. # broken ls alias from the environment. This has actually
  10783. # happened. Such a system could not be considered "sane".
  10784. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  10785. alias in your environment" "$LINENO" 5
  10786. fi
  10787. if test "$2" = conftest.file || test $am_try -eq 2; then
  10788. break
  10789. fi
  10790. # Just in case.
  10791. sleep 1
  10792. am_has_slept=yes
  10793. done
  10794. test "$2" = conftest.file
  10795. )
  10796. then
  10797. # Ok.
  10798. :
  10799. else
  10800. as_fn_error $? "newly created file is older than distributed files!
  10801. Check your system clock" "$LINENO" 5
  10802. fi
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10804. $as_echo "yes" >&6; }
  10805. # If we didn't sleep, we still need to ensure time stamps of config.status and
  10806. # generated files are strictly newer.
  10807. am_sleep_pid=
  10808. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  10809. ( sleep 1 ) &
  10810. am_sleep_pid=$!
  10811. fi
  10812. rm -f conftest.file
  10813. test "$program_prefix" != NONE &&
  10814. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10815. # Use a double $ so make ignores it.
  10816. test "$program_suffix" != NONE &&
  10817. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10818. # Double any \ or $.
  10819. # By default was `s,x,x', remove it if useless.
  10820. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10821. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10822. if test x"${MISSING+set}" != xset; then
  10823. case $am_aux_dir in
  10824. *\ * | *\ *)
  10825. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10826. *)
  10827. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10828. esac
  10829. fi
  10830. # Use eval to expand $SHELL
  10831. if eval "$MISSING --is-lightweight"; then
  10832. am_missing_run="$MISSING "
  10833. else
  10834. am_missing_run=
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  10836. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  10837. fi
  10838. if test x"${install_sh+set}" != xset; then
  10839. case $am_aux_dir in
  10840. *\ * | *\ *)
  10841. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10842. *)
  10843. install_sh="\${SHELL} $am_aux_dir/install-sh"
  10844. esac
  10845. fi
  10846. # Installed binaries are usually stripped using 'strip' when the user
  10847. # run "make install-strip". However 'strip' might not be the right
  10848. # tool to use in cross-compilation environments, therefore Automake
  10849. # will honor the 'STRIP' environment variable to overrule this program.
  10850. if test "$cross_compiling" != no; then
  10851. if test -n "$ac_tool_prefix"; then
  10852. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10853. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10855. $as_echo_n "checking for $ac_word... " >&6; }
  10856. if ${ac_cv_prog_STRIP+:} false; then :
  10857. $as_echo_n "(cached) " >&6
  10858. else
  10859. if test -n "$STRIP"; then
  10860. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10861. else
  10862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10863. for as_dir in $PATH
  10864. do
  10865. IFS=$as_save_IFS
  10866. test -z "$as_dir" && as_dir=.
  10867. for ac_exec_ext in '' $ac_executable_extensions; do
  10868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10869. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10871. break 2
  10872. fi
  10873. done
  10874. done
  10875. IFS=$as_save_IFS
  10876. fi
  10877. fi
  10878. STRIP=$ac_cv_prog_STRIP
  10879. if test -n "$STRIP"; then
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10881. $as_echo "$STRIP" >&6; }
  10882. else
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10884. $as_echo "no" >&6; }
  10885. fi
  10886. fi
  10887. if test -z "$ac_cv_prog_STRIP"; then
  10888. ac_ct_STRIP=$STRIP
  10889. # Extract the first word of "strip", so it can be a program name with args.
  10890. set dummy strip; ac_word=$2
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10892. $as_echo_n "checking for $ac_word... " >&6; }
  10893. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10894. $as_echo_n "(cached) " >&6
  10895. else
  10896. if test -n "$ac_ct_STRIP"; then
  10897. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10898. else
  10899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10900. for as_dir in $PATH
  10901. do
  10902. IFS=$as_save_IFS
  10903. test -z "$as_dir" && as_dir=.
  10904. for ac_exec_ext in '' $ac_executable_extensions; do
  10905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10906. ac_cv_prog_ac_ct_STRIP="strip"
  10907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10908. break 2
  10909. fi
  10910. done
  10911. done
  10912. IFS=$as_save_IFS
  10913. fi
  10914. fi
  10915. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10916. if test -n "$ac_ct_STRIP"; then
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10918. $as_echo "$ac_ct_STRIP" >&6; }
  10919. else
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10921. $as_echo "no" >&6; }
  10922. fi
  10923. if test "x$ac_ct_STRIP" = x; then
  10924. STRIP=":"
  10925. else
  10926. case $cross_compiling:$ac_tool_warned in
  10927. yes:)
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10930. ac_tool_warned=yes ;;
  10931. esac
  10932. STRIP=$ac_ct_STRIP
  10933. fi
  10934. else
  10935. STRIP="$ac_cv_prog_STRIP"
  10936. fi
  10937. fi
  10938. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10940. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10941. if test -z "$MKDIR_P"; then
  10942. if ${ac_cv_path_mkdir+:} false; then :
  10943. $as_echo_n "(cached) " >&6
  10944. else
  10945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10946. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10947. do
  10948. IFS=$as_save_IFS
  10949. test -z "$as_dir" && as_dir=.
  10950. for ac_prog in mkdir gmkdir; do
  10951. for ac_exec_ext in '' $ac_executable_extensions; do
  10952. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  10953. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10954. 'mkdir (GNU coreutils) '* | \
  10955. 'mkdir (coreutils) '* | \
  10956. 'mkdir (fileutils) '4.1*)
  10957. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10958. break 3;;
  10959. esac
  10960. done
  10961. done
  10962. done
  10963. IFS=$as_save_IFS
  10964. fi
  10965. test -d ./--version && rmdir ./--version
  10966. if test "${ac_cv_path_mkdir+set}" = set; then
  10967. MKDIR_P="$ac_cv_path_mkdir -p"
  10968. else
  10969. # As a last resort, use the slow shell script. Don't cache a
  10970. # value for MKDIR_P within a source directory, because that will
  10971. # break other packages using the cache if that directory is
  10972. # removed, or if the value is a relative name.
  10973. MKDIR_P="$ac_install_sh -d"
  10974. fi
  10975. fi
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10977. $as_echo "$MKDIR_P" >&6; }
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10979. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10980. set x ${MAKE-make}
  10981. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10982. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  10983. $as_echo_n "(cached) " >&6
  10984. else
  10985. cat >conftest.make <<\_ACEOF
  10986. SHELL = /bin/sh
  10987. all:
  10988. @echo '@@@%%%=$(MAKE)=@@@%%%'
  10989. _ACEOF
  10990. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  10991. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10992. *@@@%%%=?*=@@@%%%*)
  10993. eval ac_cv_prog_make_${ac_make}_set=yes;;
  10994. *)
  10995. eval ac_cv_prog_make_${ac_make}_set=no;;
  10996. esac
  10997. rm -f conftest.make
  10998. fi
  10999. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11001. $as_echo "yes" >&6; }
  11002. SET_MAKE=
  11003. else
  11004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11005. $as_echo "no" >&6; }
  11006. SET_MAKE="MAKE=${MAKE-make}"
  11007. fi
  11008. rm -rf .tst 2>/dev/null
  11009. mkdir .tst 2>/dev/null
  11010. if test -d .tst; then
  11011. am__leading_dot=.
  11012. else
  11013. am__leading_dot=_
  11014. fi
  11015. rmdir .tst 2>/dev/null
  11016. DEPDIR="${am__leading_dot}deps"
  11017. ac_config_commands="$ac_config_commands depfiles"
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  11019. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  11020. cat > confinc.mk << 'END'
  11021. am__doit:
  11022. @echo this is the am__doit target >confinc.out
  11023. .PHONY: am__doit
  11024. END
  11025. am__include="#"
  11026. am__quote=
  11027. # BSD make does it like this.
  11028. echo '.include "confinc.mk" # ignored' > confmf.BSD
  11029. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  11030. echo 'include confinc.mk # ignored' > confmf.GNU
  11031. _am_result=no
  11032. for s in GNU BSD; do
  11033. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  11034. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  11035. ac_status=$?
  11036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11037. (exit $ac_status); }
  11038. case $?:`cat confinc.out 2>/dev/null` in #(
  11039. '0:this is the am__doit target') :
  11040. case $s in #(
  11041. BSD) :
  11042. am__include='.include' am__quote='"' ;; #(
  11043. *) :
  11044. am__include='include' am__quote='' ;;
  11045. esac ;; #(
  11046. *) :
  11047. ;;
  11048. esac
  11049. if test "$am__include" != "#"; then
  11050. _am_result="yes ($s style)"
  11051. break
  11052. fi
  11053. done
  11054. rm -f confinc.* confmf.*
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  11056. $as_echo "${_am_result}" >&6; }
  11057. # Check whether --enable-dependency-tracking was given.
  11058. if test "${enable_dependency_tracking+set}" = set; then :
  11059. enableval=$enable_dependency_tracking;
  11060. fi
  11061. if test "x$enable_dependency_tracking" != xno; then
  11062. am_depcomp="$ac_aux_dir/depcomp"
  11063. AMDEPBACKSLASH='\'
  11064. am__nodep='_no'
  11065. fi
  11066. if test "x$enable_dependency_tracking" != xno; then
  11067. AMDEP_TRUE=
  11068. AMDEP_FALSE='#'
  11069. else
  11070. AMDEP_TRUE='#'
  11071. AMDEP_FALSE=
  11072. fi
  11073. # Check whether --enable-silent-rules was given.
  11074. if test "${enable_silent_rules+set}" = set; then :
  11075. enableval=$enable_silent_rules;
  11076. fi
  11077. case $enable_silent_rules in # (((
  11078. yes) AM_DEFAULT_VERBOSITY=0;;
  11079. no) AM_DEFAULT_VERBOSITY=1;;
  11080. *) AM_DEFAULT_VERBOSITY=1;;
  11081. esac
  11082. am_make=${MAKE-make}
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  11084. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  11085. if ${am_cv_make_support_nested_variables+:} false; then :
  11086. $as_echo_n "(cached) " >&6
  11087. else
  11088. if $as_echo 'TRUE=$(BAR$(V))
  11089. BAR0=false
  11090. BAR1=true
  11091. V=1
  11092. am__doit:
  11093. @$(TRUE)
  11094. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  11095. am_cv_make_support_nested_variables=yes
  11096. else
  11097. am_cv_make_support_nested_variables=no
  11098. fi
  11099. fi
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  11101. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  11102. if test $am_cv_make_support_nested_variables = yes; then
  11103. AM_V='$(V)'
  11104. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  11105. else
  11106. AM_V=$AM_DEFAULT_VERBOSITY
  11107. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  11108. fi
  11109. AM_BACKSLASH='\'
  11110. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  11111. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  11112. # is not polluted with repeated "-I."
  11113. am__isrc=' -I$(srcdir)'
  11114. # test to see if srcdir already configured
  11115. if test -f $srcdir/config.status; then
  11116. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  11117. fi
  11118. fi
  11119. # test whether we have cygpath
  11120. if test -z "$CYGPATH_W"; then
  11121. if (cygpath --version) >/dev/null 2>/dev/null; then
  11122. CYGPATH_W='cygpath -w'
  11123. else
  11124. CYGPATH_W=echo
  11125. fi
  11126. fi
  11127. # Define the identity of the package.
  11128. PACKAGE='faux'
  11129. VERSION='2.0.0'
  11130. cat >>confdefs.h <<_ACEOF
  11131. #define PACKAGE "$PACKAGE"
  11132. _ACEOF
  11133. cat >>confdefs.h <<_ACEOF
  11134. #define VERSION "$VERSION"
  11135. _ACEOF
  11136. # Some tools Automake needs.
  11137. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  11138. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  11139. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  11140. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  11141. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  11142. # For better backward compatibility. To be removed once Automake 1.9.x
  11143. # dies out for good. For more background, see:
  11144. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  11145. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  11146. mkdir_p='$(MKDIR_P)'
  11147. # We need awk for the "check" target (and possibly the TAP driver). The
  11148. # system "awk" is bad on some platforms.
  11149. # Always define AMTAR for backward compatibility. Yes, it's still used
  11150. # in the wild :-( We should find a proper way to deprecate it ...
  11151. AMTAR='$${TAR-tar}'
  11152. # We'll loop over all known methods to create a tar archive until one works.
  11153. _am_tools='gnutar pax cpio none'
  11154. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  11155. depcc="$CC" am_compiler_list=
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11157. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11158. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11159. $as_echo_n "(cached) " >&6
  11160. else
  11161. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11162. # We make a subdir and do the tests there. Otherwise we can end up
  11163. # making bogus files that we don't know about and never remove. For
  11164. # instance it was reported that on HP-UX the gcc test will end up
  11165. # making a dummy file named 'D' -- because '-MD' means "put the output
  11166. # in D".
  11167. rm -rf conftest.dir
  11168. mkdir conftest.dir
  11169. # Copy depcomp to subdir because otherwise we won't find it if we're
  11170. # using a relative directory.
  11171. cp "$am_depcomp" conftest.dir
  11172. cd conftest.dir
  11173. # We will build objects and dependencies in a subdirectory because
  11174. # it helps to detect inapplicable dependency modes. For instance
  11175. # both Tru64's cc and ICC support -MD to output dependencies as a
  11176. # side effect of compilation, but ICC will put the dependencies in
  11177. # the current directory while Tru64 will put them in the object
  11178. # directory.
  11179. mkdir sub
  11180. am_cv_CC_dependencies_compiler_type=none
  11181. if test "$am_compiler_list" = ""; then
  11182. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11183. fi
  11184. am__universal=false
  11185. case " $depcc " in #(
  11186. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11187. esac
  11188. for depmode in $am_compiler_list; do
  11189. # Setup a source with many dependencies, because some compilers
  11190. # like to wrap large dependency lists on column 80 (with \), and
  11191. # we should not choose a depcomp mode which is confused by this.
  11192. #
  11193. # We need to recreate these files for each test, as the compiler may
  11194. # overwrite some of them when testing with obscure command lines.
  11195. # This happens at least with the AIX C compiler.
  11196. : > sub/conftest.c
  11197. for i in 1 2 3 4 5 6; do
  11198. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11199. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11200. # Solaris 10 /bin/sh.
  11201. echo '/* dummy */' > sub/conftst$i.h
  11202. done
  11203. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11204. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11205. # mode. It turns out that the SunPro C++ compiler does not properly
  11206. # handle '-M -o', and we need to detect this. Also, some Intel
  11207. # versions had trouble with output in subdirs.
  11208. am__obj=sub/conftest.${OBJEXT-o}
  11209. am__minus_obj="-o $am__obj"
  11210. case $depmode in
  11211. gcc)
  11212. # This depmode causes a compiler race in universal mode.
  11213. test "$am__universal" = false || continue
  11214. ;;
  11215. nosideeffect)
  11216. # After this tag, mechanisms are not by side-effect, so they'll
  11217. # only be used when explicitly requested.
  11218. if test "x$enable_dependency_tracking" = xyes; then
  11219. continue
  11220. else
  11221. break
  11222. fi
  11223. ;;
  11224. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11225. # This compiler won't grok '-c -o', but also, the minuso test has
  11226. # not run yet. These depmodes are late enough in the game, and
  11227. # so weak that their functioning should not be impacted.
  11228. am__obj=conftest.${OBJEXT-o}
  11229. am__minus_obj=
  11230. ;;
  11231. none) break ;;
  11232. esac
  11233. if depmode=$depmode \
  11234. source=sub/conftest.c object=$am__obj \
  11235. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11236. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11237. >/dev/null 2>conftest.err &&
  11238. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11239. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11240. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11241. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11242. # icc doesn't choke on unknown options, it will just issue warnings
  11243. # or remarks (even with -Werror). So we grep stderr for any message
  11244. # that says an option was ignored or not supported.
  11245. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11246. # icc: Command line warning: ignoring option '-M'; no argument required
  11247. # The diagnosis changed in icc 8.0:
  11248. # icc: Command line remark: option '-MP' not supported
  11249. if (grep 'ignoring option' conftest.err ||
  11250. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11251. am_cv_CC_dependencies_compiler_type=$depmode
  11252. break
  11253. fi
  11254. fi
  11255. done
  11256. cd ..
  11257. rm -rf conftest.dir
  11258. else
  11259. am_cv_CC_dependencies_compiler_type=none
  11260. fi
  11261. fi
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11263. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11264. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11265. if
  11266. test "x$enable_dependency_tracking" != xno \
  11267. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11268. am__fastdepCC_TRUE=
  11269. am__fastdepCC_FALSE='#'
  11270. else
  11271. am__fastdepCC_TRUE='#'
  11272. am__fastdepCC_FALSE=
  11273. fi
  11274. # POSIX will say in a future version that running "rm -f" with no argument
  11275. # is OK; and we want to be able to make that assumption in our Makefile
  11276. # recipes. So use an aggressive probe to check that the usage we want is
  11277. # actually supported "in the wild" to an acceptable degree.
  11278. # See automake bug#10828.
  11279. # To make any issue more visible, cause the running configure to be aborted
  11280. # by default if the 'rm' program in use doesn't match our expectations; the
  11281. # user can still override this though.
  11282. if rm -f && rm -fr && rm -rf; then : OK; else
  11283. cat >&2 <<'END'
  11284. Oops!
  11285. Your 'rm' program seems unable to run without file operands specified
  11286. on the command line, even when the '-f' option is present. This is contrary
  11287. to the behaviour of most rm programs out there, and not conforming with
  11288. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  11289. Please tell bug-automake@gnu.org about your system, including the value
  11290. of your $PATH and any error possibly output before this message. This
  11291. can help us improve future automake versions.
  11292. END
  11293. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  11294. echo 'Configuration will proceed anyway, since you have set the' >&2
  11295. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  11296. echo >&2
  11297. else
  11298. cat >&2 <<'END'
  11299. Aborting the configuration process, to ensure you take notice of the issue.
  11300. You can download and install GNU coreutils to get an 'rm' implementation
  11301. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  11302. If you want to complete the configuration process using your problematic
  11303. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  11304. to "yes", and re-run configure.
  11305. END
  11306. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  11307. fi
  11308. fi
  11309. # Dir for libc replacements
  11310. # needed to handle 64-bit architecture
  11311. # The cast to long int works around a bug in the HP C Compiler
  11312. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11313. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11314. # This bug is HP SR number 8606223364.
  11315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11316. $as_echo_n "checking size of int... " >&6; }
  11317. if ${ac_cv_sizeof_int+:} false; then :
  11318. $as_echo_n "(cached) " >&6
  11319. else
  11320. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11321. else
  11322. if test "$ac_cv_type_int" = yes; then
  11323. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11324. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11325. as_fn_error 77 "cannot compute sizeof (int)
  11326. See \`config.log' for more details" "$LINENO" 5; }
  11327. else
  11328. ac_cv_sizeof_int=0
  11329. fi
  11330. fi
  11331. fi
  11332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11333. $as_echo "$ac_cv_sizeof_int" >&6; }
  11334. cat >>confdefs.h <<_ACEOF
  11335. #define SIZEOF_INT $ac_cv_sizeof_int
  11336. _ACEOF
  11337. # The cast to long int works around a bug in the HP C Compiler
  11338. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11339. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11340. # This bug is HP SR number 8606223364.
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11342. $as_echo_n "checking size of long... " >&6; }
  11343. if ${ac_cv_sizeof_long+:} false; then :
  11344. $as_echo_n "(cached) " >&6
  11345. else
  11346. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11347. else
  11348. if test "$ac_cv_type_long" = yes; then
  11349. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11350. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11351. as_fn_error 77 "cannot compute sizeof (long)
  11352. See \`config.log' for more details" "$LINENO" 5; }
  11353. else
  11354. ac_cv_sizeof_long=0
  11355. fi
  11356. fi
  11357. fi
  11358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11359. $as_echo "$ac_cv_sizeof_long" >&6; }
  11360. cat >>confdefs.h <<_ACEOF
  11361. #define SIZEOF_LONG $ac_cv_sizeof_long
  11362. _ACEOF
  11363. # The cast to long int works around a bug in the HP C Compiler
  11364. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11365. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11366. # This bug is HP SR number 8606223364.
  11367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  11368. $as_echo_n "checking size of size_t... " >&6; }
  11369. if ${ac_cv_sizeof_size_t+:} false; then :
  11370. $as_echo_n "(cached) " >&6
  11371. else
  11372. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  11373. else
  11374. if test "$ac_cv_type_size_t" = yes; then
  11375. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11376. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11377. as_fn_error 77 "cannot compute sizeof (size_t)
  11378. See \`config.log' for more details" "$LINENO" 5; }
  11379. else
  11380. ac_cv_sizeof_size_t=0
  11381. fi
  11382. fi
  11383. fi
  11384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  11385. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  11386. cat >>confdefs.h <<_ACEOF
  11387. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  11388. _ACEOF
  11389. #########################################
  11390. # See if linker supports version scripts
  11391. #########################################
  11392. # Check if LD supports linker scripts,
  11393. # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
  11394. # Check whether --enable-ld-version-script was given.
  11395. if test "${enable_ld_version_script+set}" = set; then :
  11396. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  11397. fi
  11398. if test -z "$have_ld_version_script"; then
  11399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  11400. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  11401. save_LDFLAGS="$LDFLAGS"
  11402. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  11403. cat > conftest.map <<EOF
  11404. VERS_1 {
  11405. global: sym;
  11406. };
  11407. VERS_2 {
  11408. global: sym;
  11409. } VERS_1;
  11410. EOF
  11411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11412. /* end confdefs.h. */
  11413. int main() { return 0; }
  11414. _ACEOF
  11415. if ac_fn_c_try_link "$LINENO"; then :
  11416. have_ld_version_script=yes
  11417. else
  11418. have_ld_version_script=no
  11419. fi
  11420. rm -f core conftest.err conftest.$ac_objext \
  11421. conftest$ac_exeext conftest.$ac_ext
  11422. rm -f conftest.map
  11423. LDFLAGS="$save_LDFLAGS"
  11424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  11425. $as_echo "$have_ld_version_script" >&6; }
  11426. fi
  11427. if test "$have_ld_version_script" = "yes"; then
  11428. HAVE_LD_VERSION_SCRIPT_TRUE=
  11429. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  11430. else
  11431. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  11432. HAVE_LD_VERSION_SCRIPT_FALSE=
  11433. fi
  11434. ################################
  11435. # Deal with debugging options
  11436. ################################
  11437. # Check whether --enable-debug was given.
  11438. if test "${enable_debug+set}" = set; then :
  11439. enableval=$enable_debug;
  11440. else
  11441. enable_debug=no
  11442. fi
  11443. if test x$enable_debug = xyes; then
  11444. DEBUG_TRUE=
  11445. DEBUG_FALSE='#'
  11446. else
  11447. DEBUG_TRUE='#'
  11448. DEBUG_FALSE=
  11449. fi
  11450. ################################
  11451. # Compile in testc tests
  11452. ################################
  11453. # Check whether --enable-testc was given.
  11454. if test "${enable_testc+set}" = set; then :
  11455. enableval=$enable_testc;
  11456. else
  11457. enable_testc=no
  11458. fi
  11459. if test x$enable_testc = xyes; then
  11460. TESTC_TRUE=
  11461. TESTC_FALSE='#'
  11462. else
  11463. TESTC_TRUE='#'
  11464. TESTC_FALSE=
  11465. fi
  11466. ################################
  11467. # Internal getopt()
  11468. ################################
  11469. # Check whether --with-internal-getopt was given.
  11470. if test "${with_internal_getopt+set}" = set; then :
  11471. withval=$with_internal_getopt;
  11472. else
  11473. with_internal_getopt=no
  11474. fi
  11475. if test x$with_internal_getopt != xno; then
  11476. $as_echo "#define WITH_INTERNAL_GETOPT 1" >>confdefs.h
  11477. case " $LIBOBJS " in
  11478. *" getopt.$ac_objext "* ) ;;
  11479. *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
  11480. ;;
  11481. esac
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use internal implementation of getopt() and getopt_long()" >&5
  11483. $as_echo "$as_me: WARNING: Use internal implementation of getopt() and getopt_long()" >&2;}
  11484. else
  11485. for ac_header in getopt.h
  11486. do :
  11487. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  11488. if test "x$ac_cv_header_getopt_h" = xyes; then :
  11489. cat >>confdefs.h <<_ACEOF
  11490. #define HAVE_GETOPT_H 1
  11491. _ACEOF
  11492. found_getopt_h=yes
  11493. else
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  11495. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  11496. fi
  11497. done
  11498. fi
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long()" >&5
  11500. $as_echo_n "checking for getopt_long()... " >&6; }
  11501. if test x$with_internal_getopt = xyes -o x$found_getopt_h = xyes; then
  11502. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11504. $as_echo "yes" >&6; }
  11505. else
  11506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11507. $as_echo "no" >&6; }
  11508. fi
  11509. ################################
  11510. # Check for locale.h
  11511. ################################
  11512. for ac_header in locale.h
  11513. do :
  11514. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  11515. if test "x$ac_cv_header_locale_h" = xyes; then :
  11516. cat >>confdefs.h <<_ACEOF
  11517. #define HAVE_LOCALE_H 1
  11518. _ACEOF
  11519. else
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  11521. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  11522. fi
  11523. done
  11524. ################################
  11525. # Check for CODESET within nl_langinfo
  11526. ################################
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11528. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11529. if ${am_cv_langinfo_codeset+:} false; then :
  11530. $as_echo_n "(cached) " >&6
  11531. else
  11532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11533. /* end confdefs.h. */
  11534. #include <langinfo.h>
  11535. int
  11536. main ()
  11537. {
  11538. char* cs = nl_langinfo(CODESET); return !cs;
  11539. ;
  11540. return 0;
  11541. }
  11542. _ACEOF
  11543. if ac_fn_c_try_link "$LINENO"; then :
  11544. am_cv_langinfo_codeset=yes
  11545. else
  11546. am_cv_langinfo_codeset=no
  11547. fi
  11548. rm -f core conftest.err conftest.$ac_objext \
  11549. conftest$ac_exeext conftest.$ac_ext
  11550. fi
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11552. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11553. if test $am_cv_langinfo_codeset = yes; then
  11554. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11555. fi
  11556. ################################
  11557. # Check for pwd.h and grp.h
  11558. ################################
  11559. for ac_header in pwd.h
  11560. do :
  11561. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  11562. if test "x$ac_cv_header_pwd_h" = xyes; then :
  11563. cat >>confdefs.h <<_ACEOF
  11564. #define HAVE_PWD_H 1
  11565. _ACEOF
  11566. else
  11567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  11568. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  11569. fi
  11570. done
  11571. for ac_header in grp.h
  11572. do :
  11573. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  11574. if test "x$ac_cv_header_grp_h" = xyes; then :
  11575. cat >>confdefs.h <<_ACEOF
  11576. #define HAVE_GRP_H 1
  11577. _ACEOF
  11578. else
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  11580. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  11581. fi
  11582. done
  11583. ################################
  11584. # Check for dlopen()
  11585. ################################
  11586. for ac_header in dlfcn.h
  11587. do :
  11588. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  11589. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  11590. cat >>confdefs.h <<_ACEOF
  11591. #define HAVE_DLFCN_H 1
  11592. _ACEOF
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  11594. $as_echo_n "checking for library containing dlopen... " >&6; }
  11595. if ${ac_cv_search_dlopen+:} false; then :
  11596. $as_echo_n "(cached) " >&6
  11597. else
  11598. ac_func_search_save_LIBS=$LIBS
  11599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11600. /* end confdefs.h. */
  11601. /* Override any GCC internal prototype to avoid an error.
  11602. Use char because int might match the return type of a GCC
  11603. builtin and then its argument prototype would still apply. */
  11604. #ifdef __cplusplus
  11605. extern "C"
  11606. #endif
  11607. char dlopen ();
  11608. int
  11609. main ()
  11610. {
  11611. return dlopen ();
  11612. ;
  11613. return 0;
  11614. }
  11615. _ACEOF
  11616. for ac_lib in '' dl dld; do
  11617. if test -z "$ac_lib"; then
  11618. ac_res="none required"
  11619. else
  11620. ac_res=-l$ac_lib
  11621. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11622. fi
  11623. if ac_fn_c_try_link "$LINENO"; then :
  11624. ac_cv_search_dlopen=$ac_res
  11625. fi
  11626. rm -f core conftest.err conftest.$ac_objext \
  11627. conftest$ac_exeext
  11628. if ${ac_cv_search_dlopen+:} false; then :
  11629. break
  11630. fi
  11631. done
  11632. if ${ac_cv_search_dlopen+:} false; then :
  11633. else
  11634. ac_cv_search_dlopen=no
  11635. fi
  11636. rm conftest.$ac_ext
  11637. LIBS=$ac_func_search_save_LIBS
  11638. fi
  11639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  11640. $as_echo "$ac_cv_search_dlopen" >&6; }
  11641. ac_res=$ac_cv_search_dlopen
  11642. if test "$ac_res" != no; then :
  11643. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11644. else
  11645. as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
  11646. fi
  11647. else
  11648. as_fn_error $? "dlfcn.h not found: the dl operations is not supported" "$LINENO" 5
  11649. fi
  11650. done
  11651. ################################
  11652. # Check for pthread
  11653. ################################
  11654. # library's net_io.c needs pthread_sigmask()
  11655. ac_ext=c
  11656. ac_cpp='$CPP $CPPFLAGS'
  11657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11660. ax_pthread_ok=no
  11661. # We used to check for pthread.h first, but this fails if pthread.h
  11662. # requires special compiler flags (e.g. on Tru64 or Sequent).
  11663. # It gets checked for in the link test anyway.
  11664. # First of all, check if the user has set any of the PTHREAD_LIBS,
  11665. # etcetera environment variables, and if threads linking works using
  11666. # them:
  11667. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  11668. ax_pthread_save_CC="$CC"
  11669. ax_pthread_save_CFLAGS="$CFLAGS"
  11670. ax_pthread_save_LIBS="$LIBS"
  11671. if test "x$PTHREAD_CC" != "x"; then :
  11672. CC="$PTHREAD_CC"
  11673. fi
  11674. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  11675. LIBS="$PTHREAD_LIBS $LIBS"
  11676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  11677. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  11678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11679. /* end confdefs.h. */
  11680. /* Override any GCC internal prototype to avoid an error.
  11681. Use char because int might match the return type of a GCC
  11682. builtin and then its argument prototype would still apply. */
  11683. #ifdef __cplusplus
  11684. extern "C"
  11685. #endif
  11686. char pthread_join ();
  11687. int
  11688. main ()
  11689. {
  11690. return pthread_join ();
  11691. ;
  11692. return 0;
  11693. }
  11694. _ACEOF
  11695. if ac_fn_c_try_link "$LINENO"; then :
  11696. ax_pthread_ok=yes
  11697. fi
  11698. rm -f core conftest.err conftest.$ac_objext \
  11699. conftest$ac_exeext conftest.$ac_ext
  11700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  11701. $as_echo "$ax_pthread_ok" >&6; }
  11702. if test "x$ax_pthread_ok" = "xno"; then
  11703. PTHREAD_LIBS=""
  11704. PTHREAD_CFLAGS=""
  11705. fi
  11706. CC="$ax_pthread_save_CC"
  11707. CFLAGS="$ax_pthread_save_CFLAGS"
  11708. LIBS="$ax_pthread_save_LIBS"
  11709. fi
  11710. # We must check for the threads library under a number of different
  11711. # names; the ordering is very important because some systems
  11712. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  11713. # libraries is broken (non-POSIX).
  11714. # Create a list of thread flags to try. Items with a "," contain both
  11715. # C compiler flags (before ",") and linker flags (after ","). Other items
  11716. # starting with a "-" are C compiler flags, and remaining items are
  11717. # library names, except for "none" which indicates that we try without
  11718. # any flags at all, and "pthread-config" which is a program returning
  11719. # the flags for the Pth emulation library.
  11720. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  11721. # The ordering *is* (sometimes) important. Some notes on the
  11722. # individual items follow:
  11723. # pthreads: AIX (must check this before -lpthread)
  11724. # none: in case threads are in libc; should be tried before -Kthread and
  11725. # other compiler flags to prevent continual compiler warnings
  11726. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  11727. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  11728. # (Note: HP C rejects this with "bad form for `-t' option")
  11729. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  11730. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  11731. # doesn't hurt to check since this sometimes defines pthreads and
  11732. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  11733. # is present but should not be used directly; and before -mthreads,
  11734. # because the compiler interprets this as "-mt" + "-hreads")
  11735. # -mthreads: Mingw32/gcc, Lynx/gcc
  11736. # pthread: Linux, etcetera
  11737. # --thread-safe: KAI C++
  11738. # pthread-config: use pthread-config program (for GNU Pth library)
  11739. case $host_os in
  11740. freebsd*)
  11741. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  11742. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  11743. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  11744. ;;
  11745. hpux*)
  11746. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  11747. # multi-threading and also sets -lpthread."
  11748. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  11749. ;;
  11750. openedition*)
  11751. # IBM z/OS requires a feature-test macro to be defined in order to
  11752. # enable POSIX threads at all, so give the user a hint if this is
  11753. # not set. (We don't define these ourselves, as they can affect
  11754. # other portions of the system API in unpredictable ways.)
  11755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11756. /* end confdefs.h. */
  11757. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  11758. AX_PTHREAD_ZOS_MISSING
  11759. # endif
  11760. _ACEOF
  11761. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11762. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  11763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  11764. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  11765. fi
  11766. rm -f conftest*
  11767. ;;
  11768. solaris*)
  11769. # On Solaris (at least, for some versions), libc contains stubbed
  11770. # (non-functional) versions of the pthreads routines, so link-based
  11771. # tests will erroneously succeed. (N.B.: The stubs are missing
  11772. # pthread_cleanup_push, or rather a function called by this macro,
  11773. # so we could check for that, but who knows whether they'll stub
  11774. # that too in a future libc.) So we'll check first for the
  11775. # standard Solaris way of linking pthreads (-mt -lpthread).
  11776. ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
  11777. ;;
  11778. esac
  11779. # Are we compiling with Clang?
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  11781. $as_echo_n "checking whether $CC is Clang... " >&6; }
  11782. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  11783. $as_echo_n "(cached) " >&6
  11784. else
  11785. ax_cv_PTHREAD_CLANG=no
  11786. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  11787. if test "x$GCC" = "xyes"; then
  11788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11789. /* end confdefs.h. */
  11790. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  11791. # if defined(__clang__) && defined(__llvm__)
  11792. AX_PTHREAD_CC_IS_CLANG
  11793. # endif
  11794. _ACEOF
  11795. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11796. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  11797. ax_cv_PTHREAD_CLANG=yes
  11798. fi
  11799. rm -f conftest*
  11800. fi
  11801. fi
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  11803. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  11804. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  11805. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  11806. # Note that for GCC and Clang -pthread generally implies -lpthread,
  11807. # except when -nostdlib is passed.
  11808. # This is problematic using libtool to build C++ shared libraries with pthread:
  11809. # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
  11810. # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
  11811. # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
  11812. # To solve this, first try -pthread together with -lpthread for GCC
  11813. if test "x$GCC" = "xyes"; then :
  11814. ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
  11815. fi
  11816. # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
  11817. if test "x$ax_pthread_clang" = "xyes"; then :
  11818. ax_pthread_flags="-pthread,-lpthread -pthread"
  11819. fi
  11820. # The presence of a feature test macro requesting re-entrant function
  11821. # definitions is, on some systems, a strong hint that pthreads support is
  11822. # correctly enabled
  11823. case $host_os in
  11824. darwin* | hpux* | linux* | osf* | solaris*)
  11825. ax_pthread_check_macro="_REENTRANT"
  11826. ;;
  11827. aix*)
  11828. ax_pthread_check_macro="_THREAD_SAFE"
  11829. ;;
  11830. *)
  11831. ax_pthread_check_macro="--"
  11832. ;;
  11833. esac
  11834. if test "x$ax_pthread_check_macro" = "x--"; then :
  11835. ax_pthread_check_cond=0
  11836. else
  11837. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  11838. fi
  11839. if test "x$ax_pthread_ok" = "xno"; then
  11840. for ax_pthread_try_flag in $ax_pthread_flags; do
  11841. case $ax_pthread_try_flag in
  11842. none)
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  11844. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  11845. ;;
  11846. *,*)
  11847. PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
  11848. PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
  11850. $as_echo_n "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
  11851. ;;
  11852. -*)
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  11854. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  11855. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  11856. ;;
  11857. pthread-config)
  11858. # Extract the first word of "pthread-config", so it can be a program name with args.
  11859. set dummy pthread-config; ac_word=$2
  11860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11861. $as_echo_n "checking for $ac_word... " >&6; }
  11862. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  11863. $as_echo_n "(cached) " >&6
  11864. else
  11865. if test -n "$ax_pthread_config"; then
  11866. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  11867. else
  11868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11869. for as_dir in $PATH
  11870. do
  11871. IFS=$as_save_IFS
  11872. test -z "$as_dir" && as_dir=.
  11873. for ac_exec_ext in '' $ac_executable_extensions; do
  11874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11875. ac_cv_prog_ax_pthread_config="yes"
  11876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11877. break 2
  11878. fi
  11879. done
  11880. done
  11881. IFS=$as_save_IFS
  11882. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  11883. fi
  11884. fi
  11885. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  11886. if test -n "$ax_pthread_config"; then
  11887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  11888. $as_echo "$ax_pthread_config" >&6; }
  11889. else
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11891. $as_echo "no" >&6; }
  11892. fi
  11893. if test "x$ax_pthread_config" = "xno"; then :
  11894. continue
  11895. fi
  11896. PTHREAD_CFLAGS="`pthread-config --cflags`"
  11897. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  11898. ;;
  11899. *)
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  11901. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  11902. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  11903. ;;
  11904. esac
  11905. ax_pthread_save_CFLAGS="$CFLAGS"
  11906. ax_pthread_save_LIBS="$LIBS"
  11907. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  11908. LIBS="$PTHREAD_LIBS $LIBS"
  11909. # Check for various functions. We must include pthread.h,
  11910. # since some functions may be macros. (On the Sequent, we
  11911. # need a special flag -Kthread to make this header compile.)
  11912. # We check for pthread_join because it is in -lpthread on IRIX
  11913. # while pthread_create is in libc. We check for pthread_attr_init
  11914. # due to DEC craziness with -lpthreads. We check for
  11915. # pthread_cleanup_push because it is one of the few pthread
  11916. # functions on Solaris that doesn't have a non-functional libc stub.
  11917. # We try pthread_create on general principles.
  11918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11919. /* end confdefs.h. */
  11920. #include <pthread.h>
  11921. # if $ax_pthread_check_cond
  11922. # error "$ax_pthread_check_macro must be defined"
  11923. # endif
  11924. static void *some_global = NULL;
  11925. static void routine(void *a)
  11926. {
  11927. /* To avoid any unused-parameter or
  11928. unused-but-set-parameter warning. */
  11929. some_global = a;
  11930. }
  11931. static void *start_routine(void *a) { return a; }
  11932. int
  11933. main ()
  11934. {
  11935. pthread_t th; pthread_attr_t attr;
  11936. pthread_create(&th, 0, start_routine, 0);
  11937. pthread_join(th, 0);
  11938. pthread_attr_init(&attr);
  11939. pthread_cleanup_push(routine, 0);
  11940. pthread_cleanup_pop(0) /* ; */
  11941. ;
  11942. return 0;
  11943. }
  11944. _ACEOF
  11945. if ac_fn_c_try_link "$LINENO"; then :
  11946. ax_pthread_ok=yes
  11947. fi
  11948. rm -f core conftest.err conftest.$ac_objext \
  11949. conftest$ac_exeext conftest.$ac_ext
  11950. CFLAGS="$ax_pthread_save_CFLAGS"
  11951. LIBS="$ax_pthread_save_LIBS"
  11952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  11953. $as_echo "$ax_pthread_ok" >&6; }
  11954. if test "x$ax_pthread_ok" = "xyes"; then :
  11955. break
  11956. fi
  11957. PTHREAD_LIBS=""
  11958. PTHREAD_CFLAGS=""
  11959. done
  11960. fi
  11961. # Clang needs special handling, because older versions handle the -pthread
  11962. # option in a rather... idiosyncratic way
  11963. if test "x$ax_pthread_clang" = "xyes"; then
  11964. # Clang takes -pthread; it has never supported any other flag
  11965. # (Note 1: This will need to be revisited if a system that Clang
  11966. # supports has POSIX threads in a separate library. This tends not
  11967. # to be the way of modern systems, but it's conceivable.)
  11968. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  11969. # to get POSIX threads support; the API is always present and
  11970. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  11971. # -pthread does define _REENTRANT, and while the Darwin headers
  11972. # ignore this macro, third-party headers might not.)
  11973. # However, older versions of Clang make a point of warning the user
  11974. # that, in an invocation where only linking and no compilation is
  11975. # taking place, the -pthread option has no effect ("argument unused
  11976. # during compilation"). They expect -pthread to be passed in only
  11977. # when source code is being compiled.
  11978. #
  11979. # Problem is, this is at odds with the way Automake and most other
  11980. # C build frameworks function, which is that the same flags used in
  11981. # compilation (CFLAGS) are also used in linking. Many systems
  11982. # supported by AX_PTHREAD require exactly this for POSIX threads
  11983. # support, and in fact it is often not straightforward to specify a
  11984. # flag that is used only in the compilation phase and not in
  11985. # linking. Such a scenario is extremely rare in practice.
  11986. #
  11987. # Even though use of the -pthread flag in linking would only print
  11988. # a warning, this can be a nuisance for well-run software projects
  11989. # that build with -Werror. So if the active version of Clang has
  11990. # this misfeature, we search for an option to squash it.
  11991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  11992. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  11993. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  11994. $as_echo_n "(cached) " >&6
  11995. else
  11996. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  11997. # Create an alternate version of $ac_link that compiles and
  11998. # links in two steps (.c -> .o, .o -> exe) instead of one
  11999. # (.c -> exe), because the warning occurs only in the second
  12000. # step
  12001. ax_pthread_save_ac_link="$ac_link"
  12002. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  12003. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  12004. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  12005. ax_pthread_save_CFLAGS="$CFLAGS"
  12006. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  12007. if test "x$ax_pthread_try" = "xunknown"; then :
  12008. break
  12009. fi
  12010. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  12011. ac_link="$ax_pthread_save_ac_link"
  12012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12013. /* end confdefs.h. */
  12014. int main(void){return 0;}
  12015. _ACEOF
  12016. if ac_fn_c_try_link "$LINENO"; then :
  12017. ac_link="$ax_pthread_2step_ac_link"
  12018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12019. /* end confdefs.h. */
  12020. int main(void){return 0;}
  12021. _ACEOF
  12022. if ac_fn_c_try_link "$LINENO"; then :
  12023. break
  12024. fi
  12025. rm -f core conftest.err conftest.$ac_objext \
  12026. conftest$ac_exeext conftest.$ac_ext
  12027. fi
  12028. rm -f core conftest.err conftest.$ac_objext \
  12029. conftest$ac_exeext conftest.$ac_ext
  12030. done
  12031. ac_link="$ax_pthread_save_ac_link"
  12032. CFLAGS="$ax_pthread_save_CFLAGS"
  12033. if test "x$ax_pthread_try" = "x"; then :
  12034. ax_pthread_try=no
  12035. fi
  12036. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  12037. fi
  12038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  12039. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  12040. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  12041. no | unknown) ;;
  12042. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  12043. esac
  12044. fi # $ax_pthread_clang = yes
  12045. # Various other checks:
  12046. if test "x$ax_pthread_ok" = "xyes"; then
  12047. ax_pthread_save_CFLAGS="$CFLAGS"
  12048. ax_pthread_save_LIBS="$LIBS"
  12049. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12050. LIBS="$PTHREAD_LIBS $LIBS"
  12051. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  12052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  12053. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  12054. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  12055. $as_echo_n "(cached) " >&6
  12056. else
  12057. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  12058. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  12059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12060. /* end confdefs.h. */
  12061. #include <pthread.h>
  12062. int
  12063. main ()
  12064. {
  12065. int attr = $ax_pthread_attr; return attr /* ; */
  12066. ;
  12067. return 0;
  12068. }
  12069. _ACEOF
  12070. if ac_fn_c_try_link "$LINENO"; then :
  12071. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  12072. fi
  12073. rm -f core conftest.err conftest.$ac_objext \
  12074. conftest$ac_exeext conftest.$ac_ext
  12075. done
  12076. fi
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  12078. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  12079. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  12080. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  12081. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  12082. cat >>confdefs.h <<_ACEOF
  12083. #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  12084. _ACEOF
  12085. ax_pthread_joinable_attr_defined=yes
  12086. fi
  12087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  12088. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  12089. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  12090. $as_echo_n "(cached) " >&6
  12091. else
  12092. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  12093. case $host_os in
  12094. solaris*)
  12095. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  12096. ;;
  12097. esac
  12098. fi
  12099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  12100. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  12101. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  12102. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  12103. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  12104. ax_pthread_special_flags_added=yes
  12105. fi
  12106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  12107. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  12108. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  12109. $as_echo_n "(cached) " >&6
  12110. else
  12111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12112. /* end confdefs.h. */
  12113. #include <pthread.h>
  12114. int
  12115. main ()
  12116. {
  12117. int i = PTHREAD_PRIO_INHERIT;
  12118. return i;
  12119. ;
  12120. return 0;
  12121. }
  12122. _ACEOF
  12123. if ac_fn_c_try_link "$LINENO"; then :
  12124. ax_cv_PTHREAD_PRIO_INHERIT=yes
  12125. else
  12126. ax_cv_PTHREAD_PRIO_INHERIT=no
  12127. fi
  12128. rm -f core conftest.err conftest.$ac_objext \
  12129. conftest$ac_exeext conftest.$ac_ext
  12130. fi
  12131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  12132. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  12133. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  12134. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  12135. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  12136. ax_pthread_prio_inherit_defined=yes
  12137. fi
  12138. CFLAGS="$ax_pthread_save_CFLAGS"
  12139. LIBS="$ax_pthread_save_LIBS"
  12140. # More AIX lossage: compile with *_r variant
  12141. if test "x$GCC" != "xyes"; then
  12142. case $host_os in
  12143. aix*)
  12144. case "x/$CC" in #(
  12145. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  12146. #handle absolute path differently from PATH based program lookup
  12147. case "x$CC" in #(
  12148. x/*) :
  12149. if as_fn_executable_p ${CC}_r; then :
  12150. PTHREAD_CC="${CC}_r"
  12151. fi ;; #(
  12152. *) :
  12153. for ac_prog in ${CC}_r
  12154. do
  12155. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12156. set dummy $ac_prog; ac_word=$2
  12157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12158. $as_echo_n "checking for $ac_word... " >&6; }
  12159. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  12160. $as_echo_n "(cached) " >&6
  12161. else
  12162. if test -n "$PTHREAD_CC"; then
  12163. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  12164. else
  12165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12166. for as_dir in $PATH
  12167. do
  12168. IFS=$as_save_IFS
  12169. test -z "$as_dir" && as_dir=.
  12170. for ac_exec_ext in '' $ac_executable_extensions; do
  12171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12172. ac_cv_prog_PTHREAD_CC="$ac_prog"
  12173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12174. break 2
  12175. fi
  12176. done
  12177. done
  12178. IFS=$as_save_IFS
  12179. fi
  12180. fi
  12181. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  12182. if test -n "$PTHREAD_CC"; then
  12183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  12184. $as_echo "$PTHREAD_CC" >&6; }
  12185. else
  12186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12187. $as_echo "no" >&6; }
  12188. fi
  12189. test -n "$PTHREAD_CC" && break
  12190. done
  12191. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  12192. ;;
  12193. esac ;; #(
  12194. *) :
  12195. ;;
  12196. esac
  12197. ;;
  12198. esac
  12199. fi
  12200. fi
  12201. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  12202. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  12203. if test "x$ax_pthread_ok" = "xyes"; then
  12204. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  12205. :
  12206. else
  12207. ax_pthread_ok=no
  12208. fi
  12209. ac_ext=c
  12210. ac_cpp='$CPP $CPPFLAGS'
  12211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12214. ################################
  12215. # Check for signalfd()
  12216. ################################
  12217. for ac_func in signalfd
  12218. do :
  12219. ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
  12220. if test "x$ac_cv_func_signalfd" = xyes; then :
  12221. cat >>confdefs.h <<_ACEOF
  12222. #define HAVE_SIGNALFD 1
  12223. _ACEOF
  12224. else
  12225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: signalfd() not found: more complex mechanism will be used" >&5
  12226. $as_echo "$as_me: WARNING: signalfd() not found: more complex mechanism will be used" >&2;}
  12227. fi
  12228. done
  12229. ################################
  12230. # Check for ppoll()
  12231. ################################
  12232. for ac_func in ppoll
  12233. do :
  12234. ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
  12235. if test "x$ac_cv_func_ppoll" = xyes; then :
  12236. cat >>confdefs.h <<_ACEOF
  12237. #define HAVE_PPOLL 1
  12238. _ACEOF
  12239. else
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ppoll() not found: more complex mechanism will be used" >&5
  12241. $as_echo "$as_me: WARNING: ppoll() not found: more complex mechanism will be used" >&2;}
  12242. fi
  12243. done
  12244. ac_config_files="$ac_config_files Makefile"
  12245. cat >confcache <<\_ACEOF
  12246. # This file is a shell script that caches the results of configure
  12247. # tests run on this system so they can be shared between configure
  12248. # scripts and configure runs, see configure's option --config-cache.
  12249. # It is not useful on other systems. If it contains results you don't
  12250. # want to keep, you may remove or edit it.
  12251. #
  12252. # config.status only pays attention to the cache file if you give it
  12253. # the --recheck option to rerun configure.
  12254. #
  12255. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12256. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12257. # following values.
  12258. _ACEOF
  12259. # The following way of writing the cache mishandles newlines in values,
  12260. # but we know of no workaround that is simple, portable, and efficient.
  12261. # So, we kill variables containing newlines.
  12262. # Ultrix sh set writes to stderr and can't be redirected directly,
  12263. # and sets the high bit in the cache file unless we assign to the vars.
  12264. (
  12265. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12266. eval ac_val=\$$ac_var
  12267. case $ac_val in #(
  12268. *${as_nl}*)
  12269. case $ac_var in #(
  12270. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12271. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12272. esac
  12273. case $ac_var in #(
  12274. _ | IFS | as_nl) ;; #(
  12275. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12276. *) { eval $ac_var=; unset $ac_var;} ;;
  12277. esac ;;
  12278. esac
  12279. done
  12280. (set) 2>&1 |
  12281. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12282. *${as_nl}ac_space=\ *)
  12283. # `set' does not quote correctly, so add quotes: double-quote
  12284. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12285. sed -n \
  12286. "s/'/'\\\\''/g;
  12287. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12288. ;; #(
  12289. *)
  12290. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12291. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12292. ;;
  12293. esac |
  12294. sort
  12295. ) |
  12296. sed '
  12297. /^ac_cv_env_/b end
  12298. t clear
  12299. :clear
  12300. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12301. t end
  12302. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12303. :end' >>confcache
  12304. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12305. if test -w "$cache_file"; then
  12306. if test "x$cache_file" != "x/dev/null"; then
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12308. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12309. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12310. cat confcache >"$cache_file"
  12311. else
  12312. case $cache_file in #(
  12313. */* | ?:*)
  12314. mv -f confcache "$cache_file"$$ &&
  12315. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12316. *)
  12317. mv -f confcache "$cache_file" ;;
  12318. esac
  12319. fi
  12320. fi
  12321. else
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12323. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12324. fi
  12325. fi
  12326. rm -f confcache
  12327. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12328. # Let make expand exec_prefix.
  12329. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12330. DEFS=-DHAVE_CONFIG_H
  12331. ac_libobjs=
  12332. ac_ltlibobjs=
  12333. U=
  12334. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12335. # 1. Remove the extension, and $U if already installed.
  12336. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12337. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12338. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12339. # will be set to the directory where LIBOBJS objects are built.
  12340. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12341. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12342. done
  12343. LIBOBJS=$ac_libobjs
  12344. LTLIBOBJS=$ac_ltlibobjs
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12346. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12347. if test -n "$am_sleep_pid"; then
  12348. # Hide warnings about reused PIDs.
  12349. wait $am_sleep_pid 2>/dev/null
  12350. fi
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12352. $as_echo "done" >&6; }
  12353. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12354. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12355. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12356. fi
  12357. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12358. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12359. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12360. fi
  12361. if test -n "$EXEEXT"; then
  12362. am__EXEEXT_TRUE=
  12363. am__EXEEXT_FALSE='#'
  12364. else
  12365. am__EXEEXT_TRUE='#'
  12366. am__EXEEXT_FALSE=
  12367. fi
  12368. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  12369. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  12370. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12371. fi
  12372. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  12373. as_fn_error $? "conditional \"DEBUG\" was never defined.
  12374. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12375. fi
  12376. if test -z "${TESTC_TRUE}" && test -z "${TESTC_FALSE}"; then
  12377. as_fn_error $? "conditional \"TESTC\" was never defined.
  12378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12379. fi
  12380. : "${CONFIG_STATUS=./config.status}"
  12381. ac_write_fail=0
  12382. ac_clean_files_save=$ac_clean_files
  12383. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12384. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12385. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12386. as_write_fail=0
  12387. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12388. #! $SHELL
  12389. # Generated by $as_me.
  12390. # Run this file to recreate the current configuration.
  12391. # Compiler output produced by configure, useful for debugging
  12392. # configure, is in config.log if it exists.
  12393. debug=false
  12394. ac_cs_recheck=false
  12395. ac_cs_silent=false
  12396. SHELL=\${CONFIG_SHELL-$SHELL}
  12397. export SHELL
  12398. _ASEOF
  12399. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12400. ## -------------------- ##
  12401. ## M4sh Initialization. ##
  12402. ## -------------------- ##
  12403. # Be more Bourne compatible
  12404. DUALCASE=1; export DUALCASE # for MKS sh
  12405. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12406. emulate sh
  12407. NULLCMD=:
  12408. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12409. # is contrary to our usage. Disable this feature.
  12410. alias -g '${1+"$@"}'='"$@"'
  12411. setopt NO_GLOB_SUBST
  12412. else
  12413. case `(set -o) 2>/dev/null` in #(
  12414. *posix*) :
  12415. set -o posix ;; #(
  12416. *) :
  12417. ;;
  12418. esac
  12419. fi
  12420. as_nl='
  12421. '
  12422. export as_nl
  12423. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12424. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12425. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12426. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12427. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12428. # but without wasting forks for bash or zsh.
  12429. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12430. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12431. as_echo='print -r --'
  12432. as_echo_n='print -rn --'
  12433. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12434. as_echo='printf %s\n'
  12435. as_echo_n='printf %s'
  12436. else
  12437. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12438. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12439. as_echo_n='/usr/ucb/echo -n'
  12440. else
  12441. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12442. as_echo_n_body='eval
  12443. arg=$1;
  12444. case $arg in #(
  12445. *"$as_nl"*)
  12446. expr "X$arg" : "X\\(.*\\)$as_nl";
  12447. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12448. esac;
  12449. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12450. '
  12451. export as_echo_n_body
  12452. as_echo_n='sh -c $as_echo_n_body as_echo'
  12453. fi
  12454. export as_echo_body
  12455. as_echo='sh -c $as_echo_body as_echo'
  12456. fi
  12457. # The user is always right.
  12458. if test "${PATH_SEPARATOR+set}" != set; then
  12459. PATH_SEPARATOR=:
  12460. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12461. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12462. PATH_SEPARATOR=';'
  12463. }
  12464. fi
  12465. # IFS
  12466. # We need space, tab and new line, in precisely that order. Quoting is
  12467. # there to prevent editors from complaining about space-tab.
  12468. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12469. # splitting by setting IFS to empty value.)
  12470. IFS=" "" $as_nl"
  12471. # Find who we are. Look in the path if we contain no directory separator.
  12472. as_myself=
  12473. case $0 in #((
  12474. *[\\/]* ) as_myself=$0 ;;
  12475. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12476. for as_dir in $PATH
  12477. do
  12478. IFS=$as_save_IFS
  12479. test -z "$as_dir" && as_dir=.
  12480. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12481. done
  12482. IFS=$as_save_IFS
  12483. ;;
  12484. esac
  12485. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12486. # in which case we are not to be found in the path.
  12487. if test "x$as_myself" = x; then
  12488. as_myself=$0
  12489. fi
  12490. if test ! -f "$as_myself"; then
  12491. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12492. exit 1
  12493. fi
  12494. # Unset variables that we do not need and which cause bugs (e.g. in
  12495. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12496. # suppresses any "Segmentation fault" message there. '((' could
  12497. # trigger a bug in pdksh 5.2.14.
  12498. for as_var in BASH_ENV ENV MAIL MAILPATH
  12499. do eval test x\${$as_var+set} = xset \
  12500. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12501. done
  12502. PS1='$ '
  12503. PS2='> '
  12504. PS4='+ '
  12505. # NLS nuisances.
  12506. LC_ALL=C
  12507. export LC_ALL
  12508. LANGUAGE=C
  12509. export LANGUAGE
  12510. # CDPATH.
  12511. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12512. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12513. # ----------------------------------------
  12514. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12515. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12516. # script with STATUS, using 1 if that was 0.
  12517. as_fn_error ()
  12518. {
  12519. as_status=$1; test $as_status -eq 0 && as_status=1
  12520. if test "$4"; then
  12521. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12522. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12523. fi
  12524. $as_echo "$as_me: error: $2" >&2
  12525. as_fn_exit $as_status
  12526. } # as_fn_error
  12527. # as_fn_set_status STATUS
  12528. # -----------------------
  12529. # Set $? to STATUS, without forking.
  12530. as_fn_set_status ()
  12531. {
  12532. return $1
  12533. } # as_fn_set_status
  12534. # as_fn_exit STATUS
  12535. # -----------------
  12536. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12537. as_fn_exit ()
  12538. {
  12539. set +e
  12540. as_fn_set_status $1
  12541. exit $1
  12542. } # as_fn_exit
  12543. # as_fn_unset VAR
  12544. # ---------------
  12545. # Portably unset VAR.
  12546. as_fn_unset ()
  12547. {
  12548. { eval $1=; unset $1;}
  12549. }
  12550. as_unset=as_fn_unset
  12551. # as_fn_append VAR VALUE
  12552. # ----------------------
  12553. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12554. # advantage of any shell optimizations that allow amortized linear growth over
  12555. # repeated appends, instead of the typical quadratic growth present in naive
  12556. # implementations.
  12557. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12558. eval 'as_fn_append ()
  12559. {
  12560. eval $1+=\$2
  12561. }'
  12562. else
  12563. as_fn_append ()
  12564. {
  12565. eval $1=\$$1\$2
  12566. }
  12567. fi # as_fn_append
  12568. # as_fn_arith ARG...
  12569. # ------------------
  12570. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12571. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12572. # must be portable across $(()) and expr.
  12573. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12574. eval 'as_fn_arith ()
  12575. {
  12576. as_val=$(( $* ))
  12577. }'
  12578. else
  12579. as_fn_arith ()
  12580. {
  12581. as_val=`expr "$@" || test $? -eq 1`
  12582. }
  12583. fi # as_fn_arith
  12584. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12585. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12586. as_expr=expr
  12587. else
  12588. as_expr=false
  12589. fi
  12590. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12591. as_basename=basename
  12592. else
  12593. as_basename=false
  12594. fi
  12595. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12596. as_dirname=dirname
  12597. else
  12598. as_dirname=false
  12599. fi
  12600. as_me=`$as_basename -- "$0" ||
  12601. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12602. X"$0" : 'X\(//\)$' \| \
  12603. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12604. $as_echo X/"$0" |
  12605. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12606. s//\1/
  12607. q
  12608. }
  12609. /^X\/\(\/\/\)$/{
  12610. s//\1/
  12611. q
  12612. }
  12613. /^X\/\(\/\).*/{
  12614. s//\1/
  12615. q
  12616. }
  12617. s/.*/./; q'`
  12618. # Avoid depending upon Character Ranges.
  12619. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12620. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12621. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12622. as_cr_digits='0123456789'
  12623. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12624. ECHO_C= ECHO_N= ECHO_T=
  12625. case `echo -n x` in #(((((
  12626. -n*)
  12627. case `echo 'xy\c'` in
  12628. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12629. xy) ECHO_C='\c';;
  12630. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12631. ECHO_T=' ';;
  12632. esac;;
  12633. *)
  12634. ECHO_N='-n';;
  12635. esac
  12636. rm -f conf$$ conf$$.exe conf$$.file
  12637. if test -d conf$$.dir; then
  12638. rm -f conf$$.dir/conf$$.file
  12639. else
  12640. rm -f conf$$.dir
  12641. mkdir conf$$.dir 2>/dev/null
  12642. fi
  12643. if (echo >conf$$.file) 2>/dev/null; then
  12644. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12645. as_ln_s='ln -s'
  12646. # ... but there are two gotchas:
  12647. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12648. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12649. # In both cases, we have to default to `cp -pR'.
  12650. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12651. as_ln_s='cp -pR'
  12652. elif ln conf$$.file conf$$ 2>/dev/null; then
  12653. as_ln_s=ln
  12654. else
  12655. as_ln_s='cp -pR'
  12656. fi
  12657. else
  12658. as_ln_s='cp -pR'
  12659. fi
  12660. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12661. rmdir conf$$.dir 2>/dev/null
  12662. # as_fn_mkdir_p
  12663. # -------------
  12664. # Create "$as_dir" as a directory, including parents if necessary.
  12665. as_fn_mkdir_p ()
  12666. {
  12667. case $as_dir in #(
  12668. -*) as_dir=./$as_dir;;
  12669. esac
  12670. test -d "$as_dir" || eval $as_mkdir_p || {
  12671. as_dirs=
  12672. while :; do
  12673. case $as_dir in #(
  12674. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12675. *) as_qdir=$as_dir;;
  12676. esac
  12677. as_dirs="'$as_qdir' $as_dirs"
  12678. as_dir=`$as_dirname -- "$as_dir" ||
  12679. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12680. X"$as_dir" : 'X\(//\)[^/]' \| \
  12681. X"$as_dir" : 'X\(//\)$' \| \
  12682. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12683. $as_echo X"$as_dir" |
  12684. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12685. s//\1/
  12686. q
  12687. }
  12688. /^X\(\/\/\)[^/].*/{
  12689. s//\1/
  12690. q
  12691. }
  12692. /^X\(\/\/\)$/{
  12693. s//\1/
  12694. q
  12695. }
  12696. /^X\(\/\).*/{
  12697. s//\1/
  12698. q
  12699. }
  12700. s/.*/./; q'`
  12701. test -d "$as_dir" && break
  12702. done
  12703. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12704. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12705. } # as_fn_mkdir_p
  12706. if mkdir -p . 2>/dev/null; then
  12707. as_mkdir_p='mkdir -p "$as_dir"'
  12708. else
  12709. test -d ./-p && rmdir ./-p
  12710. as_mkdir_p=false
  12711. fi
  12712. # as_fn_executable_p FILE
  12713. # -----------------------
  12714. # Test if FILE is an executable regular file.
  12715. as_fn_executable_p ()
  12716. {
  12717. test -f "$1" && test -x "$1"
  12718. } # as_fn_executable_p
  12719. as_test_x='test -x'
  12720. as_executable_p=as_fn_executable_p
  12721. # Sed expression to map a string onto a valid CPP name.
  12722. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12723. # Sed expression to map a string onto a valid variable name.
  12724. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12725. exec 6>&1
  12726. ## ----------------------------------- ##
  12727. ## Main body of $CONFIG_STATUS script. ##
  12728. ## ----------------------------------- ##
  12729. _ASEOF
  12730. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12731. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12732. # Save the log message, to keep $0 and so on meaningful, and to
  12733. # report actual input values of CONFIG_FILES etc. instead of their
  12734. # values after options handling.
  12735. ac_log="
  12736. This file was extended by faux $as_me 2.0.0, which was
  12737. generated by GNU Autoconf 2.69. Invocation command line was
  12738. CONFIG_FILES = $CONFIG_FILES
  12739. CONFIG_HEADERS = $CONFIG_HEADERS
  12740. CONFIG_LINKS = $CONFIG_LINKS
  12741. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12742. $ $0 $@
  12743. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12744. "
  12745. _ACEOF
  12746. case $ac_config_files in *"
  12747. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12748. esac
  12749. case $ac_config_headers in *"
  12750. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12751. esac
  12752. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12753. # Files that config.status was made for.
  12754. config_files="$ac_config_files"
  12755. config_headers="$ac_config_headers"
  12756. config_commands="$ac_config_commands"
  12757. _ACEOF
  12758. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12759. ac_cs_usage="\
  12760. \`$as_me' instantiates files and other configuration actions
  12761. from templates according to the current configuration. Unless the files
  12762. and actions are specified as TAGs, all are instantiated by default.
  12763. Usage: $0 [OPTION]... [TAG]...
  12764. -h, --help print this help, then exit
  12765. -V, --version print version number and configuration settings, then exit
  12766. --config print configuration, then exit
  12767. -q, --quiet, --silent
  12768. do not print progress messages
  12769. -d, --debug don't remove temporary files
  12770. --recheck update $as_me by reconfiguring in the same conditions
  12771. --file=FILE[:TEMPLATE]
  12772. instantiate the configuration file FILE
  12773. --header=FILE[:TEMPLATE]
  12774. instantiate the configuration header FILE
  12775. Configuration files:
  12776. $config_files
  12777. Configuration headers:
  12778. $config_headers
  12779. Configuration commands:
  12780. $config_commands
  12781. Report bugs to <serj.kalichev at gmail dot com>."
  12782. _ACEOF
  12783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12784. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12785. ac_cs_version="\\
  12786. faux config.status 2.0.0
  12787. configured by $0, generated by GNU Autoconf 2.69,
  12788. with options \\"\$ac_cs_config\\"
  12789. Copyright (C) 2012 Free Software Foundation, Inc.
  12790. This config.status script is free software; the Free Software Foundation
  12791. gives unlimited permission to copy, distribute and modify it."
  12792. ac_pwd='$ac_pwd'
  12793. srcdir='$srcdir'
  12794. INSTALL='$INSTALL'
  12795. MKDIR_P='$MKDIR_P'
  12796. AWK='$AWK'
  12797. test -n "\$AWK" || AWK=awk
  12798. _ACEOF
  12799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12800. # The default lists apply if the user does not specify any file.
  12801. ac_need_defaults=:
  12802. while test $# != 0
  12803. do
  12804. case $1 in
  12805. --*=?*)
  12806. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12807. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12808. ac_shift=:
  12809. ;;
  12810. --*=)
  12811. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12812. ac_optarg=
  12813. ac_shift=:
  12814. ;;
  12815. *)
  12816. ac_option=$1
  12817. ac_optarg=$2
  12818. ac_shift=shift
  12819. ;;
  12820. esac
  12821. case $ac_option in
  12822. # Handling of the options.
  12823. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12824. ac_cs_recheck=: ;;
  12825. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12826. $as_echo "$ac_cs_version"; exit ;;
  12827. --config | --confi | --conf | --con | --co | --c )
  12828. $as_echo "$ac_cs_config"; exit ;;
  12829. --debug | --debu | --deb | --de | --d | -d )
  12830. debug=: ;;
  12831. --file | --fil | --fi | --f )
  12832. $ac_shift
  12833. case $ac_optarg in
  12834. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12835. '') as_fn_error $? "missing file argument" ;;
  12836. esac
  12837. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12838. ac_need_defaults=false;;
  12839. --header | --heade | --head | --hea )
  12840. $ac_shift
  12841. case $ac_optarg in
  12842. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12843. esac
  12844. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12845. ac_need_defaults=false;;
  12846. --he | --h)
  12847. # Conflict between --help and --header
  12848. as_fn_error $? "ambiguous option: \`$1'
  12849. Try \`$0 --help' for more information.";;
  12850. --help | --hel | -h )
  12851. $as_echo "$ac_cs_usage"; exit ;;
  12852. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12853. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12854. ac_cs_silent=: ;;
  12855. # This is an error.
  12856. -*) as_fn_error $? "unrecognized option: \`$1'
  12857. Try \`$0 --help' for more information." ;;
  12858. *) as_fn_append ac_config_targets " $1"
  12859. ac_need_defaults=false ;;
  12860. esac
  12861. shift
  12862. done
  12863. ac_configure_extra_args=
  12864. if $ac_cs_silent; then
  12865. exec 6>/dev/null
  12866. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12867. fi
  12868. _ACEOF
  12869. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12870. if \$ac_cs_recheck; then
  12871. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12872. shift
  12873. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12874. CONFIG_SHELL='$SHELL'
  12875. export CONFIG_SHELL
  12876. exec "\$@"
  12877. fi
  12878. _ACEOF
  12879. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12880. exec 5>>config.log
  12881. {
  12882. echo
  12883. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12884. ## Running $as_me. ##
  12885. _ASBOX
  12886. $as_echo "$ac_log"
  12887. } >&5
  12888. _ACEOF
  12889. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12890. #
  12891. # INIT-COMMANDS
  12892. #
  12893. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12894. # if CDPATH is set.
  12895. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12896. sed_quote_subst='$sed_quote_subst'
  12897. double_quote_subst='$double_quote_subst'
  12898. delay_variable_subst='$delay_variable_subst'
  12899. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  12900. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12901. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12902. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12903. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12904. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12905. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12906. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12907. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12908. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  12909. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12910. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12911. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12912. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12913. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12914. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12915. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12916. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12917. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12918. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12919. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12920. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12921. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12922. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12923. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12924. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12925. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12926. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12927. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12928. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12929. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12930. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12931. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12932. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12933. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12934. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12935. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12936. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12937. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12938. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12939. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12940. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12941. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12942. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12943. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12944. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12945. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12946. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12947. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12948. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12949. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12950. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12951. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12952. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12953. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12954. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12955. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12956. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  12957. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12958. 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"`'
  12959. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  12960. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12961. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12962. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  12963. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12964. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12965. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12966. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12967. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12968. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12969. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12970. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12971. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12972. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12973. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12974. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12975. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12976. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12977. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12978. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12979. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12980. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12981. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12982. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12983. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12984. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12985. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12986. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12987. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12988. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12989. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12990. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12991. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12992. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12993. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12994. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12995. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12996. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12997. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12998. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12999. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13000. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13001. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13002. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13003. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13004. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13005. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13006. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13007. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13008. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13009. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13010. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13011. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13012. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13013. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13014. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13015. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13016. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13017. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13018. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13019. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13020. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13021. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13022. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13023. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13024. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13025. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13026. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13027. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13028. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13029. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13030. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13031. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13032. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13033. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13034. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13035. LTCC='$LTCC'
  13036. LTCFLAGS='$LTCFLAGS'
  13037. compiler='$compiler_DEFAULT'
  13038. # A function that is used when there is no print builtin or printf.
  13039. func_fallback_echo ()
  13040. {
  13041. eval 'cat <<_LTECHO_EOF
  13042. \$1
  13043. _LTECHO_EOF'
  13044. }
  13045. # Quote evaled strings.
  13046. for var in AS \
  13047. DLLTOOL \
  13048. OBJDUMP \
  13049. SHELL \
  13050. ECHO \
  13051. PATH_SEPARATOR \
  13052. SED \
  13053. GREP \
  13054. EGREP \
  13055. FGREP \
  13056. LD \
  13057. NM \
  13058. LN_S \
  13059. lt_SP2NL \
  13060. lt_NL2SP \
  13061. reload_flag \
  13062. deplibs_check_method \
  13063. file_magic_cmd \
  13064. file_magic_glob \
  13065. want_nocaseglob \
  13066. sharedlib_from_linklib_cmd \
  13067. AR \
  13068. AR_FLAGS \
  13069. archiver_list_spec \
  13070. STRIP \
  13071. RANLIB \
  13072. CC \
  13073. CFLAGS \
  13074. compiler \
  13075. lt_cv_sys_global_symbol_pipe \
  13076. lt_cv_sys_global_symbol_to_cdecl \
  13077. lt_cv_sys_global_symbol_to_import \
  13078. lt_cv_sys_global_symbol_to_c_name_address \
  13079. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13080. lt_cv_nm_interface \
  13081. nm_file_list_spec \
  13082. lt_cv_truncate_bin \
  13083. lt_prog_compiler_no_builtin_flag \
  13084. lt_prog_compiler_pic \
  13085. lt_prog_compiler_wl \
  13086. lt_prog_compiler_static \
  13087. lt_cv_prog_compiler_c_o \
  13088. need_locks \
  13089. MANIFEST_TOOL \
  13090. DSYMUTIL \
  13091. NMEDIT \
  13092. LIPO \
  13093. OTOOL \
  13094. OTOOL64 \
  13095. shrext_cmds \
  13096. export_dynamic_flag_spec \
  13097. whole_archive_flag_spec \
  13098. compiler_needs_object \
  13099. with_gnu_ld \
  13100. allow_undefined_flag \
  13101. no_undefined_flag \
  13102. hardcode_libdir_flag_spec \
  13103. hardcode_libdir_separator \
  13104. exclude_expsyms \
  13105. include_expsyms \
  13106. file_list_spec \
  13107. variables_saved_for_relink \
  13108. libname_spec \
  13109. library_names_spec \
  13110. soname_spec \
  13111. install_override_mode \
  13112. finish_eval \
  13113. old_striplib \
  13114. striplib; do
  13115. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13116. *[\\\\\\\`\\"\\\$]*)
  13117. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13118. ;;
  13119. *)
  13120. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13121. ;;
  13122. esac
  13123. done
  13124. # Double-quote double-evaled strings.
  13125. for var in reload_cmds \
  13126. old_postinstall_cmds \
  13127. old_postuninstall_cmds \
  13128. old_archive_cmds \
  13129. extract_expsyms_cmds \
  13130. old_archive_from_new_cmds \
  13131. old_archive_from_expsyms_cmds \
  13132. archive_cmds \
  13133. archive_expsym_cmds \
  13134. module_cmds \
  13135. module_expsym_cmds \
  13136. export_symbols_cmds \
  13137. prelink_cmds \
  13138. postlink_cmds \
  13139. postinstall_cmds \
  13140. postuninstall_cmds \
  13141. finish_cmds \
  13142. sys_lib_search_path_spec \
  13143. configure_time_dlsearch_path \
  13144. configure_time_lt_sys_library_path; do
  13145. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13146. *[\\\\\\\`\\"\\\$]*)
  13147. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13148. ;;
  13149. *)
  13150. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13151. ;;
  13152. esac
  13153. done
  13154. ac_aux_dir='$ac_aux_dir'
  13155. # See if we are running on zsh, and set the options that allow our
  13156. # commands through without removal of \ escapes INIT.
  13157. if test -n "\${ZSH_VERSION+set}"; then
  13158. setopt NO_GLOB_SUBST
  13159. fi
  13160. PACKAGE='$PACKAGE'
  13161. VERSION='$VERSION'
  13162. RM='$RM'
  13163. ofile='$ofile'
  13164. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  13165. _ACEOF
  13166. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13167. # Handling of arguments.
  13168. for ac_config_target in $ac_config_targets
  13169. do
  13170. case $ac_config_target in
  13171. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13172. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13173. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13174. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13175. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13176. esac
  13177. done
  13178. # If the user did not use the arguments to specify the items to instantiate,
  13179. # then the envvar interface is used. Set only those that are not.
  13180. # We use the long form for the default assignment because of an extremely
  13181. # bizarre bug on SunOS 4.1.3.
  13182. if $ac_need_defaults; then
  13183. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13184. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13185. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13186. fi
  13187. # Have a temporary directory for convenience. Make it in the build tree
  13188. # simply because there is no reason against having it here, and in addition,
  13189. # creating and moving files from /tmp can sometimes cause problems.
  13190. # Hook for its removal unless debugging.
  13191. # Note that there is a small window in which the directory will not be cleaned:
  13192. # after its creation but before its name has been assigned to `$tmp'.
  13193. $debug ||
  13194. {
  13195. tmp= ac_tmp=
  13196. trap 'exit_status=$?
  13197. : "${ac_tmp:=$tmp}"
  13198. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13199. ' 0
  13200. trap 'as_fn_exit 1' 1 2 13 15
  13201. }
  13202. # Create a (secure) tmp directory for tmp files.
  13203. {
  13204. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13205. test -d "$tmp"
  13206. } ||
  13207. {
  13208. tmp=./conf$$-$RANDOM
  13209. (umask 077 && mkdir "$tmp")
  13210. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13211. ac_tmp=$tmp
  13212. # Set up the scripts for CONFIG_FILES section.
  13213. # No need to generate them if there are no CONFIG_FILES.
  13214. # This happens for instance with `./config.status config.h'.
  13215. if test -n "$CONFIG_FILES"; then
  13216. ac_cr=`echo X | tr X '\015'`
  13217. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13218. # But we know of no other shell where ac_cr would be empty at this
  13219. # point, so we can use a bashism as a fallback.
  13220. if test "x$ac_cr" = x; then
  13221. eval ac_cr=\$\'\\r\'
  13222. fi
  13223. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13224. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13225. ac_cs_awk_cr='\\r'
  13226. else
  13227. ac_cs_awk_cr=$ac_cr
  13228. fi
  13229. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13230. _ACEOF
  13231. {
  13232. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13233. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13234. echo "_ACEOF"
  13235. } >conf$$subs.sh ||
  13236. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13237. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13238. ac_delim='%!_!# '
  13239. for ac_last_try in false false false false false :; do
  13240. . ./conf$$subs.sh ||
  13241. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13242. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13243. if test $ac_delim_n = $ac_delim_num; then
  13244. break
  13245. elif $ac_last_try; then
  13246. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13247. else
  13248. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13249. fi
  13250. done
  13251. rm -f conf$$subs.sh
  13252. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13253. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13254. _ACEOF
  13255. sed -n '
  13256. h
  13257. s/^/S["/; s/!.*/"]=/
  13258. p
  13259. g
  13260. s/^[^!]*!//
  13261. :repl
  13262. t repl
  13263. s/'"$ac_delim"'$//
  13264. t delim
  13265. :nl
  13266. h
  13267. s/\(.\{148\}\)..*/\1/
  13268. t more1
  13269. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13270. p
  13271. n
  13272. b repl
  13273. :more1
  13274. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13275. p
  13276. g
  13277. s/.\{148\}//
  13278. t nl
  13279. :delim
  13280. h
  13281. s/\(.\{148\}\)..*/\1/
  13282. t more2
  13283. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13284. p
  13285. b
  13286. :more2
  13287. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13288. p
  13289. g
  13290. s/.\{148\}//
  13291. t delim
  13292. ' <conf$$subs.awk | sed '
  13293. /^[^""]/{
  13294. N
  13295. s/\n//
  13296. }
  13297. ' >>$CONFIG_STATUS || ac_write_fail=1
  13298. rm -f conf$$subs.awk
  13299. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13300. _ACAWK
  13301. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13302. for (key in S) S_is_set[key] = 1
  13303. FS = ""
  13304. }
  13305. {
  13306. line = $ 0
  13307. nfields = split(line, field, "@")
  13308. substed = 0
  13309. len = length(field[1])
  13310. for (i = 2; i < nfields; i++) {
  13311. key = field[i]
  13312. keylen = length(key)
  13313. if (S_is_set[key]) {
  13314. value = S[key]
  13315. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13316. len += length(value) + length(field[++i])
  13317. substed = 1
  13318. } else
  13319. len += 1 + keylen
  13320. }
  13321. print line
  13322. }
  13323. _ACAWK
  13324. _ACEOF
  13325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13326. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13327. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13328. else
  13329. cat
  13330. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13331. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13332. _ACEOF
  13333. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13334. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13335. # trailing colons and then remove the whole line if VPATH becomes empty
  13336. # (actually we leave an empty line to preserve line numbers).
  13337. if test "x$srcdir" = x.; then
  13338. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13339. h
  13340. s///
  13341. s/^/:/
  13342. s/[ ]*$/:/
  13343. s/:\$(srcdir):/:/g
  13344. s/:\${srcdir}:/:/g
  13345. s/:@srcdir@:/:/g
  13346. s/^:*//
  13347. s/:*$//
  13348. x
  13349. s/\(=[ ]*\).*/\1/
  13350. G
  13351. s/\n//
  13352. s/^[^=]*=[ ]*$//
  13353. }'
  13354. fi
  13355. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13356. fi # test -n "$CONFIG_FILES"
  13357. # Set up the scripts for CONFIG_HEADERS section.
  13358. # No need to generate them if there are no CONFIG_HEADERS.
  13359. # This happens for instance with `./config.status Makefile'.
  13360. if test -n "$CONFIG_HEADERS"; then
  13361. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13362. BEGIN {
  13363. _ACEOF
  13364. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13365. # here-document in config.status, that substitutes the proper values into
  13366. # config.h.in to produce config.h.
  13367. # Create a delimiter string that does not exist in confdefs.h, to ease
  13368. # handling of long lines.
  13369. ac_delim='%!_!# '
  13370. for ac_last_try in false false :; do
  13371. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13372. if test -z "$ac_tt"; then
  13373. break
  13374. elif $ac_last_try; then
  13375. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13376. else
  13377. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13378. fi
  13379. done
  13380. # For the awk script, D is an array of macro values keyed by name,
  13381. # likewise P contains macro parameters if any. Preserve backslash
  13382. # newline sequences.
  13383. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13384. sed -n '
  13385. s/.\{148\}/&'"$ac_delim"'/g
  13386. t rset
  13387. :rset
  13388. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13389. t def
  13390. d
  13391. :def
  13392. s/\\$//
  13393. t bsnl
  13394. s/["\\]/\\&/g
  13395. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13396. D["\1"]=" \3"/p
  13397. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13398. d
  13399. :bsnl
  13400. s/["\\]/\\&/g
  13401. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13402. D["\1"]=" \3\\\\\\n"\\/p
  13403. t cont
  13404. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13405. t cont
  13406. d
  13407. :cont
  13408. n
  13409. s/.\{148\}/&'"$ac_delim"'/g
  13410. t clear
  13411. :clear
  13412. s/\\$//
  13413. t bsnlc
  13414. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13415. d
  13416. :bsnlc
  13417. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13418. b cont
  13419. ' <confdefs.h | sed '
  13420. s/'"$ac_delim"'/"\\\
  13421. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13422. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13423. for (key in D) D_is_set[key] = 1
  13424. FS = ""
  13425. }
  13426. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13427. line = \$ 0
  13428. split(line, arg, " ")
  13429. if (arg[1] == "#") {
  13430. defundef = arg[2]
  13431. mac1 = arg[3]
  13432. } else {
  13433. defundef = substr(arg[1], 2)
  13434. mac1 = arg[2]
  13435. }
  13436. split(mac1, mac2, "(") #)
  13437. macro = mac2[1]
  13438. prefix = substr(line, 1, index(line, defundef) - 1)
  13439. if (D_is_set[macro]) {
  13440. # Preserve the white space surrounding the "#".
  13441. print prefix "define", macro P[macro] D[macro]
  13442. next
  13443. } else {
  13444. # Replace #undef with comments. This is necessary, for example,
  13445. # in the case of _POSIX_SOURCE, which is predefined and required
  13446. # on some systems where configure will not decide to define it.
  13447. if (defundef == "undef") {
  13448. print "/*", prefix defundef, macro, "*/"
  13449. next
  13450. }
  13451. }
  13452. }
  13453. { print }
  13454. _ACAWK
  13455. _ACEOF
  13456. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13457. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13458. fi # test -n "$CONFIG_HEADERS"
  13459. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13460. shift
  13461. for ac_tag
  13462. do
  13463. case $ac_tag in
  13464. :[FHLC]) ac_mode=$ac_tag; continue;;
  13465. esac
  13466. case $ac_mode$ac_tag in
  13467. :[FHL]*:*);;
  13468. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13469. :[FH]-) ac_tag=-:-;;
  13470. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13471. esac
  13472. ac_save_IFS=$IFS
  13473. IFS=:
  13474. set x $ac_tag
  13475. IFS=$ac_save_IFS
  13476. shift
  13477. ac_file=$1
  13478. shift
  13479. case $ac_mode in
  13480. :L) ac_source=$1;;
  13481. :[FH])
  13482. ac_file_inputs=
  13483. for ac_f
  13484. do
  13485. case $ac_f in
  13486. -) ac_f="$ac_tmp/stdin";;
  13487. *) # Look for the file first in the build tree, then in the source tree
  13488. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13489. # because $ac_f cannot contain `:'.
  13490. test -f "$ac_f" ||
  13491. case $ac_f in
  13492. [\\/$]*) false;;
  13493. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13494. esac ||
  13495. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13496. esac
  13497. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13498. as_fn_append ac_file_inputs " '$ac_f'"
  13499. done
  13500. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13501. # use $as_me), people would be surprised to read:
  13502. # /* config.h. Generated by config.status. */
  13503. configure_input='Generated from '`
  13504. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13505. `' by configure.'
  13506. if test x"$ac_file" != x-; then
  13507. configure_input="$ac_file. $configure_input"
  13508. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13509. $as_echo "$as_me: creating $ac_file" >&6;}
  13510. fi
  13511. # Neutralize special characters interpreted by sed in replacement strings.
  13512. case $configure_input in #(
  13513. *\&* | *\|* | *\\* )
  13514. ac_sed_conf_input=`$as_echo "$configure_input" |
  13515. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13516. *) ac_sed_conf_input=$configure_input;;
  13517. esac
  13518. case $ac_tag in
  13519. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13520. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13521. esac
  13522. ;;
  13523. esac
  13524. ac_dir=`$as_dirname -- "$ac_file" ||
  13525. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13526. X"$ac_file" : 'X\(//\)[^/]' \| \
  13527. X"$ac_file" : 'X\(//\)$' \| \
  13528. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13529. $as_echo X"$ac_file" |
  13530. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13531. s//\1/
  13532. q
  13533. }
  13534. /^X\(\/\/\)[^/].*/{
  13535. s//\1/
  13536. q
  13537. }
  13538. /^X\(\/\/\)$/{
  13539. s//\1/
  13540. q
  13541. }
  13542. /^X\(\/\).*/{
  13543. s//\1/
  13544. q
  13545. }
  13546. s/.*/./; q'`
  13547. as_dir="$ac_dir"; as_fn_mkdir_p
  13548. ac_builddir=.
  13549. case "$ac_dir" in
  13550. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13551. *)
  13552. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13553. # A ".." for each directory in $ac_dir_suffix.
  13554. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13555. case $ac_top_builddir_sub in
  13556. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13557. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13558. esac ;;
  13559. esac
  13560. ac_abs_top_builddir=$ac_pwd
  13561. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13562. # for backward compatibility:
  13563. ac_top_builddir=$ac_top_build_prefix
  13564. case $srcdir in
  13565. .) # We are building in place.
  13566. ac_srcdir=.
  13567. ac_top_srcdir=$ac_top_builddir_sub
  13568. ac_abs_top_srcdir=$ac_pwd ;;
  13569. [\\/]* | ?:[\\/]* ) # Absolute name.
  13570. ac_srcdir=$srcdir$ac_dir_suffix;
  13571. ac_top_srcdir=$srcdir
  13572. ac_abs_top_srcdir=$srcdir ;;
  13573. *) # Relative name.
  13574. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13575. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13576. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13577. esac
  13578. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13579. case $ac_mode in
  13580. :F)
  13581. #
  13582. # CONFIG_FILE
  13583. #
  13584. case $INSTALL in
  13585. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13586. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13587. esac
  13588. ac_MKDIR_P=$MKDIR_P
  13589. case $MKDIR_P in
  13590. [\\/$]* | ?:[\\/]* ) ;;
  13591. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13592. esac
  13593. _ACEOF
  13594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13595. # If the template does not know about datarootdir, expand it.
  13596. # FIXME: This hack should be removed a few years after 2.60.
  13597. ac_datarootdir_hack=; ac_datarootdir_seen=
  13598. ac_sed_dataroot='
  13599. /datarootdir/ {
  13600. p
  13601. q
  13602. }
  13603. /@datadir@/p
  13604. /@docdir@/p
  13605. /@infodir@/p
  13606. /@localedir@/p
  13607. /@mandir@/p'
  13608. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13609. *datarootdir*) ac_datarootdir_seen=yes;;
  13610. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13612. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13613. _ACEOF
  13614. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13615. ac_datarootdir_hack='
  13616. s&@datadir@&$datadir&g
  13617. s&@docdir@&$docdir&g
  13618. s&@infodir@&$infodir&g
  13619. s&@localedir@&$localedir&g
  13620. s&@mandir@&$mandir&g
  13621. s&\\\${datarootdir}&$datarootdir&g' ;;
  13622. esac
  13623. _ACEOF
  13624. # Neutralize VPATH when `$srcdir' = `.'.
  13625. # Shell code in configure.ac might set extrasub.
  13626. # FIXME: do we really want to maintain this feature?
  13627. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13628. ac_sed_extra="$ac_vpsub
  13629. $extrasub
  13630. _ACEOF
  13631. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13632. :t
  13633. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13634. s|@configure_input@|$ac_sed_conf_input|;t t
  13635. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13636. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13637. s&@srcdir@&$ac_srcdir&;t t
  13638. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13639. s&@top_srcdir@&$ac_top_srcdir&;t t
  13640. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13641. s&@builddir@&$ac_builddir&;t t
  13642. s&@abs_builddir@&$ac_abs_builddir&;t t
  13643. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13644. s&@INSTALL@&$ac_INSTALL&;t t
  13645. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13646. $ac_datarootdir_hack
  13647. "
  13648. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13649. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13650. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13651. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13652. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13653. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13655. which seems to be undefined. Please make sure it is defined" >&5
  13656. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13657. which seems to be undefined. Please make sure it is defined" >&2;}
  13658. rm -f "$ac_tmp/stdin"
  13659. case $ac_file in
  13660. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13661. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13662. esac \
  13663. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13664. ;;
  13665. :H)
  13666. #
  13667. # CONFIG_HEADER
  13668. #
  13669. if test x"$ac_file" != x-; then
  13670. {
  13671. $as_echo "/* $configure_input */" \
  13672. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13673. } >"$ac_tmp/config.h" \
  13674. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13675. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13676. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13677. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13678. else
  13679. rm -f "$ac_file"
  13680. mv "$ac_tmp/config.h" "$ac_file" \
  13681. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13682. fi
  13683. else
  13684. $as_echo "/* $configure_input */" \
  13685. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13686. || as_fn_error $? "could not create -" "$LINENO" 5
  13687. fi
  13688. # Compute "$ac_file"'s index in $config_headers.
  13689. _am_arg="$ac_file"
  13690. _am_stamp_count=1
  13691. for _am_header in $config_headers :; do
  13692. case $_am_header in
  13693. $_am_arg | $_am_arg:* )
  13694. break ;;
  13695. * )
  13696. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13697. esac
  13698. done
  13699. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13700. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13701. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13702. X"$_am_arg" : 'X\(//\)$' \| \
  13703. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13704. $as_echo X"$_am_arg" |
  13705. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13706. s//\1/
  13707. q
  13708. }
  13709. /^X\(\/\/\)[^/].*/{
  13710. s//\1/
  13711. q
  13712. }
  13713. /^X\(\/\/\)$/{
  13714. s//\1/
  13715. q
  13716. }
  13717. /^X\(\/\).*/{
  13718. s//\1/
  13719. q
  13720. }
  13721. s/.*/./; q'`/stamp-h$_am_stamp_count
  13722. ;;
  13723. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13724. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13725. ;;
  13726. esac
  13727. case $ac_file$ac_mode in
  13728. "libtool":C)
  13729. # See if we are running on zsh, and set the options that allow our
  13730. # commands through without removal of \ escapes.
  13731. if test -n "${ZSH_VERSION+set}"; then
  13732. setopt NO_GLOB_SUBST
  13733. fi
  13734. cfgfile=${ofile}T
  13735. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13736. $RM "$cfgfile"
  13737. cat <<_LT_EOF >> "$cfgfile"
  13738. #! $SHELL
  13739. # Generated automatically by $as_me ($PACKAGE) $VERSION
  13740. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13741. # Provide generalized library-building support services.
  13742. # Written by Gordon Matzigkeit, 1996
  13743. # Copyright (C) 2014 Free Software Foundation, Inc.
  13744. # This is free software; see the source for copying conditions. There is NO
  13745. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13746. # GNU Libtool is free software; you can redistribute it and/or modify
  13747. # it under the terms of the GNU General Public License as published by
  13748. # the Free Software Foundation; either version 2 of of the License, or
  13749. # (at your option) any later version.
  13750. #
  13751. # As a special exception to the GNU General Public License, if you
  13752. # distribute this file as part of a program or library that is built
  13753. # using GNU Libtool, you may include this file under the same
  13754. # distribution terms that you use for the rest of that program.
  13755. #
  13756. # GNU Libtool is distributed in the hope that it will be useful, but
  13757. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13758. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13759. # GNU General Public License for more details.
  13760. #
  13761. # You should have received a copy of the GNU General Public License
  13762. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13763. # The names of the tagged configurations supported by this script.
  13764. available_tags=''
  13765. # Configured defaults for sys_lib_dlsearch_path munging.
  13766. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  13767. # ### BEGIN LIBTOOL CONFIG
  13768. # Assembler program.
  13769. AS=$lt_AS
  13770. # DLL creation program.
  13771. DLLTOOL=$lt_DLLTOOL
  13772. # Object dumper program.
  13773. OBJDUMP=$lt_OBJDUMP
  13774. # Which release of libtool.m4 was used?
  13775. macro_version=$macro_version
  13776. macro_revision=$macro_revision
  13777. # Whether or not to build shared libraries.
  13778. build_libtool_libs=$enable_shared
  13779. # Whether or not to build static libraries.
  13780. build_old_libs=$enable_static
  13781. # What type of objects to build.
  13782. pic_mode=$pic_mode
  13783. # Whether or not to optimize for fast installation.
  13784. fast_install=$enable_fast_install
  13785. # Shared archive member basename,for filename based shared library versioning on AIX.
  13786. shared_archive_member_spec=$shared_archive_member_spec
  13787. # Shell to use when invoking shell scripts.
  13788. SHELL=$lt_SHELL
  13789. # An echo program that protects backslashes.
  13790. ECHO=$lt_ECHO
  13791. # The PATH separator for the build system.
  13792. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  13793. # The host system.
  13794. host_alias=$host_alias
  13795. host=$host
  13796. host_os=$host_os
  13797. # The build system.
  13798. build_alias=$build_alias
  13799. build=$build
  13800. build_os=$build_os
  13801. # A sed program that does not truncate output.
  13802. SED=$lt_SED
  13803. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13804. Xsed="\$SED -e 1s/^X//"
  13805. # A grep program that handles long lines.
  13806. GREP=$lt_GREP
  13807. # An ERE matcher.
  13808. EGREP=$lt_EGREP
  13809. # A literal string matcher.
  13810. FGREP=$lt_FGREP
  13811. # A BSD- or MS-compatible name lister.
  13812. NM=$lt_NM
  13813. # Whether we need soft or hard links.
  13814. LN_S=$lt_LN_S
  13815. # What is the maximum length of a command?
  13816. max_cmd_len=$max_cmd_len
  13817. # Object file suffix (normally "o").
  13818. objext=$ac_objext
  13819. # Executable file suffix (normally "").
  13820. exeext=$exeext
  13821. # whether the shell understands "unset".
  13822. lt_unset=$lt_unset
  13823. # turn spaces into newlines.
  13824. SP2NL=$lt_lt_SP2NL
  13825. # turn newlines into spaces.
  13826. NL2SP=$lt_lt_NL2SP
  13827. # convert \$build file names to \$host format.
  13828. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13829. # convert \$build files to toolchain format.
  13830. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13831. # Method to check whether dependent libraries are shared objects.
  13832. deplibs_check_method=$lt_deplibs_check_method
  13833. # Command to use when deplibs_check_method = "file_magic".
  13834. file_magic_cmd=$lt_file_magic_cmd
  13835. # How to find potential files when deplibs_check_method = "file_magic".
  13836. file_magic_glob=$lt_file_magic_glob
  13837. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13838. want_nocaseglob=$lt_want_nocaseglob
  13839. # Command to associate shared and link libraries.
  13840. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13841. # The archiver.
  13842. AR=$lt_AR
  13843. # Flags to create an archive.
  13844. AR_FLAGS=$lt_AR_FLAGS
  13845. # How to feed a file listing to the archiver.
  13846. archiver_list_spec=$lt_archiver_list_spec
  13847. # A symbol stripping program.
  13848. STRIP=$lt_STRIP
  13849. # Commands used to install an old-style archive.
  13850. RANLIB=$lt_RANLIB
  13851. old_postinstall_cmds=$lt_old_postinstall_cmds
  13852. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13853. # Whether to use a lock for old archive extraction.
  13854. lock_old_archive_extraction=$lock_old_archive_extraction
  13855. # A C compiler.
  13856. LTCC=$lt_CC
  13857. # LTCC compiler flags.
  13858. LTCFLAGS=$lt_CFLAGS
  13859. # Take the output of nm and produce a listing of raw symbols and C names.
  13860. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13861. # Transform the output of nm in a proper C declaration.
  13862. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13863. # Transform the output of nm into a list of symbols to manually relocate.
  13864. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  13865. # Transform the output of nm in a C name address pair.
  13866. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13867. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13868. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13869. # The name lister interface.
  13870. nm_interface=$lt_lt_cv_nm_interface
  13871. # Specify filename containing input files for \$NM.
  13872. nm_file_list_spec=$lt_nm_file_list_spec
  13873. # The root where to search for dependent libraries,and where our libraries should be installed.
  13874. lt_sysroot=$lt_sysroot
  13875. # Command to truncate a binary pipe.
  13876. lt_truncate_bin=$lt_lt_cv_truncate_bin
  13877. # The name of the directory that contains temporary libtool files.
  13878. objdir=$objdir
  13879. # Used to examine libraries when file_magic_cmd begins with "file".
  13880. MAGIC_CMD=$MAGIC_CMD
  13881. # Must we lock files when doing compilation?
  13882. need_locks=$lt_need_locks
  13883. # Manifest tool.
  13884. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13885. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13886. DSYMUTIL=$lt_DSYMUTIL
  13887. # Tool to change global to local symbols on Mac OS X.
  13888. NMEDIT=$lt_NMEDIT
  13889. # Tool to manipulate fat objects and archives on Mac OS X.
  13890. LIPO=$lt_LIPO
  13891. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13892. OTOOL=$lt_OTOOL
  13893. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13894. OTOOL64=$lt_OTOOL64
  13895. # Old archive suffix (normally "a").
  13896. libext=$libext
  13897. # Shared library suffix (normally ".so").
  13898. shrext_cmds=$lt_shrext_cmds
  13899. # The commands to extract the exported symbol list from a shared archive.
  13900. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13901. # Variables whose values should be saved in libtool wrapper scripts and
  13902. # restored at link time.
  13903. variables_saved_for_relink=$lt_variables_saved_for_relink
  13904. # Do we need the "lib" prefix for modules?
  13905. need_lib_prefix=$need_lib_prefix
  13906. # Do we need a version for libraries?
  13907. need_version=$need_version
  13908. # Library versioning type.
  13909. version_type=$version_type
  13910. # Shared library runtime path variable.
  13911. runpath_var=$runpath_var
  13912. # Shared library path variable.
  13913. shlibpath_var=$shlibpath_var
  13914. # Is shlibpath searched before the hard-coded library search path?
  13915. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13916. # Format of library name prefix.
  13917. libname_spec=$lt_libname_spec
  13918. # List of archive names. First name is the real one, the rest are links.
  13919. # The last name is the one that the linker finds with -lNAME
  13920. library_names_spec=$lt_library_names_spec
  13921. # The coded name of the library, if different from the real name.
  13922. soname_spec=$lt_soname_spec
  13923. # Permission mode override for installation of shared libraries.
  13924. install_override_mode=$lt_install_override_mode
  13925. # Command to use after installation of a shared archive.
  13926. postinstall_cmds=$lt_postinstall_cmds
  13927. # Command to use after uninstallation of a shared archive.
  13928. postuninstall_cmds=$lt_postuninstall_cmds
  13929. # Commands used to finish a libtool library installation in a directory.
  13930. finish_cmds=$lt_finish_cmds
  13931. # As "finish_cmds", except a single script fragment to be evaled but
  13932. # not shown.
  13933. finish_eval=$lt_finish_eval
  13934. # Whether we should hardcode library paths into libraries.
  13935. hardcode_into_libs=$hardcode_into_libs
  13936. # Compile-time system search path for libraries.
  13937. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13938. # Detected run-time system search path for libraries.
  13939. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  13940. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  13941. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  13942. # Whether dlopen is supported.
  13943. dlopen_support=$enable_dlopen
  13944. # Whether dlopen of programs is supported.
  13945. dlopen_self=$enable_dlopen_self
  13946. # Whether dlopen of statically linked programs is supported.
  13947. dlopen_self_static=$enable_dlopen_self_static
  13948. # Commands to strip libraries.
  13949. old_striplib=$lt_old_striplib
  13950. striplib=$lt_striplib
  13951. # The linker used to build libraries.
  13952. LD=$lt_LD
  13953. # How to create reloadable object files.
  13954. reload_flag=$lt_reload_flag
  13955. reload_cmds=$lt_reload_cmds
  13956. # Commands used to build an old-style archive.
  13957. old_archive_cmds=$lt_old_archive_cmds
  13958. # A language specific compiler.
  13959. CC=$lt_compiler
  13960. # Is the compiler the GNU compiler?
  13961. with_gcc=$GCC
  13962. # Compiler flag to turn off builtin functions.
  13963. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13964. # Additional compiler flags for building library objects.
  13965. pic_flag=$lt_lt_prog_compiler_pic
  13966. # How to pass a linker flag through the compiler.
  13967. wl=$lt_lt_prog_compiler_wl
  13968. # Compiler flag to prevent dynamic linking.
  13969. link_static_flag=$lt_lt_prog_compiler_static
  13970. # Does compiler simultaneously support -c and -o options?
  13971. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13972. # Whether or not to add -lc for building shared libraries.
  13973. build_libtool_need_lc=$archive_cmds_need_lc
  13974. # Whether or not to disallow shared libs when runtime libs are static.
  13975. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13976. # Compiler flag to allow reflexive dlopens.
  13977. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13978. # Compiler flag to generate shared objects directly from archives.
  13979. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13980. # Whether the compiler copes with passing no objects directly.
  13981. compiler_needs_object=$lt_compiler_needs_object
  13982. # Create an old-style archive from a shared archive.
  13983. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13984. # Create a temporary old-style archive to link instead of a shared archive.
  13985. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13986. # Commands used to build a shared archive.
  13987. archive_cmds=$lt_archive_cmds
  13988. archive_expsym_cmds=$lt_archive_expsym_cmds
  13989. # Commands used to build a loadable module if different from building
  13990. # a shared archive.
  13991. module_cmds=$lt_module_cmds
  13992. module_expsym_cmds=$lt_module_expsym_cmds
  13993. # Whether we are building with GNU ld or not.
  13994. with_gnu_ld=$lt_with_gnu_ld
  13995. # Flag that allows shared libraries with undefined symbols to be built.
  13996. allow_undefined_flag=$lt_allow_undefined_flag
  13997. # Flag that enforces no undefined symbols.
  13998. no_undefined_flag=$lt_no_undefined_flag
  13999. # Flag to hardcode \$libdir into a binary during linking.
  14000. # This must work even if \$libdir does not exist
  14001. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14002. # Whether we need a single "-rpath" flag with a separated argument.
  14003. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14004. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14005. # DIR into the resulting binary.
  14006. hardcode_direct=$hardcode_direct
  14007. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14008. # DIR into the resulting binary and the resulting library dependency is
  14009. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14010. # library is relocated.
  14011. hardcode_direct_absolute=$hardcode_direct_absolute
  14012. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14013. # into the resulting binary.
  14014. hardcode_minus_L=$hardcode_minus_L
  14015. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14016. # into the resulting binary.
  14017. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14018. # Set to "yes" if building a shared library automatically hardcodes DIR
  14019. # into the library and all subsequent libraries and executables linked
  14020. # against it.
  14021. hardcode_automatic=$hardcode_automatic
  14022. # Set to yes if linker adds runtime paths of dependent libraries
  14023. # to runtime path list.
  14024. inherit_rpath=$inherit_rpath
  14025. # Whether libtool must link a program against all its dependency libraries.
  14026. link_all_deplibs=$link_all_deplibs
  14027. # Set to "yes" if exported symbols are required.
  14028. always_export_symbols=$always_export_symbols
  14029. # The commands to list exported symbols.
  14030. export_symbols_cmds=$lt_export_symbols_cmds
  14031. # Symbols that should not be listed in the preloaded symbols.
  14032. exclude_expsyms=$lt_exclude_expsyms
  14033. # Symbols that must always be exported.
  14034. include_expsyms=$lt_include_expsyms
  14035. # Commands necessary for linking programs (against libraries) with templates.
  14036. prelink_cmds=$lt_prelink_cmds
  14037. # Commands necessary for finishing linking programs.
  14038. postlink_cmds=$lt_postlink_cmds
  14039. # Specify filename containing input files.
  14040. file_list_spec=$lt_file_list_spec
  14041. # How to hardcode a shared library path into an executable.
  14042. hardcode_action=$hardcode_action
  14043. # ### END LIBTOOL CONFIG
  14044. _LT_EOF
  14045. cat <<'_LT_EOF' >> "$cfgfile"
  14046. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14047. # func_munge_path_list VARIABLE PATH
  14048. # -----------------------------------
  14049. # VARIABLE is name of variable containing _space_ separated list of
  14050. # directories to be munged by the contents of PATH, which is string
  14051. # having a format:
  14052. # "DIR[:DIR]:"
  14053. # string "DIR[ DIR]" will be prepended to VARIABLE
  14054. # ":DIR[:DIR]"
  14055. # string "DIR[ DIR]" will be appended to VARIABLE
  14056. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14057. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14058. # "DIRA[ DIRA]" will be appended to VARIABLE
  14059. # "DIR[:DIR]"
  14060. # VARIABLE will be replaced by "DIR[ DIR]"
  14061. func_munge_path_list ()
  14062. {
  14063. case x$2 in
  14064. x)
  14065. ;;
  14066. *:)
  14067. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14068. ;;
  14069. x:*)
  14070. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14071. ;;
  14072. *::*)
  14073. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14074. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14075. ;;
  14076. *)
  14077. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14078. ;;
  14079. esac
  14080. }
  14081. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14082. func_cc_basename ()
  14083. {
  14084. for cc_temp in $*""; do
  14085. case $cc_temp in
  14086. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14087. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14088. \-*) ;;
  14089. *) break;;
  14090. esac
  14091. done
  14092. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14093. }
  14094. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14095. _LT_EOF
  14096. case $host_os in
  14097. aix3*)
  14098. cat <<\_LT_EOF >> "$cfgfile"
  14099. # AIX sometimes has problems with the GCC collect2 program. For some
  14100. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14101. # vanish in a puff of smoke.
  14102. if test set != "${COLLECT_NAMES+set}"; then
  14103. COLLECT_NAMES=
  14104. export COLLECT_NAMES
  14105. fi
  14106. _LT_EOF
  14107. ;;
  14108. esac
  14109. ltmain=$ac_aux_dir/ltmain.sh
  14110. # We use sed instead of cat because bash on DJGPP gets confused if
  14111. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14112. # text mode, it properly converts lines to CR/LF. This bash problem
  14113. # is reportedly fixed, but why not run on old versions too?
  14114. sed '$q' "$ltmain" >> "$cfgfile" \
  14115. || (rm -f "$cfgfile"; exit 1)
  14116. mv -f "$cfgfile" "$ofile" ||
  14117. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14118. chmod +x "$ofile"
  14119. ;;
  14120. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14121. # Older Autoconf quotes --file arguments for eval, but not when files
  14122. # are listed without --file. Let's play safe and only enable the eval
  14123. # if we detect the quoting.
  14124. # TODO: see whether this extra hack can be removed once we start
  14125. # requiring Autoconf 2.70 or later.
  14126. case $CONFIG_FILES in #(
  14127. *\'*) :
  14128. eval set x "$CONFIG_FILES" ;; #(
  14129. *) :
  14130. set x $CONFIG_FILES ;; #(
  14131. *) :
  14132. ;;
  14133. esac
  14134. shift
  14135. # Used to flag and report bootstrapping failures.
  14136. am_rc=0
  14137. for am_mf
  14138. do
  14139. # Strip MF so we end up with the name of the file.
  14140. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  14141. # Check whether this is an Automake generated Makefile which includes
  14142. # dependency-tracking related rules and includes.
  14143. # Grep'ing the whole file directly is not great: AIX grep has a line
  14144. # limit of 2048, but all sed's we know have understand at least 4000.
  14145. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14146. || continue
  14147. am_dirpart=`$as_dirname -- "$am_mf" ||
  14148. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14149. X"$am_mf" : 'X\(//\)[^/]' \| \
  14150. X"$am_mf" : 'X\(//\)$' \| \
  14151. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14152. $as_echo X"$am_mf" |
  14153. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14154. s//\1/
  14155. q
  14156. }
  14157. /^X\(\/\/\)[^/].*/{
  14158. s//\1/
  14159. q
  14160. }
  14161. /^X\(\/\/\)$/{
  14162. s//\1/
  14163. q
  14164. }
  14165. /^X\(\/\).*/{
  14166. s//\1/
  14167. q
  14168. }
  14169. s/.*/./; q'`
  14170. am_filepart=`$as_basename -- "$am_mf" ||
  14171. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14172. X"$am_mf" : 'X\(//\)$' \| \
  14173. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14174. $as_echo X/"$am_mf" |
  14175. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14176. s//\1/
  14177. q
  14178. }
  14179. /^X\/\(\/\/\)$/{
  14180. s//\1/
  14181. q
  14182. }
  14183. /^X\/\(\/\).*/{
  14184. s//\1/
  14185. q
  14186. }
  14187. s/.*/./; q'`
  14188. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14189. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14190. | $MAKE -f - am--depfiles" >&5
  14191. (cd "$am_dirpart" \
  14192. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14193. | $MAKE -f - am--depfiles) >&5 2>&5
  14194. ac_status=$?
  14195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14196. (exit $ac_status); } || am_rc=$?
  14197. done
  14198. if test $am_rc -ne 0; then
  14199. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14201. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14202. for automatic dependency tracking. Try re-running configure with the
  14203. '--disable-dependency-tracking' option to at least be able to build
  14204. the package (albeit without support for automatic dependency tracking).
  14205. See \`config.log' for more details" "$LINENO" 5; }
  14206. fi
  14207. { am_dirpart=; unset am_dirpart;}
  14208. { am_filepart=; unset am_filepart;}
  14209. { am_mf=; unset am_mf;}
  14210. { am_rc=; unset am_rc;}
  14211. rm -f conftest-deps.mk
  14212. }
  14213. ;;
  14214. esac
  14215. done # for ac_tag
  14216. as_fn_exit 0
  14217. _ACEOF
  14218. ac_clean_files=$ac_clean_files_save
  14219. test $ac_write_fail = 0 ||
  14220. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14221. # configure is writing to config.log, and then calls config.status.
  14222. # config.status does its own redirection, appending to config.log.
  14223. # Unfortunately, on DOS this fails, as config.log is still kept open
  14224. # by configure, so config.status won't be able to write to it; its
  14225. # output is simply discarded. So we exec the FD to /dev/null,
  14226. # effectively closing config.log, so it can be properly (re)opened and
  14227. # appended to by config.status. When coming back to configure, we
  14228. # need to make the FD available again.
  14229. if test "$no_create" != yes; then
  14230. ac_cs_success=:
  14231. ac_config_status_args=
  14232. test "$silent" = yes &&
  14233. ac_config_status_args="$ac_config_status_args --quiet"
  14234. exec 5>/dev/null
  14235. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14236. exec 5>>config.log
  14237. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14238. # would make configure fail if this is the last instruction.
  14239. $ac_cs_success || as_fn_exit 1
  14240. fi
  14241. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14243. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14244. fi