configure 522 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for bluez 5.62.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='bluez'
  539. PACKAGE_TARNAME='bluez'
  540. PACKAGE_VERSION='5.62'
  541. PACKAGE_STRING='bluez 5.62'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_default_prefix=/usr/local
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. PLUGIN_PHONEBOOK
  585. LIBEDATESERVER_LIBS
  586. LIBEDATESERVER_CFLAGS
  587. LIBEBOOK_LIBS
  588. LIBEBOOK_CFLAGS
  589. SPEEXDSP_LIBS
  590. SPEEXDSP_CFLAGS
  591. SBC_LIBS
  592. SBC_CFLAGS
  593. ANDROID_FALSE
  594. ANDROID_TRUE
  595. MESH_STORAGEDIR
  596. CONFIGDIR
  597. ADMIN_FALSE
  598. ADMIN_TRUE
  599. LOGGER_FALSE
  600. LOGGER_TRUE
  601. HID2HCI_FALSE
  602. HID2HCI_TRUE
  603. SIXAXIS_FALSE
  604. SIXAXIS_TRUE
  605. DEPRECATED_FALSE
  606. DEPRECATED_TRUE
  607. EXPERIMENTAL_FALSE
  608. EXPERIMENTAL_TRUE
  609. TESTING_FALSE
  610. TESTING_TRUE
  611. RUN_RST2MAN_FALSE
  612. RUN_RST2MAN_TRUE
  613. MANPAGES_FALSE
  614. MANPAGES_TRUE
  615. RST2MAN
  616. DATAFILES_FALSE
  617. DATAFILES_TRUE
  618. SYSTEMD_USERUNITDIR
  619. SYSTEMD_SYSTEMUNITDIR
  620. SYSTEMD_FALSE
  621. SYSTEMD_TRUE
  622. READLINE_FALSE
  623. READLINE_TRUE
  624. CLIENT_FALSE
  625. CLIENT_TRUE
  626. LIBSHARED_ELL_FALSE
  627. LIBSHARED_ELL_TRUE
  628. EXTERNAL_ELL_FALSE
  629. EXTERNAL_ELL_TRUE
  630. ELL_LIBS
  631. ELL_CFLAGS
  632. BTPCLIENT_FALSE
  633. BTPCLIENT_TRUE
  634. OBEX_FALSE
  635. OBEX_TRUE
  636. ICAL_LIBS
  637. ICAL_CFLAGS
  638. ALSA_LIBS
  639. ALSA_CFLAGS
  640. MIDI_FALSE
  641. MIDI_TRUE
  642. JSON_LIBS
  643. JSON_CFLAGS
  644. JSONC_LIBS
  645. JSONC_CFLAGS
  646. MESH_FALSE
  647. MESH_TRUE
  648. CUPS_FALSE
  649. CUPS_TRUE
  650. UDEV_DIR
  651. UDEV_FALSE
  652. UDEV_TRUE
  653. UDEV_LIBS
  654. UDEV_CFLAGS
  655. MONITOR_FALSE
  656. MONITOR_TRUE
  657. TOOLS_FALSE
  658. TOOLS_TRUE
  659. HEALTH_FALSE
  660. HEALTH_TRUE
  661. HOG_FALSE
  662. HOG_TRUE
  663. HID_FALSE
  664. HID_TRUE
  665. NETWORK_FALSE
  666. NETWORK_TRUE
  667. AVRCP_FALSE
  668. AVRCP_TRUE
  669. A2DP_FALSE
  670. A2DP_TRUE
  671. SAP_FALSE
  672. SAP_TRUE
  673. NFC_FALSE
  674. NFC_TRUE
  675. TEST_FALSE
  676. TEST_TRUE
  677. LIBRARY_FALSE
  678. LIBRARY_TRUE
  679. BACKTRACE_LIBS
  680. BACKTRACE_CFLAGS
  681. ZSH_COMPLETIONS_FALSE
  682. ZSH_COMPLETIONS_TRUE
  683. ZSH_COMPLETIONDIR
  684. DBUS_SESSIONBUSDIR
  685. DBUS_SYSTEMBUSDIR
  686. DBUS_CONFDIR
  687. DBUS_LIBS
  688. DBUS_CFLAGS
  689. GTHREAD_LIBS
  690. GTHREAD_CFLAGS
  691. GLIB_LIBS
  692. GLIB_CFLAGS
  693. MISC_LDFLAGS
  694. MISC_CFLAGS
  695. VALGRIND_FALSE
  696. VALGRIND_TRUE
  697. DBUS_RUN_SESSION_FALSE
  698. DBUS_RUN_SESSION_TRUE
  699. COVERAGE_FALSE
  700. COVERAGE_TRUE
  701. enable_valgrind
  702. enable_dbus_run_session
  703. enable_coverage
  704. CPP
  705. LT_SYS_LIBRARY_PATH
  706. OTOOL64
  707. OTOOL
  708. LIPO
  709. NMEDIT
  710. DSYMUTIL
  711. MANIFEST_TOOL
  712. RANLIB
  713. ac_ct_AR
  714. AR
  715. DLLTOOL
  716. OBJDUMP
  717. LN_S
  718. NM
  719. ac_ct_DUMPBIN
  720. DUMPBIN
  721. LD
  722. FGREP
  723. EGREP
  724. GREP
  725. SED
  726. host_os
  727. host_vendor
  728. host_cpu
  729. host
  730. build_os
  731. build_vendor
  732. build_cpu
  733. build
  734. LIBTOOL
  735. am__fastdepCC_FALSE
  736. am__fastdepCC_TRUE
  737. CCDEPMODE
  738. am__nodep
  739. AMDEPBACKSLASH
  740. AMDEP_FALSE
  741. AMDEP_TRUE
  742. am__include
  743. DEPDIR
  744. OBJEXT
  745. EXEEXT
  746. ac_ct_CC
  747. CPPFLAGS
  748. LDFLAGS
  749. CFLAGS
  750. CC
  751. WARNING_CFLAGS
  752. PKG_CONFIG_LIBDIR
  753. PKG_CONFIG_PATH
  754. PKG_CONFIG
  755. MAINT
  756. MAINTAINER_MODE_FALSE
  757. MAINTAINER_MODE_TRUE
  758. AM_BACKSLASH
  759. AM_DEFAULT_VERBOSITY
  760. AM_DEFAULT_V
  761. AM_V
  762. am__untar
  763. am__tar
  764. AMTAR
  765. am__leading_dot
  766. SET_MAKE
  767. AWK
  768. mkdir_p
  769. MKDIR_P
  770. INSTALL_STRIP_PROGRAM
  771. STRIP
  772. install_sh
  773. MAKEINFO
  774. AUTOHEADER
  775. AUTOMAKE
  776. AUTOCONF
  777. ACLOCAL
  778. VERSION
  779. PACKAGE
  780. CYGPATH_W
  781. am__isrc
  782. INSTALL_DATA
  783. INSTALL_SCRIPT
  784. INSTALL_PROGRAM
  785. target_alias
  786. host_alias
  787. build_alias
  788. LIBS
  789. ECHO_T
  790. ECHO_N
  791. ECHO_C
  792. DEFS
  793. mandir
  794. localedir
  795. libdir
  796. psdir
  797. pdfdir
  798. dvidir
  799. htmldir
  800. infodir
  801. docdir
  802. oldincludedir
  803. includedir
  804. runstatedir
  805. localstatedir
  806. sharedstatedir
  807. sysconfdir
  808. datadir
  809. datarootdir
  810. libexecdir
  811. sbindir
  812. bindir
  813. program_transform_name
  814. prefix
  815. exec_prefix
  816. PACKAGE_URL
  817. PACKAGE_BUGREPORT
  818. PACKAGE_STRING
  819. PACKAGE_VERSION
  820. PACKAGE_TARNAME
  821. PACKAGE_NAME
  822. PATH_SEPARATOR
  823. SHELL
  824. am__quote'
  825. ac_subst_files=''
  826. ac_user_opts='
  827. enable_option_checking
  828. enable_silent_rules
  829. enable_maintainer_mode
  830. enable_dependency_tracking
  831. enable_static
  832. enable_shared
  833. with_pic
  834. enable_fast_install
  835. with_aix_soname
  836. with_gnu_ld
  837. with_sysroot
  838. enable_libtool_lock
  839. enable_optimization
  840. enable_debug
  841. enable_pie
  842. enable_threads
  843. with_dbusconfdir
  844. with_dbussystembusdir
  845. with_dbussessionbusdir
  846. with_zsh_completion_dir
  847. enable_backtrace
  848. enable_library
  849. enable_test
  850. enable_nfc
  851. enable_sap
  852. enable_a2dp
  853. enable_avrcp
  854. enable_network
  855. enable_hid
  856. enable_hog
  857. enable_health
  858. enable_tools
  859. enable_monitor
  860. enable_udev
  861. with_udevdir
  862. enable_cups
  863. enable_mesh
  864. enable_midi
  865. enable_obex
  866. enable_btpclient
  867. enable_external_ell
  868. enable_client
  869. enable_systemd
  870. with_systemdsystemunitdir
  871. with_systemduserunitdir
  872. enable_datafiles
  873. enable_manpages
  874. enable_testing
  875. enable_experimental
  876. enable_deprecated
  877. enable_sixaxis
  878. enable_hid2hci
  879. enable_logger
  880. enable_admin
  881. enable_android
  882. with_phonebook
  883. '
  884. ac_precious_vars='build_alias
  885. host_alias
  886. target_alias
  887. PKG_CONFIG
  888. PKG_CONFIG_PATH
  889. PKG_CONFIG_LIBDIR
  890. CC
  891. CFLAGS
  892. LDFLAGS
  893. LIBS
  894. CPPFLAGS
  895. LT_SYS_LIBRARY_PATH
  896. CPP
  897. GLIB_CFLAGS
  898. GLIB_LIBS
  899. GTHREAD_CFLAGS
  900. GTHREAD_LIBS
  901. DBUS_CFLAGS
  902. DBUS_LIBS
  903. UDEV_CFLAGS
  904. UDEV_LIBS
  905. JSONC_CFLAGS
  906. JSONC_LIBS
  907. ALSA_CFLAGS
  908. ALSA_LIBS
  909. ICAL_CFLAGS
  910. ICAL_LIBS
  911. ELL_CFLAGS
  912. ELL_LIBS
  913. SBC_CFLAGS
  914. SBC_LIBS
  915. SPEEXDSP_CFLAGS
  916. SPEEXDSP_LIBS
  917. LIBEBOOK_CFLAGS
  918. LIBEBOOK_LIBS
  919. LIBEDATESERVER_CFLAGS
  920. LIBEDATESERVER_LIBS'
  921. # Initialize some variables set by options.
  922. ac_init_help=
  923. ac_init_version=false
  924. ac_unrecognized_opts=
  925. ac_unrecognized_sep=
  926. # The variables have the same names as the options, with
  927. # dashes changed to underlines.
  928. cache_file=/dev/null
  929. exec_prefix=NONE
  930. no_create=
  931. no_recursion=
  932. prefix=NONE
  933. program_prefix=NONE
  934. program_suffix=NONE
  935. program_transform_name=s,x,x,
  936. silent=
  937. site=
  938. srcdir=
  939. verbose=
  940. x_includes=NONE
  941. x_libraries=NONE
  942. # Installation directory options.
  943. # These are left unexpanded so users can "make install exec_prefix=/foo"
  944. # and all the variables that are supposed to be based on exec_prefix
  945. # by default will actually change.
  946. # Use braces instead of parens because sh, perl, etc. also accept them.
  947. # (The list follows the same order as the GNU Coding Standards.)
  948. bindir='${exec_prefix}/bin'
  949. sbindir='${exec_prefix}/sbin'
  950. libexecdir='${exec_prefix}/libexec'
  951. datarootdir='${prefix}/share'
  952. datadir='${datarootdir}'
  953. sysconfdir='${prefix}/etc'
  954. sharedstatedir='${prefix}/com'
  955. localstatedir='${prefix}/var'
  956. runstatedir='${localstatedir}/run'
  957. includedir='${prefix}/include'
  958. oldincludedir='/usr/include'
  959. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  960. infodir='${datarootdir}/info'
  961. htmldir='${docdir}'
  962. dvidir='${docdir}'
  963. pdfdir='${docdir}'
  964. psdir='${docdir}'
  965. libdir='${exec_prefix}/lib'
  966. localedir='${datarootdir}/locale'
  967. mandir='${datarootdir}/man'
  968. ac_prev=
  969. ac_dashdash=
  970. for ac_option
  971. do
  972. # If the previous option needs an argument, assign it.
  973. if test -n "$ac_prev"; then
  974. eval $ac_prev=\$ac_option
  975. ac_prev=
  976. continue
  977. fi
  978. case $ac_option in
  979. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  980. *=) ac_optarg= ;;
  981. *) ac_optarg=yes ;;
  982. esac
  983. # Accept the important Cygnus configure options, so we can diagnose typos.
  984. case $ac_dashdash$ac_option in
  985. --)
  986. ac_dashdash=yes ;;
  987. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  988. ac_prev=bindir ;;
  989. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  990. bindir=$ac_optarg ;;
  991. -build | --build | --buil | --bui | --bu)
  992. ac_prev=build_alias ;;
  993. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  994. build_alias=$ac_optarg ;;
  995. -cache-file | --cache-file | --cache-fil | --cache-fi \
  996. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  997. ac_prev=cache_file ;;
  998. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  999. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1000. cache_file=$ac_optarg ;;
  1001. --config-cache | -C)
  1002. cache_file=config.cache ;;
  1003. -datadir | --datadir | --datadi | --datad)
  1004. ac_prev=datadir ;;
  1005. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1006. datadir=$ac_optarg ;;
  1007. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1008. | --dataroo | --dataro | --datar)
  1009. ac_prev=datarootdir ;;
  1010. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1011. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1012. datarootdir=$ac_optarg ;;
  1013. -disable-* | --disable-*)
  1014. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1015. # Reject names that are not valid shell variable names.
  1016. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1017. as_fn_error $? "invalid feature name: $ac_useropt"
  1018. ac_useropt_orig=$ac_useropt
  1019. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1020. case $ac_user_opts in
  1021. *"
  1022. "enable_$ac_useropt"
  1023. "*) ;;
  1024. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1025. ac_unrecognized_sep=', ';;
  1026. esac
  1027. eval enable_$ac_useropt=no ;;
  1028. -docdir | --docdir | --docdi | --doc | --do)
  1029. ac_prev=docdir ;;
  1030. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1031. docdir=$ac_optarg ;;
  1032. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1033. ac_prev=dvidir ;;
  1034. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1035. dvidir=$ac_optarg ;;
  1036. -enable-* | --enable-*)
  1037. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1040. as_fn_error $? "invalid feature name: $ac_useropt"
  1041. ac_useropt_orig=$ac_useropt
  1042. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1043. case $ac_user_opts in
  1044. *"
  1045. "enable_$ac_useropt"
  1046. "*) ;;
  1047. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1048. ac_unrecognized_sep=', ';;
  1049. esac
  1050. eval enable_$ac_useropt=\$ac_optarg ;;
  1051. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1052. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1053. | --exec | --exe | --ex)
  1054. ac_prev=exec_prefix ;;
  1055. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1056. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1057. | --exec=* | --exe=* | --ex=*)
  1058. exec_prefix=$ac_optarg ;;
  1059. -gas | --gas | --ga | --g)
  1060. # Obsolete; use --with-gas.
  1061. with_gas=yes ;;
  1062. -help | --help | --hel | --he | -h)
  1063. ac_init_help=long ;;
  1064. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1065. ac_init_help=recursive ;;
  1066. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1067. ac_init_help=short ;;
  1068. -host | --host | --hos | --ho)
  1069. ac_prev=host_alias ;;
  1070. -host=* | --host=* | --hos=* | --ho=*)
  1071. host_alias=$ac_optarg ;;
  1072. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1073. ac_prev=htmldir ;;
  1074. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1075. | --ht=*)
  1076. htmldir=$ac_optarg ;;
  1077. -includedir | --includedir | --includedi | --included | --include \
  1078. | --includ | --inclu | --incl | --inc)
  1079. ac_prev=includedir ;;
  1080. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1081. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1082. includedir=$ac_optarg ;;
  1083. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1084. ac_prev=infodir ;;
  1085. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1086. infodir=$ac_optarg ;;
  1087. -libdir | --libdir | --libdi | --libd)
  1088. ac_prev=libdir ;;
  1089. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1090. libdir=$ac_optarg ;;
  1091. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1092. | --libexe | --libex | --libe)
  1093. ac_prev=libexecdir ;;
  1094. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1095. | --libexe=* | --libex=* | --libe=*)
  1096. libexecdir=$ac_optarg ;;
  1097. -localedir | --localedir | --localedi | --localed | --locale)
  1098. ac_prev=localedir ;;
  1099. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1100. localedir=$ac_optarg ;;
  1101. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1102. | --localstate | --localstat | --localsta | --localst | --locals)
  1103. ac_prev=localstatedir ;;
  1104. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1105. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1106. localstatedir=$ac_optarg ;;
  1107. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1108. ac_prev=mandir ;;
  1109. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1110. mandir=$ac_optarg ;;
  1111. -nfp | --nfp | --nf)
  1112. # Obsolete; use --without-fp.
  1113. with_fp=no ;;
  1114. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1115. | --no-cr | --no-c | -n)
  1116. no_create=yes ;;
  1117. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1118. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1119. no_recursion=yes ;;
  1120. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1121. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1122. | --oldin | --oldi | --old | --ol | --o)
  1123. ac_prev=oldincludedir ;;
  1124. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1125. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1126. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1127. oldincludedir=$ac_optarg ;;
  1128. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1129. ac_prev=prefix ;;
  1130. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1131. prefix=$ac_optarg ;;
  1132. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1133. | --program-pre | --program-pr | --program-p)
  1134. ac_prev=program_prefix ;;
  1135. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1136. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1137. program_prefix=$ac_optarg ;;
  1138. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1139. | --program-suf | --program-su | --program-s)
  1140. ac_prev=program_suffix ;;
  1141. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1142. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1143. program_suffix=$ac_optarg ;;
  1144. -program-transform-name | --program-transform-name \
  1145. | --program-transform-nam | --program-transform-na \
  1146. | --program-transform-n | --program-transform- \
  1147. | --program-transform | --program-transfor \
  1148. | --program-transfo | --program-transf \
  1149. | --program-trans | --program-tran \
  1150. | --progr-tra | --program-tr | --program-t)
  1151. ac_prev=program_transform_name ;;
  1152. -program-transform-name=* | --program-transform-name=* \
  1153. | --program-transform-nam=* | --program-transform-na=* \
  1154. | --program-transform-n=* | --program-transform-=* \
  1155. | --program-transform=* | --program-transfor=* \
  1156. | --program-transfo=* | --program-transf=* \
  1157. | --program-trans=* | --program-tran=* \
  1158. | --progr-tra=* | --program-tr=* | --program-t=*)
  1159. program_transform_name=$ac_optarg ;;
  1160. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1161. ac_prev=pdfdir ;;
  1162. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1163. pdfdir=$ac_optarg ;;
  1164. -psdir | --psdir | --psdi | --psd | --ps)
  1165. ac_prev=psdir ;;
  1166. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1167. psdir=$ac_optarg ;;
  1168. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1169. | -silent | --silent | --silen | --sile | --sil)
  1170. silent=yes ;;
  1171. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1172. | --runstate | --runstat | --runsta | --runst | --runs \
  1173. | --run | --ru | --r)
  1174. ac_prev=runstatedir ;;
  1175. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1176. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1177. | --run=* | --ru=* | --r=*)
  1178. runstatedir=$ac_optarg ;;
  1179. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1180. ac_prev=sbindir ;;
  1181. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1182. | --sbi=* | --sb=*)
  1183. sbindir=$ac_optarg ;;
  1184. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1185. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1186. | --sharedst | --shareds | --shared | --share | --shar \
  1187. | --sha | --sh)
  1188. ac_prev=sharedstatedir ;;
  1189. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1190. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1191. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1192. | --sha=* | --sh=*)
  1193. sharedstatedir=$ac_optarg ;;
  1194. -site | --site | --sit)
  1195. ac_prev=site ;;
  1196. -site=* | --site=* | --sit=*)
  1197. site=$ac_optarg ;;
  1198. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1199. ac_prev=srcdir ;;
  1200. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1201. srcdir=$ac_optarg ;;
  1202. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1203. | --syscon | --sysco | --sysc | --sys | --sy)
  1204. ac_prev=sysconfdir ;;
  1205. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1206. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1207. sysconfdir=$ac_optarg ;;
  1208. -target | --target | --targe | --targ | --tar | --ta | --t)
  1209. ac_prev=target_alias ;;
  1210. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1211. target_alias=$ac_optarg ;;
  1212. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1213. verbose=yes ;;
  1214. -version | --version | --versio | --versi | --vers | -V)
  1215. ac_init_version=: ;;
  1216. -with-* | --with-*)
  1217. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1218. # Reject names that are not valid shell variable names.
  1219. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1220. as_fn_error $? "invalid package name: $ac_useropt"
  1221. ac_useropt_orig=$ac_useropt
  1222. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1223. case $ac_user_opts in
  1224. *"
  1225. "with_$ac_useropt"
  1226. "*) ;;
  1227. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1228. ac_unrecognized_sep=', ';;
  1229. esac
  1230. eval with_$ac_useropt=\$ac_optarg ;;
  1231. -without-* | --without-*)
  1232. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1233. # Reject names that are not valid shell variable names.
  1234. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1235. as_fn_error $? "invalid package name: $ac_useropt"
  1236. ac_useropt_orig=$ac_useropt
  1237. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1238. case $ac_user_opts in
  1239. *"
  1240. "with_$ac_useropt"
  1241. "*) ;;
  1242. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1243. ac_unrecognized_sep=', ';;
  1244. esac
  1245. eval with_$ac_useropt=no ;;
  1246. --x)
  1247. # Obsolete; use --with-x.
  1248. with_x=yes ;;
  1249. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1250. | --x-incl | --x-inc | --x-in | --x-i)
  1251. ac_prev=x_includes ;;
  1252. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1253. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1254. x_includes=$ac_optarg ;;
  1255. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1256. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1257. ac_prev=x_libraries ;;
  1258. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1259. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1260. x_libraries=$ac_optarg ;;
  1261. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1262. Try \`$0 --help' for more information"
  1263. ;;
  1264. *=*)
  1265. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1266. # Reject names that are not valid shell variable names.
  1267. case $ac_envvar in #(
  1268. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1269. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1270. esac
  1271. eval $ac_envvar=\$ac_optarg
  1272. export $ac_envvar ;;
  1273. *)
  1274. # FIXME: should be removed in autoconf 3.0.
  1275. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1276. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1277. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1278. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1279. ;;
  1280. esac
  1281. done
  1282. if test -n "$ac_prev"; then
  1283. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1284. as_fn_error $? "missing argument to $ac_option"
  1285. fi
  1286. if test -n "$ac_unrecognized_opts"; then
  1287. case $enable_option_checking in
  1288. no) ;;
  1289. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1290. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1291. esac
  1292. fi
  1293. # Check all directory arguments for consistency.
  1294. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1295. datadir sysconfdir sharedstatedir localstatedir includedir \
  1296. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1297. libdir localedir mandir runstatedir
  1298. do
  1299. eval ac_val=\$$ac_var
  1300. # Remove trailing slashes.
  1301. case $ac_val in
  1302. */ )
  1303. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1304. eval $ac_var=\$ac_val;;
  1305. esac
  1306. # Be sure to have absolute directory names.
  1307. case $ac_val in
  1308. [\\/$]* | ?:[\\/]* ) continue;;
  1309. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1310. esac
  1311. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1312. done
  1313. # There might be people who depend on the old broken behavior: `$host'
  1314. # used to hold the argument of --host etc.
  1315. # FIXME: To remove some day.
  1316. build=$build_alias
  1317. host=$host_alias
  1318. target=$target_alias
  1319. # FIXME: To remove some day.
  1320. if test "x$host_alias" != x; then
  1321. if test "x$build_alias" = x; then
  1322. cross_compiling=maybe
  1323. elif test "x$build_alias" != "x$host_alias"; then
  1324. cross_compiling=yes
  1325. fi
  1326. fi
  1327. ac_tool_prefix=
  1328. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1329. test "$silent" = yes && exec 6>/dev/null
  1330. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1331. ac_ls_di=`ls -di .` &&
  1332. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1333. as_fn_error $? "working directory cannot be determined"
  1334. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1335. as_fn_error $? "pwd does not report name of working directory"
  1336. # Find the source files, if location was not specified.
  1337. if test -z "$srcdir"; then
  1338. ac_srcdir_defaulted=yes
  1339. # Try the directory containing this script, then the parent directory.
  1340. ac_confdir=`$as_dirname -- "$as_myself" ||
  1341. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1342. X"$as_myself" : 'X\(//\)[^/]' \| \
  1343. X"$as_myself" : 'X\(//\)$' \| \
  1344. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1345. $as_echo X"$as_myself" |
  1346. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1347. s//\1/
  1348. q
  1349. }
  1350. /^X\(\/\/\)[^/].*/{
  1351. s//\1/
  1352. q
  1353. }
  1354. /^X\(\/\/\)$/{
  1355. s//\1/
  1356. q
  1357. }
  1358. /^X\(\/\).*/{
  1359. s//\1/
  1360. q
  1361. }
  1362. s/.*/./; q'`
  1363. srcdir=$ac_confdir
  1364. if test ! -r "$srcdir/$ac_unique_file"; then
  1365. srcdir=..
  1366. fi
  1367. else
  1368. ac_srcdir_defaulted=no
  1369. fi
  1370. if test ! -r "$srcdir/$ac_unique_file"; then
  1371. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1372. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1373. fi
  1374. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1375. ac_abs_confdir=`(
  1376. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1377. pwd)`
  1378. # When building in place, set srcdir=.
  1379. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1380. srcdir=.
  1381. fi
  1382. # Remove unnecessary trailing slashes from srcdir.
  1383. # Double slashes in file names in object file debugging info
  1384. # mess up M-x gdb in Emacs.
  1385. case $srcdir in
  1386. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1387. esac
  1388. for ac_var in $ac_precious_vars; do
  1389. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1390. eval ac_env_${ac_var}_value=\$${ac_var}
  1391. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1392. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1393. done
  1394. #
  1395. # Report the --help message.
  1396. #
  1397. if test "$ac_init_help" = "long"; then
  1398. # Omit some internal or obsolete options to make the list less imposing.
  1399. # This message is too long to be a string in the A/UX 3.1 sh.
  1400. cat <<_ACEOF
  1401. \`configure' configures bluez 5.62 to adapt to many kinds of systems.
  1402. Usage: $0 [OPTION]... [VAR=VALUE]...
  1403. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1404. VAR=VALUE. See below for descriptions of some of the useful variables.
  1405. Defaults for the options are specified in brackets.
  1406. Configuration:
  1407. -h, --help display this help and exit
  1408. --help=short display options specific to this package
  1409. --help=recursive display the short help of all the included packages
  1410. -V, --version display version information and exit
  1411. -q, --quiet, --silent do not print \`checking ...' messages
  1412. --cache-file=FILE cache test results in FILE [disabled]
  1413. -C, --config-cache alias for \`--cache-file=config.cache'
  1414. -n, --no-create do not create output files
  1415. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1416. Installation directories:
  1417. --prefix=PREFIX install architecture-independent files in PREFIX
  1418. [$ac_default_prefix]
  1419. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1420. [PREFIX]
  1421. By default, \`make install' will install all the files in
  1422. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1423. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1424. for instance \`--prefix=\$HOME'.
  1425. For better control, use the options below.
  1426. Fine tuning of the installation directories:
  1427. --bindir=DIR user executables [EPREFIX/bin]
  1428. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1429. --libexecdir=DIR program executables [EPREFIX/libexec]
  1430. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1431. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1432. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1433. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1434. --libdir=DIR object code libraries [EPREFIX/lib]
  1435. --includedir=DIR C header files [PREFIX/include]
  1436. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1437. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1438. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1439. --infodir=DIR info documentation [DATAROOTDIR/info]
  1440. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1441. --mandir=DIR man documentation [DATAROOTDIR/man]
  1442. --docdir=DIR documentation root [DATAROOTDIR/doc/bluez]
  1443. --htmldir=DIR html documentation [DOCDIR]
  1444. --dvidir=DIR dvi documentation [DOCDIR]
  1445. --pdfdir=DIR pdf documentation [DOCDIR]
  1446. --psdir=DIR ps documentation [DOCDIR]
  1447. _ACEOF
  1448. cat <<\_ACEOF
  1449. Program names:
  1450. --program-prefix=PREFIX prepend PREFIX to installed program names
  1451. --program-suffix=SUFFIX append SUFFIX to installed program names
  1452. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1453. System types:
  1454. --build=BUILD configure for building on BUILD [guessed]
  1455. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1456. _ACEOF
  1457. fi
  1458. if test -n "$ac_init_help"; then
  1459. case $ac_init_help in
  1460. short | recursive ) echo "Configuration of bluez 5.62:";;
  1461. esac
  1462. cat <<\_ACEOF
  1463. Optional Features:
  1464. --disable-option-checking ignore unrecognized --enable/--with options
  1465. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1466. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1467. --enable-silent-rules less verbose build output (undo: "make V=1")
  1468. --disable-silent-rules verbose build output (undo: "make V=0")
  1469. --enable-maintainer-mode
  1470. enable make rules and dependencies not useful (and
  1471. sometimes confusing) to the casual installer
  1472. --enable-dependency-tracking
  1473. do not reject slow dependency extractors
  1474. --disable-dependency-tracking
  1475. speeds up one-time build
  1476. --enable-static[=PKGS] build static libraries [default=no]
  1477. --enable-shared[=PKGS] build shared libraries [default=yes]
  1478. --enable-fast-install[=PKGS]
  1479. optimize for fast installation [default=yes]
  1480. --disable-libtool-lock avoid locking (might break parallel builds)
  1481. --disable-optimization disable code optimization through compiler
  1482. --enable-debug enable compiling with debugging information
  1483. --enable-pie enable position independent executables flag
  1484. --enable-threads enable threading support
  1485. --enable-backtrace compile backtrace support
  1486. --enable-library install Bluetooth library
  1487. --enable-test enable test/example scripts
  1488. --enable-nfc enable NFC paring
  1489. --enable-sap enable SAP profile
  1490. --disable-a2dp disable A2DP profile
  1491. --disable-avrcp disable AVRCP profile
  1492. --disable-network disable network profiles
  1493. --disable-hid disable HID profile
  1494. --disable-hog disable HoG profile
  1495. --enable-health enable health profiles
  1496. --disable-tools disable Bluetooth tools
  1497. --disable-monitor disable Bluetooth monitor
  1498. --disable-udev disable udev device support
  1499. --disable-cups disable CUPS printer support
  1500. --enable-mesh enable Mesh profile support
  1501. --enable-midi enable MIDI support
  1502. --disable-obex disable OBEX profile support
  1503. --enable-btpclient enable BTP client
  1504. --enable-external-ell enable external Embedded Linux library
  1505. --disable-client disable command line client
  1506. --disable-systemd disable systemd integration
  1507. --disable-datafiles do not install configuration and data files
  1508. --disable-manpages disable building of manual pages
  1509. --enable-testing enable testing tools
  1510. --enable-experimental enable experimental tools
  1511. --enable-deprecated enable deprecated tools
  1512. --enable-sixaxis enable sixaxis plugin
  1513. --enable-hid2hci enable hid2hci tool
  1514. --enable-logger enable HCI logger service
  1515. --enable-admin enable admin policy plugin
  1516. --enable-android enable BlueZ for Android
  1517. Optional Packages:
  1518. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1519. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1520. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1521. both]
  1522. --with-aix-soname=aix|svr4|both
  1523. shared library versioning (aka "SONAME") variant to
  1524. provide on AIX, [default=aix].
  1525. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1526. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1527. compiler's sysroot if not specified).
  1528. --with-dbusconfdir=DIR path to D-Bus configuration directory
  1529. --with-dbussystembusdir=DIR
  1530. path to D-Bus system bus services directory
  1531. --with-dbussessionbusdir=DIR
  1532. path to D-Bus session bus services directory
  1533. --with-zsh-completion-dir=DIR
  1534. path to install zsh completions
  1535. --with-udevdir=DIR path to udev directory
  1536. --with-systemdsystemunitdir=DIR
  1537. path to systemd system unit directory
  1538. --with-systemduserunitdir=DIR
  1539. path to systemd user unit directory
  1540. --with-phonebook=PLUGIN obexd phonebook plugin (default=dummy)
  1541. Some influential environment variables:
  1542. PKG_CONFIG path to pkg-config utility
  1543. PKG_CONFIG_PATH
  1544. directories to add to pkg-config's search path
  1545. PKG_CONFIG_LIBDIR
  1546. path overriding pkg-config's built-in search path
  1547. CC C compiler command
  1548. CFLAGS C compiler flags
  1549. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1550. nonstandard directory <lib dir>
  1551. LIBS libraries to pass to the linker, e.g. -l<library>
  1552. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1553. you have headers in a nonstandard directory <include dir>
  1554. LT_SYS_LIBRARY_PATH
  1555. User-defined run-time library search path.
  1556. CPP C preprocessor
  1557. GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1558. GLIB_LIBS linker flags for GLIB, overriding pkg-config
  1559. GTHREAD_CFLAGS
  1560. C compiler flags for GTHREAD, overriding pkg-config
  1561. GTHREAD_LIBS
  1562. linker flags for GTHREAD, overriding pkg-config
  1563. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1564. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1565. UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
  1566. UDEV_LIBS linker flags for UDEV, overriding pkg-config
  1567. JSONC_CFLAGS
  1568. C compiler flags for JSONC, overriding pkg-config
  1569. JSONC_LIBS linker flags for JSONC, overriding pkg-config
  1570. ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1571. ALSA_LIBS linker flags for ALSA, overriding pkg-config
  1572. ICAL_CFLAGS C compiler flags for ICAL, overriding pkg-config
  1573. ICAL_LIBS linker flags for ICAL, overriding pkg-config
  1574. ELL_CFLAGS C compiler flags for ELL, overriding pkg-config
  1575. ELL_LIBS linker flags for ELL, overriding pkg-config
  1576. SBC_CFLAGS C compiler flags for SBC, overriding pkg-config
  1577. SBC_LIBS linker flags for SBC, overriding pkg-config
  1578. SPEEXDSP_CFLAGS
  1579. C compiler flags for SPEEXDSP, overriding pkg-config
  1580. SPEEXDSP_LIBS
  1581. linker flags for SPEEXDSP, overriding pkg-config
  1582. LIBEBOOK_CFLAGS
  1583. C compiler flags for LIBEBOOK, overriding pkg-config
  1584. LIBEBOOK_LIBS
  1585. linker flags for LIBEBOOK, overriding pkg-config
  1586. LIBEDATESERVER_CFLAGS
  1587. C compiler flags for LIBEDATESERVER, overriding pkg-config
  1588. LIBEDATESERVER_LIBS
  1589. linker flags for LIBEDATESERVER, overriding pkg-config
  1590. Use these variables to override the choices made by `configure' or to help
  1591. it to find libraries and programs with nonstandard names/locations.
  1592. Report bugs to the package provider.
  1593. _ACEOF
  1594. ac_status=$?
  1595. fi
  1596. if test "$ac_init_help" = "recursive"; then
  1597. # If there are subdirs, report their specific --help.
  1598. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1599. test -d "$ac_dir" ||
  1600. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1601. continue
  1602. ac_builddir=.
  1603. case "$ac_dir" in
  1604. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1605. *)
  1606. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1607. # A ".." for each directory in $ac_dir_suffix.
  1608. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1609. case $ac_top_builddir_sub in
  1610. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1611. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1612. esac ;;
  1613. esac
  1614. ac_abs_top_builddir=$ac_pwd
  1615. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1616. # for backward compatibility:
  1617. ac_top_builddir=$ac_top_build_prefix
  1618. case $srcdir in
  1619. .) # We are building in place.
  1620. ac_srcdir=.
  1621. ac_top_srcdir=$ac_top_builddir_sub
  1622. ac_abs_top_srcdir=$ac_pwd ;;
  1623. [\\/]* | ?:[\\/]* ) # Absolute name.
  1624. ac_srcdir=$srcdir$ac_dir_suffix;
  1625. ac_top_srcdir=$srcdir
  1626. ac_abs_top_srcdir=$srcdir ;;
  1627. *) # Relative name.
  1628. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1629. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1630. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1631. esac
  1632. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1633. cd "$ac_dir" || { ac_status=$?; continue; }
  1634. # Check for guested configure.
  1635. if test -f "$ac_srcdir/configure.gnu"; then
  1636. echo &&
  1637. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1638. elif test -f "$ac_srcdir/configure"; then
  1639. echo &&
  1640. $SHELL "$ac_srcdir/configure" --help=recursive
  1641. else
  1642. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1643. fi || ac_status=$?
  1644. cd "$ac_pwd" || { ac_status=$?; break; }
  1645. done
  1646. fi
  1647. test -n "$ac_init_help" && exit $ac_status
  1648. if $ac_init_version; then
  1649. cat <<\_ACEOF
  1650. bluez configure 5.62
  1651. generated by GNU Autoconf 2.69
  1652. Copyright (C) 2012 Free Software Foundation, Inc.
  1653. This configure script is free software; the Free Software Foundation
  1654. gives unlimited permission to copy, distribute and modify it.
  1655. _ACEOF
  1656. exit
  1657. fi
  1658. ## ------------------------ ##
  1659. ## Autoconf initialization. ##
  1660. ## ------------------------ ##
  1661. # ac_fn_c_try_compile LINENO
  1662. # --------------------------
  1663. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1664. ac_fn_c_try_compile ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. rm -f conftest.$ac_objext
  1668. if { { ac_try="$ac_compile"
  1669. case "(($ac_try" in
  1670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1671. *) ac_try_echo=$ac_try;;
  1672. esac
  1673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1674. $as_echo "$ac_try_echo"; } >&5
  1675. (eval "$ac_compile") 2>conftest.err
  1676. ac_status=$?
  1677. if test -s conftest.err; then
  1678. grep -v '^ *+' conftest.err >conftest.er1
  1679. cat conftest.er1 >&5
  1680. mv -f conftest.er1 conftest.err
  1681. fi
  1682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1683. test $ac_status = 0; } && {
  1684. test -z "$ac_c_werror_flag" ||
  1685. test ! -s conftest.err
  1686. } && test -s conftest.$ac_objext; then :
  1687. ac_retval=0
  1688. else
  1689. $as_echo "$as_me: failed program was:" >&5
  1690. sed 's/^/| /' conftest.$ac_ext >&5
  1691. ac_retval=1
  1692. fi
  1693. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1694. as_fn_set_status $ac_retval
  1695. } # ac_fn_c_try_compile
  1696. # ac_fn_c_try_link LINENO
  1697. # -----------------------
  1698. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1699. ac_fn_c_try_link ()
  1700. {
  1701. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1702. rm -f conftest.$ac_objext conftest$ac_exeext
  1703. if { { ac_try="$ac_link"
  1704. case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_link") 2>conftest.err
  1711. ac_status=$?
  1712. if test -s conftest.err; then
  1713. grep -v '^ *+' conftest.err >conftest.er1
  1714. cat conftest.er1 >&5
  1715. mv -f conftest.er1 conftest.err
  1716. fi
  1717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1718. test $ac_status = 0; } && {
  1719. test -z "$ac_c_werror_flag" ||
  1720. test ! -s conftest.err
  1721. } && test -s conftest$ac_exeext && {
  1722. test "$cross_compiling" = yes ||
  1723. test -x conftest$ac_exeext
  1724. }; then :
  1725. ac_retval=0
  1726. else
  1727. $as_echo "$as_me: failed program was:" >&5
  1728. sed 's/^/| /' conftest.$ac_ext >&5
  1729. ac_retval=1
  1730. fi
  1731. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1732. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1733. # interfere with the next link command; also delete a directory that is
  1734. # left behind by Apple's compiler. We do this before executing the actions.
  1735. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1736. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1737. as_fn_set_status $ac_retval
  1738. } # ac_fn_c_try_link
  1739. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1740. # -------------------------------------------------------
  1741. # Tests whether HEADER exists and can be compiled using the include files in
  1742. # INCLUDES, setting the cache variable VAR accordingly.
  1743. ac_fn_c_check_header_compile ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1747. $as_echo_n "checking for $2... " >&6; }
  1748. if eval \${$3+:} false; then :
  1749. $as_echo_n "(cached) " >&6
  1750. else
  1751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1752. /* end confdefs.h. */
  1753. $4
  1754. #include <$2>
  1755. _ACEOF
  1756. if ac_fn_c_try_compile "$LINENO"; then :
  1757. eval "$3=yes"
  1758. else
  1759. eval "$3=no"
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1762. fi
  1763. eval ac_res=\$$3
  1764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1765. $as_echo "$ac_res" >&6; }
  1766. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1767. } # ac_fn_c_check_header_compile
  1768. # ac_fn_c_try_cpp LINENO
  1769. # ----------------------
  1770. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1771. ac_fn_c_try_cpp ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1775. case "(($ac_try" in
  1776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1777. *) ac_try_echo=$ac_try;;
  1778. esac
  1779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1780. $as_echo "$ac_try_echo"; } >&5
  1781. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1782. ac_status=$?
  1783. if test -s conftest.err; then
  1784. grep -v '^ *+' conftest.err >conftest.er1
  1785. cat conftest.er1 >&5
  1786. mv -f conftest.er1 conftest.err
  1787. fi
  1788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1789. test $ac_status = 0; } > conftest.i && {
  1790. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1791. test ! -s conftest.err
  1792. }; then :
  1793. ac_retval=0
  1794. else
  1795. $as_echo "$as_me: failed program was:" >&5
  1796. sed 's/^/| /' conftest.$ac_ext >&5
  1797. ac_retval=1
  1798. fi
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. as_fn_set_status $ac_retval
  1801. } # ac_fn_c_try_cpp
  1802. # ac_fn_c_try_run LINENO
  1803. # ----------------------
  1804. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1805. # that executables *can* be run.
  1806. ac_fn_c_try_run ()
  1807. {
  1808. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1809. if { { ac_try="$ac_link"
  1810. case "(($ac_try" in
  1811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1812. *) ac_try_echo=$ac_try;;
  1813. esac
  1814. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1815. $as_echo "$ac_try_echo"; } >&5
  1816. (eval "$ac_link") 2>&5
  1817. ac_status=$?
  1818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1819. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1820. { { case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. $as_echo "$ac_try_echo"; } >&5
  1826. (eval "$ac_try") 2>&5
  1827. ac_status=$?
  1828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1829. test $ac_status = 0; }; }; then :
  1830. ac_retval=0
  1831. else
  1832. $as_echo "$as_me: program exited with status $ac_status" >&5
  1833. $as_echo "$as_me: failed program was:" >&5
  1834. sed 's/^/| /' conftest.$ac_ext >&5
  1835. ac_retval=$ac_status
  1836. fi
  1837. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1838. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1839. as_fn_set_status $ac_retval
  1840. } # ac_fn_c_try_run
  1841. # ac_fn_c_check_func LINENO FUNC VAR
  1842. # ----------------------------------
  1843. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1844. ac_fn_c_check_func ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1848. $as_echo_n "checking for $2... " >&6; }
  1849. if eval \${$3+:} false; then :
  1850. $as_echo_n "(cached) " >&6
  1851. else
  1852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1853. /* end confdefs.h. */
  1854. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1855. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1856. #define $2 innocuous_$2
  1857. /* System header to define __stub macros and hopefully few prototypes,
  1858. which can conflict with char $2 (); below.
  1859. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1860. <limits.h> exists even on freestanding compilers. */
  1861. #ifdef __STDC__
  1862. # include <limits.h>
  1863. #else
  1864. # include <assert.h>
  1865. #endif
  1866. #undef $2
  1867. /* Override any GCC internal prototype to avoid an error.
  1868. Use char because int might match the return type of a GCC
  1869. builtin and then its argument prototype would still apply. */
  1870. #ifdef __cplusplus
  1871. extern "C"
  1872. #endif
  1873. char $2 ();
  1874. /* The GNU C library defines this for functions which it implements
  1875. to always fail with ENOSYS. Some functions are actually named
  1876. something starting with __ and the normal name is an alias. */
  1877. #if defined __stub_$2 || defined __stub___$2
  1878. choke me
  1879. #endif
  1880. int
  1881. main ()
  1882. {
  1883. return $2 ();
  1884. ;
  1885. return 0;
  1886. }
  1887. _ACEOF
  1888. if ac_fn_c_try_link "$LINENO"; then :
  1889. eval "$3=yes"
  1890. else
  1891. eval "$3=no"
  1892. fi
  1893. rm -f core conftest.err conftest.$ac_objext \
  1894. conftest$ac_exeext conftest.$ac_ext
  1895. fi
  1896. eval ac_res=\$$3
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1898. $as_echo "$ac_res" >&6; }
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. } # ac_fn_c_check_func
  1901. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1902. # -------------------------------------------------------
  1903. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1904. # the include files in INCLUDES and setting the cache variable VAR
  1905. # accordingly.
  1906. ac_fn_c_check_header_mongrel ()
  1907. {
  1908. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1909. if eval \${$3+:} false; then :
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1911. $as_echo_n "checking for $2... " >&6; }
  1912. if eval \${$3+:} false; then :
  1913. $as_echo_n "(cached) " >&6
  1914. fi
  1915. eval ac_res=\$$3
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1917. $as_echo "$ac_res" >&6; }
  1918. else
  1919. # Is the header compilable?
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1921. $as_echo_n "checking $2 usability... " >&6; }
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. $4
  1925. #include <$2>
  1926. _ACEOF
  1927. if ac_fn_c_try_compile "$LINENO"; then :
  1928. ac_header_compiler=yes
  1929. else
  1930. ac_header_compiler=no
  1931. fi
  1932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1934. $as_echo "$ac_header_compiler" >&6; }
  1935. # Is the header present?
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1937. $as_echo_n "checking $2 presence... " >&6; }
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. #include <$2>
  1941. _ACEOF
  1942. if ac_fn_c_try_cpp "$LINENO"; then :
  1943. ac_header_preproc=yes
  1944. else
  1945. ac_header_preproc=no
  1946. fi
  1947. rm -f conftest.err conftest.i conftest.$ac_ext
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1949. $as_echo "$ac_header_preproc" >&6; }
  1950. # So? What about this header?
  1951. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1952. yes:no: )
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1954. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1956. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1957. ;;
  1958. no:yes:* )
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1960. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1962. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1964. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1966. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1968. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1969. ;;
  1970. esac
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1972. $as_echo_n "checking for $2... " >&6; }
  1973. if eval \${$3+:} false; then :
  1974. $as_echo_n "(cached) " >&6
  1975. else
  1976. eval "$3=\$ac_header_compiler"
  1977. fi
  1978. eval ac_res=\$$3
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1980. $as_echo "$ac_res" >&6; }
  1981. fi
  1982. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1983. } # ac_fn_c_check_header_mongrel
  1984. cat >config.log <<_ACEOF
  1985. This file contains any messages produced by compilers while
  1986. running configure, to aid debugging if configure makes a mistake.
  1987. It was created by bluez $as_me 5.62, which was
  1988. generated by GNU Autoconf 2.69. Invocation command line was
  1989. $ $0 $@
  1990. _ACEOF
  1991. exec 5>>config.log
  1992. {
  1993. cat <<_ASUNAME
  1994. ## --------- ##
  1995. ## Platform. ##
  1996. ## --------- ##
  1997. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1998. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1999. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2000. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2001. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2002. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2003. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2004. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2005. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2006. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2007. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2008. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2009. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2010. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2011. _ASUNAME
  2012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2013. for as_dir in $PATH
  2014. do
  2015. IFS=$as_save_IFS
  2016. test -z "$as_dir" && as_dir=.
  2017. $as_echo "PATH: $as_dir"
  2018. done
  2019. IFS=$as_save_IFS
  2020. } >&5
  2021. cat >&5 <<_ACEOF
  2022. ## ----------- ##
  2023. ## Core tests. ##
  2024. ## ----------- ##
  2025. _ACEOF
  2026. # Keep a trace of the command line.
  2027. # Strip out --no-create and --no-recursion so they do not pile up.
  2028. # Strip out --silent because we don't want to record it for future runs.
  2029. # Also quote any args containing shell meta-characters.
  2030. # Make two passes to allow for proper duplicate-argument suppression.
  2031. ac_configure_args=
  2032. ac_configure_args0=
  2033. ac_configure_args1=
  2034. ac_must_keep_next=false
  2035. for ac_pass in 1 2
  2036. do
  2037. for ac_arg
  2038. do
  2039. case $ac_arg in
  2040. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2041. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2042. | -silent | --silent | --silen | --sile | --sil)
  2043. continue ;;
  2044. *\'*)
  2045. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2046. esac
  2047. case $ac_pass in
  2048. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2049. 2)
  2050. as_fn_append ac_configure_args1 " '$ac_arg'"
  2051. if test $ac_must_keep_next = true; then
  2052. ac_must_keep_next=false # Got value, back to normal.
  2053. else
  2054. case $ac_arg in
  2055. *=* | --config-cache | -C | -disable-* | --disable-* \
  2056. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2057. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2058. | -with-* | --with-* | -without-* | --without-* | --x)
  2059. case "$ac_configure_args0 " in
  2060. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2061. esac
  2062. ;;
  2063. -* ) ac_must_keep_next=true ;;
  2064. esac
  2065. fi
  2066. as_fn_append ac_configure_args " '$ac_arg'"
  2067. ;;
  2068. esac
  2069. done
  2070. done
  2071. { ac_configure_args0=; unset ac_configure_args0;}
  2072. { ac_configure_args1=; unset ac_configure_args1;}
  2073. # When interrupted or exit'd, cleanup temporary files, and complete
  2074. # config.log. We remove comments because anyway the quotes in there
  2075. # would cause problems or look ugly.
  2076. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2077. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2078. trap 'exit_status=$?
  2079. # Save into config.log some information that might help in debugging.
  2080. {
  2081. echo
  2082. $as_echo "## ---------------- ##
  2083. ## Cache variables. ##
  2084. ## ---------------- ##"
  2085. echo
  2086. # The following way of writing the cache mishandles newlines in values,
  2087. (
  2088. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2089. eval ac_val=\$$ac_var
  2090. case $ac_val in #(
  2091. *${as_nl}*)
  2092. case $ac_var in #(
  2093. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2094. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2095. esac
  2096. case $ac_var in #(
  2097. _ | IFS | as_nl) ;; #(
  2098. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2099. *) { eval $ac_var=; unset $ac_var;} ;;
  2100. esac ;;
  2101. esac
  2102. done
  2103. (set) 2>&1 |
  2104. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2105. *${as_nl}ac_space=\ *)
  2106. sed -n \
  2107. "s/'\''/'\''\\\\'\'''\''/g;
  2108. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2109. ;; #(
  2110. *)
  2111. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2112. ;;
  2113. esac |
  2114. sort
  2115. )
  2116. echo
  2117. $as_echo "## ----------------- ##
  2118. ## Output variables. ##
  2119. ## ----------------- ##"
  2120. echo
  2121. for ac_var in $ac_subst_vars
  2122. do
  2123. eval ac_val=\$$ac_var
  2124. case $ac_val in
  2125. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2126. esac
  2127. $as_echo "$ac_var='\''$ac_val'\''"
  2128. done | sort
  2129. echo
  2130. if test -n "$ac_subst_files"; then
  2131. $as_echo "## ------------------- ##
  2132. ## File substitutions. ##
  2133. ## ------------------- ##"
  2134. echo
  2135. for ac_var in $ac_subst_files
  2136. do
  2137. eval ac_val=\$$ac_var
  2138. case $ac_val in
  2139. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2140. esac
  2141. $as_echo "$ac_var='\''$ac_val'\''"
  2142. done | sort
  2143. echo
  2144. fi
  2145. if test -s confdefs.h; then
  2146. $as_echo "## ----------- ##
  2147. ## confdefs.h. ##
  2148. ## ----------- ##"
  2149. echo
  2150. cat confdefs.h
  2151. echo
  2152. fi
  2153. test "$ac_signal" != 0 &&
  2154. $as_echo "$as_me: caught signal $ac_signal"
  2155. $as_echo "$as_me: exit $exit_status"
  2156. } >&5
  2157. rm -f core *.core core.conftest.* &&
  2158. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2159. exit $exit_status
  2160. ' 0
  2161. for ac_signal in 1 2 13 15; do
  2162. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2163. done
  2164. ac_signal=0
  2165. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2166. rm -f -r conftest* confdefs.h
  2167. $as_echo "/* confdefs.h */" > confdefs.h
  2168. # Predefined preprocessor variables.
  2169. cat >>confdefs.h <<_ACEOF
  2170. #define PACKAGE_NAME "$PACKAGE_NAME"
  2171. _ACEOF
  2172. cat >>confdefs.h <<_ACEOF
  2173. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_STRING "$PACKAGE_STRING"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2183. _ACEOF
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE_URL "$PACKAGE_URL"
  2186. _ACEOF
  2187. # Let the site file select an alternate cache file if it wants to.
  2188. # Prefer an explicitly selected file to automatically selected ones.
  2189. ac_site_file1=NONE
  2190. ac_site_file2=NONE
  2191. if test -n "$CONFIG_SITE"; then
  2192. # We do not want a PATH search for config.site.
  2193. case $CONFIG_SITE in #((
  2194. -*) ac_site_file1=./$CONFIG_SITE;;
  2195. */*) ac_site_file1=$CONFIG_SITE;;
  2196. *) ac_site_file1=./$CONFIG_SITE;;
  2197. esac
  2198. elif test "x$prefix" != xNONE; then
  2199. ac_site_file1=$prefix/share/config.site
  2200. ac_site_file2=$prefix/etc/config.site
  2201. else
  2202. ac_site_file1=$ac_default_prefix/share/config.site
  2203. ac_site_file2=$ac_default_prefix/etc/config.site
  2204. fi
  2205. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2206. do
  2207. test "x$ac_site_file" = xNONE && continue
  2208. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2210. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2211. sed 's/^/| /' "$ac_site_file" >&5
  2212. . "$ac_site_file" \
  2213. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2214. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2215. as_fn_error $? "failed to load site script $ac_site_file
  2216. See \`config.log' for more details" "$LINENO" 5; }
  2217. fi
  2218. done
  2219. if test -r "$cache_file"; then
  2220. # Some versions of bash will fail to source /dev/null (special files
  2221. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2222. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2224. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2225. case $cache_file in
  2226. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2227. *) . "./$cache_file";;
  2228. esac
  2229. fi
  2230. else
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2232. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2233. >$cache_file
  2234. fi
  2235. # Check that the precious variables saved in the cache have kept the same
  2236. # value.
  2237. ac_cache_corrupted=false
  2238. for ac_var in $ac_precious_vars; do
  2239. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2240. eval ac_new_set=\$ac_env_${ac_var}_set
  2241. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2242. eval ac_new_val=\$ac_env_${ac_var}_value
  2243. case $ac_old_set,$ac_new_set in
  2244. set,)
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2246. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2247. ac_cache_corrupted=: ;;
  2248. ,set)
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2250. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2251. ac_cache_corrupted=: ;;
  2252. ,);;
  2253. *)
  2254. if test "x$ac_old_val" != "x$ac_new_val"; then
  2255. # differences in whitespace do not lead to failure.
  2256. ac_old_val_w=`echo x $ac_old_val`
  2257. ac_new_val_w=`echo x $ac_new_val`
  2258. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2260. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2261. ac_cache_corrupted=:
  2262. else
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2264. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2265. eval $ac_var=\$ac_old_val
  2266. fi
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2268. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2270. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2271. fi;;
  2272. esac
  2273. # Pass precious variables to config.status.
  2274. if test "$ac_new_set" = set; then
  2275. case $ac_new_val in
  2276. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2277. *) ac_arg=$ac_var=$ac_new_val ;;
  2278. esac
  2279. case " $ac_configure_args " in
  2280. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2281. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2282. esac
  2283. fi
  2284. done
  2285. if $ac_cache_corrupted; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2289. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2290. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2291. fi
  2292. ## -------------------- ##
  2293. ## Main body of script. ##
  2294. ## -------------------- ##
  2295. ac_ext=c
  2296. ac_cpp='$CPP $CPPFLAGS'
  2297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2300. am__api_version='1.16'
  2301. ac_aux_dir=
  2302. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2303. if test -f "$ac_dir/install-sh"; then
  2304. ac_aux_dir=$ac_dir
  2305. ac_install_sh="$ac_aux_dir/install-sh -c"
  2306. break
  2307. elif test -f "$ac_dir/install.sh"; then
  2308. ac_aux_dir=$ac_dir
  2309. ac_install_sh="$ac_aux_dir/install.sh -c"
  2310. break
  2311. elif test -f "$ac_dir/shtool"; then
  2312. ac_aux_dir=$ac_dir
  2313. ac_install_sh="$ac_aux_dir/shtool install -c"
  2314. break
  2315. fi
  2316. done
  2317. if test -z "$ac_aux_dir"; then
  2318. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2319. fi
  2320. # These three variables are undocumented and unsupported,
  2321. # and are intended to be withdrawn in a future Autoconf release.
  2322. # They can cause serious problems if a builder's source tree is in a directory
  2323. # whose full name contains unusual characters.
  2324. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2325. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2326. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2327. # Find a good install program. We prefer a C program (faster),
  2328. # so one script is as good as another. But avoid the broken or
  2329. # incompatible versions:
  2330. # SysV /etc/install, /usr/sbin/install
  2331. # SunOS /usr/etc/install
  2332. # IRIX /sbin/install
  2333. # AIX /bin/install
  2334. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2335. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2336. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2337. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2338. # OS/2's system install, which has a completely different semantic
  2339. # ./install, which can be erroneously created by make from ./install.sh.
  2340. # Reject install programs that cannot install multiple files.
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2342. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2343. if test -z "$INSTALL"; then
  2344. if ${ac_cv_path_install+:} false; then :
  2345. $as_echo_n "(cached) " >&6
  2346. else
  2347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2348. for as_dir in $PATH
  2349. do
  2350. IFS=$as_save_IFS
  2351. test -z "$as_dir" && as_dir=.
  2352. # Account for people who put trailing slashes in PATH elements.
  2353. case $as_dir/ in #((
  2354. ./ | .// | /[cC]/* | \
  2355. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2356. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2357. /usr/ucb/* ) ;;
  2358. *)
  2359. # OSF1 and SCO ODT 3.0 have their own names for install.
  2360. # Don't use installbsd from OSF since it installs stuff as root
  2361. # by default.
  2362. for ac_prog in ginstall scoinst install; do
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2365. if test $ac_prog = install &&
  2366. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2367. # AIX install. It has an incompatible calling convention.
  2368. :
  2369. elif test $ac_prog = install &&
  2370. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2371. # program-specific install script used by HP pwplus--don't use.
  2372. :
  2373. else
  2374. rm -rf conftest.one conftest.two conftest.dir
  2375. echo one > conftest.one
  2376. echo two > conftest.two
  2377. mkdir conftest.dir
  2378. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2379. test -s conftest.one && test -s conftest.two &&
  2380. test -s conftest.dir/conftest.one &&
  2381. test -s conftest.dir/conftest.two
  2382. then
  2383. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2384. break 3
  2385. fi
  2386. fi
  2387. fi
  2388. done
  2389. done
  2390. ;;
  2391. esac
  2392. done
  2393. IFS=$as_save_IFS
  2394. rm -rf conftest.one conftest.two conftest.dir
  2395. fi
  2396. if test "${ac_cv_path_install+set}" = set; then
  2397. INSTALL=$ac_cv_path_install
  2398. else
  2399. # As a last resort, use the slow shell script. Don't cache a
  2400. # value for INSTALL within a source directory, because that will
  2401. # break other packages using the cache if that directory is
  2402. # removed, or if the value is a relative name.
  2403. INSTALL=$ac_install_sh
  2404. fi
  2405. fi
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2407. $as_echo "$INSTALL" >&6; }
  2408. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2409. # It thinks the first close brace ends the variable substitution.
  2410. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2411. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2412. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2414. $as_echo_n "checking whether build environment is sane... " >&6; }
  2415. # Reject unsafe characters in $srcdir or the absolute working directory
  2416. # name. Accept space and tab only in the latter.
  2417. am_lf='
  2418. '
  2419. case `pwd` in
  2420. *[\\\"\#\$\&\'\`$am_lf]*)
  2421. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2422. esac
  2423. case $srcdir in
  2424. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2425. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2426. esac
  2427. # Do 'set' in a subshell so we don't clobber the current shell's
  2428. # arguments. Must try -L first in case configure is actually a
  2429. # symlink; some systems play weird games with the mod time of symlinks
  2430. # (eg FreeBSD returns the mod time of the symlink's containing
  2431. # directory).
  2432. if (
  2433. am_has_slept=no
  2434. for am_try in 1 2; do
  2435. echo "timestamp, slept: $am_has_slept" > conftest.file
  2436. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2437. if test "$*" = "X"; then
  2438. # -L didn't work.
  2439. set X `ls -t "$srcdir/configure" conftest.file`
  2440. fi
  2441. if test "$*" != "X $srcdir/configure conftest.file" \
  2442. && test "$*" != "X conftest.file $srcdir/configure"; then
  2443. # If neither matched, then we have a broken ls. This can happen
  2444. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2445. # broken ls alias from the environment. This has actually
  2446. # happened. Such a system could not be considered "sane".
  2447. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2448. alias in your environment" "$LINENO" 5
  2449. fi
  2450. if test "$2" = conftest.file || test $am_try -eq 2; then
  2451. break
  2452. fi
  2453. # Just in case.
  2454. sleep 1
  2455. am_has_slept=yes
  2456. done
  2457. test "$2" = conftest.file
  2458. )
  2459. then
  2460. # Ok.
  2461. :
  2462. else
  2463. as_fn_error $? "newly created file is older than distributed files!
  2464. Check your system clock" "$LINENO" 5
  2465. fi
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2467. $as_echo "yes" >&6; }
  2468. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2469. # generated files are strictly newer.
  2470. am_sleep_pid=
  2471. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2472. ( sleep 1 ) &
  2473. am_sleep_pid=$!
  2474. fi
  2475. rm -f conftest.file
  2476. test "$program_prefix" != NONE &&
  2477. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2478. # Use a double $ so make ignores it.
  2479. test "$program_suffix" != NONE &&
  2480. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2481. # Double any \ or $.
  2482. # By default was `s,x,x', remove it if useless.
  2483. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2484. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2485. # Expand $ac_aux_dir to an absolute path.
  2486. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2487. if test x"${MISSING+set}" != xset; then
  2488. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2489. fi
  2490. # Use eval to expand $SHELL
  2491. if eval "$MISSING --is-lightweight"; then
  2492. am_missing_run="$MISSING "
  2493. else
  2494. am_missing_run=
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2496. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2497. fi
  2498. if test x"${install_sh+set}" != xset; then
  2499. case $am_aux_dir in
  2500. *\ * | *\ *)
  2501. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2502. *)
  2503. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2504. esac
  2505. fi
  2506. # Installed binaries are usually stripped using 'strip' when the user
  2507. # run "make install-strip". However 'strip' might not be the right
  2508. # tool to use in cross-compilation environments, therefore Automake
  2509. # will honor the 'STRIP' environment variable to overrule this program.
  2510. if test "$cross_compiling" != no; then
  2511. if test -n "$ac_tool_prefix"; then
  2512. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2513. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2515. $as_echo_n "checking for $ac_word... " >&6; }
  2516. if ${ac_cv_prog_STRIP+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. if test -n "$STRIP"; then
  2520. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2521. else
  2522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2523. for as_dir in $PATH
  2524. do
  2525. IFS=$as_save_IFS
  2526. test -z "$as_dir" && as_dir=.
  2527. for ac_exec_ext in '' $ac_executable_extensions; do
  2528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2529. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2531. break 2
  2532. fi
  2533. done
  2534. done
  2535. IFS=$as_save_IFS
  2536. fi
  2537. fi
  2538. STRIP=$ac_cv_prog_STRIP
  2539. if test -n "$STRIP"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2541. $as_echo "$STRIP" >&6; }
  2542. else
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2544. $as_echo "no" >&6; }
  2545. fi
  2546. fi
  2547. if test -z "$ac_cv_prog_STRIP"; then
  2548. ac_ct_STRIP=$STRIP
  2549. # Extract the first word of "strip", so it can be a program name with args.
  2550. set dummy strip; ac_word=$2
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2552. $as_echo_n "checking for $ac_word... " >&6; }
  2553. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2554. $as_echo_n "(cached) " >&6
  2555. else
  2556. if test -n "$ac_ct_STRIP"; then
  2557. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2558. else
  2559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560. for as_dir in $PATH
  2561. do
  2562. IFS=$as_save_IFS
  2563. test -z "$as_dir" && as_dir=.
  2564. for ac_exec_ext in '' $ac_executable_extensions; do
  2565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2566. ac_cv_prog_ac_ct_STRIP="strip"
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568. break 2
  2569. fi
  2570. done
  2571. done
  2572. IFS=$as_save_IFS
  2573. fi
  2574. fi
  2575. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2576. if test -n "$ac_ct_STRIP"; then
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2578. $as_echo "$ac_ct_STRIP" >&6; }
  2579. else
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2581. $as_echo "no" >&6; }
  2582. fi
  2583. if test "x$ac_ct_STRIP" = x; then
  2584. STRIP=":"
  2585. else
  2586. case $cross_compiling:$ac_tool_warned in
  2587. yes:)
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2590. ac_tool_warned=yes ;;
  2591. esac
  2592. STRIP=$ac_ct_STRIP
  2593. fi
  2594. else
  2595. STRIP="$ac_cv_prog_STRIP"
  2596. fi
  2597. fi
  2598. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2600. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2601. if test -z "$MKDIR_P"; then
  2602. if ${ac_cv_path_mkdir+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. for ac_prog in mkdir gmkdir; do
  2611. for ac_exec_ext in '' $ac_executable_extensions; do
  2612. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2613. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2614. 'mkdir (GNU coreutils) '* | \
  2615. 'mkdir (coreutils) '* | \
  2616. 'mkdir (fileutils) '4.1*)
  2617. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2618. break 3;;
  2619. esac
  2620. done
  2621. done
  2622. done
  2623. IFS=$as_save_IFS
  2624. fi
  2625. test -d ./--version && rmdir ./--version
  2626. if test "${ac_cv_path_mkdir+set}" = set; then
  2627. MKDIR_P="$ac_cv_path_mkdir -p"
  2628. else
  2629. # As a last resort, use the slow shell script. Don't cache a
  2630. # value for MKDIR_P within a source directory, because that will
  2631. # break other packages using the cache if that directory is
  2632. # removed, or if the value is a relative name.
  2633. MKDIR_P="$ac_install_sh -d"
  2634. fi
  2635. fi
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2637. $as_echo "$MKDIR_P" >&6; }
  2638. for ac_prog in gawk mawk nawk awk
  2639. do
  2640. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2641. set dummy $ac_prog; ac_word=$2
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2643. $as_echo_n "checking for $ac_word... " >&6; }
  2644. if ${ac_cv_prog_AWK+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test -n "$AWK"; then
  2648. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2649. else
  2650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2651. for as_dir in $PATH
  2652. do
  2653. IFS=$as_save_IFS
  2654. test -z "$as_dir" && as_dir=.
  2655. for ac_exec_ext in '' $ac_executable_extensions; do
  2656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2657. ac_cv_prog_AWK="$ac_prog"
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. break 2
  2660. fi
  2661. done
  2662. done
  2663. IFS=$as_save_IFS
  2664. fi
  2665. fi
  2666. AWK=$ac_cv_prog_AWK
  2667. if test -n "$AWK"; then
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2669. $as_echo "$AWK" >&6; }
  2670. else
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2672. $as_echo "no" >&6; }
  2673. fi
  2674. test -n "$AWK" && break
  2675. done
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2677. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2678. set x ${MAKE-make}
  2679. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2680. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. cat >conftest.make <<\_ACEOF
  2684. SHELL = /bin/sh
  2685. all:
  2686. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2687. _ACEOF
  2688. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2689. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2690. *@@@%%%=?*=@@@%%%*)
  2691. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2692. *)
  2693. eval ac_cv_prog_make_${ac_make}_set=no;;
  2694. esac
  2695. rm -f conftest.make
  2696. fi
  2697. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2699. $as_echo "yes" >&6; }
  2700. SET_MAKE=
  2701. else
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. SET_MAKE="MAKE=${MAKE-make}"
  2705. fi
  2706. rm -rf .tst 2>/dev/null
  2707. mkdir .tst 2>/dev/null
  2708. if test -d .tst; then
  2709. am__leading_dot=.
  2710. else
  2711. am__leading_dot=_
  2712. fi
  2713. rmdir .tst 2>/dev/null
  2714. # Check whether --enable-silent-rules was given.
  2715. if test "${enable_silent_rules+set}" = set; then :
  2716. enableval=$enable_silent_rules;
  2717. fi
  2718. case $enable_silent_rules in # (((
  2719. yes) AM_DEFAULT_VERBOSITY=0;;
  2720. no) AM_DEFAULT_VERBOSITY=1;;
  2721. *) AM_DEFAULT_VERBOSITY=1;;
  2722. esac
  2723. am_make=${MAKE-make}
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2725. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2726. if ${am_cv_make_support_nested_variables+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. if $as_echo 'TRUE=$(BAR$(V))
  2730. BAR0=false
  2731. BAR1=true
  2732. V=1
  2733. am__doit:
  2734. @$(TRUE)
  2735. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2736. am_cv_make_support_nested_variables=yes
  2737. else
  2738. am_cv_make_support_nested_variables=no
  2739. fi
  2740. fi
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2742. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2743. if test $am_cv_make_support_nested_variables = yes; then
  2744. AM_V='$(V)'
  2745. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2746. else
  2747. AM_V=$AM_DEFAULT_VERBOSITY
  2748. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2749. fi
  2750. AM_BACKSLASH='\'
  2751. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2752. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2753. # is not polluted with repeated "-I."
  2754. am__isrc=' -I$(srcdir)'
  2755. # test to see if srcdir already configured
  2756. if test -f $srcdir/config.status; then
  2757. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2758. fi
  2759. fi
  2760. # test whether we have cygpath
  2761. if test -z "$CYGPATH_W"; then
  2762. if (cygpath --version) >/dev/null 2>/dev/null; then
  2763. CYGPATH_W='cygpath -w'
  2764. else
  2765. CYGPATH_W=echo
  2766. fi
  2767. fi
  2768. # Define the identity of the package.
  2769. PACKAGE='bluez'
  2770. VERSION='5.62'
  2771. cat >>confdefs.h <<_ACEOF
  2772. #define PACKAGE "$PACKAGE"
  2773. _ACEOF
  2774. cat >>confdefs.h <<_ACEOF
  2775. #define VERSION "$VERSION"
  2776. _ACEOF
  2777. # Some tools Automake needs.
  2778. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2779. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2780. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2781. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2782. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2783. # For better backward compatibility. To be removed once Automake 1.9.x
  2784. # dies out for good. For more background, see:
  2785. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2786. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2787. mkdir_p='$(MKDIR_P)'
  2788. # We need awk for the "check" target (and possibly the TAP driver). The
  2789. # system "awk" is bad on some platforms.
  2790. # Always define AMTAR for backward compatibility. Yes, it's still used
  2791. # in the wild :-( We should find a proper way to deprecate it ...
  2792. AMTAR='$${TAR-tar}'
  2793. # We'll loop over all known methods to create a tar archive until one works.
  2794. _am_tools='gnutar pax cpio none'
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  2796. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  2797. # Go ahead even if we have the value already cached. We do so because we
  2798. # need to set the values for the 'am__tar' and 'am__untar' variables.
  2799. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  2800. for _am_tool in $_am_tools; do
  2801. case $_am_tool in
  2802. gnutar)
  2803. for _am_tar in tar gnutar gtar; do
  2804. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2805. ($_am_tar --version) >&5 2>&5
  2806. ac_status=$?
  2807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2808. (exit $ac_status); } && break
  2809. done
  2810. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  2811. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  2812. am__untar="$_am_tar -xf -"
  2813. ;;
  2814. plaintar)
  2815. # Must skip GNU tar: if it does not support --format= it doesn't create
  2816. # ustar tarball either.
  2817. (tar --version) >/dev/null 2>&1 && continue
  2818. am__tar='tar chf - "$$tardir"'
  2819. am__tar_='tar chf - "$tardir"'
  2820. am__untar='tar xf -'
  2821. ;;
  2822. pax)
  2823. am__tar='pax -L -x pax -w "$$tardir"'
  2824. am__tar_='pax -L -x pax -w "$tardir"'
  2825. am__untar='pax -r'
  2826. ;;
  2827. cpio)
  2828. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  2829. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  2830. am__untar='cpio -i -H pax -d'
  2831. ;;
  2832. none)
  2833. am__tar=false
  2834. am__tar_=false
  2835. am__untar=false
  2836. ;;
  2837. esac
  2838. # If the value was cached, stop now. We just wanted to have am__tar
  2839. # and am__untar set.
  2840. test -n "${am_cv_prog_tar_pax}" && break
  2841. # tar/untar a dummy directory, and stop if the command works.
  2842. rm -rf conftest.dir
  2843. mkdir conftest.dir
  2844. echo GrepMe > conftest.dir/file
  2845. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2846. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2847. ac_status=$?
  2848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2849. (exit $ac_status); }
  2850. rm -rf conftest.dir
  2851. if test -s conftest.tar; then
  2852. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2853. ($am__untar <conftest.tar) >&5 2>&5
  2854. ac_status=$?
  2855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. (exit $ac_status); }
  2857. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  2858. (cat conftest.dir/file) >&5 2>&5
  2859. ac_status=$?
  2860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); }
  2862. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2863. fi
  2864. done
  2865. rm -rf conftest.dir
  2866. if ${am_cv_prog_tar_pax+:} false; then :
  2867. $as_echo_n "(cached) " >&6
  2868. else
  2869. am_cv_prog_tar_pax=$_am_tool
  2870. fi
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  2872. $as_echo "$am_cv_prog_tar_pax" >&6; }
  2873. # POSIX will say in a future version that running "rm -f" with no argument
  2874. # is OK; and we want to be able to make that assumption in our Makefile
  2875. # recipes. So use an aggressive probe to check that the usage we want is
  2876. # actually supported "in the wild" to an acceptable degree.
  2877. # See automake bug#10828.
  2878. # To make any issue more visible, cause the running configure to be aborted
  2879. # by default if the 'rm' program in use doesn't match our expectations; the
  2880. # user can still override this though.
  2881. if rm -f && rm -fr && rm -rf; then : OK; else
  2882. cat >&2 <<'END'
  2883. Oops!
  2884. Your 'rm' program seems unable to run without file operands specified
  2885. on the command line, even when the '-f' option is present. This is contrary
  2886. to the behaviour of most rm programs out there, and not conforming with
  2887. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2888. Please tell bug-automake@gnu.org about your system, including the value
  2889. of your $PATH and any error possibly output before this message. This
  2890. can help us improve future automake versions.
  2891. END
  2892. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2893. echo 'Configuration will proceed anyway, since you have set the' >&2
  2894. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2895. echo >&2
  2896. else
  2897. cat >&2 <<'END'
  2898. Aborting the configuration process, to ensure you take notice of the issue.
  2899. You can download and install GNU coreutils to get an 'rm' implementation
  2900. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2901. If you want to complete the configuration process using your problematic
  2902. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2903. to "yes", and re-run configure.
  2904. END
  2905. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2906. fi
  2907. fi
  2908. ac_config_headers="$ac_config_headers config.h"
  2909. # Check whether --enable-silent-rules was given.
  2910. if test "${enable_silent_rules+set}" = set; then :
  2911. enableval=$enable_silent_rules;
  2912. fi
  2913. case $enable_silent_rules in # (((
  2914. yes) AM_DEFAULT_VERBOSITY=0;;
  2915. no) AM_DEFAULT_VERBOSITY=1;;
  2916. *) AM_DEFAULT_VERBOSITY=0;;
  2917. esac
  2918. am_make=${MAKE-make}
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2920. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2921. if ${am_cv_make_support_nested_variables+:} false; then :
  2922. $as_echo_n "(cached) " >&6
  2923. else
  2924. if $as_echo 'TRUE=$(BAR$(V))
  2925. BAR0=false
  2926. BAR1=true
  2927. V=1
  2928. am__doit:
  2929. @$(TRUE)
  2930. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2931. am_cv_make_support_nested_variables=yes
  2932. else
  2933. am_cv_make_support_nested_variables=no
  2934. fi
  2935. fi
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2937. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2938. if test $am_cv_make_support_nested_variables = yes; then
  2939. AM_V='$(V)'
  2940. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2941. else
  2942. AM_V=$AM_DEFAULT_VERBOSITY
  2943. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2944. fi
  2945. AM_BACKSLASH='\'
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2947. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2948. # Check whether --enable-maintainer-mode was given.
  2949. if test "${enable_maintainer_mode+set}" = set; then :
  2950. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2951. else
  2952. USE_MAINTAINER_MODE=no
  2953. fi
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2955. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2956. if test $USE_MAINTAINER_MODE = yes; then
  2957. MAINTAINER_MODE_TRUE=
  2958. MAINTAINER_MODE_FALSE='#'
  2959. else
  2960. MAINTAINER_MODE_TRUE='#'
  2961. MAINTAINER_MODE_FALSE=
  2962. fi
  2963. MAINT=$MAINTAINER_MODE_TRUE
  2964. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  2965. if test -n "$ac_tool_prefix"; then
  2966. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  2967. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2969. $as_echo_n "checking for $ac_word... " >&6; }
  2970. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. case $PKG_CONFIG in
  2974. [\\/]* | ?:[\\/]*)
  2975. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  2976. ;;
  2977. *)
  2978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2979. for as_dir in $PATH
  2980. do
  2981. IFS=$as_save_IFS
  2982. test -z "$as_dir" && as_dir=.
  2983. for ac_exec_ext in '' $ac_executable_extensions; do
  2984. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2985. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. IFS=$as_save_IFS
  2992. ;;
  2993. esac
  2994. fi
  2995. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  2996. if test -n "$PKG_CONFIG"; then
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  2998. $as_echo "$PKG_CONFIG" >&6; }
  2999. else
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3001. $as_echo "no" >&6; }
  3002. fi
  3003. fi
  3004. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3005. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3006. # Extract the first word of "pkg-config", so it can be a program name with args.
  3007. set dummy pkg-config; ac_word=$2
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3009. $as_echo_n "checking for $ac_word... " >&6; }
  3010. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3011. $as_echo_n "(cached) " >&6
  3012. else
  3013. case $ac_pt_PKG_CONFIG in
  3014. [\\/]* | ?:[\\/]*)
  3015. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3016. ;;
  3017. *)
  3018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3019. for as_dir in $PATH
  3020. do
  3021. IFS=$as_save_IFS
  3022. test -z "$as_dir" && as_dir=.
  3023. for ac_exec_ext in '' $ac_executable_extensions; do
  3024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3025. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3027. break 2
  3028. fi
  3029. done
  3030. done
  3031. IFS=$as_save_IFS
  3032. ;;
  3033. esac
  3034. fi
  3035. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3036. if test -n "$ac_pt_PKG_CONFIG"; then
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3038. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3039. else
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3041. $as_echo "no" >&6; }
  3042. fi
  3043. if test "x$ac_pt_PKG_CONFIG" = x; then
  3044. PKG_CONFIG=""
  3045. else
  3046. case $cross_compiling:$ac_tool_warned in
  3047. yes:)
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3049. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3050. ac_tool_warned=yes ;;
  3051. esac
  3052. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3053. fi
  3054. else
  3055. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3056. fi
  3057. fi
  3058. if test -n "$PKG_CONFIG"; then
  3059. _pkg_min_version=0.9.0
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3061. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3062. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3064. $as_echo "yes" >&6; }
  3065. else
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3067. $as_echo "no" >&6; }
  3068. PKG_CONFIG=""
  3069. fi
  3070. fi
  3071. with_cflags=""
  3072. if (test "$USE_MAINTAINER_MODE" = "yes"); then
  3073. with_cflags="$with_cflags -Wall -Werror -Wextra"
  3074. with_cflags="$with_cflags -Wno-unused-parameter"
  3075. with_cflags="$with_cflags -Wno-missing-field-initializers"
  3076. with_cflags="$with_cflags -Wdeclaration-after-statement"
  3077. with_cflags="$with_cflags -Wmissing-declarations"
  3078. with_cflags="$with_cflags -Wredundant-decls"
  3079. with_cflags="$with_cflags -Wcast-align"
  3080. with_cflags="$with_cflags -Wswitch-enum"
  3081. with_cflags="$with_cflags -Wformat -Wformat-security"
  3082. with_cflags="$with_cflags -DG_DISABLE_DEPRECATED"
  3083. with_cflags="$with_cflags -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_28"
  3084. with_cflags="$with_cflags -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32"
  3085. fi
  3086. WARNING_CFLAGS=$with_cflags
  3087. ac_ext=c
  3088. ac_cpp='$CPP $CPPFLAGS'
  3089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3092. DEPDIR="${am__leading_dot}deps"
  3093. ac_config_commands="$ac_config_commands depfiles"
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3095. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3096. cat > confinc.mk << 'END'
  3097. am__doit:
  3098. @echo this is the am__doit target >confinc.out
  3099. .PHONY: am__doit
  3100. END
  3101. am__include="#"
  3102. am__quote=
  3103. # BSD make does it like this.
  3104. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3105. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3106. echo 'include confinc.mk # ignored' > confmf.GNU
  3107. _am_result=no
  3108. for s in GNU BSD; do
  3109. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3110. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3111. ac_status=$?
  3112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3113. (exit $ac_status); }
  3114. case $?:`cat confinc.out 2>/dev/null` in #(
  3115. '0:this is the am__doit target') :
  3116. case $s in #(
  3117. BSD) :
  3118. am__include='.include' am__quote='"' ;; #(
  3119. *) :
  3120. am__include='include' am__quote='' ;;
  3121. esac ;; #(
  3122. *) :
  3123. ;;
  3124. esac
  3125. if test "$am__include" != "#"; then
  3126. _am_result="yes ($s style)"
  3127. break
  3128. fi
  3129. done
  3130. rm -f confinc.* confmf.*
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3132. $as_echo "${_am_result}" >&6; }
  3133. # Check whether --enable-dependency-tracking was given.
  3134. if test "${enable_dependency_tracking+set}" = set; then :
  3135. enableval=$enable_dependency_tracking;
  3136. fi
  3137. if test "x$enable_dependency_tracking" != xno; then
  3138. am_depcomp="$ac_aux_dir/depcomp"
  3139. AMDEPBACKSLASH='\'
  3140. am__nodep='_no'
  3141. fi
  3142. if test "x$enable_dependency_tracking" != xno; then
  3143. AMDEP_TRUE=
  3144. AMDEP_FALSE='#'
  3145. else
  3146. AMDEP_TRUE='#'
  3147. AMDEP_FALSE=
  3148. fi
  3149. ac_ext=c
  3150. ac_cpp='$CPP $CPPFLAGS'
  3151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3154. if test -n "$ac_tool_prefix"; then
  3155. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3156. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3158. $as_echo_n "checking for $ac_word... " >&6; }
  3159. if ${ac_cv_prog_CC+:} false; then :
  3160. $as_echo_n "(cached) " >&6
  3161. else
  3162. if test -n "$CC"; then
  3163. ac_cv_prog_CC="$CC" # Let the user override the test.
  3164. else
  3165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3166. for as_dir in $PATH
  3167. do
  3168. IFS=$as_save_IFS
  3169. test -z "$as_dir" && as_dir=.
  3170. for ac_exec_ext in '' $ac_executable_extensions; do
  3171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3172. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3174. break 2
  3175. fi
  3176. done
  3177. done
  3178. IFS=$as_save_IFS
  3179. fi
  3180. fi
  3181. CC=$ac_cv_prog_CC
  3182. if test -n "$CC"; then
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3184. $as_echo "$CC" >&6; }
  3185. else
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3187. $as_echo "no" >&6; }
  3188. fi
  3189. fi
  3190. if test -z "$ac_cv_prog_CC"; then
  3191. ac_ct_CC=$CC
  3192. # Extract the first word of "gcc", so it can be a program name with args.
  3193. set dummy gcc; ac_word=$2
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3195. $as_echo_n "checking for $ac_word... " >&6; }
  3196. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3197. $as_echo_n "(cached) " >&6
  3198. else
  3199. if test -n "$ac_ct_CC"; then
  3200. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3201. else
  3202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3203. for as_dir in $PATH
  3204. do
  3205. IFS=$as_save_IFS
  3206. test -z "$as_dir" && as_dir=.
  3207. for ac_exec_ext in '' $ac_executable_extensions; do
  3208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3209. ac_cv_prog_ac_ct_CC="gcc"
  3210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3211. break 2
  3212. fi
  3213. done
  3214. done
  3215. IFS=$as_save_IFS
  3216. fi
  3217. fi
  3218. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3219. if test -n "$ac_ct_CC"; then
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3221. $as_echo "$ac_ct_CC" >&6; }
  3222. else
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3224. $as_echo "no" >&6; }
  3225. fi
  3226. if test "x$ac_ct_CC" = x; then
  3227. CC=""
  3228. else
  3229. case $cross_compiling:$ac_tool_warned in
  3230. yes:)
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3233. ac_tool_warned=yes ;;
  3234. esac
  3235. CC=$ac_ct_CC
  3236. fi
  3237. else
  3238. CC="$ac_cv_prog_CC"
  3239. fi
  3240. if test -z "$CC"; then
  3241. if test -n "$ac_tool_prefix"; then
  3242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3245. $as_echo_n "checking for $ac_word... " >&6; }
  3246. if ${ac_cv_prog_CC+:} false; then :
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. if test -n "$CC"; then
  3250. ac_cv_prog_CC="$CC" # Let the user override the test.
  3251. else
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3261. break 2
  3262. fi
  3263. done
  3264. done
  3265. IFS=$as_save_IFS
  3266. fi
  3267. fi
  3268. CC=$ac_cv_prog_CC
  3269. if test -n "$CC"; then
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3271. $as_echo "$CC" >&6; }
  3272. else
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3274. $as_echo "no" >&6; }
  3275. fi
  3276. fi
  3277. fi
  3278. if test -z "$CC"; then
  3279. # Extract the first word of "cc", so it can be a program name with args.
  3280. set dummy cc; ac_word=$2
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3282. $as_echo_n "checking for $ac_word... " >&6; }
  3283. if ${ac_cv_prog_CC+:} false; then :
  3284. $as_echo_n "(cached) " >&6
  3285. else
  3286. if test -n "$CC"; then
  3287. ac_cv_prog_CC="$CC" # Let the user override the test.
  3288. else
  3289. ac_prog_rejected=no
  3290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3291. for as_dir in $PATH
  3292. do
  3293. IFS=$as_save_IFS
  3294. test -z "$as_dir" && as_dir=.
  3295. for ac_exec_ext in '' $ac_executable_extensions; do
  3296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3297. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3298. ac_prog_rejected=yes
  3299. continue
  3300. fi
  3301. ac_cv_prog_CC="cc"
  3302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3303. break 2
  3304. fi
  3305. done
  3306. done
  3307. IFS=$as_save_IFS
  3308. if test $ac_prog_rejected = yes; then
  3309. # We found a bogon in the path, so make sure we never use it.
  3310. set dummy $ac_cv_prog_CC
  3311. shift
  3312. if test $# != 0; then
  3313. # We chose a different compiler from the bogus one.
  3314. # However, it has the same basename, so the bogon will be chosen
  3315. # first if we set CC to just the basename; use the full file name.
  3316. shift
  3317. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3318. fi
  3319. fi
  3320. fi
  3321. fi
  3322. CC=$ac_cv_prog_CC
  3323. if test -n "$CC"; then
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3325. $as_echo "$CC" >&6; }
  3326. else
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3328. $as_echo "no" >&6; }
  3329. fi
  3330. fi
  3331. if test -z "$CC"; then
  3332. if test -n "$ac_tool_prefix"; then
  3333. for ac_prog in cl.exe
  3334. do
  3335. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3336. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3338. $as_echo_n "checking for $ac_word... " >&6; }
  3339. if ${ac_cv_prog_CC+:} false; then :
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. if test -n "$CC"; then
  3343. ac_cv_prog_CC="$CC" # Let the user override the test.
  3344. else
  3345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3346. for as_dir in $PATH
  3347. do
  3348. IFS=$as_save_IFS
  3349. test -z "$as_dir" && as_dir=.
  3350. for ac_exec_ext in '' $ac_executable_extensions; do
  3351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3352. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3354. break 2
  3355. fi
  3356. done
  3357. done
  3358. IFS=$as_save_IFS
  3359. fi
  3360. fi
  3361. CC=$ac_cv_prog_CC
  3362. if test -n "$CC"; then
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3364. $as_echo "$CC" >&6; }
  3365. else
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3367. $as_echo "no" >&6; }
  3368. fi
  3369. test -n "$CC" && break
  3370. done
  3371. fi
  3372. if test -z "$CC"; then
  3373. ac_ct_CC=$CC
  3374. for ac_prog in cl.exe
  3375. do
  3376. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3377. set dummy $ac_prog; ac_word=$2
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3379. $as_echo_n "checking for $ac_word... " >&6; }
  3380. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3381. $as_echo_n "(cached) " >&6
  3382. else
  3383. if test -n "$ac_ct_CC"; then
  3384. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3385. else
  3386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3387. for as_dir in $PATH
  3388. do
  3389. IFS=$as_save_IFS
  3390. test -z "$as_dir" && as_dir=.
  3391. for ac_exec_ext in '' $ac_executable_extensions; do
  3392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3393. ac_cv_prog_ac_ct_CC="$ac_prog"
  3394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3395. break 2
  3396. fi
  3397. done
  3398. done
  3399. IFS=$as_save_IFS
  3400. fi
  3401. fi
  3402. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3403. if test -n "$ac_ct_CC"; then
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3405. $as_echo "$ac_ct_CC" >&6; }
  3406. else
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3408. $as_echo "no" >&6; }
  3409. fi
  3410. test -n "$ac_ct_CC" && break
  3411. done
  3412. if test "x$ac_ct_CC" = x; then
  3413. CC=""
  3414. else
  3415. case $cross_compiling:$ac_tool_warned in
  3416. yes:)
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3418. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3419. ac_tool_warned=yes ;;
  3420. esac
  3421. CC=$ac_ct_CC
  3422. fi
  3423. fi
  3424. fi
  3425. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3426. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3427. as_fn_error $? "no acceptable C compiler found in \$PATH
  3428. See \`config.log' for more details" "$LINENO" 5; }
  3429. # Provide some information about the compiler.
  3430. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3431. set X $ac_compile
  3432. ac_compiler=$2
  3433. for ac_option in --version -v -V -qversion; do
  3434. { { ac_try="$ac_compiler $ac_option >&5"
  3435. case "(($ac_try" in
  3436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3437. *) ac_try_echo=$ac_try;;
  3438. esac
  3439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3440. $as_echo "$ac_try_echo"; } >&5
  3441. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3442. ac_status=$?
  3443. if test -s conftest.err; then
  3444. sed '10a\
  3445. ... rest of stderr output deleted ...
  3446. 10q' conftest.err >conftest.er1
  3447. cat conftest.er1 >&5
  3448. fi
  3449. rm -f conftest.er1 conftest.err
  3450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3451. test $ac_status = 0; }
  3452. done
  3453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3454. /* end confdefs.h. */
  3455. int
  3456. main ()
  3457. {
  3458. ;
  3459. return 0;
  3460. }
  3461. _ACEOF
  3462. ac_clean_files_save=$ac_clean_files
  3463. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3464. # Try to create an executable without -o first, disregard a.out.
  3465. # It will help us diagnose broken compilers, and finding out an intuition
  3466. # of exeext.
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3468. $as_echo_n "checking whether the C compiler works... " >&6; }
  3469. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3470. # The possible output files:
  3471. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3472. ac_rmfiles=
  3473. for ac_file in $ac_files
  3474. do
  3475. case $ac_file in
  3476. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3477. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3478. esac
  3479. done
  3480. rm -f $ac_rmfiles
  3481. if { { ac_try="$ac_link_default"
  3482. case "(($ac_try" in
  3483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3484. *) ac_try_echo=$ac_try;;
  3485. esac
  3486. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3487. $as_echo "$ac_try_echo"; } >&5
  3488. (eval "$ac_link_default") 2>&5
  3489. ac_status=$?
  3490. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3491. test $ac_status = 0; }; then :
  3492. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3493. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3494. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3495. # so that the user can short-circuit this test for compilers unknown to
  3496. # Autoconf.
  3497. for ac_file in $ac_files ''
  3498. do
  3499. test -f "$ac_file" || continue
  3500. case $ac_file in
  3501. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3502. ;;
  3503. [ab].out )
  3504. # We found the default executable, but exeext='' is most
  3505. # certainly right.
  3506. break;;
  3507. *.* )
  3508. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3509. then :; else
  3510. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3511. fi
  3512. # We set ac_cv_exeext here because the later test for it is not
  3513. # safe: cross compilers may not add the suffix if given an `-o'
  3514. # argument, so we may need to know it at that point already.
  3515. # Even if this section looks crufty: it has the advantage of
  3516. # actually working.
  3517. break;;
  3518. * )
  3519. break;;
  3520. esac
  3521. done
  3522. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3523. else
  3524. ac_file=''
  3525. fi
  3526. if test -z "$ac_file"; then :
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3528. $as_echo "no" >&6; }
  3529. $as_echo "$as_me: failed program was:" >&5
  3530. sed 's/^/| /' conftest.$ac_ext >&5
  3531. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3532. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3533. as_fn_error 77 "C compiler cannot create executables
  3534. See \`config.log' for more details" "$LINENO" 5; }
  3535. else
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3537. $as_echo "yes" >&6; }
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3540. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3542. $as_echo "$ac_file" >&6; }
  3543. ac_exeext=$ac_cv_exeext
  3544. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3545. ac_clean_files=$ac_clean_files_save
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3547. $as_echo_n "checking for suffix of executables... " >&6; }
  3548. if { { ac_try="$ac_link"
  3549. case "(($ac_try" in
  3550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3551. *) ac_try_echo=$ac_try;;
  3552. esac
  3553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3554. $as_echo "$ac_try_echo"; } >&5
  3555. (eval "$ac_link") 2>&5
  3556. ac_status=$?
  3557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3558. test $ac_status = 0; }; then :
  3559. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3560. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3561. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3562. # `rm'.
  3563. for ac_file in conftest.exe conftest conftest.*; do
  3564. test -f "$ac_file" || continue
  3565. case $ac_file in
  3566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3567. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3568. break;;
  3569. * ) break;;
  3570. esac
  3571. done
  3572. else
  3573. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3575. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3576. See \`config.log' for more details" "$LINENO" 5; }
  3577. fi
  3578. rm -f conftest conftest$ac_cv_exeext
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3580. $as_echo "$ac_cv_exeext" >&6; }
  3581. rm -f conftest.$ac_ext
  3582. EXEEXT=$ac_cv_exeext
  3583. ac_exeext=$EXEEXT
  3584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3585. /* end confdefs.h. */
  3586. #include <stdio.h>
  3587. int
  3588. main ()
  3589. {
  3590. FILE *f = fopen ("conftest.out", "w");
  3591. return ferror (f) || fclose (f) != 0;
  3592. ;
  3593. return 0;
  3594. }
  3595. _ACEOF
  3596. ac_clean_files="$ac_clean_files conftest.out"
  3597. # Check that the compiler produces executables we can run. If not, either
  3598. # the compiler is broken, or we cross compile.
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3600. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3601. if test "$cross_compiling" != yes; then
  3602. { { ac_try="$ac_link"
  3603. case "(($ac_try" in
  3604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3605. *) ac_try_echo=$ac_try;;
  3606. esac
  3607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3608. $as_echo "$ac_try_echo"; } >&5
  3609. (eval "$ac_link") 2>&5
  3610. ac_status=$?
  3611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3612. test $ac_status = 0; }
  3613. if { ac_try='./conftest$ac_cv_exeext'
  3614. { { case "(($ac_try" in
  3615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3616. *) ac_try_echo=$ac_try;;
  3617. esac
  3618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3619. $as_echo "$ac_try_echo"; } >&5
  3620. (eval "$ac_try") 2>&5
  3621. ac_status=$?
  3622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3623. test $ac_status = 0; }; }; then
  3624. cross_compiling=no
  3625. else
  3626. if test "$cross_compiling" = maybe; then
  3627. cross_compiling=yes
  3628. else
  3629. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3630. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3631. as_fn_error $? "cannot run C compiled programs.
  3632. If you meant to cross compile, use \`--host'.
  3633. See \`config.log' for more details" "$LINENO" 5; }
  3634. fi
  3635. fi
  3636. fi
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3638. $as_echo "$cross_compiling" >&6; }
  3639. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3640. ac_clean_files=$ac_clean_files_save
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3642. $as_echo_n "checking for suffix of object files... " >&6; }
  3643. if ${ac_cv_objext+:} false; then :
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3647. /* end confdefs.h. */
  3648. int
  3649. main ()
  3650. {
  3651. ;
  3652. return 0;
  3653. }
  3654. _ACEOF
  3655. rm -f conftest.o conftest.obj
  3656. if { { ac_try="$ac_compile"
  3657. case "(($ac_try" in
  3658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3659. *) ac_try_echo=$ac_try;;
  3660. esac
  3661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3662. $as_echo "$ac_try_echo"; } >&5
  3663. (eval "$ac_compile") 2>&5
  3664. ac_status=$?
  3665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3666. test $ac_status = 0; }; then :
  3667. for ac_file in conftest.o conftest.obj conftest.*; do
  3668. test -f "$ac_file" || continue;
  3669. case $ac_file in
  3670. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3671. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3672. break;;
  3673. esac
  3674. done
  3675. else
  3676. $as_echo "$as_me: failed program was:" >&5
  3677. sed 's/^/| /' conftest.$ac_ext >&5
  3678. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3679. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3680. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3681. See \`config.log' for more details" "$LINENO" 5; }
  3682. fi
  3683. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3684. fi
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3686. $as_echo "$ac_cv_objext" >&6; }
  3687. OBJEXT=$ac_cv_objext
  3688. ac_objext=$OBJEXT
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3690. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3691. if ${ac_cv_c_compiler_gnu+:} false; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3695. /* end confdefs.h. */
  3696. int
  3697. main ()
  3698. {
  3699. #ifndef __GNUC__
  3700. choke me
  3701. #endif
  3702. ;
  3703. return 0;
  3704. }
  3705. _ACEOF
  3706. if ac_fn_c_try_compile "$LINENO"; then :
  3707. ac_compiler_gnu=yes
  3708. else
  3709. ac_compiler_gnu=no
  3710. fi
  3711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3712. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3713. fi
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3715. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3716. if test $ac_compiler_gnu = yes; then
  3717. GCC=yes
  3718. else
  3719. GCC=
  3720. fi
  3721. ac_test_CFLAGS=${CFLAGS+set}
  3722. ac_save_CFLAGS=$CFLAGS
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3724. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3725. if ${ac_cv_prog_cc_g+:} false; then :
  3726. $as_echo_n "(cached) " >&6
  3727. else
  3728. ac_save_c_werror_flag=$ac_c_werror_flag
  3729. ac_c_werror_flag=yes
  3730. ac_cv_prog_cc_g=no
  3731. CFLAGS="-g"
  3732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3733. /* end confdefs.h. */
  3734. int
  3735. main ()
  3736. {
  3737. ;
  3738. return 0;
  3739. }
  3740. _ACEOF
  3741. if ac_fn_c_try_compile "$LINENO"; then :
  3742. ac_cv_prog_cc_g=yes
  3743. else
  3744. CFLAGS=""
  3745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3746. /* end confdefs.h. */
  3747. int
  3748. main ()
  3749. {
  3750. ;
  3751. return 0;
  3752. }
  3753. _ACEOF
  3754. if ac_fn_c_try_compile "$LINENO"; then :
  3755. else
  3756. ac_c_werror_flag=$ac_save_c_werror_flag
  3757. CFLAGS="-g"
  3758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3759. /* end confdefs.h. */
  3760. int
  3761. main ()
  3762. {
  3763. ;
  3764. return 0;
  3765. }
  3766. _ACEOF
  3767. if ac_fn_c_try_compile "$LINENO"; then :
  3768. ac_cv_prog_cc_g=yes
  3769. fi
  3770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3771. fi
  3772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3773. fi
  3774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3775. ac_c_werror_flag=$ac_save_c_werror_flag
  3776. fi
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3778. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3779. if test "$ac_test_CFLAGS" = set; then
  3780. CFLAGS=$ac_save_CFLAGS
  3781. elif test $ac_cv_prog_cc_g = yes; then
  3782. if test "$GCC" = yes; then
  3783. CFLAGS="-g -O2"
  3784. else
  3785. CFLAGS="-g"
  3786. fi
  3787. else
  3788. if test "$GCC" = yes; then
  3789. CFLAGS="-O2"
  3790. else
  3791. CFLAGS=
  3792. fi
  3793. fi
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3795. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3796. if ${ac_cv_prog_cc_c89+:} false; then :
  3797. $as_echo_n "(cached) " >&6
  3798. else
  3799. ac_cv_prog_cc_c89=no
  3800. ac_save_CC=$CC
  3801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3802. /* end confdefs.h. */
  3803. #include <stdarg.h>
  3804. #include <stdio.h>
  3805. struct stat;
  3806. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3807. struct buf { int x; };
  3808. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3809. static char *e (p, i)
  3810. char **p;
  3811. int i;
  3812. {
  3813. return p[i];
  3814. }
  3815. static char *f (char * (*g) (char **, int), char **p, ...)
  3816. {
  3817. char *s;
  3818. va_list v;
  3819. va_start (v,p);
  3820. s = g (p, va_arg (v,int));
  3821. va_end (v);
  3822. return s;
  3823. }
  3824. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3825. function prototypes and stuff, but not '\xHH' hex character constants.
  3826. These don't provoke an error unfortunately, instead are silently treated
  3827. as 'x'. The following induces an error, until -std is added to get
  3828. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3829. array size at least. It's necessary to write '\x00'==0 to get something
  3830. that's true only with -std. */
  3831. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3832. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3833. inside strings and character constants. */
  3834. #define FOO(x) 'x'
  3835. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3836. int test (int i, double x);
  3837. struct s1 {int (*f) (int a);};
  3838. struct s2 {int (*f) (double a);};
  3839. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3840. int argc;
  3841. char **argv;
  3842. int
  3843. main ()
  3844. {
  3845. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3846. ;
  3847. return 0;
  3848. }
  3849. _ACEOF
  3850. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3851. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3852. do
  3853. CC="$ac_save_CC $ac_arg"
  3854. if ac_fn_c_try_compile "$LINENO"; then :
  3855. ac_cv_prog_cc_c89=$ac_arg
  3856. fi
  3857. rm -f core conftest.err conftest.$ac_objext
  3858. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3859. done
  3860. rm -f conftest.$ac_ext
  3861. CC=$ac_save_CC
  3862. fi
  3863. # AC_CACHE_VAL
  3864. case "x$ac_cv_prog_cc_c89" in
  3865. x)
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3867. $as_echo "none needed" >&6; } ;;
  3868. xno)
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3870. $as_echo "unsupported" >&6; } ;;
  3871. *)
  3872. CC="$CC $ac_cv_prog_cc_c89"
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3874. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3875. esac
  3876. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3877. fi
  3878. ac_ext=c
  3879. ac_cpp='$CPP $CPPFLAGS'
  3880. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3881. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3882. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3883. ac_ext=c
  3884. ac_cpp='$CPP $CPPFLAGS'
  3885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3889. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3890. if ${am_cv_prog_cc_c_o+:} false; then :
  3891. $as_echo_n "(cached) " >&6
  3892. else
  3893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3894. /* end confdefs.h. */
  3895. int
  3896. main ()
  3897. {
  3898. ;
  3899. return 0;
  3900. }
  3901. _ACEOF
  3902. # Make sure it works both with $CC and with simple cc.
  3903. # Following AC_PROG_CC_C_O, we do the test twice because some
  3904. # compilers refuse to overwrite an existing .o file with -o,
  3905. # though they will create one.
  3906. am_cv_prog_cc_c_o=yes
  3907. for am_i in 1 2; do
  3908. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3909. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3910. ac_status=$?
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); } \
  3913. && test -f conftest2.$ac_objext; then
  3914. : OK
  3915. else
  3916. am_cv_prog_cc_c_o=no
  3917. break
  3918. fi
  3919. done
  3920. rm -f core conftest*
  3921. unset am_i
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3924. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3925. if test "$am_cv_prog_cc_c_o" != yes; then
  3926. # Losing compiler, so override with the script.
  3927. # FIXME: It is wrong to rewrite CC.
  3928. # But if we don't then we get into trouble of one sort or another.
  3929. # A longer-term fix would be to have automake use am__CC in this case,
  3930. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3931. CC="$am_aux_dir/compile $CC"
  3932. fi
  3933. ac_ext=c
  3934. ac_cpp='$CPP $CPPFLAGS'
  3935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3938. depcc="$CC" am_compiler_list=
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3940. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3941. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3942. $as_echo_n "(cached) " >&6
  3943. else
  3944. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3945. # We make a subdir and do the tests there. Otherwise we can end up
  3946. # making bogus files that we don't know about and never remove. For
  3947. # instance it was reported that on HP-UX the gcc test will end up
  3948. # making a dummy file named 'D' -- because '-MD' means "put the output
  3949. # in D".
  3950. rm -rf conftest.dir
  3951. mkdir conftest.dir
  3952. # Copy depcomp to subdir because otherwise we won't find it if we're
  3953. # using a relative directory.
  3954. cp "$am_depcomp" conftest.dir
  3955. cd conftest.dir
  3956. # We will build objects and dependencies in a subdirectory because
  3957. # it helps to detect inapplicable dependency modes. For instance
  3958. # both Tru64's cc and ICC support -MD to output dependencies as a
  3959. # side effect of compilation, but ICC will put the dependencies in
  3960. # the current directory while Tru64 will put them in the object
  3961. # directory.
  3962. mkdir sub
  3963. am_cv_CC_dependencies_compiler_type=none
  3964. if test "$am_compiler_list" = ""; then
  3965. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3966. fi
  3967. am__universal=false
  3968. case " $depcc " in #(
  3969. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3970. esac
  3971. for depmode in $am_compiler_list; do
  3972. # Setup a source with many dependencies, because some compilers
  3973. # like to wrap large dependency lists on column 80 (with \), and
  3974. # we should not choose a depcomp mode which is confused by this.
  3975. #
  3976. # We need to recreate these files for each test, as the compiler may
  3977. # overwrite some of them when testing with obscure command lines.
  3978. # This happens at least with the AIX C compiler.
  3979. : > sub/conftest.c
  3980. for i in 1 2 3 4 5 6; do
  3981. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3982. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3983. # Solaris 10 /bin/sh.
  3984. echo '/* dummy */' > sub/conftst$i.h
  3985. done
  3986. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3987. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3988. # mode. It turns out that the SunPro C++ compiler does not properly
  3989. # handle '-M -o', and we need to detect this. Also, some Intel
  3990. # versions had trouble with output in subdirs.
  3991. am__obj=sub/conftest.${OBJEXT-o}
  3992. am__minus_obj="-o $am__obj"
  3993. case $depmode in
  3994. gcc)
  3995. # This depmode causes a compiler race in universal mode.
  3996. test "$am__universal" = false || continue
  3997. ;;
  3998. nosideeffect)
  3999. # After this tag, mechanisms are not by side-effect, so they'll
  4000. # only be used when explicitly requested.
  4001. if test "x$enable_dependency_tracking" = xyes; then
  4002. continue
  4003. else
  4004. break
  4005. fi
  4006. ;;
  4007. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4008. # This compiler won't grok '-c -o', but also, the minuso test has
  4009. # not run yet. These depmodes are late enough in the game, and
  4010. # so weak that their functioning should not be impacted.
  4011. am__obj=conftest.${OBJEXT-o}
  4012. am__minus_obj=
  4013. ;;
  4014. none) break ;;
  4015. esac
  4016. if depmode=$depmode \
  4017. source=sub/conftest.c object=$am__obj \
  4018. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4019. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4020. >/dev/null 2>conftest.err &&
  4021. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4022. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4023. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4024. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4025. # icc doesn't choke on unknown options, it will just issue warnings
  4026. # or remarks (even with -Werror). So we grep stderr for any message
  4027. # that says an option was ignored or not supported.
  4028. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4029. # icc: Command line warning: ignoring option '-M'; no argument required
  4030. # The diagnosis changed in icc 8.0:
  4031. # icc: Command line remark: option '-MP' not supported
  4032. if (grep 'ignoring option' conftest.err ||
  4033. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4034. am_cv_CC_dependencies_compiler_type=$depmode
  4035. break
  4036. fi
  4037. fi
  4038. done
  4039. cd ..
  4040. rm -rf conftest.dir
  4041. else
  4042. am_cv_CC_dependencies_compiler_type=none
  4043. fi
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4046. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4047. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4048. if
  4049. test "x$enable_dependency_tracking" != xno \
  4050. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4051. am__fastdepCC_TRUE=
  4052. am__fastdepCC_FALSE='#'
  4053. else
  4054. am__fastdepCC_TRUE='#'
  4055. am__fastdepCC_FALSE=
  4056. fi
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  4058. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  4059. if ${ac_cv_c_restrict+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. ac_cv_c_restrict=no
  4063. # The order here caters to the fact that C++ does not require restrict.
  4064. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  4065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4066. /* end confdefs.h. */
  4067. typedef int * int_ptr;
  4068. int foo (int_ptr $ac_kw ip) {
  4069. return ip[0];
  4070. }
  4071. int
  4072. main ()
  4073. {
  4074. int s[1];
  4075. int * $ac_kw t = s;
  4076. t[0] = 0;
  4077. return foo(t)
  4078. ;
  4079. return 0;
  4080. }
  4081. _ACEOF
  4082. if ac_fn_c_try_compile "$LINENO"; then :
  4083. ac_cv_c_restrict=$ac_kw
  4084. fi
  4085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4086. test "$ac_cv_c_restrict" != no && break
  4087. done
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  4090. $as_echo "$ac_cv_c_restrict" >&6; }
  4091. case $ac_cv_c_restrict in
  4092. restrict) ;;
  4093. no) $as_echo "#define restrict /**/" >>confdefs.h
  4094. ;;
  4095. *) cat >>confdefs.h <<_ACEOF
  4096. #define restrict $ac_cv_c_restrict
  4097. _ACEOF
  4098. ;;
  4099. esac
  4100. ac_ext=c
  4101. ac_cpp='$CPP $CPPFLAGS'
  4102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4105. if test -n "$ac_tool_prefix"; then
  4106. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4107. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4109. $as_echo_n "checking for $ac_word... " >&6; }
  4110. if ${ac_cv_prog_CC+:} false; then :
  4111. $as_echo_n "(cached) " >&6
  4112. else
  4113. if test -n "$CC"; then
  4114. ac_cv_prog_CC="$CC" # Let the user override the test.
  4115. else
  4116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4117. for as_dir in $PATH
  4118. do
  4119. IFS=$as_save_IFS
  4120. test -z "$as_dir" && as_dir=.
  4121. for ac_exec_ext in '' $ac_executable_extensions; do
  4122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4123. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4125. break 2
  4126. fi
  4127. done
  4128. done
  4129. IFS=$as_save_IFS
  4130. fi
  4131. fi
  4132. CC=$ac_cv_prog_CC
  4133. if test -n "$CC"; then
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4135. $as_echo "$CC" >&6; }
  4136. else
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4138. $as_echo "no" >&6; }
  4139. fi
  4140. fi
  4141. if test -z "$ac_cv_prog_CC"; then
  4142. ac_ct_CC=$CC
  4143. # Extract the first word of "gcc", so it can be a program name with args.
  4144. set dummy gcc; 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_ac_ct_CC+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if test -n "$ac_ct_CC"; then
  4151. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
  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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4170. if test -n "$ac_ct_CC"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4172. $as_echo "$ac_ct_CC" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. if test "x$ac_ct_CC" = x; then
  4178. CC=""
  4179. else
  4180. case $cross_compiling:$ac_tool_warned in
  4181. yes:)
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4184. ac_tool_warned=yes ;;
  4185. esac
  4186. CC=$ac_ct_CC
  4187. fi
  4188. else
  4189. CC="$ac_cv_prog_CC"
  4190. fi
  4191. if test -z "$CC"; then
  4192. if test -n "$ac_tool_prefix"; then
  4193. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4194. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4196. $as_echo_n "checking for $ac_word... " >&6; }
  4197. if ${ac_cv_prog_CC+:} false; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. if test -n "$CC"; then
  4201. ac_cv_prog_CC="$CC" # Let the user override the test.
  4202. else
  4203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4204. for as_dir in $PATH
  4205. do
  4206. IFS=$as_save_IFS
  4207. test -z "$as_dir" && as_dir=.
  4208. for ac_exec_ext in '' $ac_executable_extensions; do
  4209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4210. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4212. break 2
  4213. fi
  4214. done
  4215. done
  4216. IFS=$as_save_IFS
  4217. fi
  4218. fi
  4219. CC=$ac_cv_prog_CC
  4220. if test -n "$CC"; then
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4222. $as_echo "$CC" >&6; }
  4223. else
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4225. $as_echo "no" >&6; }
  4226. fi
  4227. fi
  4228. fi
  4229. if test -z "$CC"; then
  4230. # Extract the first word of "cc", so it can be a program name with args.
  4231. set dummy cc; ac_word=$2
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4233. $as_echo_n "checking for $ac_word... " >&6; }
  4234. if ${ac_cv_prog_CC+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. if test -n "$CC"; then
  4238. ac_cv_prog_CC="$CC" # Let the user override the test.
  4239. else
  4240. ac_prog_rejected=no
  4241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4242. for as_dir in $PATH
  4243. do
  4244. IFS=$as_save_IFS
  4245. test -z "$as_dir" && as_dir=.
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4248. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4249. ac_prog_rejected=yes
  4250. continue
  4251. fi
  4252. ac_cv_prog_CC="cc"
  4253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4254. break 2
  4255. fi
  4256. done
  4257. done
  4258. IFS=$as_save_IFS
  4259. if test $ac_prog_rejected = yes; then
  4260. # We found a bogon in the path, so make sure we never use it.
  4261. set dummy $ac_cv_prog_CC
  4262. shift
  4263. if test $# != 0; then
  4264. # We chose a different compiler from the bogus one.
  4265. # However, it has the same basename, so the bogon will be chosen
  4266. # first if we set CC to just the basename; use the full file name.
  4267. shift
  4268. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4269. fi
  4270. fi
  4271. fi
  4272. fi
  4273. CC=$ac_cv_prog_CC
  4274. if test -n "$CC"; then
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4276. $as_echo "$CC" >&6; }
  4277. else
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4279. $as_echo "no" >&6; }
  4280. fi
  4281. fi
  4282. if test -z "$CC"; then
  4283. if test -n "$ac_tool_prefix"; then
  4284. for ac_prog in cl.exe
  4285. do
  4286. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4287. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4289. $as_echo_n "checking for $ac_word... " >&6; }
  4290. if ${ac_cv_prog_CC+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if test -n "$CC"; then
  4294. ac_cv_prog_CC="$CC" # Let the user override the test.
  4295. else
  4296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4297. for as_dir in $PATH
  4298. do
  4299. IFS=$as_save_IFS
  4300. test -z "$as_dir" && as_dir=.
  4301. for ac_exec_ext in '' $ac_executable_extensions; do
  4302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4303. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4305. break 2
  4306. fi
  4307. done
  4308. done
  4309. IFS=$as_save_IFS
  4310. fi
  4311. fi
  4312. CC=$ac_cv_prog_CC
  4313. if test -n "$CC"; then
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4315. $as_echo "$CC" >&6; }
  4316. else
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4318. $as_echo "no" >&6; }
  4319. fi
  4320. test -n "$CC" && break
  4321. done
  4322. fi
  4323. if test -z "$CC"; then
  4324. ac_ct_CC=$CC
  4325. for ac_prog in cl.exe
  4326. do
  4327. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4328. set dummy $ac_prog; ac_word=$2
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4330. $as_echo_n "checking for $ac_word... " >&6; }
  4331. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4332. $as_echo_n "(cached) " >&6
  4333. else
  4334. if test -n "$ac_ct_CC"; then
  4335. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4336. else
  4337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4338. for as_dir in $PATH
  4339. do
  4340. IFS=$as_save_IFS
  4341. test -z "$as_dir" && as_dir=.
  4342. for ac_exec_ext in '' $ac_executable_extensions; do
  4343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4344. ac_cv_prog_ac_ct_CC="$ac_prog"
  4345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4346. break 2
  4347. fi
  4348. done
  4349. done
  4350. IFS=$as_save_IFS
  4351. fi
  4352. fi
  4353. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4354. if test -n "$ac_ct_CC"; then
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4356. $as_echo "$ac_ct_CC" >&6; }
  4357. else
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4359. $as_echo "no" >&6; }
  4360. fi
  4361. test -n "$ac_ct_CC" && break
  4362. done
  4363. if test "x$ac_ct_CC" = x; then
  4364. CC=""
  4365. else
  4366. case $cross_compiling:$ac_tool_warned in
  4367. yes:)
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4370. ac_tool_warned=yes ;;
  4371. esac
  4372. CC=$ac_ct_CC
  4373. fi
  4374. fi
  4375. fi
  4376. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4377. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4378. as_fn_error $? "no acceptable C compiler found in \$PATH
  4379. See \`config.log' for more details" "$LINENO" 5; }
  4380. # Provide some information about the compiler.
  4381. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4382. set X $ac_compile
  4383. ac_compiler=$2
  4384. for ac_option in --version -v -V -qversion; do
  4385. { { ac_try="$ac_compiler $ac_option >&5"
  4386. case "(($ac_try" in
  4387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4388. *) ac_try_echo=$ac_try;;
  4389. esac
  4390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4391. $as_echo "$ac_try_echo"; } >&5
  4392. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4393. ac_status=$?
  4394. if test -s conftest.err; then
  4395. sed '10a\
  4396. ... rest of stderr output deleted ...
  4397. 10q' conftest.err >conftest.er1
  4398. cat conftest.er1 >&5
  4399. fi
  4400. rm -f conftest.er1 conftest.err
  4401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4402. test $ac_status = 0; }
  4403. done
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4405. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4406. if ${ac_cv_c_compiler_gnu+:} false; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. int
  4412. main ()
  4413. {
  4414. #ifndef __GNUC__
  4415. choke me
  4416. #endif
  4417. ;
  4418. return 0;
  4419. }
  4420. _ACEOF
  4421. if ac_fn_c_try_compile "$LINENO"; then :
  4422. ac_compiler_gnu=yes
  4423. else
  4424. ac_compiler_gnu=no
  4425. fi
  4426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4427. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4428. fi
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4430. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4431. if test $ac_compiler_gnu = yes; then
  4432. GCC=yes
  4433. else
  4434. GCC=
  4435. fi
  4436. ac_test_CFLAGS=${CFLAGS+set}
  4437. ac_save_CFLAGS=$CFLAGS
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4439. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4440. if ${ac_cv_prog_cc_g+:} false; then :
  4441. $as_echo_n "(cached) " >&6
  4442. else
  4443. ac_save_c_werror_flag=$ac_c_werror_flag
  4444. ac_c_werror_flag=yes
  4445. ac_cv_prog_cc_g=no
  4446. CFLAGS="-g"
  4447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4448. /* end confdefs.h. */
  4449. int
  4450. main ()
  4451. {
  4452. ;
  4453. return 0;
  4454. }
  4455. _ACEOF
  4456. if ac_fn_c_try_compile "$LINENO"; then :
  4457. ac_cv_prog_cc_g=yes
  4458. else
  4459. CFLAGS=""
  4460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4461. /* end confdefs.h. */
  4462. int
  4463. main ()
  4464. {
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. if ac_fn_c_try_compile "$LINENO"; then :
  4470. else
  4471. ac_c_werror_flag=$ac_save_c_werror_flag
  4472. CFLAGS="-g"
  4473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4474. /* end confdefs.h. */
  4475. int
  4476. main ()
  4477. {
  4478. ;
  4479. return 0;
  4480. }
  4481. _ACEOF
  4482. if ac_fn_c_try_compile "$LINENO"; then :
  4483. ac_cv_prog_cc_g=yes
  4484. fi
  4485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4486. fi
  4487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4488. fi
  4489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4490. ac_c_werror_flag=$ac_save_c_werror_flag
  4491. fi
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4493. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4494. if test "$ac_test_CFLAGS" = set; then
  4495. CFLAGS=$ac_save_CFLAGS
  4496. elif test $ac_cv_prog_cc_g = yes; then
  4497. if test "$GCC" = yes; then
  4498. CFLAGS="-g -O2"
  4499. else
  4500. CFLAGS="-g"
  4501. fi
  4502. else
  4503. if test "$GCC" = yes; then
  4504. CFLAGS="-O2"
  4505. else
  4506. CFLAGS=
  4507. fi
  4508. fi
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4510. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4511. if ${ac_cv_prog_cc_c89+:} false; then :
  4512. $as_echo_n "(cached) " >&6
  4513. else
  4514. ac_cv_prog_cc_c89=no
  4515. ac_save_CC=$CC
  4516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4517. /* end confdefs.h. */
  4518. #include <stdarg.h>
  4519. #include <stdio.h>
  4520. struct stat;
  4521. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4522. struct buf { int x; };
  4523. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4524. static char *e (p, i)
  4525. char **p;
  4526. int i;
  4527. {
  4528. return p[i];
  4529. }
  4530. static char *f (char * (*g) (char **, int), char **p, ...)
  4531. {
  4532. char *s;
  4533. va_list v;
  4534. va_start (v,p);
  4535. s = g (p, va_arg (v,int));
  4536. va_end (v);
  4537. return s;
  4538. }
  4539. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4540. function prototypes and stuff, but not '\xHH' hex character constants.
  4541. These don't provoke an error unfortunately, instead are silently treated
  4542. as 'x'. The following induces an error, until -std is added to get
  4543. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4544. array size at least. It's necessary to write '\x00'==0 to get something
  4545. that's true only with -std. */
  4546. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4547. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4548. inside strings and character constants. */
  4549. #define FOO(x) 'x'
  4550. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4551. int test (int i, double x);
  4552. struct s1 {int (*f) (int a);};
  4553. struct s2 {int (*f) (double a);};
  4554. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4555. int argc;
  4556. char **argv;
  4557. int
  4558. main ()
  4559. {
  4560. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4561. ;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4566. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4567. do
  4568. CC="$ac_save_CC $ac_arg"
  4569. if ac_fn_c_try_compile "$LINENO"; then :
  4570. ac_cv_prog_cc_c89=$ac_arg
  4571. fi
  4572. rm -f core conftest.err conftest.$ac_objext
  4573. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4574. done
  4575. rm -f conftest.$ac_ext
  4576. CC=$ac_save_CC
  4577. fi
  4578. # AC_CACHE_VAL
  4579. case "x$ac_cv_prog_cc_c89" in
  4580. x)
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4582. $as_echo "none needed" >&6; } ;;
  4583. xno)
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4585. $as_echo "unsupported" >&6; } ;;
  4586. *)
  4587. CC="$CC $ac_cv_prog_cc_c89"
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4589. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4590. esac
  4591. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4592. fi
  4593. ac_ext=c
  4594. ac_cpp='$CPP $CPPFLAGS'
  4595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4598. ac_ext=c
  4599. ac_cpp='$CPP $CPPFLAGS'
  4600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4604. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4605. if ${am_cv_prog_cc_c_o+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. int
  4611. main ()
  4612. {
  4613. ;
  4614. return 0;
  4615. }
  4616. _ACEOF
  4617. # Make sure it works both with $CC and with simple cc.
  4618. # Following AC_PROG_CC_C_O, we do the test twice because some
  4619. # compilers refuse to overwrite an existing .o file with -o,
  4620. # though they will create one.
  4621. am_cv_prog_cc_c_o=yes
  4622. for am_i in 1 2; do
  4623. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4624. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4625. ac_status=$?
  4626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4627. (exit $ac_status); } \
  4628. && test -f conftest2.$ac_objext; then
  4629. : OK
  4630. else
  4631. am_cv_prog_cc_c_o=no
  4632. break
  4633. fi
  4634. done
  4635. rm -f core conftest*
  4636. unset am_i
  4637. fi
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4639. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4640. if test "$am_cv_prog_cc_c_o" != yes; then
  4641. # Losing compiler, so override with the script.
  4642. # FIXME: It is wrong to rewrite CC.
  4643. # But if we don't then we get into trouble of one sort or another.
  4644. # A longer-term fix would be to have automake use am__CC in this case,
  4645. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4646. CC="$am_aux_dir/compile $CC"
  4647. fi
  4648. ac_ext=c
  4649. ac_cpp='$CPP $CPPFLAGS'
  4650. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4651. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4652. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4653. depcc="$CC" am_compiler_list=
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4655. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4656. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4660. # We make a subdir and do the tests there. Otherwise we can end up
  4661. # making bogus files that we don't know about and never remove. For
  4662. # instance it was reported that on HP-UX the gcc test will end up
  4663. # making a dummy file named 'D' -- because '-MD' means "put the output
  4664. # in D".
  4665. rm -rf conftest.dir
  4666. mkdir conftest.dir
  4667. # Copy depcomp to subdir because otherwise we won't find it if we're
  4668. # using a relative directory.
  4669. cp "$am_depcomp" conftest.dir
  4670. cd conftest.dir
  4671. # We will build objects and dependencies in a subdirectory because
  4672. # it helps to detect inapplicable dependency modes. For instance
  4673. # both Tru64's cc and ICC support -MD to output dependencies as a
  4674. # side effect of compilation, but ICC will put the dependencies in
  4675. # the current directory while Tru64 will put them in the object
  4676. # directory.
  4677. mkdir sub
  4678. am_cv_CC_dependencies_compiler_type=none
  4679. if test "$am_compiler_list" = ""; then
  4680. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4681. fi
  4682. am__universal=false
  4683. case " $depcc " in #(
  4684. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4685. esac
  4686. for depmode in $am_compiler_list; do
  4687. # Setup a source with many dependencies, because some compilers
  4688. # like to wrap large dependency lists on column 80 (with \), and
  4689. # we should not choose a depcomp mode which is confused by this.
  4690. #
  4691. # We need to recreate these files for each test, as the compiler may
  4692. # overwrite some of them when testing with obscure command lines.
  4693. # This happens at least with the AIX C compiler.
  4694. : > sub/conftest.c
  4695. for i in 1 2 3 4 5 6; do
  4696. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4697. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4698. # Solaris 10 /bin/sh.
  4699. echo '/* dummy */' > sub/conftst$i.h
  4700. done
  4701. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4702. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4703. # mode. It turns out that the SunPro C++ compiler does not properly
  4704. # handle '-M -o', and we need to detect this. Also, some Intel
  4705. # versions had trouble with output in subdirs.
  4706. am__obj=sub/conftest.${OBJEXT-o}
  4707. am__minus_obj="-o $am__obj"
  4708. case $depmode in
  4709. gcc)
  4710. # This depmode causes a compiler race in universal mode.
  4711. test "$am__universal" = false || continue
  4712. ;;
  4713. nosideeffect)
  4714. # After this tag, mechanisms are not by side-effect, so they'll
  4715. # only be used when explicitly requested.
  4716. if test "x$enable_dependency_tracking" = xyes; then
  4717. continue
  4718. else
  4719. break
  4720. fi
  4721. ;;
  4722. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4723. # This compiler won't grok '-c -o', but also, the minuso test has
  4724. # not run yet. These depmodes are late enough in the game, and
  4725. # so weak that their functioning should not be impacted.
  4726. am__obj=conftest.${OBJEXT-o}
  4727. am__minus_obj=
  4728. ;;
  4729. none) break ;;
  4730. esac
  4731. if depmode=$depmode \
  4732. source=sub/conftest.c object=$am__obj \
  4733. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4734. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4735. >/dev/null 2>conftest.err &&
  4736. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4737. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4738. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4739. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4740. # icc doesn't choke on unknown options, it will just issue warnings
  4741. # or remarks (even with -Werror). So we grep stderr for any message
  4742. # that says an option was ignored or not supported.
  4743. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4744. # icc: Command line warning: ignoring option '-M'; no argument required
  4745. # The diagnosis changed in icc 8.0:
  4746. # icc: Command line remark: option '-MP' not supported
  4747. if (grep 'ignoring option' conftest.err ||
  4748. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4749. am_cv_CC_dependencies_compiler_type=$depmode
  4750. break
  4751. fi
  4752. fi
  4753. done
  4754. cd ..
  4755. rm -rf conftest.dir
  4756. else
  4757. am_cv_CC_dependencies_compiler_type=none
  4758. fi
  4759. fi
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4761. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4762. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4763. if
  4764. test "x$enable_dependency_tracking" != xno \
  4765. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4766. am__fastdepCC_TRUE=
  4767. am__fastdepCC_FALSE='#'
  4768. else
  4769. am__fastdepCC_TRUE='#'
  4770. am__fastdepCC_FALSE=
  4771. fi
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
  4773. $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
  4774. if ${ac_cv_prog_cc_pie+:} false; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. echo 'void f(){}' > conftest.c
  4778. if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
  4779. ac_cv_prog_cc_pie=yes
  4780. else
  4781. ac_cv_prog_cc_pie=no
  4782. fi
  4783. rm -rf conftest*
  4784. fi
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
  4786. $as_echo "$ac_cv_prog_cc_pie" >&6; }
  4787. # Check whether --enable-static was given.
  4788. if test "${enable_static+set}" = set; then :
  4789. enableval=$enable_static; p=${PACKAGE-default}
  4790. case $enableval in
  4791. yes) enable_static=yes ;;
  4792. no) enable_static=no ;;
  4793. *)
  4794. enable_static=no
  4795. # Look at the argument we got. We use all the common list separators.
  4796. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  4797. for pkg in $enableval; do
  4798. IFS=$lt_save_ifs
  4799. if test "X$pkg" = "X$p"; then
  4800. enable_static=yes
  4801. fi
  4802. done
  4803. IFS=$lt_save_ifs
  4804. ;;
  4805. esac
  4806. else
  4807. enable_static=no
  4808. fi
  4809. case `pwd` in
  4810. *\ * | *\ *)
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4812. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4813. esac
  4814. macro_version='2.4.6'
  4815. macro_revision='2.4.6'
  4816. ltmain=$ac_aux_dir/ltmain.sh
  4817. # Make sure we can run config.sub.
  4818. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4819. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4821. $as_echo_n "checking build system type... " >&6; }
  4822. if ${ac_cv_build+:} false; then :
  4823. $as_echo_n "(cached) " >&6
  4824. else
  4825. ac_build_alias=$build_alias
  4826. test "x$ac_build_alias" = x &&
  4827. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4828. test "x$ac_build_alias" = x &&
  4829. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4830. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4831. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4832. fi
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4834. $as_echo "$ac_cv_build" >&6; }
  4835. case $ac_cv_build in
  4836. *-*-*) ;;
  4837. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4838. esac
  4839. build=$ac_cv_build
  4840. ac_save_IFS=$IFS; IFS='-'
  4841. set x $ac_cv_build
  4842. shift
  4843. build_cpu=$1
  4844. build_vendor=$2
  4845. shift; shift
  4846. # Remember, the first character of IFS is used to create $*,
  4847. # except with old shells:
  4848. build_os=$*
  4849. IFS=$ac_save_IFS
  4850. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4852. $as_echo_n "checking host system type... " >&6; }
  4853. if ${ac_cv_host+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. if test "x$host_alias" = x; then
  4857. ac_cv_host=$ac_cv_build
  4858. else
  4859. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4860. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4861. fi
  4862. fi
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4864. $as_echo "$ac_cv_host" >&6; }
  4865. case $ac_cv_host in
  4866. *-*-*) ;;
  4867. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4868. esac
  4869. host=$ac_cv_host
  4870. ac_save_IFS=$IFS; IFS='-'
  4871. set x $ac_cv_host
  4872. shift
  4873. host_cpu=$1
  4874. host_vendor=$2
  4875. shift; shift
  4876. # Remember, the first character of IFS is used to create $*,
  4877. # except with old shells:
  4878. host_os=$*
  4879. IFS=$ac_save_IFS
  4880. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4881. # Backslashify metacharacters that are still active within
  4882. # double-quoted strings.
  4883. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4884. # Same as above, but do not quote variable references.
  4885. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4886. # Sed substitution to delay expansion of an escaped shell variable in a
  4887. # double_quote_subst'ed string.
  4888. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4889. # Sed substitution to delay expansion of an escaped single quote.
  4890. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4891. # Sed substitution to avoid accidental globbing in evaled expressions
  4892. no_glob_subst='s/\*/\\\*/g'
  4893. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4894. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4895. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4897. $as_echo_n "checking how to print strings... " >&6; }
  4898. # Test print first, because it will be a builtin if present.
  4899. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4900. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4901. ECHO='print -r --'
  4902. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4903. ECHO='printf %s\n'
  4904. else
  4905. # Use this function as a fallback that always works.
  4906. func_fallback_echo ()
  4907. {
  4908. eval 'cat <<_LTECHO_EOF
  4909. $1
  4910. _LTECHO_EOF'
  4911. }
  4912. ECHO='func_fallback_echo'
  4913. fi
  4914. # func_echo_all arg...
  4915. # Invoke $ECHO with all args, space-separated.
  4916. func_echo_all ()
  4917. {
  4918. $ECHO ""
  4919. }
  4920. case $ECHO in
  4921. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4922. $as_echo "printf" >&6; } ;;
  4923. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4924. $as_echo "print -r" >&6; } ;;
  4925. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4926. $as_echo "cat" >&6; } ;;
  4927. esac
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4929. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4930. if ${ac_cv_path_SED+:} false; then :
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4934. for ac_i in 1 2 3 4 5 6 7; do
  4935. ac_script="$ac_script$as_nl$ac_script"
  4936. done
  4937. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4938. { ac_script=; unset ac_script;}
  4939. if test -z "$SED"; then
  4940. ac_path_SED_found=false
  4941. # Loop through the user's path and test for each of PROGNAME-LIST
  4942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4943. for as_dir in $PATH
  4944. do
  4945. IFS=$as_save_IFS
  4946. test -z "$as_dir" && as_dir=.
  4947. for ac_prog in sed gsed; do
  4948. for ac_exec_ext in '' $ac_executable_extensions; do
  4949. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4950. as_fn_executable_p "$ac_path_SED" || continue
  4951. # Check for GNU ac_path_SED and select it if it is found.
  4952. # Check for GNU $ac_path_SED
  4953. case `"$ac_path_SED" --version 2>&1` in
  4954. *GNU*)
  4955. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4956. *)
  4957. ac_count=0
  4958. $as_echo_n 0123456789 >"conftest.in"
  4959. while :
  4960. do
  4961. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4962. mv "conftest.tmp" "conftest.in"
  4963. cp "conftest.in" "conftest.nl"
  4964. $as_echo '' >> "conftest.nl"
  4965. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4966. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4967. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4968. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4969. # Best one so far, save it but keep looking for a better one
  4970. ac_cv_path_SED="$ac_path_SED"
  4971. ac_path_SED_max=$ac_count
  4972. fi
  4973. # 10*(2^10) chars as input seems more than enough
  4974. test $ac_count -gt 10 && break
  4975. done
  4976. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4977. esac
  4978. $ac_path_SED_found && break 3
  4979. done
  4980. done
  4981. done
  4982. IFS=$as_save_IFS
  4983. if test -z "$ac_cv_path_SED"; then
  4984. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4985. fi
  4986. else
  4987. ac_cv_path_SED=$SED
  4988. fi
  4989. fi
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4991. $as_echo "$ac_cv_path_SED" >&6; }
  4992. SED="$ac_cv_path_SED"
  4993. rm -f conftest.sed
  4994. test -z "$SED" && SED=sed
  4995. Xsed="$SED -e 1s/^X//"
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4997. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4998. if ${ac_cv_path_GREP+:} false; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. if test -z "$GREP"; then
  5002. ac_path_GREP_found=false
  5003. # Loop through the user's path and test for each of PROGNAME-LIST
  5004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5005. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5006. do
  5007. IFS=$as_save_IFS
  5008. test -z "$as_dir" && as_dir=.
  5009. for ac_prog in grep ggrep; do
  5010. for ac_exec_ext in '' $ac_executable_extensions; do
  5011. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5012. as_fn_executable_p "$ac_path_GREP" || continue
  5013. # Check for GNU ac_path_GREP and select it if it is found.
  5014. # Check for GNU $ac_path_GREP
  5015. case `"$ac_path_GREP" --version 2>&1` in
  5016. *GNU*)
  5017. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5018. *)
  5019. ac_count=0
  5020. $as_echo_n 0123456789 >"conftest.in"
  5021. while :
  5022. do
  5023. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5024. mv "conftest.tmp" "conftest.in"
  5025. cp "conftest.in" "conftest.nl"
  5026. $as_echo 'GREP' >> "conftest.nl"
  5027. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5028. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5029. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5030. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5031. # Best one so far, save it but keep looking for a better one
  5032. ac_cv_path_GREP="$ac_path_GREP"
  5033. ac_path_GREP_max=$ac_count
  5034. fi
  5035. # 10*(2^10) chars as input seems more than enough
  5036. test $ac_count -gt 10 && break
  5037. done
  5038. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5039. esac
  5040. $ac_path_GREP_found && break 3
  5041. done
  5042. done
  5043. done
  5044. IFS=$as_save_IFS
  5045. if test -z "$ac_cv_path_GREP"; then
  5046. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5047. fi
  5048. else
  5049. ac_cv_path_GREP=$GREP
  5050. fi
  5051. fi
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5053. $as_echo "$ac_cv_path_GREP" >&6; }
  5054. GREP="$ac_cv_path_GREP"
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5056. $as_echo_n "checking for egrep... " >&6; }
  5057. if ${ac_cv_path_EGREP+:} false; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5061. then ac_cv_path_EGREP="$GREP -E"
  5062. else
  5063. if test -z "$EGREP"; then
  5064. ac_path_EGREP_found=false
  5065. # Loop through the user's path and test for each of PROGNAME-LIST
  5066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5067. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5068. do
  5069. IFS=$as_save_IFS
  5070. test -z "$as_dir" && as_dir=.
  5071. for ac_prog in egrep; do
  5072. for ac_exec_ext in '' $ac_executable_extensions; do
  5073. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5074. as_fn_executable_p "$ac_path_EGREP" || continue
  5075. # Check for GNU ac_path_EGREP and select it if it is found.
  5076. # Check for GNU $ac_path_EGREP
  5077. case `"$ac_path_EGREP" --version 2>&1` in
  5078. *GNU*)
  5079. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5080. *)
  5081. ac_count=0
  5082. $as_echo_n 0123456789 >"conftest.in"
  5083. while :
  5084. do
  5085. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5086. mv "conftest.tmp" "conftest.in"
  5087. cp "conftest.in" "conftest.nl"
  5088. $as_echo 'EGREP' >> "conftest.nl"
  5089. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5090. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5091. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5092. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5093. # Best one so far, save it but keep looking for a better one
  5094. ac_cv_path_EGREP="$ac_path_EGREP"
  5095. ac_path_EGREP_max=$ac_count
  5096. fi
  5097. # 10*(2^10) chars as input seems more than enough
  5098. test $ac_count -gt 10 && break
  5099. done
  5100. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5101. esac
  5102. $ac_path_EGREP_found && break 3
  5103. done
  5104. done
  5105. done
  5106. IFS=$as_save_IFS
  5107. if test -z "$ac_cv_path_EGREP"; then
  5108. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5109. fi
  5110. else
  5111. ac_cv_path_EGREP=$EGREP
  5112. fi
  5113. fi
  5114. fi
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5116. $as_echo "$ac_cv_path_EGREP" >&6; }
  5117. EGREP="$ac_cv_path_EGREP"
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5119. $as_echo_n "checking for fgrep... " >&6; }
  5120. if ${ac_cv_path_FGREP+:} false; then :
  5121. $as_echo_n "(cached) " >&6
  5122. else
  5123. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5124. then ac_cv_path_FGREP="$GREP -F"
  5125. else
  5126. if test -z "$FGREP"; then
  5127. ac_path_FGREP_found=false
  5128. # Loop through the user's path and test for each of PROGNAME-LIST
  5129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5130. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5131. do
  5132. IFS=$as_save_IFS
  5133. test -z "$as_dir" && as_dir=.
  5134. for ac_prog in fgrep; do
  5135. for ac_exec_ext in '' $ac_executable_extensions; do
  5136. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5137. as_fn_executable_p "$ac_path_FGREP" || continue
  5138. # Check for GNU ac_path_FGREP and select it if it is found.
  5139. # Check for GNU $ac_path_FGREP
  5140. case `"$ac_path_FGREP" --version 2>&1` in
  5141. *GNU*)
  5142. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5143. *)
  5144. ac_count=0
  5145. $as_echo_n 0123456789 >"conftest.in"
  5146. while :
  5147. do
  5148. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5149. mv "conftest.tmp" "conftest.in"
  5150. cp "conftest.in" "conftest.nl"
  5151. $as_echo 'FGREP' >> "conftest.nl"
  5152. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5153. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5154. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5155. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5156. # Best one so far, save it but keep looking for a better one
  5157. ac_cv_path_FGREP="$ac_path_FGREP"
  5158. ac_path_FGREP_max=$ac_count
  5159. fi
  5160. # 10*(2^10) chars as input seems more than enough
  5161. test $ac_count -gt 10 && break
  5162. done
  5163. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5164. esac
  5165. $ac_path_FGREP_found && break 3
  5166. done
  5167. done
  5168. done
  5169. IFS=$as_save_IFS
  5170. if test -z "$ac_cv_path_FGREP"; then
  5171. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5172. fi
  5173. else
  5174. ac_cv_path_FGREP=$FGREP
  5175. fi
  5176. fi
  5177. fi
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5179. $as_echo "$ac_cv_path_FGREP" >&6; }
  5180. FGREP="$ac_cv_path_FGREP"
  5181. test -z "$GREP" && GREP=grep
  5182. # Check whether --with-gnu-ld was given.
  5183. if test "${with_gnu_ld+set}" = set; then :
  5184. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5185. else
  5186. with_gnu_ld=no
  5187. fi
  5188. ac_prog=ld
  5189. if test yes = "$GCC"; then
  5190. # Check if gcc -print-prog-name=ld gives a path.
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5192. $as_echo_n "checking for ld used by $CC... " >&6; }
  5193. case $host in
  5194. *-*-mingw*)
  5195. # gcc leaves a trailing carriage return, which upsets mingw
  5196. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5197. *)
  5198. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5199. esac
  5200. case $ac_prog in
  5201. # Accept absolute paths.
  5202. [\\/]* | ?:[\\/]*)
  5203. re_direlt='/[^/][^/]*/\.\./'
  5204. # Canonicalize the pathname of ld
  5205. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5206. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5207. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5208. done
  5209. test -z "$LD" && LD=$ac_prog
  5210. ;;
  5211. "")
  5212. # If it fails, then pretend we aren't using GCC.
  5213. ac_prog=ld
  5214. ;;
  5215. *)
  5216. # If it is relative, then search for the first ld in PATH.
  5217. with_gnu_ld=unknown
  5218. ;;
  5219. esac
  5220. elif test yes = "$with_gnu_ld"; then
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5222. $as_echo_n "checking for GNU ld... " >&6; }
  5223. else
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5225. $as_echo_n "checking for non-GNU ld... " >&6; }
  5226. fi
  5227. if ${lt_cv_path_LD+:} false; then :
  5228. $as_echo_n "(cached) " >&6
  5229. else
  5230. if test -z "$LD"; then
  5231. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5232. for ac_dir in $PATH; do
  5233. IFS=$lt_save_ifs
  5234. test -z "$ac_dir" && ac_dir=.
  5235. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5236. lt_cv_path_LD=$ac_dir/$ac_prog
  5237. # Check to see if the program is GNU ld. I'd rather use --version,
  5238. # but apparently some variants of GNU ld only accept -v.
  5239. # Break only if it was the GNU/non-GNU ld that we prefer.
  5240. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5241. *GNU* | *'with BFD'*)
  5242. test no != "$with_gnu_ld" && break
  5243. ;;
  5244. *)
  5245. test yes != "$with_gnu_ld" && break
  5246. ;;
  5247. esac
  5248. fi
  5249. done
  5250. IFS=$lt_save_ifs
  5251. else
  5252. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5253. fi
  5254. fi
  5255. LD=$lt_cv_path_LD
  5256. if test -n "$LD"; then
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5258. $as_echo "$LD" >&6; }
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5261. $as_echo "no" >&6; }
  5262. fi
  5263. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5265. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5266. if ${lt_cv_prog_gnu_ld+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5270. case `$LD -v 2>&1 </dev/null` in
  5271. *GNU* | *'with BFD'*)
  5272. lt_cv_prog_gnu_ld=yes
  5273. ;;
  5274. *)
  5275. lt_cv_prog_gnu_ld=no
  5276. ;;
  5277. esac
  5278. fi
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5280. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5281. with_gnu_ld=$lt_cv_prog_gnu_ld
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5283. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5284. if ${lt_cv_path_NM+:} false; then :
  5285. $as_echo_n "(cached) " >&6
  5286. else
  5287. if test -n "$NM"; then
  5288. # Let the user override the test.
  5289. lt_cv_path_NM=$NM
  5290. else
  5291. lt_nm_to_check=${ac_tool_prefix}nm
  5292. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5293. lt_nm_to_check="$lt_nm_to_check nm"
  5294. fi
  5295. for lt_tmp_nm in $lt_nm_to_check; do
  5296. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5297. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5298. IFS=$lt_save_ifs
  5299. test -z "$ac_dir" && ac_dir=.
  5300. tmp_nm=$ac_dir/$lt_tmp_nm
  5301. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5302. # Check to see if the nm accepts a BSD-compat flag.
  5303. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5304. # nm: unknown option "B" ignored
  5305. # Tru64's nm complains that /dev/null is an invalid object file
  5306. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5307. case $build_os in
  5308. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5309. *) lt_bad_file=/dev/null ;;
  5310. esac
  5311. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5312. *$lt_bad_file* | *'Invalid file or object type'*)
  5313. lt_cv_path_NM="$tmp_nm -B"
  5314. break 2
  5315. ;;
  5316. *)
  5317. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5318. */dev/null*)
  5319. lt_cv_path_NM="$tmp_nm -p"
  5320. break 2
  5321. ;;
  5322. *)
  5323. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5324. continue # so that we can try to find one that supports BSD flags
  5325. ;;
  5326. esac
  5327. ;;
  5328. esac
  5329. fi
  5330. done
  5331. IFS=$lt_save_ifs
  5332. done
  5333. : ${lt_cv_path_NM=no}
  5334. fi
  5335. fi
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5337. $as_echo "$lt_cv_path_NM" >&6; }
  5338. if test no != "$lt_cv_path_NM"; then
  5339. NM=$lt_cv_path_NM
  5340. else
  5341. # Didn't find any BSD compatible name lister, look for dumpbin.
  5342. if test -n "$DUMPBIN"; then :
  5343. # Let the user override the test.
  5344. else
  5345. if test -n "$ac_tool_prefix"; then
  5346. for ac_prog in dumpbin "link -dump"
  5347. do
  5348. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5349. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5351. $as_echo_n "checking for $ac_word... " >&6; }
  5352. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5353. $as_echo_n "(cached) " >&6
  5354. else
  5355. if test -n "$DUMPBIN"; then
  5356. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5357. else
  5358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5359. for as_dir in $PATH
  5360. do
  5361. IFS=$as_save_IFS
  5362. test -z "$as_dir" && as_dir=.
  5363. for ac_exec_ext in '' $ac_executable_extensions; do
  5364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5365. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5367. break 2
  5368. fi
  5369. done
  5370. done
  5371. IFS=$as_save_IFS
  5372. fi
  5373. fi
  5374. DUMPBIN=$ac_cv_prog_DUMPBIN
  5375. if test -n "$DUMPBIN"; then
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5377. $as_echo "$DUMPBIN" >&6; }
  5378. else
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5380. $as_echo "no" >&6; }
  5381. fi
  5382. test -n "$DUMPBIN" && break
  5383. done
  5384. fi
  5385. if test -z "$DUMPBIN"; then
  5386. ac_ct_DUMPBIN=$DUMPBIN
  5387. for ac_prog in dumpbin "link -dump"
  5388. do
  5389. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5390. set dummy $ac_prog; ac_word=$2
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5392. $as_echo_n "checking for $ac_word... " >&6; }
  5393. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. if test -n "$ac_ct_DUMPBIN"; then
  5397. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5398. else
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5406. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. IFS=$as_save_IFS
  5413. fi
  5414. fi
  5415. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5416. if test -n "$ac_ct_DUMPBIN"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5418. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5419. else
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5421. $as_echo "no" >&6; }
  5422. fi
  5423. test -n "$ac_ct_DUMPBIN" && break
  5424. done
  5425. if test "x$ac_ct_DUMPBIN" = x; then
  5426. DUMPBIN=":"
  5427. else
  5428. case $cross_compiling:$ac_tool_warned in
  5429. yes:)
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5432. ac_tool_warned=yes ;;
  5433. esac
  5434. DUMPBIN=$ac_ct_DUMPBIN
  5435. fi
  5436. fi
  5437. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5438. *COFF*)
  5439. DUMPBIN="$DUMPBIN -symbols -headers"
  5440. ;;
  5441. *)
  5442. DUMPBIN=:
  5443. ;;
  5444. esac
  5445. fi
  5446. if test : != "$DUMPBIN"; then
  5447. NM=$DUMPBIN
  5448. fi
  5449. fi
  5450. test -z "$NM" && NM=nm
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5452. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5453. if ${lt_cv_nm_interface+:} false; then :
  5454. $as_echo_n "(cached) " >&6
  5455. else
  5456. lt_cv_nm_interface="BSD nm"
  5457. echo "int some_variable = 0;" > conftest.$ac_ext
  5458. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5459. (eval "$ac_compile" 2>conftest.err)
  5460. cat conftest.err >&5
  5461. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5462. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5463. cat conftest.err >&5
  5464. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5465. cat conftest.out >&5
  5466. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5467. lt_cv_nm_interface="MS dumpbin"
  5468. fi
  5469. rm -f conftest*
  5470. fi
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5472. $as_echo "$lt_cv_nm_interface" >&6; }
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5474. $as_echo_n "checking whether ln -s works... " >&6; }
  5475. LN_S=$as_ln_s
  5476. if test "$LN_S" = "ln -s"; then
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5478. $as_echo "yes" >&6; }
  5479. else
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5481. $as_echo "no, using $LN_S" >&6; }
  5482. fi
  5483. # find the maximum length of command line arguments
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5485. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5486. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5487. $as_echo_n "(cached) " >&6
  5488. else
  5489. i=0
  5490. teststring=ABCD
  5491. case $build_os in
  5492. msdosdjgpp*)
  5493. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5494. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5495. # during glob expansion). Even if it were fixed, the result of this
  5496. # check would be larger than it should be.
  5497. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5498. ;;
  5499. gnu*)
  5500. # Under GNU Hurd, this test is not required because there is
  5501. # no limit to the length of command line arguments.
  5502. # Libtool will interpret -1 as no limit whatsoever
  5503. lt_cv_sys_max_cmd_len=-1;
  5504. ;;
  5505. cygwin* | mingw* | cegcc*)
  5506. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5507. # about 5 minutes as the teststring grows exponentially.
  5508. # Worse, since 9x/ME are not pre-emptively multitasking,
  5509. # you end up with a "frozen" computer, even though with patience
  5510. # the test eventually succeeds (with a max line length of 256k).
  5511. # Instead, let's just punt: use the minimum linelength reported by
  5512. # all of the supported platforms: 8192 (on NT/2K/XP).
  5513. lt_cv_sys_max_cmd_len=8192;
  5514. ;;
  5515. mint*)
  5516. # On MiNT this can take a long time and run out of memory.
  5517. lt_cv_sys_max_cmd_len=8192;
  5518. ;;
  5519. amigaos*)
  5520. # On AmigaOS with pdksh, this test takes hours, literally.
  5521. # So we just punt and use a minimum line length of 8192.
  5522. lt_cv_sys_max_cmd_len=8192;
  5523. ;;
  5524. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5525. # This has been around since 386BSD, at least. Likely further.
  5526. if test -x /sbin/sysctl; then
  5527. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5528. elif test -x /usr/sbin/sysctl; then
  5529. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5530. else
  5531. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5532. fi
  5533. # And add a safety zone
  5534. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5535. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5536. ;;
  5537. interix*)
  5538. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5539. lt_cv_sys_max_cmd_len=196608
  5540. ;;
  5541. os2*)
  5542. # The test takes a long time on OS/2.
  5543. lt_cv_sys_max_cmd_len=8192
  5544. ;;
  5545. osf*)
  5546. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5547. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5548. # nice to cause kernel panics so lets avoid the loop below.
  5549. # First set a reasonable default.
  5550. lt_cv_sys_max_cmd_len=16384
  5551. #
  5552. if test -x /sbin/sysconfig; then
  5553. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5554. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5555. esac
  5556. fi
  5557. ;;
  5558. sco3.2v5*)
  5559. lt_cv_sys_max_cmd_len=102400
  5560. ;;
  5561. sysv5* | sco5v6* | sysv4.2uw2*)
  5562. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5563. if test -n "$kargmax"; then
  5564. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5565. else
  5566. lt_cv_sys_max_cmd_len=32768
  5567. fi
  5568. ;;
  5569. *)
  5570. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5571. if test -n "$lt_cv_sys_max_cmd_len" && \
  5572. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5573. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5574. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5575. else
  5576. # Make teststring a little bigger before we do anything with it.
  5577. # a 1K string should be a reasonable start.
  5578. for i in 1 2 3 4 5 6 7 8; do
  5579. teststring=$teststring$teststring
  5580. done
  5581. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5582. # If test is not a shell built-in, we'll probably end up computing a
  5583. # maximum length that is only half of the actual maximum length, but
  5584. # we can't tell.
  5585. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5586. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5587. test 17 != "$i" # 1/2 MB should be enough
  5588. do
  5589. i=`expr $i + 1`
  5590. teststring=$teststring$teststring
  5591. done
  5592. # Only check the string length outside the loop.
  5593. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5594. teststring=
  5595. # Add a significant safety factor because C++ compilers can tack on
  5596. # massive amounts of additional arguments before passing them to the
  5597. # linker. It appears as though 1/2 is a usable value.
  5598. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5599. fi
  5600. ;;
  5601. esac
  5602. fi
  5603. if test -n "$lt_cv_sys_max_cmd_len"; then
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5605. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5606. else
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5608. $as_echo "none" >&6; }
  5609. fi
  5610. max_cmd_len=$lt_cv_sys_max_cmd_len
  5611. : ${CP="cp -f"}
  5612. : ${MV="mv -f"}
  5613. : ${RM="rm -f"}
  5614. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5615. lt_unset=unset
  5616. else
  5617. lt_unset=false
  5618. fi
  5619. # test EBCDIC or ASCII
  5620. case `echo X|tr X '\101'` in
  5621. A) # ASCII based system
  5622. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5623. lt_SP2NL='tr \040 \012'
  5624. lt_NL2SP='tr \015\012 \040\040'
  5625. ;;
  5626. *) # EBCDIC based system
  5627. lt_SP2NL='tr \100 \n'
  5628. lt_NL2SP='tr \r\n \100\100'
  5629. ;;
  5630. esac
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5632. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5633. if ${lt_cv_to_host_file_cmd+:} false; then :
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. case $host in
  5637. *-*-mingw* )
  5638. case $build in
  5639. *-*-mingw* ) # actually msys
  5640. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5641. ;;
  5642. *-*-cygwin* )
  5643. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5644. ;;
  5645. * ) # otherwise, assume *nix
  5646. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5647. ;;
  5648. esac
  5649. ;;
  5650. *-*-cygwin* )
  5651. case $build in
  5652. *-*-mingw* ) # actually msys
  5653. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5654. ;;
  5655. *-*-cygwin* )
  5656. lt_cv_to_host_file_cmd=func_convert_file_noop
  5657. ;;
  5658. * ) # otherwise, assume *nix
  5659. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5660. ;;
  5661. esac
  5662. ;;
  5663. * ) # unhandled hosts (and "normal" native builds)
  5664. lt_cv_to_host_file_cmd=func_convert_file_noop
  5665. ;;
  5666. esac
  5667. fi
  5668. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5670. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5672. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5673. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5674. $as_echo_n "(cached) " >&6
  5675. else
  5676. #assume ordinary cross tools, or native build.
  5677. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5678. case $host in
  5679. *-*-mingw* )
  5680. case $build in
  5681. *-*-mingw* ) # actually msys
  5682. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5683. ;;
  5684. esac
  5685. ;;
  5686. esac
  5687. fi
  5688. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5690. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5692. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5693. if ${lt_cv_ld_reload_flag+:} false; then :
  5694. $as_echo_n "(cached) " >&6
  5695. else
  5696. lt_cv_ld_reload_flag='-r'
  5697. fi
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5699. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5700. reload_flag=$lt_cv_ld_reload_flag
  5701. case $reload_flag in
  5702. "" | " "*) ;;
  5703. *) reload_flag=" $reload_flag" ;;
  5704. esac
  5705. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5706. case $host_os in
  5707. cygwin* | mingw* | pw32* | cegcc*)
  5708. if test yes != "$GCC"; then
  5709. reload_cmds=false
  5710. fi
  5711. ;;
  5712. darwin*)
  5713. if test yes = "$GCC"; then
  5714. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5715. else
  5716. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5717. fi
  5718. ;;
  5719. esac
  5720. if test -n "$ac_tool_prefix"; then
  5721. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5722. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5724. $as_echo_n "checking for $ac_word... " >&6; }
  5725. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5726. $as_echo_n "(cached) " >&6
  5727. else
  5728. if test -n "$OBJDUMP"; then
  5729. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5730. else
  5731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5732. for as_dir in $PATH
  5733. do
  5734. IFS=$as_save_IFS
  5735. test -z "$as_dir" && as_dir=.
  5736. for ac_exec_ext in '' $ac_executable_extensions; do
  5737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5738. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5740. break 2
  5741. fi
  5742. done
  5743. done
  5744. IFS=$as_save_IFS
  5745. fi
  5746. fi
  5747. OBJDUMP=$ac_cv_prog_OBJDUMP
  5748. if test -n "$OBJDUMP"; then
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5750. $as_echo "$OBJDUMP" >&6; }
  5751. else
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5753. $as_echo "no" >&6; }
  5754. fi
  5755. fi
  5756. if test -z "$ac_cv_prog_OBJDUMP"; then
  5757. ac_ct_OBJDUMP=$OBJDUMP
  5758. # Extract the first word of "objdump", so it can be a program name with args.
  5759. set dummy objdump; ac_word=$2
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5761. $as_echo_n "checking for $ac_word... " >&6; }
  5762. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. if test -n "$ac_ct_OBJDUMP"; then
  5766. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5767. else
  5768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5769. for as_dir in $PATH
  5770. do
  5771. IFS=$as_save_IFS
  5772. test -z "$as_dir" && as_dir=.
  5773. for ac_exec_ext in '' $ac_executable_extensions; do
  5774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5775. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5777. break 2
  5778. fi
  5779. done
  5780. done
  5781. IFS=$as_save_IFS
  5782. fi
  5783. fi
  5784. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5785. if test -n "$ac_ct_OBJDUMP"; then
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5787. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5788. else
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5790. $as_echo "no" >&6; }
  5791. fi
  5792. if test "x$ac_ct_OBJDUMP" = x; then
  5793. OBJDUMP="false"
  5794. else
  5795. case $cross_compiling:$ac_tool_warned in
  5796. yes:)
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5799. ac_tool_warned=yes ;;
  5800. esac
  5801. OBJDUMP=$ac_ct_OBJDUMP
  5802. fi
  5803. else
  5804. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5805. fi
  5806. test -z "$OBJDUMP" && OBJDUMP=objdump
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5808. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5809. if ${lt_cv_deplibs_check_method+:} false; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5813. lt_cv_file_magic_test_file=
  5814. lt_cv_deplibs_check_method='unknown'
  5815. # Need to set the preceding variable on all platforms that support
  5816. # interlibrary dependencies.
  5817. # 'none' -- dependencies not supported.
  5818. # 'unknown' -- same as none, but documents that we really don't know.
  5819. # 'pass_all' -- all dependencies passed with no checks.
  5820. # 'test_compile' -- check by making test program.
  5821. # 'file_magic [[regex]]' -- check by looking for files in library path
  5822. # that responds to the $file_magic_cmd with a given extended regex.
  5823. # If you have 'file' or equivalent on your system and you're not sure
  5824. # whether 'pass_all' will *always* work, you probably want this one.
  5825. case $host_os in
  5826. aix[4-9]*)
  5827. lt_cv_deplibs_check_method=pass_all
  5828. ;;
  5829. beos*)
  5830. lt_cv_deplibs_check_method=pass_all
  5831. ;;
  5832. bsdi[45]*)
  5833. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5834. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5835. lt_cv_file_magic_test_file=/shlib/libc.so
  5836. ;;
  5837. cygwin*)
  5838. # func_win32_libid is a shell function defined in ltmain.sh
  5839. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5840. lt_cv_file_magic_cmd='func_win32_libid'
  5841. ;;
  5842. mingw* | pw32*)
  5843. # Base MSYS/MinGW do not provide the 'file' command needed by
  5844. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5845. # unless we find 'file', for example because we are cross-compiling.
  5846. if ( file / ) >/dev/null 2>&1; then
  5847. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5848. lt_cv_file_magic_cmd='func_win32_libid'
  5849. else
  5850. # Keep this pattern in sync with the one in func_win32_libid.
  5851. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5852. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5853. fi
  5854. ;;
  5855. cegcc*)
  5856. # use the weaker test based on 'objdump'. See mingw*.
  5857. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5858. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5859. ;;
  5860. darwin* | rhapsody*)
  5861. lt_cv_deplibs_check_method=pass_all
  5862. ;;
  5863. freebsd* | dragonfly*)
  5864. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5865. case $host_cpu in
  5866. i*86 )
  5867. # Not sure whether the presence of OpenBSD here was a mistake.
  5868. # Let's accept both of them until this is cleared up.
  5869. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5870. lt_cv_file_magic_cmd=/usr/bin/file
  5871. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5872. ;;
  5873. esac
  5874. else
  5875. lt_cv_deplibs_check_method=pass_all
  5876. fi
  5877. ;;
  5878. haiku*)
  5879. lt_cv_deplibs_check_method=pass_all
  5880. ;;
  5881. hpux10.20* | hpux11*)
  5882. lt_cv_file_magic_cmd=/usr/bin/file
  5883. case $host_cpu in
  5884. ia64*)
  5885. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5886. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5887. ;;
  5888. hppa*64*)
  5889. 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]'
  5890. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5891. ;;
  5892. *)
  5893. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5894. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5895. ;;
  5896. esac
  5897. ;;
  5898. interix[3-9]*)
  5899. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5900. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5901. ;;
  5902. irix5* | irix6* | nonstopux*)
  5903. case $LD in
  5904. *-32|*"-32 ") libmagic=32-bit;;
  5905. *-n32|*"-n32 ") libmagic=N32;;
  5906. *-64|*"-64 ") libmagic=64-bit;;
  5907. *) libmagic=never-match;;
  5908. esac
  5909. lt_cv_deplibs_check_method=pass_all
  5910. ;;
  5911. # This must be glibc/ELF.
  5912. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5913. lt_cv_deplibs_check_method=pass_all
  5914. ;;
  5915. netbsd* | netbsdelf*-gnu)
  5916. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5917. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5918. else
  5919. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5920. fi
  5921. ;;
  5922. newos6*)
  5923. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5924. lt_cv_file_magic_cmd=/usr/bin/file
  5925. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5926. ;;
  5927. *nto* | *qnx*)
  5928. lt_cv_deplibs_check_method=pass_all
  5929. ;;
  5930. openbsd* | bitrig*)
  5931. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5932. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5933. else
  5934. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5935. fi
  5936. ;;
  5937. osf3* | osf4* | osf5*)
  5938. lt_cv_deplibs_check_method=pass_all
  5939. ;;
  5940. rdos*)
  5941. lt_cv_deplibs_check_method=pass_all
  5942. ;;
  5943. solaris*)
  5944. lt_cv_deplibs_check_method=pass_all
  5945. ;;
  5946. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5947. lt_cv_deplibs_check_method=pass_all
  5948. ;;
  5949. sysv4 | sysv4.3*)
  5950. case $host_vendor in
  5951. motorola)
  5952. 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]'
  5953. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5954. ;;
  5955. ncr)
  5956. lt_cv_deplibs_check_method=pass_all
  5957. ;;
  5958. sequent)
  5959. lt_cv_file_magic_cmd='/bin/file'
  5960. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5961. ;;
  5962. sni)
  5963. lt_cv_file_magic_cmd='/bin/file'
  5964. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5965. lt_cv_file_magic_test_file=/lib/libc.so
  5966. ;;
  5967. siemens)
  5968. lt_cv_deplibs_check_method=pass_all
  5969. ;;
  5970. pc)
  5971. lt_cv_deplibs_check_method=pass_all
  5972. ;;
  5973. esac
  5974. ;;
  5975. tpf*)
  5976. lt_cv_deplibs_check_method=pass_all
  5977. ;;
  5978. os2*)
  5979. lt_cv_deplibs_check_method=pass_all
  5980. ;;
  5981. esac
  5982. fi
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5984. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5985. file_magic_glob=
  5986. want_nocaseglob=no
  5987. if test "$build" = "$host"; then
  5988. case $host_os in
  5989. mingw* | pw32*)
  5990. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5991. want_nocaseglob=yes
  5992. else
  5993. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5994. fi
  5995. ;;
  5996. esac
  5997. fi
  5998. file_magic_cmd=$lt_cv_file_magic_cmd
  5999. deplibs_check_method=$lt_cv_deplibs_check_method
  6000. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6001. if test -n "$ac_tool_prefix"; then
  6002. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6003. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6005. $as_echo_n "checking for $ac_word... " >&6; }
  6006. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. if test -n "$DLLTOOL"; then
  6010. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6011. else
  6012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6013. for as_dir in $PATH
  6014. do
  6015. IFS=$as_save_IFS
  6016. test -z "$as_dir" && as_dir=.
  6017. for ac_exec_ext in '' $ac_executable_extensions; do
  6018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6019. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6021. break 2
  6022. fi
  6023. done
  6024. done
  6025. IFS=$as_save_IFS
  6026. fi
  6027. fi
  6028. DLLTOOL=$ac_cv_prog_DLLTOOL
  6029. if test -n "$DLLTOOL"; then
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6031. $as_echo "$DLLTOOL" >&6; }
  6032. else
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. fi
  6037. if test -z "$ac_cv_prog_DLLTOOL"; then
  6038. ac_ct_DLLTOOL=$DLLTOOL
  6039. # Extract the first word of "dlltool", so it can be a program name with args.
  6040. set dummy dlltool; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$ac_ct_DLLTOOL"; then
  6047. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6066. if test -n "$ac_ct_DLLTOOL"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6068. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. if test "x$ac_ct_DLLTOOL" = x; then
  6074. DLLTOOL="false"
  6075. else
  6076. case $cross_compiling:$ac_tool_warned in
  6077. yes:)
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6080. ac_tool_warned=yes ;;
  6081. esac
  6082. DLLTOOL=$ac_ct_DLLTOOL
  6083. fi
  6084. else
  6085. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6086. fi
  6087. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6089. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6090. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6091. $as_echo_n "(cached) " >&6
  6092. else
  6093. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6094. case $host_os in
  6095. cygwin* | mingw* | pw32* | cegcc*)
  6096. # two different shell functions defined in ltmain.sh;
  6097. # decide which one to use based on capabilities of $DLLTOOL
  6098. case `$DLLTOOL --help 2>&1` in
  6099. *--identify-strict*)
  6100. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6101. ;;
  6102. *)
  6103. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6104. ;;
  6105. esac
  6106. ;;
  6107. *)
  6108. # fallback: assume linklib IS sharedlib
  6109. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6110. ;;
  6111. esac
  6112. fi
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6114. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6115. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6116. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6117. if test -n "$ac_tool_prefix"; then
  6118. for ac_prog in ar
  6119. do
  6120. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6121. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6123. $as_echo_n "checking for $ac_word... " >&6; }
  6124. if ${ac_cv_prog_AR+:} false; then :
  6125. $as_echo_n "(cached) " >&6
  6126. else
  6127. if test -n "$AR"; then
  6128. ac_cv_prog_AR="$AR" # Let the user override the test.
  6129. else
  6130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6131. for as_dir in $PATH
  6132. do
  6133. IFS=$as_save_IFS
  6134. test -z "$as_dir" && as_dir=.
  6135. for ac_exec_ext in '' $ac_executable_extensions; do
  6136. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6137. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6139. break 2
  6140. fi
  6141. done
  6142. done
  6143. IFS=$as_save_IFS
  6144. fi
  6145. fi
  6146. AR=$ac_cv_prog_AR
  6147. if test -n "$AR"; then
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6149. $as_echo "$AR" >&6; }
  6150. else
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6152. $as_echo "no" >&6; }
  6153. fi
  6154. test -n "$AR" && break
  6155. done
  6156. fi
  6157. if test -z "$AR"; then
  6158. ac_ct_AR=$AR
  6159. for ac_prog in ar
  6160. do
  6161. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6162. set dummy $ac_prog; ac_word=$2
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6164. $as_echo_n "checking for $ac_word... " >&6; }
  6165. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. if test -n "$ac_ct_AR"; then
  6169. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6170. else
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. test -z "$as_dir" && as_dir=.
  6176. for ac_exec_ext in '' $ac_executable_extensions; do
  6177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6178. ac_cv_prog_ac_ct_AR="$ac_prog"
  6179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6180. break 2
  6181. fi
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. fi
  6186. fi
  6187. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6188. if test -n "$ac_ct_AR"; then
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6190. $as_echo "$ac_ct_AR" >&6; }
  6191. else
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6193. $as_echo "no" >&6; }
  6194. fi
  6195. test -n "$ac_ct_AR" && break
  6196. done
  6197. if test "x$ac_ct_AR" = x; then
  6198. AR="false"
  6199. else
  6200. case $cross_compiling:$ac_tool_warned in
  6201. yes:)
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6204. ac_tool_warned=yes ;;
  6205. esac
  6206. AR=$ac_ct_AR
  6207. fi
  6208. fi
  6209. : ${AR=ar}
  6210. : ${AR_FLAGS=cr}
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6212. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6213. if ${lt_cv_ar_at_file+:} false; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. lt_cv_ar_at_file=no
  6217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6218. /* end confdefs.h. */
  6219. int
  6220. main ()
  6221. {
  6222. ;
  6223. return 0;
  6224. }
  6225. _ACEOF
  6226. if ac_fn_c_try_compile "$LINENO"; then :
  6227. echo conftest.$ac_objext > conftest.lst
  6228. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6229. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6230. (eval $lt_ar_try) 2>&5
  6231. ac_status=$?
  6232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6233. test $ac_status = 0; }
  6234. if test 0 -eq "$ac_status"; then
  6235. # Ensure the archiver fails upon bogus file names.
  6236. rm -f conftest.$ac_objext libconftest.a
  6237. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6238. (eval $lt_ar_try) 2>&5
  6239. ac_status=$?
  6240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6241. test $ac_status = 0; }
  6242. if test 0 -ne "$ac_status"; then
  6243. lt_cv_ar_at_file=@
  6244. fi
  6245. fi
  6246. rm -f conftest.* libconftest.a
  6247. fi
  6248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6249. fi
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6251. $as_echo "$lt_cv_ar_at_file" >&6; }
  6252. if test no = "$lt_cv_ar_at_file"; then
  6253. archiver_list_spec=
  6254. else
  6255. archiver_list_spec=$lt_cv_ar_at_file
  6256. fi
  6257. if test -n "$ac_tool_prefix"; then
  6258. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6259. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6261. $as_echo_n "checking for $ac_word... " >&6; }
  6262. if ${ac_cv_prog_STRIP+:} false; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. if test -n "$STRIP"; then
  6266. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6267. else
  6268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6269. for as_dir in $PATH
  6270. do
  6271. IFS=$as_save_IFS
  6272. test -z "$as_dir" && as_dir=.
  6273. for ac_exec_ext in '' $ac_executable_extensions; do
  6274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6275. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6277. break 2
  6278. fi
  6279. done
  6280. done
  6281. IFS=$as_save_IFS
  6282. fi
  6283. fi
  6284. STRIP=$ac_cv_prog_STRIP
  6285. if test -n "$STRIP"; then
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6287. $as_echo "$STRIP" >&6; }
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6290. $as_echo "no" >&6; }
  6291. fi
  6292. fi
  6293. if test -z "$ac_cv_prog_STRIP"; then
  6294. ac_ct_STRIP=$STRIP
  6295. # Extract the first word of "strip", so it can be a program name with args.
  6296. set dummy strip; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$ac_ct_STRIP"; then
  6303. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6312. ac_cv_prog_ac_ct_STRIP="strip"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6322. if test -n "$ac_ct_STRIP"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6324. $as_echo "$ac_ct_STRIP" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. if test "x$ac_ct_STRIP" = x; then
  6330. STRIP=":"
  6331. else
  6332. case $cross_compiling:$ac_tool_warned in
  6333. yes:)
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6336. ac_tool_warned=yes ;;
  6337. esac
  6338. STRIP=$ac_ct_STRIP
  6339. fi
  6340. else
  6341. STRIP="$ac_cv_prog_STRIP"
  6342. fi
  6343. test -z "$STRIP" && STRIP=:
  6344. if test -n "$ac_tool_prefix"; then
  6345. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6346. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6348. $as_echo_n "checking for $ac_word... " >&6; }
  6349. if ${ac_cv_prog_RANLIB+:} false; then :
  6350. $as_echo_n "(cached) " >&6
  6351. else
  6352. if test -n "$RANLIB"; then
  6353. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6354. else
  6355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6356. for as_dir in $PATH
  6357. do
  6358. IFS=$as_save_IFS
  6359. test -z "$as_dir" && as_dir=.
  6360. for ac_exec_ext in '' $ac_executable_extensions; do
  6361. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6362. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6364. break 2
  6365. fi
  6366. done
  6367. done
  6368. IFS=$as_save_IFS
  6369. fi
  6370. fi
  6371. RANLIB=$ac_cv_prog_RANLIB
  6372. if test -n "$RANLIB"; then
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6374. $as_echo "$RANLIB" >&6; }
  6375. else
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6377. $as_echo "no" >&6; }
  6378. fi
  6379. fi
  6380. if test -z "$ac_cv_prog_RANLIB"; then
  6381. ac_ct_RANLIB=$RANLIB
  6382. # Extract the first word of "ranlib", so it can be a program name with args.
  6383. set dummy ranlib; ac_word=$2
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6385. $as_echo_n "checking for $ac_word... " >&6; }
  6386. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6387. $as_echo_n "(cached) " >&6
  6388. else
  6389. if test -n "$ac_ct_RANLIB"; then
  6390. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6391. else
  6392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6393. for as_dir in $PATH
  6394. do
  6395. IFS=$as_save_IFS
  6396. test -z "$as_dir" && as_dir=.
  6397. for ac_exec_ext in '' $ac_executable_extensions; do
  6398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6399. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6401. break 2
  6402. fi
  6403. done
  6404. done
  6405. IFS=$as_save_IFS
  6406. fi
  6407. fi
  6408. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6409. if test -n "$ac_ct_RANLIB"; then
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6411. $as_echo "$ac_ct_RANLIB" >&6; }
  6412. else
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6414. $as_echo "no" >&6; }
  6415. fi
  6416. if test "x$ac_ct_RANLIB" = x; then
  6417. RANLIB=":"
  6418. else
  6419. case $cross_compiling:$ac_tool_warned in
  6420. yes:)
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6422. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6423. ac_tool_warned=yes ;;
  6424. esac
  6425. RANLIB=$ac_ct_RANLIB
  6426. fi
  6427. else
  6428. RANLIB="$ac_cv_prog_RANLIB"
  6429. fi
  6430. test -z "$RANLIB" && RANLIB=:
  6431. # Determine commands to create old-style static archives.
  6432. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6433. old_postinstall_cmds='chmod 644 $oldlib'
  6434. old_postuninstall_cmds=
  6435. if test -n "$RANLIB"; then
  6436. case $host_os in
  6437. bitrig* | openbsd*)
  6438. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6439. ;;
  6440. *)
  6441. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6442. ;;
  6443. esac
  6444. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6445. fi
  6446. case $host_os in
  6447. darwin*)
  6448. lock_old_archive_extraction=yes ;;
  6449. *)
  6450. lock_old_archive_extraction=no ;;
  6451. esac
  6452. # If no C compiler was specified, use CC.
  6453. LTCC=${LTCC-"$CC"}
  6454. # If no C compiler flags were specified, use CFLAGS.
  6455. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6456. # Allow CC to be a program name with arguments.
  6457. compiler=$CC
  6458. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6460. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6461. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6462. $as_echo_n "(cached) " >&6
  6463. else
  6464. # These are sane defaults that work on at least a few old systems.
  6465. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6466. # Character class describing NM global symbol codes.
  6467. symcode='[BCDEGRST]'
  6468. # Regexp to match symbols that can be accessed directly from C.
  6469. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6470. # Define system-specific variables.
  6471. case $host_os in
  6472. aix*)
  6473. symcode='[BCDT]'
  6474. ;;
  6475. cygwin* | mingw* | pw32* | cegcc*)
  6476. symcode='[ABCDGISTW]'
  6477. ;;
  6478. hpux*)
  6479. if test ia64 = "$host_cpu"; then
  6480. symcode='[ABCDEGRST]'
  6481. fi
  6482. ;;
  6483. irix* | nonstopux*)
  6484. symcode='[BCDEGRST]'
  6485. ;;
  6486. osf*)
  6487. symcode='[BCDEGQRST]'
  6488. ;;
  6489. solaris*)
  6490. symcode='[BDRT]'
  6491. ;;
  6492. sco3.2v5*)
  6493. symcode='[DT]'
  6494. ;;
  6495. sysv4.2uw2*)
  6496. symcode='[DT]'
  6497. ;;
  6498. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6499. symcode='[ABDT]'
  6500. ;;
  6501. sysv4)
  6502. symcode='[DFNSTU]'
  6503. ;;
  6504. esac
  6505. # If we're using GNU nm, then use its standard symbol codes.
  6506. case `$NM -V 2>&1` in
  6507. *GNU* | *'with BFD'*)
  6508. symcode='[ABCDGIRSTW]' ;;
  6509. esac
  6510. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6511. # Gets list of data symbols to import.
  6512. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6513. # Adjust the below global symbol transforms to fixup imported variables.
  6514. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6515. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6516. lt_c_name_lib_hook="\
  6517. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6518. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6519. else
  6520. # Disable hooks by default.
  6521. lt_cv_sys_global_symbol_to_import=
  6522. lt_cdecl_hook=
  6523. lt_c_name_hook=
  6524. lt_c_name_lib_hook=
  6525. fi
  6526. # Transform an extracted symbol line into a proper C declaration.
  6527. # Some systems (esp. on ia64) link data and code symbols differently,
  6528. # so use this general approach.
  6529. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6530. $lt_cdecl_hook\
  6531. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6532. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6533. # Transform an extracted symbol line into symbol name and symbol address
  6534. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6535. $lt_c_name_hook\
  6536. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6537. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6538. # Transform an extracted symbol line into symbol name with lib prefix and
  6539. # symbol address.
  6540. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6541. $lt_c_name_lib_hook\
  6542. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6543. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6544. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6545. # Handle CRLF in mingw tool chain
  6546. opt_cr=
  6547. case $build_os in
  6548. mingw*)
  6549. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6550. ;;
  6551. esac
  6552. # Try without a prefix underscore, then with it.
  6553. for ac_symprfx in "" "_"; do
  6554. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6555. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6556. # Write the raw and C identifiers.
  6557. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6558. # Fake it for dumpbin and say T for any non-static function,
  6559. # D for any global variable and I for any imported variable.
  6560. # Also find C++ and __fastcall symbols from MSVC++,
  6561. # which start with @ or ?.
  6562. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6563. " {last_section=section; section=\$ 3};"\
  6564. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6565. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6566. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6567. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6568. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6569. " \$ 0!~/External *\|/{next};"\
  6570. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6571. " {if(hide[section]) next};"\
  6572. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6573. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6574. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6575. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6576. " ' prfx=^$ac_symprfx"
  6577. else
  6578. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6579. fi
  6580. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6581. # Check to see that the pipe works correctly.
  6582. pipe_works=no
  6583. rm -f conftest*
  6584. cat > conftest.$ac_ext <<_LT_EOF
  6585. #ifdef __cplusplus
  6586. extern "C" {
  6587. #endif
  6588. char nm_test_var;
  6589. void nm_test_func(void);
  6590. void nm_test_func(void){}
  6591. #ifdef __cplusplus
  6592. }
  6593. #endif
  6594. int main(){nm_test_var='a';nm_test_func();return(0);}
  6595. _LT_EOF
  6596. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6597. (eval $ac_compile) 2>&5
  6598. ac_status=$?
  6599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6600. test $ac_status = 0; }; then
  6601. # Now try to grab the symbols.
  6602. nlist=conftest.nm
  6603. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6604. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6605. # Try sorting and uniquifying the output.
  6606. if sort "$nlist" | uniq > "$nlist"T; then
  6607. mv -f "$nlist"T "$nlist"
  6608. else
  6609. rm -f "$nlist"T
  6610. fi
  6611. # Make sure that we snagged all the symbols we need.
  6612. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6613. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6614. cat <<_LT_EOF > conftest.$ac_ext
  6615. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6616. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6617. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6618. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6619. # define LT_DLSYM_CONST
  6620. #elif defined __osf__
  6621. /* This system does not cope well with relocations in const data. */
  6622. # define LT_DLSYM_CONST
  6623. #else
  6624. # define LT_DLSYM_CONST const
  6625. #endif
  6626. #ifdef __cplusplus
  6627. extern "C" {
  6628. #endif
  6629. _LT_EOF
  6630. # Now generate the symbol file.
  6631. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6632. cat <<_LT_EOF >> conftest.$ac_ext
  6633. /* The mapping between symbol names and symbols. */
  6634. LT_DLSYM_CONST struct {
  6635. const char *name;
  6636. void *address;
  6637. }
  6638. lt__PROGRAM__LTX_preloaded_symbols[] =
  6639. {
  6640. { "@PROGRAM@", (void *) 0 },
  6641. _LT_EOF
  6642. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6643. cat <<\_LT_EOF >> conftest.$ac_ext
  6644. {0, (void *) 0}
  6645. };
  6646. /* This works around a problem in FreeBSD linker */
  6647. #ifdef FREEBSD_WORKAROUND
  6648. static const void *lt_preloaded_setup() {
  6649. return lt__PROGRAM__LTX_preloaded_symbols;
  6650. }
  6651. #endif
  6652. #ifdef __cplusplus
  6653. }
  6654. #endif
  6655. _LT_EOF
  6656. # Now try linking the two files.
  6657. mv conftest.$ac_objext conftstm.$ac_objext
  6658. lt_globsym_save_LIBS=$LIBS
  6659. lt_globsym_save_CFLAGS=$CFLAGS
  6660. LIBS=conftstm.$ac_objext
  6661. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6662. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6663. (eval $ac_link) 2>&5
  6664. ac_status=$?
  6665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6666. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6667. pipe_works=yes
  6668. fi
  6669. LIBS=$lt_globsym_save_LIBS
  6670. CFLAGS=$lt_globsym_save_CFLAGS
  6671. else
  6672. echo "cannot find nm_test_func in $nlist" >&5
  6673. fi
  6674. else
  6675. echo "cannot find nm_test_var in $nlist" >&5
  6676. fi
  6677. else
  6678. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6679. fi
  6680. else
  6681. echo "$progname: failed program was:" >&5
  6682. cat conftest.$ac_ext >&5
  6683. fi
  6684. rm -rf conftest* conftst*
  6685. # Do not use the global_symbol_pipe unless it works.
  6686. if test yes = "$pipe_works"; then
  6687. break
  6688. else
  6689. lt_cv_sys_global_symbol_pipe=
  6690. fi
  6691. done
  6692. fi
  6693. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6694. lt_cv_sys_global_symbol_to_cdecl=
  6695. fi
  6696. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6698. $as_echo "failed" >&6; }
  6699. else
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6701. $as_echo "ok" >&6; }
  6702. fi
  6703. # Response file support.
  6704. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6705. nm_file_list_spec='@'
  6706. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6707. nm_file_list_spec='@'
  6708. fi
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6710. $as_echo_n "checking for sysroot... " >&6; }
  6711. # Check whether --with-sysroot was given.
  6712. if test "${with_sysroot+set}" = set; then :
  6713. withval=$with_sysroot;
  6714. else
  6715. with_sysroot=no
  6716. fi
  6717. lt_sysroot=
  6718. case $with_sysroot in #(
  6719. yes)
  6720. if test yes = "$GCC"; then
  6721. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6722. fi
  6723. ;; #(
  6724. /*)
  6725. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6726. ;; #(
  6727. no|'')
  6728. ;; #(
  6729. *)
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6731. $as_echo "$with_sysroot" >&6; }
  6732. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6733. ;;
  6734. esac
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6736. $as_echo "${lt_sysroot:-no}" >&6; }
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6738. $as_echo_n "checking for a working dd... " >&6; }
  6739. if ${ac_cv_path_lt_DD+:} false; then :
  6740. $as_echo_n "(cached) " >&6
  6741. else
  6742. printf 0123456789abcdef0123456789abcdef >conftest.i
  6743. cat conftest.i conftest.i >conftest2.i
  6744. : ${lt_DD:=$DD}
  6745. if test -z "$lt_DD"; then
  6746. ac_path_lt_DD_found=false
  6747. # Loop through the user's path and test for each of PROGNAME-LIST
  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_prog in dd; do
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6756. as_fn_executable_p "$ac_path_lt_DD" || continue
  6757. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6758. cmp -s conftest.i conftest.out \
  6759. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6760. fi
  6761. $ac_path_lt_DD_found && break 3
  6762. done
  6763. done
  6764. done
  6765. IFS=$as_save_IFS
  6766. if test -z "$ac_cv_path_lt_DD"; then
  6767. :
  6768. fi
  6769. else
  6770. ac_cv_path_lt_DD=$lt_DD
  6771. fi
  6772. rm -f conftest.i conftest2.i conftest.out
  6773. fi
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6775. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6777. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6778. if ${lt_cv_truncate_bin+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. printf 0123456789abcdef0123456789abcdef >conftest.i
  6782. cat conftest.i conftest.i >conftest2.i
  6783. lt_cv_truncate_bin=
  6784. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6785. cmp -s conftest.i conftest.out \
  6786. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6787. fi
  6788. rm -f conftest.i conftest2.i conftest.out
  6789. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6790. fi
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6792. $as_echo "$lt_cv_truncate_bin" >&6; }
  6793. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6794. func_cc_basename ()
  6795. {
  6796. for cc_temp in $*""; do
  6797. case $cc_temp in
  6798. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6799. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6800. \-*) ;;
  6801. *) break;;
  6802. esac
  6803. done
  6804. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6805. }
  6806. # Check whether --enable-libtool-lock was given.
  6807. if test "${enable_libtool_lock+set}" = set; then :
  6808. enableval=$enable_libtool_lock;
  6809. fi
  6810. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6811. # Some flags need to be propagated to the compiler or linker for good
  6812. # libtool support.
  6813. case $host in
  6814. ia64-*-hpux*)
  6815. # Find out what ABI is being produced by ac_compile, and set mode
  6816. # options accordingly.
  6817. echo 'int i;' > conftest.$ac_ext
  6818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6819. (eval $ac_compile) 2>&5
  6820. ac_status=$?
  6821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6822. test $ac_status = 0; }; then
  6823. case `/usr/bin/file conftest.$ac_objext` in
  6824. *ELF-32*)
  6825. HPUX_IA64_MODE=32
  6826. ;;
  6827. *ELF-64*)
  6828. HPUX_IA64_MODE=64
  6829. ;;
  6830. esac
  6831. fi
  6832. rm -rf conftest*
  6833. ;;
  6834. *-*-irix6*)
  6835. # Find out what ABI is being produced by ac_compile, and set linker
  6836. # options accordingly.
  6837. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6838. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6839. (eval $ac_compile) 2>&5
  6840. ac_status=$?
  6841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6842. test $ac_status = 0; }; then
  6843. if test yes = "$lt_cv_prog_gnu_ld"; then
  6844. case `/usr/bin/file conftest.$ac_objext` in
  6845. *32-bit*)
  6846. LD="${LD-ld} -melf32bsmip"
  6847. ;;
  6848. *N32*)
  6849. LD="${LD-ld} -melf32bmipn32"
  6850. ;;
  6851. *64-bit*)
  6852. LD="${LD-ld} -melf64bmip"
  6853. ;;
  6854. esac
  6855. else
  6856. case `/usr/bin/file conftest.$ac_objext` in
  6857. *32-bit*)
  6858. LD="${LD-ld} -32"
  6859. ;;
  6860. *N32*)
  6861. LD="${LD-ld} -n32"
  6862. ;;
  6863. *64-bit*)
  6864. LD="${LD-ld} -64"
  6865. ;;
  6866. esac
  6867. fi
  6868. fi
  6869. rm -rf conftest*
  6870. ;;
  6871. mips64*-*linux*)
  6872. # Find out what ABI is being produced by ac_compile, and set linker
  6873. # options accordingly.
  6874. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6875. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6876. (eval $ac_compile) 2>&5
  6877. ac_status=$?
  6878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6879. test $ac_status = 0; }; then
  6880. emul=elf
  6881. case `/usr/bin/file conftest.$ac_objext` in
  6882. *32-bit*)
  6883. emul="${emul}32"
  6884. ;;
  6885. *64-bit*)
  6886. emul="${emul}64"
  6887. ;;
  6888. esac
  6889. case `/usr/bin/file conftest.$ac_objext` in
  6890. *MSB*)
  6891. emul="${emul}btsmip"
  6892. ;;
  6893. *LSB*)
  6894. emul="${emul}ltsmip"
  6895. ;;
  6896. esac
  6897. case `/usr/bin/file conftest.$ac_objext` in
  6898. *N32*)
  6899. emul="${emul}n32"
  6900. ;;
  6901. esac
  6902. LD="${LD-ld} -m $emul"
  6903. fi
  6904. rm -rf conftest*
  6905. ;;
  6906. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6907. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6908. # Find out what ABI is being produced by ac_compile, and set linker
  6909. # options accordingly. Note that the listed cases only cover the
  6910. # situations where additional linker options are needed (such as when
  6911. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6912. # vice versa); the common cases where no linker options are needed do
  6913. # not appear in the list.
  6914. echo 'int i;' > conftest.$ac_ext
  6915. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6916. (eval $ac_compile) 2>&5
  6917. ac_status=$?
  6918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6919. test $ac_status = 0; }; then
  6920. case `/usr/bin/file conftest.o` in
  6921. *32-bit*)
  6922. case $host in
  6923. x86_64-*kfreebsd*-gnu)
  6924. LD="${LD-ld} -m elf_i386_fbsd"
  6925. ;;
  6926. x86_64-*linux*)
  6927. case `/usr/bin/file conftest.o` in
  6928. *x86-64*)
  6929. LD="${LD-ld} -m elf32_x86_64"
  6930. ;;
  6931. *)
  6932. LD="${LD-ld} -m elf_i386"
  6933. ;;
  6934. esac
  6935. ;;
  6936. powerpc64le-*linux*)
  6937. LD="${LD-ld} -m elf32lppclinux"
  6938. ;;
  6939. powerpc64-*linux*)
  6940. LD="${LD-ld} -m elf32ppclinux"
  6941. ;;
  6942. s390x-*linux*)
  6943. LD="${LD-ld} -m elf_s390"
  6944. ;;
  6945. sparc64-*linux*)
  6946. LD="${LD-ld} -m elf32_sparc"
  6947. ;;
  6948. esac
  6949. ;;
  6950. *64-bit*)
  6951. case $host in
  6952. x86_64-*kfreebsd*-gnu)
  6953. LD="${LD-ld} -m elf_x86_64_fbsd"
  6954. ;;
  6955. x86_64-*linux*)
  6956. LD="${LD-ld} -m elf_x86_64"
  6957. ;;
  6958. powerpcle-*linux*)
  6959. LD="${LD-ld} -m elf64lppc"
  6960. ;;
  6961. powerpc-*linux*)
  6962. LD="${LD-ld} -m elf64ppc"
  6963. ;;
  6964. s390*-*linux*|s390*-*tpf*)
  6965. LD="${LD-ld} -m elf64_s390"
  6966. ;;
  6967. sparc*-*linux*)
  6968. LD="${LD-ld} -m elf64_sparc"
  6969. ;;
  6970. esac
  6971. ;;
  6972. esac
  6973. fi
  6974. rm -rf conftest*
  6975. ;;
  6976. *-*-sco3.2v5*)
  6977. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6978. SAVE_CFLAGS=$CFLAGS
  6979. CFLAGS="$CFLAGS -belf"
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6981. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6982. if ${lt_cv_cc_needs_belf+:} false; then :
  6983. $as_echo_n "(cached) " >&6
  6984. else
  6985. ac_ext=c
  6986. ac_cpp='$CPP $CPPFLAGS'
  6987. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6988. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6989. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6991. /* end confdefs.h. */
  6992. int
  6993. main ()
  6994. {
  6995. ;
  6996. return 0;
  6997. }
  6998. _ACEOF
  6999. if ac_fn_c_try_link "$LINENO"; then :
  7000. lt_cv_cc_needs_belf=yes
  7001. else
  7002. lt_cv_cc_needs_belf=no
  7003. fi
  7004. rm -f core conftest.err conftest.$ac_objext \
  7005. conftest$ac_exeext conftest.$ac_ext
  7006. ac_ext=c
  7007. ac_cpp='$CPP $CPPFLAGS'
  7008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7011. fi
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7013. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7014. if test yes != "$lt_cv_cc_needs_belf"; then
  7015. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7016. CFLAGS=$SAVE_CFLAGS
  7017. fi
  7018. ;;
  7019. *-*solaris*)
  7020. # Find out what ABI is being produced by ac_compile, and set linker
  7021. # options accordingly.
  7022. echo 'int i;' > conftest.$ac_ext
  7023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7024. (eval $ac_compile) 2>&5
  7025. ac_status=$?
  7026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7027. test $ac_status = 0; }; then
  7028. case `/usr/bin/file conftest.o` in
  7029. *64-bit*)
  7030. case $lt_cv_prog_gnu_ld in
  7031. yes*)
  7032. case $host in
  7033. i?86-*-solaris*|x86_64-*-solaris*)
  7034. LD="${LD-ld} -m elf_x86_64"
  7035. ;;
  7036. sparc*-*-solaris*)
  7037. LD="${LD-ld} -m elf64_sparc"
  7038. ;;
  7039. esac
  7040. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7041. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7042. LD=${LD-ld}_sol2
  7043. fi
  7044. ;;
  7045. *)
  7046. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7047. LD="${LD-ld} -64"
  7048. fi
  7049. ;;
  7050. esac
  7051. ;;
  7052. esac
  7053. fi
  7054. rm -rf conftest*
  7055. ;;
  7056. esac
  7057. need_locks=$enable_libtool_lock
  7058. if test -n "$ac_tool_prefix"; then
  7059. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7060. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7062. $as_echo_n "checking for $ac_word... " >&6; }
  7063. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7064. $as_echo_n "(cached) " >&6
  7065. else
  7066. if test -n "$MANIFEST_TOOL"; then
  7067. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7068. else
  7069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7070. for as_dir in $PATH
  7071. do
  7072. IFS=$as_save_IFS
  7073. test -z "$as_dir" && as_dir=.
  7074. for ac_exec_ext in '' $ac_executable_extensions; do
  7075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7076. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7078. break 2
  7079. fi
  7080. done
  7081. done
  7082. IFS=$as_save_IFS
  7083. fi
  7084. fi
  7085. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7086. if test -n "$MANIFEST_TOOL"; then
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7088. $as_echo "$MANIFEST_TOOL" >&6; }
  7089. else
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7091. $as_echo "no" >&6; }
  7092. fi
  7093. fi
  7094. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7095. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7096. # Extract the first word of "mt", so it can be a program name with args.
  7097. set dummy mt; ac_word=$2
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7099. $as_echo_n "checking for $ac_word... " >&6; }
  7100. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7101. $as_echo_n "(cached) " >&6
  7102. else
  7103. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7104. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7105. else
  7106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7107. for as_dir in $PATH
  7108. do
  7109. IFS=$as_save_IFS
  7110. test -z "$as_dir" && as_dir=.
  7111. for ac_exec_ext in '' $ac_executable_extensions; do
  7112. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7113. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7115. break 2
  7116. fi
  7117. done
  7118. done
  7119. IFS=$as_save_IFS
  7120. fi
  7121. fi
  7122. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7123. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7125. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7126. else
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7128. $as_echo "no" >&6; }
  7129. fi
  7130. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7131. MANIFEST_TOOL=":"
  7132. else
  7133. case $cross_compiling:$ac_tool_warned in
  7134. yes:)
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7136. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7137. ac_tool_warned=yes ;;
  7138. esac
  7139. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7140. fi
  7141. else
  7142. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7143. fi
  7144. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7146. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7147. if ${lt_cv_path_mainfest_tool+:} false; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. lt_cv_path_mainfest_tool=no
  7151. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7152. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7153. cat conftest.err >&5
  7154. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7155. lt_cv_path_mainfest_tool=yes
  7156. fi
  7157. rm -f conftest*
  7158. fi
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7160. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7161. if test yes != "$lt_cv_path_mainfest_tool"; then
  7162. MANIFEST_TOOL=:
  7163. fi
  7164. case $host_os in
  7165. rhapsody* | darwin*)
  7166. if test -n "$ac_tool_prefix"; then
  7167. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7168. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7170. $as_echo_n "checking for $ac_word... " >&6; }
  7171. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7172. $as_echo_n "(cached) " >&6
  7173. else
  7174. if test -n "$DSYMUTIL"; then
  7175. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7176. else
  7177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7178. for as_dir in $PATH
  7179. do
  7180. IFS=$as_save_IFS
  7181. test -z "$as_dir" && as_dir=.
  7182. for ac_exec_ext in '' $ac_executable_extensions; do
  7183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7184. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7186. break 2
  7187. fi
  7188. done
  7189. done
  7190. IFS=$as_save_IFS
  7191. fi
  7192. fi
  7193. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7194. if test -n "$DSYMUTIL"; then
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7196. $as_echo "$DSYMUTIL" >&6; }
  7197. else
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7199. $as_echo "no" >&6; }
  7200. fi
  7201. fi
  7202. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7203. ac_ct_DSYMUTIL=$DSYMUTIL
  7204. # Extract the first word of "dsymutil", so it can be a program name with args.
  7205. set dummy dsymutil; ac_word=$2
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7207. $as_echo_n "checking for $ac_word... " >&6; }
  7208. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. if test -n "$ac_ct_DSYMUTIL"; then
  7212. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7213. else
  7214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7215. for as_dir in $PATH
  7216. do
  7217. IFS=$as_save_IFS
  7218. test -z "$as_dir" && as_dir=.
  7219. for ac_exec_ext in '' $ac_executable_extensions; do
  7220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7221. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7223. break 2
  7224. fi
  7225. done
  7226. done
  7227. IFS=$as_save_IFS
  7228. fi
  7229. fi
  7230. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7231. if test -n "$ac_ct_DSYMUTIL"; then
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7233. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7234. else
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7236. $as_echo "no" >&6; }
  7237. fi
  7238. if test "x$ac_ct_DSYMUTIL" = x; then
  7239. DSYMUTIL=":"
  7240. else
  7241. case $cross_compiling:$ac_tool_warned in
  7242. yes:)
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7244. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7245. ac_tool_warned=yes ;;
  7246. esac
  7247. DSYMUTIL=$ac_ct_DSYMUTIL
  7248. fi
  7249. else
  7250. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7251. fi
  7252. if test -n "$ac_tool_prefix"; then
  7253. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7254. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7256. $as_echo_n "checking for $ac_word... " >&6; }
  7257. if ${ac_cv_prog_NMEDIT+:} false; then :
  7258. $as_echo_n "(cached) " >&6
  7259. else
  7260. if test -n "$NMEDIT"; then
  7261. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7262. else
  7263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7264. for as_dir in $PATH
  7265. do
  7266. IFS=$as_save_IFS
  7267. test -z "$as_dir" && as_dir=.
  7268. for ac_exec_ext in '' $ac_executable_extensions; do
  7269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7270. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7272. break 2
  7273. fi
  7274. done
  7275. done
  7276. IFS=$as_save_IFS
  7277. fi
  7278. fi
  7279. NMEDIT=$ac_cv_prog_NMEDIT
  7280. if test -n "$NMEDIT"; then
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7282. $as_echo "$NMEDIT" >&6; }
  7283. else
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7285. $as_echo "no" >&6; }
  7286. fi
  7287. fi
  7288. if test -z "$ac_cv_prog_NMEDIT"; then
  7289. ac_ct_NMEDIT=$NMEDIT
  7290. # Extract the first word of "nmedit", so it can be a program name with args.
  7291. set dummy nmedit; ac_word=$2
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7293. $as_echo_n "checking for $ac_word... " >&6; }
  7294. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7295. $as_echo_n "(cached) " >&6
  7296. else
  7297. if test -n "$ac_ct_NMEDIT"; then
  7298. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7299. else
  7300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7301. for as_dir in $PATH
  7302. do
  7303. IFS=$as_save_IFS
  7304. test -z "$as_dir" && as_dir=.
  7305. for ac_exec_ext in '' $ac_executable_extensions; do
  7306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7307. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7309. break 2
  7310. fi
  7311. done
  7312. done
  7313. IFS=$as_save_IFS
  7314. fi
  7315. fi
  7316. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7317. if test -n "$ac_ct_NMEDIT"; then
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7319. $as_echo "$ac_ct_NMEDIT" >&6; }
  7320. else
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7322. $as_echo "no" >&6; }
  7323. fi
  7324. if test "x$ac_ct_NMEDIT" = x; then
  7325. NMEDIT=":"
  7326. else
  7327. case $cross_compiling:$ac_tool_warned in
  7328. yes:)
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7331. ac_tool_warned=yes ;;
  7332. esac
  7333. NMEDIT=$ac_ct_NMEDIT
  7334. fi
  7335. else
  7336. NMEDIT="$ac_cv_prog_NMEDIT"
  7337. fi
  7338. if test -n "$ac_tool_prefix"; then
  7339. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7340. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7342. $as_echo_n "checking for $ac_word... " >&6; }
  7343. if ${ac_cv_prog_LIPO+:} false; then :
  7344. $as_echo_n "(cached) " >&6
  7345. else
  7346. if test -n "$LIPO"; then
  7347. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7348. else
  7349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7350. for as_dir in $PATH
  7351. do
  7352. IFS=$as_save_IFS
  7353. test -z "$as_dir" && as_dir=.
  7354. for ac_exec_ext in '' $ac_executable_extensions; do
  7355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7356. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7358. break 2
  7359. fi
  7360. done
  7361. done
  7362. IFS=$as_save_IFS
  7363. fi
  7364. fi
  7365. LIPO=$ac_cv_prog_LIPO
  7366. if test -n "$LIPO"; then
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7368. $as_echo "$LIPO" >&6; }
  7369. else
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7371. $as_echo "no" >&6; }
  7372. fi
  7373. fi
  7374. if test -z "$ac_cv_prog_LIPO"; then
  7375. ac_ct_LIPO=$LIPO
  7376. # Extract the first word of "lipo", so it can be a program name with args.
  7377. set dummy lipo; ac_word=$2
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7379. $as_echo_n "checking for $ac_word... " >&6; }
  7380. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7381. $as_echo_n "(cached) " >&6
  7382. else
  7383. if test -n "$ac_ct_LIPO"; then
  7384. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7385. else
  7386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7387. for as_dir in $PATH
  7388. do
  7389. IFS=$as_save_IFS
  7390. test -z "$as_dir" && as_dir=.
  7391. for ac_exec_ext in '' $ac_executable_extensions; do
  7392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7393. ac_cv_prog_ac_ct_LIPO="lipo"
  7394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7395. break 2
  7396. fi
  7397. done
  7398. done
  7399. IFS=$as_save_IFS
  7400. fi
  7401. fi
  7402. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7403. if test -n "$ac_ct_LIPO"; then
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7405. $as_echo "$ac_ct_LIPO" >&6; }
  7406. else
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7408. $as_echo "no" >&6; }
  7409. fi
  7410. if test "x$ac_ct_LIPO" = x; then
  7411. LIPO=":"
  7412. else
  7413. case $cross_compiling:$ac_tool_warned in
  7414. yes:)
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7416. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7417. ac_tool_warned=yes ;;
  7418. esac
  7419. LIPO=$ac_ct_LIPO
  7420. fi
  7421. else
  7422. LIPO="$ac_cv_prog_LIPO"
  7423. fi
  7424. if test -n "$ac_tool_prefix"; then
  7425. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7426. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7428. $as_echo_n "checking for $ac_word... " >&6; }
  7429. if ${ac_cv_prog_OTOOL+:} false; then :
  7430. $as_echo_n "(cached) " >&6
  7431. else
  7432. if test -n "$OTOOL"; then
  7433. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7434. else
  7435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7436. for as_dir in $PATH
  7437. do
  7438. IFS=$as_save_IFS
  7439. test -z "$as_dir" && as_dir=.
  7440. for ac_exec_ext in '' $ac_executable_extensions; do
  7441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7442. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7444. break 2
  7445. fi
  7446. done
  7447. done
  7448. IFS=$as_save_IFS
  7449. fi
  7450. fi
  7451. OTOOL=$ac_cv_prog_OTOOL
  7452. if test -n "$OTOOL"; then
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7454. $as_echo "$OTOOL" >&6; }
  7455. else
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7457. $as_echo "no" >&6; }
  7458. fi
  7459. fi
  7460. if test -z "$ac_cv_prog_OTOOL"; then
  7461. ac_ct_OTOOL=$OTOOL
  7462. # Extract the first word of "otool", so it can be a program name with args.
  7463. set dummy otool; ac_word=$2
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7465. $as_echo_n "checking for $ac_word... " >&6; }
  7466. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7467. $as_echo_n "(cached) " >&6
  7468. else
  7469. if test -n "$ac_ct_OTOOL"; then
  7470. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7471. else
  7472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7473. for as_dir in $PATH
  7474. do
  7475. IFS=$as_save_IFS
  7476. test -z "$as_dir" && as_dir=.
  7477. for ac_exec_ext in '' $ac_executable_extensions; do
  7478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7479. ac_cv_prog_ac_ct_OTOOL="otool"
  7480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7481. break 2
  7482. fi
  7483. done
  7484. done
  7485. IFS=$as_save_IFS
  7486. fi
  7487. fi
  7488. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7489. if test -n "$ac_ct_OTOOL"; then
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7491. $as_echo "$ac_ct_OTOOL" >&6; }
  7492. else
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7494. $as_echo "no" >&6; }
  7495. fi
  7496. if test "x$ac_ct_OTOOL" = x; then
  7497. OTOOL=":"
  7498. else
  7499. case $cross_compiling:$ac_tool_warned in
  7500. yes:)
  7501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7502. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7503. ac_tool_warned=yes ;;
  7504. esac
  7505. OTOOL=$ac_ct_OTOOL
  7506. fi
  7507. else
  7508. OTOOL="$ac_cv_prog_OTOOL"
  7509. fi
  7510. if test -n "$ac_tool_prefix"; then
  7511. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7512. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7514. $as_echo_n "checking for $ac_word... " >&6; }
  7515. if ${ac_cv_prog_OTOOL64+:} false; then :
  7516. $as_echo_n "(cached) " >&6
  7517. else
  7518. if test -n "$OTOOL64"; then
  7519. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7520. else
  7521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7522. for as_dir in $PATH
  7523. do
  7524. IFS=$as_save_IFS
  7525. test -z "$as_dir" && as_dir=.
  7526. for ac_exec_ext in '' $ac_executable_extensions; do
  7527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7528. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7530. break 2
  7531. fi
  7532. done
  7533. done
  7534. IFS=$as_save_IFS
  7535. fi
  7536. fi
  7537. OTOOL64=$ac_cv_prog_OTOOL64
  7538. if test -n "$OTOOL64"; then
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7540. $as_echo "$OTOOL64" >&6; }
  7541. else
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7543. $as_echo "no" >&6; }
  7544. fi
  7545. fi
  7546. if test -z "$ac_cv_prog_OTOOL64"; then
  7547. ac_ct_OTOOL64=$OTOOL64
  7548. # Extract the first word of "otool64", so it can be a program name with args.
  7549. set dummy otool64; ac_word=$2
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7551. $as_echo_n "checking for $ac_word... " >&6; }
  7552. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7553. $as_echo_n "(cached) " >&6
  7554. else
  7555. if test -n "$ac_ct_OTOOL64"; then
  7556. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7557. else
  7558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7559. for as_dir in $PATH
  7560. do
  7561. IFS=$as_save_IFS
  7562. test -z "$as_dir" && as_dir=.
  7563. for ac_exec_ext in '' $ac_executable_extensions; do
  7564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7565. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7567. break 2
  7568. fi
  7569. done
  7570. done
  7571. IFS=$as_save_IFS
  7572. fi
  7573. fi
  7574. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7575. if test -n "$ac_ct_OTOOL64"; then
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7577. $as_echo "$ac_ct_OTOOL64" >&6; }
  7578. else
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7580. $as_echo "no" >&6; }
  7581. fi
  7582. if test "x$ac_ct_OTOOL64" = x; then
  7583. OTOOL64=":"
  7584. else
  7585. case $cross_compiling:$ac_tool_warned in
  7586. yes:)
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7588. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7589. ac_tool_warned=yes ;;
  7590. esac
  7591. OTOOL64=$ac_ct_OTOOL64
  7592. fi
  7593. else
  7594. OTOOL64="$ac_cv_prog_OTOOL64"
  7595. fi
  7596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7597. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7598. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7599. $as_echo_n "(cached) " >&6
  7600. else
  7601. lt_cv_apple_cc_single_mod=no
  7602. if test -z "$LT_MULTI_MODULE"; then
  7603. # By default we will add the -single_module flag. You can override
  7604. # by either setting the environment variable LT_MULTI_MODULE
  7605. # non-empty at configure time, or by adding -multi_module to the
  7606. # link flags.
  7607. rm -rf libconftest.dylib*
  7608. echo "int foo(void){return 1;}" > conftest.c
  7609. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7610. -dynamiclib -Wl,-single_module conftest.c" >&5
  7611. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7612. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7613. _lt_result=$?
  7614. # If there is a non-empty error log, and "single_module"
  7615. # appears in it, assume the flag caused a linker warning
  7616. if test -s conftest.err && $GREP single_module conftest.err; then
  7617. cat conftest.err >&5
  7618. # Otherwise, if the output was created with a 0 exit code from
  7619. # the compiler, it worked.
  7620. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7621. lt_cv_apple_cc_single_mod=yes
  7622. else
  7623. cat conftest.err >&5
  7624. fi
  7625. rm -rf libconftest.dylib*
  7626. rm -f conftest.*
  7627. fi
  7628. fi
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7630. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7632. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7633. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7634. $as_echo_n "(cached) " >&6
  7635. else
  7636. lt_cv_ld_exported_symbols_list=no
  7637. save_LDFLAGS=$LDFLAGS
  7638. echo "_main" > conftest.sym
  7639. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7641. /* end confdefs.h. */
  7642. int
  7643. main ()
  7644. {
  7645. ;
  7646. return 0;
  7647. }
  7648. _ACEOF
  7649. if ac_fn_c_try_link "$LINENO"; then :
  7650. lt_cv_ld_exported_symbols_list=yes
  7651. else
  7652. lt_cv_ld_exported_symbols_list=no
  7653. fi
  7654. rm -f core conftest.err conftest.$ac_objext \
  7655. conftest$ac_exeext conftest.$ac_ext
  7656. LDFLAGS=$save_LDFLAGS
  7657. fi
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7659. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7661. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7662. if ${lt_cv_ld_force_load+:} false; then :
  7663. $as_echo_n "(cached) " >&6
  7664. else
  7665. lt_cv_ld_force_load=no
  7666. cat > conftest.c << _LT_EOF
  7667. int forced_loaded() { return 2;}
  7668. _LT_EOF
  7669. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7670. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7671. echo "$AR cr libconftest.a conftest.o" >&5
  7672. $AR cr libconftest.a conftest.o 2>&5
  7673. echo "$RANLIB libconftest.a" >&5
  7674. $RANLIB libconftest.a 2>&5
  7675. cat > conftest.c << _LT_EOF
  7676. int main() { return 0;}
  7677. _LT_EOF
  7678. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7679. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7680. _lt_result=$?
  7681. if test -s conftest.err && $GREP force_load conftest.err; then
  7682. cat conftest.err >&5
  7683. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7684. lt_cv_ld_force_load=yes
  7685. else
  7686. cat conftest.err >&5
  7687. fi
  7688. rm -f conftest.err libconftest.a conftest conftest.c
  7689. rm -rf conftest.dSYM
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7692. $as_echo "$lt_cv_ld_force_load" >&6; }
  7693. case $host_os in
  7694. rhapsody* | darwin1.[012])
  7695. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7696. darwin1.*)
  7697. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7698. darwin*) # darwin 5.x on
  7699. # if running on 10.5 or later, the deployment target defaults
  7700. # to the OS version, if on x86, and 10.4, the deployment
  7701. # target defaults to 10.4. Don't you love it?
  7702. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7703. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  7704. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7705. 10.[012][,.]*)
  7706. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7707. 10.*|11.*)
  7708. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7709. esac
  7710. ;;
  7711. esac
  7712. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7713. _lt_dar_single_mod='$single_module'
  7714. fi
  7715. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7716. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7717. else
  7718. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7719. fi
  7720. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7721. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7722. else
  7723. _lt_dsymutil=
  7724. fi
  7725. ;;
  7726. esac
  7727. # func_munge_path_list VARIABLE PATH
  7728. # -----------------------------------
  7729. # VARIABLE is name of variable containing _space_ separated list of
  7730. # directories to be munged by the contents of PATH, which is string
  7731. # having a format:
  7732. # "DIR[:DIR]:"
  7733. # string "DIR[ DIR]" will be prepended to VARIABLE
  7734. # ":DIR[:DIR]"
  7735. # string "DIR[ DIR]" will be appended to VARIABLE
  7736. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7737. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7738. # "DIRA[ DIRA]" will be appended to VARIABLE
  7739. # "DIR[:DIR]"
  7740. # VARIABLE will be replaced by "DIR[ DIR]"
  7741. func_munge_path_list ()
  7742. {
  7743. case x$2 in
  7744. x)
  7745. ;;
  7746. *:)
  7747. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7748. ;;
  7749. x:*)
  7750. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7751. ;;
  7752. *::*)
  7753. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7754. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7755. ;;
  7756. *)
  7757. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7758. ;;
  7759. esac
  7760. }
  7761. ac_ext=c
  7762. ac_cpp='$CPP $CPPFLAGS'
  7763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7767. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7768. # On Suns, sometimes $CPP names a directory.
  7769. if test -n "$CPP" && test -d "$CPP"; then
  7770. CPP=
  7771. fi
  7772. if test -z "$CPP"; then
  7773. if ${ac_cv_prog_CPP+:} false; then :
  7774. $as_echo_n "(cached) " >&6
  7775. else
  7776. # Double quotes because CPP needs to be expanded
  7777. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7778. do
  7779. ac_preproc_ok=false
  7780. for ac_c_preproc_warn_flag in '' yes
  7781. do
  7782. # Use a header file that comes with gcc, so configuring glibc
  7783. # with a fresh cross-compiler works.
  7784. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7785. # <limits.h> exists even on freestanding compilers.
  7786. # On the NeXT, cc -E runs the code through the compiler's parser,
  7787. # not just through cpp. "Syntax error" is here to catch this case.
  7788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7789. /* end confdefs.h. */
  7790. #ifdef __STDC__
  7791. # include <limits.h>
  7792. #else
  7793. # include <assert.h>
  7794. #endif
  7795. Syntax error
  7796. _ACEOF
  7797. if ac_fn_c_try_cpp "$LINENO"; then :
  7798. else
  7799. # Broken: fails on valid input.
  7800. continue
  7801. fi
  7802. rm -f conftest.err conftest.i conftest.$ac_ext
  7803. # OK, works on sane cases. Now check whether nonexistent headers
  7804. # can be detected and how.
  7805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7806. /* end confdefs.h. */
  7807. #include <ac_nonexistent.h>
  7808. _ACEOF
  7809. if ac_fn_c_try_cpp "$LINENO"; then :
  7810. # Broken: success on invalid input.
  7811. continue
  7812. else
  7813. # Passes both tests.
  7814. ac_preproc_ok=:
  7815. break
  7816. fi
  7817. rm -f conftest.err conftest.i conftest.$ac_ext
  7818. done
  7819. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7820. rm -f conftest.i conftest.err conftest.$ac_ext
  7821. if $ac_preproc_ok; then :
  7822. break
  7823. fi
  7824. done
  7825. ac_cv_prog_CPP=$CPP
  7826. fi
  7827. CPP=$ac_cv_prog_CPP
  7828. else
  7829. ac_cv_prog_CPP=$CPP
  7830. fi
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7832. $as_echo "$CPP" >&6; }
  7833. ac_preproc_ok=false
  7834. for ac_c_preproc_warn_flag in '' yes
  7835. do
  7836. # Use a header file that comes with gcc, so configuring glibc
  7837. # with a fresh cross-compiler works.
  7838. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7839. # <limits.h> exists even on freestanding compilers.
  7840. # On the NeXT, cc -E runs the code through the compiler's parser,
  7841. # not just through cpp. "Syntax error" is here to catch this case.
  7842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7843. /* end confdefs.h. */
  7844. #ifdef __STDC__
  7845. # include <limits.h>
  7846. #else
  7847. # include <assert.h>
  7848. #endif
  7849. Syntax error
  7850. _ACEOF
  7851. if ac_fn_c_try_cpp "$LINENO"; then :
  7852. else
  7853. # Broken: fails on valid input.
  7854. continue
  7855. fi
  7856. rm -f conftest.err conftest.i conftest.$ac_ext
  7857. # OK, works on sane cases. Now check whether nonexistent headers
  7858. # can be detected and how.
  7859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7860. /* end confdefs.h. */
  7861. #include <ac_nonexistent.h>
  7862. _ACEOF
  7863. if ac_fn_c_try_cpp "$LINENO"; then :
  7864. # Broken: success on invalid input.
  7865. continue
  7866. else
  7867. # Passes both tests.
  7868. ac_preproc_ok=:
  7869. break
  7870. fi
  7871. rm -f conftest.err conftest.i conftest.$ac_ext
  7872. done
  7873. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7874. rm -f conftest.i conftest.err conftest.$ac_ext
  7875. if $ac_preproc_ok; then :
  7876. else
  7877. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7879. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7880. See \`config.log' for more details" "$LINENO" 5; }
  7881. fi
  7882. ac_ext=c
  7883. ac_cpp='$CPP $CPPFLAGS'
  7884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7888. $as_echo_n "checking for ANSI C header files... " >&6; }
  7889. if ${ac_cv_header_stdc+:} false; then :
  7890. $as_echo_n "(cached) " >&6
  7891. else
  7892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7893. /* end confdefs.h. */
  7894. #include <stdlib.h>
  7895. #include <stdarg.h>
  7896. #include <string.h>
  7897. #include <float.h>
  7898. int
  7899. main ()
  7900. {
  7901. ;
  7902. return 0;
  7903. }
  7904. _ACEOF
  7905. if ac_fn_c_try_compile "$LINENO"; then :
  7906. ac_cv_header_stdc=yes
  7907. else
  7908. ac_cv_header_stdc=no
  7909. fi
  7910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7911. if test $ac_cv_header_stdc = yes; then
  7912. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7914. /* end confdefs.h. */
  7915. #include <string.h>
  7916. _ACEOF
  7917. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7918. $EGREP "memchr" >/dev/null 2>&1; then :
  7919. else
  7920. ac_cv_header_stdc=no
  7921. fi
  7922. rm -f conftest*
  7923. fi
  7924. if test $ac_cv_header_stdc = yes; then
  7925. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7927. /* end confdefs.h. */
  7928. #include <stdlib.h>
  7929. _ACEOF
  7930. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7931. $EGREP "free" >/dev/null 2>&1; then :
  7932. else
  7933. ac_cv_header_stdc=no
  7934. fi
  7935. rm -f conftest*
  7936. fi
  7937. if test $ac_cv_header_stdc = yes; then
  7938. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7939. if test "$cross_compiling" = yes; then :
  7940. :
  7941. else
  7942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7943. /* end confdefs.h. */
  7944. #include <ctype.h>
  7945. #include <stdlib.h>
  7946. #if ((' ' & 0x0FF) == 0x020)
  7947. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7948. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7949. #else
  7950. # define ISLOWER(c) \
  7951. (('a' <= (c) && (c) <= 'i') \
  7952. || ('j' <= (c) && (c) <= 'r') \
  7953. || ('s' <= (c) && (c) <= 'z'))
  7954. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7955. #endif
  7956. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7957. int
  7958. main ()
  7959. {
  7960. int i;
  7961. for (i = 0; i < 256; i++)
  7962. if (XOR (islower (i), ISLOWER (i))
  7963. || toupper (i) != TOUPPER (i))
  7964. return 2;
  7965. return 0;
  7966. }
  7967. _ACEOF
  7968. if ac_fn_c_try_run "$LINENO"; then :
  7969. else
  7970. ac_cv_header_stdc=no
  7971. fi
  7972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7974. fi
  7975. fi
  7976. fi
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7978. $as_echo "$ac_cv_header_stdc" >&6; }
  7979. if test $ac_cv_header_stdc = yes; then
  7980. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7981. fi
  7982. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7983. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7984. inttypes.h stdint.h unistd.h
  7985. do :
  7986. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7987. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7988. "
  7989. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7990. cat >>confdefs.h <<_ACEOF
  7991. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7992. _ACEOF
  7993. fi
  7994. done
  7995. for ac_header in dlfcn.h
  7996. do :
  7997. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7998. "
  7999. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8000. cat >>confdefs.h <<_ACEOF
  8001. #define HAVE_DLFCN_H 1
  8002. _ACEOF
  8003. fi
  8004. done
  8005. # Set options
  8006. enable_dlopen=no
  8007. enable_win32_dll=no
  8008. # Check whether --enable-shared was given.
  8009. if test "${enable_shared+set}" = set; then :
  8010. enableval=$enable_shared; p=${PACKAGE-default}
  8011. case $enableval in
  8012. yes) enable_shared=yes ;;
  8013. no) enable_shared=no ;;
  8014. *)
  8015. enable_shared=no
  8016. # Look at the argument we got. We use all the common list separators.
  8017. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8018. for pkg in $enableval; do
  8019. IFS=$lt_save_ifs
  8020. if test "X$pkg" = "X$p"; then
  8021. enable_shared=yes
  8022. fi
  8023. done
  8024. IFS=$lt_save_ifs
  8025. ;;
  8026. esac
  8027. else
  8028. enable_shared=yes
  8029. fi
  8030. # Check whether --with-pic was given.
  8031. if test "${with_pic+set}" = set; then :
  8032. withval=$with_pic; lt_p=${PACKAGE-default}
  8033. case $withval in
  8034. yes|no) pic_mode=$withval ;;
  8035. *)
  8036. pic_mode=default
  8037. # Look at the argument we got. We use all the common list separators.
  8038. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8039. for lt_pkg in $withval; do
  8040. IFS=$lt_save_ifs
  8041. if test "X$lt_pkg" = "X$lt_p"; then
  8042. pic_mode=yes
  8043. fi
  8044. done
  8045. IFS=$lt_save_ifs
  8046. ;;
  8047. esac
  8048. else
  8049. pic_mode=default
  8050. fi
  8051. # Check whether --enable-fast-install was given.
  8052. if test "${enable_fast_install+set}" = set; then :
  8053. enableval=$enable_fast_install; p=${PACKAGE-default}
  8054. case $enableval in
  8055. yes) enable_fast_install=yes ;;
  8056. no) enable_fast_install=no ;;
  8057. *)
  8058. enable_fast_install=no
  8059. # Look at the argument we got. We use all the common list separators.
  8060. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8061. for pkg in $enableval; do
  8062. IFS=$lt_save_ifs
  8063. if test "X$pkg" = "X$p"; then
  8064. enable_fast_install=yes
  8065. fi
  8066. done
  8067. IFS=$lt_save_ifs
  8068. ;;
  8069. esac
  8070. else
  8071. enable_fast_install=yes
  8072. fi
  8073. shared_archive_member_spec=
  8074. case $host,$enable_shared in
  8075. power*-*-aix[5-9]*,yes)
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8077. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8078. # Check whether --with-aix-soname was given.
  8079. if test "${with_aix_soname+set}" = set; then :
  8080. withval=$with_aix_soname; case $withval in
  8081. aix|svr4|both)
  8082. ;;
  8083. *)
  8084. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8085. ;;
  8086. esac
  8087. lt_cv_with_aix_soname=$with_aix_soname
  8088. else
  8089. if ${lt_cv_with_aix_soname+:} false; then :
  8090. $as_echo_n "(cached) " >&6
  8091. else
  8092. lt_cv_with_aix_soname=aix
  8093. fi
  8094. with_aix_soname=$lt_cv_with_aix_soname
  8095. fi
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8097. $as_echo "$with_aix_soname" >&6; }
  8098. if test aix != "$with_aix_soname"; then
  8099. # For the AIX way of multilib, we name the shared archive member
  8100. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8101. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8102. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8103. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8104. if test 64 = "${OBJECT_MODE-32}"; then
  8105. shared_archive_member_spec=shr_64
  8106. else
  8107. shared_archive_member_spec=shr
  8108. fi
  8109. fi
  8110. ;;
  8111. *)
  8112. with_aix_soname=aix
  8113. ;;
  8114. esac
  8115. # This can be used to rebuild libtool when needed
  8116. LIBTOOL_DEPS=$ltmain
  8117. # Always use our own libtool.
  8118. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8119. test -z "$LN_S" && LN_S="ln -s"
  8120. if test -n "${ZSH_VERSION+set}"; then
  8121. setopt NO_GLOB_SUBST
  8122. fi
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8124. $as_echo_n "checking for objdir... " >&6; }
  8125. if ${lt_cv_objdir+:} false; then :
  8126. $as_echo_n "(cached) " >&6
  8127. else
  8128. rm -f .libs 2>/dev/null
  8129. mkdir .libs 2>/dev/null
  8130. if test -d .libs; then
  8131. lt_cv_objdir=.libs
  8132. else
  8133. # MS-DOS does not allow filenames that begin with a dot.
  8134. lt_cv_objdir=_libs
  8135. fi
  8136. rmdir .libs 2>/dev/null
  8137. fi
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8139. $as_echo "$lt_cv_objdir" >&6; }
  8140. objdir=$lt_cv_objdir
  8141. cat >>confdefs.h <<_ACEOF
  8142. #define LT_OBJDIR "$lt_cv_objdir/"
  8143. _ACEOF
  8144. case $host_os in
  8145. aix3*)
  8146. # AIX sometimes has problems with the GCC collect2 program. For some
  8147. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8148. # vanish in a puff of smoke.
  8149. if test set != "${COLLECT_NAMES+set}"; then
  8150. COLLECT_NAMES=
  8151. export COLLECT_NAMES
  8152. fi
  8153. ;;
  8154. esac
  8155. # Global variables:
  8156. ofile=libtool
  8157. can_build_shared=yes
  8158. # All known linkers require a '.a' archive for static linking (except MSVC,
  8159. # which needs '.lib').
  8160. libext=a
  8161. with_gnu_ld=$lt_cv_prog_gnu_ld
  8162. old_CC=$CC
  8163. old_CFLAGS=$CFLAGS
  8164. # Set sane defaults for various variables
  8165. test -z "$CC" && CC=cc
  8166. test -z "$LTCC" && LTCC=$CC
  8167. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8168. test -z "$LD" && LD=ld
  8169. test -z "$ac_objext" && ac_objext=o
  8170. func_cc_basename $compiler
  8171. cc_basename=$func_cc_basename_result
  8172. # Only perform the check for file, if the check method requires it
  8173. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8174. case $deplibs_check_method in
  8175. file_magic*)
  8176. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8178. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8179. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8180. $as_echo_n "(cached) " >&6
  8181. else
  8182. case $MAGIC_CMD in
  8183. [\\/*] | ?:[\\/]*)
  8184. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8185. ;;
  8186. *)
  8187. lt_save_MAGIC_CMD=$MAGIC_CMD
  8188. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8189. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8190. for ac_dir in $ac_dummy; do
  8191. IFS=$lt_save_ifs
  8192. test -z "$ac_dir" && ac_dir=.
  8193. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8194. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8195. if test -n "$file_magic_test_file"; then
  8196. case $deplibs_check_method in
  8197. "file_magic "*)
  8198. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8199. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8200. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8201. $EGREP "$file_magic_regex" > /dev/null; then
  8202. :
  8203. else
  8204. cat <<_LT_EOF 1>&2
  8205. *** Warning: the command libtool uses to detect shared libraries,
  8206. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8207. *** The result is that libtool may fail to recognize shared libraries
  8208. *** as such. This will affect the creation of libtool libraries that
  8209. *** depend on shared libraries, but programs linked with such libtool
  8210. *** libraries will work regardless of this problem. Nevertheless, you
  8211. *** may want to report the problem to your system manager and/or to
  8212. *** bug-libtool@gnu.org
  8213. _LT_EOF
  8214. fi ;;
  8215. esac
  8216. fi
  8217. break
  8218. fi
  8219. done
  8220. IFS=$lt_save_ifs
  8221. MAGIC_CMD=$lt_save_MAGIC_CMD
  8222. ;;
  8223. esac
  8224. fi
  8225. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8226. if test -n "$MAGIC_CMD"; then
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8228. $as_echo "$MAGIC_CMD" >&6; }
  8229. else
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8231. $as_echo "no" >&6; }
  8232. fi
  8233. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8234. if test -n "$ac_tool_prefix"; then
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8236. $as_echo_n "checking for file... " >&6; }
  8237. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. case $MAGIC_CMD in
  8241. [\\/*] | ?:[\\/]*)
  8242. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8243. ;;
  8244. *)
  8245. lt_save_MAGIC_CMD=$MAGIC_CMD
  8246. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8247. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8248. for ac_dir in $ac_dummy; do
  8249. IFS=$lt_save_ifs
  8250. test -z "$ac_dir" && ac_dir=.
  8251. if test -f "$ac_dir/file"; then
  8252. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8253. if test -n "$file_magic_test_file"; then
  8254. case $deplibs_check_method in
  8255. "file_magic "*)
  8256. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8257. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8258. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8259. $EGREP "$file_magic_regex" > /dev/null; then
  8260. :
  8261. else
  8262. cat <<_LT_EOF 1>&2
  8263. *** Warning: the command libtool uses to detect shared libraries,
  8264. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8265. *** The result is that libtool may fail to recognize shared libraries
  8266. *** as such. This will affect the creation of libtool libraries that
  8267. *** depend on shared libraries, but programs linked with such libtool
  8268. *** libraries will work regardless of this problem. Nevertheless, you
  8269. *** may want to report the problem to your system manager and/or to
  8270. *** bug-libtool@gnu.org
  8271. _LT_EOF
  8272. fi ;;
  8273. esac
  8274. fi
  8275. break
  8276. fi
  8277. done
  8278. IFS=$lt_save_ifs
  8279. MAGIC_CMD=$lt_save_MAGIC_CMD
  8280. ;;
  8281. esac
  8282. fi
  8283. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8284. if test -n "$MAGIC_CMD"; then
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8286. $as_echo "$MAGIC_CMD" >&6; }
  8287. else
  8288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8289. $as_echo "no" >&6; }
  8290. fi
  8291. else
  8292. MAGIC_CMD=:
  8293. fi
  8294. fi
  8295. fi
  8296. ;;
  8297. esac
  8298. # Use C for the default configuration in the libtool script
  8299. lt_save_CC=$CC
  8300. ac_ext=c
  8301. ac_cpp='$CPP $CPPFLAGS'
  8302. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8303. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8304. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8305. # Source file extension for C test sources.
  8306. ac_ext=c
  8307. # Object file extension for compiled C test sources.
  8308. objext=o
  8309. objext=$objext
  8310. # Code to be used in simple compile tests
  8311. lt_simple_compile_test_code="int some_variable = 0;"
  8312. # Code to be used in simple link tests
  8313. lt_simple_link_test_code='int main(){return(0);}'
  8314. # If no C compiler was specified, use CC.
  8315. LTCC=${LTCC-"$CC"}
  8316. # If no C compiler flags were specified, use CFLAGS.
  8317. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8318. # Allow CC to be a program name with arguments.
  8319. compiler=$CC
  8320. # Save the default compiler, since it gets overwritten when the other
  8321. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8322. compiler_DEFAULT=$CC
  8323. # save warnings/boilerplate of simple test code
  8324. ac_outfile=conftest.$ac_objext
  8325. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8326. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8327. _lt_compiler_boilerplate=`cat conftest.err`
  8328. $RM conftest*
  8329. ac_outfile=conftest.$ac_objext
  8330. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8331. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8332. _lt_linker_boilerplate=`cat conftest.err`
  8333. $RM -r conftest*
  8334. if test -n "$compiler"; then
  8335. lt_prog_compiler_no_builtin_flag=
  8336. if test yes = "$GCC"; then
  8337. case $cc_basename in
  8338. nvcc*)
  8339. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8340. *)
  8341. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8342. esac
  8343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8344. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8345. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8346. $as_echo_n "(cached) " >&6
  8347. else
  8348. lt_cv_prog_compiler_rtti_exceptions=no
  8349. ac_outfile=conftest.$ac_objext
  8350. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8351. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8352. # Insert the option either (1) after the last *FLAGS variable, or
  8353. # (2) before a word containing "conftest.", or (3) at the end.
  8354. # Note that $ac_compile itself does not contain backslashes and begins
  8355. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8356. # The option is referenced via a variable to avoid confusing sed.
  8357. lt_compile=`echo "$ac_compile" | $SED \
  8358. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8359. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8360. -e 's:$: $lt_compiler_flag:'`
  8361. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8362. (eval "$lt_compile" 2>conftest.err)
  8363. ac_status=$?
  8364. cat conftest.err >&5
  8365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. if (exit $ac_status) && test -s "$ac_outfile"; then
  8367. # The compiler can only warn and ignore the option if not recognized
  8368. # So say no if there are warnings other than the usual output.
  8369. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8370. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8371. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8372. lt_cv_prog_compiler_rtti_exceptions=yes
  8373. fi
  8374. fi
  8375. $RM conftest*
  8376. fi
  8377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8378. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8379. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8380. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8381. else
  8382. :
  8383. fi
  8384. fi
  8385. lt_prog_compiler_wl=
  8386. lt_prog_compiler_pic=
  8387. lt_prog_compiler_static=
  8388. if test yes = "$GCC"; then
  8389. lt_prog_compiler_wl='-Wl,'
  8390. lt_prog_compiler_static='-static'
  8391. case $host_os in
  8392. aix*)
  8393. # All AIX code is PIC.
  8394. if test ia64 = "$host_cpu"; then
  8395. # AIX 5 now supports IA64 processor
  8396. lt_prog_compiler_static='-Bstatic'
  8397. fi
  8398. lt_prog_compiler_pic='-fPIC'
  8399. ;;
  8400. amigaos*)
  8401. case $host_cpu in
  8402. powerpc)
  8403. # see comment about AmigaOS4 .so support
  8404. lt_prog_compiler_pic='-fPIC'
  8405. ;;
  8406. m68k)
  8407. # FIXME: we need at least 68020 code to build shared libraries, but
  8408. # adding the '-m68020' flag to GCC prevents building anything better,
  8409. # like '-m68040'.
  8410. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8411. ;;
  8412. esac
  8413. ;;
  8414. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8415. # PIC is the default for these OSes.
  8416. ;;
  8417. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8418. # This hack is so that the source file can tell whether it is being
  8419. # built for inclusion in a dll (and should export symbols for example).
  8420. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8421. # (--disable-auto-import) libraries
  8422. lt_prog_compiler_pic='-DDLL_EXPORT'
  8423. case $host_os in
  8424. os2*)
  8425. lt_prog_compiler_static='$wl-static'
  8426. ;;
  8427. esac
  8428. ;;
  8429. darwin* | rhapsody*)
  8430. # PIC is the default on this platform
  8431. # Common symbols not allowed in MH_DYLIB files
  8432. lt_prog_compiler_pic='-fno-common'
  8433. ;;
  8434. haiku*)
  8435. # PIC is the default for Haiku.
  8436. # The "-static" flag exists, but is broken.
  8437. lt_prog_compiler_static=
  8438. ;;
  8439. hpux*)
  8440. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8441. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8442. # sets the default TLS model and affects inlining.
  8443. case $host_cpu in
  8444. hppa*64*)
  8445. # +Z the default
  8446. ;;
  8447. *)
  8448. lt_prog_compiler_pic='-fPIC'
  8449. ;;
  8450. esac
  8451. ;;
  8452. interix[3-9]*)
  8453. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8454. # Instead, we relocate shared libraries at runtime.
  8455. ;;
  8456. msdosdjgpp*)
  8457. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8458. # on systems that don't support them.
  8459. lt_prog_compiler_can_build_shared=no
  8460. enable_shared=no
  8461. ;;
  8462. *nto* | *qnx*)
  8463. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8464. # it will coredump.
  8465. lt_prog_compiler_pic='-fPIC -shared'
  8466. ;;
  8467. sysv4*MP*)
  8468. if test -d /usr/nec; then
  8469. lt_prog_compiler_pic=-Kconform_pic
  8470. fi
  8471. ;;
  8472. *)
  8473. lt_prog_compiler_pic='-fPIC'
  8474. ;;
  8475. esac
  8476. case $cc_basename in
  8477. nvcc*) # Cuda Compiler Driver 2.2
  8478. lt_prog_compiler_wl='-Xlinker '
  8479. if test -n "$lt_prog_compiler_pic"; then
  8480. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8481. fi
  8482. ;;
  8483. esac
  8484. else
  8485. # PORTME Check for flag to pass linker flags through the system compiler.
  8486. case $host_os in
  8487. aix*)
  8488. lt_prog_compiler_wl='-Wl,'
  8489. if test ia64 = "$host_cpu"; then
  8490. # AIX 5 now supports IA64 processor
  8491. lt_prog_compiler_static='-Bstatic'
  8492. else
  8493. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8494. fi
  8495. ;;
  8496. darwin* | rhapsody*)
  8497. # PIC is the default on this platform
  8498. # Common symbols not allowed in MH_DYLIB files
  8499. lt_prog_compiler_pic='-fno-common'
  8500. case $cc_basename in
  8501. nagfor*)
  8502. # NAG Fortran compiler
  8503. lt_prog_compiler_wl='-Wl,-Wl,,'
  8504. lt_prog_compiler_pic='-PIC'
  8505. lt_prog_compiler_static='-Bstatic'
  8506. ;;
  8507. esac
  8508. ;;
  8509. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8510. # This hack is so that the source file can tell whether it is being
  8511. # built for inclusion in a dll (and should export symbols for example).
  8512. lt_prog_compiler_pic='-DDLL_EXPORT'
  8513. case $host_os in
  8514. os2*)
  8515. lt_prog_compiler_static='$wl-static'
  8516. ;;
  8517. esac
  8518. ;;
  8519. hpux9* | hpux10* | hpux11*)
  8520. lt_prog_compiler_wl='-Wl,'
  8521. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8522. # not for PA HP-UX.
  8523. case $host_cpu in
  8524. hppa*64*|ia64*)
  8525. # +Z the default
  8526. ;;
  8527. *)
  8528. lt_prog_compiler_pic='+Z'
  8529. ;;
  8530. esac
  8531. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8532. lt_prog_compiler_static='$wl-a ${wl}archive'
  8533. ;;
  8534. irix5* | irix6* | nonstopux*)
  8535. lt_prog_compiler_wl='-Wl,'
  8536. # PIC (with -KPIC) is the default.
  8537. lt_prog_compiler_static='-non_shared'
  8538. ;;
  8539. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8540. case $cc_basename in
  8541. # old Intel for x86_64, which still supported -KPIC.
  8542. ecc*)
  8543. lt_prog_compiler_wl='-Wl,'
  8544. lt_prog_compiler_pic='-KPIC'
  8545. lt_prog_compiler_static='-static'
  8546. ;;
  8547. # flang / f18. f95 an alias for gfortran or flang on Debian
  8548. flang* | f18* | f95*)
  8549. lt_prog_compiler_wl='-Wl,'
  8550. lt_prog_compiler_pic='-fPIC'
  8551. lt_prog_compiler_static='-static'
  8552. ;;
  8553. # icc used to be incompatible with GCC.
  8554. # ICC 10 doesn't accept -KPIC any more.
  8555. icc* | ifort*)
  8556. lt_prog_compiler_wl='-Wl,'
  8557. lt_prog_compiler_pic='-fPIC'
  8558. lt_prog_compiler_static='-static'
  8559. ;;
  8560. # Lahey Fortran 8.1.
  8561. lf95*)
  8562. lt_prog_compiler_wl='-Wl,'
  8563. lt_prog_compiler_pic='--shared'
  8564. lt_prog_compiler_static='--static'
  8565. ;;
  8566. nagfor*)
  8567. # NAG Fortran compiler
  8568. lt_prog_compiler_wl='-Wl,-Wl,,'
  8569. lt_prog_compiler_pic='-PIC'
  8570. lt_prog_compiler_static='-Bstatic'
  8571. ;;
  8572. tcc*)
  8573. # Fabrice Bellard et al's Tiny C Compiler
  8574. lt_prog_compiler_wl='-Wl,'
  8575. lt_prog_compiler_pic='-fPIC'
  8576. lt_prog_compiler_static='-static'
  8577. ;;
  8578. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8579. # Portland Group compilers (*not* the Pentium gcc compiler,
  8580. # which looks to be a dead project)
  8581. lt_prog_compiler_wl='-Wl,'
  8582. lt_prog_compiler_pic='-fpic'
  8583. lt_prog_compiler_static='-Bstatic'
  8584. ;;
  8585. ccc*)
  8586. lt_prog_compiler_wl='-Wl,'
  8587. # All Alpha code is PIC.
  8588. lt_prog_compiler_static='-non_shared'
  8589. ;;
  8590. xl* | bgxl* | bgf* | mpixl*)
  8591. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8592. lt_prog_compiler_wl='-Wl,'
  8593. lt_prog_compiler_pic='-qpic'
  8594. lt_prog_compiler_static='-qstaticlink'
  8595. ;;
  8596. *)
  8597. case `$CC -V 2>&1 | sed 5q` in
  8598. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8599. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8600. lt_prog_compiler_pic='-KPIC'
  8601. lt_prog_compiler_static='-Bstatic'
  8602. lt_prog_compiler_wl=''
  8603. ;;
  8604. *Sun\ F* | *Sun*Fortran*)
  8605. lt_prog_compiler_pic='-KPIC'
  8606. lt_prog_compiler_static='-Bstatic'
  8607. lt_prog_compiler_wl='-Qoption ld '
  8608. ;;
  8609. *Sun\ C*)
  8610. # Sun C 5.9
  8611. lt_prog_compiler_pic='-KPIC'
  8612. lt_prog_compiler_static='-Bstatic'
  8613. lt_prog_compiler_wl='-Wl,'
  8614. ;;
  8615. *Intel*\ [CF]*Compiler*)
  8616. lt_prog_compiler_wl='-Wl,'
  8617. lt_prog_compiler_pic='-fPIC'
  8618. lt_prog_compiler_static='-static'
  8619. ;;
  8620. *Portland\ Group*)
  8621. lt_prog_compiler_wl='-Wl,'
  8622. lt_prog_compiler_pic='-fpic'
  8623. lt_prog_compiler_static='-Bstatic'
  8624. ;;
  8625. esac
  8626. ;;
  8627. esac
  8628. ;;
  8629. newsos6)
  8630. lt_prog_compiler_pic='-KPIC'
  8631. lt_prog_compiler_static='-Bstatic'
  8632. ;;
  8633. *nto* | *qnx*)
  8634. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8635. # it will coredump.
  8636. lt_prog_compiler_pic='-fPIC -shared'
  8637. ;;
  8638. osf3* | osf4* | osf5*)
  8639. lt_prog_compiler_wl='-Wl,'
  8640. # All OSF/1 code is PIC.
  8641. lt_prog_compiler_static='-non_shared'
  8642. ;;
  8643. rdos*)
  8644. lt_prog_compiler_static='-non_shared'
  8645. ;;
  8646. solaris*)
  8647. lt_prog_compiler_pic='-KPIC'
  8648. lt_prog_compiler_static='-Bstatic'
  8649. case $cc_basename in
  8650. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8651. lt_prog_compiler_wl='-Qoption ld ';;
  8652. *)
  8653. lt_prog_compiler_wl='-Wl,';;
  8654. esac
  8655. ;;
  8656. sunos4*)
  8657. lt_prog_compiler_wl='-Qoption ld '
  8658. lt_prog_compiler_pic='-PIC'
  8659. lt_prog_compiler_static='-Bstatic'
  8660. ;;
  8661. sysv4 | sysv4.2uw2* | sysv4.3*)
  8662. lt_prog_compiler_wl='-Wl,'
  8663. lt_prog_compiler_pic='-KPIC'
  8664. lt_prog_compiler_static='-Bstatic'
  8665. ;;
  8666. sysv4*MP*)
  8667. if test -d /usr/nec; then
  8668. lt_prog_compiler_pic='-Kconform_pic'
  8669. lt_prog_compiler_static='-Bstatic'
  8670. fi
  8671. ;;
  8672. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8673. lt_prog_compiler_wl='-Wl,'
  8674. lt_prog_compiler_pic='-KPIC'
  8675. lt_prog_compiler_static='-Bstatic'
  8676. ;;
  8677. unicos*)
  8678. lt_prog_compiler_wl='-Wl,'
  8679. lt_prog_compiler_can_build_shared=no
  8680. ;;
  8681. uts4*)
  8682. lt_prog_compiler_pic='-pic'
  8683. lt_prog_compiler_static='-Bstatic'
  8684. ;;
  8685. *)
  8686. lt_prog_compiler_can_build_shared=no
  8687. ;;
  8688. esac
  8689. fi
  8690. case $host_os in
  8691. # For platforms that do not support PIC, -DPIC is meaningless:
  8692. *djgpp*)
  8693. lt_prog_compiler_pic=
  8694. ;;
  8695. *)
  8696. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8697. ;;
  8698. esac
  8699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8700. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8701. if ${lt_cv_prog_compiler_pic+:} false; then :
  8702. $as_echo_n "(cached) " >&6
  8703. else
  8704. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8705. fi
  8706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8707. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8708. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8709. #
  8710. # Check to make sure the PIC flag actually works.
  8711. #
  8712. if test -n "$lt_prog_compiler_pic"; then
  8713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8714. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8715. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8716. $as_echo_n "(cached) " >&6
  8717. else
  8718. lt_cv_prog_compiler_pic_works=no
  8719. ac_outfile=conftest.$ac_objext
  8720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8721. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8722. # Insert the option either (1) after the last *FLAGS variable, or
  8723. # (2) before a word containing "conftest.", or (3) at the end.
  8724. # Note that $ac_compile itself does not contain backslashes and begins
  8725. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8726. # The option is referenced via a variable to avoid confusing sed.
  8727. lt_compile=`echo "$ac_compile" | $SED \
  8728. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8729. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8730. -e 's:$: $lt_compiler_flag:'`
  8731. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8732. (eval "$lt_compile" 2>conftest.err)
  8733. ac_status=$?
  8734. cat conftest.err >&5
  8735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8736. if (exit $ac_status) && test -s "$ac_outfile"; then
  8737. # The compiler can only warn and ignore the option if not recognized
  8738. # So say no if there are warnings other than the usual output.
  8739. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8740. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8741. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8742. lt_cv_prog_compiler_pic_works=yes
  8743. fi
  8744. fi
  8745. $RM conftest*
  8746. fi
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8748. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8749. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8750. case $lt_prog_compiler_pic in
  8751. "" | " "*) ;;
  8752. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8753. esac
  8754. else
  8755. lt_prog_compiler_pic=
  8756. lt_prog_compiler_can_build_shared=no
  8757. fi
  8758. fi
  8759. #
  8760. # Check to make sure the static flag actually works.
  8761. #
  8762. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8764. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8765. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8766. $as_echo_n "(cached) " >&6
  8767. else
  8768. lt_cv_prog_compiler_static_works=no
  8769. save_LDFLAGS=$LDFLAGS
  8770. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8771. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8772. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8773. # The linker can only warn and ignore the option if not recognized
  8774. # So say no if there are warnings
  8775. if test -s conftest.err; then
  8776. # Append any errors to the config.log.
  8777. cat conftest.err 1>&5
  8778. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8779. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8780. if diff conftest.exp conftest.er2 >/dev/null; then
  8781. lt_cv_prog_compiler_static_works=yes
  8782. fi
  8783. else
  8784. lt_cv_prog_compiler_static_works=yes
  8785. fi
  8786. fi
  8787. $RM -r conftest*
  8788. LDFLAGS=$save_LDFLAGS
  8789. fi
  8790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8791. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8792. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8793. :
  8794. else
  8795. lt_prog_compiler_static=
  8796. fi
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8798. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8799. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8800. $as_echo_n "(cached) " >&6
  8801. else
  8802. lt_cv_prog_compiler_c_o=no
  8803. $RM -r conftest 2>/dev/null
  8804. mkdir conftest
  8805. cd conftest
  8806. mkdir out
  8807. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8808. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8809. # Insert the option either (1) after the last *FLAGS variable, or
  8810. # (2) before a word containing "conftest.", or (3) at the end.
  8811. # Note that $ac_compile itself does not contain backslashes and begins
  8812. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8813. lt_compile=`echo "$ac_compile" | $SED \
  8814. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8815. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8816. -e 's:$: $lt_compiler_flag:'`
  8817. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8818. (eval "$lt_compile" 2>out/conftest.err)
  8819. ac_status=$?
  8820. cat out/conftest.err >&5
  8821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8822. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8823. then
  8824. # The compiler can only warn and ignore the option if not recognized
  8825. # So say no if there are warnings
  8826. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8827. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8828. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8829. lt_cv_prog_compiler_c_o=yes
  8830. fi
  8831. fi
  8832. chmod u+w . 2>&5
  8833. $RM conftest*
  8834. # SGI C++ compiler will create directory out/ii_files/ for
  8835. # template instantiation
  8836. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8837. $RM out/* && rmdir out
  8838. cd ..
  8839. $RM -r conftest
  8840. $RM conftest*
  8841. fi
  8842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8843. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8845. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8846. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8847. $as_echo_n "(cached) " >&6
  8848. else
  8849. lt_cv_prog_compiler_c_o=no
  8850. $RM -r conftest 2>/dev/null
  8851. mkdir conftest
  8852. cd conftest
  8853. mkdir out
  8854. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8855. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8856. # Insert the option either (1) after the last *FLAGS variable, or
  8857. # (2) before a word containing "conftest.", or (3) at the end.
  8858. # Note that $ac_compile itself does not contain backslashes and begins
  8859. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8860. lt_compile=`echo "$ac_compile" | $SED \
  8861. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8862. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8863. -e 's:$: $lt_compiler_flag:'`
  8864. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8865. (eval "$lt_compile" 2>out/conftest.err)
  8866. ac_status=$?
  8867. cat out/conftest.err >&5
  8868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8869. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8870. then
  8871. # The compiler can only warn and ignore the option if not recognized
  8872. # So say no if there are warnings
  8873. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8874. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8875. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8876. lt_cv_prog_compiler_c_o=yes
  8877. fi
  8878. fi
  8879. chmod u+w . 2>&5
  8880. $RM conftest*
  8881. # SGI C++ compiler will create directory out/ii_files/ for
  8882. # template instantiation
  8883. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8884. $RM out/* && rmdir out
  8885. cd ..
  8886. $RM -r conftest
  8887. $RM conftest*
  8888. fi
  8889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8890. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8891. hard_links=nottested
  8892. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8893. # do not overwrite the value of need_locks provided by the user
  8894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8895. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8896. hard_links=yes
  8897. $RM conftest*
  8898. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8899. touch conftest.a
  8900. ln conftest.a conftest.b 2>&5 || hard_links=no
  8901. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8903. $as_echo "$hard_links" >&6; }
  8904. if test no = "$hard_links"; then
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8906. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8907. need_locks=warn
  8908. fi
  8909. else
  8910. need_locks=no
  8911. fi
  8912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8913. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8914. runpath_var=
  8915. allow_undefined_flag=
  8916. always_export_symbols=no
  8917. archive_cmds=
  8918. archive_expsym_cmds=
  8919. compiler_needs_object=no
  8920. enable_shared_with_static_runtimes=no
  8921. export_dynamic_flag_spec=
  8922. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8923. hardcode_automatic=no
  8924. hardcode_direct=no
  8925. hardcode_direct_absolute=no
  8926. hardcode_libdir_flag_spec=
  8927. hardcode_libdir_separator=
  8928. hardcode_minus_L=no
  8929. hardcode_shlibpath_var=unsupported
  8930. inherit_rpath=no
  8931. link_all_deplibs=unknown
  8932. module_cmds=
  8933. module_expsym_cmds=
  8934. old_archive_from_new_cmds=
  8935. old_archive_from_expsyms_cmds=
  8936. thread_safe_flag_spec=
  8937. whole_archive_flag_spec=
  8938. # include_expsyms should be a list of space-separated symbols to be *always*
  8939. # included in the symbol list
  8940. include_expsyms=
  8941. # exclude_expsyms can be an extended regexp of symbols to exclude
  8942. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8943. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8944. # as well as any symbol that contains 'd'.
  8945. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8946. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8947. # platforms (ab)use it in PIC code, but their linkers get confused if
  8948. # the symbol is explicitly referenced. Since portable code cannot
  8949. # rely on this symbol name, it's probably fine to never include it in
  8950. # preloaded symbol tables.
  8951. # Exclude shared library initialization/finalization symbols.
  8952. extract_expsyms_cmds=
  8953. case $host_os in
  8954. cygwin* | mingw* | pw32* | cegcc*)
  8955. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8956. # When not using gcc, we currently assume that we are using
  8957. # Microsoft Visual C++.
  8958. if test yes != "$GCC"; then
  8959. with_gnu_ld=no
  8960. fi
  8961. ;;
  8962. interix*)
  8963. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8964. with_gnu_ld=yes
  8965. ;;
  8966. openbsd* | bitrig*)
  8967. with_gnu_ld=no
  8968. ;;
  8969. linux* | k*bsd*-gnu | gnu*)
  8970. link_all_deplibs=no
  8971. ;;
  8972. esac
  8973. ld_shlibs=yes
  8974. # On some targets, GNU ld is compatible enough with the native linker
  8975. # that we're better off using the native interface for both.
  8976. lt_use_gnu_ld_interface=no
  8977. if test yes = "$with_gnu_ld"; then
  8978. case $host_os in
  8979. aix*)
  8980. # The AIX port of GNU ld has always aspired to compatibility
  8981. # with the native linker. However, as the warning in the GNU ld
  8982. # block says, versions before 2.19.5* couldn't really create working
  8983. # shared libraries, regardless of the interface used.
  8984. case `$LD -v 2>&1` in
  8985. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8986. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8987. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8988. *)
  8989. lt_use_gnu_ld_interface=yes
  8990. ;;
  8991. esac
  8992. ;;
  8993. *)
  8994. lt_use_gnu_ld_interface=yes
  8995. ;;
  8996. esac
  8997. fi
  8998. if test yes = "$lt_use_gnu_ld_interface"; then
  8999. # If archive_cmds runs LD, not CC, wlarc should be empty
  9000. wlarc='$wl'
  9001. # Set some defaults for GNU ld with shared library support. These
  9002. # are reset later if shared libraries are not supported. Putting them
  9003. # here allows them to be overridden if necessary.
  9004. runpath_var=LD_RUN_PATH
  9005. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9006. export_dynamic_flag_spec='$wl--export-dynamic'
  9007. # ancient GNU ld didn't support --whole-archive et. al.
  9008. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9009. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9010. else
  9011. whole_archive_flag_spec=
  9012. fi
  9013. supports_anon_versioning=no
  9014. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9015. *GNU\ gold*) supports_anon_versioning=yes ;;
  9016. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9017. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9018. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9019. *\ 2.11.*) ;; # other 2.11 versions
  9020. *) supports_anon_versioning=yes ;;
  9021. esac
  9022. # See if GNU ld supports shared libraries.
  9023. case $host_os in
  9024. aix[3-9]*)
  9025. # On AIX/PPC, the GNU linker is very broken
  9026. if test ia64 != "$host_cpu"; then
  9027. ld_shlibs=no
  9028. cat <<_LT_EOF 1>&2
  9029. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9030. *** to be unable to reliably create shared libraries on AIX.
  9031. *** Therefore, libtool is disabling shared libraries support. If you
  9032. *** really care for shared libraries, you may want to install binutils
  9033. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9034. *** You will then need to restart the configuration process.
  9035. _LT_EOF
  9036. fi
  9037. ;;
  9038. amigaos*)
  9039. case $host_cpu in
  9040. powerpc)
  9041. # see comment about AmigaOS4 .so support
  9042. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9043. archive_expsym_cmds=''
  9044. ;;
  9045. m68k)
  9046. 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)'
  9047. hardcode_libdir_flag_spec='-L$libdir'
  9048. hardcode_minus_L=yes
  9049. ;;
  9050. esac
  9051. ;;
  9052. beos*)
  9053. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9054. allow_undefined_flag=unsupported
  9055. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9056. # support --undefined. This deserves some investigation. FIXME
  9057. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9058. else
  9059. ld_shlibs=no
  9060. fi
  9061. ;;
  9062. cygwin* | mingw* | pw32* | cegcc*)
  9063. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9064. # as there is no search path for DLLs.
  9065. hardcode_libdir_flag_spec='-L$libdir'
  9066. export_dynamic_flag_spec='$wl--export-all-symbols'
  9067. allow_undefined_flag=unsupported
  9068. always_export_symbols=no
  9069. enable_shared_with_static_runtimes=yes
  9070. 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'
  9071. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9072. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9073. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9074. # If the export-symbols file already is a .def file, use it as
  9075. # is; otherwise, prepend EXPORTS...
  9076. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9077. cp $export_symbols $output_objdir/$soname.def;
  9078. else
  9079. echo EXPORTS > $output_objdir/$soname.def;
  9080. cat $export_symbols >> $output_objdir/$soname.def;
  9081. fi~
  9082. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9083. else
  9084. ld_shlibs=no
  9085. fi
  9086. ;;
  9087. haiku*)
  9088. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9089. link_all_deplibs=yes
  9090. ;;
  9091. os2*)
  9092. hardcode_libdir_flag_spec='-L$libdir'
  9093. hardcode_minus_L=yes
  9094. allow_undefined_flag=unsupported
  9095. shrext_cmds=.dll
  9096. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9097. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9098. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9099. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9100. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9101. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9102. emximp -o $lib $output_objdir/$libname.def'
  9103. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9104. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9105. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9106. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9107. prefix_cmds="$SED"~
  9108. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9109. prefix_cmds="$prefix_cmds -e 1d";
  9110. fi~
  9111. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9112. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9113. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9114. emximp -o $lib $output_objdir/$libname.def'
  9115. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9116. enable_shared_with_static_runtimes=yes
  9117. ;;
  9118. interix[3-9]*)
  9119. hardcode_direct=no
  9120. hardcode_shlibpath_var=no
  9121. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9122. export_dynamic_flag_spec='$wl-E'
  9123. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9124. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9125. # default) and relocated if they conflict, which is a slow very memory
  9126. # consuming and fragmenting process. To avoid this, we pick a random,
  9127. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9128. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9129. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9130. 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'
  9131. ;;
  9132. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9133. tmp_diet=no
  9134. if test linux-dietlibc = "$host_os"; then
  9135. case $cc_basename in
  9136. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9137. esac
  9138. fi
  9139. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9140. && test no = "$tmp_diet"
  9141. then
  9142. tmp_addflag=' $pic_flag'
  9143. tmp_sharedflag='-shared'
  9144. case $cc_basename,$host_cpu in
  9145. pgcc*) # Portland Group C compiler
  9146. 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'
  9147. tmp_addflag=' $pic_flag'
  9148. ;;
  9149. pgf77* | pgf90* | pgf95* | pgfortran*)
  9150. # Portland Group f77 and f90 compilers
  9151. 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'
  9152. tmp_addflag=' $pic_flag -Mnomain' ;;
  9153. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9154. tmp_addflag=' -i_dynamic' ;;
  9155. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9156. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9157. ifc* | ifort*) # Intel Fortran compiler
  9158. tmp_addflag=' -nofor_main' ;;
  9159. lf95*) # Lahey Fortran 8.1
  9160. whole_archive_flag_spec=
  9161. tmp_sharedflag='--shared' ;;
  9162. nagfor*) # NAGFOR 5.3
  9163. tmp_sharedflag='-Wl,-shared' ;;
  9164. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9165. tmp_sharedflag='-qmkshrobj'
  9166. tmp_addflag= ;;
  9167. nvcc*) # Cuda Compiler Driver 2.2
  9168. 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'
  9169. compiler_needs_object=yes
  9170. ;;
  9171. esac
  9172. case `$CC -V 2>&1 | sed 5q` in
  9173. *Sun\ C*) # Sun C 5.9
  9174. 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'
  9175. compiler_needs_object=yes
  9176. tmp_sharedflag='-G' ;;
  9177. *Sun\ F*) # Sun Fortran 8.3
  9178. tmp_sharedflag='-G' ;;
  9179. esac
  9180. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9181. if test yes = "$supports_anon_versioning"; then
  9182. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9183. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9184. echo "local: *; };" >> $output_objdir/$libname.ver~
  9185. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9186. fi
  9187. case $cc_basename in
  9188. tcc*)
  9189. export_dynamic_flag_spec='-rdynamic'
  9190. ;;
  9191. xlf* | bgf* | bgxlf* | mpixlf*)
  9192. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9193. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9194. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9195. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9196. if test yes = "$supports_anon_versioning"; then
  9197. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9198. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9199. echo "local: *; };" >> $output_objdir/$libname.ver~
  9200. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9201. fi
  9202. ;;
  9203. esac
  9204. else
  9205. ld_shlibs=no
  9206. fi
  9207. ;;
  9208. netbsd* | netbsdelf*-gnu)
  9209. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9210. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9211. wlarc=
  9212. else
  9213. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9214. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9215. fi
  9216. ;;
  9217. solaris*)
  9218. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9219. ld_shlibs=no
  9220. cat <<_LT_EOF 1>&2
  9221. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9222. *** create shared libraries on Solaris systems. Therefore, libtool
  9223. *** is disabling shared libraries support. We urge you to upgrade GNU
  9224. *** binutils to release 2.9.1 or newer. Another option is to modify
  9225. *** your PATH or compiler configuration so that the native linker is
  9226. *** used, and then restart.
  9227. _LT_EOF
  9228. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9229. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9230. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9231. else
  9232. ld_shlibs=no
  9233. fi
  9234. ;;
  9235. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9236. case `$LD -v 2>&1` in
  9237. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9238. ld_shlibs=no
  9239. cat <<_LT_EOF 1>&2
  9240. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9241. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9242. *** is disabling shared libraries support. We urge you to upgrade GNU
  9243. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9244. *** your PATH or compiler configuration so that the native linker is
  9245. *** used, and then restart.
  9246. _LT_EOF
  9247. ;;
  9248. *)
  9249. # For security reasons, it is highly recommended that you always
  9250. # use absolute paths for naming shared libraries, and exclude the
  9251. # DT_RUNPATH tag from executables and libraries. But doing so
  9252. # requires that you compile everything twice, which is a pain.
  9253. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9254. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9255. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9256. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9257. else
  9258. ld_shlibs=no
  9259. fi
  9260. ;;
  9261. esac
  9262. ;;
  9263. sunos4*)
  9264. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9265. wlarc=
  9266. hardcode_direct=yes
  9267. hardcode_shlibpath_var=no
  9268. ;;
  9269. *)
  9270. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9271. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9272. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9273. else
  9274. ld_shlibs=no
  9275. fi
  9276. ;;
  9277. esac
  9278. if test no = "$ld_shlibs"; then
  9279. runpath_var=
  9280. hardcode_libdir_flag_spec=
  9281. export_dynamic_flag_spec=
  9282. whole_archive_flag_spec=
  9283. fi
  9284. else
  9285. # PORTME fill in a description of your system's linker (not GNU ld)
  9286. case $host_os in
  9287. aix3*)
  9288. allow_undefined_flag=unsupported
  9289. always_export_symbols=yes
  9290. 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'
  9291. # Note: this linker hardcodes the directories in LIBPATH if there
  9292. # are no directories specified by -L.
  9293. hardcode_minus_L=yes
  9294. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9295. # Neither direct hardcoding nor static linking is supported with a
  9296. # broken collect2.
  9297. hardcode_direct=unsupported
  9298. fi
  9299. ;;
  9300. aix[4-9]*)
  9301. if test ia64 = "$host_cpu"; then
  9302. # On IA64, the linker does run time linking by default, so we don't
  9303. # have to do anything special.
  9304. aix_use_runtimelinking=no
  9305. exp_sym_flag='-Bexport'
  9306. no_entry_flag=
  9307. else
  9308. # If we're using GNU nm, then we don't want the "-C" option.
  9309. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9310. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9311. # weak defined symbols like other global defined symbols, whereas
  9312. # GNU nm marks them as "W".
  9313. # While the 'weak' keyword is ignored in the Export File, we need
  9314. # it in the Import File for the 'aix-soname' feature, so we have
  9315. # to replace the "-B" option with "-P" for AIX nm.
  9316. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9317. 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'
  9318. else
  9319. 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'
  9320. fi
  9321. aix_use_runtimelinking=no
  9322. # Test if we are trying to use run time linking or normal
  9323. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9324. # have runtime linking enabled, and use it for executables.
  9325. # For shared libraries, we enable/disable runtime linking
  9326. # depending on the kind of the shared library created -
  9327. # when "with_aix_soname,aix_use_runtimelinking" is:
  9328. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9329. # "aix,yes" lib.so shared, rtl:yes, for executables
  9330. # lib.a static archive
  9331. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9332. # lib.a(lib.so.V) shared, rtl:no, for executables
  9333. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9334. # lib.a(lib.so.V) shared, rtl:no
  9335. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9336. # lib.a static archive
  9337. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9338. for ld_flag in $LDFLAGS; do
  9339. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9340. aix_use_runtimelinking=yes
  9341. break
  9342. fi
  9343. done
  9344. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9345. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9346. # so we don't have lib.a shared libs to link our executables.
  9347. # We have to force runtime linking in this case.
  9348. aix_use_runtimelinking=yes
  9349. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9350. fi
  9351. ;;
  9352. esac
  9353. exp_sym_flag='-bexport'
  9354. no_entry_flag='-bnoentry'
  9355. fi
  9356. # When large executables or shared objects are built, AIX ld can
  9357. # have problems creating the table of contents. If linking a library
  9358. # or program results in "error TOC overflow" add -mminimal-toc to
  9359. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9360. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9361. archive_cmds=''
  9362. hardcode_direct=yes
  9363. hardcode_direct_absolute=yes
  9364. hardcode_libdir_separator=':'
  9365. link_all_deplibs=yes
  9366. file_list_spec='$wl-f,'
  9367. case $with_aix_soname,$aix_use_runtimelinking in
  9368. aix,*) ;; # traditional, no import file
  9369. svr4,* | *,yes) # use import file
  9370. # The Import File defines what to hardcode.
  9371. hardcode_direct=no
  9372. hardcode_direct_absolute=no
  9373. ;;
  9374. esac
  9375. if test yes = "$GCC"; then
  9376. case $host_os in aix4.[012]|aix4.[012].*)
  9377. # We only want to do this on AIX 4.2 and lower, the check
  9378. # below for broken collect2 doesn't work under 4.3+
  9379. collect2name=`$CC -print-prog-name=collect2`
  9380. if test -f "$collect2name" &&
  9381. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9382. then
  9383. # We have reworked collect2
  9384. :
  9385. else
  9386. # We have old collect2
  9387. hardcode_direct=unsupported
  9388. # It fails to find uninstalled libraries when the uninstalled
  9389. # path is not listed in the libpath. Setting hardcode_minus_L
  9390. # to unsupported forces relinking
  9391. hardcode_minus_L=yes
  9392. hardcode_libdir_flag_spec='-L$libdir'
  9393. hardcode_libdir_separator=
  9394. fi
  9395. ;;
  9396. esac
  9397. shared_flag='-shared'
  9398. if test yes = "$aix_use_runtimelinking"; then
  9399. shared_flag="$shared_flag "'$wl-G'
  9400. fi
  9401. # Need to ensure runtime linking is disabled for the traditional
  9402. # shared library, or the linker may eventually find shared libraries
  9403. # /with/ Import File - we do not want to mix them.
  9404. shared_flag_aix='-shared'
  9405. shared_flag_svr4='-shared $wl-G'
  9406. else
  9407. # not using gcc
  9408. if test ia64 = "$host_cpu"; then
  9409. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9410. # chokes on -Wl,-G. The following line is correct:
  9411. shared_flag='-G'
  9412. else
  9413. if test yes = "$aix_use_runtimelinking"; then
  9414. shared_flag='$wl-G'
  9415. else
  9416. shared_flag='$wl-bM:SRE'
  9417. fi
  9418. shared_flag_aix='$wl-bM:SRE'
  9419. shared_flag_svr4='$wl-G'
  9420. fi
  9421. fi
  9422. export_dynamic_flag_spec='$wl-bexpall'
  9423. # It seems that -bexpall does not export symbols beginning with
  9424. # underscore (_), so it is better to generate a list of symbols to export.
  9425. always_export_symbols=yes
  9426. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9427. # Warning - without using the other runtime loading flags (-brtl),
  9428. # -berok will link without error, but may produce a broken library.
  9429. allow_undefined_flag='-berok'
  9430. # Determine the default libpath from the value encoded in an
  9431. # empty executable.
  9432. if test set = "${lt_cv_aix_libpath+set}"; then
  9433. aix_libpath=$lt_cv_aix_libpath
  9434. else
  9435. if ${lt_cv_aix_libpath_+:} false; then :
  9436. $as_echo_n "(cached) " >&6
  9437. else
  9438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9439. /* end confdefs.h. */
  9440. int
  9441. main ()
  9442. {
  9443. ;
  9444. return 0;
  9445. }
  9446. _ACEOF
  9447. if ac_fn_c_try_link "$LINENO"; then :
  9448. lt_aix_libpath_sed='
  9449. /Import File Strings/,/^$/ {
  9450. /^0/ {
  9451. s/^0 *\([^ ]*\) *$/\1/
  9452. p
  9453. }
  9454. }'
  9455. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9456. # Check for a 64-bit object if we didn't find anything.
  9457. if test -z "$lt_cv_aix_libpath_"; then
  9458. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9459. fi
  9460. fi
  9461. rm -f core conftest.err conftest.$ac_objext \
  9462. conftest$ac_exeext conftest.$ac_ext
  9463. if test -z "$lt_cv_aix_libpath_"; then
  9464. lt_cv_aix_libpath_=/usr/lib:/lib
  9465. fi
  9466. fi
  9467. aix_libpath=$lt_cv_aix_libpath_
  9468. fi
  9469. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9470. 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
  9471. else
  9472. if test ia64 = "$host_cpu"; then
  9473. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9474. allow_undefined_flag="-z nodefs"
  9475. 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"
  9476. else
  9477. # Determine the default libpath from the value encoded in an
  9478. # empty executable.
  9479. if test set = "${lt_cv_aix_libpath+set}"; then
  9480. aix_libpath=$lt_cv_aix_libpath
  9481. else
  9482. if ${lt_cv_aix_libpath_+:} false; then :
  9483. $as_echo_n "(cached) " >&6
  9484. else
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. int
  9488. main ()
  9489. {
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_link "$LINENO"; then :
  9495. lt_aix_libpath_sed='
  9496. /Import File Strings/,/^$/ {
  9497. /^0/ {
  9498. s/^0 *\([^ ]*\) *$/\1/
  9499. p
  9500. }
  9501. }'
  9502. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9503. # Check for a 64-bit object if we didn't find anything.
  9504. if test -z "$lt_cv_aix_libpath_"; then
  9505. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9506. fi
  9507. fi
  9508. rm -f core conftest.err conftest.$ac_objext \
  9509. conftest$ac_exeext conftest.$ac_ext
  9510. if test -z "$lt_cv_aix_libpath_"; then
  9511. lt_cv_aix_libpath_=/usr/lib:/lib
  9512. fi
  9513. fi
  9514. aix_libpath=$lt_cv_aix_libpath_
  9515. fi
  9516. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9517. # Warning - without using the other run time loading flags,
  9518. # -berok will link without error, but may produce a broken library.
  9519. no_undefined_flag=' $wl-bernotok'
  9520. allow_undefined_flag=' $wl-berok'
  9521. if test yes = "$with_gnu_ld"; then
  9522. # We only use this code for GNU lds that support --whole-archive.
  9523. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9524. else
  9525. # Exported symbols can be pulled into shared objects from archives
  9526. whole_archive_flag_spec='$convenience'
  9527. fi
  9528. archive_cmds_need_lc=yes
  9529. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9530. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9531. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9532. if test svr4 != "$with_aix_soname"; then
  9533. # This is similar to how AIX traditionally builds its shared libraries.
  9534. 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'
  9535. fi
  9536. if test aix != "$with_aix_soname"; then
  9537. 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'
  9538. else
  9539. # used by -dlpreopen to get the symbols
  9540. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9541. fi
  9542. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9543. fi
  9544. fi
  9545. ;;
  9546. amigaos*)
  9547. case $host_cpu in
  9548. powerpc)
  9549. # see comment about AmigaOS4 .so support
  9550. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9551. archive_expsym_cmds=''
  9552. ;;
  9553. m68k)
  9554. 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)'
  9555. hardcode_libdir_flag_spec='-L$libdir'
  9556. hardcode_minus_L=yes
  9557. ;;
  9558. esac
  9559. ;;
  9560. bsdi[45]*)
  9561. export_dynamic_flag_spec=-rdynamic
  9562. ;;
  9563. cygwin* | mingw* | pw32* | cegcc*)
  9564. # When not using gcc, we currently assume that we are using
  9565. # Microsoft Visual C++.
  9566. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9567. # no search path for DLLs.
  9568. case $cc_basename in
  9569. cl*)
  9570. # Native MSVC
  9571. hardcode_libdir_flag_spec=' '
  9572. allow_undefined_flag=unsupported
  9573. always_export_symbols=yes
  9574. file_list_spec='@'
  9575. # Tell ltmain to make .lib files, not .a files.
  9576. libext=lib
  9577. # Tell ltmain to make .dll files, not .so files.
  9578. shrext_cmds=.dll
  9579. # FIXME: Setting linknames here is a bad hack.
  9580. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9581. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9582. cp "$export_symbols" "$output_objdir/$soname.def";
  9583. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9584. else
  9585. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9586. fi~
  9587. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9588. linknames='
  9589. # The linker will not automatically build a static lib if we build a DLL.
  9590. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9591. enable_shared_with_static_runtimes=yes
  9592. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9593. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9594. # Don't use ranlib
  9595. old_postinstall_cmds='chmod 644 $oldlib'
  9596. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9597. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9598. case $lt_outputfile in
  9599. *.exe|*.EXE) ;;
  9600. *)
  9601. lt_outputfile=$lt_outputfile.exe
  9602. lt_tool_outputfile=$lt_tool_outputfile.exe
  9603. ;;
  9604. esac~
  9605. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9606. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9607. $RM "$lt_outputfile.manifest";
  9608. fi'
  9609. ;;
  9610. *)
  9611. # Assume MSVC wrapper
  9612. hardcode_libdir_flag_spec=' '
  9613. allow_undefined_flag=unsupported
  9614. # Tell ltmain to make .lib files, not .a files.
  9615. libext=lib
  9616. # Tell ltmain to make .dll files, not .so files.
  9617. shrext_cmds=.dll
  9618. # FIXME: Setting linknames here is a bad hack.
  9619. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9620. # The linker will automatically build a .lib file if we build a DLL.
  9621. old_archive_from_new_cmds='true'
  9622. # FIXME: Should let the user specify the lib program.
  9623. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9624. enable_shared_with_static_runtimes=yes
  9625. ;;
  9626. esac
  9627. ;;
  9628. darwin* | rhapsody*)
  9629. archive_cmds_need_lc=no
  9630. hardcode_direct=no
  9631. hardcode_automatic=yes
  9632. hardcode_shlibpath_var=unsupported
  9633. if test yes = "$lt_cv_ld_force_load"; then
  9634. 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\"`'
  9635. else
  9636. whole_archive_flag_spec=''
  9637. fi
  9638. link_all_deplibs=yes
  9639. allow_undefined_flag=$_lt_dar_allow_undefined
  9640. case $cc_basename in
  9641. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9642. *) _lt_dar_can_shared=$GCC ;;
  9643. esac
  9644. if test yes = "$_lt_dar_can_shared"; then
  9645. output_verbose_link_cmd=func_echo_all
  9646. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9647. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9648. 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"
  9649. 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"
  9650. else
  9651. ld_shlibs=no
  9652. fi
  9653. ;;
  9654. dgux*)
  9655. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9656. hardcode_libdir_flag_spec='-L$libdir'
  9657. hardcode_shlibpath_var=no
  9658. ;;
  9659. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9660. # support. Future versions do this automatically, but an explicit c++rt0.o
  9661. # does not break anything, and helps significantly (at the cost of a little
  9662. # extra space).
  9663. freebsd2.2*)
  9664. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9665. hardcode_libdir_flag_spec='-R$libdir'
  9666. hardcode_direct=yes
  9667. hardcode_shlibpath_var=no
  9668. ;;
  9669. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9670. freebsd2.*)
  9671. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9672. hardcode_direct=yes
  9673. hardcode_minus_L=yes
  9674. hardcode_shlibpath_var=no
  9675. ;;
  9676. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9677. freebsd* | dragonfly*)
  9678. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9679. hardcode_libdir_flag_spec='-R$libdir'
  9680. hardcode_direct=yes
  9681. hardcode_shlibpath_var=no
  9682. ;;
  9683. hpux9*)
  9684. if test yes = "$GCC"; then
  9685. 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'
  9686. else
  9687. 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'
  9688. fi
  9689. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9690. hardcode_libdir_separator=:
  9691. hardcode_direct=yes
  9692. # hardcode_minus_L: Not really in the search PATH,
  9693. # but as the default location of the library.
  9694. hardcode_minus_L=yes
  9695. export_dynamic_flag_spec='$wl-E'
  9696. ;;
  9697. hpux10*)
  9698. if test yes,no = "$GCC,$with_gnu_ld"; then
  9699. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9700. else
  9701. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9702. fi
  9703. if test no = "$with_gnu_ld"; then
  9704. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9705. hardcode_libdir_separator=:
  9706. hardcode_direct=yes
  9707. hardcode_direct_absolute=yes
  9708. export_dynamic_flag_spec='$wl-E'
  9709. # hardcode_minus_L: Not really in the search PATH,
  9710. # but as the default location of the library.
  9711. hardcode_minus_L=yes
  9712. fi
  9713. ;;
  9714. hpux11*)
  9715. if test yes,no = "$GCC,$with_gnu_ld"; then
  9716. case $host_cpu in
  9717. hppa*64*)
  9718. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9719. ;;
  9720. ia64*)
  9721. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9722. ;;
  9723. *)
  9724. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9725. ;;
  9726. esac
  9727. else
  9728. case $host_cpu in
  9729. hppa*64*)
  9730. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9731. ;;
  9732. ia64*)
  9733. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9734. ;;
  9735. *)
  9736. # Older versions of the 11.00 compiler do not understand -b yet
  9737. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9739. $as_echo_n "checking if $CC understands -b... " >&6; }
  9740. if ${lt_cv_prog_compiler__b+:} false; then :
  9741. $as_echo_n "(cached) " >&6
  9742. else
  9743. lt_cv_prog_compiler__b=no
  9744. save_LDFLAGS=$LDFLAGS
  9745. LDFLAGS="$LDFLAGS -b"
  9746. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9747. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9748. # The linker can only warn and ignore the option if not recognized
  9749. # So say no if there are warnings
  9750. if test -s conftest.err; then
  9751. # Append any errors to the config.log.
  9752. cat conftest.err 1>&5
  9753. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9754. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9755. if diff conftest.exp conftest.er2 >/dev/null; then
  9756. lt_cv_prog_compiler__b=yes
  9757. fi
  9758. else
  9759. lt_cv_prog_compiler__b=yes
  9760. fi
  9761. fi
  9762. $RM -r conftest*
  9763. LDFLAGS=$save_LDFLAGS
  9764. fi
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9766. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9767. if test yes = "$lt_cv_prog_compiler__b"; then
  9768. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9769. else
  9770. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9771. fi
  9772. ;;
  9773. esac
  9774. fi
  9775. if test no = "$with_gnu_ld"; then
  9776. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9777. hardcode_libdir_separator=:
  9778. case $host_cpu in
  9779. hppa*64*|ia64*)
  9780. hardcode_direct=no
  9781. hardcode_shlibpath_var=no
  9782. ;;
  9783. *)
  9784. hardcode_direct=yes
  9785. hardcode_direct_absolute=yes
  9786. export_dynamic_flag_spec='$wl-E'
  9787. # hardcode_minus_L: Not really in the search PATH,
  9788. # but as the default location of the library.
  9789. hardcode_minus_L=yes
  9790. ;;
  9791. esac
  9792. fi
  9793. ;;
  9794. irix5* | irix6* | nonstopux*)
  9795. if test yes = "$GCC"; then
  9796. 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'
  9797. # Try to use the -exported_symbol ld option, if it does not
  9798. # work, assume that -exports_file does not work either and
  9799. # implicitly export all symbols.
  9800. # This should be the same for all languages, so no per-tag cache variable.
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9802. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9803. if ${lt_cv_irix_exported_symbol+:} false; then :
  9804. $as_echo_n "(cached) " >&6
  9805. else
  9806. save_LDFLAGS=$LDFLAGS
  9807. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9809. /* end confdefs.h. */
  9810. int foo (void) { return 0; }
  9811. _ACEOF
  9812. if ac_fn_c_try_link "$LINENO"; then :
  9813. lt_cv_irix_exported_symbol=yes
  9814. else
  9815. lt_cv_irix_exported_symbol=no
  9816. fi
  9817. rm -f core conftest.err conftest.$ac_objext \
  9818. conftest$ac_exeext conftest.$ac_ext
  9819. LDFLAGS=$save_LDFLAGS
  9820. fi
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9822. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9823. if test yes = "$lt_cv_irix_exported_symbol"; then
  9824. 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'
  9825. fi
  9826. link_all_deplibs=no
  9827. else
  9828. 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'
  9829. 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'
  9830. fi
  9831. archive_cmds_need_lc='no'
  9832. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9833. hardcode_libdir_separator=:
  9834. inherit_rpath=yes
  9835. link_all_deplibs=yes
  9836. ;;
  9837. linux*)
  9838. case $cc_basename in
  9839. tcc*)
  9840. # Fabrice Bellard et al's Tiny C Compiler
  9841. ld_shlibs=yes
  9842. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9843. ;;
  9844. esac
  9845. ;;
  9846. netbsd* | netbsdelf*-gnu)
  9847. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9848. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9849. else
  9850. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9851. fi
  9852. hardcode_libdir_flag_spec='-R$libdir'
  9853. hardcode_direct=yes
  9854. hardcode_shlibpath_var=no
  9855. ;;
  9856. newsos6)
  9857. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9858. hardcode_direct=yes
  9859. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9860. hardcode_libdir_separator=:
  9861. hardcode_shlibpath_var=no
  9862. ;;
  9863. *nto* | *qnx*)
  9864. ;;
  9865. openbsd* | bitrig*)
  9866. if test -f /usr/libexec/ld.so; then
  9867. hardcode_direct=yes
  9868. hardcode_shlibpath_var=no
  9869. hardcode_direct_absolute=yes
  9870. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9871. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9872. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9873. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9874. export_dynamic_flag_spec='$wl-E'
  9875. else
  9876. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9877. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9878. fi
  9879. else
  9880. ld_shlibs=no
  9881. fi
  9882. ;;
  9883. os2*)
  9884. hardcode_libdir_flag_spec='-L$libdir'
  9885. hardcode_minus_L=yes
  9886. allow_undefined_flag=unsupported
  9887. shrext_cmds=.dll
  9888. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9889. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9890. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9891. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9892. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9893. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9894. emximp -o $lib $output_objdir/$libname.def'
  9895. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9896. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9897. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9898. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9899. prefix_cmds="$SED"~
  9900. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9901. prefix_cmds="$prefix_cmds -e 1d";
  9902. fi~
  9903. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9904. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9905. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9906. emximp -o $lib $output_objdir/$libname.def'
  9907. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9908. enable_shared_with_static_runtimes=yes
  9909. ;;
  9910. osf3*)
  9911. if test yes = "$GCC"; then
  9912. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9913. 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'
  9914. else
  9915. allow_undefined_flag=' -expect_unresolved \*'
  9916. 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'
  9917. fi
  9918. archive_cmds_need_lc='no'
  9919. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9920. hardcode_libdir_separator=:
  9921. ;;
  9922. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9923. if test yes = "$GCC"; then
  9924. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9925. 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'
  9926. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9927. else
  9928. allow_undefined_flag=' -expect_unresolved \*'
  9929. 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'
  9930. 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~
  9931. $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'
  9932. # Both c and cxx compiler support -rpath directly
  9933. hardcode_libdir_flag_spec='-rpath $libdir'
  9934. fi
  9935. archive_cmds_need_lc='no'
  9936. hardcode_libdir_separator=:
  9937. ;;
  9938. solaris*)
  9939. no_undefined_flag=' -z defs'
  9940. if test yes = "$GCC"; then
  9941. wlarc='$wl'
  9942. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9943. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9944. $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'
  9945. else
  9946. case `$CC -V 2>&1` in
  9947. *"Compilers 5.0"*)
  9948. wlarc=''
  9949. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9950. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9951. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9952. ;;
  9953. *)
  9954. wlarc='$wl'
  9955. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9956. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9957. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9958. ;;
  9959. esac
  9960. fi
  9961. hardcode_libdir_flag_spec='-R$libdir'
  9962. hardcode_shlibpath_var=no
  9963. case $host_os in
  9964. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9965. *)
  9966. # The compiler driver will combine and reorder linker options,
  9967. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9968. # but is careful enough not to reorder.
  9969. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9970. if test yes = "$GCC"; then
  9971. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9972. else
  9973. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9974. fi
  9975. ;;
  9976. esac
  9977. link_all_deplibs=yes
  9978. ;;
  9979. sunos4*)
  9980. if test sequent = "$host_vendor"; then
  9981. # Use $CC to link under sequent, because it throws in some extra .o
  9982. # files that make .init and .fini sections work.
  9983. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9984. else
  9985. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9986. fi
  9987. hardcode_libdir_flag_spec='-L$libdir'
  9988. hardcode_direct=yes
  9989. hardcode_minus_L=yes
  9990. hardcode_shlibpath_var=no
  9991. ;;
  9992. sysv4)
  9993. case $host_vendor in
  9994. sni)
  9995. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9996. hardcode_direct=yes # is this really true???
  9997. ;;
  9998. siemens)
  9999. ## LD is ld it makes a PLAMLIB
  10000. ## CC just makes a GrossModule.
  10001. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10002. reload_cmds='$CC -r -o $output$reload_objs'
  10003. hardcode_direct=no
  10004. ;;
  10005. motorola)
  10006. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10007. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10008. ;;
  10009. esac
  10010. runpath_var='LD_RUN_PATH'
  10011. hardcode_shlibpath_var=no
  10012. ;;
  10013. sysv4.3*)
  10014. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10015. hardcode_shlibpath_var=no
  10016. export_dynamic_flag_spec='-Bexport'
  10017. ;;
  10018. sysv4*MP*)
  10019. if test -d /usr/nec; then
  10020. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10021. hardcode_shlibpath_var=no
  10022. runpath_var=LD_RUN_PATH
  10023. hardcode_runpath_var=yes
  10024. ld_shlibs=yes
  10025. fi
  10026. ;;
  10027. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10028. no_undefined_flag='$wl-z,text'
  10029. archive_cmds_need_lc=no
  10030. hardcode_shlibpath_var=no
  10031. runpath_var='LD_RUN_PATH'
  10032. if test yes = "$GCC"; then
  10033. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10034. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10035. else
  10036. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10037. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10038. fi
  10039. ;;
  10040. sysv5* | sco3.2v5* | sco5v6*)
  10041. # Note: We CANNOT use -z defs as we might desire, because we do not
  10042. # link with -lc, and that would cause any symbols used from libc to
  10043. # always be unresolved, which means just about no library would
  10044. # ever link correctly. If we're not using GNU ld we use -z text
  10045. # though, which does catch some bad symbols but isn't as heavy-handed
  10046. # as -z defs.
  10047. no_undefined_flag='$wl-z,text'
  10048. allow_undefined_flag='$wl-z,nodefs'
  10049. archive_cmds_need_lc=no
  10050. hardcode_shlibpath_var=no
  10051. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10052. hardcode_libdir_separator=':'
  10053. link_all_deplibs=yes
  10054. export_dynamic_flag_spec='$wl-Bexport'
  10055. runpath_var='LD_RUN_PATH'
  10056. if test yes = "$GCC"; then
  10057. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10058. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10059. else
  10060. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10061. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10062. fi
  10063. ;;
  10064. uts4*)
  10065. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10066. hardcode_libdir_flag_spec='-L$libdir'
  10067. hardcode_shlibpath_var=no
  10068. ;;
  10069. *)
  10070. ld_shlibs=no
  10071. ;;
  10072. esac
  10073. if test sni = "$host_vendor"; then
  10074. case $host in
  10075. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10076. export_dynamic_flag_spec='$wl-Blargedynsym'
  10077. ;;
  10078. esac
  10079. fi
  10080. fi
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10082. $as_echo "$ld_shlibs" >&6; }
  10083. test no = "$ld_shlibs" && can_build_shared=no
  10084. with_gnu_ld=$with_gnu_ld
  10085. #
  10086. # Do we need to explicitly link libc?
  10087. #
  10088. case "x$archive_cmds_need_lc" in
  10089. x|xyes)
  10090. # Assume -lc should be added
  10091. archive_cmds_need_lc=yes
  10092. if test yes,yes = "$GCC,$enable_shared"; then
  10093. case $archive_cmds in
  10094. *'~'*)
  10095. # FIXME: we may have to deal with multi-command sequences.
  10096. ;;
  10097. '$CC '*)
  10098. # Test whether the compiler implicitly links with -lc since on some
  10099. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10100. # to ld, don't add -lc before -lgcc.
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10102. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10103. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10104. $as_echo_n "(cached) " >&6
  10105. else
  10106. $RM conftest*
  10107. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10108. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10109. (eval $ac_compile) 2>&5
  10110. ac_status=$?
  10111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10112. test $ac_status = 0; } 2>conftest.err; then
  10113. soname=conftest
  10114. lib=conftest
  10115. libobjs=conftest.$ac_objext
  10116. deplibs=
  10117. wl=$lt_prog_compiler_wl
  10118. pic_flag=$lt_prog_compiler_pic
  10119. compiler_flags=-v
  10120. linker_flags=-v
  10121. verstring=
  10122. output_objdir=.
  10123. libname=conftest
  10124. lt_save_allow_undefined_flag=$allow_undefined_flag
  10125. allow_undefined_flag=
  10126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10127. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10128. ac_status=$?
  10129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10130. test $ac_status = 0; }
  10131. then
  10132. lt_cv_archive_cmds_need_lc=no
  10133. else
  10134. lt_cv_archive_cmds_need_lc=yes
  10135. fi
  10136. allow_undefined_flag=$lt_save_allow_undefined_flag
  10137. else
  10138. cat conftest.err 1>&5
  10139. fi
  10140. $RM conftest*
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10143. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10144. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10145. ;;
  10146. esac
  10147. fi
  10148. ;;
  10149. esac
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10151. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10152. if test yes = "$GCC"; then
  10153. case $host_os in
  10154. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10155. *) lt_awk_arg='/^libraries:/' ;;
  10156. esac
  10157. case $host_os in
  10158. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10159. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10160. esac
  10161. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10162. case $lt_search_path_spec in
  10163. *\;*)
  10164. # if the path contains ";" then we assume it to be the separator
  10165. # otherwise default to the standard path separator (i.e. ":") - it is
  10166. # assumed that no part of a normal pathname contains ";" but that should
  10167. # okay in the real world where ";" in dirpaths is itself problematic.
  10168. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10169. ;;
  10170. *)
  10171. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10172. ;;
  10173. esac
  10174. # Ok, now we have the path, separated by spaces, we can step through it
  10175. # and add multilib dir if necessary...
  10176. lt_tmp_lt_search_path_spec=
  10177. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10178. # ...but if some path component already ends with the multilib dir we assume
  10179. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10180. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10181. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10182. lt_multi_os_dir=
  10183. ;;
  10184. esac
  10185. for lt_sys_path in $lt_search_path_spec; do
  10186. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10187. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10188. elif test -n "$lt_multi_os_dir"; then
  10189. test -d "$lt_sys_path" && \
  10190. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10191. fi
  10192. done
  10193. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10194. BEGIN {RS = " "; FS = "/|\n";} {
  10195. lt_foo = "";
  10196. lt_count = 0;
  10197. for (lt_i = NF; lt_i > 0; lt_i--) {
  10198. if ($lt_i != "" && $lt_i != ".") {
  10199. if ($lt_i == "..") {
  10200. lt_count++;
  10201. } else {
  10202. if (lt_count == 0) {
  10203. lt_foo = "/" $lt_i lt_foo;
  10204. } else {
  10205. lt_count--;
  10206. }
  10207. }
  10208. }
  10209. }
  10210. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10211. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10212. }'`
  10213. # AWK program above erroneously prepends '/' to C:/dos/paths
  10214. # for these hosts.
  10215. case $host_os in
  10216. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10217. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10218. esac
  10219. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10220. else
  10221. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10222. fi
  10223. library_names_spec=
  10224. libname_spec='lib$name'
  10225. soname_spec=
  10226. shrext_cmds=.so
  10227. postinstall_cmds=
  10228. postuninstall_cmds=
  10229. finish_cmds=
  10230. finish_eval=
  10231. shlibpath_var=
  10232. shlibpath_overrides_runpath=unknown
  10233. version_type=none
  10234. dynamic_linker="$host_os ld.so"
  10235. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10236. need_lib_prefix=unknown
  10237. hardcode_into_libs=no
  10238. # when you set need_version to no, make sure it does not cause -set_version
  10239. # flags to be left without arguments
  10240. need_version=unknown
  10241. case $host_os in
  10242. aix3*)
  10243. version_type=linux # correct to gnu/linux during the next big refactor
  10244. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10245. shlibpath_var=LIBPATH
  10246. # AIX 3 has no versioning support, so we append a major version to the name.
  10247. soname_spec='$libname$release$shared_ext$major'
  10248. ;;
  10249. aix[4-9]*)
  10250. version_type=linux # correct to gnu/linux during the next big refactor
  10251. need_lib_prefix=no
  10252. need_version=no
  10253. hardcode_into_libs=yes
  10254. if test ia64 = "$host_cpu"; then
  10255. # AIX 5 supports IA64
  10256. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10257. shlibpath_var=LD_LIBRARY_PATH
  10258. else
  10259. # With GCC up to 2.95.x, collect2 would create an import file
  10260. # for dependence libraries. The import file would start with
  10261. # the line '#! .'. This would cause the generated library to
  10262. # depend on '.', always an invalid library. This was fixed in
  10263. # development snapshots of GCC prior to 3.0.
  10264. case $host_os in
  10265. aix4 | aix4.[01] | aix4.[01].*)
  10266. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10267. echo ' yes '
  10268. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10269. :
  10270. else
  10271. can_build_shared=no
  10272. fi
  10273. ;;
  10274. esac
  10275. # Using Import Files as archive members, it is possible to support
  10276. # filename-based versioning of shared library archives on AIX. While
  10277. # this would work for both with and without runtime linking, it will
  10278. # prevent static linking of such archives. So we do filename-based
  10279. # shared library versioning with .so extension only, which is used
  10280. # when both runtime linking and shared linking is enabled.
  10281. # Unfortunately, runtime linking may impact performance, so we do
  10282. # not want this to be the default eventually. Also, we use the
  10283. # versioned .so libs for executables only if there is the -brtl
  10284. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10285. # To allow for filename-based versioning support, we need to create
  10286. # libNAME.so.V as an archive file, containing:
  10287. # *) an Import File, referring to the versioned filename of the
  10288. # archive as well as the shared archive member, telling the
  10289. # bitwidth (32 or 64) of that shared object, and providing the
  10290. # list of exported symbols of that shared object, eventually
  10291. # decorated with the 'weak' keyword
  10292. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10293. # it being seen by the linker.
  10294. # At run time we better use the real file rather than another symlink,
  10295. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10296. case $with_aix_soname,$aix_use_runtimelinking in
  10297. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10298. # soname into executable. Probably we can add versioning support to
  10299. # collect2, so additional links can be useful in future.
  10300. aix,yes) # traditional libtool
  10301. dynamic_linker='AIX unversionable lib.so'
  10302. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10303. # instead of lib<name>.a to let people know that these are not
  10304. # typical AIX shared libraries.
  10305. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10306. ;;
  10307. aix,no) # traditional AIX only
  10308. dynamic_linker='AIX lib.a(lib.so.V)'
  10309. # We preserve .a as extension for shared libraries through AIX4.2
  10310. # and later when we are not doing run time linking.
  10311. library_names_spec='$libname$release.a $libname.a'
  10312. soname_spec='$libname$release$shared_ext$major'
  10313. ;;
  10314. svr4,*) # full svr4 only
  10315. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10316. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10317. # We do not specify a path in Import Files, so LIBPATH fires.
  10318. shlibpath_overrides_runpath=yes
  10319. ;;
  10320. *,yes) # both, prefer svr4
  10321. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10322. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10323. # unpreferred sharedlib libNAME.a needs extra handling
  10324. 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"'
  10325. 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"'
  10326. # We do not specify a path in Import Files, so LIBPATH fires.
  10327. shlibpath_overrides_runpath=yes
  10328. ;;
  10329. *,no) # both, prefer aix
  10330. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10331. library_names_spec='$libname$release.a $libname.a'
  10332. soname_spec='$libname$release$shared_ext$major'
  10333. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10334. 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)'
  10335. 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"'
  10336. ;;
  10337. esac
  10338. shlibpath_var=LIBPATH
  10339. fi
  10340. ;;
  10341. amigaos*)
  10342. case $host_cpu in
  10343. powerpc)
  10344. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10345. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10346. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10347. ;;
  10348. m68k)
  10349. library_names_spec='$libname.ixlibrary $libname.a'
  10350. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10351. 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'
  10352. ;;
  10353. esac
  10354. ;;
  10355. beos*)
  10356. library_names_spec='$libname$shared_ext'
  10357. dynamic_linker="$host_os ld.so"
  10358. shlibpath_var=LIBRARY_PATH
  10359. ;;
  10360. bsdi[45]*)
  10361. version_type=linux # correct to gnu/linux during the next big refactor
  10362. need_version=no
  10363. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10364. soname_spec='$libname$release$shared_ext$major'
  10365. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10366. shlibpath_var=LD_LIBRARY_PATH
  10367. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10368. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10369. # the default ld.so.conf also contains /usr/contrib/lib and
  10370. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10371. # libtool to hard-code these into programs
  10372. ;;
  10373. cygwin* | mingw* | pw32* | cegcc*)
  10374. version_type=windows
  10375. shrext_cmds=.dll
  10376. need_version=no
  10377. need_lib_prefix=no
  10378. case $GCC,$cc_basename in
  10379. yes,*)
  10380. # gcc
  10381. library_names_spec='$libname.dll.a'
  10382. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10383. postinstall_cmds='base_file=`basename \$file`~
  10384. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10385. dldir=$destdir/`dirname \$dlpath`~
  10386. test -d \$dldir || mkdir -p \$dldir~
  10387. $install_prog $dir/$dlname \$dldir/$dlname~
  10388. chmod a+x \$dldir/$dlname~
  10389. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10390. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10391. fi'
  10392. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10393. dlpath=$dir/\$dldll~
  10394. $RM \$dlpath'
  10395. shlibpath_overrides_runpath=yes
  10396. case $host_os in
  10397. cygwin*)
  10398. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10399. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10400. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10401. ;;
  10402. mingw* | cegcc*)
  10403. # MinGW DLLs use traditional 'lib' prefix
  10404. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10405. ;;
  10406. pw32*)
  10407. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10408. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10409. ;;
  10410. esac
  10411. dynamic_linker='Win32 ld.exe'
  10412. ;;
  10413. *,cl*)
  10414. # Native MSVC
  10415. libname_spec='$name'
  10416. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10417. library_names_spec='$libname.dll.lib'
  10418. case $build_os in
  10419. mingw*)
  10420. sys_lib_search_path_spec=
  10421. lt_save_ifs=$IFS
  10422. IFS=';'
  10423. for lt_path in $LIB
  10424. do
  10425. IFS=$lt_save_ifs
  10426. # Let DOS variable expansion print the short 8.3 style file name.
  10427. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10428. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10429. done
  10430. IFS=$lt_save_ifs
  10431. # Convert to MSYS style.
  10432. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10433. ;;
  10434. cygwin*)
  10435. # Convert to unix form, then to dos form, then back to unix form
  10436. # but this time dos style (no spaces!) so that the unix form looks
  10437. # like /cygdrive/c/PROGRA~1:/cygdr...
  10438. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10439. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10440. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10441. ;;
  10442. *)
  10443. sys_lib_search_path_spec=$LIB
  10444. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10445. # It is most probably a Windows format PATH.
  10446. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10447. else
  10448. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10449. fi
  10450. # FIXME: find the short name or the path components, as spaces are
  10451. # common. (e.g. "Program Files" -> "PROGRA~1")
  10452. ;;
  10453. esac
  10454. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10455. postinstall_cmds='base_file=`basename \$file`~
  10456. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10457. dldir=$destdir/`dirname \$dlpath`~
  10458. test -d \$dldir || mkdir -p \$dldir~
  10459. $install_prog $dir/$dlname \$dldir/$dlname'
  10460. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10461. dlpath=$dir/\$dldll~
  10462. $RM \$dlpath'
  10463. shlibpath_overrides_runpath=yes
  10464. dynamic_linker='Win32 link.exe'
  10465. ;;
  10466. *)
  10467. # Assume MSVC wrapper
  10468. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10469. dynamic_linker='Win32 ld.exe'
  10470. ;;
  10471. esac
  10472. # FIXME: first we should search . and the directory the executable is in
  10473. shlibpath_var=PATH
  10474. ;;
  10475. darwin* | rhapsody*)
  10476. dynamic_linker="$host_os dyld"
  10477. version_type=darwin
  10478. need_lib_prefix=no
  10479. need_version=no
  10480. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10481. soname_spec='$libname$release$major$shared_ext'
  10482. shlibpath_overrides_runpath=yes
  10483. shlibpath_var=DYLD_LIBRARY_PATH
  10484. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10485. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10486. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10487. ;;
  10488. dgux*)
  10489. version_type=linux # correct to gnu/linux during the next big refactor
  10490. need_lib_prefix=no
  10491. need_version=no
  10492. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10493. soname_spec='$libname$release$shared_ext$major'
  10494. shlibpath_var=LD_LIBRARY_PATH
  10495. ;;
  10496. freebsd* | dragonfly*)
  10497. # DragonFly does not have aout. When/if they implement a new
  10498. # versioning mechanism, adjust this.
  10499. if test -x /usr/bin/objformat; then
  10500. objformat=`/usr/bin/objformat`
  10501. else
  10502. case $host_os in
  10503. freebsd[23].*) objformat=aout ;;
  10504. *) objformat=elf ;;
  10505. esac
  10506. fi
  10507. version_type=freebsd-$objformat
  10508. case $version_type in
  10509. freebsd-elf*)
  10510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10511. soname_spec='$libname$release$shared_ext$major'
  10512. need_version=no
  10513. need_lib_prefix=no
  10514. ;;
  10515. freebsd-*)
  10516. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10517. need_version=yes
  10518. ;;
  10519. esac
  10520. shlibpath_var=LD_LIBRARY_PATH
  10521. case $host_os in
  10522. freebsd2.*)
  10523. shlibpath_overrides_runpath=yes
  10524. ;;
  10525. freebsd3.[01]* | freebsdelf3.[01]*)
  10526. shlibpath_overrides_runpath=yes
  10527. hardcode_into_libs=yes
  10528. ;;
  10529. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10530. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10531. shlibpath_overrides_runpath=no
  10532. hardcode_into_libs=yes
  10533. ;;
  10534. *) # from 4.6 on, and DragonFly
  10535. shlibpath_overrides_runpath=yes
  10536. hardcode_into_libs=yes
  10537. ;;
  10538. esac
  10539. ;;
  10540. haiku*)
  10541. version_type=linux # correct to gnu/linux during the next big refactor
  10542. need_lib_prefix=no
  10543. need_version=no
  10544. dynamic_linker="$host_os runtime_loader"
  10545. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10546. soname_spec='$libname$release$shared_ext$major'
  10547. shlibpath_var=LIBRARY_PATH
  10548. shlibpath_overrides_runpath=no
  10549. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10550. hardcode_into_libs=yes
  10551. ;;
  10552. hpux9* | hpux10* | hpux11*)
  10553. # Give a soname corresponding to the major version so that dld.sl refuses to
  10554. # link against other versions.
  10555. version_type=sunos
  10556. need_lib_prefix=no
  10557. need_version=no
  10558. case $host_cpu in
  10559. ia64*)
  10560. shrext_cmds='.so'
  10561. hardcode_into_libs=yes
  10562. dynamic_linker="$host_os dld.so"
  10563. shlibpath_var=LD_LIBRARY_PATH
  10564. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10565. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10566. soname_spec='$libname$release$shared_ext$major'
  10567. if test 32 = "$HPUX_IA64_MODE"; then
  10568. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10569. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10570. else
  10571. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10572. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10573. fi
  10574. ;;
  10575. hppa*64*)
  10576. shrext_cmds='.sl'
  10577. hardcode_into_libs=yes
  10578. dynamic_linker="$host_os dld.sl"
  10579. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10580. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10581. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10582. soname_spec='$libname$release$shared_ext$major'
  10583. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10584. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10585. ;;
  10586. *)
  10587. shrext_cmds='.sl'
  10588. dynamic_linker="$host_os dld.sl"
  10589. shlibpath_var=SHLIB_PATH
  10590. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10591. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10592. soname_spec='$libname$release$shared_ext$major'
  10593. ;;
  10594. esac
  10595. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10596. postinstall_cmds='chmod 555 $lib'
  10597. # or fails outright, so override atomically:
  10598. install_override_mode=555
  10599. ;;
  10600. interix[3-9]*)
  10601. version_type=linux # correct to gnu/linux during the next big refactor
  10602. need_lib_prefix=no
  10603. need_version=no
  10604. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10605. soname_spec='$libname$release$shared_ext$major'
  10606. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10607. shlibpath_var=LD_LIBRARY_PATH
  10608. shlibpath_overrides_runpath=no
  10609. hardcode_into_libs=yes
  10610. ;;
  10611. irix5* | irix6* | nonstopux*)
  10612. case $host_os in
  10613. nonstopux*) version_type=nonstopux ;;
  10614. *)
  10615. if test yes = "$lt_cv_prog_gnu_ld"; then
  10616. version_type=linux # correct to gnu/linux during the next big refactor
  10617. else
  10618. version_type=irix
  10619. fi ;;
  10620. esac
  10621. need_lib_prefix=no
  10622. need_version=no
  10623. soname_spec='$libname$release$shared_ext$major'
  10624. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10625. case $host_os in
  10626. irix5* | nonstopux*)
  10627. libsuff= shlibsuff=
  10628. ;;
  10629. *)
  10630. case $LD in # libtool.m4 will add one of these switches to LD
  10631. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10632. libsuff= shlibsuff= libmagic=32-bit;;
  10633. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10634. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10635. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10636. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10637. *) libsuff= shlibsuff= libmagic=never-match;;
  10638. esac
  10639. ;;
  10640. esac
  10641. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10642. shlibpath_overrides_runpath=no
  10643. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10644. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10645. hardcode_into_libs=yes
  10646. ;;
  10647. # No shared lib support for Linux oldld, aout, or coff.
  10648. linux*oldld* | linux*aout* | linux*coff*)
  10649. dynamic_linker=no
  10650. ;;
  10651. linux*android*)
  10652. version_type=none # Android doesn't support versioned libraries.
  10653. need_lib_prefix=no
  10654. need_version=no
  10655. library_names_spec='$libname$release$shared_ext'
  10656. soname_spec='$libname$release$shared_ext'
  10657. finish_cmds=
  10658. shlibpath_var=LD_LIBRARY_PATH
  10659. shlibpath_overrides_runpath=yes
  10660. # This implies no fast_install, which is unacceptable.
  10661. # Some rework will be needed to allow for fast_install
  10662. # before this can be enabled.
  10663. hardcode_into_libs=yes
  10664. dynamic_linker='Android linker'
  10665. # Don't embed -rpath directories since the linker doesn't support them.
  10666. hardcode_libdir_flag_spec='-L$libdir'
  10667. ;;
  10668. # This must be glibc/ELF.
  10669. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10670. version_type=linux # correct to gnu/linux during the next big refactor
  10671. need_lib_prefix=no
  10672. need_version=no
  10673. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10674. soname_spec='$libname$release$shared_ext$major'
  10675. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10676. shlibpath_var=LD_LIBRARY_PATH
  10677. shlibpath_overrides_runpath=no
  10678. # Some binutils ld are patched to set DT_RUNPATH
  10679. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10680. $as_echo_n "(cached) " >&6
  10681. else
  10682. lt_cv_shlibpath_overrides_runpath=no
  10683. save_LDFLAGS=$LDFLAGS
  10684. save_libdir=$libdir
  10685. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10686. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10688. /* end confdefs.h. */
  10689. int
  10690. main ()
  10691. {
  10692. ;
  10693. return 0;
  10694. }
  10695. _ACEOF
  10696. if ac_fn_c_try_link "$LINENO"; then :
  10697. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10698. lt_cv_shlibpath_overrides_runpath=yes
  10699. fi
  10700. fi
  10701. rm -f core conftest.err conftest.$ac_objext \
  10702. conftest$ac_exeext conftest.$ac_ext
  10703. LDFLAGS=$save_LDFLAGS
  10704. libdir=$save_libdir
  10705. fi
  10706. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10707. # This implies no fast_install, which is unacceptable.
  10708. # Some rework will be needed to allow for fast_install
  10709. # before this can be enabled.
  10710. hardcode_into_libs=yes
  10711. # Ideally, we could use ldconfig to report *all* directores which are
  10712. # searched for libraries, however this is still not possible. Aside from not
  10713. # being certain /sbin/ldconfig is available, command
  10714. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10715. # even though it is searched at run-time. Try to do the best guess by
  10716. # appending ld.so.conf contents (and includes) to the search path.
  10717. if test -f /etc/ld.so.conf; then
  10718. 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' ' '`
  10719. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10720. fi
  10721. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10722. # powerpc, because MkLinux only supported shared libraries with the
  10723. # GNU dynamic linker. Since this was broken with cross compilers,
  10724. # most powerpc-linux boxes support dynamic linking these days and
  10725. # people can always --disable-shared, the test was removed, and we
  10726. # assume the GNU/Linux dynamic linker is in use.
  10727. dynamic_linker='GNU/Linux ld.so'
  10728. ;;
  10729. netbsdelf*-gnu)
  10730. version_type=linux
  10731. need_lib_prefix=no
  10732. need_version=no
  10733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10734. soname_spec='${libname}${release}${shared_ext}$major'
  10735. shlibpath_var=LD_LIBRARY_PATH
  10736. shlibpath_overrides_runpath=no
  10737. hardcode_into_libs=yes
  10738. dynamic_linker='NetBSD ld.elf_so'
  10739. ;;
  10740. netbsd*)
  10741. version_type=sunos
  10742. need_lib_prefix=no
  10743. need_version=no
  10744. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10745. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10746. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10747. dynamic_linker='NetBSD (a.out) ld.so'
  10748. else
  10749. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10750. soname_spec='$libname$release$shared_ext$major'
  10751. dynamic_linker='NetBSD ld.elf_so'
  10752. fi
  10753. shlibpath_var=LD_LIBRARY_PATH
  10754. shlibpath_overrides_runpath=yes
  10755. hardcode_into_libs=yes
  10756. ;;
  10757. newsos6)
  10758. version_type=linux # correct to gnu/linux during the next big refactor
  10759. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10760. shlibpath_var=LD_LIBRARY_PATH
  10761. shlibpath_overrides_runpath=yes
  10762. ;;
  10763. *nto* | *qnx*)
  10764. version_type=qnx
  10765. need_lib_prefix=no
  10766. need_version=no
  10767. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10768. soname_spec='$libname$release$shared_ext$major'
  10769. shlibpath_var=LD_LIBRARY_PATH
  10770. shlibpath_overrides_runpath=no
  10771. hardcode_into_libs=yes
  10772. dynamic_linker='ldqnx.so'
  10773. ;;
  10774. openbsd* | bitrig*)
  10775. version_type=sunos
  10776. sys_lib_dlsearch_path_spec=/usr/lib
  10777. need_lib_prefix=no
  10778. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10779. need_version=no
  10780. else
  10781. need_version=yes
  10782. fi
  10783. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10784. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10785. shlibpath_var=LD_LIBRARY_PATH
  10786. shlibpath_overrides_runpath=yes
  10787. ;;
  10788. os2*)
  10789. libname_spec='$name'
  10790. version_type=windows
  10791. shrext_cmds=.dll
  10792. need_version=no
  10793. need_lib_prefix=no
  10794. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10795. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10796. v=$($ECHO $release$versuffix | tr -d .-);
  10797. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10798. $ECHO $n$v`$shared_ext'
  10799. library_names_spec='${libname}_dll.$libext'
  10800. dynamic_linker='OS/2 ld.exe'
  10801. shlibpath_var=BEGINLIBPATH
  10802. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10803. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10804. postinstall_cmds='base_file=`basename \$file`~
  10805. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10806. dldir=$destdir/`dirname \$dlpath`~
  10807. test -d \$dldir || mkdir -p \$dldir~
  10808. $install_prog $dir/$dlname \$dldir/$dlname~
  10809. chmod a+x \$dldir/$dlname~
  10810. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10811. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10812. fi'
  10813. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10814. dlpath=$dir/\$dldll~
  10815. $RM \$dlpath'
  10816. ;;
  10817. osf3* | osf4* | osf5*)
  10818. version_type=osf
  10819. need_lib_prefix=no
  10820. need_version=no
  10821. soname_spec='$libname$release$shared_ext$major'
  10822. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10823. shlibpath_var=LD_LIBRARY_PATH
  10824. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10825. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10826. ;;
  10827. rdos*)
  10828. dynamic_linker=no
  10829. ;;
  10830. solaris*)
  10831. version_type=linux # correct to gnu/linux during the next big refactor
  10832. need_lib_prefix=no
  10833. need_version=no
  10834. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10835. soname_spec='$libname$release$shared_ext$major'
  10836. shlibpath_var=LD_LIBRARY_PATH
  10837. shlibpath_overrides_runpath=yes
  10838. hardcode_into_libs=yes
  10839. # ldd complains unless libraries are executable
  10840. postinstall_cmds='chmod +x $lib'
  10841. ;;
  10842. sunos4*)
  10843. version_type=sunos
  10844. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10845. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10846. shlibpath_var=LD_LIBRARY_PATH
  10847. shlibpath_overrides_runpath=yes
  10848. if test yes = "$with_gnu_ld"; then
  10849. need_lib_prefix=no
  10850. fi
  10851. need_version=yes
  10852. ;;
  10853. sysv4 | sysv4.3*)
  10854. version_type=linux # correct to gnu/linux during the next big refactor
  10855. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10856. soname_spec='$libname$release$shared_ext$major'
  10857. shlibpath_var=LD_LIBRARY_PATH
  10858. case $host_vendor in
  10859. sni)
  10860. shlibpath_overrides_runpath=no
  10861. need_lib_prefix=no
  10862. runpath_var=LD_RUN_PATH
  10863. ;;
  10864. siemens)
  10865. need_lib_prefix=no
  10866. ;;
  10867. motorola)
  10868. need_lib_prefix=no
  10869. need_version=no
  10870. shlibpath_overrides_runpath=no
  10871. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10872. ;;
  10873. esac
  10874. ;;
  10875. sysv4*MP*)
  10876. if test -d /usr/nec; then
  10877. version_type=linux # correct to gnu/linux during the next big refactor
  10878. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10879. soname_spec='$libname$shared_ext.$major'
  10880. shlibpath_var=LD_LIBRARY_PATH
  10881. fi
  10882. ;;
  10883. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10884. version_type=sco
  10885. need_lib_prefix=no
  10886. need_version=no
  10887. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10888. soname_spec='$libname$release$shared_ext$major'
  10889. shlibpath_var=LD_LIBRARY_PATH
  10890. shlibpath_overrides_runpath=yes
  10891. hardcode_into_libs=yes
  10892. if test yes = "$with_gnu_ld"; then
  10893. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10894. else
  10895. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10896. case $host_os in
  10897. sco3.2v5*)
  10898. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10899. ;;
  10900. esac
  10901. fi
  10902. sys_lib_dlsearch_path_spec='/usr/lib'
  10903. ;;
  10904. tpf*)
  10905. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10906. version_type=linux # correct to gnu/linux during the next big refactor
  10907. need_lib_prefix=no
  10908. need_version=no
  10909. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10910. shlibpath_var=LD_LIBRARY_PATH
  10911. shlibpath_overrides_runpath=no
  10912. hardcode_into_libs=yes
  10913. ;;
  10914. uts4*)
  10915. version_type=linux # correct to gnu/linux during the next big refactor
  10916. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10917. soname_spec='$libname$release$shared_ext$major'
  10918. shlibpath_var=LD_LIBRARY_PATH
  10919. ;;
  10920. *)
  10921. dynamic_linker=no
  10922. ;;
  10923. esac
  10924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10925. $as_echo "$dynamic_linker" >&6; }
  10926. test no = "$dynamic_linker" && can_build_shared=no
  10927. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10928. if test yes = "$GCC"; then
  10929. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10930. fi
  10931. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10932. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10933. fi
  10934. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10935. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10936. fi
  10937. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10938. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10939. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10940. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10941. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10942. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10944. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10945. hardcode_action=
  10946. if test -n "$hardcode_libdir_flag_spec" ||
  10947. test -n "$runpath_var" ||
  10948. test yes = "$hardcode_automatic"; then
  10949. # We can hardcode non-existent directories.
  10950. if test no != "$hardcode_direct" &&
  10951. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10952. # have to relink, otherwise we might link with an installed library
  10953. # when we should be linking with a yet-to-be-installed one
  10954. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10955. test no != "$hardcode_minus_L"; then
  10956. # Linking always hardcodes the temporary library directory.
  10957. hardcode_action=relink
  10958. else
  10959. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10960. hardcode_action=immediate
  10961. fi
  10962. else
  10963. # We cannot hardcode anything, or else we can only hardcode existing
  10964. # directories.
  10965. hardcode_action=unsupported
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10968. $as_echo "$hardcode_action" >&6; }
  10969. if test relink = "$hardcode_action" ||
  10970. test yes = "$inherit_rpath"; then
  10971. # Fast installation is not supported
  10972. enable_fast_install=no
  10973. elif test yes = "$shlibpath_overrides_runpath" ||
  10974. test no = "$enable_shared"; then
  10975. # Fast installation is not necessary
  10976. enable_fast_install=needless
  10977. fi
  10978. if test yes != "$enable_dlopen"; then
  10979. enable_dlopen=unknown
  10980. enable_dlopen_self=unknown
  10981. enable_dlopen_self_static=unknown
  10982. else
  10983. lt_cv_dlopen=no
  10984. lt_cv_dlopen_libs=
  10985. case $host_os in
  10986. beos*)
  10987. lt_cv_dlopen=load_add_on
  10988. lt_cv_dlopen_libs=
  10989. lt_cv_dlopen_self=yes
  10990. ;;
  10991. mingw* | pw32* | cegcc*)
  10992. lt_cv_dlopen=LoadLibrary
  10993. lt_cv_dlopen_libs=
  10994. ;;
  10995. cygwin*)
  10996. lt_cv_dlopen=dlopen
  10997. lt_cv_dlopen_libs=
  10998. ;;
  10999. darwin*)
  11000. # if libdl is installed we need to link against it
  11001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11002. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11003. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11004. $as_echo_n "(cached) " >&6
  11005. else
  11006. ac_check_lib_save_LIBS=$LIBS
  11007. LIBS="-ldl $LIBS"
  11008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11009. /* end confdefs.h. */
  11010. /* Override any GCC internal prototype to avoid an error.
  11011. Use char because int might match the return type of a GCC
  11012. builtin and then its argument prototype would still apply. */
  11013. #ifdef __cplusplus
  11014. extern "C"
  11015. #endif
  11016. char dlopen ();
  11017. int
  11018. main ()
  11019. {
  11020. return dlopen ();
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_c_try_link "$LINENO"; then :
  11026. ac_cv_lib_dl_dlopen=yes
  11027. else
  11028. ac_cv_lib_dl_dlopen=no
  11029. fi
  11030. rm -f core conftest.err conftest.$ac_objext \
  11031. conftest$ac_exeext conftest.$ac_ext
  11032. LIBS=$ac_check_lib_save_LIBS
  11033. fi
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11035. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11036. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11037. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11038. else
  11039. lt_cv_dlopen=dyld
  11040. lt_cv_dlopen_libs=
  11041. lt_cv_dlopen_self=yes
  11042. fi
  11043. ;;
  11044. tpf*)
  11045. # Don't try to run any link tests for TPF. We know it's impossible
  11046. # because TPF is a cross-compiler, and we know how we open DSOs.
  11047. lt_cv_dlopen=dlopen
  11048. lt_cv_dlopen_libs=
  11049. lt_cv_dlopen_self=no
  11050. ;;
  11051. *)
  11052. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11053. if test "x$ac_cv_func_shl_load" = xyes; then :
  11054. lt_cv_dlopen=shl_load
  11055. else
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11057. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11058. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11059. $as_echo_n "(cached) " >&6
  11060. else
  11061. ac_check_lib_save_LIBS=$LIBS
  11062. LIBS="-ldld $LIBS"
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. /* Override any GCC internal prototype to avoid an error.
  11066. Use char because int might match the return type of a GCC
  11067. builtin and then its argument prototype would still apply. */
  11068. #ifdef __cplusplus
  11069. extern "C"
  11070. #endif
  11071. char shl_load ();
  11072. int
  11073. main ()
  11074. {
  11075. return shl_load ();
  11076. ;
  11077. return 0;
  11078. }
  11079. _ACEOF
  11080. if ac_fn_c_try_link "$LINENO"; then :
  11081. ac_cv_lib_dld_shl_load=yes
  11082. else
  11083. ac_cv_lib_dld_shl_load=no
  11084. fi
  11085. rm -f core conftest.err conftest.$ac_objext \
  11086. conftest$ac_exeext conftest.$ac_ext
  11087. LIBS=$ac_check_lib_save_LIBS
  11088. fi
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11090. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11091. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11092. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11093. else
  11094. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11095. if test "x$ac_cv_func_dlopen" = xyes; then :
  11096. lt_cv_dlopen=dlopen
  11097. else
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11099. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11100. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11101. $as_echo_n "(cached) " >&6
  11102. else
  11103. ac_check_lib_save_LIBS=$LIBS
  11104. LIBS="-ldl $LIBS"
  11105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11106. /* end confdefs.h. */
  11107. /* Override any GCC internal prototype to avoid an error.
  11108. Use char because int might match the return type of a GCC
  11109. builtin and then its argument prototype would still apply. */
  11110. #ifdef __cplusplus
  11111. extern "C"
  11112. #endif
  11113. char dlopen ();
  11114. int
  11115. main ()
  11116. {
  11117. return dlopen ();
  11118. ;
  11119. return 0;
  11120. }
  11121. _ACEOF
  11122. if ac_fn_c_try_link "$LINENO"; then :
  11123. ac_cv_lib_dl_dlopen=yes
  11124. else
  11125. ac_cv_lib_dl_dlopen=no
  11126. fi
  11127. rm -f core conftest.err conftest.$ac_objext \
  11128. conftest$ac_exeext conftest.$ac_ext
  11129. LIBS=$ac_check_lib_save_LIBS
  11130. fi
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11132. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11133. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11134. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11135. else
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11137. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11138. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11139. $as_echo_n "(cached) " >&6
  11140. else
  11141. ac_check_lib_save_LIBS=$LIBS
  11142. LIBS="-lsvld $LIBS"
  11143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11144. /* end confdefs.h. */
  11145. /* Override any GCC internal prototype to avoid an error.
  11146. Use char because int might match the return type of a GCC
  11147. builtin and then its argument prototype would still apply. */
  11148. #ifdef __cplusplus
  11149. extern "C"
  11150. #endif
  11151. char dlopen ();
  11152. int
  11153. main ()
  11154. {
  11155. return dlopen ();
  11156. ;
  11157. return 0;
  11158. }
  11159. _ACEOF
  11160. if ac_fn_c_try_link "$LINENO"; then :
  11161. ac_cv_lib_svld_dlopen=yes
  11162. else
  11163. ac_cv_lib_svld_dlopen=no
  11164. fi
  11165. rm -f core conftest.err conftest.$ac_objext \
  11166. conftest$ac_exeext conftest.$ac_ext
  11167. LIBS=$ac_check_lib_save_LIBS
  11168. fi
  11169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11170. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11171. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11172. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11173. else
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11175. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11176. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11177. $as_echo_n "(cached) " >&6
  11178. else
  11179. ac_check_lib_save_LIBS=$LIBS
  11180. LIBS="-ldld $LIBS"
  11181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11182. /* end confdefs.h. */
  11183. /* Override any GCC internal prototype to avoid an error.
  11184. Use char because int might match the return type of a GCC
  11185. builtin and then its argument prototype would still apply. */
  11186. #ifdef __cplusplus
  11187. extern "C"
  11188. #endif
  11189. char dld_link ();
  11190. int
  11191. main ()
  11192. {
  11193. return dld_link ();
  11194. ;
  11195. return 0;
  11196. }
  11197. _ACEOF
  11198. if ac_fn_c_try_link "$LINENO"; then :
  11199. ac_cv_lib_dld_dld_link=yes
  11200. else
  11201. ac_cv_lib_dld_dld_link=no
  11202. fi
  11203. rm -f core conftest.err conftest.$ac_objext \
  11204. conftest$ac_exeext conftest.$ac_ext
  11205. LIBS=$ac_check_lib_save_LIBS
  11206. fi
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11208. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11209. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11210. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11211. fi
  11212. fi
  11213. fi
  11214. fi
  11215. fi
  11216. fi
  11217. ;;
  11218. esac
  11219. if test no = "$lt_cv_dlopen"; then
  11220. enable_dlopen=no
  11221. else
  11222. enable_dlopen=yes
  11223. fi
  11224. case $lt_cv_dlopen in
  11225. dlopen)
  11226. save_CPPFLAGS=$CPPFLAGS
  11227. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11228. save_LDFLAGS=$LDFLAGS
  11229. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11230. save_LIBS=$LIBS
  11231. LIBS="$lt_cv_dlopen_libs $LIBS"
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11233. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11234. if ${lt_cv_dlopen_self+:} false; then :
  11235. $as_echo_n "(cached) " >&6
  11236. else
  11237. if test yes = "$cross_compiling"; then :
  11238. lt_cv_dlopen_self=cross
  11239. else
  11240. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11241. lt_status=$lt_dlunknown
  11242. cat > conftest.$ac_ext <<_LT_EOF
  11243. #line $LINENO "configure"
  11244. #include "confdefs.h"
  11245. #if HAVE_DLFCN_H
  11246. #include <dlfcn.h>
  11247. #endif
  11248. #include <stdio.h>
  11249. #ifdef RTLD_GLOBAL
  11250. # define LT_DLGLOBAL RTLD_GLOBAL
  11251. #else
  11252. # ifdef DL_GLOBAL
  11253. # define LT_DLGLOBAL DL_GLOBAL
  11254. # else
  11255. # define LT_DLGLOBAL 0
  11256. # endif
  11257. #endif
  11258. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11259. find out it does not work in some platform. */
  11260. #ifndef LT_DLLAZY_OR_NOW
  11261. # ifdef RTLD_LAZY
  11262. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11263. # else
  11264. # ifdef DL_LAZY
  11265. # define LT_DLLAZY_OR_NOW DL_LAZY
  11266. # else
  11267. # ifdef RTLD_NOW
  11268. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11269. # else
  11270. # ifdef DL_NOW
  11271. # define LT_DLLAZY_OR_NOW DL_NOW
  11272. # else
  11273. # define LT_DLLAZY_OR_NOW 0
  11274. # endif
  11275. # endif
  11276. # endif
  11277. # endif
  11278. #endif
  11279. /* When -fvisibility=hidden is used, assume the code has been annotated
  11280. correspondingly for the symbols needed. */
  11281. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11282. int fnord () __attribute__((visibility("default")));
  11283. #endif
  11284. int fnord () { return 42; }
  11285. int main ()
  11286. {
  11287. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11288. int status = $lt_dlunknown;
  11289. if (self)
  11290. {
  11291. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11292. else
  11293. {
  11294. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11295. else puts (dlerror ());
  11296. }
  11297. /* dlclose (self); */
  11298. }
  11299. else
  11300. puts (dlerror ());
  11301. return status;
  11302. }
  11303. _LT_EOF
  11304. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11305. (eval $ac_link) 2>&5
  11306. ac_status=$?
  11307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11308. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11309. (./conftest; exit; ) >&5 2>/dev/null
  11310. lt_status=$?
  11311. case x$lt_status in
  11312. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11313. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11314. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11315. esac
  11316. else :
  11317. # compilation failed
  11318. lt_cv_dlopen_self=no
  11319. fi
  11320. fi
  11321. rm -fr conftest*
  11322. fi
  11323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11324. $as_echo "$lt_cv_dlopen_self" >&6; }
  11325. if test yes = "$lt_cv_dlopen_self"; then
  11326. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11328. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11329. if ${lt_cv_dlopen_self_static+:} false; then :
  11330. $as_echo_n "(cached) " >&6
  11331. else
  11332. if test yes = "$cross_compiling"; then :
  11333. lt_cv_dlopen_self_static=cross
  11334. else
  11335. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11336. lt_status=$lt_dlunknown
  11337. cat > conftest.$ac_ext <<_LT_EOF
  11338. #line $LINENO "configure"
  11339. #include "confdefs.h"
  11340. #if HAVE_DLFCN_H
  11341. #include <dlfcn.h>
  11342. #endif
  11343. #include <stdio.h>
  11344. #ifdef RTLD_GLOBAL
  11345. # define LT_DLGLOBAL RTLD_GLOBAL
  11346. #else
  11347. # ifdef DL_GLOBAL
  11348. # define LT_DLGLOBAL DL_GLOBAL
  11349. # else
  11350. # define LT_DLGLOBAL 0
  11351. # endif
  11352. #endif
  11353. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11354. find out it does not work in some platform. */
  11355. #ifndef LT_DLLAZY_OR_NOW
  11356. # ifdef RTLD_LAZY
  11357. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11358. # else
  11359. # ifdef DL_LAZY
  11360. # define LT_DLLAZY_OR_NOW DL_LAZY
  11361. # else
  11362. # ifdef RTLD_NOW
  11363. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11364. # else
  11365. # ifdef DL_NOW
  11366. # define LT_DLLAZY_OR_NOW DL_NOW
  11367. # else
  11368. # define LT_DLLAZY_OR_NOW 0
  11369. # endif
  11370. # endif
  11371. # endif
  11372. # endif
  11373. #endif
  11374. /* When -fvisibility=hidden is used, assume the code has been annotated
  11375. correspondingly for the symbols needed. */
  11376. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11377. int fnord () __attribute__((visibility("default")));
  11378. #endif
  11379. int fnord () { return 42; }
  11380. int main ()
  11381. {
  11382. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11383. int status = $lt_dlunknown;
  11384. if (self)
  11385. {
  11386. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11387. else
  11388. {
  11389. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11390. else puts (dlerror ());
  11391. }
  11392. /* dlclose (self); */
  11393. }
  11394. else
  11395. puts (dlerror ());
  11396. return status;
  11397. }
  11398. _LT_EOF
  11399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11400. (eval $ac_link) 2>&5
  11401. ac_status=$?
  11402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11403. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11404. (./conftest; exit; ) >&5 2>/dev/null
  11405. lt_status=$?
  11406. case x$lt_status in
  11407. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11408. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11409. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11410. esac
  11411. else :
  11412. # compilation failed
  11413. lt_cv_dlopen_self_static=no
  11414. fi
  11415. fi
  11416. rm -fr conftest*
  11417. fi
  11418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11419. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11420. fi
  11421. CPPFLAGS=$save_CPPFLAGS
  11422. LDFLAGS=$save_LDFLAGS
  11423. LIBS=$save_LIBS
  11424. ;;
  11425. esac
  11426. case $lt_cv_dlopen_self in
  11427. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11428. *) enable_dlopen_self=unknown ;;
  11429. esac
  11430. case $lt_cv_dlopen_self_static in
  11431. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11432. *) enable_dlopen_self_static=unknown ;;
  11433. esac
  11434. fi
  11435. striplib=
  11436. old_striplib=
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11438. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11439. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11440. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11441. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11443. $as_echo "yes" >&6; }
  11444. else
  11445. # FIXME - insert some real tests, host_os isn't really good enough
  11446. case $host_os in
  11447. darwin*)
  11448. if test -n "$STRIP"; then
  11449. striplib="$STRIP -x"
  11450. old_striplib="$STRIP -S"
  11451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11452. $as_echo "yes" >&6; }
  11453. else
  11454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11455. $as_echo "no" >&6; }
  11456. fi
  11457. ;;
  11458. *)
  11459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11460. $as_echo "no" >&6; }
  11461. ;;
  11462. esac
  11463. fi
  11464. # Report what library types will actually be built
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11466. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11468. $as_echo "$can_build_shared" >&6; }
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11470. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11471. test no = "$can_build_shared" && enable_shared=no
  11472. # On AIX, shared libraries and static libraries use the same namespace, and
  11473. # are all built from PIC.
  11474. case $host_os in
  11475. aix3*)
  11476. test yes = "$enable_shared" && enable_static=no
  11477. if test -n "$RANLIB"; then
  11478. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11479. postinstall_cmds='$RANLIB $lib'
  11480. fi
  11481. ;;
  11482. aix[4-9]*)
  11483. if test ia64 != "$host_cpu"; then
  11484. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11485. yes,aix,yes) ;; # shared object as lib.so file only
  11486. yes,svr4,*) ;; # shared object as lib.so archive member only
  11487. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11488. esac
  11489. fi
  11490. ;;
  11491. esac
  11492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11493. $as_echo "$enable_shared" >&6; }
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11495. $as_echo_n "checking whether to build static libraries... " >&6; }
  11496. # Make sure either enable_shared or enable_static is yes.
  11497. test yes = "$enable_shared" || enable_static=yes
  11498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11499. $as_echo "$enable_static" >&6; }
  11500. fi
  11501. ac_ext=c
  11502. ac_cpp='$CPP $CPPFLAGS'
  11503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11506. CC=$lt_save_CC
  11507. ac_config_commands="$ac_config_commands libtool"
  11508. # Only expand once:
  11509. if (test "$USE_MAINTAINER_MODE" = "yes"); then
  11510. # Extract the first word of "lcov", so it can be a program name with args.
  11511. set dummy lcov; ac_word=$2
  11512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11513. $as_echo_n "checking for $ac_word... " >&6; }
  11514. if ${ac_cv_prog_enable_coverage+:} false; then :
  11515. $as_echo_n "(cached) " >&6
  11516. else
  11517. if test -n "$enable_coverage"; then
  11518. ac_cv_prog_enable_coverage="$enable_coverage" # Let the user override the test.
  11519. else
  11520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11521. for as_dir in $PATH
  11522. do
  11523. IFS=$as_save_IFS
  11524. test -z "$as_dir" && as_dir=.
  11525. for ac_exec_ext in '' $ac_executable_extensions; do
  11526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11527. ac_cv_prog_enable_coverage="yes"
  11528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11529. break 2
  11530. fi
  11531. done
  11532. done
  11533. IFS=$as_save_IFS
  11534. test -z "$ac_cv_prog_enable_coverage" && ac_cv_prog_enable_coverage="no"
  11535. fi
  11536. fi
  11537. enable_coverage=$ac_cv_prog_enable_coverage
  11538. if test -n "$enable_coverage"; then
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
  11540. $as_echo "$enable_coverage" >&6; }
  11541. else
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11543. $as_echo "no" >&6; }
  11544. fi
  11545. # Extract the first word of "dbus-run-session", so it can be a program name with args.
  11546. set dummy dbus-run-session; ac_word=$2
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11548. $as_echo_n "checking for $ac_word... " >&6; }
  11549. if ${ac_cv_prog_enable_dbus_run_session+:} false; then :
  11550. $as_echo_n "(cached) " >&6
  11551. else
  11552. if test -n "$enable_dbus_run_session"; then
  11553. ac_cv_prog_enable_dbus_run_session="$enable_dbus_run_session" # Let the user override the test.
  11554. else
  11555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11556. for as_dir in $PATH
  11557. do
  11558. IFS=$as_save_IFS
  11559. test -z "$as_dir" && as_dir=.
  11560. for ac_exec_ext in '' $ac_executable_extensions; do
  11561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11562. ac_cv_prog_enable_dbus_run_session="yes"
  11563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11564. break 2
  11565. fi
  11566. done
  11567. done
  11568. IFS=$as_save_IFS
  11569. fi
  11570. fi
  11571. enable_dbus_run_session=$ac_cv_prog_enable_dbus_run_session
  11572. if test -n "$enable_dbus_run_session"; then
  11573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dbus_run_session" >&5
  11574. $as_echo "$enable_dbus_run_session" >&6; }
  11575. else
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11577. $as_echo "no" >&6; }
  11578. fi
  11579. # Extract the first word of "valgrind", so it can be a program name with args.
  11580. set dummy valgrind; ac_word=$2
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11582. $as_echo_n "checking for $ac_word... " >&6; }
  11583. if ${ac_cv_prog_enable_valgrind+:} false; then :
  11584. $as_echo_n "(cached) " >&6
  11585. else
  11586. if test -n "$enable_valgrind"; then
  11587. ac_cv_prog_enable_valgrind="$enable_valgrind" # Let the user override the test.
  11588. else
  11589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11590. for as_dir in $PATH
  11591. do
  11592. IFS=$as_save_IFS
  11593. test -z "$as_dir" && as_dir=.
  11594. for ac_exec_ext in '' $ac_executable_extensions; do
  11595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11596. ac_cv_prog_enable_valgrind="yes"
  11597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11598. break 2
  11599. fi
  11600. done
  11601. done
  11602. IFS=$as_save_IFS
  11603. fi
  11604. fi
  11605. enable_valgrind=$ac_cv_prog_enable_valgrind
  11606. if test -n "$enable_valgrind"; then
  11607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_valgrind" >&5
  11608. $as_echo "$enable_valgrind" >&6; }
  11609. else
  11610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11611. $as_echo "no" >&6; }
  11612. fi
  11613. for ac_header in valgrind/memcheck.h
  11614. do :
  11615. ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
  11616. if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
  11617. cat >>confdefs.h <<_ACEOF
  11618. #define HAVE_VALGRIND_MEMCHECK_H 1
  11619. _ACEOF
  11620. fi
  11621. done
  11622. fi
  11623. if test "${enable_coverage}" = "yes"; then
  11624. COVERAGE_TRUE=
  11625. COVERAGE_FALSE='#'
  11626. else
  11627. COVERAGE_TRUE='#'
  11628. COVERAGE_FALSE=
  11629. fi
  11630. if test "${enable_dbus_run_session}" = "yes"; then
  11631. DBUS_RUN_SESSION_TRUE=
  11632. DBUS_RUN_SESSION_FALSE='#'
  11633. else
  11634. DBUS_RUN_SESSION_TRUE='#'
  11635. DBUS_RUN_SESSION_FALSE=
  11636. fi
  11637. if test "${enable_valgrind}" = "yes"; then
  11638. VALGRIND_TRUE=
  11639. VALGRIND_FALSE='#'
  11640. else
  11641. VALGRIND_TRUE='#'
  11642. VALGRIND_FALSE=
  11643. fi
  11644. misc_cflags=""
  11645. misc_ldflags=""
  11646. # Check whether --enable-optimization was given.
  11647. if test "${enable_optimization+set}" = set; then :
  11648. enableval=$enable_optimization;
  11649. if (test "${enableval}" = "no"); then
  11650. misc_cflags="$misc_cflags -O0"
  11651. fi
  11652. fi
  11653. # Check whether --enable-debug was given.
  11654. if test "${enable_debug+set}" = set; then :
  11655. enableval=$enable_debug;
  11656. if (test "${enableval}" = "yes" &&
  11657. test "${ac_cv_prog_cc_g}" = "yes"); then
  11658. misc_cflags="$misc_cflags -g"
  11659. fi
  11660. fi
  11661. # Check whether --enable-pie was given.
  11662. if test "${enable_pie+set}" = set; then :
  11663. enableval=$enable_pie;
  11664. if (test "${enableval}" = "yes" &&
  11665. test "${ac_cv_prog_cc_pie}" = "yes"); then
  11666. misc_cflags="$misc_cflags -fPIC"
  11667. misc_ldflags="$misc_ldflags -pie -Wl,-z,now"
  11668. fi
  11669. fi
  11670. if (test "$enable_coverage" = "yes"); then
  11671. misc_cflags="$misc_cflags --coverage"
  11672. misc_ldflags="$misc_ldflags --coverage"
  11673. fi
  11674. MISC_CFLAGS=$misc_cflags
  11675. MISC_LDFLAGS=$misc_ldflags
  11676. # Check whether --enable-threads was given.
  11677. if test "${enable_threads+set}" = set; then :
  11678. enableval=$enable_threads; enable_threads=${enableval}
  11679. fi
  11680. for ac_func in explicit_bzero
  11681. do :
  11682. ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
  11683. if test "x$ac_cv_func_explicit_bzero" = xyes; then :
  11684. cat >>confdefs.h <<_ACEOF
  11685. #define HAVE_EXPLICIT_BZERO 1
  11686. _ACEOF
  11687. fi
  11688. done
  11689. for ac_func in rawmemchr
  11690. do :
  11691. ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
  11692. if test "x$ac_cv_func_rawmemchr" = xyes; then :
  11693. cat >>confdefs.h <<_ACEOF
  11694. #define HAVE_RAWMEMCHR 1
  11695. _ACEOF
  11696. fi
  11697. done
  11698. ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
  11699. if test "x$ac_cv_func_signalfd" = xyes; then :
  11700. dummy=yes
  11701. else
  11702. as_fn_error $? "signalfd support is required" "$LINENO" 5
  11703. fi
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  11705. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  11706. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  11707. $as_echo_n "(cached) " >&6
  11708. else
  11709. ac_check_lib_save_LIBS=$LIBS
  11710. LIBS="-lrt $LIBS"
  11711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11712. /* end confdefs.h. */
  11713. /* Override any GCC internal prototype to avoid an error.
  11714. Use char because int might match the return type of a GCC
  11715. builtin and then its argument prototype would still apply. */
  11716. #ifdef __cplusplus
  11717. extern "C"
  11718. #endif
  11719. char clock_gettime ();
  11720. int
  11721. main ()
  11722. {
  11723. return clock_gettime ();
  11724. ;
  11725. return 0;
  11726. }
  11727. _ACEOF
  11728. if ac_fn_c_try_link "$LINENO"; then :
  11729. ac_cv_lib_rt_clock_gettime=yes
  11730. else
  11731. ac_cv_lib_rt_clock_gettime=no
  11732. fi
  11733. rm -f core conftest.err conftest.$ac_objext \
  11734. conftest$ac_exeext conftest.$ac_ext
  11735. LIBS=$ac_check_lib_save_LIBS
  11736. fi
  11737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  11738. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  11739. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  11740. dummy=yes
  11741. else
  11742. as_fn_error $? "realtime clock support is required" "$LINENO" 5
  11743. fi
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  11745. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  11746. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  11747. $as_echo_n "(cached) " >&6
  11748. else
  11749. ac_check_lib_save_LIBS=$LIBS
  11750. LIBS="-lpthread $LIBS"
  11751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11752. /* end confdefs.h. */
  11753. /* Override any GCC internal prototype to avoid an error.
  11754. Use char because int might match the return type of a GCC
  11755. builtin and then its argument prototype would still apply. */
  11756. #ifdef __cplusplus
  11757. extern "C"
  11758. #endif
  11759. char pthread_create ();
  11760. int
  11761. main ()
  11762. {
  11763. return pthread_create ();
  11764. ;
  11765. return 0;
  11766. }
  11767. _ACEOF
  11768. if ac_fn_c_try_link "$LINENO"; then :
  11769. ac_cv_lib_pthread_pthread_create=yes
  11770. else
  11771. ac_cv_lib_pthread_pthread_create=no
  11772. fi
  11773. rm -f core conftest.err conftest.$ac_objext \
  11774. conftest$ac_exeext conftest.$ac_ext
  11775. LIBS=$ac_check_lib_save_LIBS
  11776. fi
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  11778. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  11779. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  11780. dummy=yes
  11781. else
  11782. as_fn_error $? "posix thread support is required" "$LINENO" 5
  11783. fi
  11784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11785. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11786. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11787. $as_echo_n "(cached) " >&6
  11788. else
  11789. ac_check_lib_save_LIBS=$LIBS
  11790. LIBS="-ldl $LIBS"
  11791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11792. /* end confdefs.h. */
  11793. /* Override any GCC internal prototype to avoid an error.
  11794. Use char because int might match the return type of a GCC
  11795. builtin and then its argument prototype would still apply. */
  11796. #ifdef __cplusplus
  11797. extern "C"
  11798. #endif
  11799. char dlopen ();
  11800. int
  11801. main ()
  11802. {
  11803. return dlopen ();
  11804. ;
  11805. return 0;
  11806. }
  11807. _ACEOF
  11808. if ac_fn_c_try_link "$LINENO"; then :
  11809. ac_cv_lib_dl_dlopen=yes
  11810. else
  11811. ac_cv_lib_dl_dlopen=no
  11812. fi
  11813. rm -f core conftest.err conftest.$ac_objext \
  11814. conftest$ac_exeext conftest.$ac_ext
  11815. LIBS=$ac_check_lib_save_LIBS
  11816. fi
  11817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11818. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11819. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11820. dummy=yes
  11821. else
  11822. as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
  11823. fi
  11824. for ac_header in linux/types.h linux/if_alg.h
  11825. do :
  11826. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11827. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11828. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11829. cat >>confdefs.h <<_ACEOF
  11830. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11831. _ACEOF
  11832. fi
  11833. done
  11834. pkg_failed=no
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.28" >&5
  11836. $as_echo_n "checking for glib-2.0 >= 2.28... " >&6; }
  11837. if test -n "$GLIB_CFLAGS"; then
  11838. pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  11839. elif test -n "$PKG_CONFIG"; then
  11840. if test -n "$PKG_CONFIG" && \
  11841. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
  11842. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
  11843. ac_status=$?
  11844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11845. test $ac_status = 0; }; then
  11846. pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
  11847. test "x$?" != "x0" && pkg_failed=yes
  11848. else
  11849. pkg_failed=yes
  11850. fi
  11851. else
  11852. pkg_failed=untried
  11853. fi
  11854. if test -n "$GLIB_LIBS"; then
  11855. pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  11856. elif test -n "$PKG_CONFIG"; then
  11857. if test -n "$PKG_CONFIG" && \
  11858. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
  11859. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
  11860. ac_status=$?
  11861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11862. test $ac_status = 0; }; then
  11863. pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
  11864. test "x$?" != "x0" && pkg_failed=yes
  11865. else
  11866. pkg_failed=yes
  11867. fi
  11868. else
  11869. pkg_failed=untried
  11870. fi
  11871. if test $pkg_failed = yes; then
  11872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11873. $as_echo "no" >&6; }
  11874. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11875. _pkg_short_errors_supported=yes
  11876. else
  11877. _pkg_short_errors_supported=no
  11878. fi
  11879. if test $_pkg_short_errors_supported = yes; then
  11880. GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
  11881. else
  11882. GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
  11883. fi
  11884. # Put the nasty error message in config.log where it belongs
  11885. echo "$GLIB_PKG_ERRORS" >&5
  11886. as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
  11887. elif test $pkg_failed = untried; then
  11888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11889. $as_echo "no" >&6; }
  11890. as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
  11891. else
  11892. GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  11893. GLIB_LIBS=$pkg_cv_GLIB_LIBS
  11894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11895. $as_echo "yes" >&6; }
  11896. dummy=yes
  11897. fi
  11898. if (test "${enable_threads}" = "yes"); then
  11899. $as_echo "#define NEED_THREADS 1" >>confdefs.h
  11900. pkg_failed=no
  11901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 >= 2.16" >&5
  11902. $as_echo_n "checking for gthread-2.0 >= 2.16... " >&6; }
  11903. if test -n "$GTHREAD_CFLAGS"; then
  11904. pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
  11905. elif test -n "$PKG_CONFIG"; then
  11906. if test -n "$PKG_CONFIG" && \
  11907. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
  11908. ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
  11909. ac_status=$?
  11910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11911. test $ac_status = 0; }; then
  11912. pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
  11913. test "x$?" != "x0" && pkg_failed=yes
  11914. else
  11915. pkg_failed=yes
  11916. fi
  11917. else
  11918. pkg_failed=untried
  11919. fi
  11920. if test -n "$GTHREAD_LIBS"; then
  11921. pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
  11922. elif test -n "$PKG_CONFIG"; then
  11923. if test -n "$PKG_CONFIG" && \
  11924. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
  11925. ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
  11926. ac_status=$?
  11927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11928. test $ac_status = 0; }; then
  11929. pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
  11930. test "x$?" != "x0" && pkg_failed=yes
  11931. else
  11932. pkg_failed=yes
  11933. fi
  11934. else
  11935. pkg_failed=untried
  11936. fi
  11937. if test $pkg_failed = yes; then
  11938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11939. $as_echo "no" >&6; }
  11940. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11941. _pkg_short_errors_supported=yes
  11942. else
  11943. _pkg_short_errors_supported=no
  11944. fi
  11945. if test $_pkg_short_errors_supported = yes; then
  11946. GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
  11947. else
  11948. GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
  11949. fi
  11950. # Put the nasty error message in config.log where it belongs
  11951. echo "$GTHREAD_PKG_ERRORS" >&5
  11952. as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
  11953. elif test $pkg_failed = untried; then
  11954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11955. $as_echo "no" >&6; }
  11956. as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
  11957. else
  11958. GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
  11959. GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
  11960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11961. $as_echo "yes" >&6; }
  11962. dummy=yes
  11963. fi
  11964. GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
  11965. GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
  11966. fi
  11967. pkg_failed=no
  11968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.6" >&5
  11969. $as_echo_n "checking for dbus-1 >= 1.6... " >&6; }
  11970. if test -n "$DBUS_CFLAGS"; then
  11971. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  11972. elif test -n "$PKG_CONFIG"; then
  11973. if test -n "$PKG_CONFIG" && \
  11974. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.6\""; } >&5
  11975. ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.6") 2>&5
  11976. ac_status=$?
  11977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11978. test $ac_status = 0; }; then
  11979. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.6" 2>/dev/null`
  11980. test "x$?" != "x0" && pkg_failed=yes
  11981. else
  11982. pkg_failed=yes
  11983. fi
  11984. else
  11985. pkg_failed=untried
  11986. fi
  11987. if test -n "$DBUS_LIBS"; then
  11988. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  11989. elif test -n "$PKG_CONFIG"; then
  11990. if test -n "$PKG_CONFIG" && \
  11991. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.6\""; } >&5
  11992. ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.6") 2>&5
  11993. ac_status=$?
  11994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11995. test $ac_status = 0; }; then
  11996. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.6" 2>/dev/null`
  11997. test "x$?" != "x0" && pkg_failed=yes
  11998. else
  11999. pkg_failed=yes
  12000. fi
  12001. else
  12002. pkg_failed=untried
  12003. fi
  12004. if test $pkg_failed = yes; then
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12006. $as_echo "no" >&6; }
  12007. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12008. _pkg_short_errors_supported=yes
  12009. else
  12010. _pkg_short_errors_supported=no
  12011. fi
  12012. if test $_pkg_short_errors_supported = yes; then
  12013. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.6" 2>&1`
  12014. else
  12015. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.6" 2>&1`
  12016. fi
  12017. # Put the nasty error message in config.log where it belongs
  12018. echo "$DBUS_PKG_ERRORS" >&5
  12019. as_fn_error $? "D-Bus >= 1.6 is required" "$LINENO" 5
  12020. elif test $pkg_failed = untried; then
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12022. $as_echo "no" >&6; }
  12023. as_fn_error $? "D-Bus >= 1.6 is required" "$LINENO" 5
  12024. else
  12025. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  12026. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  12027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12028. $as_echo "yes" >&6; }
  12029. dummy=yes
  12030. fi
  12031. # Check whether --with-dbusconfdir was given.
  12032. if test "${with_dbusconfdir+set}" = set; then :
  12033. withval=$with_dbusconfdir; path_dbusconfdir=${withval}
  12034. fi
  12035. if (test -z "${path_dbusconfdir}"); then
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus configuration directory" >&5
  12037. $as_echo_n "checking D-Bus configuration directory... " >&6; }
  12038. path_dbusconfdir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
  12039. if (test -z "${path_dbusconfdir}"); then
  12040. as_fn_error $? "D-Bus configuration directory is required" "$LINENO" 5
  12041. fi
  12042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbusconfdir}" >&5
  12043. $as_echo "${path_dbusconfdir}" >&6; }
  12044. fi
  12045. DBUS_CONFDIR=${path_dbusconfdir}
  12046. # Check whether --with-dbussystembusdir was given.
  12047. if test "${with_dbussystembusdir+set}" = set; then :
  12048. withval=$with_dbussystembusdir; path_dbussystembusdir=${withval}
  12049. fi
  12050. if (test -z "${path_dbussystembusdir}"); then
  12051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus system bus services dir" >&5
  12052. $as_echo_n "checking D-Bus system bus services dir... " >&6; }
  12053. path_dbussystembusdir="`$PKG_CONFIG --variable=system_bus_services_dir dbus-1`"
  12054. if (test -z "${path_dbussystembusdir}"); then
  12055. as_fn_error $? "D-Bus system bus services directory is required" "$LINENO" 5
  12056. fi
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbussystembusdir}" >&5
  12058. $as_echo "${path_dbussystembusdir}" >&6; }
  12059. fi
  12060. DBUS_SYSTEMBUSDIR=${path_dbussystembusdir}
  12061. # Check whether --with-dbussessionbusdir was given.
  12062. if test "${with_dbussessionbusdir+set}" = set; then :
  12063. withval=$with_dbussessionbusdir; path_dbussessionbusdir=${withval}
  12064. fi
  12065. if (test -z "${path_dbussessionbusdir}"); then
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus session bus services dir" >&5
  12067. $as_echo_n "checking D-Bus session bus services dir... " >&6; }
  12068. path_dbussessionbusdir="`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`"
  12069. if (test -z "${path_dbussessionbusdir}"); then
  12070. as_fn_error $? "D-Bus session bus services directory is required" "$LINENO" 5
  12071. fi
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbussessionbusdir}" >&5
  12073. $as_echo "${path_dbussessionbusdir}" >&6; }
  12074. fi
  12075. DBUS_SESSIONBUSDIR=${path_dbussessionbusdir}
  12076. # Check whether --with-zsh-completion-dir was given.
  12077. if test "${with_zsh_completion_dir+set}" = set; then :
  12078. withval=$with_zsh_completion_dir; path_zshcompletiondir=${withval}
  12079. else
  12080. path_zshcompletiondir="yes"
  12081. fi
  12082. if (test "${path_zshcompletiondir}" = "yes"); then
  12083. path_zshcompletiondir="$datarootdir/zsh/site-functions"
  12084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_zshcompletiondir}" >&5
  12085. $as_echo "${path_zshcompletiondir}" >&6; }
  12086. fi
  12087. ZSH_COMPLETIONDIR=${path_zshcompletiondir}
  12088. if test "${path_zshcompletiondir}" != "no"; then
  12089. ZSH_COMPLETIONS_TRUE=
  12090. ZSH_COMPLETIONS_FALSE='#'
  12091. else
  12092. ZSH_COMPLETIONS_TRUE='#'
  12093. ZSH_COMPLETIONS_FALSE=
  12094. fi
  12095. # Check whether --enable-backtrace was given.
  12096. if test "${enable_backtrace+set}" = set; then :
  12097. enableval=$enable_backtrace; enable_backtrace=${enableval}
  12098. fi
  12099. if (test "${enable_backtrace}" = "yes"); then
  12100. ac_fn_c_check_header_mongrel "$LINENO" "elfutils/libdwfl.h" "ac_cv_header_elfutils_libdwfl_h" "$ac_includes_default"
  12101. if test "x$ac_cv_header_elfutils_libdwfl_h" = xyes; then :
  12102. dummy=yes
  12103. else
  12104. as_fn_error $? "elfutils support is required" "$LINENO" 5
  12105. fi
  12106. $as_echo "#define HAVE_BACKTRACE_SUPPORT 1" >>confdefs.h
  12107. BACKTRACE_CFLAGS=""
  12108. BACKTRACE_LIBS="-ldw"
  12109. fi
  12110. # Check whether --enable-library was given.
  12111. if test "${enable_library+set}" = set; then :
  12112. enableval=$enable_library; enable_library=${enableval}
  12113. fi
  12114. if test "${enable_library}" = "yes"; then
  12115. LIBRARY_TRUE=
  12116. LIBRARY_FALSE='#'
  12117. else
  12118. LIBRARY_TRUE='#'
  12119. LIBRARY_FALSE=
  12120. fi
  12121. # Check whether --enable-test was given.
  12122. if test "${enable_test+set}" = set; then :
  12123. enableval=$enable_test; enable_test=${enableval}
  12124. fi
  12125. if test "${enable_test}" = "yes"; then
  12126. TEST_TRUE=
  12127. TEST_FALSE='#'
  12128. else
  12129. TEST_TRUE='#'
  12130. TEST_FALSE=
  12131. fi
  12132. # Check whether --enable-nfc was given.
  12133. if test "${enable_nfc+set}" = set; then :
  12134. enableval=$enable_nfc; enable_nfc=${enableval}
  12135. fi
  12136. if test "${enable_nfc}" = "yes"; then
  12137. NFC_TRUE=
  12138. NFC_FALSE='#'
  12139. else
  12140. NFC_TRUE='#'
  12141. NFC_FALSE=
  12142. fi
  12143. # Check whether --enable-sap was given.
  12144. if test "${enable_sap+set}" = set; then :
  12145. enableval=$enable_sap; enable_sap=${enableval}
  12146. fi
  12147. if test "${enable_sap}" = "yes"; then
  12148. SAP_TRUE=
  12149. SAP_FALSE='#'
  12150. else
  12151. SAP_TRUE='#'
  12152. SAP_FALSE=
  12153. fi
  12154. # Check whether --enable-a2dp was given.
  12155. if test "${enable_a2dp+set}" = set; then :
  12156. enableval=$enable_a2dp; enable_a2dp=${enableval}
  12157. fi
  12158. if test "${enable_a2dp}" != "no"; then
  12159. A2DP_TRUE=
  12160. A2DP_FALSE='#'
  12161. else
  12162. A2DP_TRUE='#'
  12163. A2DP_FALSE=
  12164. fi
  12165. # Check whether --enable-avrcp was given.
  12166. if test "${enable_avrcp+set}" = set; then :
  12167. enableval=$enable_avrcp; enable_avrcp=${enableval}
  12168. fi
  12169. if test "${enable_avrcp}" != "no"; then
  12170. AVRCP_TRUE=
  12171. AVRCP_FALSE='#'
  12172. else
  12173. AVRCP_TRUE='#'
  12174. AVRCP_FALSE=
  12175. fi
  12176. # Check whether --enable-network was given.
  12177. if test "${enable_network+set}" = set; then :
  12178. enableval=$enable_network; enable_network=${enableval}
  12179. fi
  12180. if test "${enable_network}" != "no"; then
  12181. NETWORK_TRUE=
  12182. NETWORK_FALSE='#'
  12183. else
  12184. NETWORK_TRUE='#'
  12185. NETWORK_FALSE=
  12186. fi
  12187. # Check whether --enable-hid was given.
  12188. if test "${enable_hid+set}" = set; then :
  12189. enableval=$enable_hid; enable_hid=${enableval}
  12190. fi
  12191. if test "${enable_hid}" != "no"; then
  12192. HID_TRUE=
  12193. HID_FALSE='#'
  12194. else
  12195. HID_TRUE='#'
  12196. HID_FALSE=
  12197. fi
  12198. # Check whether --enable-hog was given.
  12199. if test "${enable_hog+set}" = set; then :
  12200. enableval=$enable_hog; enable_hog=${enableval}
  12201. fi
  12202. if test "${enable_hog}" != "no"; then
  12203. HOG_TRUE=
  12204. HOG_FALSE='#'
  12205. else
  12206. HOG_TRUE='#'
  12207. HOG_FALSE=
  12208. fi
  12209. # Check whether --enable-health was given.
  12210. if test "${enable_health+set}" = set; then :
  12211. enableval=$enable_health; enable_health=${enableval}
  12212. fi
  12213. if test "${enable_health}" = "yes"; then
  12214. HEALTH_TRUE=
  12215. HEALTH_FALSE='#'
  12216. else
  12217. HEALTH_TRUE='#'
  12218. HEALTH_FALSE=
  12219. fi
  12220. # Check whether --enable-tools was given.
  12221. if test "${enable_tools+set}" = set; then :
  12222. enableval=$enable_tools; enable_tools=${enableval}
  12223. fi
  12224. if test "${enable_tools}" != "no"; then
  12225. TOOLS_TRUE=
  12226. TOOLS_FALSE='#'
  12227. else
  12228. TOOLS_TRUE='#'
  12229. TOOLS_FALSE=
  12230. fi
  12231. # Check whether --enable-monitor was given.
  12232. if test "${enable_monitor+set}" = set; then :
  12233. enableval=$enable_monitor; enable_monitor=${enableval}
  12234. fi
  12235. if test "${enable_monitor}" != "no"; then
  12236. MONITOR_TRUE=
  12237. MONITOR_FALSE='#'
  12238. else
  12239. MONITOR_TRUE='#'
  12240. MONITOR_FALSE=
  12241. fi
  12242. # Check whether --enable-udev was given.
  12243. if test "${enable_udev+set}" = set; then :
  12244. enableval=$enable_udev; enable_udev=${enableval}
  12245. fi
  12246. if (test "${enable_tools}" != "no" && test "${enable_udev}" != "no"); then
  12247. pkg_failed=no
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libudev >= 172" >&5
  12249. $as_echo_n "checking for libudev >= 172... " >&6; }
  12250. if test -n "$UDEV_CFLAGS"; then
  12251. pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
  12252. elif test -n "$PKG_CONFIG"; then
  12253. if test -n "$PKG_CONFIG" && \
  12254. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 172\""; } >&5
  12255. ($PKG_CONFIG --exists --print-errors "libudev >= 172") 2>&5
  12256. ac_status=$?
  12257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12258. test $ac_status = 0; }; then
  12259. pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 172" 2>/dev/null`
  12260. test "x$?" != "x0" && pkg_failed=yes
  12261. else
  12262. pkg_failed=yes
  12263. fi
  12264. else
  12265. pkg_failed=untried
  12266. fi
  12267. if test -n "$UDEV_LIBS"; then
  12268. pkg_cv_UDEV_LIBS="$UDEV_LIBS"
  12269. elif test -n "$PKG_CONFIG"; then
  12270. if test -n "$PKG_CONFIG" && \
  12271. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 172\""; } >&5
  12272. ($PKG_CONFIG --exists --print-errors "libudev >= 172") 2>&5
  12273. ac_status=$?
  12274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12275. test $ac_status = 0; }; then
  12276. pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 172" 2>/dev/null`
  12277. test "x$?" != "x0" && pkg_failed=yes
  12278. else
  12279. pkg_failed=yes
  12280. fi
  12281. else
  12282. pkg_failed=untried
  12283. fi
  12284. if test $pkg_failed = yes; then
  12285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12286. $as_echo "no" >&6; }
  12287. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12288. _pkg_short_errors_supported=yes
  12289. else
  12290. _pkg_short_errors_supported=no
  12291. fi
  12292. if test $_pkg_short_errors_supported = yes; then
  12293. UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 172" 2>&1`
  12294. else
  12295. UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 172" 2>&1`
  12296. fi
  12297. # Put the nasty error message in config.log where it belongs
  12298. echo "$UDEV_PKG_ERRORS" >&5
  12299. as_fn_error $? "libudev >= 172 is required" "$LINENO" 5
  12300. elif test $pkg_failed = untried; then
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12302. $as_echo "no" >&6; }
  12303. as_fn_error $? "libudev >= 172 is required" "$LINENO" 5
  12304. else
  12305. UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
  12306. UDEV_LIBS=$pkg_cv_UDEV_LIBS
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12308. $as_echo "yes" >&6; }
  12309. dummy=yes
  12310. fi
  12311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_hwdb_new in -ludev" >&5
  12312. $as_echo_n "checking for udev_hwdb_new in -ludev... " >&6; }
  12313. if ${ac_cv_lib_udev_udev_hwdb_new+:} false; then :
  12314. $as_echo_n "(cached) " >&6
  12315. else
  12316. ac_check_lib_save_LIBS=$LIBS
  12317. LIBS="-ludev $LIBS"
  12318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12319. /* end confdefs.h. */
  12320. /* Override any GCC internal prototype to avoid an error.
  12321. Use char because int might match the return type of a GCC
  12322. builtin and then its argument prototype would still apply. */
  12323. #ifdef __cplusplus
  12324. extern "C"
  12325. #endif
  12326. char udev_hwdb_new ();
  12327. int
  12328. main ()
  12329. {
  12330. return udev_hwdb_new ();
  12331. ;
  12332. return 0;
  12333. }
  12334. _ACEOF
  12335. if ac_fn_c_try_link "$LINENO"; then :
  12336. ac_cv_lib_udev_udev_hwdb_new=yes
  12337. else
  12338. ac_cv_lib_udev_udev_hwdb_new=no
  12339. fi
  12340. rm -f core conftest.err conftest.$ac_objext \
  12341. conftest$ac_exeext conftest.$ac_ext
  12342. LIBS=$ac_check_lib_save_LIBS
  12343. fi
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_hwdb_new" >&5
  12345. $as_echo "$ac_cv_lib_udev_udev_hwdb_new" >&6; }
  12346. if test "x$ac_cv_lib_udev_udev_hwdb_new" = xyes; then :
  12347. $as_echo "#define HAVE_UDEV_HWDB_NEW 1" >>confdefs.h
  12348. fi
  12349. fi
  12350. if test "${enable_udev}" != "no"; then
  12351. UDEV_TRUE=
  12352. UDEV_FALSE='#'
  12353. else
  12354. UDEV_TRUE='#'
  12355. UDEV_FALSE=
  12356. fi
  12357. # Check whether --with-udevdir was given.
  12358. if test "${with_udevdir+set}" = set; then :
  12359. withval=$with_udevdir; path_udevdir=${withval}
  12360. fi
  12361. if (test "${enable_udev}" != "no" && test -z "${path_udevdir}"); then
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking udev directory" >&5
  12363. $as_echo_n "checking udev directory... " >&6; }
  12364. path_udevdir="`$PKG_CONFIG --variable=udevdir udev`"
  12365. if (test -z "${path_udevdir}"); then
  12366. as_fn_error $? "udev directory is required" "$LINENO" 5
  12367. fi
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_udevdir}" >&5
  12369. $as_echo "${path_udevdir}" >&6; }
  12370. fi
  12371. UDEV_DIR=${path_udevdir}
  12372. # Check whether --enable-cups was given.
  12373. if test "${enable_cups+set}" = set; then :
  12374. enableval=$enable_cups; enable_cups=${enableval}
  12375. fi
  12376. if test "${enable_cups}" != "no"; then
  12377. CUPS_TRUE=
  12378. CUPS_FALSE='#'
  12379. else
  12380. CUPS_TRUE='#'
  12381. CUPS_FALSE=
  12382. fi
  12383. # Check whether --enable-mesh was given.
  12384. if test "${enable_mesh+set}" = set; then :
  12385. enableval=$enable_mesh; enable_mesh=${enableval}
  12386. fi
  12387. if test "${enable_mesh}" = "yes"; then
  12388. MESH_TRUE=
  12389. MESH_FALSE='#'
  12390. else
  12391. MESH_TRUE='#'
  12392. MESH_FALSE=
  12393. fi
  12394. if (test "${enable_mesh}" = "yes"); then
  12395. pkg_failed=no
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.13" >&5
  12397. $as_echo_n "checking for json-c >= 0.13... " >&6; }
  12398. if test -n "$JSONC_CFLAGS"; then
  12399. pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
  12400. elif test -n "$PKG_CONFIG"; then
  12401. if test -n "$PKG_CONFIG" && \
  12402. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
  12403. ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
  12404. ac_status=$?
  12405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12406. test $ac_status = 0; }; then
  12407. pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.13" 2>/dev/null`
  12408. test "x$?" != "x0" && pkg_failed=yes
  12409. else
  12410. pkg_failed=yes
  12411. fi
  12412. else
  12413. pkg_failed=untried
  12414. fi
  12415. if test -n "$JSONC_LIBS"; then
  12416. pkg_cv_JSONC_LIBS="$JSONC_LIBS"
  12417. elif test -n "$PKG_CONFIG"; then
  12418. if test -n "$PKG_CONFIG" && \
  12419. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
  12420. ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
  12421. ac_status=$?
  12422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12423. test $ac_status = 0; }; then
  12424. pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c >= 0.13" 2>/dev/null`
  12425. test "x$?" != "x0" && pkg_failed=yes
  12426. else
  12427. pkg_failed=yes
  12428. fi
  12429. else
  12430. pkg_failed=untried
  12431. fi
  12432. if test $pkg_failed = yes; then
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12434. $as_echo "no" >&6; }
  12435. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12436. _pkg_short_errors_supported=yes
  12437. else
  12438. _pkg_short_errors_supported=no
  12439. fi
  12440. if test $_pkg_short_errors_supported = yes; then
  12441. JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
  12442. else
  12443. JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
  12444. fi
  12445. # Put the nasty error message in config.log where it belongs
  12446. echo "$JSONC_PKG_ERRORS" >&5
  12447. as_fn_error $? "json-c >= 0.13 is required" "$LINENO" 5
  12448. elif test $pkg_failed = untried; then
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12450. $as_echo "no" >&6; }
  12451. as_fn_error $? "json-c >= 0.13 is required" "$LINENO" 5
  12452. else
  12453. JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
  12454. JSONC_LIBS=$pkg_cv_JSONC_LIBS
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12456. $as_echo "yes" >&6; }
  12457. dummy=yes
  12458. fi
  12459. fi
  12460. # Check whether --enable-midi was given.
  12461. if test "${enable_midi+set}" = set; then :
  12462. enableval=$enable_midi; enable_midi=${enableval}
  12463. fi
  12464. if test "${enable_midi}" = "yes"; then
  12465. MIDI_TRUE=
  12466. MIDI_FALSE='#'
  12467. else
  12468. MIDI_TRUE='#'
  12469. MIDI_FALSE=
  12470. fi
  12471. if (test "${enable_midi}" = "yes"); then
  12472. pkg_failed=no
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alsa" >&5
  12474. $as_echo_n "checking for alsa... " >&6; }
  12475. if test -n "$ALSA_CFLAGS"; then
  12476. pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  12477. elif test -n "$PKG_CONFIG"; then
  12478. if test -n "$PKG_CONFIG" && \
  12479. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
  12480. ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  12481. ac_status=$?
  12482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12483. test $ac_status = 0; }; then
  12484. pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  12485. test "x$?" != "x0" && pkg_failed=yes
  12486. else
  12487. pkg_failed=yes
  12488. fi
  12489. else
  12490. pkg_failed=untried
  12491. fi
  12492. if test -n "$ALSA_LIBS"; then
  12493. pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  12494. elif test -n "$PKG_CONFIG"; then
  12495. if test -n "$PKG_CONFIG" && \
  12496. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
  12497. ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  12498. ac_status=$?
  12499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12500. test $ac_status = 0; }; then
  12501. pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  12502. test "x$?" != "x0" && pkg_failed=yes
  12503. else
  12504. pkg_failed=yes
  12505. fi
  12506. else
  12507. pkg_failed=untried
  12508. fi
  12509. if test $pkg_failed = yes; then
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12511. $as_echo "no" >&6; }
  12512. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12513. _pkg_short_errors_supported=yes
  12514. else
  12515. _pkg_short_errors_supported=no
  12516. fi
  12517. if test $_pkg_short_errors_supported = yes; then
  12518. ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
  12519. else
  12520. ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
  12521. fi
  12522. # Put the nasty error message in config.log where it belongs
  12523. echo "$ALSA_PKG_ERRORS" >&5
  12524. as_fn_error $? "ALSA lib is required for MIDI support" "$LINENO" 5
  12525. elif test $pkg_failed = untried; then
  12526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12527. $as_echo "no" >&6; }
  12528. as_fn_error $? "ALSA lib is required for MIDI support" "$LINENO" 5
  12529. else
  12530. ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  12531. ALSA_LIBS=$pkg_cv_ALSA_LIBS
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12533. $as_echo "yes" >&6; }
  12534. dummy=yes
  12535. fi
  12536. fi
  12537. # Check whether --enable-obex was given.
  12538. if test "${enable_obex+set}" = set; then :
  12539. enableval=$enable_obex; enable_obex=${enableval}
  12540. fi
  12541. if (test "${enable_obex}" != "no"); then
  12542. pkg_failed=no
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libical" >&5
  12544. $as_echo_n "checking for libical... " >&6; }
  12545. if test -n "$ICAL_CFLAGS"; then
  12546. pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
  12547. elif test -n "$PKG_CONFIG"; then
  12548. if test -n "$PKG_CONFIG" && \
  12549. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
  12550. ($PKG_CONFIG --exists --print-errors "libical") 2>&5
  12551. ac_status=$?
  12552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12553. test $ac_status = 0; }; then
  12554. pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
  12555. test "x$?" != "x0" && pkg_failed=yes
  12556. else
  12557. pkg_failed=yes
  12558. fi
  12559. else
  12560. pkg_failed=untried
  12561. fi
  12562. if test -n "$ICAL_LIBS"; then
  12563. pkg_cv_ICAL_LIBS="$ICAL_LIBS"
  12564. elif test -n "$PKG_CONFIG"; then
  12565. if test -n "$PKG_CONFIG" && \
  12566. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
  12567. ($PKG_CONFIG --exists --print-errors "libical") 2>&5
  12568. ac_status=$?
  12569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12570. test $ac_status = 0; }; then
  12571. pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
  12572. test "x$?" != "x0" && pkg_failed=yes
  12573. else
  12574. pkg_failed=yes
  12575. fi
  12576. else
  12577. pkg_failed=untried
  12578. fi
  12579. if test $pkg_failed = yes; then
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12581. $as_echo "no" >&6; }
  12582. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12583. _pkg_short_errors_supported=yes
  12584. else
  12585. _pkg_short_errors_supported=no
  12586. fi
  12587. if test $_pkg_short_errors_supported = yes; then
  12588. ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
  12589. else
  12590. ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
  12591. fi
  12592. # Put the nasty error message in config.log where it belongs
  12593. echo "$ICAL_PKG_ERRORS" >&5
  12594. as_fn_error $? "libical is required" "$LINENO" 5
  12595. elif test $pkg_failed = untried; then
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12597. $as_echo "no" >&6; }
  12598. as_fn_error $? "libical is required" "$LINENO" 5
  12599. else
  12600. ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
  12601. ICAL_LIBS=$pkg_cv_ICAL_LIBS
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12603. $as_echo "yes" >&6; }
  12604. dummy=yes
  12605. fi
  12606. fi
  12607. if test "${enable_obex}" != "no"; then
  12608. OBEX_TRUE=
  12609. OBEX_FALSE='#'
  12610. else
  12611. OBEX_TRUE='#'
  12612. OBEX_FALSE=
  12613. fi
  12614. # Check whether --enable-btpclient was given.
  12615. if test "${enable_btpclient+set}" = set; then :
  12616. enableval=$enable_btpclient; enable_btpclient=${enableval}
  12617. fi
  12618. if test "${enable_btpclient}" = "yes"; then
  12619. BTPCLIENT_TRUE=
  12620. BTPCLIENT_FALSE='#'
  12621. else
  12622. BTPCLIENT_TRUE='#'
  12623. BTPCLIENT_FALSE=
  12624. fi
  12625. # Check whether --enable-external_ell was given.
  12626. if test "${enable_external_ell+set}" = set; then :
  12627. enableval=$enable_external_ell; enable_external_ell=${enableval}
  12628. fi
  12629. if (test "${enable_external_ell}" = "yes"); then
  12630. pkg_failed=no
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ell >= 0.39" >&5
  12632. $as_echo_n "checking for ell >= 0.39... " >&6; }
  12633. if test -n "$ELL_CFLAGS"; then
  12634. pkg_cv_ELL_CFLAGS="$ELL_CFLAGS"
  12635. elif test -n "$PKG_CONFIG"; then
  12636. if test -n "$PKG_CONFIG" && \
  12637. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ell >= 0.39\""; } >&5
  12638. ($PKG_CONFIG --exists --print-errors "ell >= 0.39") 2>&5
  12639. ac_status=$?
  12640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12641. test $ac_status = 0; }; then
  12642. pkg_cv_ELL_CFLAGS=`$PKG_CONFIG --cflags "ell >= 0.39" 2>/dev/null`
  12643. test "x$?" != "x0" && pkg_failed=yes
  12644. else
  12645. pkg_failed=yes
  12646. fi
  12647. else
  12648. pkg_failed=untried
  12649. fi
  12650. if test -n "$ELL_LIBS"; then
  12651. pkg_cv_ELL_LIBS="$ELL_LIBS"
  12652. elif test -n "$PKG_CONFIG"; then
  12653. if test -n "$PKG_CONFIG" && \
  12654. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ell >= 0.39\""; } >&5
  12655. ($PKG_CONFIG --exists --print-errors "ell >= 0.39") 2>&5
  12656. ac_status=$?
  12657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12658. test $ac_status = 0; }; then
  12659. pkg_cv_ELL_LIBS=`$PKG_CONFIG --libs "ell >= 0.39" 2>/dev/null`
  12660. test "x$?" != "x0" && pkg_failed=yes
  12661. else
  12662. pkg_failed=yes
  12663. fi
  12664. else
  12665. pkg_failed=untried
  12666. fi
  12667. if test $pkg_failed = yes; then
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12669. $as_echo "no" >&6; }
  12670. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12671. _pkg_short_errors_supported=yes
  12672. else
  12673. _pkg_short_errors_supported=no
  12674. fi
  12675. if test $_pkg_short_errors_supported = yes; then
  12676. ELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ell >= 0.39" 2>&1`
  12677. else
  12678. ELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ell >= 0.39" 2>&1`
  12679. fi
  12680. # Put the nasty error message in config.log where it belongs
  12681. echo "$ELL_PKG_ERRORS" >&5
  12682. as_fn_error $? "Embedded Linux library >= 0.39 is required" "$LINENO" 5
  12683. elif test $pkg_failed = untried; then
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12685. $as_echo "no" >&6; }
  12686. as_fn_error $? "Embedded Linux library >= 0.39 is required" "$LINENO" 5
  12687. else
  12688. ELL_CFLAGS=$pkg_cv_ELL_CFLAGS
  12689. ELL_LIBS=$pkg_cv_ELL_LIBS
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12691. $as_echo "yes" >&6; }
  12692. dummy=yes
  12693. fi
  12694. fi
  12695. if test "${enable_external_ell}" = "yes" ||
  12696. (test "${enable_btpclient}" != "yes" &&
  12697. test "${enable_mesh}" != "yes"); then
  12698. EXTERNAL_ELL_TRUE=
  12699. EXTERNAL_ELL_FALSE='#'
  12700. else
  12701. EXTERNAL_ELL_TRUE='#'
  12702. EXTERNAL_ELL_FALSE=
  12703. fi
  12704. if test "${enable_btpclient}" = "yes" ||
  12705. test "${enable_mesh}" = "yes"; then
  12706. LIBSHARED_ELL_TRUE=
  12707. LIBSHARED_ELL_FALSE='#'
  12708. else
  12709. LIBSHARED_ELL_TRUE='#'
  12710. LIBSHARED_ELL_FALSE=
  12711. fi
  12712. # Check whether --enable-client was given.
  12713. if test "${enable_client+set}" = set; then :
  12714. enableval=$enable_client; enable_client=${enableval}
  12715. fi
  12716. if test "${enable_client}" != "no"; then
  12717. CLIENT_TRUE=
  12718. CLIENT_FALSE='#'
  12719. else
  12720. CLIENT_TRUE='#'
  12721. CLIENT_FALSE=
  12722. fi
  12723. if (test "${enable_client}" != "no" || test "${enable_mesh}" = "yes"); then
  12724. for ac_header in readline/readline.h
  12725. do :
  12726. ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  12727. if test "x$ac_cv_header_readline_readline_h" = xyes; then :
  12728. cat >>confdefs.h <<_ACEOF
  12729. #define HAVE_READLINE_READLINE_H 1
  12730. _ACEOF
  12731. enable_readline=yes
  12732. else
  12733. as_fn_error $? "readline header files are required" "$LINENO" 5
  12734. fi
  12735. done
  12736. fi
  12737. if test "${enable_readline}" = "yes"; then
  12738. READLINE_TRUE=
  12739. READLINE_FALSE='#'
  12740. else
  12741. READLINE_TRUE='#'
  12742. READLINE_FALSE=
  12743. fi
  12744. # Check whether --enable-systemd was given.
  12745. if test "${enable_systemd+set}" = set; then :
  12746. enableval=$enable_systemd; enable_systemd=${enableval}
  12747. fi
  12748. if test "${enable_systemd}" != "no"; then
  12749. SYSTEMD_TRUE=
  12750. SYSTEMD_FALSE='#'
  12751. else
  12752. SYSTEMD_TRUE='#'
  12753. SYSTEMD_FALSE=
  12754. fi
  12755. # Check whether --with-systemdsystemunitdir was given.
  12756. if test "${with_systemdsystemunitdir+set}" = set; then :
  12757. withval=$with_systemdsystemunitdir; path_systemunitdir=${withval}
  12758. fi
  12759. if (test "${enable_systemd}" != "no" && test -z "${path_systemunitdir}"); then
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking systemd system unit dir" >&5
  12761. $as_echo_n "checking systemd system unit dir... " >&6; }
  12762. path_systemunitdir="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
  12763. if (test -z "${path_systemunitdir}"); then
  12764. as_fn_error $? "systemd system unit directory is required" "$LINENO" 5
  12765. fi
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_systemunitdir}" >&5
  12767. $as_echo "${path_systemunitdir}" >&6; }
  12768. fi
  12769. SYSTEMD_SYSTEMUNITDIR=${path_systemunitdir}
  12770. # Check whether --with-systemduserunitdir was given.
  12771. if test "${with_systemduserunitdir+set}" = set; then :
  12772. withval=$with_systemduserunitdir; path_userunitdir=${withval}
  12773. fi
  12774. if (test "${enable_systemd}" != "no" && test -z "${path_userunitdir}"); then
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking systemd user unit dir" >&5
  12776. $as_echo_n "checking systemd user unit dir... " >&6; }
  12777. path_userunitdir="`$PKG_CONFIG --variable=systemduserunitdir systemd`"
  12778. if (test -z "${path_userunitdir}"); then
  12779. as_fn_error $? "systemd user unit directory is required" "$LINENO" 5
  12780. fi
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_userunitdir}" >&5
  12782. $as_echo "${path_userunitdir}" >&6; }
  12783. fi
  12784. SYSTEMD_USERUNITDIR=${path_userunitdir}
  12785. # Check whether --enable-datafiles was given.
  12786. if test "${enable_datafiles+set}" = set; then :
  12787. enableval=$enable_datafiles; enable_datafiles=${enableval}
  12788. fi
  12789. if test "${enable_datafiles}" != "no"; then
  12790. DATAFILES_TRUE=
  12791. DATAFILES_FALSE='#'
  12792. else
  12793. DATAFILES_TRUE='#'
  12794. DATAFILES_FALSE=
  12795. fi
  12796. # Check whether --enable-manpages was given.
  12797. if test "${enable_manpages+set}" = set; then :
  12798. enableval=$enable_manpages; enable_manpages=${enableval}
  12799. fi
  12800. if (test "${enable_manpages}" != "no"); then
  12801. for ac_prog in rst2man rst2man.py
  12802. do
  12803. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12804. set dummy $ac_prog; ac_word=$2
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12806. $as_echo_n "checking for $ac_word... " >&6; }
  12807. if ${ac_cv_prog_RST2MAN+:} false; then :
  12808. $as_echo_n "(cached) " >&6
  12809. else
  12810. if test -n "$RST2MAN"; then
  12811. ac_cv_prog_RST2MAN="$RST2MAN" # Let the user override the test.
  12812. else
  12813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12814. for as_dir in $PATH
  12815. do
  12816. IFS=$as_save_IFS
  12817. test -z "$as_dir" && as_dir=.
  12818. for ac_exec_ext in '' $ac_executable_extensions; do
  12819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12820. ac_cv_prog_RST2MAN="$ac_prog"
  12821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12822. break 2
  12823. fi
  12824. done
  12825. done
  12826. IFS=$as_save_IFS
  12827. fi
  12828. fi
  12829. RST2MAN=$ac_cv_prog_RST2MAN
  12830. if test -n "$RST2MAN"; then
  12831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
  12832. $as_echo "$RST2MAN" >&6; }
  12833. else
  12834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12835. $as_echo "no" >&6; }
  12836. fi
  12837. test -n "$RST2MAN" && break
  12838. done
  12839. test -n "$RST2MAN" || RST2MAN=""no""
  12840. if (test "${RST2MAN}" = "no" ); then
  12841. as_fn_error $? "rst2man is required" "$LINENO" 5
  12842. fi
  12843. fi
  12844. if test "${enable_manpages}" != "no"; then
  12845. MANPAGES_TRUE=
  12846. MANPAGES_FALSE='#'
  12847. else
  12848. MANPAGES_TRUE='#'
  12849. MANPAGES_FALSE=
  12850. fi
  12851. if test "${enable_manpages}" != "no" && test "${RST2MAN}" != "no"; then
  12852. RUN_RST2MAN_TRUE=
  12853. RUN_RST2MAN_FALSE='#'
  12854. else
  12855. RUN_RST2MAN_TRUE='#'
  12856. RUN_RST2MAN_FALSE=
  12857. fi
  12858. # Check whether --enable-testing was given.
  12859. if test "${enable_testing+set}" = set; then :
  12860. enableval=$enable_testing; enable_testing=${enableval}
  12861. fi
  12862. if test "${enable_testing}" = "yes"; then
  12863. TESTING_TRUE=
  12864. TESTING_FALSE='#'
  12865. else
  12866. TESTING_TRUE='#'
  12867. TESTING_FALSE=
  12868. fi
  12869. # Check whether --enable-experimental was given.
  12870. if test "${enable_experimental+set}" = set; then :
  12871. enableval=$enable_experimental; enable_experimental=${enableval}
  12872. fi
  12873. if test "${enable_experimental}" = "yes"; then
  12874. EXPERIMENTAL_TRUE=
  12875. EXPERIMENTAL_FALSE='#'
  12876. else
  12877. EXPERIMENTAL_TRUE='#'
  12878. EXPERIMENTAL_FALSE=
  12879. fi
  12880. # Check whether --enable-deprecated was given.
  12881. if test "${enable_deprecated+set}" = set; then :
  12882. enableval=$enable_deprecated; enable_deprecated=${enableval}
  12883. fi
  12884. if test "${enable_deprecated}" = "yes"; then
  12885. DEPRECATED_TRUE=
  12886. DEPRECATED_FALSE='#'
  12887. else
  12888. DEPRECATED_TRUE='#'
  12889. DEPRECATED_FALSE=
  12890. fi
  12891. # Check whether --enable-sixaxis was given.
  12892. if test "${enable_sixaxis+set}" = set; then :
  12893. enableval=$enable_sixaxis; enable_sixaxis=${enableval}
  12894. fi
  12895. if test "${enable_sixaxis}" = "yes" &&
  12896. test "${enable_udev}" != "no"; then
  12897. SIXAXIS_TRUE=
  12898. SIXAXIS_FALSE='#'
  12899. else
  12900. SIXAXIS_TRUE='#'
  12901. SIXAXIS_FALSE=
  12902. fi
  12903. # Check whether --enable-hid2hci was given.
  12904. if test "${enable_hid2hci+set}" = set; then :
  12905. enableval=$enable_hid2hci; enable_hid2hci=${enableval}
  12906. fi
  12907. if test "${enable_hid2hci}" = "yes" &&
  12908. test "${enable_udev}" != "no"; then
  12909. HID2HCI_TRUE=
  12910. HID2HCI_FALSE='#'
  12911. else
  12912. HID2HCI_TRUE='#'
  12913. HID2HCI_FALSE=
  12914. fi
  12915. # Check whether --enable-logger was given.
  12916. if test "${enable_logger+set}" = set; then :
  12917. enableval=$enable_logger; enable_logger=${enableval}
  12918. fi
  12919. if test "${enable_logger}" = "yes"; then
  12920. LOGGER_TRUE=
  12921. LOGGER_FALSE='#'
  12922. else
  12923. LOGGER_TRUE='#'
  12924. LOGGER_FALSE=
  12925. fi
  12926. # Check whether --enable-admin was given.
  12927. if test "${enable_admin+set}" = set; then :
  12928. enableval=$enable_admin; enable_admin=${enableval}
  12929. fi
  12930. if test "${enable_admin}" = "yes"; then
  12931. ADMIN_TRUE=
  12932. ADMIN_FALSE='#'
  12933. else
  12934. ADMIN_TRUE='#'
  12935. ADMIN_FALSE=
  12936. fi
  12937. if (test "${prefix}" = "NONE"); then
  12938. if (test "$localstatedir" = '${prefix}/var'); then
  12939. localstatedir='/var'
  12940. fi
  12941. prefix="${ac_default_prefix}"
  12942. fi
  12943. if (test "$localstatedir" = '${prefix}/var'); then
  12944. storagedir="${prefix}/var/lib/bluetooth"
  12945. else
  12946. storagedir="${localstatedir}/lib/bluetooth"
  12947. fi
  12948. cat >>confdefs.h <<_ACEOF
  12949. #define STORAGEDIR "${storagedir}"
  12950. _ACEOF
  12951. if (test "$sysconfdir" = '${prefix}/etc'); then
  12952. configdir="${prefix}/etc/bluetooth"
  12953. else
  12954. configdir="${sysconfdir}/bluetooth"
  12955. fi
  12956. cat >>confdefs.h <<_ACEOF
  12957. #define CONFIGDIR "${configdir}"
  12958. _ACEOF
  12959. CONFIGDIR="${configdir}"
  12960. cat >>confdefs.h <<_ACEOF
  12961. #define MESH_STORAGEDIR "${storagedir}/mesh"
  12962. _ACEOF
  12963. MESH_STORAGEDIR="${storagedir}/mesh"
  12964. # Check whether --enable-android was given.
  12965. if test "${enable_android+set}" = set; then :
  12966. enableval=$enable_android; enable_android=${enableval}
  12967. fi
  12968. if test "${enable_android}" = "yes"; then
  12969. ANDROID_TRUE=
  12970. ANDROID_FALSE='#'
  12971. else
  12972. ANDROID_TRUE='#'
  12973. ANDROID_FALSE=
  12974. fi
  12975. if (test "${enable_android}" = "yes"); then
  12976. pkg_failed=no
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbc >= 1.2" >&5
  12978. $as_echo_n "checking for sbc >= 1.2... " >&6; }
  12979. if test -n "$SBC_CFLAGS"; then
  12980. pkg_cv_SBC_CFLAGS="$SBC_CFLAGS"
  12981. elif test -n "$PKG_CONFIG"; then
  12982. if test -n "$PKG_CONFIG" && \
  12983. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sbc >= 1.2\""; } >&5
  12984. ($PKG_CONFIG --exists --print-errors "sbc >= 1.2") 2>&5
  12985. ac_status=$?
  12986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12987. test $ac_status = 0; }; then
  12988. pkg_cv_SBC_CFLAGS=`$PKG_CONFIG --cflags "sbc >= 1.2" 2>/dev/null`
  12989. test "x$?" != "x0" && pkg_failed=yes
  12990. else
  12991. pkg_failed=yes
  12992. fi
  12993. else
  12994. pkg_failed=untried
  12995. fi
  12996. if test -n "$SBC_LIBS"; then
  12997. pkg_cv_SBC_LIBS="$SBC_LIBS"
  12998. elif test -n "$PKG_CONFIG"; then
  12999. if test -n "$PKG_CONFIG" && \
  13000. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sbc >= 1.2\""; } >&5
  13001. ($PKG_CONFIG --exists --print-errors "sbc >= 1.2") 2>&5
  13002. ac_status=$?
  13003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13004. test $ac_status = 0; }; then
  13005. pkg_cv_SBC_LIBS=`$PKG_CONFIG --libs "sbc >= 1.2" 2>/dev/null`
  13006. test "x$?" != "x0" && pkg_failed=yes
  13007. else
  13008. pkg_failed=yes
  13009. fi
  13010. else
  13011. pkg_failed=untried
  13012. fi
  13013. if test $pkg_failed = yes; then
  13014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13015. $as_echo "no" >&6; }
  13016. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13017. _pkg_short_errors_supported=yes
  13018. else
  13019. _pkg_short_errors_supported=no
  13020. fi
  13021. if test $_pkg_short_errors_supported = yes; then
  13022. SBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sbc >= 1.2" 2>&1`
  13023. else
  13024. SBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sbc >= 1.2" 2>&1`
  13025. fi
  13026. # Put the nasty error message in config.log where it belongs
  13027. echo "$SBC_PKG_ERRORS" >&5
  13028. as_fn_error $? "SBC library >= 1.2 is required" "$LINENO" 5
  13029. elif test $pkg_failed = untried; then
  13030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13031. $as_echo "no" >&6; }
  13032. as_fn_error $? "SBC library >= 1.2 is required" "$LINENO" 5
  13033. else
  13034. SBC_CFLAGS=$pkg_cv_SBC_CFLAGS
  13035. SBC_LIBS=$pkg_cv_SBC_LIBS
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13037. $as_echo "yes" >&6; }
  13038. dummy=yes
  13039. fi
  13040. fi
  13041. if (test "${enable_android}" = "yes"); then
  13042. pkg_failed=no
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speexdsp >= 1.2" >&5
  13044. $as_echo_n "checking for speexdsp >= 1.2... " >&6; }
  13045. if test -n "$SPEEXDSP_CFLAGS"; then
  13046. pkg_cv_SPEEXDSP_CFLAGS="$SPEEXDSP_CFLAGS"
  13047. elif test -n "$PKG_CONFIG"; then
  13048. if test -n "$PKG_CONFIG" && \
  13049. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp >= 1.2\""; } >&5
  13050. ($PKG_CONFIG --exists --print-errors "speexdsp >= 1.2") 2>&5
  13051. ac_status=$?
  13052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13053. test $ac_status = 0; }; then
  13054. pkg_cv_SPEEXDSP_CFLAGS=`$PKG_CONFIG --cflags "speexdsp >= 1.2" 2>/dev/null`
  13055. test "x$?" != "x0" && pkg_failed=yes
  13056. else
  13057. pkg_failed=yes
  13058. fi
  13059. else
  13060. pkg_failed=untried
  13061. fi
  13062. if test -n "$SPEEXDSP_LIBS"; then
  13063. pkg_cv_SPEEXDSP_LIBS="$SPEEXDSP_LIBS"
  13064. elif test -n "$PKG_CONFIG"; then
  13065. if test -n "$PKG_CONFIG" && \
  13066. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp >= 1.2\""; } >&5
  13067. ($PKG_CONFIG --exists --print-errors "speexdsp >= 1.2") 2>&5
  13068. ac_status=$?
  13069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13070. test $ac_status = 0; }; then
  13071. pkg_cv_SPEEXDSP_LIBS=`$PKG_CONFIG --libs "speexdsp >= 1.2" 2>/dev/null`
  13072. test "x$?" != "x0" && pkg_failed=yes
  13073. else
  13074. pkg_failed=yes
  13075. fi
  13076. else
  13077. pkg_failed=untried
  13078. fi
  13079. if test $pkg_failed = yes; then
  13080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13081. $as_echo "no" >&6; }
  13082. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13083. _pkg_short_errors_supported=yes
  13084. else
  13085. _pkg_short_errors_supported=no
  13086. fi
  13087. if test $_pkg_short_errors_supported = yes; then
  13088. SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "speexdsp >= 1.2" 2>&1`
  13089. else
  13090. SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "speexdsp >= 1.2" 2>&1`
  13091. fi
  13092. # Put the nasty error message in config.log where it belongs
  13093. echo "$SPEEXDSP_PKG_ERRORS" >&5
  13094. as_fn_error $? "SPEEXDSP library >= 1.2 is required" "$LINENO" 5
  13095. elif test $pkg_failed = untried; then
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13097. $as_echo "no" >&6; }
  13098. as_fn_error $? "SPEEXDSP library >= 1.2 is required" "$LINENO" 5
  13099. else
  13100. SPEEXDSP_CFLAGS=$pkg_cv_SPEEXDSP_CFLAGS
  13101. SPEEXDSP_LIBS=$pkg_cv_SPEEXDSP_LIBS
  13102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13103. $as_echo "yes" >&6; }
  13104. dummy=yes
  13105. fi
  13106. fi
  13107. cat >>confdefs.h <<_ACEOF
  13108. #define ANDROID_STORAGEDIR "${storagedir}/android"
  13109. _ACEOF
  13110. # Check whether --with-phonebook was given.
  13111. if test "${with_phonebook+set}" = set; then :
  13112. withval=$with_phonebook; plugin_phonebook=${withval}
  13113. fi
  13114. if (test -z "${plugin_phonebook}"); then
  13115. plugin_phonebook=dummy
  13116. fi
  13117. if (test "${plugin_phonebook}" = "ebook"); then
  13118. pkg_failed=no
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libebook-1.2 >= 3.3" >&5
  13120. $as_echo_n "checking for libebook-1.2 >= 3.3... " >&6; }
  13121. if test -n "$LIBEBOOK_CFLAGS"; then
  13122. pkg_cv_LIBEBOOK_CFLAGS="$LIBEBOOK_CFLAGS"
  13123. elif test -n "$PKG_CONFIG"; then
  13124. if test -n "$PKG_CONFIG" && \
  13125. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
  13126. ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
  13127. ac_status=$?
  13128. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13129. test $ac_status = 0; }; then
  13130. pkg_cv_LIBEBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2 >= 3.3" 2>/dev/null`
  13131. test "x$?" != "x0" && pkg_failed=yes
  13132. else
  13133. pkg_failed=yes
  13134. fi
  13135. else
  13136. pkg_failed=untried
  13137. fi
  13138. if test -n "$LIBEBOOK_LIBS"; then
  13139. pkg_cv_LIBEBOOK_LIBS="$LIBEBOOK_LIBS"
  13140. elif test -n "$PKG_CONFIG"; then
  13141. if test -n "$PKG_CONFIG" && \
  13142. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
  13143. ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
  13144. ac_status=$?
  13145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13146. test $ac_status = 0; }; then
  13147. pkg_cv_LIBEBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2 >= 3.3" 2>/dev/null`
  13148. test "x$?" != "x0" && pkg_failed=yes
  13149. else
  13150. pkg_failed=yes
  13151. fi
  13152. else
  13153. pkg_failed=untried
  13154. fi
  13155. if test $pkg_failed = yes; then
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13157. $as_echo "no" >&6; }
  13158. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13159. _pkg_short_errors_supported=yes
  13160. else
  13161. _pkg_short_errors_supported=no
  13162. fi
  13163. if test $_pkg_short_errors_supported = yes; then
  13164. LIBEBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
  13165. else
  13166. LIBEBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
  13167. fi
  13168. # Put the nasty error message in config.log where it belongs
  13169. echo "$LIBEBOOK_PKG_ERRORS" >&5
  13170. as_fn_error $? "libebook >= 3.3 is required" "$LINENO" 5
  13171. elif test $pkg_failed = untried; then
  13172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13173. $as_echo "no" >&6; }
  13174. as_fn_error $? "libebook >= 3.3 is required" "$LINENO" 5
  13175. else
  13176. LIBEBOOK_CFLAGS=$pkg_cv_LIBEBOOK_CFLAGS
  13177. LIBEBOOK_LIBS=$pkg_cv_LIBEBOOK_LIBS
  13178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13179. $as_echo "yes" >&6; }
  13180. dummy=yes
  13181. fi
  13182. pkg_failed=no
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedataserver-1.2 >= 3.3" >&5
  13184. $as_echo_n "checking for libedataserver-1.2 >= 3.3... " >&6; }
  13185. if test -n "$LIBEDATESERVER_CFLAGS"; then
  13186. pkg_cv_LIBEDATESERVER_CFLAGS="$LIBEDATESERVER_CFLAGS"
  13187. elif test -n "$PKG_CONFIG"; then
  13188. if test -n "$PKG_CONFIG" && \
  13189. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.3\""; } >&5
  13190. ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.3") 2>&5
  13191. ac_status=$?
  13192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13193. test $ac_status = 0; }; then
  13194. pkg_cv_LIBEDATESERVER_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2 >= 3.3" 2>/dev/null`
  13195. test "x$?" != "x0" && pkg_failed=yes
  13196. else
  13197. pkg_failed=yes
  13198. fi
  13199. else
  13200. pkg_failed=untried
  13201. fi
  13202. if test -n "$LIBEDATESERVER_LIBS"; then
  13203. pkg_cv_LIBEDATESERVER_LIBS="$LIBEDATESERVER_LIBS"
  13204. elif test -n "$PKG_CONFIG"; then
  13205. if test -n "$PKG_CONFIG" && \
  13206. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.3\""; } >&5
  13207. ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.3") 2>&5
  13208. ac_status=$?
  13209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13210. test $ac_status = 0; }; then
  13211. pkg_cv_LIBEDATESERVER_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2 >= 3.3" 2>/dev/null`
  13212. test "x$?" != "x0" && pkg_failed=yes
  13213. else
  13214. pkg_failed=yes
  13215. fi
  13216. else
  13217. pkg_failed=untried
  13218. fi
  13219. if test $pkg_failed = yes; then
  13220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13221. $as_echo "no" >&6; }
  13222. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13223. _pkg_short_errors_supported=yes
  13224. else
  13225. _pkg_short_errors_supported=no
  13226. fi
  13227. if test $_pkg_short_errors_supported = yes; then
  13228. LIBEDATESERVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2 >= 3.3" 2>&1`
  13229. else
  13230. LIBEDATESERVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2 >= 3.3" 2>&1`
  13231. fi
  13232. # Put the nasty error message in config.log where it belongs
  13233. echo "$LIBEDATESERVER_PKG_ERRORS" >&5
  13234. as_fn_error $? "libedataserver >= 3.3 is required" "$LINENO" 5
  13235. elif test $pkg_failed = untried; then
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13237. $as_echo "no" >&6; }
  13238. as_fn_error $? "libedataserver >= 3.3 is required" "$LINENO" 5
  13239. else
  13240. LIBEDATESERVER_CFLAGS=$pkg_cv_LIBEDATESERVER_CFLAGS
  13241. LIBEDATESERVER_LIBS=$pkg_cv_LIBEDATESERVER_LIBS
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13243. $as_echo "yes" >&6; }
  13244. dummy=yes
  13245. fi
  13246. fi
  13247. PLUGIN_PHONEBOOK=${plugin_phonebook}
  13248. ac_config_files="$ac_config_files Makefile src/bluetoothd.rst lib/bluez.pc mesh/bluetooth-meshd.rst"
  13249. cat >confcache <<\_ACEOF
  13250. # This file is a shell script that caches the results of configure
  13251. # tests run on this system so they can be shared between configure
  13252. # scripts and configure runs, see configure's option --config-cache.
  13253. # It is not useful on other systems. If it contains results you don't
  13254. # want to keep, you may remove or edit it.
  13255. #
  13256. # config.status only pays attention to the cache file if you give it
  13257. # the --recheck option to rerun configure.
  13258. #
  13259. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13260. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13261. # following values.
  13262. _ACEOF
  13263. # The following way of writing the cache mishandles newlines in values,
  13264. # but we know of no workaround that is simple, portable, and efficient.
  13265. # So, we kill variables containing newlines.
  13266. # Ultrix sh set writes to stderr and can't be redirected directly,
  13267. # and sets the high bit in the cache file unless we assign to the vars.
  13268. (
  13269. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13270. eval ac_val=\$$ac_var
  13271. case $ac_val in #(
  13272. *${as_nl}*)
  13273. case $ac_var in #(
  13274. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13275. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13276. esac
  13277. case $ac_var in #(
  13278. _ | IFS | as_nl) ;; #(
  13279. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13280. *) { eval $ac_var=; unset $ac_var;} ;;
  13281. esac ;;
  13282. esac
  13283. done
  13284. (set) 2>&1 |
  13285. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13286. *${as_nl}ac_space=\ *)
  13287. # `set' does not quote correctly, so add quotes: double-quote
  13288. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13289. sed -n \
  13290. "s/'/'\\\\''/g;
  13291. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13292. ;; #(
  13293. *)
  13294. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13295. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13296. ;;
  13297. esac |
  13298. sort
  13299. ) |
  13300. sed '
  13301. /^ac_cv_env_/b end
  13302. t clear
  13303. :clear
  13304. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13305. t end
  13306. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13307. :end' >>confcache
  13308. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13309. if test -w "$cache_file"; then
  13310. if test "x$cache_file" != "x/dev/null"; then
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13312. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13313. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13314. cat confcache >"$cache_file"
  13315. else
  13316. case $cache_file in #(
  13317. */* | ?:*)
  13318. mv -f confcache "$cache_file"$$ &&
  13319. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13320. *)
  13321. mv -f confcache "$cache_file" ;;
  13322. esac
  13323. fi
  13324. fi
  13325. else
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13327. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13328. fi
  13329. fi
  13330. rm -f confcache
  13331. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13332. # Let make expand exec_prefix.
  13333. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13334. DEFS=-DHAVE_CONFIG_H
  13335. ac_libobjs=
  13336. ac_ltlibobjs=
  13337. U=
  13338. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13339. # 1. Remove the extension, and $U if already installed.
  13340. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13341. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13342. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13343. # will be set to the directory where LIBOBJS objects are built.
  13344. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13345. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13346. done
  13347. LIBOBJS=$ac_libobjs
  13348. LTLIBOBJS=$ac_ltlibobjs
  13349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13350. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13351. if test -n "$am_sleep_pid"; then
  13352. # Hide warnings about reused PIDs.
  13353. wait $am_sleep_pid 2>/dev/null
  13354. fi
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13356. $as_echo "done" >&6; }
  13357. if test -n "$EXEEXT"; then
  13358. am__EXEEXT_TRUE=
  13359. am__EXEEXT_FALSE='#'
  13360. else
  13361. am__EXEEXT_TRUE='#'
  13362. am__EXEEXT_FALSE=
  13363. fi
  13364. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13365. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13366. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13367. fi
  13368. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13369. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13370. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13371. fi
  13372. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13373. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13374. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13375. fi
  13376. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13377. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13379. fi
  13380. if test -z "${COVERAGE_TRUE}" && test -z "${COVERAGE_FALSE}"; then
  13381. as_fn_error $? "conditional \"COVERAGE\" was never defined.
  13382. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13383. fi
  13384. if test -z "${DBUS_RUN_SESSION_TRUE}" && test -z "${DBUS_RUN_SESSION_FALSE}"; then
  13385. as_fn_error $? "conditional \"DBUS_RUN_SESSION\" was never defined.
  13386. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13387. fi
  13388. if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then
  13389. as_fn_error $? "conditional \"VALGRIND\" was never defined.
  13390. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13391. fi
  13392. if test -z "${ZSH_COMPLETIONS_TRUE}" && test -z "${ZSH_COMPLETIONS_FALSE}"; then
  13393. as_fn_error $? "conditional \"ZSH_COMPLETIONS\" was never defined.
  13394. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13395. fi
  13396. if test -z "${LIBRARY_TRUE}" && test -z "${LIBRARY_FALSE}"; then
  13397. as_fn_error $? "conditional \"LIBRARY\" was never defined.
  13398. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13399. fi
  13400. if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
  13401. as_fn_error $? "conditional \"TEST\" was never defined.
  13402. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13403. fi
  13404. if test -z "${NFC_TRUE}" && test -z "${NFC_FALSE}"; then
  13405. as_fn_error $? "conditional \"NFC\" was never defined.
  13406. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13407. fi
  13408. if test -z "${SAP_TRUE}" && test -z "${SAP_FALSE}"; then
  13409. as_fn_error $? "conditional \"SAP\" was never defined.
  13410. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13411. fi
  13412. if test -z "${A2DP_TRUE}" && test -z "${A2DP_FALSE}"; then
  13413. as_fn_error $? "conditional \"A2DP\" was never defined.
  13414. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13415. fi
  13416. if test -z "${AVRCP_TRUE}" && test -z "${AVRCP_FALSE}"; then
  13417. as_fn_error $? "conditional \"AVRCP\" was never defined.
  13418. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13419. fi
  13420. if test -z "${NETWORK_TRUE}" && test -z "${NETWORK_FALSE}"; then
  13421. as_fn_error $? "conditional \"NETWORK\" was never defined.
  13422. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13423. fi
  13424. if test -z "${HID_TRUE}" && test -z "${HID_FALSE}"; then
  13425. as_fn_error $? "conditional \"HID\" was never defined.
  13426. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13427. fi
  13428. if test -z "${HOG_TRUE}" && test -z "${HOG_FALSE}"; then
  13429. as_fn_error $? "conditional \"HOG\" was never defined.
  13430. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13431. fi
  13432. if test -z "${HEALTH_TRUE}" && test -z "${HEALTH_FALSE}"; then
  13433. as_fn_error $? "conditional \"HEALTH\" was never defined.
  13434. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13435. fi
  13436. if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
  13437. as_fn_error $? "conditional \"TOOLS\" was never defined.
  13438. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13439. fi
  13440. if test -z "${MONITOR_TRUE}" && test -z "${MONITOR_FALSE}"; then
  13441. as_fn_error $? "conditional \"MONITOR\" was never defined.
  13442. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13443. fi
  13444. if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
  13445. as_fn_error $? "conditional \"UDEV\" was never defined.
  13446. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13447. fi
  13448. if test -z "${CUPS_TRUE}" && test -z "${CUPS_FALSE}"; then
  13449. as_fn_error $? "conditional \"CUPS\" was never defined.
  13450. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13451. fi
  13452. if test -z "${MESH_TRUE}" && test -z "${MESH_FALSE}"; then
  13453. as_fn_error $? "conditional \"MESH\" was never defined.
  13454. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13455. fi
  13456. if test -z "${MIDI_TRUE}" && test -z "${MIDI_FALSE}"; then
  13457. as_fn_error $? "conditional \"MIDI\" was never defined.
  13458. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13459. fi
  13460. if test -z "${OBEX_TRUE}" && test -z "${OBEX_FALSE}"; then
  13461. as_fn_error $? "conditional \"OBEX\" was never defined.
  13462. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13463. fi
  13464. if test -z "${BTPCLIENT_TRUE}" && test -z "${BTPCLIENT_FALSE}"; then
  13465. as_fn_error $? "conditional \"BTPCLIENT\" was never defined.
  13466. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13467. fi
  13468. if test -z "${EXTERNAL_ELL_TRUE}" && test -z "${EXTERNAL_ELL_FALSE}"; then
  13469. as_fn_error $? "conditional \"EXTERNAL_ELL\" was never defined.
  13470. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13471. fi
  13472. if test -z "${LIBSHARED_ELL_TRUE}" && test -z "${LIBSHARED_ELL_FALSE}"; then
  13473. as_fn_error $? "conditional \"LIBSHARED_ELL\" was never defined.
  13474. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13475. fi
  13476. if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
  13477. as_fn_error $? "conditional \"CLIENT\" was never defined.
  13478. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13479. fi
  13480. if test -z "${READLINE_TRUE}" && test -z "${READLINE_FALSE}"; then
  13481. as_fn_error $? "conditional \"READLINE\" was never defined.
  13482. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13483. fi
  13484. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  13485. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  13486. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13487. fi
  13488. if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
  13489. as_fn_error $? "conditional \"DATAFILES\" was never defined.
  13490. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13491. fi
  13492. if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then
  13493. as_fn_error $? "conditional \"MANPAGES\" was never defined.
  13494. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13495. fi
  13496. if test -z "${RUN_RST2MAN_TRUE}" && test -z "${RUN_RST2MAN_FALSE}"; then
  13497. as_fn_error $? "conditional \"RUN_RST2MAN\" was never defined.
  13498. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13499. fi
  13500. if test -z "${TESTING_TRUE}" && test -z "${TESTING_FALSE}"; then
  13501. as_fn_error $? "conditional \"TESTING\" was never defined.
  13502. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13503. fi
  13504. if test -z "${EXPERIMENTAL_TRUE}" && test -z "${EXPERIMENTAL_FALSE}"; then
  13505. as_fn_error $? "conditional \"EXPERIMENTAL\" was never defined.
  13506. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13507. fi
  13508. if test -z "${DEPRECATED_TRUE}" && test -z "${DEPRECATED_FALSE}"; then
  13509. as_fn_error $? "conditional \"DEPRECATED\" was never defined.
  13510. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13511. fi
  13512. if test -z "${SIXAXIS_TRUE}" && test -z "${SIXAXIS_FALSE}"; then
  13513. as_fn_error $? "conditional \"SIXAXIS\" was never defined.
  13514. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13515. fi
  13516. if test -z "${HID2HCI_TRUE}" && test -z "${HID2HCI_FALSE}"; then
  13517. as_fn_error $? "conditional \"HID2HCI\" was never defined.
  13518. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13519. fi
  13520. if test -z "${LOGGER_TRUE}" && test -z "${LOGGER_FALSE}"; then
  13521. as_fn_error $? "conditional \"LOGGER\" was never defined.
  13522. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13523. fi
  13524. if test -z "${ADMIN_TRUE}" && test -z "${ADMIN_FALSE}"; then
  13525. as_fn_error $? "conditional \"ADMIN\" was never defined.
  13526. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13527. fi
  13528. if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
  13529. as_fn_error $? "conditional \"ANDROID\" was never defined.
  13530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13531. fi
  13532. : "${CONFIG_STATUS=./config.status}"
  13533. ac_write_fail=0
  13534. ac_clean_files_save=$ac_clean_files
  13535. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13537. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13538. as_write_fail=0
  13539. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13540. #! $SHELL
  13541. # Generated by $as_me.
  13542. # Run this file to recreate the current configuration.
  13543. # Compiler output produced by configure, useful for debugging
  13544. # configure, is in config.log if it exists.
  13545. debug=false
  13546. ac_cs_recheck=false
  13547. ac_cs_silent=false
  13548. SHELL=\${CONFIG_SHELL-$SHELL}
  13549. export SHELL
  13550. _ASEOF
  13551. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13552. ## -------------------- ##
  13553. ## M4sh Initialization. ##
  13554. ## -------------------- ##
  13555. # Be more Bourne compatible
  13556. DUALCASE=1; export DUALCASE # for MKS sh
  13557. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13558. emulate sh
  13559. NULLCMD=:
  13560. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13561. # is contrary to our usage. Disable this feature.
  13562. alias -g '${1+"$@"}'='"$@"'
  13563. setopt NO_GLOB_SUBST
  13564. else
  13565. case `(set -o) 2>/dev/null` in #(
  13566. *posix*) :
  13567. set -o posix ;; #(
  13568. *) :
  13569. ;;
  13570. esac
  13571. fi
  13572. as_nl='
  13573. '
  13574. export as_nl
  13575. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13576. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13577. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13578. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13579. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13580. # but without wasting forks for bash or zsh.
  13581. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13582. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13583. as_echo='print -r --'
  13584. as_echo_n='print -rn --'
  13585. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13586. as_echo='printf %s\n'
  13587. as_echo_n='printf %s'
  13588. else
  13589. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13590. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13591. as_echo_n='/usr/ucb/echo -n'
  13592. else
  13593. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13594. as_echo_n_body='eval
  13595. arg=$1;
  13596. case $arg in #(
  13597. *"$as_nl"*)
  13598. expr "X$arg" : "X\\(.*\\)$as_nl";
  13599. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13600. esac;
  13601. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13602. '
  13603. export as_echo_n_body
  13604. as_echo_n='sh -c $as_echo_n_body as_echo'
  13605. fi
  13606. export as_echo_body
  13607. as_echo='sh -c $as_echo_body as_echo'
  13608. fi
  13609. # The user is always right.
  13610. if test "${PATH_SEPARATOR+set}" != set; then
  13611. PATH_SEPARATOR=:
  13612. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13613. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13614. PATH_SEPARATOR=';'
  13615. }
  13616. fi
  13617. # IFS
  13618. # We need space, tab and new line, in precisely that order. Quoting is
  13619. # there to prevent editors from complaining about space-tab.
  13620. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13621. # splitting by setting IFS to empty value.)
  13622. IFS=" "" $as_nl"
  13623. # Find who we are. Look in the path if we contain no directory separator.
  13624. as_myself=
  13625. case $0 in #((
  13626. *[\\/]* ) as_myself=$0 ;;
  13627. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13628. for as_dir in $PATH
  13629. do
  13630. IFS=$as_save_IFS
  13631. test -z "$as_dir" && as_dir=.
  13632. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13633. done
  13634. IFS=$as_save_IFS
  13635. ;;
  13636. esac
  13637. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13638. # in which case we are not to be found in the path.
  13639. if test "x$as_myself" = x; then
  13640. as_myself=$0
  13641. fi
  13642. if test ! -f "$as_myself"; then
  13643. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13644. exit 1
  13645. fi
  13646. # Unset variables that we do not need and which cause bugs (e.g. in
  13647. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13648. # suppresses any "Segmentation fault" message there. '((' could
  13649. # trigger a bug in pdksh 5.2.14.
  13650. for as_var in BASH_ENV ENV MAIL MAILPATH
  13651. do eval test x\${$as_var+set} = xset \
  13652. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13653. done
  13654. PS1='$ '
  13655. PS2='> '
  13656. PS4='+ '
  13657. # NLS nuisances.
  13658. LC_ALL=C
  13659. export LC_ALL
  13660. LANGUAGE=C
  13661. export LANGUAGE
  13662. # CDPATH.
  13663. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13664. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13665. # ----------------------------------------
  13666. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13667. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13668. # script with STATUS, using 1 if that was 0.
  13669. as_fn_error ()
  13670. {
  13671. as_status=$1; test $as_status -eq 0 && as_status=1
  13672. if test "$4"; then
  13673. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13674. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13675. fi
  13676. $as_echo "$as_me: error: $2" >&2
  13677. as_fn_exit $as_status
  13678. } # as_fn_error
  13679. # as_fn_set_status STATUS
  13680. # -----------------------
  13681. # Set $? to STATUS, without forking.
  13682. as_fn_set_status ()
  13683. {
  13684. return $1
  13685. } # as_fn_set_status
  13686. # as_fn_exit STATUS
  13687. # -----------------
  13688. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13689. as_fn_exit ()
  13690. {
  13691. set +e
  13692. as_fn_set_status $1
  13693. exit $1
  13694. } # as_fn_exit
  13695. # as_fn_unset VAR
  13696. # ---------------
  13697. # Portably unset VAR.
  13698. as_fn_unset ()
  13699. {
  13700. { eval $1=; unset $1;}
  13701. }
  13702. as_unset=as_fn_unset
  13703. # as_fn_append VAR VALUE
  13704. # ----------------------
  13705. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13706. # advantage of any shell optimizations that allow amortized linear growth over
  13707. # repeated appends, instead of the typical quadratic growth present in naive
  13708. # implementations.
  13709. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13710. eval 'as_fn_append ()
  13711. {
  13712. eval $1+=\$2
  13713. }'
  13714. else
  13715. as_fn_append ()
  13716. {
  13717. eval $1=\$$1\$2
  13718. }
  13719. fi # as_fn_append
  13720. # as_fn_arith ARG...
  13721. # ------------------
  13722. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13723. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13724. # must be portable across $(()) and expr.
  13725. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13726. eval 'as_fn_arith ()
  13727. {
  13728. as_val=$(( $* ))
  13729. }'
  13730. else
  13731. as_fn_arith ()
  13732. {
  13733. as_val=`expr "$@" || test $? -eq 1`
  13734. }
  13735. fi # as_fn_arith
  13736. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13737. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13738. as_expr=expr
  13739. else
  13740. as_expr=false
  13741. fi
  13742. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13743. as_basename=basename
  13744. else
  13745. as_basename=false
  13746. fi
  13747. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13748. as_dirname=dirname
  13749. else
  13750. as_dirname=false
  13751. fi
  13752. as_me=`$as_basename -- "$0" ||
  13753. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13754. X"$0" : 'X\(//\)$' \| \
  13755. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13756. $as_echo X/"$0" |
  13757. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13758. s//\1/
  13759. q
  13760. }
  13761. /^X\/\(\/\/\)$/{
  13762. s//\1/
  13763. q
  13764. }
  13765. /^X\/\(\/\).*/{
  13766. s//\1/
  13767. q
  13768. }
  13769. s/.*/./; q'`
  13770. # Avoid depending upon Character Ranges.
  13771. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13772. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13773. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13774. as_cr_digits='0123456789'
  13775. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13776. ECHO_C= ECHO_N= ECHO_T=
  13777. case `echo -n x` in #(((((
  13778. -n*)
  13779. case `echo 'xy\c'` in
  13780. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13781. xy) ECHO_C='\c';;
  13782. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13783. ECHO_T=' ';;
  13784. esac;;
  13785. *)
  13786. ECHO_N='-n';;
  13787. esac
  13788. rm -f conf$$ conf$$.exe conf$$.file
  13789. if test -d conf$$.dir; then
  13790. rm -f conf$$.dir/conf$$.file
  13791. else
  13792. rm -f conf$$.dir
  13793. mkdir conf$$.dir 2>/dev/null
  13794. fi
  13795. if (echo >conf$$.file) 2>/dev/null; then
  13796. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13797. as_ln_s='ln -s'
  13798. # ... but there are two gotchas:
  13799. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13800. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13801. # In both cases, we have to default to `cp -pR'.
  13802. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13803. as_ln_s='cp -pR'
  13804. elif ln conf$$.file conf$$ 2>/dev/null; then
  13805. as_ln_s=ln
  13806. else
  13807. as_ln_s='cp -pR'
  13808. fi
  13809. else
  13810. as_ln_s='cp -pR'
  13811. fi
  13812. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13813. rmdir conf$$.dir 2>/dev/null
  13814. # as_fn_mkdir_p
  13815. # -------------
  13816. # Create "$as_dir" as a directory, including parents if necessary.
  13817. as_fn_mkdir_p ()
  13818. {
  13819. case $as_dir in #(
  13820. -*) as_dir=./$as_dir;;
  13821. esac
  13822. test -d "$as_dir" || eval $as_mkdir_p || {
  13823. as_dirs=
  13824. while :; do
  13825. case $as_dir in #(
  13826. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13827. *) as_qdir=$as_dir;;
  13828. esac
  13829. as_dirs="'$as_qdir' $as_dirs"
  13830. as_dir=`$as_dirname -- "$as_dir" ||
  13831. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13832. X"$as_dir" : 'X\(//\)[^/]' \| \
  13833. X"$as_dir" : 'X\(//\)$' \| \
  13834. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13835. $as_echo X"$as_dir" |
  13836. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13837. s//\1/
  13838. q
  13839. }
  13840. /^X\(\/\/\)[^/].*/{
  13841. s//\1/
  13842. q
  13843. }
  13844. /^X\(\/\/\)$/{
  13845. s//\1/
  13846. q
  13847. }
  13848. /^X\(\/\).*/{
  13849. s//\1/
  13850. q
  13851. }
  13852. s/.*/./; q'`
  13853. test -d "$as_dir" && break
  13854. done
  13855. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13856. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13857. } # as_fn_mkdir_p
  13858. if mkdir -p . 2>/dev/null; then
  13859. as_mkdir_p='mkdir -p "$as_dir"'
  13860. else
  13861. test -d ./-p && rmdir ./-p
  13862. as_mkdir_p=false
  13863. fi
  13864. # as_fn_executable_p FILE
  13865. # -----------------------
  13866. # Test if FILE is an executable regular file.
  13867. as_fn_executable_p ()
  13868. {
  13869. test -f "$1" && test -x "$1"
  13870. } # as_fn_executable_p
  13871. as_test_x='test -x'
  13872. as_executable_p=as_fn_executable_p
  13873. # Sed expression to map a string onto a valid CPP name.
  13874. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13875. # Sed expression to map a string onto a valid variable name.
  13876. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13877. exec 6>&1
  13878. ## ----------------------------------- ##
  13879. ## Main body of $CONFIG_STATUS script. ##
  13880. ## ----------------------------------- ##
  13881. _ASEOF
  13882. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13883. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13884. # Save the log message, to keep $0 and so on meaningful, and to
  13885. # report actual input values of CONFIG_FILES etc. instead of their
  13886. # values after options handling.
  13887. ac_log="
  13888. This file was extended by bluez $as_me 5.62, which was
  13889. generated by GNU Autoconf 2.69. Invocation command line was
  13890. CONFIG_FILES = $CONFIG_FILES
  13891. CONFIG_HEADERS = $CONFIG_HEADERS
  13892. CONFIG_LINKS = $CONFIG_LINKS
  13893. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13894. $ $0 $@
  13895. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13896. "
  13897. _ACEOF
  13898. case $ac_config_files in *"
  13899. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13900. esac
  13901. case $ac_config_headers in *"
  13902. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13903. esac
  13904. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13905. # Files that config.status was made for.
  13906. config_files="$ac_config_files"
  13907. config_headers="$ac_config_headers"
  13908. config_commands="$ac_config_commands"
  13909. _ACEOF
  13910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13911. ac_cs_usage="\
  13912. \`$as_me' instantiates files and other configuration actions
  13913. from templates according to the current configuration. Unless the files
  13914. and actions are specified as TAGs, all are instantiated by default.
  13915. Usage: $0 [OPTION]... [TAG]...
  13916. -h, --help print this help, then exit
  13917. -V, --version print version number and configuration settings, then exit
  13918. --config print configuration, then exit
  13919. -q, --quiet, --silent
  13920. do not print progress messages
  13921. -d, --debug don't remove temporary files
  13922. --recheck update $as_me by reconfiguring in the same conditions
  13923. --file=FILE[:TEMPLATE]
  13924. instantiate the configuration file FILE
  13925. --header=FILE[:TEMPLATE]
  13926. instantiate the configuration header FILE
  13927. Configuration files:
  13928. $config_files
  13929. Configuration headers:
  13930. $config_headers
  13931. Configuration commands:
  13932. $config_commands
  13933. Report bugs to the package provider."
  13934. _ACEOF
  13935. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13936. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13937. ac_cs_version="\\
  13938. bluez config.status 5.62
  13939. configured by $0, generated by GNU Autoconf 2.69,
  13940. with options \\"\$ac_cs_config\\"
  13941. Copyright (C) 2012 Free Software Foundation, Inc.
  13942. This config.status script is free software; the Free Software Foundation
  13943. gives unlimited permission to copy, distribute and modify it."
  13944. ac_pwd='$ac_pwd'
  13945. srcdir='$srcdir'
  13946. INSTALL='$INSTALL'
  13947. MKDIR_P='$MKDIR_P'
  13948. AWK='$AWK'
  13949. test -n "\$AWK" || AWK=awk
  13950. _ACEOF
  13951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13952. # The default lists apply if the user does not specify any file.
  13953. ac_need_defaults=:
  13954. while test $# != 0
  13955. do
  13956. case $1 in
  13957. --*=?*)
  13958. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13959. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13960. ac_shift=:
  13961. ;;
  13962. --*=)
  13963. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13964. ac_optarg=
  13965. ac_shift=:
  13966. ;;
  13967. *)
  13968. ac_option=$1
  13969. ac_optarg=$2
  13970. ac_shift=shift
  13971. ;;
  13972. esac
  13973. case $ac_option in
  13974. # Handling of the options.
  13975. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13976. ac_cs_recheck=: ;;
  13977. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13978. $as_echo "$ac_cs_version"; exit ;;
  13979. --config | --confi | --conf | --con | --co | --c )
  13980. $as_echo "$ac_cs_config"; exit ;;
  13981. --debug | --debu | --deb | --de | --d | -d )
  13982. debug=: ;;
  13983. --file | --fil | --fi | --f )
  13984. $ac_shift
  13985. case $ac_optarg in
  13986. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13987. '') as_fn_error $? "missing file argument" ;;
  13988. esac
  13989. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13990. ac_need_defaults=false;;
  13991. --header | --heade | --head | --hea )
  13992. $ac_shift
  13993. case $ac_optarg in
  13994. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13995. esac
  13996. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13997. ac_need_defaults=false;;
  13998. --he | --h)
  13999. # Conflict between --help and --header
  14000. as_fn_error $? "ambiguous option: \`$1'
  14001. Try \`$0 --help' for more information.";;
  14002. --help | --hel | -h )
  14003. $as_echo "$ac_cs_usage"; exit ;;
  14004. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14005. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14006. ac_cs_silent=: ;;
  14007. # This is an error.
  14008. -*) as_fn_error $? "unrecognized option: \`$1'
  14009. Try \`$0 --help' for more information." ;;
  14010. *) as_fn_append ac_config_targets " $1"
  14011. ac_need_defaults=false ;;
  14012. esac
  14013. shift
  14014. done
  14015. ac_configure_extra_args=
  14016. if $ac_cs_silent; then
  14017. exec 6>/dev/null
  14018. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14019. fi
  14020. _ACEOF
  14021. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14022. if \$ac_cs_recheck; then
  14023. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14024. shift
  14025. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14026. CONFIG_SHELL='$SHELL'
  14027. export CONFIG_SHELL
  14028. exec "\$@"
  14029. fi
  14030. _ACEOF
  14031. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14032. exec 5>>config.log
  14033. {
  14034. echo
  14035. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14036. ## Running $as_me. ##
  14037. _ASBOX
  14038. $as_echo "$ac_log"
  14039. } >&5
  14040. _ACEOF
  14041. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14042. #
  14043. # INIT-COMMANDS
  14044. #
  14045. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  14046. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14047. # if CDPATH is set.
  14048. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14049. sed_quote_subst='$sed_quote_subst'
  14050. double_quote_subst='$double_quote_subst'
  14051. delay_variable_subst='$delay_variable_subst'
  14052. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14053. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14054. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14055. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14056. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14057. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14058. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14059. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14060. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14061. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14062. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14063. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14064. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14065. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14066. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14067. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14068. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14069. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14070. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14071. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14072. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14073. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14074. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14075. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14076. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14077. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14078. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14079. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14080. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14081. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14082. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14083. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14084. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14085. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14086. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14087. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14088. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14089. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14090. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14091. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14092. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14093. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14094. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14095. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14096. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14097. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14098. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14099. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14100. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14101. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14102. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14103. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14104. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14105. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14106. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14107. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14108. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  14109. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14110. 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"`'
  14111. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  14112. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14113. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14114. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  14115. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14116. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14117. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14118. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14119. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14120. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14121. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14122. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14123. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14124. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14125. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14126. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14127. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14128. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14129. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14130. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14131. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14132. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14133. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14134. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14135. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14136. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14137. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14138. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14139. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14140. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14141. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14142. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14143. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14144. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14145. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14146. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14147. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14148. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14149. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14150. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14151. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14152. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14153. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14154. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14155. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14156. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14157. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14158. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14159. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14160. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14161. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14162. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14163. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14164. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14165. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14166. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14167. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14168. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14169. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14170. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14171. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14172. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14173. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14174. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14175. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14176. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14177. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14178. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14179. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  14180. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  14181. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14182. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14183. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14184. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14185. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14186. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14187. LTCC='$LTCC'
  14188. LTCFLAGS='$LTCFLAGS'
  14189. compiler='$compiler_DEFAULT'
  14190. # A function that is used when there is no print builtin or printf.
  14191. func_fallback_echo ()
  14192. {
  14193. eval 'cat <<_LTECHO_EOF
  14194. \$1
  14195. _LTECHO_EOF'
  14196. }
  14197. # Quote evaled strings.
  14198. for var in SHELL \
  14199. ECHO \
  14200. PATH_SEPARATOR \
  14201. SED \
  14202. GREP \
  14203. EGREP \
  14204. FGREP \
  14205. LD \
  14206. NM \
  14207. LN_S \
  14208. lt_SP2NL \
  14209. lt_NL2SP \
  14210. reload_flag \
  14211. OBJDUMP \
  14212. deplibs_check_method \
  14213. file_magic_cmd \
  14214. file_magic_glob \
  14215. want_nocaseglob \
  14216. DLLTOOL \
  14217. sharedlib_from_linklib_cmd \
  14218. AR \
  14219. AR_FLAGS \
  14220. archiver_list_spec \
  14221. STRIP \
  14222. RANLIB \
  14223. CC \
  14224. CFLAGS \
  14225. compiler \
  14226. lt_cv_sys_global_symbol_pipe \
  14227. lt_cv_sys_global_symbol_to_cdecl \
  14228. lt_cv_sys_global_symbol_to_import \
  14229. lt_cv_sys_global_symbol_to_c_name_address \
  14230. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14231. lt_cv_nm_interface \
  14232. nm_file_list_spec \
  14233. lt_cv_truncate_bin \
  14234. lt_prog_compiler_no_builtin_flag \
  14235. lt_prog_compiler_pic \
  14236. lt_prog_compiler_wl \
  14237. lt_prog_compiler_static \
  14238. lt_cv_prog_compiler_c_o \
  14239. need_locks \
  14240. MANIFEST_TOOL \
  14241. DSYMUTIL \
  14242. NMEDIT \
  14243. LIPO \
  14244. OTOOL \
  14245. OTOOL64 \
  14246. shrext_cmds \
  14247. export_dynamic_flag_spec \
  14248. whole_archive_flag_spec \
  14249. compiler_needs_object \
  14250. with_gnu_ld \
  14251. allow_undefined_flag \
  14252. no_undefined_flag \
  14253. hardcode_libdir_flag_spec \
  14254. hardcode_libdir_separator \
  14255. exclude_expsyms \
  14256. include_expsyms \
  14257. file_list_spec \
  14258. variables_saved_for_relink \
  14259. libname_spec \
  14260. library_names_spec \
  14261. soname_spec \
  14262. install_override_mode \
  14263. finish_eval \
  14264. old_striplib \
  14265. striplib; do
  14266. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14267. *[\\\\\\\`\\"\\\$]*)
  14268. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14269. ;;
  14270. *)
  14271. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14272. ;;
  14273. esac
  14274. done
  14275. # Double-quote double-evaled strings.
  14276. for var in reload_cmds \
  14277. old_postinstall_cmds \
  14278. old_postuninstall_cmds \
  14279. old_archive_cmds \
  14280. extract_expsyms_cmds \
  14281. old_archive_from_new_cmds \
  14282. old_archive_from_expsyms_cmds \
  14283. archive_cmds \
  14284. archive_expsym_cmds \
  14285. module_cmds \
  14286. module_expsym_cmds \
  14287. export_symbols_cmds \
  14288. prelink_cmds \
  14289. postlink_cmds \
  14290. postinstall_cmds \
  14291. postuninstall_cmds \
  14292. finish_cmds \
  14293. sys_lib_search_path_spec \
  14294. configure_time_dlsearch_path \
  14295. configure_time_lt_sys_library_path; do
  14296. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14297. *[\\\\\\\`\\"\\\$]*)
  14298. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14299. ;;
  14300. *)
  14301. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14302. ;;
  14303. esac
  14304. done
  14305. ac_aux_dir='$ac_aux_dir'
  14306. # See if we are running on zsh, and set the options that allow our
  14307. # commands through without removal of \ escapes INIT.
  14308. if test -n "\${ZSH_VERSION+set}"; then
  14309. setopt NO_GLOB_SUBST
  14310. fi
  14311. PACKAGE='$PACKAGE'
  14312. VERSION='$VERSION'
  14313. RM='$RM'
  14314. ofile='$ofile'
  14315. _ACEOF
  14316. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14317. # Handling of arguments.
  14318. for ac_config_target in $ac_config_targets
  14319. do
  14320. case $ac_config_target in
  14321. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14322. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14323. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14324. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14325. "src/bluetoothd.rst") CONFIG_FILES="$CONFIG_FILES src/bluetoothd.rst" ;;
  14326. "lib/bluez.pc") CONFIG_FILES="$CONFIG_FILES lib/bluez.pc" ;;
  14327. "mesh/bluetooth-meshd.rst") CONFIG_FILES="$CONFIG_FILES mesh/bluetooth-meshd.rst" ;;
  14328. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14329. esac
  14330. done
  14331. # If the user did not use the arguments to specify the items to instantiate,
  14332. # then the envvar interface is used. Set only those that are not.
  14333. # We use the long form for the default assignment because of an extremely
  14334. # bizarre bug on SunOS 4.1.3.
  14335. if $ac_need_defaults; then
  14336. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14337. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14338. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14339. fi
  14340. # Have a temporary directory for convenience. Make it in the build tree
  14341. # simply because there is no reason against having it here, and in addition,
  14342. # creating and moving files from /tmp can sometimes cause problems.
  14343. # Hook for its removal unless debugging.
  14344. # Note that there is a small window in which the directory will not be cleaned:
  14345. # after its creation but before its name has been assigned to `$tmp'.
  14346. $debug ||
  14347. {
  14348. tmp= ac_tmp=
  14349. trap 'exit_status=$?
  14350. : "${ac_tmp:=$tmp}"
  14351. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14352. ' 0
  14353. trap 'as_fn_exit 1' 1 2 13 15
  14354. }
  14355. # Create a (secure) tmp directory for tmp files.
  14356. {
  14357. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14358. test -d "$tmp"
  14359. } ||
  14360. {
  14361. tmp=./conf$$-$RANDOM
  14362. (umask 077 && mkdir "$tmp")
  14363. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14364. ac_tmp=$tmp
  14365. # Set up the scripts for CONFIG_FILES section.
  14366. # No need to generate them if there are no CONFIG_FILES.
  14367. # This happens for instance with `./config.status config.h'.
  14368. if test -n "$CONFIG_FILES"; then
  14369. ac_cr=`echo X | tr X '\015'`
  14370. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14371. # But we know of no other shell where ac_cr would be empty at this
  14372. # point, so we can use a bashism as a fallback.
  14373. if test "x$ac_cr" = x; then
  14374. eval ac_cr=\$\'\\r\'
  14375. fi
  14376. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14377. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14378. ac_cs_awk_cr='\\r'
  14379. else
  14380. ac_cs_awk_cr=$ac_cr
  14381. fi
  14382. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14383. _ACEOF
  14384. {
  14385. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14386. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14387. echo "_ACEOF"
  14388. } >conf$$subs.sh ||
  14389. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14390. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14391. ac_delim='%!_!# '
  14392. for ac_last_try in false false false false false :; do
  14393. . ./conf$$subs.sh ||
  14394. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14395. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14396. if test $ac_delim_n = $ac_delim_num; then
  14397. break
  14398. elif $ac_last_try; then
  14399. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14400. else
  14401. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14402. fi
  14403. done
  14404. rm -f conf$$subs.sh
  14405. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14406. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14407. _ACEOF
  14408. sed -n '
  14409. h
  14410. s/^/S["/; s/!.*/"]=/
  14411. p
  14412. g
  14413. s/^[^!]*!//
  14414. :repl
  14415. t repl
  14416. s/'"$ac_delim"'$//
  14417. t delim
  14418. :nl
  14419. h
  14420. s/\(.\{148\}\)..*/\1/
  14421. t more1
  14422. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14423. p
  14424. n
  14425. b repl
  14426. :more1
  14427. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14428. p
  14429. g
  14430. s/.\{148\}//
  14431. t nl
  14432. :delim
  14433. h
  14434. s/\(.\{148\}\)..*/\1/
  14435. t more2
  14436. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14437. p
  14438. b
  14439. :more2
  14440. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14441. p
  14442. g
  14443. s/.\{148\}//
  14444. t delim
  14445. ' <conf$$subs.awk | sed '
  14446. /^[^""]/{
  14447. N
  14448. s/\n//
  14449. }
  14450. ' >>$CONFIG_STATUS || ac_write_fail=1
  14451. rm -f conf$$subs.awk
  14452. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14453. _ACAWK
  14454. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14455. for (key in S) S_is_set[key] = 1
  14456. FS = ""
  14457. }
  14458. {
  14459. line = $ 0
  14460. nfields = split(line, field, "@")
  14461. substed = 0
  14462. len = length(field[1])
  14463. for (i = 2; i < nfields; i++) {
  14464. key = field[i]
  14465. keylen = length(key)
  14466. if (S_is_set[key]) {
  14467. value = S[key]
  14468. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14469. len += length(value) + length(field[++i])
  14470. substed = 1
  14471. } else
  14472. len += 1 + keylen
  14473. }
  14474. print line
  14475. }
  14476. _ACAWK
  14477. _ACEOF
  14478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14479. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14480. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14481. else
  14482. cat
  14483. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14484. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14485. _ACEOF
  14486. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14487. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14488. # trailing colons and then remove the whole line if VPATH becomes empty
  14489. # (actually we leave an empty line to preserve line numbers).
  14490. if test "x$srcdir" = x.; then
  14491. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14492. h
  14493. s///
  14494. s/^/:/
  14495. s/[ ]*$/:/
  14496. s/:\$(srcdir):/:/g
  14497. s/:\${srcdir}:/:/g
  14498. s/:@srcdir@:/:/g
  14499. s/^:*//
  14500. s/:*$//
  14501. x
  14502. s/\(=[ ]*\).*/\1/
  14503. G
  14504. s/\n//
  14505. s/^[^=]*=[ ]*$//
  14506. }'
  14507. fi
  14508. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14509. fi # test -n "$CONFIG_FILES"
  14510. # Set up the scripts for CONFIG_HEADERS section.
  14511. # No need to generate them if there are no CONFIG_HEADERS.
  14512. # This happens for instance with `./config.status Makefile'.
  14513. if test -n "$CONFIG_HEADERS"; then
  14514. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14515. BEGIN {
  14516. _ACEOF
  14517. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14518. # here-document in config.status, that substitutes the proper values into
  14519. # config.h.in to produce config.h.
  14520. # Create a delimiter string that does not exist in confdefs.h, to ease
  14521. # handling of long lines.
  14522. ac_delim='%!_!# '
  14523. for ac_last_try in false false :; do
  14524. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14525. if test -z "$ac_tt"; then
  14526. break
  14527. elif $ac_last_try; then
  14528. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14529. else
  14530. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14531. fi
  14532. done
  14533. # For the awk script, D is an array of macro values keyed by name,
  14534. # likewise P contains macro parameters if any. Preserve backslash
  14535. # newline sequences.
  14536. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14537. sed -n '
  14538. s/.\{148\}/&'"$ac_delim"'/g
  14539. t rset
  14540. :rset
  14541. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14542. t def
  14543. d
  14544. :def
  14545. s/\\$//
  14546. t bsnl
  14547. s/["\\]/\\&/g
  14548. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14549. D["\1"]=" \3"/p
  14550. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14551. d
  14552. :bsnl
  14553. s/["\\]/\\&/g
  14554. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14555. D["\1"]=" \3\\\\\\n"\\/p
  14556. t cont
  14557. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14558. t cont
  14559. d
  14560. :cont
  14561. n
  14562. s/.\{148\}/&'"$ac_delim"'/g
  14563. t clear
  14564. :clear
  14565. s/\\$//
  14566. t bsnlc
  14567. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14568. d
  14569. :bsnlc
  14570. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14571. b cont
  14572. ' <confdefs.h | sed '
  14573. s/'"$ac_delim"'/"\\\
  14574. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14576. for (key in D) D_is_set[key] = 1
  14577. FS = ""
  14578. }
  14579. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14580. line = \$ 0
  14581. split(line, arg, " ")
  14582. if (arg[1] == "#") {
  14583. defundef = arg[2]
  14584. mac1 = arg[3]
  14585. } else {
  14586. defundef = substr(arg[1], 2)
  14587. mac1 = arg[2]
  14588. }
  14589. split(mac1, mac2, "(") #)
  14590. macro = mac2[1]
  14591. prefix = substr(line, 1, index(line, defundef) - 1)
  14592. if (D_is_set[macro]) {
  14593. # Preserve the white space surrounding the "#".
  14594. print prefix "define", macro P[macro] D[macro]
  14595. next
  14596. } else {
  14597. # Replace #undef with comments. This is necessary, for example,
  14598. # in the case of _POSIX_SOURCE, which is predefined and required
  14599. # on some systems where configure will not decide to define it.
  14600. if (defundef == "undef") {
  14601. print "/*", prefix defundef, macro, "*/"
  14602. next
  14603. }
  14604. }
  14605. }
  14606. { print }
  14607. _ACAWK
  14608. _ACEOF
  14609. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14610. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14611. fi # test -n "$CONFIG_HEADERS"
  14612. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14613. shift
  14614. for ac_tag
  14615. do
  14616. case $ac_tag in
  14617. :[FHLC]) ac_mode=$ac_tag; continue;;
  14618. esac
  14619. case $ac_mode$ac_tag in
  14620. :[FHL]*:*);;
  14621. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14622. :[FH]-) ac_tag=-:-;;
  14623. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14624. esac
  14625. ac_save_IFS=$IFS
  14626. IFS=:
  14627. set x $ac_tag
  14628. IFS=$ac_save_IFS
  14629. shift
  14630. ac_file=$1
  14631. shift
  14632. case $ac_mode in
  14633. :L) ac_source=$1;;
  14634. :[FH])
  14635. ac_file_inputs=
  14636. for ac_f
  14637. do
  14638. case $ac_f in
  14639. -) ac_f="$ac_tmp/stdin";;
  14640. *) # Look for the file first in the build tree, then in the source tree
  14641. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14642. # because $ac_f cannot contain `:'.
  14643. test -f "$ac_f" ||
  14644. case $ac_f in
  14645. [\\/$]*) false;;
  14646. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14647. esac ||
  14648. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14649. esac
  14650. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14651. as_fn_append ac_file_inputs " '$ac_f'"
  14652. done
  14653. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14654. # use $as_me), people would be surprised to read:
  14655. # /* config.h. Generated by config.status. */
  14656. configure_input='Generated from '`
  14657. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14658. `' by configure.'
  14659. if test x"$ac_file" != x-; then
  14660. configure_input="$ac_file. $configure_input"
  14661. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14662. $as_echo "$as_me: creating $ac_file" >&6;}
  14663. fi
  14664. # Neutralize special characters interpreted by sed in replacement strings.
  14665. case $configure_input in #(
  14666. *\&* | *\|* | *\\* )
  14667. ac_sed_conf_input=`$as_echo "$configure_input" |
  14668. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14669. *) ac_sed_conf_input=$configure_input;;
  14670. esac
  14671. case $ac_tag in
  14672. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14673. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14674. esac
  14675. ;;
  14676. esac
  14677. ac_dir=`$as_dirname -- "$ac_file" ||
  14678. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14679. X"$ac_file" : 'X\(//\)[^/]' \| \
  14680. X"$ac_file" : 'X\(//\)$' \| \
  14681. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14682. $as_echo X"$ac_file" |
  14683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14684. s//\1/
  14685. q
  14686. }
  14687. /^X\(\/\/\)[^/].*/{
  14688. s//\1/
  14689. q
  14690. }
  14691. /^X\(\/\/\)$/{
  14692. s//\1/
  14693. q
  14694. }
  14695. /^X\(\/\).*/{
  14696. s//\1/
  14697. q
  14698. }
  14699. s/.*/./; q'`
  14700. as_dir="$ac_dir"; as_fn_mkdir_p
  14701. ac_builddir=.
  14702. case "$ac_dir" in
  14703. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14704. *)
  14705. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14706. # A ".." for each directory in $ac_dir_suffix.
  14707. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14708. case $ac_top_builddir_sub in
  14709. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14710. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14711. esac ;;
  14712. esac
  14713. ac_abs_top_builddir=$ac_pwd
  14714. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14715. # for backward compatibility:
  14716. ac_top_builddir=$ac_top_build_prefix
  14717. case $srcdir in
  14718. .) # We are building in place.
  14719. ac_srcdir=.
  14720. ac_top_srcdir=$ac_top_builddir_sub
  14721. ac_abs_top_srcdir=$ac_pwd ;;
  14722. [\\/]* | ?:[\\/]* ) # Absolute name.
  14723. ac_srcdir=$srcdir$ac_dir_suffix;
  14724. ac_top_srcdir=$srcdir
  14725. ac_abs_top_srcdir=$srcdir ;;
  14726. *) # Relative name.
  14727. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14728. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14729. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14730. esac
  14731. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14732. case $ac_mode in
  14733. :F)
  14734. #
  14735. # CONFIG_FILE
  14736. #
  14737. case $INSTALL in
  14738. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14739. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14740. esac
  14741. ac_MKDIR_P=$MKDIR_P
  14742. case $MKDIR_P in
  14743. [\\/$]* | ?:[\\/]* ) ;;
  14744. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14745. esac
  14746. _ACEOF
  14747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14748. # If the template does not know about datarootdir, expand it.
  14749. # FIXME: This hack should be removed a few years after 2.60.
  14750. ac_datarootdir_hack=; ac_datarootdir_seen=
  14751. ac_sed_dataroot='
  14752. /datarootdir/ {
  14753. p
  14754. q
  14755. }
  14756. /@datadir@/p
  14757. /@docdir@/p
  14758. /@infodir@/p
  14759. /@localedir@/p
  14760. /@mandir@/p'
  14761. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14762. *datarootdir*) ac_datarootdir_seen=yes;;
  14763. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14765. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14766. _ACEOF
  14767. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14768. ac_datarootdir_hack='
  14769. s&@datadir@&$datadir&g
  14770. s&@docdir@&$docdir&g
  14771. s&@infodir@&$infodir&g
  14772. s&@localedir@&$localedir&g
  14773. s&@mandir@&$mandir&g
  14774. s&\\\${datarootdir}&$datarootdir&g' ;;
  14775. esac
  14776. _ACEOF
  14777. # Neutralize VPATH when `$srcdir' = `.'.
  14778. # Shell code in configure.ac might set extrasub.
  14779. # FIXME: do we really want to maintain this feature?
  14780. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14781. ac_sed_extra="$ac_vpsub
  14782. $extrasub
  14783. _ACEOF
  14784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14785. :t
  14786. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14787. s|@configure_input@|$ac_sed_conf_input|;t t
  14788. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14789. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14790. s&@srcdir@&$ac_srcdir&;t t
  14791. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14792. s&@top_srcdir@&$ac_top_srcdir&;t t
  14793. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14794. s&@builddir@&$ac_builddir&;t t
  14795. s&@abs_builddir@&$ac_abs_builddir&;t t
  14796. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14797. s&@INSTALL@&$ac_INSTALL&;t t
  14798. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14799. $ac_datarootdir_hack
  14800. "
  14801. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14802. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14803. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14804. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14805. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14806. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14808. which seems to be undefined. Please make sure it is defined" >&5
  14809. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14810. which seems to be undefined. Please make sure it is defined" >&2;}
  14811. rm -f "$ac_tmp/stdin"
  14812. case $ac_file in
  14813. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14814. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14815. esac \
  14816. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14817. ;;
  14818. :H)
  14819. #
  14820. # CONFIG_HEADER
  14821. #
  14822. if test x"$ac_file" != x-; then
  14823. {
  14824. $as_echo "/* $configure_input */" \
  14825. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14826. } >"$ac_tmp/config.h" \
  14827. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14828. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14829. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14830. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14831. else
  14832. rm -f "$ac_file"
  14833. mv "$ac_tmp/config.h" "$ac_file" \
  14834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14835. fi
  14836. else
  14837. $as_echo "/* $configure_input */" \
  14838. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14839. || as_fn_error $? "could not create -" "$LINENO" 5
  14840. fi
  14841. # Compute "$ac_file"'s index in $config_headers.
  14842. _am_arg="$ac_file"
  14843. _am_stamp_count=1
  14844. for _am_header in $config_headers :; do
  14845. case $_am_header in
  14846. $_am_arg | $_am_arg:* )
  14847. break ;;
  14848. * )
  14849. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14850. esac
  14851. done
  14852. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14853. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14854. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14855. X"$_am_arg" : 'X\(//\)$' \| \
  14856. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14857. $as_echo X"$_am_arg" |
  14858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14859. s//\1/
  14860. q
  14861. }
  14862. /^X\(\/\/\)[^/].*/{
  14863. s//\1/
  14864. q
  14865. }
  14866. /^X\(\/\/\)$/{
  14867. s//\1/
  14868. q
  14869. }
  14870. /^X\(\/\).*/{
  14871. s//\1/
  14872. q
  14873. }
  14874. s/.*/./; q'`/stamp-h$_am_stamp_count
  14875. ;;
  14876. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14877. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14878. ;;
  14879. esac
  14880. case $ac_file$ac_mode in
  14881. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14882. # Older Autoconf quotes --file arguments for eval, but not when files
  14883. # are listed without --file. Let's play safe and only enable the eval
  14884. # if we detect the quoting.
  14885. # TODO: see whether this extra hack can be removed once we start
  14886. # requiring Autoconf 2.70 or later.
  14887. case $CONFIG_FILES in #(
  14888. *\'*) :
  14889. eval set x "$CONFIG_FILES" ;; #(
  14890. *) :
  14891. set x $CONFIG_FILES ;; #(
  14892. *) :
  14893. ;;
  14894. esac
  14895. shift
  14896. # Used to flag and report bootstrapping failures.
  14897. am_rc=0
  14898. for am_mf
  14899. do
  14900. # Strip MF so we end up with the name of the file.
  14901. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  14902. # Check whether this is an Automake generated Makefile which includes
  14903. # dependency-tracking related rules and includes.
  14904. # Grep'ing the whole file directly is not great: AIX grep has a line
  14905. # limit of 2048, but all sed's we know have understand at least 4000.
  14906. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14907. || continue
  14908. am_dirpart=`$as_dirname -- "$am_mf" ||
  14909. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14910. X"$am_mf" : 'X\(//\)[^/]' \| \
  14911. X"$am_mf" : 'X\(//\)$' \| \
  14912. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14913. $as_echo X"$am_mf" |
  14914. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14915. s//\1/
  14916. q
  14917. }
  14918. /^X\(\/\/\)[^/].*/{
  14919. s//\1/
  14920. q
  14921. }
  14922. /^X\(\/\/\)$/{
  14923. s//\1/
  14924. q
  14925. }
  14926. /^X\(\/\).*/{
  14927. s//\1/
  14928. q
  14929. }
  14930. s/.*/./; q'`
  14931. am_filepart=`$as_basename -- "$am_mf" ||
  14932. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14933. X"$am_mf" : 'X\(//\)$' \| \
  14934. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14935. $as_echo X/"$am_mf" |
  14936. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14937. s//\1/
  14938. q
  14939. }
  14940. /^X\/\(\/\/\)$/{
  14941. s//\1/
  14942. q
  14943. }
  14944. /^X\/\(\/\).*/{
  14945. s//\1/
  14946. q
  14947. }
  14948. s/.*/./; q'`
  14949. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14950. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14951. | $MAKE -f - am--depfiles" >&5
  14952. (cd "$am_dirpart" \
  14953. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14954. | $MAKE -f - am--depfiles) >&5 2>&5
  14955. ac_status=$?
  14956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14957. (exit $ac_status); } || am_rc=$?
  14958. done
  14959. if test $am_rc -ne 0; then
  14960. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14962. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14963. for automatic dependency tracking. If GNU make was not used, consider
  14964. re-running the configure script with MAKE=\"gmake\" (or whatever is
  14965. necessary). You can also try re-running configure with the
  14966. '--disable-dependency-tracking' option to at least be able to build
  14967. the package (albeit without support for automatic dependency tracking).
  14968. See \`config.log' for more details" "$LINENO" 5; }
  14969. fi
  14970. { am_dirpart=; unset am_dirpart;}
  14971. { am_filepart=; unset am_filepart;}
  14972. { am_mf=; unset am_mf;}
  14973. { am_rc=; unset am_rc;}
  14974. rm -f conftest-deps.mk
  14975. }
  14976. ;;
  14977. "libtool":C)
  14978. # See if we are running on zsh, and set the options that allow our
  14979. # commands through without removal of \ escapes.
  14980. if test -n "${ZSH_VERSION+set}"; then
  14981. setopt NO_GLOB_SUBST
  14982. fi
  14983. cfgfile=${ofile}T
  14984. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14985. $RM "$cfgfile"
  14986. cat <<_LT_EOF >> "$cfgfile"
  14987. #! $SHELL
  14988. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14989. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14990. # Provide generalized library-building support services.
  14991. # Written by Gordon Matzigkeit, 1996
  14992. # Copyright (C) 2014 Free Software Foundation, Inc.
  14993. # This is free software; see the source for copying conditions. There is NO
  14994. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14995. # GNU Libtool is free software; you can redistribute it and/or modify
  14996. # it under the terms of the GNU General Public License as published by
  14997. # the Free Software Foundation; either version 2 of of the License, or
  14998. # (at your option) any later version.
  14999. #
  15000. # As a special exception to the GNU General Public License, if you
  15001. # distribute this file as part of a program or library that is built
  15002. # using GNU Libtool, you may include this file under the same
  15003. # distribution terms that you use for the rest of that program.
  15004. #
  15005. # GNU Libtool is distributed in the hope that it will be useful, but
  15006. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15007. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15008. # GNU General Public License for more details.
  15009. #
  15010. # You should have received a copy of the GNU General Public License
  15011. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15012. # The names of the tagged configurations supported by this script.
  15013. available_tags=''
  15014. # Configured defaults for sys_lib_dlsearch_path munging.
  15015. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15016. # ### BEGIN LIBTOOL CONFIG
  15017. # Whether or not to build static libraries.
  15018. build_old_libs=$enable_static
  15019. # Which release of libtool.m4 was used?
  15020. macro_version=$macro_version
  15021. macro_revision=$macro_revision
  15022. # Whether or not to build shared libraries.
  15023. build_libtool_libs=$enable_shared
  15024. # What type of objects to build.
  15025. pic_mode=$pic_mode
  15026. # Whether or not to optimize for fast installation.
  15027. fast_install=$enable_fast_install
  15028. # Shared archive member basename,for filename based shared library versioning on AIX.
  15029. shared_archive_member_spec=$shared_archive_member_spec
  15030. # Shell to use when invoking shell scripts.
  15031. SHELL=$lt_SHELL
  15032. # An echo program that protects backslashes.
  15033. ECHO=$lt_ECHO
  15034. # The PATH separator for the build system.
  15035. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15036. # The host system.
  15037. host_alias=$host_alias
  15038. host=$host
  15039. host_os=$host_os
  15040. # The build system.
  15041. build_alias=$build_alias
  15042. build=$build
  15043. build_os=$build_os
  15044. # A sed program that does not truncate output.
  15045. SED=$lt_SED
  15046. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15047. Xsed="\$SED -e 1s/^X//"
  15048. # A grep program that handles long lines.
  15049. GREP=$lt_GREP
  15050. # An ERE matcher.
  15051. EGREP=$lt_EGREP
  15052. # A literal string matcher.
  15053. FGREP=$lt_FGREP
  15054. # A BSD- or MS-compatible name lister.
  15055. NM=$lt_NM
  15056. # Whether we need soft or hard links.
  15057. LN_S=$lt_LN_S
  15058. # What is the maximum length of a command?
  15059. max_cmd_len=$max_cmd_len
  15060. # Object file suffix (normally "o").
  15061. objext=$ac_objext
  15062. # Executable file suffix (normally "").
  15063. exeext=$exeext
  15064. # whether the shell understands "unset".
  15065. lt_unset=$lt_unset
  15066. # turn spaces into newlines.
  15067. SP2NL=$lt_lt_SP2NL
  15068. # turn newlines into spaces.
  15069. NL2SP=$lt_lt_NL2SP
  15070. # convert \$build file names to \$host format.
  15071. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15072. # convert \$build files to toolchain format.
  15073. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15074. # An object symbol dumper.
  15075. OBJDUMP=$lt_OBJDUMP
  15076. # Method to check whether dependent libraries are shared objects.
  15077. deplibs_check_method=$lt_deplibs_check_method
  15078. # Command to use when deplibs_check_method = "file_magic".
  15079. file_magic_cmd=$lt_file_magic_cmd
  15080. # How to find potential files when deplibs_check_method = "file_magic".
  15081. file_magic_glob=$lt_file_magic_glob
  15082. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15083. want_nocaseglob=$lt_want_nocaseglob
  15084. # DLL creation program.
  15085. DLLTOOL=$lt_DLLTOOL
  15086. # Command to associate shared and link libraries.
  15087. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15088. # The archiver.
  15089. AR=$lt_AR
  15090. # Flags to create an archive.
  15091. AR_FLAGS=$lt_AR_FLAGS
  15092. # How to feed a file listing to the archiver.
  15093. archiver_list_spec=$lt_archiver_list_spec
  15094. # A symbol stripping program.
  15095. STRIP=$lt_STRIP
  15096. # Commands used to install an old-style archive.
  15097. RANLIB=$lt_RANLIB
  15098. old_postinstall_cmds=$lt_old_postinstall_cmds
  15099. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15100. # Whether to use a lock for old archive extraction.
  15101. lock_old_archive_extraction=$lock_old_archive_extraction
  15102. # A C compiler.
  15103. LTCC=$lt_CC
  15104. # LTCC compiler flags.
  15105. LTCFLAGS=$lt_CFLAGS
  15106. # Take the output of nm and produce a listing of raw symbols and C names.
  15107. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15108. # Transform the output of nm in a proper C declaration.
  15109. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15110. # Transform the output of nm into a list of symbols to manually relocate.
  15111. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15112. # Transform the output of nm in a C name address pair.
  15113. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15114. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15115. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15116. # The name lister interface.
  15117. nm_interface=$lt_lt_cv_nm_interface
  15118. # Specify filename containing input files for \$NM.
  15119. nm_file_list_spec=$lt_nm_file_list_spec
  15120. # The root where to search for dependent libraries,and where our libraries should be installed.
  15121. lt_sysroot=$lt_sysroot
  15122. # Command to truncate a binary pipe.
  15123. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15124. # The name of the directory that contains temporary libtool files.
  15125. objdir=$objdir
  15126. # Used to examine libraries when file_magic_cmd begins with "file".
  15127. MAGIC_CMD=$MAGIC_CMD
  15128. # Must we lock files when doing compilation?
  15129. need_locks=$lt_need_locks
  15130. # Manifest tool.
  15131. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15132. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15133. DSYMUTIL=$lt_DSYMUTIL
  15134. # Tool to change global to local symbols on Mac OS X.
  15135. NMEDIT=$lt_NMEDIT
  15136. # Tool to manipulate fat objects and archives on Mac OS X.
  15137. LIPO=$lt_LIPO
  15138. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15139. OTOOL=$lt_OTOOL
  15140. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15141. OTOOL64=$lt_OTOOL64
  15142. # Old archive suffix (normally "a").
  15143. libext=$libext
  15144. # Shared library suffix (normally ".so").
  15145. shrext_cmds=$lt_shrext_cmds
  15146. # The commands to extract the exported symbol list from a shared archive.
  15147. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15148. # Variables whose values should be saved in libtool wrapper scripts and
  15149. # restored at link time.
  15150. variables_saved_for_relink=$lt_variables_saved_for_relink
  15151. # Do we need the "lib" prefix for modules?
  15152. need_lib_prefix=$need_lib_prefix
  15153. # Do we need a version for libraries?
  15154. need_version=$need_version
  15155. # Library versioning type.
  15156. version_type=$version_type
  15157. # Shared library runtime path variable.
  15158. runpath_var=$runpath_var
  15159. # Shared library path variable.
  15160. shlibpath_var=$shlibpath_var
  15161. # Is shlibpath searched before the hard-coded library search path?
  15162. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15163. # Format of library name prefix.
  15164. libname_spec=$lt_libname_spec
  15165. # List of archive names. First name is the real one, the rest are links.
  15166. # The last name is the one that the linker finds with -lNAME
  15167. library_names_spec=$lt_library_names_spec
  15168. # The coded name of the library, if different from the real name.
  15169. soname_spec=$lt_soname_spec
  15170. # Permission mode override for installation of shared libraries.
  15171. install_override_mode=$lt_install_override_mode
  15172. # Command to use after installation of a shared archive.
  15173. postinstall_cmds=$lt_postinstall_cmds
  15174. # Command to use after uninstallation of a shared archive.
  15175. postuninstall_cmds=$lt_postuninstall_cmds
  15176. # Commands used to finish a libtool library installation in a directory.
  15177. finish_cmds=$lt_finish_cmds
  15178. # As "finish_cmds", except a single script fragment to be evaled but
  15179. # not shown.
  15180. finish_eval=$lt_finish_eval
  15181. # Whether we should hardcode library paths into libraries.
  15182. hardcode_into_libs=$hardcode_into_libs
  15183. # Compile-time system search path for libraries.
  15184. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15185. # Detected run-time system search path for libraries.
  15186. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  15187. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  15188. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  15189. # Whether dlopen is supported.
  15190. dlopen_support=$enable_dlopen
  15191. # Whether dlopen of programs is supported.
  15192. dlopen_self=$enable_dlopen_self
  15193. # Whether dlopen of statically linked programs is supported.
  15194. dlopen_self_static=$enable_dlopen_self_static
  15195. # Commands to strip libraries.
  15196. old_striplib=$lt_old_striplib
  15197. striplib=$lt_striplib
  15198. # The linker used to build libraries.
  15199. LD=$lt_LD
  15200. # How to create reloadable object files.
  15201. reload_flag=$lt_reload_flag
  15202. reload_cmds=$lt_reload_cmds
  15203. # Commands used to build an old-style archive.
  15204. old_archive_cmds=$lt_old_archive_cmds
  15205. # A language specific compiler.
  15206. CC=$lt_compiler
  15207. # Is the compiler the GNU compiler?
  15208. with_gcc=$GCC
  15209. # Compiler flag to turn off builtin functions.
  15210. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15211. # Additional compiler flags for building library objects.
  15212. pic_flag=$lt_lt_prog_compiler_pic
  15213. # How to pass a linker flag through the compiler.
  15214. wl=$lt_lt_prog_compiler_wl
  15215. # Compiler flag to prevent dynamic linking.
  15216. link_static_flag=$lt_lt_prog_compiler_static
  15217. # Does compiler simultaneously support -c and -o options?
  15218. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15219. # Whether or not to add -lc for building shared libraries.
  15220. build_libtool_need_lc=$archive_cmds_need_lc
  15221. # Whether or not to disallow shared libs when runtime libs are static.
  15222. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15223. # Compiler flag to allow reflexive dlopens.
  15224. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15225. # Compiler flag to generate shared objects directly from archives.
  15226. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15227. # Whether the compiler copes with passing no objects directly.
  15228. compiler_needs_object=$lt_compiler_needs_object
  15229. # Create an old-style archive from a shared archive.
  15230. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15231. # Create a temporary old-style archive to link instead of a shared archive.
  15232. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15233. # Commands used to build a shared archive.
  15234. archive_cmds=$lt_archive_cmds
  15235. archive_expsym_cmds=$lt_archive_expsym_cmds
  15236. # Commands used to build a loadable module if different from building
  15237. # a shared archive.
  15238. module_cmds=$lt_module_cmds
  15239. module_expsym_cmds=$lt_module_expsym_cmds
  15240. # Whether we are building with GNU ld or not.
  15241. with_gnu_ld=$lt_with_gnu_ld
  15242. # Flag that allows shared libraries with undefined symbols to be built.
  15243. allow_undefined_flag=$lt_allow_undefined_flag
  15244. # Flag that enforces no undefined symbols.
  15245. no_undefined_flag=$lt_no_undefined_flag
  15246. # Flag to hardcode \$libdir into a binary during linking.
  15247. # This must work even if \$libdir does not exist
  15248. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15249. # Whether we need a single "-rpath" flag with a separated argument.
  15250. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15251. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15252. # DIR into the resulting binary.
  15253. hardcode_direct=$hardcode_direct
  15254. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15255. # DIR into the resulting binary and the resulting library dependency is
  15256. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  15257. # library is relocated.
  15258. hardcode_direct_absolute=$hardcode_direct_absolute
  15259. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15260. # into the resulting binary.
  15261. hardcode_minus_L=$hardcode_minus_L
  15262. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15263. # into the resulting binary.
  15264. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15265. # Set to "yes" if building a shared library automatically hardcodes DIR
  15266. # into the library and all subsequent libraries and executables linked
  15267. # against it.
  15268. hardcode_automatic=$hardcode_automatic
  15269. # Set to yes if linker adds runtime paths of dependent libraries
  15270. # to runtime path list.
  15271. inherit_rpath=$inherit_rpath
  15272. # Whether libtool must link a program against all its dependency libraries.
  15273. link_all_deplibs=$link_all_deplibs
  15274. # Set to "yes" if exported symbols are required.
  15275. always_export_symbols=$always_export_symbols
  15276. # The commands to list exported symbols.
  15277. export_symbols_cmds=$lt_export_symbols_cmds
  15278. # Symbols that should not be listed in the preloaded symbols.
  15279. exclude_expsyms=$lt_exclude_expsyms
  15280. # Symbols that must always be exported.
  15281. include_expsyms=$lt_include_expsyms
  15282. # Commands necessary for linking programs (against libraries) with templates.
  15283. prelink_cmds=$lt_prelink_cmds
  15284. # Commands necessary for finishing linking programs.
  15285. postlink_cmds=$lt_postlink_cmds
  15286. # Specify filename containing input files.
  15287. file_list_spec=$lt_file_list_spec
  15288. # How to hardcode a shared library path into an executable.
  15289. hardcode_action=$hardcode_action
  15290. # ### END LIBTOOL CONFIG
  15291. _LT_EOF
  15292. cat <<'_LT_EOF' >> "$cfgfile"
  15293. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  15294. # func_munge_path_list VARIABLE PATH
  15295. # -----------------------------------
  15296. # VARIABLE is name of variable containing _space_ separated list of
  15297. # directories to be munged by the contents of PATH, which is string
  15298. # having a format:
  15299. # "DIR[:DIR]:"
  15300. # string "DIR[ DIR]" will be prepended to VARIABLE
  15301. # ":DIR[:DIR]"
  15302. # string "DIR[ DIR]" will be appended to VARIABLE
  15303. # "DIRP[:DIRP]::[DIRA:]DIRA"
  15304. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  15305. # "DIRA[ DIRA]" will be appended to VARIABLE
  15306. # "DIR[:DIR]"
  15307. # VARIABLE will be replaced by "DIR[ DIR]"
  15308. func_munge_path_list ()
  15309. {
  15310. case x$2 in
  15311. x)
  15312. ;;
  15313. *:)
  15314. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  15315. ;;
  15316. x:*)
  15317. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  15318. ;;
  15319. *::*)
  15320. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  15321. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  15322. ;;
  15323. *)
  15324. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  15325. ;;
  15326. esac
  15327. }
  15328. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  15329. func_cc_basename ()
  15330. {
  15331. for cc_temp in $*""; do
  15332. case $cc_temp in
  15333. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15334. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15335. \-*) ;;
  15336. *) break;;
  15337. esac
  15338. done
  15339. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15340. }
  15341. # ### END FUNCTIONS SHARED WITH CONFIGURE
  15342. _LT_EOF
  15343. case $host_os in
  15344. aix3*)
  15345. cat <<\_LT_EOF >> "$cfgfile"
  15346. # AIX sometimes has problems with the GCC collect2 program. For some
  15347. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15348. # vanish in a puff of smoke.
  15349. if test set != "${COLLECT_NAMES+set}"; then
  15350. COLLECT_NAMES=
  15351. export COLLECT_NAMES
  15352. fi
  15353. _LT_EOF
  15354. ;;
  15355. esac
  15356. ltmain=$ac_aux_dir/ltmain.sh
  15357. # We use sed instead of cat because bash on DJGPP gets confused if
  15358. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15359. # text mode, it properly converts lines to CR/LF. This bash problem
  15360. # is reportedly fixed, but why not run on old versions too?
  15361. sed '$q' "$ltmain" >> "$cfgfile" \
  15362. || (rm -f "$cfgfile"; exit 1)
  15363. mv -f "$cfgfile" "$ofile" ||
  15364. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15365. chmod +x "$ofile"
  15366. ;;
  15367. esac
  15368. done # for ac_tag
  15369. as_fn_exit 0
  15370. _ACEOF
  15371. ac_clean_files=$ac_clean_files_save
  15372. test $ac_write_fail = 0 ||
  15373. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15374. # configure is writing to config.log, and then calls config.status.
  15375. # config.status does its own redirection, appending to config.log.
  15376. # Unfortunately, on DOS this fails, as config.log is still kept open
  15377. # by configure, so config.status won't be able to write to it; its
  15378. # output is simply discarded. So we exec the FD to /dev/null,
  15379. # effectively closing config.log, so it can be properly (re)opened and
  15380. # appended to by config.status. When coming back to configure, we
  15381. # need to make the FD available again.
  15382. if test "$no_create" != yes; then
  15383. ac_cs_success=:
  15384. ac_config_status_args=
  15385. test "$silent" = yes &&
  15386. ac_config_status_args="$ac_config_status_args --quiet"
  15387. exec 5>/dev/null
  15388. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15389. exec 5>>config.log
  15390. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15391. # would make configure fail if this is the last instruction.
  15392. $ac_cs_success || as_fn_exit 1
  15393. fi
  15394. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15396. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15397. fi