configure 467 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libosip2 5.2.1.
  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 \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='libosip2'
  539. PACKAGE_TARNAME='libosip2'
  540. PACKAGE_VERSION='5.2.1'
  541. PACKAGE_STRING='libosip2 5.2.1'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="include/osip2/osip.h"
  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. FSM_LIB
  585. PARSER_LIB
  586. EXTRA_LIB
  587. SIP_FSM_FLAGS
  588. SIP_PARSER_FLAGS
  589. SIP_EXTRA_FLAGS
  590. SIP_CFLAGS
  591. BUILD_MAXSIZE_FALSE
  592. BUILD_MAXSIZE_TRUE
  593. COMPILE_TESTS_FALSE
  594. COMPILE_TESTS_TRUE
  595. BUILD_MT_FALSE
  596. BUILD_MT_TRUE
  597. PTHREAD_CFLAGS
  598. PTHREAD_LIBS
  599. PTHREAD_CC
  600. ax_pthread_config
  601. LT_SYS_LIBRARY_PATH
  602. OTOOL64
  603. OTOOL
  604. LIPO
  605. NMEDIT
  606. DSYMUTIL
  607. MANIFEST_TOOL
  608. RANLIB
  609. ac_ct_AR
  610. AR
  611. DLLTOOL
  612. OBJDUMP
  613. LN_S
  614. NM
  615. ac_ct_DUMPBIN
  616. DUMPBIN
  617. LD
  618. FGREP
  619. EGREP
  620. GREP
  621. LIBTOOL
  622. SED
  623. CPP
  624. am__fastdepCC_FALSE
  625. am__fastdepCC_TRUE
  626. CCDEPMODE
  627. am__nodep
  628. AMDEPBACKSLASH
  629. AMDEP_FALSE
  630. AMDEP_TRUE
  631. am__include
  632. DEPDIR
  633. OBJEXT
  634. EXEEXT
  635. ac_ct_CC
  636. CPPFLAGS
  637. LDFLAGS
  638. CFLAGS
  639. CC
  640. host_os
  641. host_vendor
  642. host_cpu
  643. host
  644. build_os
  645. build_vendor
  646. build_cpu
  647. build
  648. AM_BACKSLASH
  649. AM_DEFAULT_VERBOSITY
  650. AM_DEFAULT_V
  651. AM_V
  652. am__untar
  653. am__tar
  654. AMTAR
  655. am__leading_dot
  656. SET_MAKE
  657. AWK
  658. mkdir_p
  659. MKDIR_P
  660. INSTALL_STRIP_PROGRAM
  661. STRIP
  662. install_sh
  663. MAKEINFO
  664. AUTOHEADER
  665. AUTOMAKE
  666. AUTOCONF
  667. ACLOCAL
  668. VERSION
  669. PACKAGE
  670. CYGPATH_W
  671. am__isrc
  672. INSTALL_DATA
  673. INSTALL_SCRIPT
  674. INSTALL_PROGRAM
  675. OSIP_VERSION
  676. LIBOSIP_SO_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. runstatedir
  697. localstatedir
  698. sharedstatedir
  699. sysconfdir
  700. datadir
  701. datarootdir
  702. libexecdir
  703. sbindir
  704. bindir
  705. program_transform_name
  706. prefix
  707. exec_prefix
  708. PACKAGE_URL
  709. PACKAGE_BUGREPORT
  710. PACKAGE_STRING
  711. PACKAGE_VERSION
  712. PACKAGE_TARNAME
  713. PACKAGE_NAME
  714. PATH_SEPARATOR
  715. SHELL
  716. am__quote'
  717. ac_subst_files=''
  718. ac_user_opts='
  719. enable_option_checking
  720. enable_silent_rules
  721. enable_dependency_tracking
  722. enable_shared
  723. enable_static
  724. with_pic
  725. enable_fast_install
  726. with_aix_soname
  727. with_gnu_ld
  728. with_sysroot
  729. enable_libtool_lock
  730. enable_mpatrol
  731. enable_gprof
  732. enable_trace
  733. enable_minisize
  734. enable_pthread
  735. enable_semaphore
  736. enable_gperf
  737. enable_hashtable
  738. enable_mt
  739. enable_test
  740. '
  741. ac_precious_vars='build_alias
  742. host_alias
  743. target_alias
  744. CC
  745. CFLAGS
  746. LDFLAGS
  747. LIBS
  748. CPPFLAGS
  749. CPP
  750. LT_SYS_LIBRARY_PATH'
  751. # Initialize some variables set by options.
  752. ac_init_help=
  753. ac_init_version=false
  754. ac_unrecognized_opts=
  755. ac_unrecognized_sep=
  756. # The variables have the same names as the options, with
  757. # dashes changed to underlines.
  758. cache_file=/dev/null
  759. exec_prefix=NONE
  760. no_create=
  761. no_recursion=
  762. prefix=NONE
  763. program_prefix=NONE
  764. program_suffix=NONE
  765. program_transform_name=s,x,x,
  766. silent=
  767. site=
  768. srcdir=
  769. verbose=
  770. x_includes=NONE
  771. x_libraries=NONE
  772. # Installation directory options.
  773. # These are left unexpanded so users can "make install exec_prefix=/foo"
  774. # and all the variables that are supposed to be based on exec_prefix
  775. # by default will actually change.
  776. # Use braces instead of parens because sh, perl, etc. also accept them.
  777. # (The list follows the same order as the GNU Coding Standards.)
  778. bindir='${exec_prefix}/bin'
  779. sbindir='${exec_prefix}/sbin'
  780. libexecdir='${exec_prefix}/libexec'
  781. datarootdir='${prefix}/share'
  782. datadir='${datarootdir}'
  783. sysconfdir='${prefix}/etc'
  784. sharedstatedir='${prefix}/com'
  785. localstatedir='${prefix}/var'
  786. runstatedir='${localstatedir}/run'
  787. includedir='${prefix}/include'
  788. oldincludedir='/usr/include'
  789. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  790. infodir='${datarootdir}/info'
  791. htmldir='${docdir}'
  792. dvidir='${docdir}'
  793. pdfdir='${docdir}'
  794. psdir='${docdir}'
  795. libdir='${exec_prefix}/lib'
  796. localedir='${datarootdir}/locale'
  797. mandir='${datarootdir}/man'
  798. ac_prev=
  799. ac_dashdash=
  800. for ac_option
  801. do
  802. # If the previous option needs an argument, assign it.
  803. if test -n "$ac_prev"; then
  804. eval $ac_prev=\$ac_option
  805. ac_prev=
  806. continue
  807. fi
  808. case $ac_option in
  809. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  810. *=) ac_optarg= ;;
  811. *) ac_optarg=yes ;;
  812. esac
  813. # Accept the important Cygnus configure options, so we can diagnose typos.
  814. case $ac_dashdash$ac_option in
  815. --)
  816. ac_dashdash=yes ;;
  817. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  818. ac_prev=bindir ;;
  819. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  820. bindir=$ac_optarg ;;
  821. -build | --build | --buil | --bui | --bu)
  822. ac_prev=build_alias ;;
  823. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  824. build_alias=$ac_optarg ;;
  825. -cache-file | --cache-file | --cache-fil | --cache-fi \
  826. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  827. ac_prev=cache_file ;;
  828. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  829. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  830. cache_file=$ac_optarg ;;
  831. --config-cache | -C)
  832. cache_file=config.cache ;;
  833. -datadir | --datadir | --datadi | --datad)
  834. ac_prev=datadir ;;
  835. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  836. datadir=$ac_optarg ;;
  837. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  838. | --dataroo | --dataro | --datar)
  839. ac_prev=datarootdir ;;
  840. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  841. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  842. datarootdir=$ac_optarg ;;
  843. -disable-* | --disable-*)
  844. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  847. as_fn_error $? "invalid feature name: $ac_useropt"
  848. ac_useropt_orig=$ac_useropt
  849. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  850. case $ac_user_opts in
  851. *"
  852. "enable_$ac_useropt"
  853. "*) ;;
  854. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  855. ac_unrecognized_sep=', ';;
  856. esac
  857. eval enable_$ac_useropt=no ;;
  858. -docdir | --docdir | --docdi | --doc | --do)
  859. ac_prev=docdir ;;
  860. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  861. docdir=$ac_optarg ;;
  862. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  863. ac_prev=dvidir ;;
  864. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  865. dvidir=$ac_optarg ;;
  866. -enable-* | --enable-*)
  867. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  868. # Reject names that are not valid shell variable names.
  869. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  870. as_fn_error $? "invalid feature name: $ac_useropt"
  871. ac_useropt_orig=$ac_useropt
  872. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  873. case $ac_user_opts in
  874. *"
  875. "enable_$ac_useropt"
  876. "*) ;;
  877. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  878. ac_unrecognized_sep=', ';;
  879. esac
  880. eval enable_$ac_useropt=\$ac_optarg ;;
  881. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  882. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  883. | --exec | --exe | --ex)
  884. ac_prev=exec_prefix ;;
  885. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  886. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  887. | --exec=* | --exe=* | --ex=*)
  888. exec_prefix=$ac_optarg ;;
  889. -gas | --gas | --ga | --g)
  890. # Obsolete; use --with-gas.
  891. with_gas=yes ;;
  892. -help | --help | --hel | --he | -h)
  893. ac_init_help=long ;;
  894. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  895. ac_init_help=recursive ;;
  896. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  897. ac_init_help=short ;;
  898. -host | --host | --hos | --ho)
  899. ac_prev=host_alias ;;
  900. -host=* | --host=* | --hos=* | --ho=*)
  901. host_alias=$ac_optarg ;;
  902. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  903. ac_prev=htmldir ;;
  904. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  905. | --ht=*)
  906. htmldir=$ac_optarg ;;
  907. -includedir | --includedir | --includedi | --included | --include \
  908. | --includ | --inclu | --incl | --inc)
  909. ac_prev=includedir ;;
  910. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  911. | --includ=* | --inclu=* | --incl=* | --inc=*)
  912. includedir=$ac_optarg ;;
  913. -infodir | --infodir | --infodi | --infod | --info | --inf)
  914. ac_prev=infodir ;;
  915. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  916. infodir=$ac_optarg ;;
  917. -libdir | --libdir | --libdi | --libd)
  918. ac_prev=libdir ;;
  919. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  920. libdir=$ac_optarg ;;
  921. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  922. | --libexe | --libex | --libe)
  923. ac_prev=libexecdir ;;
  924. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  925. | --libexe=* | --libex=* | --libe=*)
  926. libexecdir=$ac_optarg ;;
  927. -localedir | --localedir | --localedi | --localed | --locale)
  928. ac_prev=localedir ;;
  929. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  930. localedir=$ac_optarg ;;
  931. -localstatedir | --localstatedir | --localstatedi | --localstated \
  932. | --localstate | --localstat | --localsta | --localst | --locals)
  933. ac_prev=localstatedir ;;
  934. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  935. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  936. localstatedir=$ac_optarg ;;
  937. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  938. ac_prev=mandir ;;
  939. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  940. mandir=$ac_optarg ;;
  941. -nfp | --nfp | --nf)
  942. # Obsolete; use --without-fp.
  943. with_fp=no ;;
  944. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  945. | --no-cr | --no-c | -n)
  946. no_create=yes ;;
  947. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  948. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  949. no_recursion=yes ;;
  950. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  951. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  952. | --oldin | --oldi | --old | --ol | --o)
  953. ac_prev=oldincludedir ;;
  954. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  955. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  956. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  957. oldincludedir=$ac_optarg ;;
  958. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  959. ac_prev=prefix ;;
  960. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  961. prefix=$ac_optarg ;;
  962. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  963. | --program-pre | --program-pr | --program-p)
  964. ac_prev=program_prefix ;;
  965. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  966. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  967. program_prefix=$ac_optarg ;;
  968. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  969. | --program-suf | --program-su | --program-s)
  970. ac_prev=program_suffix ;;
  971. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  972. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  973. program_suffix=$ac_optarg ;;
  974. -program-transform-name | --program-transform-name \
  975. | --program-transform-nam | --program-transform-na \
  976. | --program-transform-n | --program-transform- \
  977. | --program-transform | --program-transfor \
  978. | --program-transfo | --program-transf \
  979. | --program-trans | --program-tran \
  980. | --progr-tra | --program-tr | --program-t)
  981. ac_prev=program_transform_name ;;
  982. -program-transform-name=* | --program-transform-name=* \
  983. | --program-transform-nam=* | --program-transform-na=* \
  984. | --program-transform-n=* | --program-transform-=* \
  985. | --program-transform=* | --program-transfor=* \
  986. | --program-transfo=* | --program-transf=* \
  987. | --program-trans=* | --program-tran=* \
  988. | --progr-tra=* | --program-tr=* | --program-t=*)
  989. program_transform_name=$ac_optarg ;;
  990. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  991. ac_prev=pdfdir ;;
  992. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  993. pdfdir=$ac_optarg ;;
  994. -psdir | --psdir | --psdi | --psd | --ps)
  995. ac_prev=psdir ;;
  996. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  997. psdir=$ac_optarg ;;
  998. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  999. | -silent | --silent | --silen | --sile | --sil)
  1000. silent=yes ;;
  1001. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1002. | --runstate | --runstat | --runsta | --runst | --runs \
  1003. | --run | --ru | --r)
  1004. ac_prev=runstatedir ;;
  1005. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1006. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1007. | --run=* | --ru=* | --r=*)
  1008. runstatedir=$ac_optarg ;;
  1009. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1010. ac_prev=sbindir ;;
  1011. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1012. | --sbi=* | --sb=*)
  1013. sbindir=$ac_optarg ;;
  1014. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1015. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1016. | --sharedst | --shareds | --shared | --share | --shar \
  1017. | --sha | --sh)
  1018. ac_prev=sharedstatedir ;;
  1019. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1020. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1021. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1022. | --sha=* | --sh=*)
  1023. sharedstatedir=$ac_optarg ;;
  1024. -site | --site | --sit)
  1025. ac_prev=site ;;
  1026. -site=* | --site=* | --sit=*)
  1027. site=$ac_optarg ;;
  1028. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1029. ac_prev=srcdir ;;
  1030. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1031. srcdir=$ac_optarg ;;
  1032. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1033. | --syscon | --sysco | --sysc | --sys | --sy)
  1034. ac_prev=sysconfdir ;;
  1035. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1036. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1037. sysconfdir=$ac_optarg ;;
  1038. -target | --target | --targe | --targ | --tar | --ta | --t)
  1039. ac_prev=target_alias ;;
  1040. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1041. target_alias=$ac_optarg ;;
  1042. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1043. verbose=yes ;;
  1044. -version | --version | --versio | --versi | --vers | -V)
  1045. ac_init_version=: ;;
  1046. -with-* | --with-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error $? "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=\$ac_optarg ;;
  1061. -without-* | --without-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error $? "invalid package name: $ac_useropt"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "with_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval with_$ac_useropt=no ;;
  1076. --x)
  1077. # Obsolete; use --with-x.
  1078. with_x=yes ;;
  1079. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1080. | --x-incl | --x-inc | --x-in | --x-i)
  1081. ac_prev=x_includes ;;
  1082. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1083. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1084. x_includes=$ac_optarg ;;
  1085. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1086. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1087. ac_prev=x_libraries ;;
  1088. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1089. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1090. x_libraries=$ac_optarg ;;
  1091. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1092. Try \`$0 --help' for more information"
  1093. ;;
  1094. *=*)
  1095. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1096. # Reject names that are not valid shell variable names.
  1097. case $ac_envvar in #(
  1098. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1099. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1100. esac
  1101. eval $ac_envvar=\$ac_optarg
  1102. export $ac_envvar ;;
  1103. *)
  1104. # FIXME: should be removed in autoconf 3.0.
  1105. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1106. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1107. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1108. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1109. ;;
  1110. esac
  1111. done
  1112. if test -n "$ac_prev"; then
  1113. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1114. as_fn_error $? "missing argument to $ac_option"
  1115. fi
  1116. if test -n "$ac_unrecognized_opts"; then
  1117. case $enable_option_checking in
  1118. no) ;;
  1119. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1120. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1121. esac
  1122. fi
  1123. # Check all directory arguments for consistency.
  1124. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1125. datadir sysconfdir sharedstatedir localstatedir includedir \
  1126. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1127. libdir localedir mandir runstatedir
  1128. do
  1129. eval ac_val=\$$ac_var
  1130. # Remove trailing slashes.
  1131. case $ac_val in
  1132. */ )
  1133. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1134. eval $ac_var=\$ac_val;;
  1135. esac
  1136. # Be sure to have absolute directory names.
  1137. case $ac_val in
  1138. [\\/$]* | ?:[\\/]* ) continue;;
  1139. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1140. esac
  1141. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1142. done
  1143. # There might be people who depend on the old broken behavior: `$host'
  1144. # used to hold the argument of --host etc.
  1145. # FIXME: To remove some day.
  1146. build=$build_alias
  1147. host=$host_alias
  1148. target=$target_alias
  1149. # FIXME: To remove some day.
  1150. if test "x$host_alias" != x; then
  1151. if test "x$build_alias" = x; then
  1152. cross_compiling=maybe
  1153. elif test "x$build_alias" != "x$host_alias"; then
  1154. cross_compiling=yes
  1155. fi
  1156. fi
  1157. ac_tool_prefix=
  1158. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1159. test "$silent" = yes && exec 6>/dev/null
  1160. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1161. ac_ls_di=`ls -di .` &&
  1162. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1163. as_fn_error $? "working directory cannot be determined"
  1164. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1165. as_fn_error $? "pwd does not report name of working directory"
  1166. # Find the source files, if location was not specified.
  1167. if test -z "$srcdir"; then
  1168. ac_srcdir_defaulted=yes
  1169. # Try the directory containing this script, then the parent directory.
  1170. ac_confdir=`$as_dirname -- "$as_myself" ||
  1171. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1172. X"$as_myself" : 'X\(//\)[^/]' \| \
  1173. X"$as_myself" : 'X\(//\)$' \| \
  1174. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1175. $as_echo X"$as_myself" |
  1176. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1177. s//\1/
  1178. q
  1179. }
  1180. /^X\(\/\/\)[^/].*/{
  1181. s//\1/
  1182. q
  1183. }
  1184. /^X\(\/\/\)$/{
  1185. s//\1/
  1186. q
  1187. }
  1188. /^X\(\/\).*/{
  1189. s//\1/
  1190. q
  1191. }
  1192. s/.*/./; q'`
  1193. srcdir=$ac_confdir
  1194. if test ! -r "$srcdir/$ac_unique_file"; then
  1195. srcdir=..
  1196. fi
  1197. else
  1198. ac_srcdir_defaulted=no
  1199. fi
  1200. if test ! -r "$srcdir/$ac_unique_file"; then
  1201. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1202. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1203. fi
  1204. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1205. ac_abs_confdir=`(
  1206. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1207. pwd)`
  1208. # When building in place, set srcdir=.
  1209. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1210. srcdir=.
  1211. fi
  1212. # Remove unnecessary trailing slashes from srcdir.
  1213. # Double slashes in file names in object file debugging info
  1214. # mess up M-x gdb in Emacs.
  1215. case $srcdir in
  1216. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1217. esac
  1218. for ac_var in $ac_precious_vars; do
  1219. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1220. eval ac_env_${ac_var}_value=\$${ac_var}
  1221. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1222. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1223. done
  1224. #
  1225. # Report the --help message.
  1226. #
  1227. if test "$ac_init_help" = "long"; then
  1228. # Omit some internal or obsolete options to make the list less imposing.
  1229. # This message is too long to be a string in the A/UX 3.1 sh.
  1230. cat <<_ACEOF
  1231. \`configure' configures libosip2 5.2.1 to adapt to many kinds of systems.
  1232. Usage: $0 [OPTION]... [VAR=VALUE]...
  1233. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1234. VAR=VALUE. See below for descriptions of some of the useful variables.
  1235. Defaults for the options are specified in brackets.
  1236. Configuration:
  1237. -h, --help display this help and exit
  1238. --help=short display options specific to this package
  1239. --help=recursive display the short help of all the included packages
  1240. -V, --version display version information and exit
  1241. -q, --quiet, --silent do not print \`checking ...' messages
  1242. --cache-file=FILE cache test results in FILE [disabled]
  1243. -C, --config-cache alias for \`--cache-file=config.cache'
  1244. -n, --no-create do not create output files
  1245. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1246. Installation directories:
  1247. --prefix=PREFIX install architecture-independent files in PREFIX
  1248. [$ac_default_prefix]
  1249. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1250. [PREFIX]
  1251. By default, \`make install' will install all the files in
  1252. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1253. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1254. for instance \`--prefix=\$HOME'.
  1255. For better control, use the options below.
  1256. Fine tuning of the installation directories:
  1257. --bindir=DIR user executables [EPREFIX/bin]
  1258. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1259. --libexecdir=DIR program executables [EPREFIX/libexec]
  1260. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1261. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1262. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1263. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1264. --libdir=DIR object code libraries [EPREFIX/lib]
  1265. --includedir=DIR C header files [PREFIX/include]
  1266. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1267. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1268. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1269. --infodir=DIR info documentation [DATAROOTDIR/info]
  1270. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1271. --mandir=DIR man documentation [DATAROOTDIR/man]
  1272. --docdir=DIR documentation root [DATAROOTDIR/doc/libosip2]
  1273. --htmldir=DIR html documentation [DOCDIR]
  1274. --dvidir=DIR dvi documentation [DOCDIR]
  1275. --pdfdir=DIR pdf documentation [DOCDIR]
  1276. --psdir=DIR ps documentation [DOCDIR]
  1277. _ACEOF
  1278. cat <<\_ACEOF
  1279. Program names:
  1280. --program-prefix=PREFIX prepend PREFIX to installed program names
  1281. --program-suffix=SUFFIX append SUFFIX to installed program names
  1282. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1283. System types:
  1284. --build=BUILD configure for building on BUILD [guessed]
  1285. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1286. _ACEOF
  1287. fi
  1288. if test -n "$ac_init_help"; then
  1289. case $ac_init_help in
  1290. short | recursive ) echo "Configuration of libosip2 5.2.1:";;
  1291. esac
  1292. cat <<\_ACEOF
  1293. Optional Features:
  1294. --disable-option-checking ignore unrecognized --enable/--with options
  1295. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1296. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1297. --enable-silent-rules less verbose build output (undo: "make V=1")
  1298. --disable-silent-rules verbose build output (undo: "make V=0")
  1299. --enable-dependency-tracking
  1300. do not reject slow dependency extractors
  1301. --disable-dependency-tracking
  1302. speeds up one-time build
  1303. --enable-shared[=PKGS] build shared libraries [default=yes]
  1304. --enable-static[=PKGS] build static libraries [default=yes]
  1305. --enable-fast-install[=PKGS]
  1306. optimize for fast installation [default=yes]
  1307. --disable-libtool-lock avoid locking (might break parallel builds)
  1308. --enable-mpatrol turn on memory leak detection with patrol
  1309. [default=no]
  1310. --enable-gprof turn on profiling support [default=no]
  1311. --enable-trace turn on trace [default=yes]
  1312. --enable-minisize only compile minimal voip related code [default=no]
  1313. --enable-pthread=[autodetect|force]
  1314. autodetect POSIX threads or force -DHAVE_PTHREAD
  1315. [default=autodetect]
  1316. --enable-semaphore=[autodetect|semaphore|sysv]
  1317. select your prefered semaphore [default=autodetect].
  1318. --enable-gperf enable support for gperf (improve the parser speed)
  1319. [default=no]
  1320. --enable-hashtable compile with hashtable (libdict) support
  1321. [default=no]
  1322. --enable-mt compile with multi-thread support [default=yes]
  1323. --enable-test enable building test programs [default=no]
  1324. Optional Packages:
  1325. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1326. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1327. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1328. both]
  1329. --with-aix-soname=aix|svr4|both
  1330. shared library versioning (aka "SONAME") variant to
  1331. provide on AIX, [default=aix].
  1332. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1333. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1334. compiler's sysroot if not specified).
  1335. Some influential environment variables:
  1336. CC C compiler command
  1337. CFLAGS C compiler flags
  1338. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1339. nonstandard directory <lib dir>
  1340. LIBS libraries to pass to the linker, e.g. -l<library>
  1341. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1342. you have headers in a nonstandard directory <include dir>
  1343. CPP C preprocessor
  1344. LT_SYS_LIBRARY_PATH
  1345. User-defined run-time library search path.
  1346. Use these variables to override the choices made by `configure' or to help
  1347. it to find libraries and programs with nonstandard names/locations.
  1348. Report bugs to the package provider.
  1349. _ACEOF
  1350. ac_status=$?
  1351. fi
  1352. if test "$ac_init_help" = "recursive"; then
  1353. # If there are subdirs, report their specific --help.
  1354. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1355. test -d "$ac_dir" ||
  1356. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1357. continue
  1358. ac_builddir=.
  1359. case "$ac_dir" in
  1360. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1361. *)
  1362. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1363. # A ".." for each directory in $ac_dir_suffix.
  1364. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1365. case $ac_top_builddir_sub in
  1366. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1367. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1368. esac ;;
  1369. esac
  1370. ac_abs_top_builddir=$ac_pwd
  1371. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1372. # for backward compatibility:
  1373. ac_top_builddir=$ac_top_build_prefix
  1374. case $srcdir in
  1375. .) # We are building in place.
  1376. ac_srcdir=.
  1377. ac_top_srcdir=$ac_top_builddir_sub
  1378. ac_abs_top_srcdir=$ac_pwd ;;
  1379. [\\/]* | ?:[\\/]* ) # Absolute name.
  1380. ac_srcdir=$srcdir$ac_dir_suffix;
  1381. ac_top_srcdir=$srcdir
  1382. ac_abs_top_srcdir=$srcdir ;;
  1383. *) # Relative name.
  1384. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1385. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1386. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1387. esac
  1388. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1389. cd "$ac_dir" || { ac_status=$?; continue; }
  1390. # Check for guested configure.
  1391. if test -f "$ac_srcdir/configure.gnu"; then
  1392. echo &&
  1393. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1394. elif test -f "$ac_srcdir/configure"; then
  1395. echo &&
  1396. $SHELL "$ac_srcdir/configure" --help=recursive
  1397. else
  1398. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1399. fi || ac_status=$?
  1400. cd "$ac_pwd" || { ac_status=$?; break; }
  1401. done
  1402. fi
  1403. test -n "$ac_init_help" && exit $ac_status
  1404. if $ac_init_version; then
  1405. cat <<\_ACEOF
  1406. libosip2 configure 5.2.1
  1407. generated by GNU Autoconf 2.69
  1408. Copyright (C) 2012 Free Software Foundation, Inc.
  1409. This configure script is free software; the Free Software Foundation
  1410. gives unlimited permission to copy, distribute and modify it.
  1411. _ACEOF
  1412. exit
  1413. fi
  1414. ## ------------------------ ##
  1415. ## Autoconf initialization. ##
  1416. ## ------------------------ ##
  1417. # ac_fn_c_try_compile LINENO
  1418. # --------------------------
  1419. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1420. ac_fn_c_try_compile ()
  1421. {
  1422. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1423. rm -f conftest.$ac_objext
  1424. if { { ac_try="$ac_compile"
  1425. case "(($ac_try" in
  1426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1427. *) ac_try_echo=$ac_try;;
  1428. esac
  1429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1430. $as_echo "$ac_try_echo"; } >&5
  1431. (eval "$ac_compile") 2>conftest.err
  1432. ac_status=$?
  1433. if test -s conftest.err; then
  1434. grep -v '^ *+' conftest.err >conftest.er1
  1435. cat conftest.er1 >&5
  1436. mv -f conftest.er1 conftest.err
  1437. fi
  1438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1439. test $ac_status = 0; } && {
  1440. test -z "$ac_c_werror_flag" ||
  1441. test ! -s conftest.err
  1442. } && test -s conftest.$ac_objext; then :
  1443. ac_retval=0
  1444. else
  1445. $as_echo "$as_me: failed program was:" >&5
  1446. sed 's/^/| /' conftest.$ac_ext >&5
  1447. ac_retval=1
  1448. fi
  1449. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1450. as_fn_set_status $ac_retval
  1451. } # ac_fn_c_try_compile
  1452. # ac_fn_c_try_cpp LINENO
  1453. # ----------------------
  1454. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1455. ac_fn_c_try_cpp ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1459. case "(($ac_try" in
  1460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1461. *) ac_try_echo=$ac_try;;
  1462. esac
  1463. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1464. $as_echo "$ac_try_echo"; } >&5
  1465. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1466. ac_status=$?
  1467. if test -s conftest.err; then
  1468. grep -v '^ *+' conftest.err >conftest.er1
  1469. cat conftest.er1 >&5
  1470. mv -f conftest.er1 conftest.err
  1471. fi
  1472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1473. test $ac_status = 0; } > conftest.i && {
  1474. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1475. test ! -s conftest.err
  1476. }; then :
  1477. ac_retval=0
  1478. else
  1479. $as_echo "$as_me: failed program was:" >&5
  1480. sed 's/^/| /' conftest.$ac_ext >&5
  1481. ac_retval=1
  1482. fi
  1483. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1484. as_fn_set_status $ac_retval
  1485. } # ac_fn_c_try_cpp
  1486. # ac_fn_c_try_link LINENO
  1487. # -----------------------
  1488. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1489. ac_fn_c_try_link ()
  1490. {
  1491. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1492. rm -f conftest.$ac_objext conftest$ac_exeext
  1493. if { { ac_try="$ac_link"
  1494. case "(($ac_try" in
  1495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1496. *) ac_try_echo=$ac_try;;
  1497. esac
  1498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1499. $as_echo "$ac_try_echo"; } >&5
  1500. (eval "$ac_link") 2>conftest.err
  1501. ac_status=$?
  1502. if test -s conftest.err; then
  1503. grep -v '^ *+' conftest.err >conftest.er1
  1504. cat conftest.er1 >&5
  1505. mv -f conftest.er1 conftest.err
  1506. fi
  1507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1508. test $ac_status = 0; } && {
  1509. test -z "$ac_c_werror_flag" ||
  1510. test ! -s conftest.err
  1511. } && test -s conftest$ac_exeext && {
  1512. test "$cross_compiling" = yes ||
  1513. test -x conftest$ac_exeext
  1514. }; then :
  1515. ac_retval=0
  1516. else
  1517. $as_echo "$as_me: failed program was:" >&5
  1518. sed 's/^/| /' conftest.$ac_ext >&5
  1519. ac_retval=1
  1520. fi
  1521. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1522. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1523. # interfere with the next link command; also delete a directory that is
  1524. # left behind by Apple's compiler. We do this before executing the actions.
  1525. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1526. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1527. as_fn_set_status $ac_retval
  1528. } # ac_fn_c_try_link
  1529. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1530. # -------------------------------------------------------
  1531. # Tests whether HEADER exists and can be compiled using the include files in
  1532. # INCLUDES, setting the cache variable VAR accordingly.
  1533. ac_fn_c_check_header_compile ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1537. $as_echo_n "checking for $2... " >&6; }
  1538. if eval \${$3+:} false; then :
  1539. $as_echo_n "(cached) " >&6
  1540. else
  1541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1542. /* end confdefs.h. */
  1543. $4
  1544. #include <$2>
  1545. _ACEOF
  1546. if ac_fn_c_try_compile "$LINENO"; then :
  1547. eval "$3=yes"
  1548. else
  1549. eval "$3=no"
  1550. fi
  1551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1552. fi
  1553. eval ac_res=\$$3
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1555. $as_echo "$ac_res" >&6; }
  1556. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1557. } # ac_fn_c_check_header_compile
  1558. # ac_fn_c_try_run LINENO
  1559. # ----------------------
  1560. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1561. # that executables *can* be run.
  1562. ac_fn_c_try_run ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. if { { ac_try="$ac_link"
  1566. case "(($ac_try" in
  1567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1568. *) ac_try_echo=$ac_try;;
  1569. esac
  1570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1571. $as_echo "$ac_try_echo"; } >&5
  1572. (eval "$ac_link") 2>&5
  1573. ac_status=$?
  1574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1575. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1576. { { case "(($ac_try" in
  1577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1578. *) ac_try_echo=$ac_try;;
  1579. esac
  1580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1581. $as_echo "$ac_try_echo"; } >&5
  1582. (eval "$ac_try") 2>&5
  1583. ac_status=$?
  1584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1585. test $ac_status = 0; }; }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: program exited with status $ac_status" >&5
  1589. $as_echo "$as_me: failed program was:" >&5
  1590. sed 's/^/| /' conftest.$ac_ext >&5
  1591. ac_retval=$ac_status
  1592. fi
  1593. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1594. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1595. as_fn_set_status $ac_retval
  1596. } # ac_fn_c_try_run
  1597. # ac_fn_c_check_func LINENO FUNC VAR
  1598. # ----------------------------------
  1599. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1600. ac_fn_c_check_func ()
  1601. {
  1602. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1604. $as_echo_n "checking for $2... " >&6; }
  1605. if eval \${$3+:} false; then :
  1606. $as_echo_n "(cached) " >&6
  1607. else
  1608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1609. /* end confdefs.h. */
  1610. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1611. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1612. #define $2 innocuous_$2
  1613. /* System header to define __stub macros and hopefully few prototypes,
  1614. which can conflict with char $2 (); below.
  1615. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1616. <limits.h> exists even on freestanding compilers. */
  1617. #ifdef __STDC__
  1618. # include <limits.h>
  1619. #else
  1620. # include <assert.h>
  1621. #endif
  1622. #undef $2
  1623. /* Override any GCC internal prototype to avoid an error.
  1624. Use char because int might match the return type of a GCC
  1625. builtin and then its argument prototype would still apply. */
  1626. #ifdef __cplusplus
  1627. extern "C"
  1628. #endif
  1629. char $2 ();
  1630. /* The GNU C library defines this for functions which it implements
  1631. to always fail with ENOSYS. Some functions are actually named
  1632. something starting with __ and the normal name is an alias. */
  1633. #if defined __stub_$2 || defined __stub___$2
  1634. choke me
  1635. #endif
  1636. int
  1637. main ()
  1638. {
  1639. return $2 ();
  1640. ;
  1641. return 0;
  1642. }
  1643. _ACEOF
  1644. if ac_fn_c_try_link "$LINENO"; then :
  1645. eval "$3=yes"
  1646. else
  1647. eval "$3=no"
  1648. fi
  1649. rm -f core conftest.err conftest.$ac_objext \
  1650. conftest$ac_exeext conftest.$ac_ext
  1651. fi
  1652. eval ac_res=\$$3
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1654. $as_echo "$ac_res" >&6; }
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. } # ac_fn_c_check_func
  1657. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1658. # -------------------------------------------------------
  1659. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1660. # the include files in INCLUDES and setting the cache variable VAR
  1661. # accordingly.
  1662. ac_fn_c_check_header_mongrel ()
  1663. {
  1664. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1665. if eval \${$3+:} false; then :
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1667. $as_echo_n "checking for $2... " >&6; }
  1668. if eval \${$3+:} false; then :
  1669. $as_echo_n "(cached) " >&6
  1670. fi
  1671. eval ac_res=\$$3
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1673. $as_echo "$ac_res" >&6; }
  1674. else
  1675. # Is the header compilable?
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1677. $as_echo_n "checking $2 usability... " >&6; }
  1678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1679. /* end confdefs.h. */
  1680. $4
  1681. #include <$2>
  1682. _ACEOF
  1683. if ac_fn_c_try_compile "$LINENO"; then :
  1684. ac_header_compiler=yes
  1685. else
  1686. ac_header_compiler=no
  1687. fi
  1688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1690. $as_echo "$ac_header_compiler" >&6; }
  1691. # Is the header present?
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1693. $as_echo_n "checking $2 presence... " >&6; }
  1694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1695. /* end confdefs.h. */
  1696. #include <$2>
  1697. _ACEOF
  1698. if ac_fn_c_try_cpp "$LINENO"; then :
  1699. ac_header_preproc=yes
  1700. else
  1701. ac_header_preproc=no
  1702. fi
  1703. rm -f conftest.err conftest.i conftest.$ac_ext
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1705. $as_echo "$ac_header_preproc" >&6; }
  1706. # So? What about this header?
  1707. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1708. yes:no: )
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1710. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1712. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1713. ;;
  1714. no:yes:* )
  1715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1716. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1718. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1720. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1722. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1724. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1725. ;;
  1726. esac
  1727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1728. $as_echo_n "checking for $2... " >&6; }
  1729. if eval \${$3+:} false; then :
  1730. $as_echo_n "(cached) " >&6
  1731. else
  1732. eval "$3=\$ac_header_compiler"
  1733. fi
  1734. eval ac_res=\$$3
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1736. $as_echo "$ac_res" >&6; }
  1737. fi
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. } # ac_fn_c_check_header_mongrel
  1740. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1741. # -------------------------------------------
  1742. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1743. # variable VAR accordingly.
  1744. ac_fn_c_check_type ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1748. $as_echo_n "checking for $2... " >&6; }
  1749. if eval \${$3+:} false; then :
  1750. $as_echo_n "(cached) " >&6
  1751. else
  1752. eval "$3=no"
  1753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1754. /* end confdefs.h. */
  1755. $4
  1756. int
  1757. main ()
  1758. {
  1759. if (sizeof ($2))
  1760. return 0;
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_compile "$LINENO"; then :
  1766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1767. /* end confdefs.h. */
  1768. $4
  1769. int
  1770. main ()
  1771. {
  1772. if (sizeof (($2)))
  1773. return 0;
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_c_try_compile "$LINENO"; then :
  1779. else
  1780. eval "$3=yes"
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. fi
  1784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1785. fi
  1786. eval ac_res=\$$3
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1788. $as_echo "$ac_res" >&6; }
  1789. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1790. } # ac_fn_c_check_type
  1791. cat >config.log <<_ACEOF
  1792. This file contains any messages produced by compilers while
  1793. running configure, to aid debugging if configure makes a mistake.
  1794. It was created by libosip2 $as_me 5.2.1, which was
  1795. generated by GNU Autoconf 2.69. Invocation command line was
  1796. $ $0 $@
  1797. _ACEOF
  1798. exec 5>>config.log
  1799. {
  1800. cat <<_ASUNAME
  1801. ## --------- ##
  1802. ## Platform. ##
  1803. ## --------- ##
  1804. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1805. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1806. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1807. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1808. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1809. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1810. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1811. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1812. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1813. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1814. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1815. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1816. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1817. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1818. _ASUNAME
  1819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1820. for as_dir in $PATH
  1821. do
  1822. IFS=$as_save_IFS
  1823. test -z "$as_dir" && as_dir=.
  1824. $as_echo "PATH: $as_dir"
  1825. done
  1826. IFS=$as_save_IFS
  1827. } >&5
  1828. cat >&5 <<_ACEOF
  1829. ## ----------- ##
  1830. ## Core tests. ##
  1831. ## ----------- ##
  1832. _ACEOF
  1833. # Keep a trace of the command line.
  1834. # Strip out --no-create and --no-recursion so they do not pile up.
  1835. # Strip out --silent because we don't want to record it for future runs.
  1836. # Also quote any args containing shell meta-characters.
  1837. # Make two passes to allow for proper duplicate-argument suppression.
  1838. ac_configure_args=
  1839. ac_configure_args0=
  1840. ac_configure_args1=
  1841. ac_must_keep_next=false
  1842. for ac_pass in 1 2
  1843. do
  1844. for ac_arg
  1845. do
  1846. case $ac_arg in
  1847. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1848. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1849. | -silent | --silent | --silen | --sile | --sil)
  1850. continue ;;
  1851. *\'*)
  1852. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1853. esac
  1854. case $ac_pass in
  1855. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1856. 2)
  1857. as_fn_append ac_configure_args1 " '$ac_arg'"
  1858. if test $ac_must_keep_next = true; then
  1859. ac_must_keep_next=false # Got value, back to normal.
  1860. else
  1861. case $ac_arg in
  1862. *=* | --config-cache | -C | -disable-* | --disable-* \
  1863. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1864. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1865. | -with-* | --with-* | -without-* | --without-* | --x)
  1866. case "$ac_configure_args0 " in
  1867. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1868. esac
  1869. ;;
  1870. -* ) ac_must_keep_next=true ;;
  1871. esac
  1872. fi
  1873. as_fn_append ac_configure_args " '$ac_arg'"
  1874. ;;
  1875. esac
  1876. done
  1877. done
  1878. { ac_configure_args0=; unset ac_configure_args0;}
  1879. { ac_configure_args1=; unset ac_configure_args1;}
  1880. # When interrupted or exit'd, cleanup temporary files, and complete
  1881. # config.log. We remove comments because anyway the quotes in there
  1882. # would cause problems or look ugly.
  1883. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1884. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1885. trap 'exit_status=$?
  1886. # Save into config.log some information that might help in debugging.
  1887. {
  1888. echo
  1889. $as_echo "## ---------------- ##
  1890. ## Cache variables. ##
  1891. ## ---------------- ##"
  1892. echo
  1893. # The following way of writing the cache mishandles newlines in values,
  1894. (
  1895. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1896. eval ac_val=\$$ac_var
  1897. case $ac_val in #(
  1898. *${as_nl}*)
  1899. case $ac_var in #(
  1900. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1901. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1902. esac
  1903. case $ac_var in #(
  1904. _ | IFS | as_nl) ;; #(
  1905. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1906. *) { eval $ac_var=; unset $ac_var;} ;;
  1907. esac ;;
  1908. esac
  1909. done
  1910. (set) 2>&1 |
  1911. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1912. *${as_nl}ac_space=\ *)
  1913. sed -n \
  1914. "s/'\''/'\''\\\\'\'''\''/g;
  1915. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1916. ;; #(
  1917. *)
  1918. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1919. ;;
  1920. esac |
  1921. sort
  1922. )
  1923. echo
  1924. $as_echo "## ----------------- ##
  1925. ## Output variables. ##
  1926. ## ----------------- ##"
  1927. echo
  1928. for ac_var in $ac_subst_vars
  1929. do
  1930. eval ac_val=\$$ac_var
  1931. case $ac_val in
  1932. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1933. esac
  1934. $as_echo "$ac_var='\''$ac_val'\''"
  1935. done | sort
  1936. echo
  1937. if test -n "$ac_subst_files"; then
  1938. $as_echo "## ------------------- ##
  1939. ## File substitutions. ##
  1940. ## ------------------- ##"
  1941. echo
  1942. for ac_var in $ac_subst_files
  1943. do
  1944. eval ac_val=\$$ac_var
  1945. case $ac_val in
  1946. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1947. esac
  1948. $as_echo "$ac_var='\''$ac_val'\''"
  1949. done | sort
  1950. echo
  1951. fi
  1952. if test -s confdefs.h; then
  1953. $as_echo "## ----------- ##
  1954. ## confdefs.h. ##
  1955. ## ----------- ##"
  1956. echo
  1957. cat confdefs.h
  1958. echo
  1959. fi
  1960. test "$ac_signal" != 0 &&
  1961. $as_echo "$as_me: caught signal $ac_signal"
  1962. $as_echo "$as_me: exit $exit_status"
  1963. } >&5
  1964. rm -f core *.core core.conftest.* &&
  1965. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1966. exit $exit_status
  1967. ' 0
  1968. for ac_signal in 1 2 13 15; do
  1969. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1970. done
  1971. ac_signal=0
  1972. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1973. rm -f -r conftest* confdefs.h
  1974. $as_echo "/* confdefs.h */" > confdefs.h
  1975. # Predefined preprocessor variables.
  1976. cat >>confdefs.h <<_ACEOF
  1977. #define PACKAGE_NAME "$PACKAGE_NAME"
  1978. _ACEOF
  1979. cat >>confdefs.h <<_ACEOF
  1980. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1981. _ACEOF
  1982. cat >>confdefs.h <<_ACEOF
  1983. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1984. _ACEOF
  1985. cat >>confdefs.h <<_ACEOF
  1986. #define PACKAGE_STRING "$PACKAGE_STRING"
  1987. _ACEOF
  1988. cat >>confdefs.h <<_ACEOF
  1989. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1990. _ACEOF
  1991. cat >>confdefs.h <<_ACEOF
  1992. #define PACKAGE_URL "$PACKAGE_URL"
  1993. _ACEOF
  1994. # Let the site file select an alternate cache file if it wants to.
  1995. # Prefer an explicitly selected file to automatically selected ones.
  1996. ac_site_file1=NONE
  1997. ac_site_file2=NONE
  1998. if test -n "$CONFIG_SITE"; then
  1999. # We do not want a PATH search for config.site.
  2000. case $CONFIG_SITE in #((
  2001. -*) ac_site_file1=./$CONFIG_SITE;;
  2002. */*) ac_site_file1=$CONFIG_SITE;;
  2003. *) ac_site_file1=./$CONFIG_SITE;;
  2004. esac
  2005. elif test "x$prefix" != xNONE; then
  2006. ac_site_file1=$prefix/share/config.site
  2007. ac_site_file2=$prefix/etc/config.site
  2008. else
  2009. ac_site_file1=$ac_default_prefix/share/config.site
  2010. ac_site_file2=$ac_default_prefix/etc/config.site
  2011. fi
  2012. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2013. do
  2014. test "x$ac_site_file" = xNONE && continue
  2015. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2017. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2018. sed 's/^/| /' "$ac_site_file" >&5
  2019. . "$ac_site_file" \
  2020. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2021. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2022. as_fn_error $? "failed to load site script $ac_site_file
  2023. See \`config.log' for more details" "$LINENO" 5; }
  2024. fi
  2025. done
  2026. if test -r "$cache_file"; then
  2027. # Some versions of bash will fail to source /dev/null (special files
  2028. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2029. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2031. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2032. case $cache_file in
  2033. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2034. *) . "./$cache_file";;
  2035. esac
  2036. fi
  2037. else
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2039. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2040. >$cache_file
  2041. fi
  2042. # Check that the precious variables saved in the cache have kept the same
  2043. # value.
  2044. ac_cache_corrupted=false
  2045. for ac_var in $ac_precious_vars; do
  2046. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2047. eval ac_new_set=\$ac_env_${ac_var}_set
  2048. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2049. eval ac_new_val=\$ac_env_${ac_var}_value
  2050. case $ac_old_set,$ac_new_set in
  2051. set,)
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2053. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2054. ac_cache_corrupted=: ;;
  2055. ,set)
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2057. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2058. ac_cache_corrupted=: ;;
  2059. ,);;
  2060. *)
  2061. if test "x$ac_old_val" != "x$ac_new_val"; then
  2062. # differences in whitespace do not lead to failure.
  2063. ac_old_val_w=`echo x $ac_old_val`
  2064. ac_new_val_w=`echo x $ac_new_val`
  2065. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2067. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2068. ac_cache_corrupted=:
  2069. else
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2071. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2072. eval $ac_var=\$ac_old_val
  2073. fi
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2075. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2077. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2078. fi;;
  2079. esac
  2080. # Pass precious variables to config.status.
  2081. if test "$ac_new_set" = set; then
  2082. case $ac_new_val in
  2083. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2084. *) ac_arg=$ac_var=$ac_new_val ;;
  2085. esac
  2086. case " $ac_configure_args " in
  2087. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2088. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2089. esac
  2090. fi
  2091. done
  2092. if $ac_cache_corrupted; then
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2096. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2097. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2098. fi
  2099. ## -------------------- ##
  2100. ## Main body of script. ##
  2101. ## -------------------- ##
  2102. ac_ext=c
  2103. ac_cpp='$CPP $CPPFLAGS'
  2104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: libosip2 The GNU Open SIP library." >&5
  2108. $as_echo "$as_me: libosip2 The GNU Open SIP library." >&6;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: Copyright (C) 2001-2021 Aymeric MOIZARD - <amoizard@antisip.com>" >&5
  2110. $as_echo "$as_me: Copyright (C) 2001-2021 Aymeric MOIZARD - <amoizard@antisip.com>" >&6;}
  2111. #‘current[:revision[:age]]’. So, passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1
  2112. # 1/ increase revision for every source code change [release]
  2113. # 2/ increase current for every API/ABI change and revert revision to 0
  2114. # 3/ always set age to 0 (for public release)
  2115. LIBOSIP_SO_VERSION=14:1:0
  2116. OSIP_VERSION=$VERSION
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Configuring ${PACKAGE} ${VERSION}" >&5
  2118. $as_echo "Configuring ${PACKAGE} ${VERSION}" >&6; }
  2119. OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building Package on ${OS}" >&5
  2121. $as_echo "Building Package on ${OS}" >&6; }
  2122. ac_aux_dir=
  2123. for ac_dir in scripts "$srcdir"/scripts; do
  2124. if test -f "$ac_dir/install-sh"; then
  2125. ac_aux_dir=$ac_dir
  2126. ac_install_sh="$ac_aux_dir/install-sh -c"
  2127. break
  2128. elif test -f "$ac_dir/install.sh"; then
  2129. ac_aux_dir=$ac_dir
  2130. ac_install_sh="$ac_aux_dir/install.sh -c"
  2131. break
  2132. elif test -f "$ac_dir/shtool"; then
  2133. ac_aux_dir=$ac_dir
  2134. ac_install_sh="$ac_aux_dir/shtool install -c"
  2135. break
  2136. fi
  2137. done
  2138. if test -z "$ac_aux_dir"; then
  2139. as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
  2140. fi
  2141. # These three variables are undocumented and unsupported,
  2142. # and are intended to be withdrawn in a future Autoconf release.
  2143. # They can cause serious problems if a builder's source tree is in a directory
  2144. # whose full name contains unusual characters.
  2145. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2146. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2147. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2148. ac_config_headers="$ac_config_headers osip-config.h"
  2149. am__api_version='1.16'
  2150. # Find a good install program. We prefer a C program (faster),
  2151. # so one script is as good as another. But avoid the broken or
  2152. # incompatible versions:
  2153. # SysV /etc/install, /usr/sbin/install
  2154. # SunOS /usr/etc/install
  2155. # IRIX /sbin/install
  2156. # AIX /bin/install
  2157. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2158. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2159. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2160. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2161. # OS/2's system install, which has a completely different semantic
  2162. # ./install, which can be erroneously created by make from ./install.sh.
  2163. # Reject install programs that cannot install multiple files.
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2165. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2166. if test -z "$INSTALL"; then
  2167. if ${ac_cv_path_install+:} false; then :
  2168. $as_echo_n "(cached) " >&6
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. # Account for people who put trailing slashes in PATH elements.
  2176. case $as_dir/ in #((
  2177. ./ | .// | /[cC]/* | \
  2178. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2179. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2180. /usr/ucb/* ) ;;
  2181. *)
  2182. # OSF1 and SCO ODT 3.0 have their own names for install.
  2183. # Don't use installbsd from OSF since it installs stuff as root
  2184. # by default.
  2185. for ac_prog in ginstall scoinst install; do
  2186. for ac_exec_ext in '' $ac_executable_extensions; do
  2187. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2188. if test $ac_prog = install &&
  2189. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2190. # AIX install. It has an incompatible calling convention.
  2191. :
  2192. elif test $ac_prog = install &&
  2193. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2194. # program-specific install script used by HP pwplus--don't use.
  2195. :
  2196. else
  2197. rm -rf conftest.one conftest.two conftest.dir
  2198. echo one > conftest.one
  2199. echo two > conftest.two
  2200. mkdir conftest.dir
  2201. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2202. test -s conftest.one && test -s conftest.two &&
  2203. test -s conftest.dir/conftest.one &&
  2204. test -s conftest.dir/conftest.two
  2205. then
  2206. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2207. break 3
  2208. fi
  2209. fi
  2210. fi
  2211. done
  2212. done
  2213. ;;
  2214. esac
  2215. done
  2216. IFS=$as_save_IFS
  2217. rm -rf conftest.one conftest.two conftest.dir
  2218. fi
  2219. if test "${ac_cv_path_install+set}" = set; then
  2220. INSTALL=$ac_cv_path_install
  2221. else
  2222. # As a last resort, use the slow shell script. Don't cache a
  2223. # value for INSTALL within a source directory, because that will
  2224. # break other packages using the cache if that directory is
  2225. # removed, or if the value is a relative name.
  2226. INSTALL=$ac_install_sh
  2227. fi
  2228. fi
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2230. $as_echo "$INSTALL" >&6; }
  2231. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2232. # It thinks the first close brace ends the variable substitution.
  2233. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2234. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2235. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2237. $as_echo_n "checking whether build environment is sane... " >&6; }
  2238. # Reject unsafe characters in $srcdir or the absolute working directory
  2239. # name. Accept space and tab only in the latter.
  2240. am_lf='
  2241. '
  2242. case `pwd` in
  2243. *[\\\"\#\$\&\'\`$am_lf]*)
  2244. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2245. esac
  2246. case $srcdir in
  2247. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2248. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2249. esac
  2250. # Do 'set' in a subshell so we don't clobber the current shell's
  2251. # arguments. Must try -L first in case configure is actually a
  2252. # symlink; some systems play weird games with the mod time of symlinks
  2253. # (eg FreeBSD returns the mod time of the symlink's containing
  2254. # directory).
  2255. if (
  2256. am_has_slept=no
  2257. for am_try in 1 2; do
  2258. echo "timestamp, slept: $am_has_slept" > conftest.file
  2259. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2260. if test "$*" = "X"; then
  2261. # -L didn't work.
  2262. set X `ls -t "$srcdir/configure" conftest.file`
  2263. fi
  2264. if test "$*" != "X $srcdir/configure conftest.file" \
  2265. && test "$*" != "X conftest.file $srcdir/configure"; then
  2266. # If neither matched, then we have a broken ls. This can happen
  2267. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2268. # broken ls alias from the environment. This has actually
  2269. # happened. Such a system could not be considered "sane".
  2270. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2271. alias in your environment" "$LINENO" 5
  2272. fi
  2273. if test "$2" = conftest.file || test $am_try -eq 2; then
  2274. break
  2275. fi
  2276. # Just in case.
  2277. sleep 1
  2278. am_has_slept=yes
  2279. done
  2280. test "$2" = conftest.file
  2281. )
  2282. then
  2283. # Ok.
  2284. :
  2285. else
  2286. as_fn_error $? "newly created file is older than distributed files!
  2287. Check your system clock" "$LINENO" 5
  2288. fi
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2290. $as_echo "yes" >&6; }
  2291. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2292. # generated files are strictly newer.
  2293. am_sleep_pid=
  2294. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2295. ( sleep 1 ) &
  2296. am_sleep_pid=$!
  2297. fi
  2298. rm -f conftest.file
  2299. test "$program_prefix" != NONE &&
  2300. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2301. # Use a double $ so make ignores it.
  2302. test "$program_suffix" != NONE &&
  2303. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2304. # Double any \ or $.
  2305. # By default was `s,x,x', remove it if useless.
  2306. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2307. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2308. # Expand $ac_aux_dir to an absolute path.
  2309. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2310. if test x"${MISSING+set}" != xset; then
  2311. case $am_aux_dir in
  2312. *\ * | *\ *)
  2313. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2314. *)
  2315. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2316. esac
  2317. fi
  2318. # Use eval to expand $SHELL
  2319. if eval "$MISSING --is-lightweight"; then
  2320. am_missing_run="$MISSING "
  2321. else
  2322. am_missing_run=
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2324. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2325. fi
  2326. if test x"${install_sh+set}" != xset; then
  2327. case $am_aux_dir in
  2328. *\ * | *\ *)
  2329. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2330. *)
  2331. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2332. esac
  2333. fi
  2334. # Installed binaries are usually stripped using 'strip' when the user
  2335. # run "make install-strip". However 'strip' might not be the right
  2336. # tool to use in cross-compilation environments, therefore Automake
  2337. # will honor the 'STRIP' environment variable to overrule this program.
  2338. if test "$cross_compiling" != no; then
  2339. if test -n "$ac_tool_prefix"; then
  2340. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2341. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2343. $as_echo_n "checking for $ac_word... " >&6; }
  2344. if ${ac_cv_prog_STRIP+:} false; then :
  2345. $as_echo_n "(cached) " >&6
  2346. else
  2347. if test -n "$STRIP"; then
  2348. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2349. else
  2350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2351. for as_dir in $PATH
  2352. do
  2353. IFS=$as_save_IFS
  2354. test -z "$as_dir" && as_dir=.
  2355. for ac_exec_ext in '' $ac_executable_extensions; do
  2356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2357. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2359. break 2
  2360. fi
  2361. done
  2362. done
  2363. IFS=$as_save_IFS
  2364. fi
  2365. fi
  2366. STRIP=$ac_cv_prog_STRIP
  2367. if test -n "$STRIP"; then
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2369. $as_echo "$STRIP" >&6; }
  2370. else
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2372. $as_echo "no" >&6; }
  2373. fi
  2374. fi
  2375. if test -z "$ac_cv_prog_STRIP"; then
  2376. ac_ct_STRIP=$STRIP
  2377. # Extract the first word of "strip", so it can be a program name with args.
  2378. set dummy strip; ac_word=$2
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2380. $as_echo_n "checking for $ac_word... " >&6; }
  2381. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2382. $as_echo_n "(cached) " >&6
  2383. else
  2384. if test -n "$ac_ct_STRIP"; then
  2385. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2386. else
  2387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2388. for as_dir in $PATH
  2389. do
  2390. IFS=$as_save_IFS
  2391. test -z "$as_dir" && as_dir=.
  2392. for ac_exec_ext in '' $ac_executable_extensions; do
  2393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2394. ac_cv_prog_ac_ct_STRIP="strip"
  2395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2396. break 2
  2397. fi
  2398. done
  2399. done
  2400. IFS=$as_save_IFS
  2401. fi
  2402. fi
  2403. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2404. if test -n "$ac_ct_STRIP"; then
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2406. $as_echo "$ac_ct_STRIP" >&6; }
  2407. else
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2409. $as_echo "no" >&6; }
  2410. fi
  2411. if test "x$ac_ct_STRIP" = x; then
  2412. STRIP=":"
  2413. else
  2414. case $cross_compiling:$ac_tool_warned in
  2415. yes:)
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2417. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2418. ac_tool_warned=yes ;;
  2419. esac
  2420. STRIP=$ac_ct_STRIP
  2421. fi
  2422. else
  2423. STRIP="$ac_cv_prog_STRIP"
  2424. fi
  2425. fi
  2426. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2428. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2429. if test -z "$MKDIR_P"; then
  2430. if ${ac_cv_path_mkdir+:} false; then :
  2431. $as_echo_n "(cached) " >&6
  2432. else
  2433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2434. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2435. do
  2436. IFS=$as_save_IFS
  2437. test -z "$as_dir" && as_dir=.
  2438. for ac_prog in mkdir gmkdir; do
  2439. for ac_exec_ext in '' $ac_executable_extensions; do
  2440. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2441. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2442. 'mkdir (GNU coreutils) '* | \
  2443. 'mkdir (coreutils) '* | \
  2444. 'mkdir (fileutils) '4.1*)
  2445. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2446. break 3;;
  2447. esac
  2448. done
  2449. done
  2450. done
  2451. IFS=$as_save_IFS
  2452. fi
  2453. test -d ./--version && rmdir ./--version
  2454. if test "${ac_cv_path_mkdir+set}" = set; then
  2455. MKDIR_P="$ac_cv_path_mkdir -p"
  2456. else
  2457. # As a last resort, use the slow shell script. Don't cache a
  2458. # value for MKDIR_P within a source directory, because that will
  2459. # break other packages using the cache if that directory is
  2460. # removed, or if the value is a relative name.
  2461. MKDIR_P="$ac_install_sh -d"
  2462. fi
  2463. fi
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2465. $as_echo "$MKDIR_P" >&6; }
  2466. for ac_prog in gawk mawk nawk awk
  2467. do
  2468. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2469. set dummy $ac_prog; ac_word=$2
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2471. $as_echo_n "checking for $ac_word... " >&6; }
  2472. if ${ac_cv_prog_AWK+:} false; then :
  2473. $as_echo_n "(cached) " >&6
  2474. else
  2475. if test -n "$AWK"; then
  2476. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2477. else
  2478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2479. for as_dir in $PATH
  2480. do
  2481. IFS=$as_save_IFS
  2482. test -z "$as_dir" && as_dir=.
  2483. for ac_exec_ext in '' $ac_executable_extensions; do
  2484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2485. ac_cv_prog_AWK="$ac_prog"
  2486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2487. break 2
  2488. fi
  2489. done
  2490. done
  2491. IFS=$as_save_IFS
  2492. fi
  2493. fi
  2494. AWK=$ac_cv_prog_AWK
  2495. if test -n "$AWK"; then
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2497. $as_echo "$AWK" >&6; }
  2498. else
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2500. $as_echo "no" >&6; }
  2501. fi
  2502. test -n "$AWK" && break
  2503. done
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2505. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2506. set x ${MAKE-make}
  2507. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2508. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. cat >conftest.make <<\_ACEOF
  2512. SHELL = /bin/sh
  2513. all:
  2514. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2515. _ACEOF
  2516. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2517. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2518. *@@@%%%=?*=@@@%%%*)
  2519. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2520. *)
  2521. eval ac_cv_prog_make_${ac_make}_set=no;;
  2522. esac
  2523. rm -f conftest.make
  2524. fi
  2525. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2527. $as_echo "yes" >&6; }
  2528. SET_MAKE=
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2531. $as_echo "no" >&6; }
  2532. SET_MAKE="MAKE=${MAKE-make}"
  2533. fi
  2534. rm -rf .tst 2>/dev/null
  2535. mkdir .tst 2>/dev/null
  2536. if test -d .tst; then
  2537. am__leading_dot=.
  2538. else
  2539. am__leading_dot=_
  2540. fi
  2541. rmdir .tst 2>/dev/null
  2542. # Check whether --enable-silent-rules was given.
  2543. if test "${enable_silent_rules+set}" = set; then :
  2544. enableval=$enable_silent_rules;
  2545. fi
  2546. case $enable_silent_rules in # (((
  2547. yes) AM_DEFAULT_VERBOSITY=0;;
  2548. no) AM_DEFAULT_VERBOSITY=1;;
  2549. *) AM_DEFAULT_VERBOSITY=1;;
  2550. esac
  2551. am_make=${MAKE-make}
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2553. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2554. if ${am_cv_make_support_nested_variables+:} false; then :
  2555. $as_echo_n "(cached) " >&6
  2556. else
  2557. if $as_echo 'TRUE=$(BAR$(V))
  2558. BAR0=false
  2559. BAR1=true
  2560. V=1
  2561. am__doit:
  2562. @$(TRUE)
  2563. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2564. am_cv_make_support_nested_variables=yes
  2565. else
  2566. am_cv_make_support_nested_variables=no
  2567. fi
  2568. fi
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2570. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2571. if test $am_cv_make_support_nested_variables = yes; then
  2572. AM_V='$(V)'
  2573. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2574. else
  2575. AM_V=$AM_DEFAULT_VERBOSITY
  2576. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2577. fi
  2578. AM_BACKSLASH='\'
  2579. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2580. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2581. # is not polluted with repeated "-I."
  2582. am__isrc=' -I$(srcdir)'
  2583. # test to see if srcdir already configured
  2584. if test -f $srcdir/config.status; then
  2585. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2586. fi
  2587. fi
  2588. # test whether we have cygpath
  2589. if test -z "$CYGPATH_W"; then
  2590. if (cygpath --version) >/dev/null 2>/dev/null; then
  2591. CYGPATH_W='cygpath -w'
  2592. else
  2593. CYGPATH_W=echo
  2594. fi
  2595. fi
  2596. # Define the identity of the package.
  2597. PACKAGE='libosip2'
  2598. VERSION='5.2.1'
  2599. cat >>confdefs.h <<_ACEOF
  2600. #define PACKAGE "$PACKAGE"
  2601. _ACEOF
  2602. cat >>confdefs.h <<_ACEOF
  2603. #define VERSION "$VERSION"
  2604. _ACEOF
  2605. # Some tools Automake needs.
  2606. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2607. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2608. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2609. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2610. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2611. # For better backward compatibility. To be removed once Automake 1.9.x
  2612. # dies out for good. For more background, see:
  2613. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2614. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2615. mkdir_p='$(MKDIR_P)'
  2616. # We need awk for the "check" target (and possibly the TAP driver). The
  2617. # system "awk" is bad on some platforms.
  2618. # Always define AMTAR for backward compatibility. Yes, it's still used
  2619. # in the wild :-( We should find a proper way to deprecate it ...
  2620. AMTAR='$${TAR-tar}'
  2621. # We'll loop over all known methods to create a tar archive until one works.
  2622. _am_tools='gnutar pax cpio none'
  2623. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2624. # POSIX will say in a future version that running "rm -f" with no argument
  2625. # is OK; and we want to be able to make that assumption in our Makefile
  2626. # recipes. So use an aggressive probe to check that the usage we want is
  2627. # actually supported "in the wild" to an acceptable degree.
  2628. # See automake bug#10828.
  2629. # To make any issue more visible, cause the running configure to be aborted
  2630. # by default if the 'rm' program in use doesn't match our expectations; the
  2631. # user can still override this though.
  2632. if rm -f && rm -fr && rm -rf; then : OK; else
  2633. cat >&2 <<'END'
  2634. Oops!
  2635. Your 'rm' program seems unable to run without file operands specified
  2636. on the command line, even when the '-f' option is present. This is contrary
  2637. to the behaviour of most rm programs out there, and not conforming with
  2638. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2639. Please tell bug-automake@gnu.org about your system, including the value
  2640. of your $PATH and any error possibly output before this message. This
  2641. can help us improve future automake versions.
  2642. END
  2643. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2644. echo 'Configuration will proceed anyway, since you have set the' >&2
  2645. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2646. echo >&2
  2647. else
  2648. cat >&2 <<'END'
  2649. Aborting the configuration process, to ensure you take notice of the issue.
  2650. You can download and install GNU coreutils to get an 'rm' implementation
  2651. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2652. If you want to complete the configuration process using your problematic
  2653. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2654. to "yes", and re-run configure.
  2655. END
  2656. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2657. fi
  2658. fi
  2659. # Check whether --enable-silent-rules was given.
  2660. if test "${enable_silent_rules+set}" = set; then :
  2661. enableval=$enable_silent_rules;
  2662. fi
  2663. case $enable_silent_rules in # (((
  2664. yes) AM_DEFAULT_VERBOSITY=0;;
  2665. no) AM_DEFAULT_VERBOSITY=1;;
  2666. *) AM_DEFAULT_VERBOSITY=0;;
  2667. esac
  2668. am_make=${MAKE-make}
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2670. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2671. if ${am_cv_make_support_nested_variables+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. if $as_echo 'TRUE=$(BAR$(V))
  2675. BAR0=false
  2676. BAR1=true
  2677. V=1
  2678. am__doit:
  2679. @$(TRUE)
  2680. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2681. am_cv_make_support_nested_variables=yes
  2682. else
  2683. am_cv_make_support_nested_variables=no
  2684. fi
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2687. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2688. if test $am_cv_make_support_nested_variables = yes; then
  2689. AM_V='$(V)'
  2690. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2691. else
  2692. AM_V=$AM_DEFAULT_VERBOSITY
  2693. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2694. fi
  2695. AM_BACKSLASH='\'
  2696. # Make sure we can run config.sub.
  2697. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2698. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2700. $as_echo_n "checking build system type... " >&6; }
  2701. if ${ac_cv_build+:} false; then :
  2702. $as_echo_n "(cached) " >&6
  2703. else
  2704. ac_build_alias=$build_alias
  2705. test "x$ac_build_alias" = x &&
  2706. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2707. test "x$ac_build_alias" = x &&
  2708. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2709. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2710. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2711. fi
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2713. $as_echo "$ac_cv_build" >&6; }
  2714. case $ac_cv_build in
  2715. *-*-*) ;;
  2716. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2717. esac
  2718. build=$ac_cv_build
  2719. ac_save_IFS=$IFS; IFS='-'
  2720. set x $ac_cv_build
  2721. shift
  2722. build_cpu=$1
  2723. build_vendor=$2
  2724. shift; shift
  2725. # Remember, the first character of IFS is used to create $*,
  2726. # except with old shells:
  2727. build_os=$*
  2728. IFS=$ac_save_IFS
  2729. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2731. $as_echo_n "checking host system type... " >&6; }
  2732. if ${ac_cv_host+:} false; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. if test "x$host_alias" = x; then
  2736. ac_cv_host=$ac_cv_build
  2737. else
  2738. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2739. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2740. fi
  2741. fi
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2743. $as_echo "$ac_cv_host" >&6; }
  2744. case $ac_cv_host in
  2745. *-*-*) ;;
  2746. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2747. esac
  2748. host=$ac_cv_host
  2749. ac_save_IFS=$IFS; IFS='-'
  2750. set x $ac_cv_host
  2751. shift
  2752. host_cpu=$1
  2753. host_vendor=$2
  2754. shift; shift
  2755. # Remember, the first character of IFS is used to create $*,
  2756. # except with old shells:
  2757. host_os=$*
  2758. IFS=$ac_save_IFS
  2759. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2760. ac_ext=c
  2761. ac_cpp='$CPP $CPPFLAGS'
  2762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2765. if test -n "$ac_tool_prefix"; then
  2766. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2767. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. $as_echo_n "checking for $ac_word... " >&6; }
  2770. if ${ac_cv_prog_CC+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. if test -n "$CC"; then
  2774. ac_cv_prog_CC="$CC" # Let the user override the test.
  2775. else
  2776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2777. for as_dir in $PATH
  2778. do
  2779. IFS=$as_save_IFS
  2780. test -z "$as_dir" && as_dir=.
  2781. for ac_exec_ext in '' $ac_executable_extensions; do
  2782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2783. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. fi
  2791. fi
  2792. CC=$ac_cv_prog_CC
  2793. if test -n "$CC"; then
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2795. $as_echo "$CC" >&6; }
  2796. else
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. fi
  2800. fi
  2801. if test -z "$ac_cv_prog_CC"; then
  2802. ac_ct_CC=$CC
  2803. # Extract the first word of "gcc", so it can be a program name with args.
  2804. set dummy gcc; ac_word=$2
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2806. $as_echo_n "checking for $ac_word... " >&6; }
  2807. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2808. $as_echo_n "(cached) " >&6
  2809. else
  2810. if test -n "$ac_ct_CC"; then
  2811. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2812. else
  2813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2814. for as_dir in $PATH
  2815. do
  2816. IFS=$as_save_IFS
  2817. test -z "$as_dir" && as_dir=.
  2818. for ac_exec_ext in '' $ac_executable_extensions; do
  2819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2820. ac_cv_prog_ac_ct_CC="gcc"
  2821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2822. break 2
  2823. fi
  2824. done
  2825. done
  2826. IFS=$as_save_IFS
  2827. fi
  2828. fi
  2829. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2830. if test -n "$ac_ct_CC"; then
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2832. $as_echo "$ac_ct_CC" >&6; }
  2833. else
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2835. $as_echo "no" >&6; }
  2836. fi
  2837. if test "x$ac_ct_CC" = x; then
  2838. CC=""
  2839. else
  2840. case $cross_compiling:$ac_tool_warned in
  2841. yes:)
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2844. ac_tool_warned=yes ;;
  2845. esac
  2846. CC=$ac_ct_CC
  2847. fi
  2848. else
  2849. CC="$ac_cv_prog_CC"
  2850. fi
  2851. if test -z "$CC"; then
  2852. if test -n "$ac_tool_prefix"; then
  2853. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2854. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2856. $as_echo_n "checking for $ac_word... " >&6; }
  2857. if ${ac_cv_prog_CC+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. if test -n "$CC"; then
  2861. ac_cv_prog_CC="$CC" # Let the user override the test.
  2862. else
  2863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2864. for as_dir in $PATH
  2865. do
  2866. IFS=$as_save_IFS
  2867. test -z "$as_dir" && as_dir=.
  2868. for ac_exec_ext in '' $ac_executable_extensions; do
  2869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2870. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2872. break 2
  2873. fi
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. fi
  2878. fi
  2879. CC=$ac_cv_prog_CC
  2880. if test -n "$CC"; then
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2882. $as_echo "$CC" >&6; }
  2883. else
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2885. $as_echo "no" >&6; }
  2886. fi
  2887. fi
  2888. fi
  2889. if test -z "$CC"; then
  2890. # Extract the first word of "cc", so it can be a program name with args.
  2891. set dummy cc; ac_word=$2
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2893. $as_echo_n "checking for $ac_word... " >&6; }
  2894. if ${ac_cv_prog_CC+:} false; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. if test -n "$CC"; then
  2898. ac_cv_prog_CC="$CC" # Let the user override the test.
  2899. else
  2900. ac_prog_rejected=no
  2901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2902. for as_dir in $PATH
  2903. do
  2904. IFS=$as_save_IFS
  2905. test -z "$as_dir" && as_dir=.
  2906. for ac_exec_ext in '' $ac_executable_extensions; do
  2907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2908. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2909. ac_prog_rejected=yes
  2910. continue
  2911. fi
  2912. ac_cv_prog_CC="cc"
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2914. break 2
  2915. fi
  2916. done
  2917. done
  2918. IFS=$as_save_IFS
  2919. if test $ac_prog_rejected = yes; then
  2920. # We found a bogon in the path, so make sure we never use it.
  2921. set dummy $ac_cv_prog_CC
  2922. shift
  2923. if test $# != 0; then
  2924. # We chose a different compiler from the bogus one.
  2925. # However, it has the same basename, so the bogon will be chosen
  2926. # first if we set CC to just the basename; use the full file name.
  2927. shift
  2928. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2929. fi
  2930. fi
  2931. fi
  2932. fi
  2933. CC=$ac_cv_prog_CC
  2934. if test -n "$CC"; then
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2936. $as_echo "$CC" >&6; }
  2937. else
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2939. $as_echo "no" >&6; }
  2940. fi
  2941. fi
  2942. if test -z "$CC"; then
  2943. if test -n "$ac_tool_prefix"; then
  2944. for ac_prog in cl.exe
  2945. do
  2946. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2947. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2949. $as_echo_n "checking for $ac_word... " >&6; }
  2950. if ${ac_cv_prog_CC+:} false; then :
  2951. $as_echo_n "(cached) " >&6
  2952. else
  2953. if test -n "$CC"; then
  2954. ac_cv_prog_CC="$CC" # Let the user override the test.
  2955. else
  2956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH
  2958. do
  2959. IFS=$as_save_IFS
  2960. test -z "$as_dir" && as_dir=.
  2961. for ac_exec_ext in '' $ac_executable_extensions; do
  2962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2963. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2965. break 2
  2966. fi
  2967. done
  2968. done
  2969. IFS=$as_save_IFS
  2970. fi
  2971. fi
  2972. CC=$ac_cv_prog_CC
  2973. if test -n "$CC"; then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2975. $as_echo "$CC" >&6; }
  2976. else
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2978. $as_echo "no" >&6; }
  2979. fi
  2980. test -n "$CC" && break
  2981. done
  2982. fi
  2983. if test -z "$CC"; then
  2984. ac_ct_CC=$CC
  2985. for ac_prog in cl.exe
  2986. do
  2987. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2988. set dummy $ac_prog; ac_word=$2
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2990. $as_echo_n "checking for $ac_word... " >&6; }
  2991. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2992. $as_echo_n "(cached) " >&6
  2993. else
  2994. if test -n "$ac_ct_CC"; then
  2995. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2996. else
  2997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2998. for as_dir in $PATH
  2999. do
  3000. IFS=$as_save_IFS
  3001. test -z "$as_dir" && as_dir=.
  3002. for ac_exec_ext in '' $ac_executable_extensions; do
  3003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3004. ac_cv_prog_ac_ct_CC="$ac_prog"
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3006. break 2
  3007. fi
  3008. done
  3009. done
  3010. IFS=$as_save_IFS
  3011. fi
  3012. fi
  3013. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3014. if test -n "$ac_ct_CC"; then
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3016. $as_echo "$ac_ct_CC" >&6; }
  3017. else
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3019. $as_echo "no" >&6; }
  3020. fi
  3021. test -n "$ac_ct_CC" && break
  3022. done
  3023. if test "x$ac_ct_CC" = x; then
  3024. CC=""
  3025. else
  3026. case $cross_compiling:$ac_tool_warned in
  3027. yes:)
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3030. ac_tool_warned=yes ;;
  3031. esac
  3032. CC=$ac_ct_CC
  3033. fi
  3034. fi
  3035. fi
  3036. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3038. as_fn_error $? "no acceptable C compiler found in \$PATH
  3039. See \`config.log' for more details" "$LINENO" 5; }
  3040. # Provide some information about the compiler.
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3042. set X $ac_compile
  3043. ac_compiler=$2
  3044. for ac_option in --version -v -V -qversion; do
  3045. { { ac_try="$ac_compiler $ac_option >&5"
  3046. case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3051. $as_echo "$ac_try_echo"; } >&5
  3052. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3053. ac_status=$?
  3054. if test -s conftest.err; then
  3055. sed '10a\
  3056. ... rest of stderr output deleted ...
  3057. 10q' conftest.err >conftest.er1
  3058. cat conftest.er1 >&5
  3059. fi
  3060. rm -f conftest.er1 conftest.err
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3062. test $ac_status = 0; }
  3063. done
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. int
  3067. main ()
  3068. {
  3069. ;
  3070. return 0;
  3071. }
  3072. _ACEOF
  3073. ac_clean_files_save=$ac_clean_files
  3074. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3075. # Try to create an executable without -o first, disregard a.out.
  3076. # It will help us diagnose broken compilers, and finding out an intuition
  3077. # of exeext.
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3079. $as_echo_n "checking whether the C compiler works... " >&6; }
  3080. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3081. # The possible output files:
  3082. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3083. ac_rmfiles=
  3084. for ac_file in $ac_files
  3085. do
  3086. case $ac_file in
  3087. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3088. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3089. esac
  3090. done
  3091. rm -f $ac_rmfiles
  3092. if { { ac_try="$ac_link_default"
  3093. case "(($ac_try" in
  3094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3095. *) ac_try_echo=$ac_try;;
  3096. esac
  3097. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3098. $as_echo "$ac_try_echo"; } >&5
  3099. (eval "$ac_link_default") 2>&5
  3100. ac_status=$?
  3101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3102. test $ac_status = 0; }; then :
  3103. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3104. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3105. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3106. # so that the user can short-circuit this test for compilers unknown to
  3107. # Autoconf.
  3108. for ac_file in $ac_files ''
  3109. do
  3110. test -f "$ac_file" || continue
  3111. case $ac_file in
  3112. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3113. ;;
  3114. [ab].out )
  3115. # We found the default executable, but exeext='' is most
  3116. # certainly right.
  3117. break;;
  3118. *.* )
  3119. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3120. then :; else
  3121. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3122. fi
  3123. # We set ac_cv_exeext here because the later test for it is not
  3124. # safe: cross compilers may not add the suffix if given an `-o'
  3125. # argument, so we may need to know it at that point already.
  3126. # Even if this section looks crufty: it has the advantage of
  3127. # actually working.
  3128. break;;
  3129. * )
  3130. break;;
  3131. esac
  3132. done
  3133. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3134. else
  3135. ac_file=''
  3136. fi
  3137. if test -z "$ac_file"; then :
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3139. $as_echo "no" >&6; }
  3140. $as_echo "$as_me: failed program was:" >&5
  3141. sed 's/^/| /' conftest.$ac_ext >&5
  3142. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3143. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3144. as_fn_error 77 "C compiler cannot create executables
  3145. See \`config.log' for more details" "$LINENO" 5; }
  3146. else
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3148. $as_echo "yes" >&6; }
  3149. fi
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3151. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3153. $as_echo "$ac_file" >&6; }
  3154. ac_exeext=$ac_cv_exeext
  3155. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3156. ac_clean_files=$ac_clean_files_save
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3158. $as_echo_n "checking for suffix of executables... " >&6; }
  3159. if { { ac_try="$ac_link"
  3160. case "(($ac_try" in
  3161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3162. *) ac_try_echo=$ac_try;;
  3163. esac
  3164. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3165. $as_echo "$ac_try_echo"; } >&5
  3166. (eval "$ac_link") 2>&5
  3167. ac_status=$?
  3168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3169. test $ac_status = 0; }; then :
  3170. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3171. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3172. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3173. # `rm'.
  3174. for ac_file in conftest.exe conftest conftest.*; do
  3175. test -f "$ac_file" || continue
  3176. case $ac_file in
  3177. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3178. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3179. break;;
  3180. * ) break;;
  3181. esac
  3182. done
  3183. else
  3184. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3186. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3187. See \`config.log' for more details" "$LINENO" 5; }
  3188. fi
  3189. rm -f conftest conftest$ac_cv_exeext
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3191. $as_echo "$ac_cv_exeext" >&6; }
  3192. rm -f conftest.$ac_ext
  3193. EXEEXT=$ac_cv_exeext
  3194. ac_exeext=$EXEEXT
  3195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3196. /* end confdefs.h. */
  3197. #include <stdio.h>
  3198. int
  3199. main ()
  3200. {
  3201. FILE *f = fopen ("conftest.out", "w");
  3202. return ferror (f) || fclose (f) != 0;
  3203. ;
  3204. return 0;
  3205. }
  3206. _ACEOF
  3207. ac_clean_files="$ac_clean_files conftest.out"
  3208. # Check that the compiler produces executables we can run. If not, either
  3209. # the compiler is broken, or we cross compile.
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3211. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3212. if test "$cross_compiling" != yes; then
  3213. { { ac_try="$ac_link"
  3214. case "(($ac_try" in
  3215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3216. *) ac_try_echo=$ac_try;;
  3217. esac
  3218. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3219. $as_echo "$ac_try_echo"; } >&5
  3220. (eval "$ac_link") 2>&5
  3221. ac_status=$?
  3222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3223. test $ac_status = 0; }
  3224. if { ac_try='./conftest$ac_cv_exeext'
  3225. { { case "(($ac_try" in
  3226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3227. *) ac_try_echo=$ac_try;;
  3228. esac
  3229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3230. $as_echo "$ac_try_echo"; } >&5
  3231. (eval "$ac_try") 2>&5
  3232. ac_status=$?
  3233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3234. test $ac_status = 0; }; }; then
  3235. cross_compiling=no
  3236. else
  3237. if test "$cross_compiling" = maybe; then
  3238. cross_compiling=yes
  3239. else
  3240. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3242. as_fn_error $? "cannot run C compiled programs.
  3243. If you meant to cross compile, use \`--host'.
  3244. See \`config.log' for more details" "$LINENO" 5; }
  3245. fi
  3246. fi
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3249. $as_echo "$cross_compiling" >&6; }
  3250. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3251. ac_clean_files=$ac_clean_files_save
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3253. $as_echo_n "checking for suffix of object files... " >&6; }
  3254. if ${ac_cv_objext+:} false; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3258. /* end confdefs.h. */
  3259. int
  3260. main ()
  3261. {
  3262. ;
  3263. return 0;
  3264. }
  3265. _ACEOF
  3266. rm -f conftest.o conftest.obj
  3267. if { { ac_try="$ac_compile"
  3268. case "(($ac_try" in
  3269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3270. *) ac_try_echo=$ac_try;;
  3271. esac
  3272. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3273. $as_echo "$ac_try_echo"; } >&5
  3274. (eval "$ac_compile") 2>&5
  3275. ac_status=$?
  3276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3277. test $ac_status = 0; }; then :
  3278. for ac_file in conftest.o conftest.obj conftest.*; do
  3279. test -f "$ac_file" || continue;
  3280. case $ac_file in
  3281. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3282. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3283. break;;
  3284. esac
  3285. done
  3286. else
  3287. $as_echo "$as_me: failed program was:" >&5
  3288. sed 's/^/| /' conftest.$ac_ext >&5
  3289. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3290. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3291. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3292. See \`config.log' for more details" "$LINENO" 5; }
  3293. fi
  3294. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3295. fi
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3297. $as_echo "$ac_cv_objext" >&6; }
  3298. OBJEXT=$ac_cv_objext
  3299. ac_objext=$OBJEXT
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3301. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3302. if ${ac_cv_c_compiler_gnu+:} false; then :
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3306. /* end confdefs.h. */
  3307. int
  3308. main ()
  3309. {
  3310. #ifndef __GNUC__
  3311. choke me
  3312. #endif
  3313. ;
  3314. return 0;
  3315. }
  3316. _ACEOF
  3317. if ac_fn_c_try_compile "$LINENO"; then :
  3318. ac_compiler_gnu=yes
  3319. else
  3320. ac_compiler_gnu=no
  3321. fi
  3322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3323. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3324. fi
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3326. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3327. if test $ac_compiler_gnu = yes; then
  3328. GCC=yes
  3329. else
  3330. GCC=
  3331. fi
  3332. ac_test_CFLAGS=${CFLAGS+set}
  3333. ac_save_CFLAGS=$CFLAGS
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3335. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3336. if ${ac_cv_prog_cc_g+:} false; then :
  3337. $as_echo_n "(cached) " >&6
  3338. else
  3339. ac_save_c_werror_flag=$ac_c_werror_flag
  3340. ac_c_werror_flag=yes
  3341. ac_cv_prog_cc_g=no
  3342. CFLAGS="-g"
  3343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3344. /* end confdefs.h. */
  3345. int
  3346. main ()
  3347. {
  3348. ;
  3349. return 0;
  3350. }
  3351. _ACEOF
  3352. if ac_fn_c_try_compile "$LINENO"; then :
  3353. ac_cv_prog_cc_g=yes
  3354. else
  3355. CFLAGS=""
  3356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3357. /* end confdefs.h. */
  3358. int
  3359. main ()
  3360. {
  3361. ;
  3362. return 0;
  3363. }
  3364. _ACEOF
  3365. if ac_fn_c_try_compile "$LINENO"; then :
  3366. else
  3367. ac_c_werror_flag=$ac_save_c_werror_flag
  3368. CFLAGS="-g"
  3369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370. /* end confdefs.h. */
  3371. int
  3372. main ()
  3373. {
  3374. ;
  3375. return 0;
  3376. }
  3377. _ACEOF
  3378. if ac_fn_c_try_compile "$LINENO"; then :
  3379. ac_cv_prog_cc_g=yes
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. fi
  3383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3384. fi
  3385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3386. ac_c_werror_flag=$ac_save_c_werror_flag
  3387. fi
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3389. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3390. if test "$ac_test_CFLAGS" = set; then
  3391. CFLAGS=$ac_save_CFLAGS
  3392. elif test $ac_cv_prog_cc_g = yes; then
  3393. if test "$GCC" = yes; then
  3394. CFLAGS="-g -O2"
  3395. else
  3396. CFLAGS="-g"
  3397. fi
  3398. else
  3399. if test "$GCC" = yes; then
  3400. CFLAGS="-O2"
  3401. else
  3402. CFLAGS=
  3403. fi
  3404. fi
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3406. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3407. if ${ac_cv_prog_cc_c89+:} false; then :
  3408. $as_echo_n "(cached) " >&6
  3409. else
  3410. ac_cv_prog_cc_c89=no
  3411. ac_save_CC=$CC
  3412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3413. /* end confdefs.h. */
  3414. #include <stdarg.h>
  3415. #include <stdio.h>
  3416. struct stat;
  3417. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3418. struct buf { int x; };
  3419. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3420. static char *e (p, i)
  3421. char **p;
  3422. int i;
  3423. {
  3424. return p[i];
  3425. }
  3426. static char *f (char * (*g) (char **, int), char **p, ...)
  3427. {
  3428. char *s;
  3429. va_list v;
  3430. va_start (v,p);
  3431. s = g (p, va_arg (v,int));
  3432. va_end (v);
  3433. return s;
  3434. }
  3435. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3436. function prototypes and stuff, but not '\xHH' hex character constants.
  3437. These don't provoke an error unfortunately, instead are silently treated
  3438. as 'x'. The following induces an error, until -std is added to get
  3439. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3440. array size at least. It's necessary to write '\x00'==0 to get something
  3441. that's true only with -std. */
  3442. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3443. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3444. inside strings and character constants. */
  3445. #define FOO(x) 'x'
  3446. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3447. int test (int i, double x);
  3448. struct s1 {int (*f) (int a);};
  3449. struct s2 {int (*f) (double a);};
  3450. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3451. int argc;
  3452. char **argv;
  3453. int
  3454. main ()
  3455. {
  3456. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3462. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3463. do
  3464. CC="$ac_save_CC $ac_arg"
  3465. if ac_fn_c_try_compile "$LINENO"; then :
  3466. ac_cv_prog_cc_c89=$ac_arg
  3467. fi
  3468. rm -f core conftest.err conftest.$ac_objext
  3469. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3470. done
  3471. rm -f conftest.$ac_ext
  3472. CC=$ac_save_CC
  3473. fi
  3474. # AC_CACHE_VAL
  3475. case "x$ac_cv_prog_cc_c89" in
  3476. x)
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3478. $as_echo "none needed" >&6; } ;;
  3479. xno)
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3481. $as_echo "unsupported" >&6; } ;;
  3482. *)
  3483. CC="$CC $ac_cv_prog_cc_c89"
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3485. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3486. esac
  3487. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3488. fi
  3489. ac_ext=c
  3490. ac_cpp='$CPP $CPPFLAGS'
  3491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3494. ac_ext=c
  3495. ac_cpp='$CPP $CPPFLAGS'
  3496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3500. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3501. if ${am_cv_prog_cc_c_o+:} false; then :
  3502. $as_echo_n "(cached) " >&6
  3503. else
  3504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3505. /* end confdefs.h. */
  3506. int
  3507. main ()
  3508. {
  3509. ;
  3510. return 0;
  3511. }
  3512. _ACEOF
  3513. # Make sure it works both with $CC and with simple cc.
  3514. # Following AC_PROG_CC_C_O, we do the test twice because some
  3515. # compilers refuse to overwrite an existing .o file with -o,
  3516. # though they will create one.
  3517. am_cv_prog_cc_c_o=yes
  3518. for am_i in 1 2; do
  3519. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3520. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3521. ac_status=$?
  3522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); } \
  3524. && test -f conftest2.$ac_objext; then
  3525. : OK
  3526. else
  3527. am_cv_prog_cc_c_o=no
  3528. break
  3529. fi
  3530. done
  3531. rm -f core conftest*
  3532. unset am_i
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3535. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3536. if test "$am_cv_prog_cc_c_o" != yes; then
  3537. # Losing compiler, so override with the script.
  3538. # FIXME: It is wrong to rewrite CC.
  3539. # But if we don't then we get into trouble of one sort or another.
  3540. # A longer-term fix would be to have automake use am__CC in this case,
  3541. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3542. CC="$am_aux_dir/compile $CC"
  3543. fi
  3544. ac_ext=c
  3545. ac_cpp='$CPP $CPPFLAGS'
  3546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3549. DEPDIR="${am__leading_dot}deps"
  3550. ac_config_commands="$ac_config_commands depfiles"
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3552. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3553. cat > confinc.mk << 'END'
  3554. am__doit:
  3555. @echo this is the am__doit target >confinc.out
  3556. .PHONY: am__doit
  3557. END
  3558. am__include="#"
  3559. am__quote=
  3560. # BSD make does it like this.
  3561. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3562. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3563. echo 'include confinc.mk # ignored' > confmf.GNU
  3564. _am_result=no
  3565. for s in GNU BSD; do
  3566. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3567. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3568. ac_status=$?
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); }
  3571. case $?:`cat confinc.out 2>/dev/null` in #(
  3572. '0:this is the am__doit target') :
  3573. case $s in #(
  3574. BSD) :
  3575. am__include='.include' am__quote='"' ;; #(
  3576. *) :
  3577. am__include='include' am__quote='' ;;
  3578. esac ;; #(
  3579. *) :
  3580. ;;
  3581. esac
  3582. if test "$am__include" != "#"; then
  3583. _am_result="yes ($s style)"
  3584. break
  3585. fi
  3586. done
  3587. rm -f confinc.* confmf.*
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3589. $as_echo "${_am_result}" >&6; }
  3590. # Check whether --enable-dependency-tracking was given.
  3591. if test "${enable_dependency_tracking+set}" = set; then :
  3592. enableval=$enable_dependency_tracking;
  3593. fi
  3594. if test "x$enable_dependency_tracking" != xno; then
  3595. am_depcomp="$ac_aux_dir/depcomp"
  3596. AMDEPBACKSLASH='\'
  3597. am__nodep='_no'
  3598. fi
  3599. if test "x$enable_dependency_tracking" != xno; then
  3600. AMDEP_TRUE=
  3601. AMDEP_FALSE='#'
  3602. else
  3603. AMDEP_TRUE='#'
  3604. AMDEP_FALSE=
  3605. fi
  3606. depcc="$CC" am_compiler_list=
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3608. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3609. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3610. $as_echo_n "(cached) " >&6
  3611. else
  3612. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3613. # We make a subdir and do the tests there. Otherwise we can end up
  3614. # making bogus files that we don't know about and never remove. For
  3615. # instance it was reported that on HP-UX the gcc test will end up
  3616. # making a dummy file named 'D' -- because '-MD' means "put the output
  3617. # in D".
  3618. rm -rf conftest.dir
  3619. mkdir conftest.dir
  3620. # Copy depcomp to subdir because otherwise we won't find it if we're
  3621. # using a relative directory.
  3622. cp "$am_depcomp" conftest.dir
  3623. cd conftest.dir
  3624. # We will build objects and dependencies in a subdirectory because
  3625. # it helps to detect inapplicable dependency modes. For instance
  3626. # both Tru64's cc and ICC support -MD to output dependencies as a
  3627. # side effect of compilation, but ICC will put the dependencies in
  3628. # the current directory while Tru64 will put them in the object
  3629. # directory.
  3630. mkdir sub
  3631. am_cv_CC_dependencies_compiler_type=none
  3632. if test "$am_compiler_list" = ""; then
  3633. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3634. fi
  3635. am__universal=false
  3636. case " $depcc " in #(
  3637. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3638. esac
  3639. for depmode in $am_compiler_list; do
  3640. # Setup a source with many dependencies, because some compilers
  3641. # like to wrap large dependency lists on column 80 (with \), and
  3642. # we should not choose a depcomp mode which is confused by this.
  3643. #
  3644. # We need to recreate these files for each test, as the compiler may
  3645. # overwrite some of them when testing with obscure command lines.
  3646. # This happens at least with the AIX C compiler.
  3647. : > sub/conftest.c
  3648. for i in 1 2 3 4 5 6; do
  3649. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3650. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3651. # Solaris 10 /bin/sh.
  3652. echo '/* dummy */' > sub/conftst$i.h
  3653. done
  3654. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3655. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3656. # mode. It turns out that the SunPro C++ compiler does not properly
  3657. # handle '-M -o', and we need to detect this. Also, some Intel
  3658. # versions had trouble with output in subdirs.
  3659. am__obj=sub/conftest.${OBJEXT-o}
  3660. am__minus_obj="-o $am__obj"
  3661. case $depmode in
  3662. gcc)
  3663. # This depmode causes a compiler race in universal mode.
  3664. test "$am__universal" = false || continue
  3665. ;;
  3666. nosideeffect)
  3667. # After this tag, mechanisms are not by side-effect, so they'll
  3668. # only be used when explicitly requested.
  3669. if test "x$enable_dependency_tracking" = xyes; then
  3670. continue
  3671. else
  3672. break
  3673. fi
  3674. ;;
  3675. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3676. # This compiler won't grok '-c -o', but also, the minuso test has
  3677. # not run yet. These depmodes are late enough in the game, and
  3678. # so weak that their functioning should not be impacted.
  3679. am__obj=conftest.${OBJEXT-o}
  3680. am__minus_obj=
  3681. ;;
  3682. none) break ;;
  3683. esac
  3684. if depmode=$depmode \
  3685. source=sub/conftest.c object=$am__obj \
  3686. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3687. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3688. >/dev/null 2>conftest.err &&
  3689. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3690. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3691. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3692. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3693. # icc doesn't choke on unknown options, it will just issue warnings
  3694. # or remarks (even with -Werror). So we grep stderr for any message
  3695. # that says an option was ignored or not supported.
  3696. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3697. # icc: Command line warning: ignoring option '-M'; no argument required
  3698. # The diagnosis changed in icc 8.0:
  3699. # icc: Command line remark: option '-MP' not supported
  3700. if (grep 'ignoring option' conftest.err ||
  3701. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3702. am_cv_CC_dependencies_compiler_type=$depmode
  3703. break
  3704. fi
  3705. fi
  3706. done
  3707. cd ..
  3708. rm -rf conftest.dir
  3709. else
  3710. am_cv_CC_dependencies_compiler_type=none
  3711. fi
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3714. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3715. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3716. if
  3717. test "x$enable_dependency_tracking" != xno \
  3718. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3719. am__fastdepCC_TRUE=
  3720. am__fastdepCC_FALSE='#'
  3721. else
  3722. am__fastdepCC_TRUE='#'
  3723. am__fastdepCC_FALSE=
  3724. fi
  3725. ac_ext=c
  3726. ac_cpp='$CPP $CPPFLAGS'
  3727. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3728. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3729. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3731. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3732. # On Suns, sometimes $CPP names a directory.
  3733. if test -n "$CPP" && test -d "$CPP"; then
  3734. CPP=
  3735. fi
  3736. if test -z "$CPP"; then
  3737. if ${ac_cv_prog_CPP+:} false; then :
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. # Double quotes because CPP needs to be expanded
  3741. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3742. do
  3743. ac_preproc_ok=false
  3744. for ac_c_preproc_warn_flag in '' yes
  3745. do
  3746. # Use a header file that comes with gcc, so configuring glibc
  3747. # with a fresh cross-compiler works.
  3748. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3749. # <limits.h> exists even on freestanding compilers.
  3750. # On the NeXT, cc -E runs the code through the compiler's parser,
  3751. # not just through cpp. "Syntax error" is here to catch this case.
  3752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3753. /* end confdefs.h. */
  3754. #ifdef __STDC__
  3755. # include <limits.h>
  3756. #else
  3757. # include <assert.h>
  3758. #endif
  3759. Syntax error
  3760. _ACEOF
  3761. if ac_fn_c_try_cpp "$LINENO"; then :
  3762. else
  3763. # Broken: fails on valid input.
  3764. continue
  3765. fi
  3766. rm -f conftest.err conftest.i conftest.$ac_ext
  3767. # OK, works on sane cases. Now check whether nonexistent headers
  3768. # can be detected and how.
  3769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3770. /* end confdefs.h. */
  3771. #include <ac_nonexistent.h>
  3772. _ACEOF
  3773. if ac_fn_c_try_cpp "$LINENO"; then :
  3774. # Broken: success on invalid input.
  3775. continue
  3776. else
  3777. # Passes both tests.
  3778. ac_preproc_ok=:
  3779. break
  3780. fi
  3781. rm -f conftest.err conftest.i conftest.$ac_ext
  3782. done
  3783. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3784. rm -f conftest.i conftest.err conftest.$ac_ext
  3785. if $ac_preproc_ok; then :
  3786. break
  3787. fi
  3788. done
  3789. ac_cv_prog_CPP=$CPP
  3790. fi
  3791. CPP=$ac_cv_prog_CPP
  3792. else
  3793. ac_cv_prog_CPP=$CPP
  3794. fi
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3796. $as_echo "$CPP" >&6; }
  3797. ac_preproc_ok=false
  3798. for ac_c_preproc_warn_flag in '' yes
  3799. do
  3800. # Use a header file that comes with gcc, so configuring glibc
  3801. # with a fresh cross-compiler works.
  3802. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3803. # <limits.h> exists even on freestanding compilers.
  3804. # On the NeXT, cc -E runs the code through the compiler's parser,
  3805. # not just through cpp. "Syntax error" is here to catch this case.
  3806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3807. /* end confdefs.h. */
  3808. #ifdef __STDC__
  3809. # include <limits.h>
  3810. #else
  3811. # include <assert.h>
  3812. #endif
  3813. Syntax error
  3814. _ACEOF
  3815. if ac_fn_c_try_cpp "$LINENO"; then :
  3816. else
  3817. # Broken: fails on valid input.
  3818. continue
  3819. fi
  3820. rm -f conftest.err conftest.i conftest.$ac_ext
  3821. # OK, works on sane cases. Now check whether nonexistent headers
  3822. # can be detected and how.
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. #include <ac_nonexistent.h>
  3826. _ACEOF
  3827. if ac_fn_c_try_cpp "$LINENO"; then :
  3828. # Broken: success on invalid input.
  3829. continue
  3830. else
  3831. # Passes both tests.
  3832. ac_preproc_ok=:
  3833. break
  3834. fi
  3835. rm -f conftest.err conftest.i conftest.$ac_ext
  3836. done
  3837. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3838. rm -f conftest.i conftest.err conftest.$ac_ext
  3839. if $ac_preproc_ok; then :
  3840. else
  3841. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3842. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3843. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3844. See \`config.log' for more details" "$LINENO" 5; }
  3845. fi
  3846. ac_ext=c
  3847. ac_cpp='$CPP $CPPFLAGS'
  3848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3852. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3853. if ${ac_cv_path_SED+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3857. for ac_i in 1 2 3 4 5 6 7; do
  3858. ac_script="$ac_script$as_nl$ac_script"
  3859. done
  3860. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3861. { ac_script=; unset ac_script;}
  3862. if test -z "$SED"; then
  3863. ac_path_SED_found=false
  3864. # Loop through the user's path and test for each of PROGNAME-LIST
  3865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3866. for as_dir in $PATH
  3867. do
  3868. IFS=$as_save_IFS
  3869. test -z "$as_dir" && as_dir=.
  3870. for ac_prog in sed gsed; do
  3871. for ac_exec_ext in '' $ac_executable_extensions; do
  3872. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3873. as_fn_executable_p "$ac_path_SED" || continue
  3874. # Check for GNU ac_path_SED and select it if it is found.
  3875. # Check for GNU $ac_path_SED
  3876. case `"$ac_path_SED" --version 2>&1` in
  3877. *GNU*)
  3878. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3879. *)
  3880. ac_count=0
  3881. $as_echo_n 0123456789 >"conftest.in"
  3882. while :
  3883. do
  3884. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3885. mv "conftest.tmp" "conftest.in"
  3886. cp "conftest.in" "conftest.nl"
  3887. $as_echo '' >> "conftest.nl"
  3888. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3889. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3890. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3891. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3892. # Best one so far, save it but keep looking for a better one
  3893. ac_cv_path_SED="$ac_path_SED"
  3894. ac_path_SED_max=$ac_count
  3895. fi
  3896. # 10*(2^10) chars as input seems more than enough
  3897. test $ac_count -gt 10 && break
  3898. done
  3899. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3900. esac
  3901. $ac_path_SED_found && break 3
  3902. done
  3903. done
  3904. done
  3905. IFS=$as_save_IFS
  3906. if test -z "$ac_cv_path_SED"; then
  3907. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3908. fi
  3909. else
  3910. ac_cv_path_SED=$SED
  3911. fi
  3912. fi
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3914. $as_echo "$ac_cv_path_SED" >&6; }
  3915. SED="$ac_cv_path_SED"
  3916. rm -f conftest.sed
  3917. case `pwd` in
  3918. *\ * | *\ *)
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3920. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3921. esac
  3922. macro_version='2.4.6'
  3923. macro_revision='2.4.6'
  3924. ltmain=$ac_aux_dir/ltmain.sh
  3925. # Backslashify metacharacters that are still active within
  3926. # double-quoted strings.
  3927. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3928. # Same as above, but do not quote variable references.
  3929. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3930. # Sed substitution to delay expansion of an escaped shell variable in a
  3931. # double_quote_subst'ed string.
  3932. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3933. # Sed substitution to delay expansion of an escaped single quote.
  3934. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3935. # Sed substitution to avoid accidental globbing in evaled expressions
  3936. no_glob_subst='s/\*/\\\*/g'
  3937. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3938. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3939. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3941. $as_echo_n "checking how to print strings... " >&6; }
  3942. # Test print first, because it will be a builtin if present.
  3943. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3944. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3945. ECHO='print -r --'
  3946. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3947. ECHO='printf %s\n'
  3948. else
  3949. # Use this function as a fallback that always works.
  3950. func_fallback_echo ()
  3951. {
  3952. eval 'cat <<_LTECHO_EOF
  3953. $1
  3954. _LTECHO_EOF'
  3955. }
  3956. ECHO='func_fallback_echo'
  3957. fi
  3958. # func_echo_all arg...
  3959. # Invoke $ECHO with all args, space-separated.
  3960. func_echo_all ()
  3961. {
  3962. $ECHO ""
  3963. }
  3964. case $ECHO in
  3965. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3966. $as_echo "printf" >&6; } ;;
  3967. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3968. $as_echo "print -r" >&6; } ;;
  3969. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3970. $as_echo "cat" >&6; } ;;
  3971. esac
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3973. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3974. if ${ac_cv_path_SED+:} false; then :
  3975. $as_echo_n "(cached) " >&6
  3976. else
  3977. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3978. for ac_i in 1 2 3 4 5 6 7; do
  3979. ac_script="$ac_script$as_nl$ac_script"
  3980. done
  3981. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3982. { ac_script=; unset ac_script;}
  3983. if test -z "$SED"; then
  3984. ac_path_SED_found=false
  3985. # Loop through the user's path and test for each of PROGNAME-LIST
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_prog in sed gsed; do
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3994. as_fn_executable_p "$ac_path_SED" || continue
  3995. # Check for GNU ac_path_SED and select it if it is found.
  3996. # Check for GNU $ac_path_SED
  3997. case `"$ac_path_SED" --version 2>&1` in
  3998. *GNU*)
  3999. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4000. *)
  4001. ac_count=0
  4002. $as_echo_n 0123456789 >"conftest.in"
  4003. while :
  4004. do
  4005. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4006. mv "conftest.tmp" "conftest.in"
  4007. cp "conftest.in" "conftest.nl"
  4008. $as_echo '' >> "conftest.nl"
  4009. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4010. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4011. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4012. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4013. # Best one so far, save it but keep looking for a better one
  4014. ac_cv_path_SED="$ac_path_SED"
  4015. ac_path_SED_max=$ac_count
  4016. fi
  4017. # 10*(2^10) chars as input seems more than enough
  4018. test $ac_count -gt 10 && break
  4019. done
  4020. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4021. esac
  4022. $ac_path_SED_found && break 3
  4023. done
  4024. done
  4025. done
  4026. IFS=$as_save_IFS
  4027. if test -z "$ac_cv_path_SED"; then
  4028. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4029. fi
  4030. else
  4031. ac_cv_path_SED=$SED
  4032. fi
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4035. $as_echo "$ac_cv_path_SED" >&6; }
  4036. SED="$ac_cv_path_SED"
  4037. rm -f conftest.sed
  4038. test -z "$SED" && SED=sed
  4039. Xsed="$SED -e 1s/^X//"
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4041. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4042. if ${ac_cv_path_GREP+:} false; then :
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. if test -z "$GREP"; then
  4046. ac_path_GREP_found=false
  4047. # Loop through the user's path and test for each of PROGNAME-LIST
  4048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4049. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4050. do
  4051. IFS=$as_save_IFS
  4052. test -z "$as_dir" && as_dir=.
  4053. for ac_prog in grep ggrep; do
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4056. as_fn_executable_p "$ac_path_GREP" || continue
  4057. # Check for GNU ac_path_GREP and select it if it is found.
  4058. # Check for GNU $ac_path_GREP
  4059. case `"$ac_path_GREP" --version 2>&1` in
  4060. *GNU*)
  4061. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4062. *)
  4063. ac_count=0
  4064. $as_echo_n 0123456789 >"conftest.in"
  4065. while :
  4066. do
  4067. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4068. mv "conftest.tmp" "conftest.in"
  4069. cp "conftest.in" "conftest.nl"
  4070. $as_echo 'GREP' >> "conftest.nl"
  4071. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4072. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4073. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4074. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4075. # Best one so far, save it but keep looking for a better one
  4076. ac_cv_path_GREP="$ac_path_GREP"
  4077. ac_path_GREP_max=$ac_count
  4078. fi
  4079. # 10*(2^10) chars as input seems more than enough
  4080. test $ac_count -gt 10 && break
  4081. done
  4082. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4083. esac
  4084. $ac_path_GREP_found && break 3
  4085. done
  4086. done
  4087. done
  4088. IFS=$as_save_IFS
  4089. if test -z "$ac_cv_path_GREP"; then
  4090. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4091. fi
  4092. else
  4093. ac_cv_path_GREP=$GREP
  4094. fi
  4095. fi
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4097. $as_echo "$ac_cv_path_GREP" >&6; }
  4098. GREP="$ac_cv_path_GREP"
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4100. $as_echo_n "checking for egrep... " >&6; }
  4101. if ${ac_cv_path_EGREP+:} false; then :
  4102. $as_echo_n "(cached) " >&6
  4103. else
  4104. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4105. then ac_cv_path_EGREP="$GREP -E"
  4106. else
  4107. if test -z "$EGREP"; then
  4108. ac_path_EGREP_found=false
  4109. # Loop through the user's path and test for each of PROGNAME-LIST
  4110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4111. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4112. do
  4113. IFS=$as_save_IFS
  4114. test -z "$as_dir" && as_dir=.
  4115. for ac_prog in egrep; do
  4116. for ac_exec_ext in '' $ac_executable_extensions; do
  4117. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4118. as_fn_executable_p "$ac_path_EGREP" || continue
  4119. # Check for GNU ac_path_EGREP and select it if it is found.
  4120. # Check for GNU $ac_path_EGREP
  4121. case `"$ac_path_EGREP" --version 2>&1` in
  4122. *GNU*)
  4123. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4124. *)
  4125. ac_count=0
  4126. $as_echo_n 0123456789 >"conftest.in"
  4127. while :
  4128. do
  4129. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4130. mv "conftest.tmp" "conftest.in"
  4131. cp "conftest.in" "conftest.nl"
  4132. $as_echo 'EGREP' >> "conftest.nl"
  4133. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4134. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4135. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4136. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4137. # Best one so far, save it but keep looking for a better one
  4138. ac_cv_path_EGREP="$ac_path_EGREP"
  4139. ac_path_EGREP_max=$ac_count
  4140. fi
  4141. # 10*(2^10) chars as input seems more than enough
  4142. test $ac_count -gt 10 && break
  4143. done
  4144. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4145. esac
  4146. $ac_path_EGREP_found && break 3
  4147. done
  4148. done
  4149. done
  4150. IFS=$as_save_IFS
  4151. if test -z "$ac_cv_path_EGREP"; then
  4152. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4153. fi
  4154. else
  4155. ac_cv_path_EGREP=$EGREP
  4156. fi
  4157. fi
  4158. fi
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4160. $as_echo "$ac_cv_path_EGREP" >&6; }
  4161. EGREP="$ac_cv_path_EGREP"
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4163. $as_echo_n "checking for fgrep... " >&6; }
  4164. if ${ac_cv_path_FGREP+:} false; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4168. then ac_cv_path_FGREP="$GREP -F"
  4169. else
  4170. if test -z "$FGREP"; then
  4171. ac_path_FGREP_found=false
  4172. # Loop through the user's path and test for each of PROGNAME-LIST
  4173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4174. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4175. do
  4176. IFS=$as_save_IFS
  4177. test -z "$as_dir" && as_dir=.
  4178. for ac_prog in fgrep; do
  4179. for ac_exec_ext in '' $ac_executable_extensions; do
  4180. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4181. as_fn_executable_p "$ac_path_FGREP" || continue
  4182. # Check for GNU ac_path_FGREP and select it if it is found.
  4183. # Check for GNU $ac_path_FGREP
  4184. case `"$ac_path_FGREP" --version 2>&1` in
  4185. *GNU*)
  4186. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4187. *)
  4188. ac_count=0
  4189. $as_echo_n 0123456789 >"conftest.in"
  4190. while :
  4191. do
  4192. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4193. mv "conftest.tmp" "conftest.in"
  4194. cp "conftest.in" "conftest.nl"
  4195. $as_echo 'FGREP' >> "conftest.nl"
  4196. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4197. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4198. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4199. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4200. # Best one so far, save it but keep looking for a better one
  4201. ac_cv_path_FGREP="$ac_path_FGREP"
  4202. ac_path_FGREP_max=$ac_count
  4203. fi
  4204. # 10*(2^10) chars as input seems more than enough
  4205. test $ac_count -gt 10 && break
  4206. done
  4207. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4208. esac
  4209. $ac_path_FGREP_found && break 3
  4210. done
  4211. done
  4212. done
  4213. IFS=$as_save_IFS
  4214. if test -z "$ac_cv_path_FGREP"; then
  4215. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4216. fi
  4217. else
  4218. ac_cv_path_FGREP=$FGREP
  4219. fi
  4220. fi
  4221. fi
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4223. $as_echo "$ac_cv_path_FGREP" >&6; }
  4224. FGREP="$ac_cv_path_FGREP"
  4225. test -z "$GREP" && GREP=grep
  4226. # Check whether --with-gnu-ld was given.
  4227. if test "${with_gnu_ld+set}" = set; then :
  4228. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4229. else
  4230. with_gnu_ld=no
  4231. fi
  4232. ac_prog=ld
  4233. if test yes = "$GCC"; then
  4234. # Check if gcc -print-prog-name=ld gives a path.
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4236. $as_echo_n "checking for ld used by $CC... " >&6; }
  4237. case $host in
  4238. *-*-mingw*)
  4239. # gcc leaves a trailing carriage return, which upsets mingw
  4240. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4241. *)
  4242. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4243. esac
  4244. case $ac_prog in
  4245. # Accept absolute paths.
  4246. [\\/]* | ?:[\\/]*)
  4247. re_direlt='/[^/][^/]*/\.\./'
  4248. # Canonicalize the pathname of ld
  4249. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4250. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4251. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4252. done
  4253. test -z "$LD" && LD=$ac_prog
  4254. ;;
  4255. "")
  4256. # If it fails, then pretend we aren't using GCC.
  4257. ac_prog=ld
  4258. ;;
  4259. *)
  4260. # If it is relative, then search for the first ld in PATH.
  4261. with_gnu_ld=unknown
  4262. ;;
  4263. esac
  4264. elif test yes = "$with_gnu_ld"; then
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4266. $as_echo_n "checking for GNU ld... " >&6; }
  4267. else
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4269. $as_echo_n "checking for non-GNU ld... " >&6; }
  4270. fi
  4271. if ${lt_cv_path_LD+:} false; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. if test -z "$LD"; then
  4275. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4276. for ac_dir in $PATH; do
  4277. IFS=$lt_save_ifs
  4278. test -z "$ac_dir" && ac_dir=.
  4279. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4280. lt_cv_path_LD=$ac_dir/$ac_prog
  4281. # Check to see if the program is GNU ld. I'd rather use --version,
  4282. # but apparently some variants of GNU ld only accept -v.
  4283. # Break only if it was the GNU/non-GNU ld that we prefer.
  4284. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4285. *GNU* | *'with BFD'*)
  4286. test no != "$with_gnu_ld" && break
  4287. ;;
  4288. *)
  4289. test yes != "$with_gnu_ld" && break
  4290. ;;
  4291. esac
  4292. fi
  4293. done
  4294. IFS=$lt_save_ifs
  4295. else
  4296. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4297. fi
  4298. fi
  4299. LD=$lt_cv_path_LD
  4300. if test -n "$LD"; then
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4302. $as_echo "$LD" >&6; }
  4303. else
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4305. $as_echo "no" >&6; }
  4306. fi
  4307. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4309. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4310. if ${lt_cv_prog_gnu_ld+:} false; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4314. case `$LD -v 2>&1 </dev/null` in
  4315. *GNU* | *'with BFD'*)
  4316. lt_cv_prog_gnu_ld=yes
  4317. ;;
  4318. *)
  4319. lt_cv_prog_gnu_ld=no
  4320. ;;
  4321. esac
  4322. fi
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4324. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4325. with_gnu_ld=$lt_cv_prog_gnu_ld
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4327. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4328. if ${lt_cv_path_NM+:} false; then :
  4329. $as_echo_n "(cached) " >&6
  4330. else
  4331. if test -n "$NM"; then
  4332. # Let the user override the test.
  4333. lt_cv_path_NM=$NM
  4334. else
  4335. lt_nm_to_check=${ac_tool_prefix}nm
  4336. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4337. lt_nm_to_check="$lt_nm_to_check nm"
  4338. fi
  4339. for lt_tmp_nm in $lt_nm_to_check; do
  4340. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4341. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4342. IFS=$lt_save_ifs
  4343. test -z "$ac_dir" && ac_dir=.
  4344. tmp_nm=$ac_dir/$lt_tmp_nm
  4345. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4346. # Check to see if the nm accepts a BSD-compat flag.
  4347. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4348. # nm: unknown option "B" ignored
  4349. # Tru64's nm complains that /dev/null is an invalid object file
  4350. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4351. case $build_os in
  4352. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4353. *) lt_bad_file=/dev/null ;;
  4354. esac
  4355. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4356. *$lt_bad_file* | *'Invalid file or object type'*)
  4357. lt_cv_path_NM="$tmp_nm -B"
  4358. break 2
  4359. ;;
  4360. *)
  4361. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4362. */dev/null*)
  4363. lt_cv_path_NM="$tmp_nm -p"
  4364. break 2
  4365. ;;
  4366. *)
  4367. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4368. continue # so that we can try to find one that supports BSD flags
  4369. ;;
  4370. esac
  4371. ;;
  4372. esac
  4373. fi
  4374. done
  4375. IFS=$lt_save_ifs
  4376. done
  4377. : ${lt_cv_path_NM=no}
  4378. fi
  4379. fi
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4381. $as_echo "$lt_cv_path_NM" >&6; }
  4382. if test no != "$lt_cv_path_NM"; then
  4383. NM=$lt_cv_path_NM
  4384. else
  4385. # Didn't find any BSD compatible name lister, look for dumpbin.
  4386. if test -n "$DUMPBIN"; then :
  4387. # Let the user override the test.
  4388. else
  4389. if test -n "$ac_tool_prefix"; then
  4390. for ac_prog in dumpbin "link -dump"
  4391. do
  4392. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4393. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$DUMPBIN"; then
  4400. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4409. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. DUMPBIN=$ac_cv_prog_DUMPBIN
  4419. if test -n "$DUMPBIN"; then
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4421. $as_echo "$DUMPBIN" >&6; }
  4422. else
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. test -n "$DUMPBIN" && break
  4427. done
  4428. fi
  4429. if test -z "$DUMPBIN"; then
  4430. ac_ct_DUMPBIN=$DUMPBIN
  4431. for ac_prog in dumpbin "link -dump"
  4432. do
  4433. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4434. set dummy $ac_prog; ac_word=$2
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4436. $as_echo_n "checking for $ac_word... " >&6; }
  4437. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. if test -n "$ac_ct_DUMPBIN"; then
  4441. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4442. else
  4443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4444. for as_dir in $PATH
  4445. do
  4446. IFS=$as_save_IFS
  4447. test -z "$as_dir" && as_dir=.
  4448. for ac_exec_ext in '' $ac_executable_extensions; do
  4449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4450. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4452. break 2
  4453. fi
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. fi
  4458. fi
  4459. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4460. if test -n "$ac_ct_DUMPBIN"; then
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4462. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4465. $as_echo "no" >&6; }
  4466. fi
  4467. test -n "$ac_ct_DUMPBIN" && break
  4468. done
  4469. if test "x$ac_ct_DUMPBIN" = x; then
  4470. DUMPBIN=":"
  4471. else
  4472. case $cross_compiling:$ac_tool_warned in
  4473. yes:)
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4476. ac_tool_warned=yes ;;
  4477. esac
  4478. DUMPBIN=$ac_ct_DUMPBIN
  4479. fi
  4480. fi
  4481. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4482. *COFF*)
  4483. DUMPBIN="$DUMPBIN -symbols -headers"
  4484. ;;
  4485. *)
  4486. DUMPBIN=:
  4487. ;;
  4488. esac
  4489. fi
  4490. if test : != "$DUMPBIN"; then
  4491. NM=$DUMPBIN
  4492. fi
  4493. fi
  4494. test -z "$NM" && NM=nm
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4496. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4497. if ${lt_cv_nm_interface+:} false; then :
  4498. $as_echo_n "(cached) " >&6
  4499. else
  4500. lt_cv_nm_interface="BSD nm"
  4501. echo "int some_variable = 0;" > conftest.$ac_ext
  4502. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4503. (eval "$ac_compile" 2>conftest.err)
  4504. cat conftest.err >&5
  4505. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4506. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4507. cat conftest.err >&5
  4508. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4509. cat conftest.out >&5
  4510. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4511. lt_cv_nm_interface="MS dumpbin"
  4512. fi
  4513. rm -f conftest*
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4516. $as_echo "$lt_cv_nm_interface" >&6; }
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4518. $as_echo_n "checking whether ln -s works... " >&6; }
  4519. LN_S=$as_ln_s
  4520. if test "$LN_S" = "ln -s"; then
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4522. $as_echo "yes" >&6; }
  4523. else
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4525. $as_echo "no, using $LN_S" >&6; }
  4526. fi
  4527. # find the maximum length of command line arguments
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4529. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4530. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. i=0
  4534. teststring=ABCD
  4535. case $build_os in
  4536. msdosdjgpp*)
  4537. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4538. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4539. # during glob expansion). Even if it were fixed, the result of this
  4540. # check would be larger than it should be.
  4541. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4542. ;;
  4543. gnu*)
  4544. # Under GNU Hurd, this test is not required because there is
  4545. # no limit to the length of command line arguments.
  4546. # Libtool will interpret -1 as no limit whatsoever
  4547. lt_cv_sys_max_cmd_len=-1;
  4548. ;;
  4549. cygwin* | mingw* | cegcc*)
  4550. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4551. # about 5 minutes as the teststring grows exponentially.
  4552. # Worse, since 9x/ME are not pre-emptively multitasking,
  4553. # you end up with a "frozen" computer, even though with patience
  4554. # the test eventually succeeds (with a max line length of 256k).
  4555. # Instead, let's just punt: use the minimum linelength reported by
  4556. # all of the supported platforms: 8192 (on NT/2K/XP).
  4557. lt_cv_sys_max_cmd_len=8192;
  4558. ;;
  4559. mint*)
  4560. # On MiNT this can take a long time and run out of memory.
  4561. lt_cv_sys_max_cmd_len=8192;
  4562. ;;
  4563. amigaos*)
  4564. # On AmigaOS with pdksh, this test takes hours, literally.
  4565. # So we just punt and use a minimum line length of 8192.
  4566. lt_cv_sys_max_cmd_len=8192;
  4567. ;;
  4568. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4569. # This has been around since 386BSD, at least. Likely further.
  4570. if test -x /sbin/sysctl; then
  4571. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4572. elif test -x /usr/sbin/sysctl; then
  4573. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4574. else
  4575. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4576. fi
  4577. # And add a safety zone
  4578. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4579. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4580. ;;
  4581. interix*)
  4582. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4583. lt_cv_sys_max_cmd_len=196608
  4584. ;;
  4585. os2*)
  4586. # The test takes a long time on OS/2.
  4587. lt_cv_sys_max_cmd_len=8192
  4588. ;;
  4589. osf*)
  4590. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4591. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4592. # nice to cause kernel panics so lets avoid the loop below.
  4593. # First set a reasonable default.
  4594. lt_cv_sys_max_cmd_len=16384
  4595. #
  4596. if test -x /sbin/sysconfig; then
  4597. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4598. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4599. esac
  4600. fi
  4601. ;;
  4602. sco3.2v5*)
  4603. lt_cv_sys_max_cmd_len=102400
  4604. ;;
  4605. sysv5* | sco5v6* | sysv4.2uw2*)
  4606. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4607. if test -n "$kargmax"; then
  4608. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4609. else
  4610. lt_cv_sys_max_cmd_len=32768
  4611. fi
  4612. ;;
  4613. *)
  4614. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4615. if test -n "$lt_cv_sys_max_cmd_len" && \
  4616. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4617. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4618. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4619. else
  4620. # Make teststring a little bigger before we do anything with it.
  4621. # a 1K string should be a reasonable start.
  4622. for i in 1 2 3 4 5 6 7 8; do
  4623. teststring=$teststring$teststring
  4624. done
  4625. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4626. # If test is not a shell built-in, we'll probably end up computing a
  4627. # maximum length that is only half of the actual maximum length, but
  4628. # we can't tell.
  4629. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4630. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4631. test 17 != "$i" # 1/2 MB should be enough
  4632. do
  4633. i=`expr $i + 1`
  4634. teststring=$teststring$teststring
  4635. done
  4636. # Only check the string length outside the loop.
  4637. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4638. teststring=
  4639. # Add a significant safety factor because C++ compilers can tack on
  4640. # massive amounts of additional arguments before passing them to the
  4641. # linker. It appears as though 1/2 is a usable value.
  4642. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4643. fi
  4644. ;;
  4645. esac
  4646. fi
  4647. if test -n "$lt_cv_sys_max_cmd_len"; then
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4649. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4650. else
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4652. $as_echo "none" >&6; }
  4653. fi
  4654. max_cmd_len=$lt_cv_sys_max_cmd_len
  4655. : ${CP="cp -f"}
  4656. : ${MV="mv -f"}
  4657. : ${RM="rm -f"}
  4658. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4659. lt_unset=unset
  4660. else
  4661. lt_unset=false
  4662. fi
  4663. # test EBCDIC or ASCII
  4664. case `echo X|tr X '\101'` in
  4665. A) # ASCII based system
  4666. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4667. lt_SP2NL='tr \040 \012'
  4668. lt_NL2SP='tr \015\012 \040\040'
  4669. ;;
  4670. *) # EBCDIC based system
  4671. lt_SP2NL='tr \100 \n'
  4672. lt_NL2SP='tr \r\n \100\100'
  4673. ;;
  4674. esac
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4676. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4677. if ${lt_cv_to_host_file_cmd+:} false; then :
  4678. $as_echo_n "(cached) " >&6
  4679. else
  4680. case $host in
  4681. *-*-mingw* )
  4682. case $build in
  4683. *-*-mingw* ) # actually msys
  4684. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4685. ;;
  4686. *-*-cygwin* )
  4687. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4688. ;;
  4689. * ) # otherwise, assume *nix
  4690. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4691. ;;
  4692. esac
  4693. ;;
  4694. *-*-cygwin* )
  4695. case $build in
  4696. *-*-mingw* ) # actually msys
  4697. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4698. ;;
  4699. *-*-cygwin* )
  4700. lt_cv_to_host_file_cmd=func_convert_file_noop
  4701. ;;
  4702. * ) # otherwise, assume *nix
  4703. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4704. ;;
  4705. esac
  4706. ;;
  4707. * ) # unhandled hosts (and "normal" native builds)
  4708. lt_cv_to_host_file_cmd=func_convert_file_noop
  4709. ;;
  4710. esac
  4711. fi
  4712. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4714. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4716. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4717. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. #assume ordinary cross tools, or native build.
  4721. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4722. case $host in
  4723. *-*-mingw* )
  4724. case $build in
  4725. *-*-mingw* ) # actually msys
  4726. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4727. ;;
  4728. esac
  4729. ;;
  4730. esac
  4731. fi
  4732. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4734. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4736. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4737. if ${lt_cv_ld_reload_flag+:} false; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. lt_cv_ld_reload_flag='-r'
  4741. fi
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4743. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4744. reload_flag=$lt_cv_ld_reload_flag
  4745. case $reload_flag in
  4746. "" | " "*) ;;
  4747. *) reload_flag=" $reload_flag" ;;
  4748. esac
  4749. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4750. case $host_os in
  4751. cygwin* | mingw* | pw32* | cegcc*)
  4752. if test yes != "$GCC"; then
  4753. reload_cmds=false
  4754. fi
  4755. ;;
  4756. darwin*)
  4757. if test yes = "$GCC"; then
  4758. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4759. else
  4760. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4761. fi
  4762. ;;
  4763. esac
  4764. if test -n "$ac_tool_prefix"; then
  4765. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4766. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4768. $as_echo_n "checking for $ac_word... " >&6; }
  4769. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4770. $as_echo_n "(cached) " >&6
  4771. else
  4772. if test -n "$OBJDUMP"; then
  4773. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4774. else
  4775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4776. for as_dir in $PATH
  4777. do
  4778. IFS=$as_save_IFS
  4779. test -z "$as_dir" && as_dir=.
  4780. for ac_exec_ext in '' $ac_executable_extensions; do
  4781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4782. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4784. break 2
  4785. fi
  4786. done
  4787. done
  4788. IFS=$as_save_IFS
  4789. fi
  4790. fi
  4791. OBJDUMP=$ac_cv_prog_OBJDUMP
  4792. if test -n "$OBJDUMP"; then
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4794. $as_echo "$OBJDUMP" >&6; }
  4795. else
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4797. $as_echo "no" >&6; }
  4798. fi
  4799. fi
  4800. if test -z "$ac_cv_prog_OBJDUMP"; then
  4801. ac_ct_OBJDUMP=$OBJDUMP
  4802. # Extract the first word of "objdump", so it can be a program name with args.
  4803. set dummy objdump; ac_word=$2
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4805. $as_echo_n "checking for $ac_word... " >&6; }
  4806. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. if test -n "$ac_ct_OBJDUMP"; then
  4810. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4811. else
  4812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813. for as_dir in $PATH
  4814. do
  4815. IFS=$as_save_IFS
  4816. test -z "$as_dir" && as_dir=.
  4817. for ac_exec_ext in '' $ac_executable_extensions; do
  4818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4819. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821. break 2
  4822. fi
  4823. done
  4824. done
  4825. IFS=$as_save_IFS
  4826. fi
  4827. fi
  4828. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4829. if test -n "$ac_ct_OBJDUMP"; then
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4831. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4832. else
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4834. $as_echo "no" >&6; }
  4835. fi
  4836. if test "x$ac_ct_OBJDUMP" = x; then
  4837. OBJDUMP="false"
  4838. else
  4839. case $cross_compiling:$ac_tool_warned in
  4840. yes:)
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4843. ac_tool_warned=yes ;;
  4844. esac
  4845. OBJDUMP=$ac_ct_OBJDUMP
  4846. fi
  4847. else
  4848. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4849. fi
  4850. test -z "$OBJDUMP" && OBJDUMP=objdump
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4852. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4853. if ${lt_cv_deplibs_check_method+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4857. lt_cv_file_magic_test_file=
  4858. lt_cv_deplibs_check_method='unknown'
  4859. # Need to set the preceding variable on all platforms that support
  4860. # interlibrary dependencies.
  4861. # 'none' -- dependencies not supported.
  4862. # 'unknown' -- same as none, but documents that we really don't know.
  4863. # 'pass_all' -- all dependencies passed with no checks.
  4864. # 'test_compile' -- check by making test program.
  4865. # 'file_magic [[regex]]' -- check by looking for files in library path
  4866. # that responds to the $file_magic_cmd with a given extended regex.
  4867. # If you have 'file' or equivalent on your system and you're not sure
  4868. # whether 'pass_all' will *always* work, you probably want this one.
  4869. case $host_os in
  4870. aix[4-9]*)
  4871. lt_cv_deplibs_check_method=pass_all
  4872. ;;
  4873. beos*)
  4874. lt_cv_deplibs_check_method=pass_all
  4875. ;;
  4876. bsdi[45]*)
  4877. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4878. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4879. lt_cv_file_magic_test_file=/shlib/libc.so
  4880. ;;
  4881. cygwin*)
  4882. # func_win32_libid is a shell function defined in ltmain.sh
  4883. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4884. lt_cv_file_magic_cmd='func_win32_libid'
  4885. ;;
  4886. mingw* | pw32*)
  4887. # Base MSYS/MinGW do not provide the 'file' command needed by
  4888. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4889. # unless we find 'file', for example because we are cross-compiling.
  4890. if ( file / ) >/dev/null 2>&1; then
  4891. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4892. lt_cv_file_magic_cmd='func_win32_libid'
  4893. else
  4894. # Keep this pattern in sync with the one in func_win32_libid.
  4895. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4896. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4897. fi
  4898. ;;
  4899. cegcc*)
  4900. # use the weaker test based on 'objdump'. See mingw*.
  4901. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4902. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4903. ;;
  4904. darwin* | rhapsody*)
  4905. lt_cv_deplibs_check_method=pass_all
  4906. ;;
  4907. freebsd* | dragonfly*)
  4908. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4909. case $host_cpu in
  4910. i*86 )
  4911. # Not sure whether the presence of OpenBSD here was a mistake.
  4912. # Let's accept both of them until this is cleared up.
  4913. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4914. lt_cv_file_magic_cmd=/usr/bin/file
  4915. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4916. ;;
  4917. esac
  4918. else
  4919. lt_cv_deplibs_check_method=pass_all
  4920. fi
  4921. ;;
  4922. haiku*)
  4923. lt_cv_deplibs_check_method=pass_all
  4924. ;;
  4925. hpux10.20* | hpux11*)
  4926. lt_cv_file_magic_cmd=/usr/bin/file
  4927. case $host_cpu in
  4928. ia64*)
  4929. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4930. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4931. ;;
  4932. hppa*64*)
  4933. 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]'
  4934. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4935. ;;
  4936. *)
  4937. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4938. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4939. ;;
  4940. esac
  4941. ;;
  4942. interix[3-9]*)
  4943. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4944. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4945. ;;
  4946. irix5* | irix6* | nonstopux*)
  4947. case $LD in
  4948. *-32|*"-32 ") libmagic=32-bit;;
  4949. *-n32|*"-n32 ") libmagic=N32;;
  4950. *-64|*"-64 ") libmagic=64-bit;;
  4951. *) libmagic=never-match;;
  4952. esac
  4953. lt_cv_deplibs_check_method=pass_all
  4954. ;;
  4955. # This must be glibc/ELF.
  4956. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4957. lt_cv_deplibs_check_method=pass_all
  4958. ;;
  4959. netbsd* | netbsdelf*-gnu)
  4960. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4961. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4962. else
  4963. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4964. fi
  4965. ;;
  4966. newos6*)
  4967. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4968. lt_cv_file_magic_cmd=/usr/bin/file
  4969. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4970. ;;
  4971. *nto* | *qnx*)
  4972. lt_cv_deplibs_check_method=pass_all
  4973. ;;
  4974. openbsd* | bitrig*)
  4975. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4976. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4977. else
  4978. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4979. fi
  4980. ;;
  4981. osf3* | osf4* | osf5*)
  4982. lt_cv_deplibs_check_method=pass_all
  4983. ;;
  4984. rdos*)
  4985. lt_cv_deplibs_check_method=pass_all
  4986. ;;
  4987. solaris*)
  4988. lt_cv_deplibs_check_method=pass_all
  4989. ;;
  4990. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4991. lt_cv_deplibs_check_method=pass_all
  4992. ;;
  4993. sysv4 | sysv4.3*)
  4994. case $host_vendor in
  4995. motorola)
  4996. 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]'
  4997. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4998. ;;
  4999. ncr)
  5000. lt_cv_deplibs_check_method=pass_all
  5001. ;;
  5002. sequent)
  5003. lt_cv_file_magic_cmd='/bin/file'
  5004. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5005. ;;
  5006. sni)
  5007. lt_cv_file_magic_cmd='/bin/file'
  5008. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5009. lt_cv_file_magic_test_file=/lib/libc.so
  5010. ;;
  5011. siemens)
  5012. lt_cv_deplibs_check_method=pass_all
  5013. ;;
  5014. pc)
  5015. lt_cv_deplibs_check_method=pass_all
  5016. ;;
  5017. esac
  5018. ;;
  5019. tpf*)
  5020. lt_cv_deplibs_check_method=pass_all
  5021. ;;
  5022. os2*)
  5023. lt_cv_deplibs_check_method=pass_all
  5024. ;;
  5025. esac
  5026. fi
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5028. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5029. file_magic_glob=
  5030. want_nocaseglob=no
  5031. if test "$build" = "$host"; then
  5032. case $host_os in
  5033. mingw* | pw32*)
  5034. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5035. want_nocaseglob=yes
  5036. else
  5037. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5038. fi
  5039. ;;
  5040. esac
  5041. fi
  5042. file_magic_cmd=$lt_cv_file_magic_cmd
  5043. deplibs_check_method=$lt_cv_deplibs_check_method
  5044. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5045. if test -n "$ac_tool_prefix"; then
  5046. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5047. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5049. $as_echo_n "checking for $ac_word... " >&6; }
  5050. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. if test -n "$DLLTOOL"; then
  5054. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5055. else
  5056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5057. for as_dir in $PATH
  5058. do
  5059. IFS=$as_save_IFS
  5060. test -z "$as_dir" && as_dir=.
  5061. for ac_exec_ext in '' $ac_executable_extensions; do
  5062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5063. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5065. break 2
  5066. fi
  5067. done
  5068. done
  5069. IFS=$as_save_IFS
  5070. fi
  5071. fi
  5072. DLLTOOL=$ac_cv_prog_DLLTOOL
  5073. if test -n "$DLLTOOL"; then
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5075. $as_echo "$DLLTOOL" >&6; }
  5076. else
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5078. $as_echo "no" >&6; }
  5079. fi
  5080. fi
  5081. if test -z "$ac_cv_prog_DLLTOOL"; then
  5082. ac_ct_DLLTOOL=$DLLTOOL
  5083. # Extract the first word of "dlltool", so it can be a program name with args.
  5084. set dummy dlltool; ac_word=$2
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5086. $as_echo_n "checking for $ac_word... " >&6; }
  5087. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5088. $as_echo_n "(cached) " >&6
  5089. else
  5090. if test -n "$ac_ct_DLLTOOL"; then
  5091. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5092. else
  5093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5094. for as_dir in $PATH
  5095. do
  5096. IFS=$as_save_IFS
  5097. test -z "$as_dir" && as_dir=.
  5098. for ac_exec_ext in '' $ac_executable_extensions; do
  5099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5100. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5102. break 2
  5103. fi
  5104. done
  5105. done
  5106. IFS=$as_save_IFS
  5107. fi
  5108. fi
  5109. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5110. if test -n "$ac_ct_DLLTOOL"; then
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5112. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5113. else
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5115. $as_echo "no" >&6; }
  5116. fi
  5117. if test "x$ac_ct_DLLTOOL" = x; then
  5118. DLLTOOL="false"
  5119. else
  5120. case $cross_compiling:$ac_tool_warned in
  5121. yes:)
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5123. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5124. ac_tool_warned=yes ;;
  5125. esac
  5126. DLLTOOL=$ac_ct_DLLTOOL
  5127. fi
  5128. else
  5129. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5130. fi
  5131. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5133. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5134. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5135. $as_echo_n "(cached) " >&6
  5136. else
  5137. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5138. case $host_os in
  5139. cygwin* | mingw* | pw32* | cegcc*)
  5140. # two different shell functions defined in ltmain.sh;
  5141. # decide which one to use based on capabilities of $DLLTOOL
  5142. case `$DLLTOOL --help 2>&1` in
  5143. *--identify-strict*)
  5144. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5145. ;;
  5146. *)
  5147. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5148. ;;
  5149. esac
  5150. ;;
  5151. *)
  5152. # fallback: assume linklib IS sharedlib
  5153. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5154. ;;
  5155. esac
  5156. fi
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5158. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5159. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5160. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5161. if test -n "$ac_tool_prefix"; then
  5162. for ac_prog in ar
  5163. do
  5164. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5165. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5167. $as_echo_n "checking for $ac_word... " >&6; }
  5168. if ${ac_cv_prog_AR+:} false; then :
  5169. $as_echo_n "(cached) " >&6
  5170. else
  5171. if test -n "$AR"; then
  5172. ac_cv_prog_AR="$AR" # Let the user override the test.
  5173. else
  5174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5175. for as_dir in $PATH
  5176. do
  5177. IFS=$as_save_IFS
  5178. test -z "$as_dir" && as_dir=.
  5179. for ac_exec_ext in '' $ac_executable_extensions; do
  5180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5181. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5183. break 2
  5184. fi
  5185. done
  5186. done
  5187. IFS=$as_save_IFS
  5188. fi
  5189. fi
  5190. AR=$ac_cv_prog_AR
  5191. if test -n "$AR"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5193. $as_echo "$AR" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. test -n "$AR" && break
  5199. done
  5200. fi
  5201. if test -z "$AR"; then
  5202. ac_ct_AR=$AR
  5203. for ac_prog in ar
  5204. do
  5205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5206. set dummy $ac_prog; ac_word=$2
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$ac_ct_AR"; then
  5213. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5222. ac_cv_prog_ac_ct_AR="$ac_prog"
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5232. if test -n "$ac_ct_AR"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5234. $as_echo "$ac_ct_AR" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. test -n "$ac_ct_AR" && break
  5240. done
  5241. if test "x$ac_ct_AR" = x; then
  5242. AR="false"
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. AR=$ac_ct_AR
  5251. fi
  5252. fi
  5253. : ${AR=ar}
  5254. : ${AR_FLAGS=cru}
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5256. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5257. if ${lt_cv_ar_at_file+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. lt_cv_ar_at_file=no
  5261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5262. /* end confdefs.h. */
  5263. int
  5264. main ()
  5265. {
  5266. ;
  5267. return 0;
  5268. }
  5269. _ACEOF
  5270. if ac_fn_c_try_compile "$LINENO"; then :
  5271. echo conftest.$ac_objext > conftest.lst
  5272. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5273. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5274. (eval $lt_ar_try) 2>&5
  5275. ac_status=$?
  5276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5277. test $ac_status = 0; }
  5278. if test 0 -eq "$ac_status"; then
  5279. # Ensure the archiver fails upon bogus file names.
  5280. rm -f conftest.$ac_objext libconftest.a
  5281. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5282. (eval $lt_ar_try) 2>&5
  5283. ac_status=$?
  5284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5285. test $ac_status = 0; }
  5286. if test 0 -ne "$ac_status"; then
  5287. lt_cv_ar_at_file=@
  5288. fi
  5289. fi
  5290. rm -f conftest.* libconftest.a
  5291. fi
  5292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5293. fi
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5295. $as_echo "$lt_cv_ar_at_file" >&6; }
  5296. if test no = "$lt_cv_ar_at_file"; then
  5297. archiver_list_spec=
  5298. else
  5299. archiver_list_spec=$lt_cv_ar_at_file
  5300. fi
  5301. if test -n "$ac_tool_prefix"; then
  5302. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5303. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5305. $as_echo_n "checking for $ac_word... " >&6; }
  5306. if ${ac_cv_prog_STRIP+:} false; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. if test -n "$STRIP"; then
  5310. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5311. else
  5312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5313. for as_dir in $PATH
  5314. do
  5315. IFS=$as_save_IFS
  5316. test -z "$as_dir" && as_dir=.
  5317. for ac_exec_ext in '' $ac_executable_extensions; do
  5318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5319. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5321. break 2
  5322. fi
  5323. done
  5324. done
  5325. IFS=$as_save_IFS
  5326. fi
  5327. fi
  5328. STRIP=$ac_cv_prog_STRIP
  5329. if test -n "$STRIP"; then
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5331. $as_echo "$STRIP" >&6; }
  5332. else
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5334. $as_echo "no" >&6; }
  5335. fi
  5336. fi
  5337. if test -z "$ac_cv_prog_STRIP"; then
  5338. ac_ct_STRIP=$STRIP
  5339. # Extract the first word of "strip", so it can be a program name with args.
  5340. set dummy strip; ac_word=$2
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5342. $as_echo_n "checking for $ac_word... " >&6; }
  5343. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. if test -n "$ac_ct_STRIP"; then
  5347. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5348. else
  5349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5350. for as_dir in $PATH
  5351. do
  5352. IFS=$as_save_IFS
  5353. test -z "$as_dir" && as_dir=.
  5354. for ac_exec_ext in '' $ac_executable_extensions; do
  5355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5356. ac_cv_prog_ac_ct_STRIP="strip"
  5357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5358. break 2
  5359. fi
  5360. done
  5361. done
  5362. IFS=$as_save_IFS
  5363. fi
  5364. fi
  5365. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5366. if test -n "$ac_ct_STRIP"; then
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5368. $as_echo "$ac_ct_STRIP" >&6; }
  5369. else
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5371. $as_echo "no" >&6; }
  5372. fi
  5373. if test "x$ac_ct_STRIP" = x; then
  5374. STRIP=":"
  5375. else
  5376. case $cross_compiling:$ac_tool_warned in
  5377. yes:)
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5380. ac_tool_warned=yes ;;
  5381. esac
  5382. STRIP=$ac_ct_STRIP
  5383. fi
  5384. else
  5385. STRIP="$ac_cv_prog_STRIP"
  5386. fi
  5387. test -z "$STRIP" && STRIP=:
  5388. if test -n "$ac_tool_prefix"; then
  5389. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5390. set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. if test -n "$RANLIB"; then
  5397. ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
  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. RANLIB=$ac_cv_prog_RANLIB
  5416. if test -n "$RANLIB"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5418. $as_echo "$RANLIB" >&6; }
  5419. else
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5421. $as_echo "no" >&6; }
  5422. fi
  5423. fi
  5424. if test -z "$ac_cv_prog_RANLIB"; then
  5425. ac_ct_RANLIB=$RANLIB
  5426. # Extract the first word of "ranlib", so it can be a program name with args.
  5427. set dummy ranlib; ac_word=$2
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5429. $as_echo_n "checking for $ac_word... " >&6; }
  5430. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5431. $as_echo_n "(cached) " >&6
  5432. else
  5433. if test -n "$ac_ct_RANLIB"; then
  5434. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5435. else
  5436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5437. for as_dir in $PATH
  5438. do
  5439. IFS=$as_save_IFS
  5440. test -z "$as_dir" && as_dir=.
  5441. for ac_exec_ext in '' $ac_executable_extensions; do
  5442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5443. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5445. break 2
  5446. fi
  5447. done
  5448. done
  5449. IFS=$as_save_IFS
  5450. fi
  5451. fi
  5452. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5453. if test -n "$ac_ct_RANLIB"; then
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5455. $as_echo "$ac_ct_RANLIB" >&6; }
  5456. else
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5458. $as_echo "no" >&6; }
  5459. fi
  5460. if test "x$ac_ct_RANLIB" = x; then
  5461. RANLIB=":"
  5462. else
  5463. case $cross_compiling:$ac_tool_warned in
  5464. yes:)
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5466. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5467. ac_tool_warned=yes ;;
  5468. esac
  5469. RANLIB=$ac_ct_RANLIB
  5470. fi
  5471. else
  5472. RANLIB="$ac_cv_prog_RANLIB"
  5473. fi
  5474. test -z "$RANLIB" && RANLIB=:
  5475. # Determine commands to create old-style static archives.
  5476. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5477. old_postinstall_cmds='chmod 644 $oldlib'
  5478. old_postuninstall_cmds=
  5479. if test -n "$RANLIB"; then
  5480. case $host_os in
  5481. bitrig* | openbsd*)
  5482. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5483. ;;
  5484. *)
  5485. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5486. ;;
  5487. esac
  5488. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5489. fi
  5490. case $host_os in
  5491. darwin*)
  5492. lock_old_archive_extraction=yes ;;
  5493. *)
  5494. lock_old_archive_extraction=no ;;
  5495. esac
  5496. # If no C compiler was specified, use CC.
  5497. LTCC=${LTCC-"$CC"}
  5498. # If no C compiler flags were specified, use CFLAGS.
  5499. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5500. # Allow CC to be a program name with arguments.
  5501. compiler=$CC
  5502. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5504. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5505. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. # These are sane defaults that work on at least a few old systems.
  5509. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5510. # Character class describing NM global symbol codes.
  5511. symcode='[BCDEGRST]'
  5512. # Regexp to match symbols that can be accessed directly from C.
  5513. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5514. # Define system-specific variables.
  5515. case $host_os in
  5516. aix*)
  5517. symcode='[BCDT]'
  5518. ;;
  5519. cygwin* | mingw* | pw32* | cegcc*)
  5520. symcode='[ABCDGISTW]'
  5521. ;;
  5522. hpux*)
  5523. if test ia64 = "$host_cpu"; then
  5524. symcode='[ABCDEGRST]'
  5525. fi
  5526. ;;
  5527. irix* | nonstopux*)
  5528. symcode='[BCDEGRST]'
  5529. ;;
  5530. osf*)
  5531. symcode='[BCDEGQRST]'
  5532. ;;
  5533. solaris*)
  5534. symcode='[BDRT]'
  5535. ;;
  5536. sco3.2v5*)
  5537. symcode='[DT]'
  5538. ;;
  5539. sysv4.2uw2*)
  5540. symcode='[DT]'
  5541. ;;
  5542. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5543. symcode='[ABDT]'
  5544. ;;
  5545. sysv4)
  5546. symcode='[DFNSTU]'
  5547. ;;
  5548. esac
  5549. # If we're using GNU nm, then use its standard symbol codes.
  5550. case `$NM -V 2>&1` in
  5551. *GNU* | *'with BFD'*)
  5552. symcode='[ABCDGIRSTW]' ;;
  5553. esac
  5554. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5555. # Gets list of data symbols to import.
  5556. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5557. # Adjust the below global symbol transforms to fixup imported variables.
  5558. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5559. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5560. lt_c_name_lib_hook="\
  5561. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5562. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5563. else
  5564. # Disable hooks by default.
  5565. lt_cv_sys_global_symbol_to_import=
  5566. lt_cdecl_hook=
  5567. lt_c_name_hook=
  5568. lt_c_name_lib_hook=
  5569. fi
  5570. # Transform an extracted symbol line into a proper C declaration.
  5571. # Some systems (esp. on ia64) link data and code symbols differently,
  5572. # so use this general approach.
  5573. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5574. $lt_cdecl_hook\
  5575. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5576. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5577. # Transform an extracted symbol line into symbol name and symbol address
  5578. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5579. $lt_c_name_hook\
  5580. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5581. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5582. # Transform an extracted symbol line into symbol name with lib prefix and
  5583. # symbol address.
  5584. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5585. $lt_c_name_lib_hook\
  5586. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5587. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5588. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5589. # Handle CRLF in mingw tool chain
  5590. opt_cr=
  5591. case $build_os in
  5592. mingw*)
  5593. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5594. ;;
  5595. esac
  5596. # Try without a prefix underscore, then with it.
  5597. for ac_symprfx in "" "_"; do
  5598. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5599. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5600. # Write the raw and C identifiers.
  5601. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5602. # Fake it for dumpbin and say T for any non-static function,
  5603. # D for any global variable and I for any imported variable.
  5604. # Also find C++ and __fastcall symbols from MSVC++,
  5605. # which start with @ or ?.
  5606. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5607. " {last_section=section; section=\$ 3};"\
  5608. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5609. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5610. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5611. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5612. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5613. " \$ 0!~/External *\|/{next};"\
  5614. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5615. " {if(hide[section]) next};"\
  5616. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5617. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5618. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5619. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5620. " ' prfx=^$ac_symprfx"
  5621. else
  5622. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5623. fi
  5624. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5625. # Check to see that the pipe works correctly.
  5626. pipe_works=no
  5627. rm -f conftest*
  5628. cat > conftest.$ac_ext <<_LT_EOF
  5629. #ifdef __cplusplus
  5630. extern "C" {
  5631. #endif
  5632. char nm_test_var;
  5633. void nm_test_func(void);
  5634. void nm_test_func(void){}
  5635. #ifdef __cplusplus
  5636. }
  5637. #endif
  5638. int main(){nm_test_var='a';nm_test_func();return(0);}
  5639. _LT_EOF
  5640. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5641. (eval $ac_compile) 2>&5
  5642. ac_status=$?
  5643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5644. test $ac_status = 0; }; then
  5645. # Now try to grab the symbols.
  5646. nlist=conftest.nm
  5647. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  5648. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  5649. # Try sorting and uniquifying the output.
  5650. if sort "$nlist" | uniq > "$nlist"T; then
  5651. mv -f "$nlist"T "$nlist"
  5652. else
  5653. rm -f "$nlist"T
  5654. fi
  5655. # Make sure that we snagged all the symbols we need.
  5656. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5657. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5658. cat <<_LT_EOF > conftest.$ac_ext
  5659. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5660. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5661. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5662. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5663. # define LT_DLSYM_CONST
  5664. #elif defined __osf__
  5665. /* This system does not cope well with relocations in const data. */
  5666. # define LT_DLSYM_CONST
  5667. #else
  5668. # define LT_DLSYM_CONST const
  5669. #endif
  5670. #ifdef __cplusplus
  5671. extern "C" {
  5672. #endif
  5673. _LT_EOF
  5674. # Now generate the symbol file.
  5675. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5676. cat <<_LT_EOF >> conftest.$ac_ext
  5677. /* The mapping between symbol names and symbols. */
  5678. LT_DLSYM_CONST struct {
  5679. const char *name;
  5680. void *address;
  5681. }
  5682. lt__PROGRAM__LTX_preloaded_symbols[] =
  5683. {
  5684. { "@PROGRAM@", (void *) 0 },
  5685. _LT_EOF
  5686. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5687. cat <<\_LT_EOF >> conftest.$ac_ext
  5688. {0, (void *) 0}
  5689. };
  5690. /* This works around a problem in FreeBSD linker */
  5691. #ifdef FREEBSD_WORKAROUND
  5692. static const void *lt_preloaded_setup() {
  5693. return lt__PROGRAM__LTX_preloaded_symbols;
  5694. }
  5695. #endif
  5696. #ifdef __cplusplus
  5697. }
  5698. #endif
  5699. _LT_EOF
  5700. # Now try linking the two files.
  5701. mv conftest.$ac_objext conftstm.$ac_objext
  5702. lt_globsym_save_LIBS=$LIBS
  5703. lt_globsym_save_CFLAGS=$CFLAGS
  5704. LIBS=conftstm.$ac_objext
  5705. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5707. (eval $ac_link) 2>&5
  5708. ac_status=$?
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5710. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5711. pipe_works=yes
  5712. fi
  5713. LIBS=$lt_globsym_save_LIBS
  5714. CFLAGS=$lt_globsym_save_CFLAGS
  5715. else
  5716. echo "cannot find nm_test_func in $nlist" >&5
  5717. fi
  5718. else
  5719. echo "cannot find nm_test_var in $nlist" >&5
  5720. fi
  5721. else
  5722. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5723. fi
  5724. else
  5725. echo "$progname: failed program was:" >&5
  5726. cat conftest.$ac_ext >&5
  5727. fi
  5728. rm -rf conftest* conftst*
  5729. # Do not use the global_symbol_pipe unless it works.
  5730. if test yes = "$pipe_works"; then
  5731. break
  5732. else
  5733. lt_cv_sys_global_symbol_pipe=
  5734. fi
  5735. done
  5736. fi
  5737. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5738. lt_cv_sys_global_symbol_to_cdecl=
  5739. fi
  5740. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5742. $as_echo "failed" >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5745. $as_echo "ok" >&6; }
  5746. fi
  5747. # Response file support.
  5748. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5749. nm_file_list_spec='@'
  5750. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5751. nm_file_list_spec='@'
  5752. fi
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5754. $as_echo_n "checking for sysroot... " >&6; }
  5755. # Check whether --with-sysroot was given.
  5756. if test "${with_sysroot+set}" = set; then :
  5757. withval=$with_sysroot;
  5758. else
  5759. with_sysroot=no
  5760. fi
  5761. lt_sysroot=
  5762. case $with_sysroot in #(
  5763. yes)
  5764. if test yes = "$GCC"; then
  5765. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5766. fi
  5767. ;; #(
  5768. /*)
  5769. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5770. ;; #(
  5771. no|'')
  5772. ;; #(
  5773. *)
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5775. $as_echo "$with_sysroot" >&6; }
  5776. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5777. ;;
  5778. esac
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5780. $as_echo "${lt_sysroot:-no}" >&6; }
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5782. $as_echo_n "checking for a working dd... " >&6; }
  5783. if ${ac_cv_path_lt_DD+:} false; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. printf 0123456789abcdef0123456789abcdef >conftest.i
  5787. cat conftest.i conftest.i >conftest2.i
  5788. : ${lt_DD:=$DD}
  5789. if test -z "$lt_DD"; then
  5790. ac_path_lt_DD_found=false
  5791. # Loop through the user's path and test for each of PROGNAME-LIST
  5792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5793. for as_dir in $PATH
  5794. do
  5795. IFS=$as_save_IFS
  5796. test -z "$as_dir" && as_dir=.
  5797. for ac_prog in dd; do
  5798. for ac_exec_ext in '' $ac_executable_extensions; do
  5799. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5800. as_fn_executable_p "$ac_path_lt_DD" || continue
  5801. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5802. cmp -s conftest.i conftest.out \
  5803. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5804. fi
  5805. $ac_path_lt_DD_found && break 3
  5806. done
  5807. done
  5808. done
  5809. IFS=$as_save_IFS
  5810. if test -z "$ac_cv_path_lt_DD"; then
  5811. :
  5812. fi
  5813. else
  5814. ac_cv_path_lt_DD=$lt_DD
  5815. fi
  5816. rm -f conftest.i conftest2.i conftest.out
  5817. fi
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5819. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5821. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5822. if ${lt_cv_truncate_bin+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. printf 0123456789abcdef0123456789abcdef >conftest.i
  5826. cat conftest.i conftest.i >conftest2.i
  5827. lt_cv_truncate_bin=
  5828. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5829. cmp -s conftest.i conftest.out \
  5830. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5831. fi
  5832. rm -f conftest.i conftest2.i conftest.out
  5833. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5834. fi
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5836. $as_echo "$lt_cv_truncate_bin" >&6; }
  5837. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5838. func_cc_basename ()
  5839. {
  5840. for cc_temp in $*""; do
  5841. case $cc_temp in
  5842. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5843. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5844. \-*) ;;
  5845. *) break;;
  5846. esac
  5847. done
  5848. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5849. }
  5850. # Check whether --enable-libtool-lock was given.
  5851. if test "${enable_libtool_lock+set}" = set; then :
  5852. enableval=$enable_libtool_lock;
  5853. fi
  5854. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5855. # Some flags need to be propagated to the compiler or linker for good
  5856. # libtool support.
  5857. case $host in
  5858. ia64-*-hpux*)
  5859. # Find out what ABI is being produced by ac_compile, and set mode
  5860. # options accordingly.
  5861. echo 'int i;' > conftest.$ac_ext
  5862. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5863. (eval $ac_compile) 2>&5
  5864. ac_status=$?
  5865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5866. test $ac_status = 0; }; then
  5867. case `/usr/bin/file conftest.$ac_objext` in
  5868. *ELF-32*)
  5869. HPUX_IA64_MODE=32
  5870. ;;
  5871. *ELF-64*)
  5872. HPUX_IA64_MODE=64
  5873. ;;
  5874. esac
  5875. fi
  5876. rm -rf conftest*
  5877. ;;
  5878. *-*-irix6*)
  5879. # Find out what ABI is being produced by ac_compile, and set linker
  5880. # options accordingly.
  5881. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5882. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5883. (eval $ac_compile) 2>&5
  5884. ac_status=$?
  5885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5886. test $ac_status = 0; }; then
  5887. if test yes = "$lt_cv_prog_gnu_ld"; then
  5888. case `/usr/bin/file conftest.$ac_objext` in
  5889. *32-bit*)
  5890. LD="${LD-ld} -melf32bsmip"
  5891. ;;
  5892. *N32*)
  5893. LD="${LD-ld} -melf32bmipn32"
  5894. ;;
  5895. *64-bit*)
  5896. LD="${LD-ld} -melf64bmip"
  5897. ;;
  5898. esac
  5899. else
  5900. case `/usr/bin/file conftest.$ac_objext` in
  5901. *32-bit*)
  5902. LD="${LD-ld} -32"
  5903. ;;
  5904. *N32*)
  5905. LD="${LD-ld} -n32"
  5906. ;;
  5907. *64-bit*)
  5908. LD="${LD-ld} -64"
  5909. ;;
  5910. esac
  5911. fi
  5912. fi
  5913. rm -rf conftest*
  5914. ;;
  5915. mips64*-*linux*)
  5916. # Find out what ABI is being produced by ac_compile, and set linker
  5917. # options accordingly.
  5918. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5919. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5920. (eval $ac_compile) 2>&5
  5921. ac_status=$?
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5923. test $ac_status = 0; }; then
  5924. emul=elf
  5925. case `/usr/bin/file conftest.$ac_objext` in
  5926. *32-bit*)
  5927. emul="${emul}32"
  5928. ;;
  5929. *64-bit*)
  5930. emul="${emul}64"
  5931. ;;
  5932. esac
  5933. case `/usr/bin/file conftest.$ac_objext` in
  5934. *MSB*)
  5935. emul="${emul}btsmip"
  5936. ;;
  5937. *LSB*)
  5938. emul="${emul}ltsmip"
  5939. ;;
  5940. esac
  5941. case `/usr/bin/file conftest.$ac_objext` in
  5942. *N32*)
  5943. emul="${emul}n32"
  5944. ;;
  5945. esac
  5946. LD="${LD-ld} -m $emul"
  5947. fi
  5948. rm -rf conftest*
  5949. ;;
  5950. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5951. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5952. # Find out what ABI is being produced by ac_compile, and set linker
  5953. # options accordingly. Note that the listed cases only cover the
  5954. # situations where additional linker options are needed (such as when
  5955. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5956. # vice versa); the common cases where no linker options are needed do
  5957. # not appear in the list.
  5958. echo 'int i;' > conftest.$ac_ext
  5959. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5960. (eval $ac_compile) 2>&5
  5961. ac_status=$?
  5962. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5963. test $ac_status = 0; }; then
  5964. case `/usr/bin/file conftest.o` in
  5965. *32-bit*)
  5966. case $host in
  5967. x86_64-*kfreebsd*-gnu)
  5968. LD="${LD-ld} -m elf_i386_fbsd"
  5969. ;;
  5970. x86_64-*linux*)
  5971. case `/usr/bin/file conftest.o` in
  5972. *x86-64*)
  5973. LD="${LD-ld} -m elf32_x86_64"
  5974. ;;
  5975. *)
  5976. LD="${LD-ld} -m elf_i386"
  5977. ;;
  5978. esac
  5979. ;;
  5980. powerpc64le-*linux*)
  5981. LD="${LD-ld} -m elf32lppclinux"
  5982. ;;
  5983. powerpc64-*linux*)
  5984. LD="${LD-ld} -m elf32ppclinux"
  5985. ;;
  5986. s390x-*linux*)
  5987. LD="${LD-ld} -m elf_s390"
  5988. ;;
  5989. sparc64-*linux*)
  5990. LD="${LD-ld} -m elf32_sparc"
  5991. ;;
  5992. esac
  5993. ;;
  5994. *64-bit*)
  5995. case $host in
  5996. x86_64-*kfreebsd*-gnu)
  5997. LD="${LD-ld} -m elf_x86_64_fbsd"
  5998. ;;
  5999. x86_64-*linux*)
  6000. LD="${LD-ld} -m elf_x86_64"
  6001. ;;
  6002. powerpcle-*linux*)
  6003. LD="${LD-ld} -m elf64lppc"
  6004. ;;
  6005. powerpc-*linux*)
  6006. LD="${LD-ld} -m elf64ppc"
  6007. ;;
  6008. s390*-*linux*|s390*-*tpf*)
  6009. LD="${LD-ld} -m elf64_s390"
  6010. ;;
  6011. sparc*-*linux*)
  6012. LD="${LD-ld} -m elf64_sparc"
  6013. ;;
  6014. esac
  6015. ;;
  6016. esac
  6017. fi
  6018. rm -rf conftest*
  6019. ;;
  6020. *-*-sco3.2v5*)
  6021. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6022. SAVE_CFLAGS=$CFLAGS
  6023. CFLAGS="$CFLAGS -belf"
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6025. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6026. if ${lt_cv_cc_needs_belf+:} false; then :
  6027. $as_echo_n "(cached) " >&6
  6028. else
  6029. ac_ext=c
  6030. ac_cpp='$CPP $CPPFLAGS'
  6031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6035. /* end confdefs.h. */
  6036. int
  6037. main ()
  6038. {
  6039. ;
  6040. return 0;
  6041. }
  6042. _ACEOF
  6043. if ac_fn_c_try_link "$LINENO"; then :
  6044. lt_cv_cc_needs_belf=yes
  6045. else
  6046. lt_cv_cc_needs_belf=no
  6047. fi
  6048. rm -f core conftest.err conftest.$ac_objext \
  6049. conftest$ac_exeext conftest.$ac_ext
  6050. ac_ext=c
  6051. ac_cpp='$CPP $CPPFLAGS'
  6052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6055. fi
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6057. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6058. if test yes != "$lt_cv_cc_needs_belf"; then
  6059. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6060. CFLAGS=$SAVE_CFLAGS
  6061. fi
  6062. ;;
  6063. *-*solaris*)
  6064. # Find out what ABI is being produced by ac_compile, and set linker
  6065. # options accordingly.
  6066. echo 'int i;' > conftest.$ac_ext
  6067. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6068. (eval $ac_compile) 2>&5
  6069. ac_status=$?
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6071. test $ac_status = 0; }; then
  6072. case `/usr/bin/file conftest.o` in
  6073. *64-bit*)
  6074. case $lt_cv_prog_gnu_ld in
  6075. yes*)
  6076. case $host in
  6077. i?86-*-solaris*|x86_64-*-solaris*)
  6078. LD="${LD-ld} -m elf_x86_64"
  6079. ;;
  6080. sparc*-*-solaris*)
  6081. LD="${LD-ld} -m elf64_sparc"
  6082. ;;
  6083. esac
  6084. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6085. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6086. LD=${LD-ld}_sol2
  6087. fi
  6088. ;;
  6089. *)
  6090. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6091. LD="${LD-ld} -64"
  6092. fi
  6093. ;;
  6094. esac
  6095. ;;
  6096. esac
  6097. fi
  6098. rm -rf conftest*
  6099. ;;
  6100. esac
  6101. need_locks=$enable_libtool_lock
  6102. if test -n "$ac_tool_prefix"; then
  6103. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6104. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6106. $as_echo_n "checking for $ac_word... " >&6; }
  6107. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6108. $as_echo_n "(cached) " >&6
  6109. else
  6110. if test -n "$MANIFEST_TOOL"; then
  6111. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6112. else
  6113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6114. for as_dir in $PATH
  6115. do
  6116. IFS=$as_save_IFS
  6117. test -z "$as_dir" && as_dir=.
  6118. for ac_exec_ext in '' $ac_executable_extensions; do
  6119. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6120. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6122. break 2
  6123. fi
  6124. done
  6125. done
  6126. IFS=$as_save_IFS
  6127. fi
  6128. fi
  6129. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6130. if test -n "$MANIFEST_TOOL"; then
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6132. $as_echo "$MANIFEST_TOOL" >&6; }
  6133. else
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6135. $as_echo "no" >&6; }
  6136. fi
  6137. fi
  6138. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6139. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6140. # Extract the first word of "mt", so it can be a program name with args.
  6141. set dummy mt; ac_word=$2
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6143. $as_echo_n "checking for $ac_word... " >&6; }
  6144. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6145. $as_echo_n "(cached) " >&6
  6146. else
  6147. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6148. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6149. else
  6150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6151. for as_dir in $PATH
  6152. do
  6153. IFS=$as_save_IFS
  6154. test -z "$as_dir" && as_dir=.
  6155. for ac_exec_ext in '' $ac_executable_extensions; do
  6156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6157. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6159. break 2
  6160. fi
  6161. done
  6162. done
  6163. IFS=$as_save_IFS
  6164. fi
  6165. fi
  6166. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6167. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6169. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6170. else
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6172. $as_echo "no" >&6; }
  6173. fi
  6174. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6175. MANIFEST_TOOL=":"
  6176. else
  6177. case $cross_compiling:$ac_tool_warned in
  6178. yes:)
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6180. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6181. ac_tool_warned=yes ;;
  6182. esac
  6183. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6184. fi
  6185. else
  6186. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6187. fi
  6188. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6190. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6191. if ${lt_cv_path_mainfest_tool+:} false; then :
  6192. $as_echo_n "(cached) " >&6
  6193. else
  6194. lt_cv_path_mainfest_tool=no
  6195. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6196. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6197. cat conftest.err >&5
  6198. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6199. lt_cv_path_mainfest_tool=yes
  6200. fi
  6201. rm -f conftest*
  6202. fi
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6204. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6205. if test yes != "$lt_cv_path_mainfest_tool"; then
  6206. MANIFEST_TOOL=:
  6207. fi
  6208. case $host_os in
  6209. rhapsody* | darwin*)
  6210. if test -n "$ac_tool_prefix"; then
  6211. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6212. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6214. $as_echo_n "checking for $ac_word... " >&6; }
  6215. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. if test -n "$DSYMUTIL"; then
  6219. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6220. else
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6228. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. fi
  6236. fi
  6237. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6238. if test -n "$DSYMUTIL"; then
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6240. $as_echo "$DSYMUTIL" >&6; }
  6241. else
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6243. $as_echo "no" >&6; }
  6244. fi
  6245. fi
  6246. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6247. ac_ct_DSYMUTIL=$DSYMUTIL
  6248. # Extract the first word of "dsymutil", so it can be a program name with args.
  6249. set dummy dsymutil; ac_word=$2
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6251. $as_echo_n "checking for $ac_word... " >&6; }
  6252. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. if test -n "$ac_ct_DSYMUTIL"; then
  6256. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6257. else
  6258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6259. for as_dir in $PATH
  6260. do
  6261. IFS=$as_save_IFS
  6262. test -z "$as_dir" && as_dir=.
  6263. for ac_exec_ext in '' $ac_executable_extensions; do
  6264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6265. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6267. break 2
  6268. fi
  6269. done
  6270. done
  6271. IFS=$as_save_IFS
  6272. fi
  6273. fi
  6274. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6275. if test -n "$ac_ct_DSYMUTIL"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6277. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6278. else
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. if test "x$ac_ct_DSYMUTIL" = x; then
  6283. DSYMUTIL=":"
  6284. else
  6285. case $cross_compiling:$ac_tool_warned in
  6286. yes:)
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6289. ac_tool_warned=yes ;;
  6290. esac
  6291. DSYMUTIL=$ac_ct_DSYMUTIL
  6292. fi
  6293. else
  6294. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6295. fi
  6296. if test -n "$ac_tool_prefix"; then
  6297. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6298. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6300. $as_echo_n "checking for $ac_word... " >&6; }
  6301. if ${ac_cv_prog_NMEDIT+:} false; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. if test -n "$NMEDIT"; then
  6305. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6306. else
  6307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6308. for as_dir in $PATH
  6309. do
  6310. IFS=$as_save_IFS
  6311. test -z "$as_dir" && as_dir=.
  6312. for ac_exec_ext in '' $ac_executable_extensions; do
  6313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6314. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6316. break 2
  6317. fi
  6318. done
  6319. done
  6320. IFS=$as_save_IFS
  6321. fi
  6322. fi
  6323. NMEDIT=$ac_cv_prog_NMEDIT
  6324. if test -n "$NMEDIT"; then
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6326. $as_echo "$NMEDIT" >&6; }
  6327. else
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6329. $as_echo "no" >&6; }
  6330. fi
  6331. fi
  6332. if test -z "$ac_cv_prog_NMEDIT"; then
  6333. ac_ct_NMEDIT=$NMEDIT
  6334. # Extract the first word of "nmedit", so it can be a program name with args.
  6335. set dummy nmedit; ac_word=$2
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6337. $as_echo_n "checking for $ac_word... " >&6; }
  6338. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6339. $as_echo_n "(cached) " >&6
  6340. else
  6341. if test -n "$ac_ct_NMEDIT"; then
  6342. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6343. else
  6344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6345. for as_dir in $PATH
  6346. do
  6347. IFS=$as_save_IFS
  6348. test -z "$as_dir" && as_dir=.
  6349. for ac_exec_ext in '' $ac_executable_extensions; do
  6350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6351. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6353. break 2
  6354. fi
  6355. done
  6356. done
  6357. IFS=$as_save_IFS
  6358. fi
  6359. fi
  6360. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6361. if test -n "$ac_ct_NMEDIT"; then
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6363. $as_echo "$ac_ct_NMEDIT" >&6; }
  6364. else
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6366. $as_echo "no" >&6; }
  6367. fi
  6368. if test "x$ac_ct_NMEDIT" = x; then
  6369. NMEDIT=":"
  6370. else
  6371. case $cross_compiling:$ac_tool_warned in
  6372. yes:)
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6375. ac_tool_warned=yes ;;
  6376. esac
  6377. NMEDIT=$ac_ct_NMEDIT
  6378. fi
  6379. else
  6380. NMEDIT="$ac_cv_prog_NMEDIT"
  6381. fi
  6382. if test -n "$ac_tool_prefix"; then
  6383. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6384. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6386. $as_echo_n "checking for $ac_word... " >&6; }
  6387. if ${ac_cv_prog_LIPO+:} false; then :
  6388. $as_echo_n "(cached) " >&6
  6389. else
  6390. if test -n "$LIPO"; then
  6391. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6392. else
  6393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6394. for as_dir in $PATH
  6395. do
  6396. IFS=$as_save_IFS
  6397. test -z "$as_dir" && as_dir=.
  6398. for ac_exec_ext in '' $ac_executable_extensions; do
  6399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6400. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6402. break 2
  6403. fi
  6404. done
  6405. done
  6406. IFS=$as_save_IFS
  6407. fi
  6408. fi
  6409. LIPO=$ac_cv_prog_LIPO
  6410. if test -n "$LIPO"; then
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6412. $as_echo "$LIPO" >&6; }
  6413. else
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6415. $as_echo "no" >&6; }
  6416. fi
  6417. fi
  6418. if test -z "$ac_cv_prog_LIPO"; then
  6419. ac_ct_LIPO=$LIPO
  6420. # Extract the first word of "lipo", so it can be a program name with args.
  6421. set dummy lipo; ac_word=$2
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6423. $as_echo_n "checking for $ac_word... " >&6; }
  6424. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6425. $as_echo_n "(cached) " >&6
  6426. else
  6427. if test -n "$ac_ct_LIPO"; then
  6428. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6429. else
  6430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6431. for as_dir in $PATH
  6432. do
  6433. IFS=$as_save_IFS
  6434. test -z "$as_dir" && as_dir=.
  6435. for ac_exec_ext in '' $ac_executable_extensions; do
  6436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6437. ac_cv_prog_ac_ct_LIPO="lipo"
  6438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6439. break 2
  6440. fi
  6441. done
  6442. done
  6443. IFS=$as_save_IFS
  6444. fi
  6445. fi
  6446. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6447. if test -n "$ac_ct_LIPO"; then
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6449. $as_echo "$ac_ct_LIPO" >&6; }
  6450. else
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6452. $as_echo "no" >&6; }
  6453. fi
  6454. if test "x$ac_ct_LIPO" = x; then
  6455. LIPO=":"
  6456. else
  6457. case $cross_compiling:$ac_tool_warned in
  6458. yes:)
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6461. ac_tool_warned=yes ;;
  6462. esac
  6463. LIPO=$ac_ct_LIPO
  6464. fi
  6465. else
  6466. LIPO="$ac_cv_prog_LIPO"
  6467. fi
  6468. if test -n "$ac_tool_prefix"; then
  6469. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6470. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6472. $as_echo_n "checking for $ac_word... " >&6; }
  6473. if ${ac_cv_prog_OTOOL+:} false; then :
  6474. $as_echo_n "(cached) " >&6
  6475. else
  6476. if test -n "$OTOOL"; then
  6477. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6478. else
  6479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6480. for as_dir in $PATH
  6481. do
  6482. IFS=$as_save_IFS
  6483. test -z "$as_dir" && as_dir=.
  6484. for ac_exec_ext in '' $ac_executable_extensions; do
  6485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6486. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6488. break 2
  6489. fi
  6490. done
  6491. done
  6492. IFS=$as_save_IFS
  6493. fi
  6494. fi
  6495. OTOOL=$ac_cv_prog_OTOOL
  6496. if test -n "$OTOOL"; then
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6498. $as_echo "$OTOOL" >&6; }
  6499. else
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6501. $as_echo "no" >&6; }
  6502. fi
  6503. fi
  6504. if test -z "$ac_cv_prog_OTOOL"; then
  6505. ac_ct_OTOOL=$OTOOL
  6506. # Extract the first word of "otool", so it can be a program name with args.
  6507. set dummy otool; ac_word=$2
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6509. $as_echo_n "checking for $ac_word... " >&6; }
  6510. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6511. $as_echo_n "(cached) " >&6
  6512. else
  6513. if test -n "$ac_ct_OTOOL"; then
  6514. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6515. else
  6516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6517. for as_dir in $PATH
  6518. do
  6519. IFS=$as_save_IFS
  6520. test -z "$as_dir" && as_dir=.
  6521. for ac_exec_ext in '' $ac_executable_extensions; do
  6522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6523. ac_cv_prog_ac_ct_OTOOL="otool"
  6524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6525. break 2
  6526. fi
  6527. done
  6528. done
  6529. IFS=$as_save_IFS
  6530. fi
  6531. fi
  6532. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6533. if test -n "$ac_ct_OTOOL"; then
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6535. $as_echo "$ac_ct_OTOOL" >&6; }
  6536. else
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6538. $as_echo "no" >&6; }
  6539. fi
  6540. if test "x$ac_ct_OTOOL" = x; then
  6541. OTOOL=":"
  6542. else
  6543. case $cross_compiling:$ac_tool_warned in
  6544. yes:)
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6547. ac_tool_warned=yes ;;
  6548. esac
  6549. OTOOL=$ac_ct_OTOOL
  6550. fi
  6551. else
  6552. OTOOL="$ac_cv_prog_OTOOL"
  6553. fi
  6554. if test -n "$ac_tool_prefix"; then
  6555. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6556. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6558. $as_echo_n "checking for $ac_word... " >&6; }
  6559. if ${ac_cv_prog_OTOOL64+:} false; then :
  6560. $as_echo_n "(cached) " >&6
  6561. else
  6562. if test -n "$OTOOL64"; then
  6563. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6564. else
  6565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6566. for as_dir in $PATH
  6567. do
  6568. IFS=$as_save_IFS
  6569. test -z "$as_dir" && as_dir=.
  6570. for ac_exec_ext in '' $ac_executable_extensions; do
  6571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6572. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6574. break 2
  6575. fi
  6576. done
  6577. done
  6578. IFS=$as_save_IFS
  6579. fi
  6580. fi
  6581. OTOOL64=$ac_cv_prog_OTOOL64
  6582. if test -n "$OTOOL64"; then
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6584. $as_echo "$OTOOL64" >&6; }
  6585. else
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6587. $as_echo "no" >&6; }
  6588. fi
  6589. fi
  6590. if test -z "$ac_cv_prog_OTOOL64"; then
  6591. ac_ct_OTOOL64=$OTOOL64
  6592. # Extract the first word of "otool64", so it can be a program name with args.
  6593. set dummy otool64; ac_word=$2
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6595. $as_echo_n "checking for $ac_word... " >&6; }
  6596. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. if test -n "$ac_ct_OTOOL64"; then
  6600. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6601. else
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. test -z "$as_dir" && as_dir=.
  6607. for ac_exec_ext in '' $ac_executable_extensions; do
  6608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6609. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6611. break 2
  6612. fi
  6613. done
  6614. done
  6615. IFS=$as_save_IFS
  6616. fi
  6617. fi
  6618. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6619. if test -n "$ac_ct_OTOOL64"; then
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6621. $as_echo "$ac_ct_OTOOL64" >&6; }
  6622. else
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6624. $as_echo "no" >&6; }
  6625. fi
  6626. if test "x$ac_ct_OTOOL64" = x; then
  6627. OTOOL64=":"
  6628. else
  6629. case $cross_compiling:$ac_tool_warned in
  6630. yes:)
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6633. ac_tool_warned=yes ;;
  6634. esac
  6635. OTOOL64=$ac_ct_OTOOL64
  6636. fi
  6637. else
  6638. OTOOL64="$ac_cv_prog_OTOOL64"
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6641. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6642. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. lt_cv_apple_cc_single_mod=no
  6646. if test -z "$LT_MULTI_MODULE"; then
  6647. # By default we will add the -single_module flag. You can override
  6648. # by either setting the environment variable LT_MULTI_MODULE
  6649. # non-empty at configure time, or by adding -multi_module to the
  6650. # link flags.
  6651. rm -rf libconftest.dylib*
  6652. echo "int foo(void){return 1;}" > conftest.c
  6653. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6654. -dynamiclib -Wl,-single_module conftest.c" >&5
  6655. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6656. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6657. _lt_result=$?
  6658. # If there is a non-empty error log, and "single_module"
  6659. # appears in it, assume the flag caused a linker warning
  6660. if test -s conftest.err && $GREP single_module conftest.err; then
  6661. cat conftest.err >&5
  6662. # Otherwise, if the output was created with a 0 exit code from
  6663. # the compiler, it worked.
  6664. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6665. lt_cv_apple_cc_single_mod=yes
  6666. else
  6667. cat conftest.err >&5
  6668. fi
  6669. rm -rf libconftest.dylib*
  6670. rm -f conftest.*
  6671. fi
  6672. fi
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6674. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6676. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6677. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6678. $as_echo_n "(cached) " >&6
  6679. else
  6680. lt_cv_ld_exported_symbols_list=no
  6681. save_LDFLAGS=$LDFLAGS
  6682. echo "_main" > conftest.sym
  6683. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6685. /* end confdefs.h. */
  6686. int
  6687. main ()
  6688. {
  6689. ;
  6690. return 0;
  6691. }
  6692. _ACEOF
  6693. if ac_fn_c_try_link "$LINENO"; then :
  6694. lt_cv_ld_exported_symbols_list=yes
  6695. else
  6696. lt_cv_ld_exported_symbols_list=no
  6697. fi
  6698. rm -f core conftest.err conftest.$ac_objext \
  6699. conftest$ac_exeext conftest.$ac_ext
  6700. LDFLAGS=$save_LDFLAGS
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6703. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6705. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6706. if ${lt_cv_ld_force_load+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. lt_cv_ld_force_load=no
  6710. cat > conftest.c << _LT_EOF
  6711. int forced_loaded() { return 2;}
  6712. _LT_EOF
  6713. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6714. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6715. echo "$AR cru libconftest.a conftest.o" >&5
  6716. $AR cru libconftest.a conftest.o 2>&5
  6717. echo "$RANLIB libconftest.a" >&5
  6718. $RANLIB libconftest.a 2>&5
  6719. cat > conftest.c << _LT_EOF
  6720. int main() { return 0;}
  6721. _LT_EOF
  6722. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6723. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6724. _lt_result=$?
  6725. if test -s conftest.err && $GREP force_load conftest.err; then
  6726. cat conftest.err >&5
  6727. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6728. lt_cv_ld_force_load=yes
  6729. else
  6730. cat conftest.err >&5
  6731. fi
  6732. rm -f conftest.err libconftest.a conftest conftest.c
  6733. rm -rf conftest.dSYM
  6734. fi
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6736. $as_echo "$lt_cv_ld_force_load" >&6; }
  6737. case $host_os in
  6738. rhapsody* | darwin1.[012])
  6739. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6740. darwin1.*)
  6741. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6742. darwin*) # darwin 5.x on
  6743. # if running on 10.5 or later, the deployment target defaults
  6744. # to the OS version, if on x86, and 10.4, the deployment
  6745. # target defaults to 10.4. Don't you love it?
  6746. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6747. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6748. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6749. 10.[012][,.]*)
  6750. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6751. 10.*)
  6752. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6753. esac
  6754. ;;
  6755. esac
  6756. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6757. _lt_dar_single_mod='$single_module'
  6758. fi
  6759. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6760. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6761. else
  6762. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6763. fi
  6764. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6765. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6766. else
  6767. _lt_dsymutil=
  6768. fi
  6769. ;;
  6770. esac
  6771. # func_munge_path_list VARIABLE PATH
  6772. # -----------------------------------
  6773. # VARIABLE is name of variable containing _space_ separated list of
  6774. # directories to be munged by the contents of PATH, which is string
  6775. # having a format:
  6776. # "DIR[:DIR]:"
  6777. # string "DIR[ DIR]" will be prepended to VARIABLE
  6778. # ":DIR[:DIR]"
  6779. # string "DIR[ DIR]" will be appended to VARIABLE
  6780. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6781. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6782. # "DIRA[ DIRA]" will be appended to VARIABLE
  6783. # "DIR[:DIR]"
  6784. # VARIABLE will be replaced by "DIR[ DIR]"
  6785. func_munge_path_list ()
  6786. {
  6787. case x$2 in
  6788. x)
  6789. ;;
  6790. *:)
  6791. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6792. ;;
  6793. x:*)
  6794. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6795. ;;
  6796. *::*)
  6797. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6798. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6799. ;;
  6800. *)
  6801. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6802. ;;
  6803. esac
  6804. }
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6806. $as_echo_n "checking for ANSI C header files... " >&6; }
  6807. if ${ac_cv_header_stdc+:} false; then :
  6808. $as_echo_n "(cached) " >&6
  6809. else
  6810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6811. /* end confdefs.h. */
  6812. #include <stdlib.h>
  6813. #include <stdarg.h>
  6814. #include <string.h>
  6815. #include <float.h>
  6816. int
  6817. main ()
  6818. {
  6819. ;
  6820. return 0;
  6821. }
  6822. _ACEOF
  6823. if ac_fn_c_try_compile "$LINENO"; then :
  6824. ac_cv_header_stdc=yes
  6825. else
  6826. ac_cv_header_stdc=no
  6827. fi
  6828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6829. if test $ac_cv_header_stdc = yes; then
  6830. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6832. /* end confdefs.h. */
  6833. #include <string.h>
  6834. _ACEOF
  6835. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6836. $EGREP "memchr" >/dev/null 2>&1; then :
  6837. else
  6838. ac_cv_header_stdc=no
  6839. fi
  6840. rm -f conftest*
  6841. fi
  6842. if test $ac_cv_header_stdc = yes; then
  6843. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6845. /* end confdefs.h. */
  6846. #include <stdlib.h>
  6847. _ACEOF
  6848. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6849. $EGREP "free" >/dev/null 2>&1; then :
  6850. else
  6851. ac_cv_header_stdc=no
  6852. fi
  6853. rm -f conftest*
  6854. fi
  6855. if test $ac_cv_header_stdc = yes; then
  6856. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6857. if test "$cross_compiling" = yes; then :
  6858. :
  6859. else
  6860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6861. /* end confdefs.h. */
  6862. #include <ctype.h>
  6863. #include <stdlib.h>
  6864. #if ((' ' & 0x0FF) == 0x020)
  6865. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6866. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6867. #else
  6868. # define ISLOWER(c) \
  6869. (('a' <= (c) && (c) <= 'i') \
  6870. || ('j' <= (c) && (c) <= 'r') \
  6871. || ('s' <= (c) && (c) <= 'z'))
  6872. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6873. #endif
  6874. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6875. int
  6876. main ()
  6877. {
  6878. int i;
  6879. for (i = 0; i < 256; i++)
  6880. if (XOR (islower (i), ISLOWER (i))
  6881. || toupper (i) != TOUPPER (i))
  6882. return 2;
  6883. return 0;
  6884. }
  6885. _ACEOF
  6886. if ac_fn_c_try_run "$LINENO"; then :
  6887. else
  6888. ac_cv_header_stdc=no
  6889. fi
  6890. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6891. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6892. fi
  6893. fi
  6894. fi
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6896. $as_echo "$ac_cv_header_stdc" >&6; }
  6897. if test $ac_cv_header_stdc = yes; then
  6898. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6899. fi
  6900. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6901. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6902. inttypes.h stdint.h unistd.h
  6903. do :
  6904. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6905. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6906. "
  6907. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6908. cat >>confdefs.h <<_ACEOF
  6909. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6910. _ACEOF
  6911. fi
  6912. done
  6913. for ac_header in dlfcn.h
  6914. do :
  6915. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6916. "
  6917. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6918. cat >>confdefs.h <<_ACEOF
  6919. #define HAVE_DLFCN_H 1
  6920. _ACEOF
  6921. fi
  6922. done
  6923. # Set options
  6924. enable_dlopen=no
  6925. enable_win32_dll=no
  6926. # Check whether --enable-shared was given.
  6927. if test "${enable_shared+set}" = set; then :
  6928. enableval=$enable_shared; p=${PACKAGE-default}
  6929. case $enableval in
  6930. yes) enable_shared=yes ;;
  6931. no) enable_shared=no ;;
  6932. *)
  6933. enable_shared=no
  6934. # Look at the argument we got. We use all the common list separators.
  6935. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6936. for pkg in $enableval; do
  6937. IFS=$lt_save_ifs
  6938. if test "X$pkg" = "X$p"; then
  6939. enable_shared=yes
  6940. fi
  6941. done
  6942. IFS=$lt_save_ifs
  6943. ;;
  6944. esac
  6945. else
  6946. enable_shared=yes
  6947. fi
  6948. # Check whether --enable-static was given.
  6949. if test "${enable_static+set}" = set; then :
  6950. enableval=$enable_static; p=${PACKAGE-default}
  6951. case $enableval in
  6952. yes) enable_static=yes ;;
  6953. no) enable_static=no ;;
  6954. *)
  6955. enable_static=no
  6956. # Look at the argument we got. We use all the common list separators.
  6957. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6958. for pkg in $enableval; do
  6959. IFS=$lt_save_ifs
  6960. if test "X$pkg" = "X$p"; then
  6961. enable_static=yes
  6962. fi
  6963. done
  6964. IFS=$lt_save_ifs
  6965. ;;
  6966. esac
  6967. else
  6968. enable_static=yes
  6969. fi
  6970. # Check whether --with-pic was given.
  6971. if test "${with_pic+set}" = set; then :
  6972. withval=$with_pic; lt_p=${PACKAGE-default}
  6973. case $withval in
  6974. yes|no) pic_mode=$withval ;;
  6975. *)
  6976. pic_mode=default
  6977. # Look at the argument we got. We use all the common list separators.
  6978. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6979. for lt_pkg in $withval; do
  6980. IFS=$lt_save_ifs
  6981. if test "X$lt_pkg" = "X$lt_p"; then
  6982. pic_mode=yes
  6983. fi
  6984. done
  6985. IFS=$lt_save_ifs
  6986. ;;
  6987. esac
  6988. else
  6989. pic_mode=default
  6990. fi
  6991. # Check whether --enable-fast-install was given.
  6992. if test "${enable_fast_install+set}" = set; then :
  6993. enableval=$enable_fast_install; p=${PACKAGE-default}
  6994. case $enableval in
  6995. yes) enable_fast_install=yes ;;
  6996. no) enable_fast_install=no ;;
  6997. *)
  6998. enable_fast_install=no
  6999. # Look at the argument we got. We use all the common list separators.
  7000. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7001. for pkg in $enableval; do
  7002. IFS=$lt_save_ifs
  7003. if test "X$pkg" = "X$p"; then
  7004. enable_fast_install=yes
  7005. fi
  7006. done
  7007. IFS=$lt_save_ifs
  7008. ;;
  7009. esac
  7010. else
  7011. enable_fast_install=yes
  7012. fi
  7013. shared_archive_member_spec=
  7014. case $host,$enable_shared in
  7015. power*-*-aix[5-9]*,yes)
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7017. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7018. # Check whether --with-aix-soname was given.
  7019. if test "${with_aix_soname+set}" = set; then :
  7020. withval=$with_aix_soname; case $withval in
  7021. aix|svr4|both)
  7022. ;;
  7023. *)
  7024. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7025. ;;
  7026. esac
  7027. lt_cv_with_aix_soname=$with_aix_soname
  7028. else
  7029. if ${lt_cv_with_aix_soname+:} false; then :
  7030. $as_echo_n "(cached) " >&6
  7031. else
  7032. lt_cv_with_aix_soname=aix
  7033. fi
  7034. with_aix_soname=$lt_cv_with_aix_soname
  7035. fi
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7037. $as_echo "$with_aix_soname" >&6; }
  7038. if test aix != "$with_aix_soname"; then
  7039. # For the AIX way of multilib, we name the shared archive member
  7040. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7041. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7042. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7043. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7044. if test 64 = "${OBJECT_MODE-32}"; then
  7045. shared_archive_member_spec=shr_64
  7046. else
  7047. shared_archive_member_spec=shr
  7048. fi
  7049. fi
  7050. ;;
  7051. *)
  7052. with_aix_soname=aix
  7053. ;;
  7054. esac
  7055. # This can be used to rebuild libtool when needed
  7056. LIBTOOL_DEPS=$ltmain
  7057. # Always use our own libtool.
  7058. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7059. test -z "$LN_S" && LN_S="ln -s"
  7060. if test -n "${ZSH_VERSION+set}"; then
  7061. setopt NO_GLOB_SUBST
  7062. fi
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7064. $as_echo_n "checking for objdir... " >&6; }
  7065. if ${lt_cv_objdir+:} false; then :
  7066. $as_echo_n "(cached) " >&6
  7067. else
  7068. rm -f .libs 2>/dev/null
  7069. mkdir .libs 2>/dev/null
  7070. if test -d .libs; then
  7071. lt_cv_objdir=.libs
  7072. else
  7073. # MS-DOS does not allow filenames that begin with a dot.
  7074. lt_cv_objdir=_libs
  7075. fi
  7076. rmdir .libs 2>/dev/null
  7077. fi
  7078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7079. $as_echo "$lt_cv_objdir" >&6; }
  7080. objdir=$lt_cv_objdir
  7081. cat >>confdefs.h <<_ACEOF
  7082. #define LT_OBJDIR "$lt_cv_objdir/"
  7083. _ACEOF
  7084. case $host_os in
  7085. aix3*)
  7086. # AIX sometimes has problems with the GCC collect2 program. For some
  7087. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7088. # vanish in a puff of smoke.
  7089. if test set != "${COLLECT_NAMES+set}"; then
  7090. COLLECT_NAMES=
  7091. export COLLECT_NAMES
  7092. fi
  7093. ;;
  7094. esac
  7095. # Global variables:
  7096. ofile=libtool
  7097. can_build_shared=yes
  7098. # All known linkers require a '.a' archive for static linking (except MSVC,
  7099. # which needs '.lib').
  7100. libext=a
  7101. with_gnu_ld=$lt_cv_prog_gnu_ld
  7102. old_CC=$CC
  7103. old_CFLAGS=$CFLAGS
  7104. # Set sane defaults for various variables
  7105. test -z "$CC" && CC=cc
  7106. test -z "$LTCC" && LTCC=$CC
  7107. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7108. test -z "$LD" && LD=ld
  7109. test -z "$ac_objext" && ac_objext=o
  7110. func_cc_basename $compiler
  7111. cc_basename=$func_cc_basename_result
  7112. # Only perform the check for file, if the check method requires it
  7113. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7114. case $deplibs_check_method in
  7115. file_magic*)
  7116. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7118. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7119. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7120. $as_echo_n "(cached) " >&6
  7121. else
  7122. case $MAGIC_CMD in
  7123. [\\/*] | ?:[\\/]*)
  7124. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7125. ;;
  7126. *)
  7127. lt_save_MAGIC_CMD=$MAGIC_CMD
  7128. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7129. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7130. for ac_dir in $ac_dummy; do
  7131. IFS=$lt_save_ifs
  7132. test -z "$ac_dir" && ac_dir=.
  7133. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7134. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7135. if test -n "$file_magic_test_file"; then
  7136. case $deplibs_check_method in
  7137. "file_magic "*)
  7138. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7139. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7140. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7141. $EGREP "$file_magic_regex" > /dev/null; then
  7142. :
  7143. else
  7144. cat <<_LT_EOF 1>&2
  7145. *** Warning: the command libtool uses to detect shared libraries,
  7146. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7147. *** The result is that libtool may fail to recognize shared libraries
  7148. *** as such. This will affect the creation of libtool libraries that
  7149. *** depend on shared libraries, but programs linked with such libtool
  7150. *** libraries will work regardless of this problem. Nevertheless, you
  7151. *** may want to report the problem to your system manager and/or to
  7152. *** bug-libtool@gnu.org
  7153. _LT_EOF
  7154. fi ;;
  7155. esac
  7156. fi
  7157. break
  7158. fi
  7159. done
  7160. IFS=$lt_save_ifs
  7161. MAGIC_CMD=$lt_save_MAGIC_CMD
  7162. ;;
  7163. esac
  7164. fi
  7165. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7166. if test -n "$MAGIC_CMD"; then
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7168. $as_echo "$MAGIC_CMD" >&6; }
  7169. else
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7171. $as_echo "no" >&6; }
  7172. fi
  7173. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7174. if test -n "$ac_tool_prefix"; then
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7176. $as_echo_n "checking for file... " >&6; }
  7177. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7178. $as_echo_n "(cached) " >&6
  7179. else
  7180. case $MAGIC_CMD in
  7181. [\\/*] | ?:[\\/]*)
  7182. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7183. ;;
  7184. *)
  7185. lt_save_MAGIC_CMD=$MAGIC_CMD
  7186. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7187. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7188. for ac_dir in $ac_dummy; do
  7189. IFS=$lt_save_ifs
  7190. test -z "$ac_dir" && ac_dir=.
  7191. if test -f "$ac_dir/file"; then
  7192. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7193. if test -n "$file_magic_test_file"; then
  7194. case $deplibs_check_method in
  7195. "file_magic "*)
  7196. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7197. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7198. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7199. $EGREP "$file_magic_regex" > /dev/null; then
  7200. :
  7201. else
  7202. cat <<_LT_EOF 1>&2
  7203. *** Warning: the command libtool uses to detect shared libraries,
  7204. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7205. *** The result is that libtool may fail to recognize shared libraries
  7206. *** as such. This will affect the creation of libtool libraries that
  7207. *** depend on shared libraries, but programs linked with such libtool
  7208. *** libraries will work regardless of this problem. Nevertheless, you
  7209. *** may want to report the problem to your system manager and/or to
  7210. *** bug-libtool@gnu.org
  7211. _LT_EOF
  7212. fi ;;
  7213. esac
  7214. fi
  7215. break
  7216. fi
  7217. done
  7218. IFS=$lt_save_ifs
  7219. MAGIC_CMD=$lt_save_MAGIC_CMD
  7220. ;;
  7221. esac
  7222. fi
  7223. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7224. if test -n "$MAGIC_CMD"; then
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7226. $as_echo "$MAGIC_CMD" >&6; }
  7227. else
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7229. $as_echo "no" >&6; }
  7230. fi
  7231. else
  7232. MAGIC_CMD=:
  7233. fi
  7234. fi
  7235. fi
  7236. ;;
  7237. esac
  7238. # Use C for the default configuration in the libtool script
  7239. lt_save_CC=$CC
  7240. ac_ext=c
  7241. ac_cpp='$CPP $CPPFLAGS'
  7242. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7243. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7244. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7245. # Source file extension for C test sources.
  7246. ac_ext=c
  7247. # Object file extension for compiled C test sources.
  7248. objext=o
  7249. objext=$objext
  7250. # Code to be used in simple compile tests
  7251. lt_simple_compile_test_code="int some_variable = 0;"
  7252. # Code to be used in simple link tests
  7253. lt_simple_link_test_code='int main(){return(0);}'
  7254. # If no C compiler was specified, use CC.
  7255. LTCC=${LTCC-"$CC"}
  7256. # If no C compiler flags were specified, use CFLAGS.
  7257. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7258. # Allow CC to be a program name with arguments.
  7259. compiler=$CC
  7260. # Save the default compiler, since it gets overwritten when the other
  7261. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7262. compiler_DEFAULT=$CC
  7263. # save warnings/boilerplate of simple test code
  7264. ac_outfile=conftest.$ac_objext
  7265. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7266. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7267. _lt_compiler_boilerplate=`cat conftest.err`
  7268. $RM conftest*
  7269. ac_outfile=conftest.$ac_objext
  7270. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7271. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7272. _lt_linker_boilerplate=`cat conftest.err`
  7273. $RM -r conftest*
  7274. ## CAVEAT EMPTOR:
  7275. ## There is no encapsulation within the following macros, do not change
  7276. ## the running order or otherwise move them around unless you know exactly
  7277. ## what you are doing...
  7278. if test -n "$compiler"; then
  7279. lt_prog_compiler_no_builtin_flag=
  7280. if test yes = "$GCC"; then
  7281. case $cc_basename in
  7282. nvcc*)
  7283. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7284. *)
  7285. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7286. esac
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7288. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7289. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7290. $as_echo_n "(cached) " >&6
  7291. else
  7292. lt_cv_prog_compiler_rtti_exceptions=no
  7293. ac_outfile=conftest.$ac_objext
  7294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7295. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7296. # Insert the option either (1) after the last *FLAGS variable, or
  7297. # (2) before a word containing "conftest.", or (3) at the end.
  7298. # Note that $ac_compile itself does not contain backslashes and begins
  7299. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7300. # The option is referenced via a variable to avoid confusing sed.
  7301. lt_compile=`echo "$ac_compile" | $SED \
  7302. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7303. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7304. -e 's:$: $lt_compiler_flag:'`
  7305. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7306. (eval "$lt_compile" 2>conftest.err)
  7307. ac_status=$?
  7308. cat conftest.err >&5
  7309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7310. if (exit $ac_status) && test -s "$ac_outfile"; then
  7311. # The compiler can only warn and ignore the option if not recognized
  7312. # So say no if there are warnings other than the usual output.
  7313. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7314. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7315. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7316. lt_cv_prog_compiler_rtti_exceptions=yes
  7317. fi
  7318. fi
  7319. $RM conftest*
  7320. fi
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7322. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7323. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7324. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7325. else
  7326. :
  7327. fi
  7328. fi
  7329. lt_prog_compiler_wl=
  7330. lt_prog_compiler_pic=
  7331. lt_prog_compiler_static=
  7332. if test yes = "$GCC"; then
  7333. lt_prog_compiler_wl='-Wl,'
  7334. lt_prog_compiler_static='-static'
  7335. case $host_os in
  7336. aix*)
  7337. # All AIX code is PIC.
  7338. if test ia64 = "$host_cpu"; then
  7339. # AIX 5 now supports IA64 processor
  7340. lt_prog_compiler_static='-Bstatic'
  7341. fi
  7342. lt_prog_compiler_pic='-fPIC'
  7343. ;;
  7344. amigaos*)
  7345. case $host_cpu in
  7346. powerpc)
  7347. # see comment about AmigaOS4 .so support
  7348. lt_prog_compiler_pic='-fPIC'
  7349. ;;
  7350. m68k)
  7351. # FIXME: we need at least 68020 code to build shared libraries, but
  7352. # adding the '-m68020' flag to GCC prevents building anything better,
  7353. # like '-m68040'.
  7354. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7355. ;;
  7356. esac
  7357. ;;
  7358. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7359. # PIC is the default for these OSes.
  7360. ;;
  7361. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7362. # This hack is so that the source file can tell whether it is being
  7363. # built for inclusion in a dll (and should export symbols for example).
  7364. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7365. # (--disable-auto-import) libraries
  7366. lt_prog_compiler_pic='-DDLL_EXPORT'
  7367. case $host_os in
  7368. os2*)
  7369. lt_prog_compiler_static='$wl-static'
  7370. ;;
  7371. esac
  7372. ;;
  7373. darwin* | rhapsody*)
  7374. # PIC is the default on this platform
  7375. # Common symbols not allowed in MH_DYLIB files
  7376. lt_prog_compiler_pic='-fno-common'
  7377. ;;
  7378. haiku*)
  7379. # PIC is the default for Haiku.
  7380. # The "-static" flag exists, but is broken.
  7381. lt_prog_compiler_static=
  7382. ;;
  7383. hpux*)
  7384. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7385. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7386. # sets the default TLS model and affects inlining.
  7387. case $host_cpu in
  7388. hppa*64*)
  7389. # +Z the default
  7390. ;;
  7391. *)
  7392. lt_prog_compiler_pic='-fPIC'
  7393. ;;
  7394. esac
  7395. ;;
  7396. interix[3-9]*)
  7397. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7398. # Instead, we relocate shared libraries at runtime.
  7399. ;;
  7400. msdosdjgpp*)
  7401. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7402. # on systems that don't support them.
  7403. lt_prog_compiler_can_build_shared=no
  7404. enable_shared=no
  7405. ;;
  7406. *nto* | *qnx*)
  7407. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7408. # it will coredump.
  7409. lt_prog_compiler_pic='-fPIC -shared'
  7410. ;;
  7411. sysv4*MP*)
  7412. if test -d /usr/nec; then
  7413. lt_prog_compiler_pic=-Kconform_pic
  7414. fi
  7415. ;;
  7416. *)
  7417. lt_prog_compiler_pic='-fPIC'
  7418. ;;
  7419. esac
  7420. case $cc_basename in
  7421. nvcc*) # Cuda Compiler Driver 2.2
  7422. lt_prog_compiler_wl='-Xlinker '
  7423. if test -n "$lt_prog_compiler_pic"; then
  7424. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7425. fi
  7426. ;;
  7427. esac
  7428. else
  7429. # PORTME Check for flag to pass linker flags through the system compiler.
  7430. case $host_os in
  7431. aix*)
  7432. lt_prog_compiler_wl='-Wl,'
  7433. if test ia64 = "$host_cpu"; then
  7434. # AIX 5 now supports IA64 processor
  7435. lt_prog_compiler_static='-Bstatic'
  7436. else
  7437. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7438. fi
  7439. ;;
  7440. darwin* | rhapsody*)
  7441. # PIC is the default on this platform
  7442. # Common symbols not allowed in MH_DYLIB files
  7443. lt_prog_compiler_pic='-fno-common'
  7444. case $cc_basename in
  7445. nagfor*)
  7446. # NAG Fortran compiler
  7447. lt_prog_compiler_wl='-Wl,-Wl,,'
  7448. lt_prog_compiler_pic='-PIC'
  7449. lt_prog_compiler_static='-Bstatic'
  7450. ;;
  7451. esac
  7452. ;;
  7453. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7454. # This hack is so that the source file can tell whether it is being
  7455. # built for inclusion in a dll (and should export symbols for example).
  7456. lt_prog_compiler_pic='-DDLL_EXPORT'
  7457. case $host_os in
  7458. os2*)
  7459. lt_prog_compiler_static='$wl-static'
  7460. ;;
  7461. esac
  7462. ;;
  7463. hpux9* | hpux10* | hpux11*)
  7464. lt_prog_compiler_wl='-Wl,'
  7465. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7466. # not for PA HP-UX.
  7467. case $host_cpu in
  7468. hppa*64*|ia64*)
  7469. # +Z the default
  7470. ;;
  7471. *)
  7472. lt_prog_compiler_pic='+Z'
  7473. ;;
  7474. esac
  7475. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7476. lt_prog_compiler_static='$wl-a ${wl}archive'
  7477. ;;
  7478. irix5* | irix6* | nonstopux*)
  7479. lt_prog_compiler_wl='-Wl,'
  7480. # PIC (with -KPIC) is the default.
  7481. lt_prog_compiler_static='-non_shared'
  7482. ;;
  7483. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7484. case $cc_basename in
  7485. # old Intel for x86_64, which still supported -KPIC.
  7486. ecc*)
  7487. lt_prog_compiler_wl='-Wl,'
  7488. lt_prog_compiler_pic='-KPIC'
  7489. lt_prog_compiler_static='-static'
  7490. ;;
  7491. # icc used to be incompatible with GCC.
  7492. # ICC 10 doesn't accept -KPIC any more.
  7493. icc* | ifort*)
  7494. lt_prog_compiler_wl='-Wl,'
  7495. lt_prog_compiler_pic='-fPIC'
  7496. lt_prog_compiler_static='-static'
  7497. ;;
  7498. # Lahey Fortran 8.1.
  7499. lf95*)
  7500. lt_prog_compiler_wl='-Wl,'
  7501. lt_prog_compiler_pic='--shared'
  7502. lt_prog_compiler_static='--static'
  7503. ;;
  7504. nagfor*)
  7505. # NAG Fortran compiler
  7506. lt_prog_compiler_wl='-Wl,-Wl,,'
  7507. lt_prog_compiler_pic='-PIC'
  7508. lt_prog_compiler_static='-Bstatic'
  7509. ;;
  7510. tcc*)
  7511. # Fabrice Bellard et al's Tiny C Compiler
  7512. lt_prog_compiler_wl='-Wl,'
  7513. lt_prog_compiler_pic='-fPIC'
  7514. lt_prog_compiler_static='-static'
  7515. ;;
  7516. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7517. # Portland Group compilers (*not* the Pentium gcc compiler,
  7518. # which looks to be a dead project)
  7519. lt_prog_compiler_wl='-Wl,'
  7520. lt_prog_compiler_pic='-fpic'
  7521. lt_prog_compiler_static='-Bstatic'
  7522. ;;
  7523. ccc*)
  7524. lt_prog_compiler_wl='-Wl,'
  7525. # All Alpha code is PIC.
  7526. lt_prog_compiler_static='-non_shared'
  7527. ;;
  7528. xl* | bgxl* | bgf* | mpixl*)
  7529. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7530. lt_prog_compiler_wl='-Wl,'
  7531. lt_prog_compiler_pic='-qpic'
  7532. lt_prog_compiler_static='-qstaticlink'
  7533. ;;
  7534. *)
  7535. case `$CC -V 2>&1 | sed 5q` in
  7536. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7537. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7538. lt_prog_compiler_pic='-KPIC'
  7539. lt_prog_compiler_static='-Bstatic'
  7540. lt_prog_compiler_wl=''
  7541. ;;
  7542. *Sun\ F* | *Sun*Fortran*)
  7543. lt_prog_compiler_pic='-KPIC'
  7544. lt_prog_compiler_static='-Bstatic'
  7545. lt_prog_compiler_wl='-Qoption ld '
  7546. ;;
  7547. *Sun\ C*)
  7548. # Sun C 5.9
  7549. lt_prog_compiler_pic='-KPIC'
  7550. lt_prog_compiler_static='-Bstatic'
  7551. lt_prog_compiler_wl='-Wl,'
  7552. ;;
  7553. *Intel*\ [CF]*Compiler*)
  7554. lt_prog_compiler_wl='-Wl,'
  7555. lt_prog_compiler_pic='-fPIC'
  7556. lt_prog_compiler_static='-static'
  7557. ;;
  7558. *Portland\ Group*)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-fpic'
  7561. lt_prog_compiler_static='-Bstatic'
  7562. ;;
  7563. esac
  7564. ;;
  7565. esac
  7566. ;;
  7567. newsos6)
  7568. lt_prog_compiler_pic='-KPIC'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. *nto* | *qnx*)
  7572. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7573. # it will coredump.
  7574. lt_prog_compiler_pic='-fPIC -shared'
  7575. ;;
  7576. osf3* | osf4* | osf5*)
  7577. lt_prog_compiler_wl='-Wl,'
  7578. # All OSF/1 code is PIC.
  7579. lt_prog_compiler_static='-non_shared'
  7580. ;;
  7581. rdos*)
  7582. lt_prog_compiler_static='-non_shared'
  7583. ;;
  7584. solaris*)
  7585. lt_prog_compiler_pic='-KPIC'
  7586. lt_prog_compiler_static='-Bstatic'
  7587. case $cc_basename in
  7588. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7589. lt_prog_compiler_wl='-Qoption ld ';;
  7590. *)
  7591. lt_prog_compiler_wl='-Wl,';;
  7592. esac
  7593. ;;
  7594. sunos4*)
  7595. lt_prog_compiler_wl='-Qoption ld '
  7596. lt_prog_compiler_pic='-PIC'
  7597. lt_prog_compiler_static='-Bstatic'
  7598. ;;
  7599. sysv4 | sysv4.2uw2* | sysv4.3*)
  7600. lt_prog_compiler_wl='-Wl,'
  7601. lt_prog_compiler_pic='-KPIC'
  7602. lt_prog_compiler_static='-Bstatic'
  7603. ;;
  7604. sysv4*MP*)
  7605. if test -d /usr/nec; then
  7606. lt_prog_compiler_pic='-Kconform_pic'
  7607. lt_prog_compiler_static='-Bstatic'
  7608. fi
  7609. ;;
  7610. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7611. lt_prog_compiler_wl='-Wl,'
  7612. lt_prog_compiler_pic='-KPIC'
  7613. lt_prog_compiler_static='-Bstatic'
  7614. ;;
  7615. unicos*)
  7616. lt_prog_compiler_wl='-Wl,'
  7617. lt_prog_compiler_can_build_shared=no
  7618. ;;
  7619. uts4*)
  7620. lt_prog_compiler_pic='-pic'
  7621. lt_prog_compiler_static='-Bstatic'
  7622. ;;
  7623. *)
  7624. lt_prog_compiler_can_build_shared=no
  7625. ;;
  7626. esac
  7627. fi
  7628. case $host_os in
  7629. # For platforms that do not support PIC, -DPIC is meaningless:
  7630. *djgpp*)
  7631. lt_prog_compiler_pic=
  7632. ;;
  7633. *)
  7634. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7635. ;;
  7636. esac
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7638. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7639. if ${lt_cv_prog_compiler_pic+:} false; then :
  7640. $as_echo_n "(cached) " >&6
  7641. else
  7642. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7643. fi
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7645. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7646. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7647. #
  7648. # Check to make sure the PIC flag actually works.
  7649. #
  7650. if test -n "$lt_prog_compiler_pic"; then
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7652. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7653. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7654. $as_echo_n "(cached) " >&6
  7655. else
  7656. lt_cv_prog_compiler_pic_works=no
  7657. ac_outfile=conftest.$ac_objext
  7658. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7659. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7660. # Insert the option either (1) after the last *FLAGS variable, or
  7661. # (2) before a word containing "conftest.", or (3) at the end.
  7662. # Note that $ac_compile itself does not contain backslashes and begins
  7663. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7664. # The option is referenced via a variable to avoid confusing sed.
  7665. lt_compile=`echo "$ac_compile" | $SED \
  7666. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7667. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7668. -e 's:$: $lt_compiler_flag:'`
  7669. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7670. (eval "$lt_compile" 2>conftest.err)
  7671. ac_status=$?
  7672. cat conftest.err >&5
  7673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7674. if (exit $ac_status) && test -s "$ac_outfile"; then
  7675. # The compiler can only warn and ignore the option if not recognized
  7676. # So say no if there are warnings other than the usual output.
  7677. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7678. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7679. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7680. lt_cv_prog_compiler_pic_works=yes
  7681. fi
  7682. fi
  7683. $RM conftest*
  7684. fi
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7686. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7687. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7688. case $lt_prog_compiler_pic in
  7689. "" | " "*) ;;
  7690. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7691. esac
  7692. else
  7693. lt_prog_compiler_pic=
  7694. lt_prog_compiler_can_build_shared=no
  7695. fi
  7696. fi
  7697. #
  7698. # Check to make sure the static flag actually works.
  7699. #
  7700. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7702. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7703. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7704. $as_echo_n "(cached) " >&6
  7705. else
  7706. lt_cv_prog_compiler_static_works=no
  7707. save_LDFLAGS=$LDFLAGS
  7708. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7709. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7710. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7711. # The linker can only warn and ignore the option if not recognized
  7712. # So say no if there are warnings
  7713. if test -s conftest.err; then
  7714. # Append any errors to the config.log.
  7715. cat conftest.err 1>&5
  7716. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7717. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7718. if diff conftest.exp conftest.er2 >/dev/null; then
  7719. lt_cv_prog_compiler_static_works=yes
  7720. fi
  7721. else
  7722. lt_cv_prog_compiler_static_works=yes
  7723. fi
  7724. fi
  7725. $RM -r conftest*
  7726. LDFLAGS=$save_LDFLAGS
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7729. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7730. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7731. :
  7732. else
  7733. lt_prog_compiler_static=
  7734. fi
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7736. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7737. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7738. $as_echo_n "(cached) " >&6
  7739. else
  7740. lt_cv_prog_compiler_c_o=no
  7741. $RM -r conftest 2>/dev/null
  7742. mkdir conftest
  7743. cd conftest
  7744. mkdir out
  7745. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7746. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7747. # Insert the option either (1) after the last *FLAGS variable, or
  7748. # (2) before a word containing "conftest.", or (3) at the end.
  7749. # Note that $ac_compile itself does not contain backslashes and begins
  7750. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7751. lt_compile=`echo "$ac_compile" | $SED \
  7752. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7753. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7754. -e 's:$: $lt_compiler_flag:'`
  7755. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7756. (eval "$lt_compile" 2>out/conftest.err)
  7757. ac_status=$?
  7758. cat out/conftest.err >&5
  7759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7760. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7761. then
  7762. # The compiler can only warn and ignore the option if not recognized
  7763. # So say no if there are warnings
  7764. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7765. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7766. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7767. lt_cv_prog_compiler_c_o=yes
  7768. fi
  7769. fi
  7770. chmod u+w . 2>&5
  7771. $RM conftest*
  7772. # SGI C++ compiler will create directory out/ii_files/ for
  7773. # template instantiation
  7774. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7775. $RM out/* && rmdir out
  7776. cd ..
  7777. $RM -r conftest
  7778. $RM conftest*
  7779. fi
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7781. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7783. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7784. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7785. $as_echo_n "(cached) " >&6
  7786. else
  7787. lt_cv_prog_compiler_c_o=no
  7788. $RM -r conftest 2>/dev/null
  7789. mkdir conftest
  7790. cd conftest
  7791. mkdir out
  7792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7793. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7794. # Insert the option either (1) after the last *FLAGS variable, or
  7795. # (2) before a word containing "conftest.", or (3) at the end.
  7796. # Note that $ac_compile itself does not contain backslashes and begins
  7797. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7798. lt_compile=`echo "$ac_compile" | $SED \
  7799. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7800. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7801. -e 's:$: $lt_compiler_flag:'`
  7802. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7803. (eval "$lt_compile" 2>out/conftest.err)
  7804. ac_status=$?
  7805. cat out/conftest.err >&5
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7808. then
  7809. # The compiler can only warn and ignore the option if not recognized
  7810. # So say no if there are warnings
  7811. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7812. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7813. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7814. lt_cv_prog_compiler_c_o=yes
  7815. fi
  7816. fi
  7817. chmod u+w . 2>&5
  7818. $RM conftest*
  7819. # SGI C++ compiler will create directory out/ii_files/ for
  7820. # template instantiation
  7821. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7822. $RM out/* && rmdir out
  7823. cd ..
  7824. $RM -r conftest
  7825. $RM conftest*
  7826. fi
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7828. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7829. hard_links=nottested
  7830. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7831. # do not overwrite the value of need_locks provided by the user
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7833. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7834. hard_links=yes
  7835. $RM conftest*
  7836. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7837. touch conftest.a
  7838. ln conftest.a conftest.b 2>&5 || hard_links=no
  7839. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7841. $as_echo "$hard_links" >&6; }
  7842. if test no = "$hard_links"; then
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7844. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7845. need_locks=warn
  7846. fi
  7847. else
  7848. need_locks=no
  7849. fi
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7851. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7852. runpath_var=
  7853. allow_undefined_flag=
  7854. always_export_symbols=no
  7855. archive_cmds=
  7856. archive_expsym_cmds=
  7857. compiler_needs_object=no
  7858. enable_shared_with_static_runtimes=no
  7859. export_dynamic_flag_spec=
  7860. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7861. hardcode_automatic=no
  7862. hardcode_direct=no
  7863. hardcode_direct_absolute=no
  7864. hardcode_libdir_flag_spec=
  7865. hardcode_libdir_separator=
  7866. hardcode_minus_L=no
  7867. hardcode_shlibpath_var=unsupported
  7868. inherit_rpath=no
  7869. link_all_deplibs=unknown
  7870. module_cmds=
  7871. module_expsym_cmds=
  7872. old_archive_from_new_cmds=
  7873. old_archive_from_expsyms_cmds=
  7874. thread_safe_flag_spec=
  7875. whole_archive_flag_spec=
  7876. # include_expsyms should be a list of space-separated symbols to be *always*
  7877. # included in the symbol list
  7878. include_expsyms=
  7879. # exclude_expsyms can be an extended regexp of symbols to exclude
  7880. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7881. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7882. # as well as any symbol that contains 'd'.
  7883. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7884. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7885. # platforms (ab)use it in PIC code, but their linkers get confused if
  7886. # the symbol is explicitly referenced. Since portable code cannot
  7887. # rely on this symbol name, it's probably fine to never include it in
  7888. # preloaded symbol tables.
  7889. # Exclude shared library initialization/finalization symbols.
  7890. extract_expsyms_cmds=
  7891. case $host_os in
  7892. cygwin* | mingw* | pw32* | cegcc*)
  7893. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7894. # When not using gcc, we currently assume that we are using
  7895. # Microsoft Visual C++.
  7896. if test yes != "$GCC"; then
  7897. with_gnu_ld=no
  7898. fi
  7899. ;;
  7900. interix*)
  7901. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7902. with_gnu_ld=yes
  7903. ;;
  7904. openbsd* | bitrig*)
  7905. with_gnu_ld=no
  7906. ;;
  7907. linux* | k*bsd*-gnu | gnu*)
  7908. link_all_deplibs=no
  7909. ;;
  7910. esac
  7911. ld_shlibs=yes
  7912. # On some targets, GNU ld is compatible enough with the native linker
  7913. # that we're better off using the native interface for both.
  7914. lt_use_gnu_ld_interface=no
  7915. if test yes = "$with_gnu_ld"; then
  7916. case $host_os in
  7917. aix*)
  7918. # The AIX port of GNU ld has always aspired to compatibility
  7919. # with the native linker. However, as the warning in the GNU ld
  7920. # block says, versions before 2.19.5* couldn't really create working
  7921. # shared libraries, regardless of the interface used.
  7922. case `$LD -v 2>&1` in
  7923. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7924. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7925. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7926. *)
  7927. lt_use_gnu_ld_interface=yes
  7928. ;;
  7929. esac
  7930. ;;
  7931. *)
  7932. lt_use_gnu_ld_interface=yes
  7933. ;;
  7934. esac
  7935. fi
  7936. if test yes = "$lt_use_gnu_ld_interface"; then
  7937. # If archive_cmds runs LD, not CC, wlarc should be empty
  7938. wlarc='$wl'
  7939. # Set some defaults for GNU ld with shared library support. These
  7940. # are reset later if shared libraries are not supported. Putting them
  7941. # here allows them to be overridden if necessary.
  7942. runpath_var=LD_RUN_PATH
  7943. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7944. export_dynamic_flag_spec='$wl--export-dynamic'
  7945. # ancient GNU ld didn't support --whole-archive et. al.
  7946. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7947. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7948. else
  7949. whole_archive_flag_spec=
  7950. fi
  7951. supports_anon_versioning=no
  7952. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7953. *GNU\ gold*) supports_anon_versioning=yes ;;
  7954. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7955. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7956. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7957. *\ 2.11.*) ;; # other 2.11 versions
  7958. *) supports_anon_versioning=yes ;;
  7959. esac
  7960. # See if GNU ld supports shared libraries.
  7961. case $host_os in
  7962. aix[3-9]*)
  7963. # On AIX/PPC, the GNU linker is very broken
  7964. if test ia64 != "$host_cpu"; then
  7965. ld_shlibs=no
  7966. cat <<_LT_EOF 1>&2
  7967. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7968. *** to be unable to reliably create shared libraries on AIX.
  7969. *** Therefore, libtool is disabling shared libraries support. If you
  7970. *** really care for shared libraries, you may want to install binutils
  7971. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7972. *** You will then need to restart the configuration process.
  7973. _LT_EOF
  7974. fi
  7975. ;;
  7976. amigaos*)
  7977. case $host_cpu in
  7978. powerpc)
  7979. # see comment about AmigaOS4 .so support
  7980. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7981. archive_expsym_cmds=''
  7982. ;;
  7983. m68k)
  7984. 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)'
  7985. hardcode_libdir_flag_spec='-L$libdir'
  7986. hardcode_minus_L=yes
  7987. ;;
  7988. esac
  7989. ;;
  7990. beos*)
  7991. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7992. allow_undefined_flag=unsupported
  7993. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7994. # support --undefined. This deserves some investigation. FIXME
  7995. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7996. else
  7997. ld_shlibs=no
  7998. fi
  7999. ;;
  8000. cygwin* | mingw* | pw32* | cegcc*)
  8001. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8002. # as there is no search path for DLLs.
  8003. hardcode_libdir_flag_spec='-L$libdir'
  8004. export_dynamic_flag_spec='$wl--export-all-symbols'
  8005. allow_undefined_flag=unsupported
  8006. always_export_symbols=no
  8007. enable_shared_with_static_runtimes=yes
  8008. 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'
  8009. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8010. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8011. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8012. # If the export-symbols file already is a .def file, use it as
  8013. # is; otherwise, prepend EXPORTS...
  8014. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8015. cp $export_symbols $output_objdir/$soname.def;
  8016. else
  8017. echo EXPORTS > $output_objdir/$soname.def;
  8018. cat $export_symbols >> $output_objdir/$soname.def;
  8019. fi~
  8020. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8021. else
  8022. ld_shlibs=no
  8023. fi
  8024. ;;
  8025. haiku*)
  8026. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8027. link_all_deplibs=yes
  8028. ;;
  8029. os2*)
  8030. hardcode_libdir_flag_spec='-L$libdir'
  8031. hardcode_minus_L=yes
  8032. allow_undefined_flag=unsupported
  8033. shrext_cmds=.dll
  8034. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8035. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8036. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8037. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8038. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8039. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8040. emximp -o $lib $output_objdir/$libname.def'
  8041. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8042. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8043. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8044. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8045. prefix_cmds="$SED"~
  8046. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8047. prefix_cmds="$prefix_cmds -e 1d";
  8048. fi~
  8049. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8050. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8051. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8052. emximp -o $lib $output_objdir/$libname.def'
  8053. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8054. enable_shared_with_static_runtimes=yes
  8055. ;;
  8056. interix[3-9]*)
  8057. hardcode_direct=no
  8058. hardcode_shlibpath_var=no
  8059. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8060. export_dynamic_flag_spec='$wl-E'
  8061. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8062. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8063. # default) and relocated if they conflict, which is a slow very memory
  8064. # consuming and fragmenting process. To avoid this, we pick a random,
  8065. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8066. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8067. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8068. 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'
  8069. ;;
  8070. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8071. tmp_diet=no
  8072. if test linux-dietlibc = "$host_os"; then
  8073. case $cc_basename in
  8074. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8075. esac
  8076. fi
  8077. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8078. && test no = "$tmp_diet"
  8079. then
  8080. tmp_addflag=' $pic_flag'
  8081. tmp_sharedflag='-shared'
  8082. case $cc_basename,$host_cpu in
  8083. pgcc*) # Portland Group C compiler
  8084. 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'
  8085. tmp_addflag=' $pic_flag'
  8086. ;;
  8087. pgf77* | pgf90* | pgf95* | pgfortran*)
  8088. # Portland Group f77 and f90 compilers
  8089. 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'
  8090. tmp_addflag=' $pic_flag -Mnomain' ;;
  8091. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8092. tmp_addflag=' -i_dynamic' ;;
  8093. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8094. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8095. ifc* | ifort*) # Intel Fortran compiler
  8096. tmp_addflag=' -nofor_main' ;;
  8097. lf95*) # Lahey Fortran 8.1
  8098. whole_archive_flag_spec=
  8099. tmp_sharedflag='--shared' ;;
  8100. nagfor*) # NAGFOR 5.3
  8101. tmp_sharedflag='-Wl,-shared' ;;
  8102. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8103. tmp_sharedflag='-qmkshrobj'
  8104. tmp_addflag= ;;
  8105. nvcc*) # Cuda Compiler Driver 2.2
  8106. 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'
  8107. compiler_needs_object=yes
  8108. ;;
  8109. esac
  8110. case `$CC -V 2>&1 | sed 5q` in
  8111. *Sun\ C*) # Sun C 5.9
  8112. 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'
  8113. compiler_needs_object=yes
  8114. tmp_sharedflag='-G' ;;
  8115. *Sun\ F*) # Sun Fortran 8.3
  8116. tmp_sharedflag='-G' ;;
  8117. esac
  8118. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8119. if test yes = "$supports_anon_versioning"; then
  8120. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8121. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8122. echo "local: *; };" >> $output_objdir/$libname.ver~
  8123. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8124. fi
  8125. case $cc_basename in
  8126. tcc*)
  8127. export_dynamic_flag_spec='-rdynamic'
  8128. ;;
  8129. xlf* | bgf* | bgxlf* | mpixlf*)
  8130. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8131. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8132. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8133. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8134. if test yes = "$supports_anon_versioning"; then
  8135. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8136. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8137. echo "local: *; };" >> $output_objdir/$libname.ver~
  8138. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8139. fi
  8140. ;;
  8141. esac
  8142. else
  8143. ld_shlibs=no
  8144. fi
  8145. ;;
  8146. netbsd* | netbsdelf*-gnu)
  8147. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8148. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8149. wlarc=
  8150. else
  8151. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8152. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8153. fi
  8154. ;;
  8155. solaris*)
  8156. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8157. ld_shlibs=no
  8158. cat <<_LT_EOF 1>&2
  8159. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8160. *** create shared libraries on Solaris systems. Therefore, libtool
  8161. *** is disabling shared libraries support. We urge you to upgrade GNU
  8162. *** binutils to release 2.9.1 or newer. Another option is to modify
  8163. *** your PATH or compiler configuration so that the native linker is
  8164. *** used, and then restart.
  8165. _LT_EOF
  8166. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8167. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8168. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8169. else
  8170. ld_shlibs=no
  8171. fi
  8172. ;;
  8173. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8174. case `$LD -v 2>&1` in
  8175. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8176. ld_shlibs=no
  8177. cat <<_LT_EOF 1>&2
  8178. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8179. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8180. *** is disabling shared libraries support. We urge you to upgrade GNU
  8181. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8182. *** your PATH or compiler configuration so that the native linker is
  8183. *** used, and then restart.
  8184. _LT_EOF
  8185. ;;
  8186. *)
  8187. # For security reasons, it is highly recommended that you always
  8188. # use absolute paths for naming shared libraries, and exclude the
  8189. # DT_RUNPATH tag from executables and libraries. But doing so
  8190. # requires that you compile everything twice, which is a pain.
  8191. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8192. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8193. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8194. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8195. else
  8196. ld_shlibs=no
  8197. fi
  8198. ;;
  8199. esac
  8200. ;;
  8201. sunos4*)
  8202. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8203. wlarc=
  8204. hardcode_direct=yes
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. *)
  8208. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8209. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8210. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8211. else
  8212. ld_shlibs=no
  8213. fi
  8214. ;;
  8215. esac
  8216. if test no = "$ld_shlibs"; then
  8217. runpath_var=
  8218. hardcode_libdir_flag_spec=
  8219. export_dynamic_flag_spec=
  8220. whole_archive_flag_spec=
  8221. fi
  8222. else
  8223. # PORTME fill in a description of your system's linker (not GNU ld)
  8224. case $host_os in
  8225. aix3*)
  8226. allow_undefined_flag=unsupported
  8227. always_export_symbols=yes
  8228. 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'
  8229. # Note: this linker hardcodes the directories in LIBPATH if there
  8230. # are no directories specified by -L.
  8231. hardcode_minus_L=yes
  8232. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8233. # Neither direct hardcoding nor static linking is supported with a
  8234. # broken collect2.
  8235. hardcode_direct=unsupported
  8236. fi
  8237. ;;
  8238. aix[4-9]*)
  8239. if test ia64 = "$host_cpu"; then
  8240. # On IA64, the linker does run time linking by default, so we don't
  8241. # have to do anything special.
  8242. aix_use_runtimelinking=no
  8243. exp_sym_flag='-Bexport'
  8244. no_entry_flag=
  8245. else
  8246. # If we're using GNU nm, then we don't want the "-C" option.
  8247. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8248. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8249. # weak defined symbols like other global defined symbols, whereas
  8250. # GNU nm marks them as "W".
  8251. # While the 'weak' keyword is ignored in the Export File, we need
  8252. # it in the Import File for the 'aix-soname' feature, so we have
  8253. # to replace the "-B" option with "-P" for AIX nm.
  8254. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8255. 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'
  8256. else
  8257. 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'
  8258. fi
  8259. aix_use_runtimelinking=no
  8260. # Test if we are trying to use run time linking or normal
  8261. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8262. # have runtime linking enabled, and use it for executables.
  8263. # For shared libraries, we enable/disable runtime linking
  8264. # depending on the kind of the shared library created -
  8265. # when "with_aix_soname,aix_use_runtimelinking" is:
  8266. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8267. # "aix,yes" lib.so shared, rtl:yes, for executables
  8268. # lib.a static archive
  8269. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8270. # lib.a(lib.so.V) shared, rtl:no, for executables
  8271. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8272. # lib.a(lib.so.V) shared, rtl:no
  8273. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8274. # lib.a static archive
  8275. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8276. for ld_flag in $LDFLAGS; do
  8277. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8278. aix_use_runtimelinking=yes
  8279. break
  8280. fi
  8281. done
  8282. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8283. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8284. # so we don't have lib.a shared libs to link our executables.
  8285. # We have to force runtime linking in this case.
  8286. aix_use_runtimelinking=yes
  8287. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8288. fi
  8289. ;;
  8290. esac
  8291. exp_sym_flag='-bexport'
  8292. no_entry_flag='-bnoentry'
  8293. fi
  8294. # When large executables or shared objects are built, AIX ld can
  8295. # have problems creating the table of contents. If linking a library
  8296. # or program results in "error TOC overflow" add -mminimal-toc to
  8297. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8298. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8299. archive_cmds=''
  8300. hardcode_direct=yes
  8301. hardcode_direct_absolute=yes
  8302. hardcode_libdir_separator=':'
  8303. link_all_deplibs=yes
  8304. file_list_spec='$wl-f,'
  8305. case $with_aix_soname,$aix_use_runtimelinking in
  8306. aix,*) ;; # traditional, no import file
  8307. svr4,* | *,yes) # use import file
  8308. # The Import File defines what to hardcode.
  8309. hardcode_direct=no
  8310. hardcode_direct_absolute=no
  8311. ;;
  8312. esac
  8313. if test yes = "$GCC"; then
  8314. case $host_os in aix4.[012]|aix4.[012].*)
  8315. # We only want to do this on AIX 4.2 and lower, the check
  8316. # below for broken collect2 doesn't work under 4.3+
  8317. collect2name=`$CC -print-prog-name=collect2`
  8318. if test -f "$collect2name" &&
  8319. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8320. then
  8321. # We have reworked collect2
  8322. :
  8323. else
  8324. # We have old collect2
  8325. hardcode_direct=unsupported
  8326. # It fails to find uninstalled libraries when the uninstalled
  8327. # path is not listed in the libpath. Setting hardcode_minus_L
  8328. # to unsupported forces relinking
  8329. hardcode_minus_L=yes
  8330. hardcode_libdir_flag_spec='-L$libdir'
  8331. hardcode_libdir_separator=
  8332. fi
  8333. ;;
  8334. esac
  8335. shared_flag='-shared'
  8336. if test yes = "$aix_use_runtimelinking"; then
  8337. shared_flag="$shared_flag "'$wl-G'
  8338. fi
  8339. # Need to ensure runtime linking is disabled for the traditional
  8340. # shared library, or the linker may eventually find shared libraries
  8341. # /with/ Import File - we do not want to mix them.
  8342. shared_flag_aix='-shared'
  8343. shared_flag_svr4='-shared $wl-G'
  8344. else
  8345. # not using gcc
  8346. if test ia64 = "$host_cpu"; then
  8347. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8348. # chokes on -Wl,-G. The following line is correct:
  8349. shared_flag='-G'
  8350. else
  8351. if test yes = "$aix_use_runtimelinking"; then
  8352. shared_flag='$wl-G'
  8353. else
  8354. shared_flag='$wl-bM:SRE'
  8355. fi
  8356. shared_flag_aix='$wl-bM:SRE'
  8357. shared_flag_svr4='$wl-G'
  8358. fi
  8359. fi
  8360. export_dynamic_flag_spec='$wl-bexpall'
  8361. # It seems that -bexpall does not export symbols beginning with
  8362. # underscore (_), so it is better to generate a list of symbols to export.
  8363. always_export_symbols=yes
  8364. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8365. # Warning - without using the other runtime loading flags (-brtl),
  8366. # -berok will link without error, but may produce a broken library.
  8367. allow_undefined_flag='-berok'
  8368. # Determine the default libpath from the value encoded in an
  8369. # empty executable.
  8370. if test set = "${lt_cv_aix_libpath+set}"; then
  8371. aix_libpath=$lt_cv_aix_libpath
  8372. else
  8373. if ${lt_cv_aix_libpath_+:} false; then :
  8374. $as_echo_n "(cached) " >&6
  8375. else
  8376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8377. /* end confdefs.h. */
  8378. int
  8379. main ()
  8380. {
  8381. ;
  8382. return 0;
  8383. }
  8384. _ACEOF
  8385. if ac_fn_c_try_link "$LINENO"; then :
  8386. lt_aix_libpath_sed='
  8387. /Import File Strings/,/^$/ {
  8388. /^0/ {
  8389. s/^0 *\([^ ]*\) *$/\1/
  8390. p
  8391. }
  8392. }'
  8393. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8394. # Check for a 64-bit object if we didn't find anything.
  8395. if test -z "$lt_cv_aix_libpath_"; then
  8396. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8397. fi
  8398. fi
  8399. rm -f core conftest.err conftest.$ac_objext \
  8400. conftest$ac_exeext conftest.$ac_ext
  8401. if test -z "$lt_cv_aix_libpath_"; then
  8402. lt_cv_aix_libpath_=/usr/lib:/lib
  8403. fi
  8404. fi
  8405. aix_libpath=$lt_cv_aix_libpath_
  8406. fi
  8407. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8408. 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
  8409. else
  8410. if test ia64 = "$host_cpu"; then
  8411. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8412. allow_undefined_flag="-z nodefs"
  8413. 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"
  8414. else
  8415. # Determine the default libpath from the value encoded in an
  8416. # empty executable.
  8417. if test set = "${lt_cv_aix_libpath+set}"; then
  8418. aix_libpath=$lt_cv_aix_libpath
  8419. else
  8420. if ${lt_cv_aix_libpath_+:} false; then :
  8421. $as_echo_n "(cached) " >&6
  8422. else
  8423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8424. /* end confdefs.h. */
  8425. int
  8426. main ()
  8427. {
  8428. ;
  8429. return 0;
  8430. }
  8431. _ACEOF
  8432. if ac_fn_c_try_link "$LINENO"; then :
  8433. lt_aix_libpath_sed='
  8434. /Import File Strings/,/^$/ {
  8435. /^0/ {
  8436. s/^0 *\([^ ]*\) *$/\1/
  8437. p
  8438. }
  8439. }'
  8440. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8441. # Check for a 64-bit object if we didn't find anything.
  8442. if test -z "$lt_cv_aix_libpath_"; then
  8443. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8444. fi
  8445. fi
  8446. rm -f core conftest.err conftest.$ac_objext \
  8447. conftest$ac_exeext conftest.$ac_ext
  8448. if test -z "$lt_cv_aix_libpath_"; then
  8449. lt_cv_aix_libpath_=/usr/lib:/lib
  8450. fi
  8451. fi
  8452. aix_libpath=$lt_cv_aix_libpath_
  8453. fi
  8454. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8455. # Warning - without using the other run time loading flags,
  8456. # -berok will link without error, but may produce a broken library.
  8457. no_undefined_flag=' $wl-bernotok'
  8458. allow_undefined_flag=' $wl-berok'
  8459. if test yes = "$with_gnu_ld"; then
  8460. # We only use this code for GNU lds that support --whole-archive.
  8461. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8462. else
  8463. # Exported symbols can be pulled into shared objects from archives
  8464. whole_archive_flag_spec='$convenience'
  8465. fi
  8466. archive_cmds_need_lc=yes
  8467. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8468. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8469. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8470. if test svr4 != "$with_aix_soname"; then
  8471. # This is similar to how AIX traditionally builds its shared libraries.
  8472. 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'
  8473. fi
  8474. if test aix != "$with_aix_soname"; then
  8475. 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'
  8476. else
  8477. # used by -dlpreopen to get the symbols
  8478. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8479. fi
  8480. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8481. fi
  8482. fi
  8483. ;;
  8484. amigaos*)
  8485. case $host_cpu in
  8486. powerpc)
  8487. # see comment about AmigaOS4 .so support
  8488. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8489. archive_expsym_cmds=''
  8490. ;;
  8491. m68k)
  8492. 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)'
  8493. hardcode_libdir_flag_spec='-L$libdir'
  8494. hardcode_minus_L=yes
  8495. ;;
  8496. esac
  8497. ;;
  8498. bsdi[45]*)
  8499. export_dynamic_flag_spec=-rdynamic
  8500. ;;
  8501. cygwin* | mingw* | pw32* | cegcc*)
  8502. # When not using gcc, we currently assume that we are using
  8503. # Microsoft Visual C++.
  8504. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8505. # no search path for DLLs.
  8506. case $cc_basename in
  8507. cl*)
  8508. # Native MSVC
  8509. hardcode_libdir_flag_spec=' '
  8510. allow_undefined_flag=unsupported
  8511. always_export_symbols=yes
  8512. file_list_spec='@'
  8513. # Tell ltmain to make .lib files, not .a files.
  8514. libext=lib
  8515. # Tell ltmain to make .dll files, not .so files.
  8516. shrext_cmds=.dll
  8517. # FIXME: Setting linknames here is a bad hack.
  8518. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8519. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8520. cp "$export_symbols" "$output_objdir/$soname.def";
  8521. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8522. else
  8523. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8524. fi~
  8525. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8526. linknames='
  8527. # The linker will not automatically build a static lib if we build a DLL.
  8528. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8529. enable_shared_with_static_runtimes=yes
  8530. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8531. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8532. # Don't use ranlib
  8533. old_postinstall_cmds='chmod 644 $oldlib'
  8534. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8535. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8536. case $lt_outputfile in
  8537. *.exe|*.EXE) ;;
  8538. *)
  8539. lt_outputfile=$lt_outputfile.exe
  8540. lt_tool_outputfile=$lt_tool_outputfile.exe
  8541. ;;
  8542. esac~
  8543. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8544. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8545. $RM "$lt_outputfile.manifest";
  8546. fi'
  8547. ;;
  8548. *)
  8549. # Assume MSVC wrapper
  8550. hardcode_libdir_flag_spec=' '
  8551. allow_undefined_flag=unsupported
  8552. # Tell ltmain to make .lib files, not .a files.
  8553. libext=lib
  8554. # Tell ltmain to make .dll files, not .so files.
  8555. shrext_cmds=.dll
  8556. # FIXME: Setting linknames here is a bad hack.
  8557. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8558. # The linker will automatically build a .lib file if we build a DLL.
  8559. old_archive_from_new_cmds='true'
  8560. # FIXME: Should let the user specify the lib program.
  8561. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8562. enable_shared_with_static_runtimes=yes
  8563. ;;
  8564. esac
  8565. ;;
  8566. darwin* | rhapsody*)
  8567. archive_cmds_need_lc=no
  8568. hardcode_direct=no
  8569. hardcode_automatic=yes
  8570. hardcode_shlibpath_var=unsupported
  8571. if test yes = "$lt_cv_ld_force_load"; then
  8572. 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\"`'
  8573. else
  8574. whole_archive_flag_spec=''
  8575. fi
  8576. link_all_deplibs=yes
  8577. allow_undefined_flag=$_lt_dar_allow_undefined
  8578. case $cc_basename in
  8579. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8580. *) _lt_dar_can_shared=$GCC ;;
  8581. esac
  8582. if test yes = "$_lt_dar_can_shared"; then
  8583. output_verbose_link_cmd=func_echo_all
  8584. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8585. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8586. 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"
  8587. 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"
  8588. else
  8589. ld_shlibs=no
  8590. fi
  8591. ;;
  8592. dgux*)
  8593. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8594. hardcode_libdir_flag_spec='-L$libdir'
  8595. hardcode_shlibpath_var=no
  8596. ;;
  8597. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8598. # support. Future versions do this automatically, but an explicit c++rt0.o
  8599. # does not break anything, and helps significantly (at the cost of a little
  8600. # extra space).
  8601. freebsd2.2*)
  8602. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8603. hardcode_libdir_flag_spec='-R$libdir'
  8604. hardcode_direct=yes
  8605. hardcode_shlibpath_var=no
  8606. ;;
  8607. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8608. freebsd2.*)
  8609. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8610. hardcode_direct=yes
  8611. hardcode_minus_L=yes
  8612. hardcode_shlibpath_var=no
  8613. ;;
  8614. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8615. freebsd* | dragonfly*)
  8616. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8617. hardcode_libdir_flag_spec='-R$libdir'
  8618. hardcode_direct=yes
  8619. hardcode_shlibpath_var=no
  8620. ;;
  8621. hpux9*)
  8622. if test yes = "$GCC"; then
  8623. 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'
  8624. else
  8625. 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'
  8626. fi
  8627. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8628. hardcode_libdir_separator=:
  8629. hardcode_direct=yes
  8630. # hardcode_minus_L: Not really in the search PATH,
  8631. # but as the default location of the library.
  8632. hardcode_minus_L=yes
  8633. export_dynamic_flag_spec='$wl-E'
  8634. ;;
  8635. hpux10*)
  8636. if test yes,no = "$GCC,$with_gnu_ld"; then
  8637. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8638. else
  8639. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8640. fi
  8641. if test no = "$with_gnu_ld"; then
  8642. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8643. hardcode_libdir_separator=:
  8644. hardcode_direct=yes
  8645. hardcode_direct_absolute=yes
  8646. export_dynamic_flag_spec='$wl-E'
  8647. # hardcode_minus_L: Not really in the search PATH,
  8648. # but as the default location of the library.
  8649. hardcode_minus_L=yes
  8650. fi
  8651. ;;
  8652. hpux11*)
  8653. if test yes,no = "$GCC,$with_gnu_ld"; then
  8654. case $host_cpu in
  8655. hppa*64*)
  8656. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8657. ;;
  8658. ia64*)
  8659. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8660. ;;
  8661. *)
  8662. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8663. ;;
  8664. esac
  8665. else
  8666. case $host_cpu in
  8667. hppa*64*)
  8668. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8669. ;;
  8670. ia64*)
  8671. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8672. ;;
  8673. *)
  8674. # Older versions of the 11.00 compiler do not understand -b yet
  8675. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8677. $as_echo_n "checking if $CC understands -b... " >&6; }
  8678. if ${lt_cv_prog_compiler__b+:} false; then :
  8679. $as_echo_n "(cached) " >&6
  8680. else
  8681. lt_cv_prog_compiler__b=no
  8682. save_LDFLAGS=$LDFLAGS
  8683. LDFLAGS="$LDFLAGS -b"
  8684. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8685. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8686. # The linker can only warn and ignore the option if not recognized
  8687. # So say no if there are warnings
  8688. if test -s conftest.err; then
  8689. # Append any errors to the config.log.
  8690. cat conftest.err 1>&5
  8691. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8692. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8693. if diff conftest.exp conftest.er2 >/dev/null; then
  8694. lt_cv_prog_compiler__b=yes
  8695. fi
  8696. else
  8697. lt_cv_prog_compiler__b=yes
  8698. fi
  8699. fi
  8700. $RM -r conftest*
  8701. LDFLAGS=$save_LDFLAGS
  8702. fi
  8703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8704. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8705. if test yes = "$lt_cv_prog_compiler__b"; then
  8706. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8707. else
  8708. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8709. fi
  8710. ;;
  8711. esac
  8712. fi
  8713. if test no = "$with_gnu_ld"; then
  8714. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8715. hardcode_libdir_separator=:
  8716. case $host_cpu in
  8717. hppa*64*|ia64*)
  8718. hardcode_direct=no
  8719. hardcode_shlibpath_var=no
  8720. ;;
  8721. *)
  8722. hardcode_direct=yes
  8723. hardcode_direct_absolute=yes
  8724. export_dynamic_flag_spec='$wl-E'
  8725. # hardcode_minus_L: Not really in the search PATH,
  8726. # but as the default location of the library.
  8727. hardcode_minus_L=yes
  8728. ;;
  8729. esac
  8730. fi
  8731. ;;
  8732. irix5* | irix6* | nonstopux*)
  8733. if test yes = "$GCC"; then
  8734. 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'
  8735. # Try to use the -exported_symbol ld option, if it does not
  8736. # work, assume that -exports_file does not work either and
  8737. # implicitly export all symbols.
  8738. # This should be the same for all languages, so no per-tag cache variable.
  8739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8740. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8741. if ${lt_cv_irix_exported_symbol+:} false; then :
  8742. $as_echo_n "(cached) " >&6
  8743. else
  8744. save_LDFLAGS=$LDFLAGS
  8745. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8747. /* end confdefs.h. */
  8748. int foo (void) { return 0; }
  8749. _ACEOF
  8750. if ac_fn_c_try_link "$LINENO"; then :
  8751. lt_cv_irix_exported_symbol=yes
  8752. else
  8753. lt_cv_irix_exported_symbol=no
  8754. fi
  8755. rm -f core conftest.err conftest.$ac_objext \
  8756. conftest$ac_exeext conftest.$ac_ext
  8757. LDFLAGS=$save_LDFLAGS
  8758. fi
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8760. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8761. if test yes = "$lt_cv_irix_exported_symbol"; then
  8762. 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'
  8763. fi
  8764. link_all_deplibs=no
  8765. else
  8766. 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'
  8767. 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'
  8768. fi
  8769. archive_cmds_need_lc='no'
  8770. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8771. hardcode_libdir_separator=:
  8772. inherit_rpath=yes
  8773. link_all_deplibs=yes
  8774. ;;
  8775. linux*)
  8776. case $cc_basename in
  8777. tcc*)
  8778. # Fabrice Bellard et al's Tiny C Compiler
  8779. ld_shlibs=yes
  8780. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8781. ;;
  8782. esac
  8783. ;;
  8784. netbsd* | netbsdelf*-gnu)
  8785. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8786. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8787. else
  8788. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8789. fi
  8790. hardcode_libdir_flag_spec='-R$libdir'
  8791. hardcode_direct=yes
  8792. hardcode_shlibpath_var=no
  8793. ;;
  8794. newsos6)
  8795. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8796. hardcode_direct=yes
  8797. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8798. hardcode_libdir_separator=:
  8799. hardcode_shlibpath_var=no
  8800. ;;
  8801. *nto* | *qnx*)
  8802. ;;
  8803. openbsd* | bitrig*)
  8804. if test -f /usr/libexec/ld.so; then
  8805. hardcode_direct=yes
  8806. hardcode_shlibpath_var=no
  8807. hardcode_direct_absolute=yes
  8808. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8809. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8810. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8811. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8812. export_dynamic_flag_spec='$wl-E'
  8813. else
  8814. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8815. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8816. fi
  8817. else
  8818. ld_shlibs=no
  8819. fi
  8820. ;;
  8821. os2*)
  8822. hardcode_libdir_flag_spec='-L$libdir'
  8823. hardcode_minus_L=yes
  8824. allow_undefined_flag=unsupported
  8825. shrext_cmds=.dll
  8826. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8827. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8828. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8829. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8830. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8831. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8832. emximp -o $lib $output_objdir/$libname.def'
  8833. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8834. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8835. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8836. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8837. prefix_cmds="$SED"~
  8838. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8839. prefix_cmds="$prefix_cmds -e 1d";
  8840. fi~
  8841. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8842. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8843. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8844. emximp -o $lib $output_objdir/$libname.def'
  8845. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8846. enable_shared_with_static_runtimes=yes
  8847. ;;
  8848. osf3*)
  8849. if test yes = "$GCC"; then
  8850. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8851. 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'
  8852. else
  8853. allow_undefined_flag=' -expect_unresolved \*'
  8854. 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'
  8855. fi
  8856. archive_cmds_need_lc='no'
  8857. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8858. hardcode_libdir_separator=:
  8859. ;;
  8860. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8861. if test yes = "$GCC"; then
  8862. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8863. 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'
  8864. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8865. else
  8866. allow_undefined_flag=' -expect_unresolved \*'
  8867. 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'
  8868. 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~
  8869. $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'
  8870. # Both c and cxx compiler support -rpath directly
  8871. hardcode_libdir_flag_spec='-rpath $libdir'
  8872. fi
  8873. archive_cmds_need_lc='no'
  8874. hardcode_libdir_separator=:
  8875. ;;
  8876. solaris*)
  8877. no_undefined_flag=' -z defs'
  8878. if test yes = "$GCC"; then
  8879. wlarc='$wl'
  8880. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8881. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8882. $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'
  8883. else
  8884. case `$CC -V 2>&1` in
  8885. *"Compilers 5.0"*)
  8886. wlarc=''
  8887. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8888. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8889. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8890. ;;
  8891. *)
  8892. wlarc='$wl'
  8893. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8894. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8895. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8896. ;;
  8897. esac
  8898. fi
  8899. hardcode_libdir_flag_spec='-R$libdir'
  8900. hardcode_shlibpath_var=no
  8901. case $host_os in
  8902. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8903. *)
  8904. # The compiler driver will combine and reorder linker options,
  8905. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8906. # but is careful enough not to reorder.
  8907. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8908. if test yes = "$GCC"; then
  8909. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8910. else
  8911. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8912. fi
  8913. ;;
  8914. esac
  8915. link_all_deplibs=yes
  8916. ;;
  8917. sunos4*)
  8918. if test sequent = "$host_vendor"; then
  8919. # Use $CC to link under sequent, because it throws in some extra .o
  8920. # files that make .init and .fini sections work.
  8921. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. else
  8923. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8924. fi
  8925. hardcode_libdir_flag_spec='-L$libdir'
  8926. hardcode_direct=yes
  8927. hardcode_minus_L=yes
  8928. hardcode_shlibpath_var=no
  8929. ;;
  8930. sysv4)
  8931. case $host_vendor in
  8932. sni)
  8933. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8934. hardcode_direct=yes # is this really true???
  8935. ;;
  8936. siemens)
  8937. ## LD is ld it makes a PLAMLIB
  8938. ## CC just makes a GrossModule.
  8939. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8940. reload_cmds='$CC -r -o $output$reload_objs'
  8941. hardcode_direct=no
  8942. ;;
  8943. motorola)
  8944. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8945. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8946. ;;
  8947. esac
  8948. runpath_var='LD_RUN_PATH'
  8949. hardcode_shlibpath_var=no
  8950. ;;
  8951. sysv4.3*)
  8952. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8953. hardcode_shlibpath_var=no
  8954. export_dynamic_flag_spec='-Bexport'
  8955. ;;
  8956. sysv4*MP*)
  8957. if test -d /usr/nec; then
  8958. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8959. hardcode_shlibpath_var=no
  8960. runpath_var=LD_RUN_PATH
  8961. hardcode_runpath_var=yes
  8962. ld_shlibs=yes
  8963. fi
  8964. ;;
  8965. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8966. no_undefined_flag='$wl-z,text'
  8967. archive_cmds_need_lc=no
  8968. hardcode_shlibpath_var=no
  8969. runpath_var='LD_RUN_PATH'
  8970. if test yes = "$GCC"; then
  8971. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8972. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8973. else
  8974. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8975. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8976. fi
  8977. ;;
  8978. sysv5* | sco3.2v5* | sco5v6*)
  8979. # Note: We CANNOT use -z defs as we might desire, because we do not
  8980. # link with -lc, and that would cause any symbols used from libc to
  8981. # always be unresolved, which means just about no library would
  8982. # ever link correctly. If we're not using GNU ld we use -z text
  8983. # though, which does catch some bad symbols but isn't as heavy-handed
  8984. # as -z defs.
  8985. no_undefined_flag='$wl-z,text'
  8986. allow_undefined_flag='$wl-z,nodefs'
  8987. archive_cmds_need_lc=no
  8988. hardcode_shlibpath_var=no
  8989. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8990. hardcode_libdir_separator=':'
  8991. link_all_deplibs=yes
  8992. export_dynamic_flag_spec='$wl-Bexport'
  8993. runpath_var='LD_RUN_PATH'
  8994. if test yes = "$GCC"; then
  8995. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8996. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8997. else
  8998. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8999. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9000. fi
  9001. ;;
  9002. uts4*)
  9003. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9004. hardcode_libdir_flag_spec='-L$libdir'
  9005. hardcode_shlibpath_var=no
  9006. ;;
  9007. *)
  9008. ld_shlibs=no
  9009. ;;
  9010. esac
  9011. if test sni = "$host_vendor"; then
  9012. case $host in
  9013. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9014. export_dynamic_flag_spec='$wl-Blargedynsym'
  9015. ;;
  9016. esac
  9017. fi
  9018. fi
  9019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9020. $as_echo "$ld_shlibs" >&6; }
  9021. test no = "$ld_shlibs" && can_build_shared=no
  9022. with_gnu_ld=$with_gnu_ld
  9023. #
  9024. # Do we need to explicitly link libc?
  9025. #
  9026. case "x$archive_cmds_need_lc" in
  9027. x|xyes)
  9028. # Assume -lc should be added
  9029. archive_cmds_need_lc=yes
  9030. if test yes,yes = "$GCC,$enable_shared"; then
  9031. case $archive_cmds in
  9032. *'~'*)
  9033. # FIXME: we may have to deal with multi-command sequences.
  9034. ;;
  9035. '$CC '*)
  9036. # Test whether the compiler implicitly links with -lc since on some
  9037. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9038. # to ld, don't add -lc before -lgcc.
  9039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9040. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9041. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9042. $as_echo_n "(cached) " >&6
  9043. else
  9044. $RM conftest*
  9045. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9046. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9047. (eval $ac_compile) 2>&5
  9048. ac_status=$?
  9049. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9050. test $ac_status = 0; } 2>conftest.err; then
  9051. soname=conftest
  9052. lib=conftest
  9053. libobjs=conftest.$ac_objext
  9054. deplibs=
  9055. wl=$lt_prog_compiler_wl
  9056. pic_flag=$lt_prog_compiler_pic
  9057. compiler_flags=-v
  9058. linker_flags=-v
  9059. verstring=
  9060. output_objdir=.
  9061. libname=conftest
  9062. lt_save_allow_undefined_flag=$allow_undefined_flag
  9063. allow_undefined_flag=
  9064. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9065. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9066. ac_status=$?
  9067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9068. test $ac_status = 0; }
  9069. then
  9070. lt_cv_archive_cmds_need_lc=no
  9071. else
  9072. lt_cv_archive_cmds_need_lc=yes
  9073. fi
  9074. allow_undefined_flag=$lt_save_allow_undefined_flag
  9075. else
  9076. cat conftest.err 1>&5
  9077. fi
  9078. $RM conftest*
  9079. fi
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9081. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9082. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9083. ;;
  9084. esac
  9085. fi
  9086. ;;
  9087. esac
  9088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9089. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9090. if test yes = "$GCC"; then
  9091. case $host_os in
  9092. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9093. *) lt_awk_arg='/^libraries:/' ;;
  9094. esac
  9095. case $host_os in
  9096. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9097. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9098. esac
  9099. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9100. case $lt_search_path_spec in
  9101. *\;*)
  9102. # if the path contains ";" then we assume it to be the separator
  9103. # otherwise default to the standard path separator (i.e. ":") - it is
  9104. # assumed that no part of a normal pathname contains ";" but that should
  9105. # okay in the real world where ";" in dirpaths is itself problematic.
  9106. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9107. ;;
  9108. *)
  9109. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9110. ;;
  9111. esac
  9112. # Ok, now we have the path, separated by spaces, we can step through it
  9113. # and add multilib dir if necessary...
  9114. lt_tmp_lt_search_path_spec=
  9115. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9116. # ...but if some path component already ends with the multilib dir we assume
  9117. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9118. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9119. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9120. lt_multi_os_dir=
  9121. ;;
  9122. esac
  9123. for lt_sys_path in $lt_search_path_spec; do
  9124. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9125. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9126. elif test -n "$lt_multi_os_dir"; then
  9127. test -d "$lt_sys_path" && \
  9128. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9129. fi
  9130. done
  9131. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9132. BEGIN {RS = " "; FS = "/|\n";} {
  9133. lt_foo = "";
  9134. lt_count = 0;
  9135. for (lt_i = NF; lt_i > 0; lt_i--) {
  9136. if ($lt_i != "" && $lt_i != ".") {
  9137. if ($lt_i == "..") {
  9138. lt_count++;
  9139. } else {
  9140. if (lt_count == 0) {
  9141. lt_foo = "/" $lt_i lt_foo;
  9142. } else {
  9143. lt_count--;
  9144. }
  9145. }
  9146. }
  9147. }
  9148. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9149. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9150. }'`
  9151. # AWK program above erroneously prepends '/' to C:/dos/paths
  9152. # for these hosts.
  9153. case $host_os in
  9154. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9155. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9156. esac
  9157. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9158. else
  9159. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9160. fi
  9161. library_names_spec=
  9162. libname_spec='lib$name'
  9163. soname_spec=
  9164. shrext_cmds=.so
  9165. postinstall_cmds=
  9166. postuninstall_cmds=
  9167. finish_cmds=
  9168. finish_eval=
  9169. shlibpath_var=
  9170. shlibpath_overrides_runpath=unknown
  9171. version_type=none
  9172. dynamic_linker="$host_os ld.so"
  9173. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9174. need_lib_prefix=unknown
  9175. hardcode_into_libs=no
  9176. # when you set need_version to no, make sure it does not cause -set_version
  9177. # flags to be left without arguments
  9178. need_version=unknown
  9179. case $host_os in
  9180. aix3*)
  9181. version_type=linux # correct to gnu/linux during the next big refactor
  9182. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9183. shlibpath_var=LIBPATH
  9184. # AIX 3 has no versioning support, so we append a major version to the name.
  9185. soname_spec='$libname$release$shared_ext$major'
  9186. ;;
  9187. aix[4-9]*)
  9188. version_type=linux # correct to gnu/linux during the next big refactor
  9189. need_lib_prefix=no
  9190. need_version=no
  9191. hardcode_into_libs=yes
  9192. if test ia64 = "$host_cpu"; then
  9193. # AIX 5 supports IA64
  9194. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. else
  9197. # With GCC up to 2.95.x, collect2 would create an import file
  9198. # for dependence libraries. The import file would start with
  9199. # the line '#! .'. This would cause the generated library to
  9200. # depend on '.', always an invalid library. This was fixed in
  9201. # development snapshots of GCC prior to 3.0.
  9202. case $host_os in
  9203. aix4 | aix4.[01] | aix4.[01].*)
  9204. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9205. echo ' yes '
  9206. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9207. :
  9208. else
  9209. can_build_shared=no
  9210. fi
  9211. ;;
  9212. esac
  9213. # Using Import Files as archive members, it is possible to support
  9214. # filename-based versioning of shared library archives on AIX. While
  9215. # this would work for both with and without runtime linking, it will
  9216. # prevent static linking of such archives. So we do filename-based
  9217. # shared library versioning with .so extension only, which is used
  9218. # when both runtime linking and shared linking is enabled.
  9219. # Unfortunately, runtime linking may impact performance, so we do
  9220. # not want this to be the default eventually. Also, we use the
  9221. # versioned .so libs for executables only if there is the -brtl
  9222. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9223. # To allow for filename-based versioning support, we need to create
  9224. # libNAME.so.V as an archive file, containing:
  9225. # *) an Import File, referring to the versioned filename of the
  9226. # archive as well as the shared archive member, telling the
  9227. # bitwidth (32 or 64) of that shared object, and providing the
  9228. # list of exported symbols of that shared object, eventually
  9229. # decorated with the 'weak' keyword
  9230. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9231. # it being seen by the linker.
  9232. # At run time we better use the real file rather than another symlink,
  9233. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9234. case $with_aix_soname,$aix_use_runtimelinking in
  9235. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9236. # soname into executable. Probably we can add versioning support to
  9237. # collect2, so additional links can be useful in future.
  9238. aix,yes) # traditional libtool
  9239. dynamic_linker='AIX unversionable lib.so'
  9240. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9241. # instead of lib<name>.a to let people know that these are not
  9242. # typical AIX shared libraries.
  9243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9244. ;;
  9245. aix,no) # traditional AIX only
  9246. dynamic_linker='AIX lib.a(lib.so.V)'
  9247. # We preserve .a as extension for shared libraries through AIX4.2
  9248. # and later when we are not doing run time linking.
  9249. library_names_spec='$libname$release.a $libname.a'
  9250. soname_spec='$libname$release$shared_ext$major'
  9251. ;;
  9252. svr4,*) # full svr4 only
  9253. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9254. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9255. # We do not specify a path in Import Files, so LIBPATH fires.
  9256. shlibpath_overrides_runpath=yes
  9257. ;;
  9258. *,yes) # both, prefer svr4
  9259. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9260. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9261. # unpreferred sharedlib libNAME.a needs extra handling
  9262. 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"'
  9263. 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"'
  9264. # We do not specify a path in Import Files, so LIBPATH fires.
  9265. shlibpath_overrides_runpath=yes
  9266. ;;
  9267. *,no) # both, prefer aix
  9268. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9269. library_names_spec='$libname$release.a $libname.a'
  9270. soname_spec='$libname$release$shared_ext$major'
  9271. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9272. 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)'
  9273. 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"'
  9274. ;;
  9275. esac
  9276. shlibpath_var=LIBPATH
  9277. fi
  9278. ;;
  9279. amigaos*)
  9280. case $host_cpu in
  9281. powerpc)
  9282. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9283. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9285. ;;
  9286. m68k)
  9287. library_names_spec='$libname.ixlibrary $libname.a'
  9288. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9289. 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'
  9290. ;;
  9291. esac
  9292. ;;
  9293. beos*)
  9294. library_names_spec='$libname$shared_ext'
  9295. dynamic_linker="$host_os ld.so"
  9296. shlibpath_var=LIBRARY_PATH
  9297. ;;
  9298. bsdi[45]*)
  9299. version_type=linux # correct to gnu/linux during the next big refactor
  9300. need_version=no
  9301. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9302. soname_spec='$libname$release$shared_ext$major'
  9303. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9304. shlibpath_var=LD_LIBRARY_PATH
  9305. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9306. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9307. # the default ld.so.conf also contains /usr/contrib/lib and
  9308. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9309. # libtool to hard-code these into programs
  9310. ;;
  9311. cygwin* | mingw* | pw32* | cegcc*)
  9312. version_type=windows
  9313. shrext_cmds=.dll
  9314. need_version=no
  9315. need_lib_prefix=no
  9316. case $GCC,$cc_basename in
  9317. yes,*)
  9318. # gcc
  9319. library_names_spec='$libname.dll.a'
  9320. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9321. postinstall_cmds='base_file=`basename \$file`~
  9322. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9323. dldir=$destdir/`dirname \$dlpath`~
  9324. test -d \$dldir || mkdir -p \$dldir~
  9325. $install_prog $dir/$dlname \$dldir/$dlname~
  9326. chmod a+x \$dldir/$dlname~
  9327. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9328. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9329. fi'
  9330. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9331. dlpath=$dir/\$dldll~
  9332. $RM \$dlpath'
  9333. shlibpath_overrides_runpath=yes
  9334. case $host_os in
  9335. cygwin*)
  9336. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9337. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9338. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9339. ;;
  9340. mingw* | cegcc*)
  9341. # MinGW DLLs use traditional 'lib' prefix
  9342. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9343. ;;
  9344. pw32*)
  9345. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9346. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9347. ;;
  9348. esac
  9349. dynamic_linker='Win32 ld.exe'
  9350. ;;
  9351. *,cl*)
  9352. # Native MSVC
  9353. libname_spec='$name'
  9354. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9355. library_names_spec='$libname.dll.lib'
  9356. case $build_os in
  9357. mingw*)
  9358. sys_lib_search_path_spec=
  9359. lt_save_ifs=$IFS
  9360. IFS=';'
  9361. for lt_path in $LIB
  9362. do
  9363. IFS=$lt_save_ifs
  9364. # Let DOS variable expansion print the short 8.3 style file name.
  9365. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9366. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9367. done
  9368. IFS=$lt_save_ifs
  9369. # Convert to MSYS style.
  9370. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9371. ;;
  9372. cygwin*)
  9373. # Convert to unix form, then to dos form, then back to unix form
  9374. # but this time dos style (no spaces!) so that the unix form looks
  9375. # like /cygdrive/c/PROGRA~1:/cygdr...
  9376. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9377. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9378. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9379. ;;
  9380. *)
  9381. sys_lib_search_path_spec=$LIB
  9382. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9383. # It is most probably a Windows format PATH.
  9384. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9385. else
  9386. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9387. fi
  9388. # FIXME: find the short name or the path components, as spaces are
  9389. # common. (e.g. "Program Files" -> "PROGRA~1")
  9390. ;;
  9391. esac
  9392. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9393. postinstall_cmds='base_file=`basename \$file`~
  9394. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9395. dldir=$destdir/`dirname \$dlpath`~
  9396. test -d \$dldir || mkdir -p \$dldir~
  9397. $install_prog $dir/$dlname \$dldir/$dlname'
  9398. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9399. dlpath=$dir/\$dldll~
  9400. $RM \$dlpath'
  9401. shlibpath_overrides_runpath=yes
  9402. dynamic_linker='Win32 link.exe'
  9403. ;;
  9404. *)
  9405. # Assume MSVC wrapper
  9406. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9407. dynamic_linker='Win32 ld.exe'
  9408. ;;
  9409. esac
  9410. # FIXME: first we should search . and the directory the executable is in
  9411. shlibpath_var=PATH
  9412. ;;
  9413. darwin* | rhapsody*)
  9414. dynamic_linker="$host_os dyld"
  9415. version_type=darwin
  9416. need_lib_prefix=no
  9417. need_version=no
  9418. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9419. soname_spec='$libname$release$major$shared_ext'
  9420. shlibpath_overrides_runpath=yes
  9421. shlibpath_var=DYLD_LIBRARY_PATH
  9422. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9423. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9424. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9425. ;;
  9426. dgux*)
  9427. version_type=linux # correct to gnu/linux during the next big refactor
  9428. need_lib_prefix=no
  9429. need_version=no
  9430. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9431. soname_spec='$libname$release$shared_ext$major'
  9432. shlibpath_var=LD_LIBRARY_PATH
  9433. ;;
  9434. freebsd* | dragonfly*)
  9435. # DragonFly does not have aout. When/if they implement a new
  9436. # versioning mechanism, adjust this.
  9437. if test -x /usr/bin/objformat; then
  9438. objformat=`/usr/bin/objformat`
  9439. else
  9440. case $host_os in
  9441. freebsd[23].*) objformat=aout ;;
  9442. *) objformat=elf ;;
  9443. esac
  9444. fi
  9445. version_type=freebsd-$objformat
  9446. case $version_type in
  9447. freebsd-elf*)
  9448. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9449. soname_spec='$libname$release$shared_ext$major'
  9450. need_version=no
  9451. need_lib_prefix=no
  9452. ;;
  9453. freebsd-*)
  9454. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9455. need_version=yes
  9456. ;;
  9457. esac
  9458. shlibpath_var=LD_LIBRARY_PATH
  9459. case $host_os in
  9460. freebsd2.*)
  9461. shlibpath_overrides_runpath=yes
  9462. ;;
  9463. freebsd3.[01]* | freebsdelf3.[01]*)
  9464. shlibpath_overrides_runpath=yes
  9465. hardcode_into_libs=yes
  9466. ;;
  9467. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9468. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9469. shlibpath_overrides_runpath=no
  9470. hardcode_into_libs=yes
  9471. ;;
  9472. *) # from 4.6 on, and DragonFly
  9473. shlibpath_overrides_runpath=yes
  9474. hardcode_into_libs=yes
  9475. ;;
  9476. esac
  9477. ;;
  9478. haiku*)
  9479. version_type=linux # correct to gnu/linux during the next big refactor
  9480. need_lib_prefix=no
  9481. need_version=no
  9482. dynamic_linker="$host_os runtime_loader"
  9483. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9484. soname_spec='$libname$release$shared_ext$major'
  9485. shlibpath_var=LIBRARY_PATH
  9486. shlibpath_overrides_runpath=no
  9487. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9488. hardcode_into_libs=yes
  9489. ;;
  9490. hpux9* | hpux10* | hpux11*)
  9491. # Give a soname corresponding to the major version so that dld.sl refuses to
  9492. # link against other versions.
  9493. version_type=sunos
  9494. need_lib_prefix=no
  9495. need_version=no
  9496. case $host_cpu in
  9497. ia64*)
  9498. shrext_cmds='.so'
  9499. hardcode_into_libs=yes
  9500. dynamic_linker="$host_os dld.so"
  9501. shlibpath_var=LD_LIBRARY_PATH
  9502. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9503. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9504. soname_spec='$libname$release$shared_ext$major'
  9505. if test 32 = "$HPUX_IA64_MODE"; then
  9506. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9507. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9508. else
  9509. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9510. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9511. fi
  9512. ;;
  9513. hppa*64*)
  9514. shrext_cmds='.sl'
  9515. hardcode_into_libs=yes
  9516. dynamic_linker="$host_os dld.sl"
  9517. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9518. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9519. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9520. soname_spec='$libname$release$shared_ext$major'
  9521. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9522. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9523. ;;
  9524. *)
  9525. shrext_cmds='.sl'
  9526. dynamic_linker="$host_os dld.sl"
  9527. shlibpath_var=SHLIB_PATH
  9528. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9529. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9530. soname_spec='$libname$release$shared_ext$major'
  9531. ;;
  9532. esac
  9533. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9534. postinstall_cmds='chmod 555 $lib'
  9535. # or fails outright, so override atomically:
  9536. install_override_mode=555
  9537. ;;
  9538. interix[3-9]*)
  9539. version_type=linux # correct to gnu/linux during the next big refactor
  9540. need_lib_prefix=no
  9541. need_version=no
  9542. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9543. soname_spec='$libname$release$shared_ext$major'
  9544. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9545. shlibpath_var=LD_LIBRARY_PATH
  9546. shlibpath_overrides_runpath=no
  9547. hardcode_into_libs=yes
  9548. ;;
  9549. irix5* | irix6* | nonstopux*)
  9550. case $host_os in
  9551. nonstopux*) version_type=nonstopux ;;
  9552. *)
  9553. if test yes = "$lt_cv_prog_gnu_ld"; then
  9554. version_type=linux # correct to gnu/linux during the next big refactor
  9555. else
  9556. version_type=irix
  9557. fi ;;
  9558. esac
  9559. need_lib_prefix=no
  9560. need_version=no
  9561. soname_spec='$libname$release$shared_ext$major'
  9562. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9563. case $host_os in
  9564. irix5* | nonstopux*)
  9565. libsuff= shlibsuff=
  9566. ;;
  9567. *)
  9568. case $LD in # libtool.m4 will add one of these switches to LD
  9569. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9570. libsuff= shlibsuff= libmagic=32-bit;;
  9571. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9572. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9573. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9574. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9575. *) libsuff= shlibsuff= libmagic=never-match;;
  9576. esac
  9577. ;;
  9578. esac
  9579. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9580. shlibpath_overrides_runpath=no
  9581. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9582. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9583. hardcode_into_libs=yes
  9584. ;;
  9585. # No shared lib support for Linux oldld, aout, or coff.
  9586. linux*oldld* | linux*aout* | linux*coff*)
  9587. dynamic_linker=no
  9588. ;;
  9589. linux*android*)
  9590. version_type=none # Android doesn't support versioned libraries.
  9591. need_lib_prefix=no
  9592. need_version=no
  9593. library_names_spec='$libname$release$shared_ext'
  9594. soname_spec='$libname$release$shared_ext'
  9595. finish_cmds=
  9596. shlibpath_var=LD_LIBRARY_PATH
  9597. shlibpath_overrides_runpath=yes
  9598. # This implies no fast_install, which is unacceptable.
  9599. # Some rework will be needed to allow for fast_install
  9600. # before this can be enabled.
  9601. hardcode_into_libs=yes
  9602. dynamic_linker='Android linker'
  9603. # Don't embed -rpath directories since the linker doesn't support them.
  9604. hardcode_libdir_flag_spec='-L$libdir'
  9605. ;;
  9606. # This must be glibc/ELF.
  9607. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9608. version_type=linux # correct to gnu/linux during the next big refactor
  9609. need_lib_prefix=no
  9610. need_version=no
  9611. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9612. soname_spec='$libname$release$shared_ext$major'
  9613. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9614. shlibpath_var=LD_LIBRARY_PATH
  9615. shlibpath_overrides_runpath=no
  9616. # Some binutils ld are patched to set DT_RUNPATH
  9617. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9618. $as_echo_n "(cached) " >&6
  9619. else
  9620. lt_cv_shlibpath_overrides_runpath=no
  9621. save_LDFLAGS=$LDFLAGS
  9622. save_libdir=$libdir
  9623. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9624. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9626. /* end confdefs.h. */
  9627. int
  9628. main ()
  9629. {
  9630. ;
  9631. return 0;
  9632. }
  9633. _ACEOF
  9634. if ac_fn_c_try_link "$LINENO"; then :
  9635. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9636. lt_cv_shlibpath_overrides_runpath=yes
  9637. fi
  9638. fi
  9639. rm -f core conftest.err conftest.$ac_objext \
  9640. conftest$ac_exeext conftest.$ac_ext
  9641. LDFLAGS=$save_LDFLAGS
  9642. libdir=$save_libdir
  9643. fi
  9644. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9645. # This implies no fast_install, which is unacceptable.
  9646. # Some rework will be needed to allow for fast_install
  9647. # before this can be enabled.
  9648. hardcode_into_libs=yes
  9649. # Ideally, we could use ldconfig to report *all* directores which are
  9650. # searched for libraries, however this is still not possible. Aside from not
  9651. # being certain /sbin/ldconfig is available, command
  9652. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9653. # even though it is searched at run-time. Try to do the best guess by
  9654. # appending ld.so.conf contents (and includes) to the search path.
  9655. if test -f /etc/ld.so.conf; then
  9656. 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' ' '`
  9657. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9658. fi
  9659. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9660. # powerpc, because MkLinux only supported shared libraries with the
  9661. # GNU dynamic linker. Since this was broken with cross compilers,
  9662. # most powerpc-linux boxes support dynamic linking these days and
  9663. # people can always --disable-shared, the test was removed, and we
  9664. # assume the GNU/Linux dynamic linker is in use.
  9665. dynamic_linker='GNU/Linux ld.so'
  9666. ;;
  9667. netbsdelf*-gnu)
  9668. version_type=linux
  9669. need_lib_prefix=no
  9670. need_version=no
  9671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9672. soname_spec='${libname}${release}${shared_ext}$major'
  9673. shlibpath_var=LD_LIBRARY_PATH
  9674. shlibpath_overrides_runpath=no
  9675. hardcode_into_libs=yes
  9676. dynamic_linker='NetBSD ld.elf_so'
  9677. ;;
  9678. netbsd*)
  9679. version_type=sunos
  9680. need_lib_prefix=no
  9681. need_version=no
  9682. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9683. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9684. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9685. dynamic_linker='NetBSD (a.out) ld.so'
  9686. else
  9687. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9688. soname_spec='$libname$release$shared_ext$major'
  9689. dynamic_linker='NetBSD ld.elf_so'
  9690. fi
  9691. shlibpath_var=LD_LIBRARY_PATH
  9692. shlibpath_overrides_runpath=yes
  9693. hardcode_into_libs=yes
  9694. ;;
  9695. newsos6)
  9696. version_type=linux # correct to gnu/linux during the next big refactor
  9697. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9698. shlibpath_var=LD_LIBRARY_PATH
  9699. shlibpath_overrides_runpath=yes
  9700. ;;
  9701. *nto* | *qnx*)
  9702. version_type=qnx
  9703. need_lib_prefix=no
  9704. need_version=no
  9705. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9706. soname_spec='$libname$release$shared_ext$major'
  9707. shlibpath_var=LD_LIBRARY_PATH
  9708. shlibpath_overrides_runpath=no
  9709. hardcode_into_libs=yes
  9710. dynamic_linker='ldqnx.so'
  9711. ;;
  9712. openbsd* | bitrig*)
  9713. version_type=sunos
  9714. sys_lib_dlsearch_path_spec=/usr/lib
  9715. need_lib_prefix=no
  9716. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9717. need_version=no
  9718. else
  9719. need_version=yes
  9720. fi
  9721. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9722. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9723. shlibpath_var=LD_LIBRARY_PATH
  9724. shlibpath_overrides_runpath=yes
  9725. ;;
  9726. os2*)
  9727. libname_spec='$name'
  9728. version_type=windows
  9729. shrext_cmds=.dll
  9730. need_version=no
  9731. need_lib_prefix=no
  9732. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9733. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9734. v=$($ECHO $release$versuffix | tr -d .-);
  9735. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9736. $ECHO $n$v`$shared_ext'
  9737. library_names_spec='${libname}_dll.$libext'
  9738. dynamic_linker='OS/2 ld.exe'
  9739. shlibpath_var=BEGINLIBPATH
  9740. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9741. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9742. postinstall_cmds='base_file=`basename \$file`~
  9743. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9744. dldir=$destdir/`dirname \$dlpath`~
  9745. test -d \$dldir || mkdir -p \$dldir~
  9746. $install_prog $dir/$dlname \$dldir/$dlname~
  9747. chmod a+x \$dldir/$dlname~
  9748. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9749. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9750. fi'
  9751. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9752. dlpath=$dir/\$dldll~
  9753. $RM \$dlpath'
  9754. ;;
  9755. osf3* | osf4* | osf5*)
  9756. version_type=osf
  9757. need_lib_prefix=no
  9758. need_version=no
  9759. soname_spec='$libname$release$shared_ext$major'
  9760. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9761. shlibpath_var=LD_LIBRARY_PATH
  9762. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9763. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9764. ;;
  9765. rdos*)
  9766. dynamic_linker=no
  9767. ;;
  9768. solaris*)
  9769. version_type=linux # correct to gnu/linux during the next big refactor
  9770. need_lib_prefix=no
  9771. need_version=no
  9772. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9773. soname_spec='$libname$release$shared_ext$major'
  9774. shlibpath_var=LD_LIBRARY_PATH
  9775. shlibpath_overrides_runpath=yes
  9776. hardcode_into_libs=yes
  9777. # ldd complains unless libraries are executable
  9778. postinstall_cmds='chmod +x $lib'
  9779. ;;
  9780. sunos4*)
  9781. version_type=sunos
  9782. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9783. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9784. shlibpath_var=LD_LIBRARY_PATH
  9785. shlibpath_overrides_runpath=yes
  9786. if test yes = "$with_gnu_ld"; then
  9787. need_lib_prefix=no
  9788. fi
  9789. need_version=yes
  9790. ;;
  9791. sysv4 | sysv4.3*)
  9792. version_type=linux # correct to gnu/linux during the next big refactor
  9793. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9794. soname_spec='$libname$release$shared_ext$major'
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. case $host_vendor in
  9797. sni)
  9798. shlibpath_overrides_runpath=no
  9799. need_lib_prefix=no
  9800. runpath_var=LD_RUN_PATH
  9801. ;;
  9802. siemens)
  9803. need_lib_prefix=no
  9804. ;;
  9805. motorola)
  9806. need_lib_prefix=no
  9807. need_version=no
  9808. shlibpath_overrides_runpath=no
  9809. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9810. ;;
  9811. esac
  9812. ;;
  9813. sysv4*MP*)
  9814. if test -d /usr/nec; then
  9815. version_type=linux # correct to gnu/linux during the next big refactor
  9816. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9817. soname_spec='$libname$shared_ext.$major'
  9818. shlibpath_var=LD_LIBRARY_PATH
  9819. fi
  9820. ;;
  9821. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9822. version_type=sco
  9823. need_lib_prefix=no
  9824. need_version=no
  9825. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9826. soname_spec='$libname$release$shared_ext$major'
  9827. shlibpath_var=LD_LIBRARY_PATH
  9828. shlibpath_overrides_runpath=yes
  9829. hardcode_into_libs=yes
  9830. if test yes = "$with_gnu_ld"; then
  9831. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9832. else
  9833. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9834. case $host_os in
  9835. sco3.2v5*)
  9836. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9837. ;;
  9838. esac
  9839. fi
  9840. sys_lib_dlsearch_path_spec='/usr/lib'
  9841. ;;
  9842. tpf*)
  9843. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9844. version_type=linux # correct to gnu/linux during the next big refactor
  9845. need_lib_prefix=no
  9846. need_version=no
  9847. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9848. shlibpath_var=LD_LIBRARY_PATH
  9849. shlibpath_overrides_runpath=no
  9850. hardcode_into_libs=yes
  9851. ;;
  9852. uts4*)
  9853. version_type=linux # correct to gnu/linux during the next big refactor
  9854. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9855. soname_spec='$libname$release$shared_ext$major'
  9856. shlibpath_var=LD_LIBRARY_PATH
  9857. ;;
  9858. *)
  9859. dynamic_linker=no
  9860. ;;
  9861. esac
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9863. $as_echo "$dynamic_linker" >&6; }
  9864. test no = "$dynamic_linker" && can_build_shared=no
  9865. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9866. if test yes = "$GCC"; then
  9867. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9868. fi
  9869. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9870. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9871. fi
  9872. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9873. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9874. fi
  9875. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9876. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9877. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9878. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9879. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9880. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9882. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9883. hardcode_action=
  9884. if test -n "$hardcode_libdir_flag_spec" ||
  9885. test -n "$runpath_var" ||
  9886. test yes = "$hardcode_automatic"; then
  9887. # We can hardcode non-existent directories.
  9888. if test no != "$hardcode_direct" &&
  9889. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9890. # have to relink, otherwise we might link with an installed library
  9891. # when we should be linking with a yet-to-be-installed one
  9892. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9893. test no != "$hardcode_minus_L"; then
  9894. # Linking always hardcodes the temporary library directory.
  9895. hardcode_action=relink
  9896. else
  9897. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9898. hardcode_action=immediate
  9899. fi
  9900. else
  9901. # We cannot hardcode anything, or else we can only hardcode existing
  9902. # directories.
  9903. hardcode_action=unsupported
  9904. fi
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9906. $as_echo "$hardcode_action" >&6; }
  9907. if test relink = "$hardcode_action" ||
  9908. test yes = "$inherit_rpath"; then
  9909. # Fast installation is not supported
  9910. enable_fast_install=no
  9911. elif test yes = "$shlibpath_overrides_runpath" ||
  9912. test no = "$enable_shared"; then
  9913. # Fast installation is not necessary
  9914. enable_fast_install=needless
  9915. fi
  9916. if test yes != "$enable_dlopen"; then
  9917. enable_dlopen=unknown
  9918. enable_dlopen_self=unknown
  9919. enable_dlopen_self_static=unknown
  9920. else
  9921. lt_cv_dlopen=no
  9922. lt_cv_dlopen_libs=
  9923. case $host_os in
  9924. beos*)
  9925. lt_cv_dlopen=load_add_on
  9926. lt_cv_dlopen_libs=
  9927. lt_cv_dlopen_self=yes
  9928. ;;
  9929. mingw* | pw32* | cegcc*)
  9930. lt_cv_dlopen=LoadLibrary
  9931. lt_cv_dlopen_libs=
  9932. ;;
  9933. cygwin*)
  9934. lt_cv_dlopen=dlopen
  9935. lt_cv_dlopen_libs=
  9936. ;;
  9937. darwin*)
  9938. # if libdl is installed we need to link against it
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9940. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9941. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. ac_check_lib_save_LIBS=$LIBS
  9945. LIBS="-ldl $LIBS"
  9946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9947. /* end confdefs.h. */
  9948. /* Override any GCC internal prototype to avoid an error.
  9949. Use char because int might match the return type of a GCC
  9950. builtin and then its argument prototype would still apply. */
  9951. #ifdef __cplusplus
  9952. extern "C"
  9953. #endif
  9954. char dlopen ();
  9955. int
  9956. main ()
  9957. {
  9958. return dlopen ();
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. if ac_fn_c_try_link "$LINENO"; then :
  9964. ac_cv_lib_dl_dlopen=yes
  9965. else
  9966. ac_cv_lib_dl_dlopen=no
  9967. fi
  9968. rm -f core conftest.err conftest.$ac_objext \
  9969. conftest$ac_exeext conftest.$ac_ext
  9970. LIBS=$ac_check_lib_save_LIBS
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9973. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9974. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9975. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9976. else
  9977. lt_cv_dlopen=dyld
  9978. lt_cv_dlopen_libs=
  9979. lt_cv_dlopen_self=yes
  9980. fi
  9981. ;;
  9982. tpf*)
  9983. # Don't try to run any link tests for TPF. We know it's impossible
  9984. # because TPF is a cross-compiler, and we know how we open DSOs.
  9985. lt_cv_dlopen=dlopen
  9986. lt_cv_dlopen_libs=
  9987. lt_cv_dlopen_self=no
  9988. ;;
  9989. *)
  9990. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9991. if test "x$ac_cv_func_shl_load" = xyes; then :
  9992. lt_cv_dlopen=shl_load
  9993. else
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9995. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9996. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9997. $as_echo_n "(cached) " >&6
  9998. else
  9999. ac_check_lib_save_LIBS=$LIBS
  10000. LIBS="-ldld $LIBS"
  10001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10002. /* end confdefs.h. */
  10003. /* Override any GCC internal prototype to avoid an error.
  10004. Use char because int might match the return type of a GCC
  10005. builtin and then its argument prototype would still apply. */
  10006. #ifdef __cplusplus
  10007. extern "C"
  10008. #endif
  10009. char shl_load ();
  10010. int
  10011. main ()
  10012. {
  10013. return shl_load ();
  10014. ;
  10015. return 0;
  10016. }
  10017. _ACEOF
  10018. if ac_fn_c_try_link "$LINENO"; then :
  10019. ac_cv_lib_dld_shl_load=yes
  10020. else
  10021. ac_cv_lib_dld_shl_load=no
  10022. fi
  10023. rm -f core conftest.err conftest.$ac_objext \
  10024. conftest$ac_exeext conftest.$ac_ext
  10025. LIBS=$ac_check_lib_save_LIBS
  10026. fi
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10028. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10029. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10030. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10031. else
  10032. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10033. if test "x$ac_cv_func_dlopen" = xyes; then :
  10034. lt_cv_dlopen=dlopen
  10035. else
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10037. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10038. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10039. $as_echo_n "(cached) " >&6
  10040. else
  10041. ac_check_lib_save_LIBS=$LIBS
  10042. LIBS="-ldl $LIBS"
  10043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10044. /* end confdefs.h. */
  10045. /* Override any GCC internal prototype to avoid an error.
  10046. Use char because int might match the return type of a GCC
  10047. builtin and then its argument prototype would still apply. */
  10048. #ifdef __cplusplus
  10049. extern "C"
  10050. #endif
  10051. char dlopen ();
  10052. int
  10053. main ()
  10054. {
  10055. return dlopen ();
  10056. ;
  10057. return 0;
  10058. }
  10059. _ACEOF
  10060. if ac_fn_c_try_link "$LINENO"; then :
  10061. ac_cv_lib_dl_dlopen=yes
  10062. else
  10063. ac_cv_lib_dl_dlopen=no
  10064. fi
  10065. rm -f core conftest.err conftest.$ac_objext \
  10066. conftest$ac_exeext conftest.$ac_ext
  10067. LIBS=$ac_check_lib_save_LIBS
  10068. fi
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10070. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10071. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10072. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10073. else
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10075. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10076. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10077. $as_echo_n "(cached) " >&6
  10078. else
  10079. ac_check_lib_save_LIBS=$LIBS
  10080. LIBS="-lsvld $LIBS"
  10081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10082. /* end confdefs.h. */
  10083. /* Override any GCC internal prototype to avoid an error.
  10084. Use char because int might match the return type of a GCC
  10085. builtin and then its argument prototype would still apply. */
  10086. #ifdef __cplusplus
  10087. extern "C"
  10088. #endif
  10089. char dlopen ();
  10090. int
  10091. main ()
  10092. {
  10093. return dlopen ();
  10094. ;
  10095. return 0;
  10096. }
  10097. _ACEOF
  10098. if ac_fn_c_try_link "$LINENO"; then :
  10099. ac_cv_lib_svld_dlopen=yes
  10100. else
  10101. ac_cv_lib_svld_dlopen=no
  10102. fi
  10103. rm -f core conftest.err conftest.$ac_objext \
  10104. conftest$ac_exeext conftest.$ac_ext
  10105. LIBS=$ac_check_lib_save_LIBS
  10106. fi
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10108. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10109. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10110. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10111. else
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10113. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10114. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10115. $as_echo_n "(cached) " >&6
  10116. else
  10117. ac_check_lib_save_LIBS=$LIBS
  10118. LIBS="-ldld $LIBS"
  10119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10120. /* end confdefs.h. */
  10121. /* Override any GCC internal prototype to avoid an error.
  10122. Use char because int might match the return type of a GCC
  10123. builtin and then its argument prototype would still apply. */
  10124. #ifdef __cplusplus
  10125. extern "C"
  10126. #endif
  10127. char dld_link ();
  10128. int
  10129. main ()
  10130. {
  10131. return dld_link ();
  10132. ;
  10133. return 0;
  10134. }
  10135. _ACEOF
  10136. if ac_fn_c_try_link "$LINENO"; then :
  10137. ac_cv_lib_dld_dld_link=yes
  10138. else
  10139. ac_cv_lib_dld_dld_link=no
  10140. fi
  10141. rm -f core conftest.err conftest.$ac_objext \
  10142. conftest$ac_exeext conftest.$ac_ext
  10143. LIBS=$ac_check_lib_save_LIBS
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10146. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10147. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10148. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10149. fi
  10150. fi
  10151. fi
  10152. fi
  10153. fi
  10154. fi
  10155. ;;
  10156. esac
  10157. if test no = "$lt_cv_dlopen"; then
  10158. enable_dlopen=no
  10159. else
  10160. enable_dlopen=yes
  10161. fi
  10162. case $lt_cv_dlopen in
  10163. dlopen)
  10164. save_CPPFLAGS=$CPPFLAGS
  10165. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10166. save_LDFLAGS=$LDFLAGS
  10167. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10168. save_LIBS=$LIBS
  10169. LIBS="$lt_cv_dlopen_libs $LIBS"
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10171. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10172. if ${lt_cv_dlopen_self+:} false; then :
  10173. $as_echo_n "(cached) " >&6
  10174. else
  10175. if test yes = "$cross_compiling"; then :
  10176. lt_cv_dlopen_self=cross
  10177. else
  10178. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10179. lt_status=$lt_dlunknown
  10180. cat > conftest.$ac_ext <<_LT_EOF
  10181. #line $LINENO "configure"
  10182. #include "confdefs.h"
  10183. #if HAVE_DLFCN_H
  10184. #include <dlfcn.h>
  10185. #endif
  10186. #include <stdio.h>
  10187. #ifdef RTLD_GLOBAL
  10188. # define LT_DLGLOBAL RTLD_GLOBAL
  10189. #else
  10190. # ifdef DL_GLOBAL
  10191. # define LT_DLGLOBAL DL_GLOBAL
  10192. # else
  10193. # define LT_DLGLOBAL 0
  10194. # endif
  10195. #endif
  10196. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10197. find out it does not work in some platform. */
  10198. #ifndef LT_DLLAZY_OR_NOW
  10199. # ifdef RTLD_LAZY
  10200. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10201. # else
  10202. # ifdef DL_LAZY
  10203. # define LT_DLLAZY_OR_NOW DL_LAZY
  10204. # else
  10205. # ifdef RTLD_NOW
  10206. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10207. # else
  10208. # ifdef DL_NOW
  10209. # define LT_DLLAZY_OR_NOW DL_NOW
  10210. # else
  10211. # define LT_DLLAZY_OR_NOW 0
  10212. # endif
  10213. # endif
  10214. # endif
  10215. # endif
  10216. #endif
  10217. /* When -fvisibility=hidden is used, assume the code has been annotated
  10218. correspondingly for the symbols needed. */
  10219. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10220. int fnord () __attribute__((visibility("default")));
  10221. #endif
  10222. int fnord () { return 42; }
  10223. int main ()
  10224. {
  10225. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10226. int status = $lt_dlunknown;
  10227. if (self)
  10228. {
  10229. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10230. else
  10231. {
  10232. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10233. else puts (dlerror ());
  10234. }
  10235. /* dlclose (self); */
  10236. }
  10237. else
  10238. puts (dlerror ());
  10239. return status;
  10240. }
  10241. _LT_EOF
  10242. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10243. (eval $ac_link) 2>&5
  10244. ac_status=$?
  10245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10246. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10247. (./conftest; exit; ) >&5 2>/dev/null
  10248. lt_status=$?
  10249. case x$lt_status in
  10250. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10251. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10252. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10253. esac
  10254. else :
  10255. # compilation failed
  10256. lt_cv_dlopen_self=no
  10257. fi
  10258. fi
  10259. rm -fr conftest*
  10260. fi
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10262. $as_echo "$lt_cv_dlopen_self" >&6; }
  10263. if test yes = "$lt_cv_dlopen_self"; then
  10264. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10266. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10267. if ${lt_cv_dlopen_self_static+:} false; then :
  10268. $as_echo_n "(cached) " >&6
  10269. else
  10270. if test yes = "$cross_compiling"; then :
  10271. lt_cv_dlopen_self_static=cross
  10272. else
  10273. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10274. lt_status=$lt_dlunknown
  10275. cat > conftest.$ac_ext <<_LT_EOF
  10276. #line $LINENO "configure"
  10277. #include "confdefs.h"
  10278. #if HAVE_DLFCN_H
  10279. #include <dlfcn.h>
  10280. #endif
  10281. #include <stdio.h>
  10282. #ifdef RTLD_GLOBAL
  10283. # define LT_DLGLOBAL RTLD_GLOBAL
  10284. #else
  10285. # ifdef DL_GLOBAL
  10286. # define LT_DLGLOBAL DL_GLOBAL
  10287. # else
  10288. # define LT_DLGLOBAL 0
  10289. # endif
  10290. #endif
  10291. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10292. find out it does not work in some platform. */
  10293. #ifndef LT_DLLAZY_OR_NOW
  10294. # ifdef RTLD_LAZY
  10295. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10296. # else
  10297. # ifdef DL_LAZY
  10298. # define LT_DLLAZY_OR_NOW DL_LAZY
  10299. # else
  10300. # ifdef RTLD_NOW
  10301. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10302. # else
  10303. # ifdef DL_NOW
  10304. # define LT_DLLAZY_OR_NOW DL_NOW
  10305. # else
  10306. # define LT_DLLAZY_OR_NOW 0
  10307. # endif
  10308. # endif
  10309. # endif
  10310. # endif
  10311. #endif
  10312. /* When -fvisibility=hidden is used, assume the code has been annotated
  10313. correspondingly for the symbols needed. */
  10314. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10315. int fnord () __attribute__((visibility("default")));
  10316. #endif
  10317. int fnord () { return 42; }
  10318. int main ()
  10319. {
  10320. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10321. int status = $lt_dlunknown;
  10322. if (self)
  10323. {
  10324. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10325. else
  10326. {
  10327. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10328. else puts (dlerror ());
  10329. }
  10330. /* dlclose (self); */
  10331. }
  10332. else
  10333. puts (dlerror ());
  10334. return status;
  10335. }
  10336. _LT_EOF
  10337. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10338. (eval $ac_link) 2>&5
  10339. ac_status=$?
  10340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10341. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10342. (./conftest; exit; ) >&5 2>/dev/null
  10343. lt_status=$?
  10344. case x$lt_status in
  10345. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10346. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10347. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10348. esac
  10349. else :
  10350. # compilation failed
  10351. lt_cv_dlopen_self_static=no
  10352. fi
  10353. fi
  10354. rm -fr conftest*
  10355. fi
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10357. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10358. fi
  10359. CPPFLAGS=$save_CPPFLAGS
  10360. LDFLAGS=$save_LDFLAGS
  10361. LIBS=$save_LIBS
  10362. ;;
  10363. esac
  10364. case $lt_cv_dlopen_self in
  10365. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10366. *) enable_dlopen_self=unknown ;;
  10367. esac
  10368. case $lt_cv_dlopen_self_static in
  10369. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10370. *) enable_dlopen_self_static=unknown ;;
  10371. esac
  10372. fi
  10373. striplib=
  10374. old_striplib=
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10376. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10377. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10378. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10379. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10381. $as_echo "yes" >&6; }
  10382. else
  10383. # FIXME - insert some real tests, host_os isn't really good enough
  10384. case $host_os in
  10385. darwin*)
  10386. if test -n "$STRIP"; then
  10387. striplib="$STRIP -x"
  10388. old_striplib="$STRIP -S"
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10390. $as_echo "yes" >&6; }
  10391. else
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10393. $as_echo "no" >&6; }
  10394. fi
  10395. ;;
  10396. *)
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10398. $as_echo "no" >&6; }
  10399. ;;
  10400. esac
  10401. fi
  10402. # Report what library types will actually be built
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10404. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10406. $as_echo "$can_build_shared" >&6; }
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10408. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10409. test no = "$can_build_shared" && enable_shared=no
  10410. # On AIX, shared libraries and static libraries use the same namespace, and
  10411. # are all built from PIC.
  10412. case $host_os in
  10413. aix3*)
  10414. test yes = "$enable_shared" && enable_static=no
  10415. if test -n "$RANLIB"; then
  10416. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10417. postinstall_cmds='$RANLIB $lib'
  10418. fi
  10419. ;;
  10420. aix[4-9]*)
  10421. if test ia64 != "$host_cpu"; then
  10422. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10423. yes,aix,yes) ;; # shared object as lib.so file only
  10424. yes,svr4,*) ;; # shared object as lib.so archive member only
  10425. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10426. esac
  10427. fi
  10428. ;;
  10429. esac
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10431. $as_echo "$enable_shared" >&6; }
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10433. $as_echo_n "checking whether to build static libraries... " >&6; }
  10434. # Make sure either enable_shared or enable_static is yes.
  10435. test yes = "$enable_shared" || enable_static=yes
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10437. $as_echo "$enable_static" >&6; }
  10438. fi
  10439. ac_ext=c
  10440. ac_cpp='$CPP $CPPFLAGS'
  10441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10444. CC=$lt_save_CC
  10445. ac_config_commands="$ac_config_commands libtool"
  10446. # Only expand once:
  10447. # Check whether --enable-mpatrol was given.
  10448. if test "${enable_mpatrol+set}" = set; then :
  10449. enableval=$enable_mpatrol; enable_mpatrol=$enableval
  10450. else
  10451. enable_mpatrol="no"
  10452. fi
  10453. # Check whether --enable-gprof was given.
  10454. if test "${enable_gprof+set}" = set; then :
  10455. enableval=$enable_gprof; enable_gprof=$enableval
  10456. else
  10457. enable_gprof="no"
  10458. fi
  10459. # Check whether --enable-trace was given.
  10460. if test "${enable_trace+set}" = set; then :
  10461. enableval=$enable_trace; enable_trace=$enableval
  10462. else
  10463. enable_trace="yes"
  10464. fi
  10465. # Check whether --enable-minisize was given.
  10466. if test "${enable_minisize+set}" = set; then :
  10467. enableval=$enable_minisize; enable_minisize=$enableval
  10468. else
  10469. enable_minisize="no"
  10470. fi
  10471. # Check whether --enable-pthread was given.
  10472. if test "${enable_pthread+set}" = set; then :
  10473. enableval=$enable_pthread; enable_pthread=$enableval
  10474. else
  10475. enable_pthread="autodetect"
  10476. fi
  10477. # Check whether --enable-semaphore was given.
  10478. if test "${enable_semaphore+set}" = set; then :
  10479. enableval=$enable_semaphore; enable_semaphore=$enableval
  10480. else
  10481. enable_semaphore="autodetect"
  10482. fi
  10483. # Check whether --enable-gperf was given.
  10484. if test "${enable_gperf+set}" = set; then :
  10485. enableval=$enable_gperf; enable_gperf=$enableval
  10486. else
  10487. enable_gperf="no"
  10488. fi
  10489. # Check whether --enable-hashtable was given.
  10490. if test "${enable_hashtable+set}" = set; then :
  10491. enableval=$enable_hashtable; enable_hashtable=$enableval
  10492. else
  10493. enable_hashtable="no"
  10494. fi
  10495. # Check whether --enable-mt was given.
  10496. if test "${enable_mt+set}" = set; then :
  10497. enableval=$enable_mt; enable_mt=$enableval
  10498. else
  10499. enable_mt="yes"
  10500. fi
  10501. # Check whether --enable-test was given.
  10502. if test "${enable_test+set}" = set; then :
  10503. enableval=$enable_test; enable_test=$enableval
  10504. else
  10505. enable_test="no"
  10506. fi
  10507. if test "x$enable_mt" = "xyes"; then
  10508. if test "x$enable_pthread" = "xforce"; then
  10509. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  10510. else
  10511. ac_ext=c
  10512. ac_cpp='$CPP $CPPFLAGS'
  10513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10516. ax_pthread_ok=no
  10517. # We used to check for pthread.h first, but this fails if pthread.h
  10518. # requires special compiler flags (e.g. on True64 or Sequent).
  10519. # It gets checked for in the link test anyway.
  10520. # First of all, check if the user has set any of the PTHREAD_LIBS,
  10521. # etcetera environment variables, and if threads linking works using
  10522. # them:
  10523. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  10524. save_CFLAGS="$CFLAGS"
  10525. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  10526. save_LIBS="$LIBS"
  10527. LIBS="$PTHREAD_LIBS $LIBS"
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  10529. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  10530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10531. /* end confdefs.h. */
  10532. /* Override any GCC internal prototype to avoid an error.
  10533. Use char because int might match the return type of a GCC
  10534. builtin and then its argument prototype would still apply. */
  10535. #ifdef __cplusplus
  10536. extern "C"
  10537. #endif
  10538. char pthread_join ();
  10539. int
  10540. main ()
  10541. {
  10542. return pthread_join ();
  10543. ;
  10544. return 0;
  10545. }
  10546. _ACEOF
  10547. if ac_fn_c_try_link "$LINENO"; then :
  10548. ax_pthread_ok=yes
  10549. fi
  10550. rm -f core conftest.err conftest.$ac_objext \
  10551. conftest$ac_exeext conftest.$ac_ext
  10552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  10553. $as_echo "$ax_pthread_ok" >&6; }
  10554. if test x"$ax_pthread_ok" = xno; then
  10555. PTHREAD_LIBS=""
  10556. PTHREAD_CFLAGS=""
  10557. fi
  10558. LIBS="$save_LIBS"
  10559. CFLAGS="$save_CFLAGS"
  10560. fi
  10561. # We must check for the threads library under a number of different
  10562. # names; the ordering is very important because some systems
  10563. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  10564. # libraries is broken (non-POSIX).
  10565. # Create a list of thread flags to try. Items starting with a "-" are
  10566. # C compiler flags, and other items are library names, except for "none"
  10567. # which indicates that we try without any flags at all, and "pthread-config"
  10568. # which is a program returning the flags for the Pth emulation library.
  10569. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  10570. # The ordering *is* (sometimes) important. Some notes on the
  10571. # individual items follow:
  10572. # pthreads: AIX (must check this before -lpthread)
  10573. # none: in case threads are in libc; should be tried before -Kthread and
  10574. # other compiler flags to prevent continual compiler warnings
  10575. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  10576. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  10577. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  10578. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  10579. # -pthreads: Solaris/gcc
  10580. # -mthreads: Mingw32/gcc, Lynx/gcc
  10581. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  10582. # doesn't hurt to check since this sometimes defines pthreads too;
  10583. # also defines -D_REENTRANT)
  10584. # ... -mt is also the pthreads flag for HP/aCC
  10585. # pthread: Linux, etcetera
  10586. # --thread-safe: KAI C++
  10587. # pthread-config: use pthread-config program (for GNU Pth library)
  10588. case ${host_os} in
  10589. solaris*)
  10590. # On Solaris (at least, for some versions), libc contains stubbed
  10591. # (non-functional) versions of the pthreads routines, so link-based
  10592. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  10593. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  10594. # a function called by this macro, so we could check for that, but
  10595. # who knows whether they'll stub that too in a future libc.) So,
  10596. # we'll just look for -pthreads and -lpthread first:
  10597. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  10598. ;;
  10599. darwin*)
  10600. ax_pthread_flags="-pthread $ax_pthread_flags"
  10601. ;;
  10602. esac
  10603. # Clang doesn't consider unrecognized options an error unless we specify
  10604. # -Werror. We throw in some extra Clang-specific options to ensure that
  10605. # this doesn't happen for GCC, which also accepts -Werror.
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
  10607. $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
  10608. save_CFLAGS="$CFLAGS"
  10609. ax_pthread_extra_flags="-Werror"
  10610. CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
  10611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10612. /* end confdefs.h. */
  10613. int foo(void);
  10614. int
  10615. main ()
  10616. {
  10617. foo()
  10618. ;
  10619. return 0;
  10620. }
  10621. _ACEOF
  10622. if ac_fn_c_try_compile "$LINENO"; then :
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10624. $as_echo "yes" >&6; }
  10625. else
  10626. ax_pthread_extra_flags=
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10628. $as_echo "no" >&6; }
  10629. fi
  10630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10631. CFLAGS="$save_CFLAGS"
  10632. if test x"$ax_pthread_ok" = xno; then
  10633. for flag in $ax_pthread_flags; do
  10634. case $flag in
  10635. none)
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  10637. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  10638. ;;
  10639. -*)
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  10641. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  10642. PTHREAD_CFLAGS="$flag"
  10643. ;;
  10644. pthread-config)
  10645. # Extract the first word of "pthread-config", so it can be a program name with args.
  10646. set dummy pthread-config; ac_word=$2
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10648. $as_echo_n "checking for $ac_word... " >&6; }
  10649. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  10650. $as_echo_n "(cached) " >&6
  10651. else
  10652. if test -n "$ax_pthread_config"; then
  10653. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  10654. else
  10655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10656. for as_dir in $PATH
  10657. do
  10658. IFS=$as_save_IFS
  10659. test -z "$as_dir" && as_dir=.
  10660. for ac_exec_ext in '' $ac_executable_extensions; do
  10661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10662. ac_cv_prog_ax_pthread_config="yes"
  10663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10664. break 2
  10665. fi
  10666. done
  10667. done
  10668. IFS=$as_save_IFS
  10669. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  10670. fi
  10671. fi
  10672. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  10673. if test -n "$ax_pthread_config"; then
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  10675. $as_echo "$ax_pthread_config" >&6; }
  10676. else
  10677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10678. $as_echo "no" >&6; }
  10679. fi
  10680. if test x"$ax_pthread_config" = xno; then continue; fi
  10681. PTHREAD_CFLAGS="`pthread-config --cflags`"
  10682. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  10683. ;;
  10684. *)
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  10686. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  10687. PTHREAD_LIBS="-l$flag"
  10688. ;;
  10689. esac
  10690. save_LIBS="$LIBS"
  10691. save_CFLAGS="$CFLAGS"
  10692. LIBS="$PTHREAD_LIBS $LIBS"
  10693. CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
  10694. # Check for various functions. We must include pthread.h,
  10695. # since some functions may be macros. (On the Sequent, we
  10696. # need a special flag -Kthread to make this header compile.)
  10697. # We check for pthread_join because it is in -lpthread on IRIX
  10698. # while pthread_create is in libc. We check for pthread_attr_init
  10699. # due to DEC craziness with -lpthreads. We check for
  10700. # pthread_cleanup_push because it is one of the few pthread
  10701. # functions on Solaris that doesn't have a non-functional libc stub.
  10702. # We try pthread_create on general principles.
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. #include <pthread.h>
  10706. static void routine(void *a) { a = 0; }
  10707. static void *start_routine(void *a) { return a; }
  10708. int
  10709. main ()
  10710. {
  10711. pthread_t th; pthread_attr_t attr;
  10712. pthread_create(&th, 0, start_routine, 0);
  10713. pthread_join(th, 0);
  10714. pthread_attr_init(&attr);
  10715. pthread_cleanup_push(routine, 0);
  10716. pthread_cleanup_pop(0) /* ; */
  10717. ;
  10718. return 0;
  10719. }
  10720. _ACEOF
  10721. if ac_fn_c_try_link "$LINENO"; then :
  10722. ax_pthread_ok=yes
  10723. fi
  10724. rm -f core conftest.err conftest.$ac_objext \
  10725. conftest$ac_exeext conftest.$ac_ext
  10726. LIBS="$save_LIBS"
  10727. CFLAGS="$save_CFLAGS"
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  10729. $as_echo "$ax_pthread_ok" >&6; }
  10730. if test "x$ax_pthread_ok" = xyes; then
  10731. break;
  10732. fi
  10733. PTHREAD_LIBS=""
  10734. PTHREAD_CFLAGS=""
  10735. done
  10736. fi
  10737. # Various other checks:
  10738. if test "x$ax_pthread_ok" = xyes; then
  10739. save_LIBS="$LIBS"
  10740. LIBS="$PTHREAD_LIBS $LIBS"
  10741. save_CFLAGS="$CFLAGS"
  10742. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  10743. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  10745. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  10746. attr_name=unknown
  10747. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  10748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10749. /* end confdefs.h. */
  10750. #include <pthread.h>
  10751. int
  10752. main ()
  10753. {
  10754. int attr = $attr; return attr /* ; */
  10755. ;
  10756. return 0;
  10757. }
  10758. _ACEOF
  10759. if ac_fn_c_try_link "$LINENO"; then :
  10760. attr_name=$attr; break
  10761. fi
  10762. rm -f core conftest.err conftest.$ac_objext \
  10763. conftest$ac_exeext conftest.$ac_ext
  10764. done
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  10766. $as_echo "$attr_name" >&6; }
  10767. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  10768. cat >>confdefs.h <<_ACEOF
  10769. #define PTHREAD_CREATE_JOINABLE $attr_name
  10770. _ACEOF
  10771. fi
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  10773. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  10774. flag=no
  10775. case ${host_os} in
  10776. aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  10777. osf* | hpux*) flag="-D_REENTRANT";;
  10778. solaris*)
  10779. if test "$GCC" = "yes"; then
  10780. flag="-D_REENTRANT"
  10781. else
  10782. # TODO: What about Clang on Solaris?
  10783. flag="-mt -D_REENTRANT"
  10784. fi
  10785. ;;
  10786. esac
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
  10788. $as_echo "$flag" >&6; }
  10789. if test "x$flag" != xno; then
  10790. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  10791. fi
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  10793. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  10794. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  10795. $as_echo_n "(cached) " >&6
  10796. else
  10797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10798. /* end confdefs.h. */
  10799. #include <pthread.h>
  10800. int
  10801. main ()
  10802. {
  10803. int i = PTHREAD_PRIO_INHERIT;
  10804. ;
  10805. return 0;
  10806. }
  10807. _ACEOF
  10808. if ac_fn_c_try_link "$LINENO"; then :
  10809. ax_cv_PTHREAD_PRIO_INHERIT=yes
  10810. else
  10811. ax_cv_PTHREAD_PRIO_INHERIT=no
  10812. fi
  10813. rm -f core conftest.err conftest.$ac_objext \
  10814. conftest$ac_exeext conftest.$ac_ext
  10815. fi
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  10817. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  10818. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
  10819. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  10820. fi
  10821. LIBS="$save_LIBS"
  10822. CFLAGS="$save_CFLAGS"
  10823. # More AIX lossage: compile with *_r variant
  10824. if test "x$GCC" != xyes; then
  10825. case $host_os in
  10826. aix*)
  10827. case "x/$CC" in #(
  10828. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  10829. #handle absolute path differently from PATH based program lookup
  10830. case "x$CC" in #(
  10831. x/*) :
  10832. if as_fn_executable_p ${CC}_r; then :
  10833. PTHREAD_CC="${CC}_r"
  10834. fi ;; #(
  10835. *) :
  10836. for ac_prog in ${CC}_r
  10837. do
  10838. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10839. set dummy $ac_prog; ac_word=$2
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10841. $as_echo_n "checking for $ac_word... " >&6; }
  10842. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  10843. $as_echo_n "(cached) " >&6
  10844. else
  10845. if test -n "$PTHREAD_CC"; then
  10846. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  10847. else
  10848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10849. for as_dir in $PATH
  10850. do
  10851. IFS=$as_save_IFS
  10852. test -z "$as_dir" && as_dir=.
  10853. for ac_exec_ext in '' $ac_executable_extensions; do
  10854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10855. ac_cv_prog_PTHREAD_CC="$ac_prog"
  10856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10857. break 2
  10858. fi
  10859. done
  10860. done
  10861. IFS=$as_save_IFS
  10862. fi
  10863. fi
  10864. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  10865. if test -n "$PTHREAD_CC"; then
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  10867. $as_echo "$PTHREAD_CC" >&6; }
  10868. else
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10870. $as_echo "no" >&6; }
  10871. fi
  10872. test -n "$PTHREAD_CC" && break
  10873. done
  10874. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  10875. ;;
  10876. esac ;; #(
  10877. *) :
  10878. ;;
  10879. esac
  10880. ;;
  10881. esac
  10882. fi
  10883. fi
  10884. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  10885. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  10886. if test x"$ax_pthread_ok" = xyes; then
  10887. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  10888. :
  10889. else
  10890. ax_pthread_ok=no
  10891. as_fn_error $? "Could not configure pthreads support -use --enable-mt=no to disable or --enable-pthread=force to define HAVE_PTHREAD" "$LINENO" 5
  10892. fi
  10893. ac_ext=c
  10894. ac_cpp='$CPP $CPPFLAGS'
  10895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10898. LIBS="$PTHREAD_LIBS $LIBS"
  10899. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  10900. CC="$PTHREAD_CC"
  10901. fi
  10902. else
  10903. SIP_FSM_FLAGS="-DOSIP_MONOTHREAD"
  10904. fi
  10905. if test x$enable_mt = xyes; then
  10906. BUILD_MT_TRUE=
  10907. BUILD_MT_FALSE='#'
  10908. else
  10909. BUILD_MT_TRUE='#'
  10910. BUILD_MT_FALSE=
  10911. fi
  10912. if test "x$enable_gperf" = "xyes"; then
  10913. SIP_PARSER_FLAGS="$SIP_PARSER_FLAGS -DUSE_GPERF"
  10914. fi
  10915. if test "x$enable_test" != "xno"; then
  10916. COMPILE_TESTS_TRUE=
  10917. COMPILE_TESTS_FALSE='#'
  10918. else
  10919. COMPILE_TESTS_TRUE='#'
  10920. COMPILE_TESTS_FALSE=
  10921. fi
  10922. if test "x$enable_semaphore" = "xsemaphore"; then
  10923. $as_echo "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
  10924. elif test "x$enable_semaphore" = "xsysv"; then
  10925. $as_echo "#define HAVE_SYS_SEM_H 1" >>confdefs.h
  10926. else
  10927. for ac_header in semaphore.h
  10928. do :
  10929. ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
  10930. if test "x$ac_cv_header_semaphore_h" = xyes; then :
  10931. cat >>confdefs.h <<_ACEOF
  10932. #define HAVE_SEMAPHORE_H 1
  10933. _ACEOF
  10934. fi
  10935. done
  10936. for ac_header in sys/sem.h
  10937. do :
  10938. ac_fn_c_check_header_mongrel "$LINENO" "sys/sem.h" "ac_cv_header_sys_sem_h" "$ac_includes_default"
  10939. if test "x$ac_cv_header_sys_sem_h" = xyes; then :
  10940. cat >>confdefs.h <<_ACEOF
  10941. #define HAVE_SYS_SEM_H 1
  10942. _ACEOF
  10943. fi
  10944. done
  10945. fi
  10946. if test "x$host_cpu" = "x$build_cpu"; then
  10947. case $OS in
  10948. linux*)
  10949. SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS"
  10950. ;;
  10951. irix*)
  10952. ;;
  10953. hpux* | hp-ux*)
  10954. ;;
  10955. aix*)
  10956. ;;
  10957. osf*)
  10958. ;;
  10959. sunos*)
  10960. ;;
  10961. darwin*)
  10962. ;;
  10963. *)
  10964. ;;
  10965. esac
  10966. else
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: Cross compiling osip." >&5
  10968. $as_echo "$as_me: Cross compiling osip." >&6;}
  10969. fi
  10970. case $host_cpu in
  10971. arc*)
  10972. ;;
  10973. *)
  10974. ;;
  10975. esac
  10976. if test "x$enable_hashtable" = "xyes"; then
  10977. for ac_header in dict/dict.h
  10978. do :
  10979. ac_fn_c_check_header_mongrel "$LINENO" "dict/dict.h" "ac_cv_header_dict_dict_h" "$ac_includes_default"
  10980. if test "x$ac_cv_header_dict_dict_h" = xyes; then :
  10981. cat >>confdefs.h <<_ACEOF
  10982. #define HAVE_DICT_DICT_H 1
  10983. _ACEOF
  10984. $as_echo "#define HAVE_DICT_DICT_H /**/" >>confdefs.h
  10985. else
  10986. as_fn_error $? "libdict library not installed. Please install or use --disable-hashtable" "$LINENO" 5
  10987. fi
  10988. done
  10989. EXTRA_LIB="$EXTRA_LIB -ldict"
  10990. fi
  10991. if test "x$enable_trace" = "xyes"; then
  10992. SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -DENABLE_TRACE"
  10993. fi
  10994. if test "x$enable_mpatrol" = "xyes"; then
  10995. SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -DENABLE_MPATROL"
  10996. EXTRA_LIB="$EXTRA_LIB -lmpatrolmt -lelf -lpthread"
  10997. fi
  10998. if test "x$enable_gprof" = "xyes"; then
  10999. SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -pg"
  11000. EXTRA_LIB="$EXTRA_LIB -lc_p"
  11001. fi
  11002. if test "x$enable_minisize" = "xyes"; then
  11003. SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -DMINISIZE"
  11004. fi
  11005. if test x$enable_minisize = xno; then
  11006. BUILD_MAXSIZE_TRUE=
  11007. BUILD_MAXSIZE_FALSE='#'
  11008. else
  11009. BUILD_MAXSIZE_TRUE='#'
  11010. BUILD_MAXSIZE_FALSE=
  11011. fi
  11012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_open in -lposix4" >&5
  11013. $as_echo_n "checking for sem_open in -lposix4... " >&6; }
  11014. if ${ac_cv_lib_posix4_sem_open+:} false; then :
  11015. $as_echo_n "(cached) " >&6
  11016. else
  11017. ac_check_lib_save_LIBS=$LIBS
  11018. LIBS="-lposix4 $LIBS"
  11019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11020. /* end confdefs.h. */
  11021. /* Override any GCC internal prototype to avoid an error.
  11022. Use char because int might match the return type of a GCC
  11023. builtin and then its argument prototype would still apply. */
  11024. #ifdef __cplusplus
  11025. extern "C"
  11026. #endif
  11027. char sem_open ();
  11028. int
  11029. main ()
  11030. {
  11031. return sem_open ();
  11032. ;
  11033. return 0;
  11034. }
  11035. _ACEOF
  11036. if ac_fn_c_try_link "$LINENO"; then :
  11037. ac_cv_lib_posix4_sem_open=yes
  11038. else
  11039. ac_cv_lib_posix4_sem_open=no
  11040. fi
  11041. rm -f core conftest.err conftest.$ac_objext \
  11042. conftest$ac_exeext conftest.$ac_ext
  11043. LIBS=$ac_check_lib_save_LIBS
  11044. fi
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_open" >&5
  11046. $as_echo "$ac_cv_lib_posix4_sem_open" >&6; }
  11047. if test "x$ac_cv_lib_posix4_sem_open" = xyes; then :
  11048. FSM_LIB="$FSM_LIB -lposix4 -mt"
  11049. fi
  11050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nis_add in -lnsl" >&5
  11051. $as_echo_n "checking for nis_add in -lnsl... " >&6; }
  11052. if ${ac_cv_lib_nsl_nis_add+:} false; then :
  11053. $as_echo_n "(cached) " >&6
  11054. else
  11055. ac_check_lib_save_LIBS=$LIBS
  11056. LIBS="-lnsl $LIBS"
  11057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11058. /* end confdefs.h. */
  11059. /* Override any GCC internal prototype to avoid an error.
  11060. Use char because int might match the return type of a GCC
  11061. builtin and then its argument prototype would still apply. */
  11062. #ifdef __cplusplus
  11063. extern "C"
  11064. #endif
  11065. char nis_add ();
  11066. int
  11067. main ()
  11068. {
  11069. return nis_add ();
  11070. ;
  11071. return 0;
  11072. }
  11073. _ACEOF
  11074. if ac_fn_c_try_link "$LINENO"; then :
  11075. ac_cv_lib_nsl_nis_add=yes
  11076. else
  11077. ac_cv_lib_nsl_nis_add=no
  11078. fi
  11079. rm -f core conftest.err conftest.$ac_objext \
  11080. conftest$ac_exeext conftest.$ac_ext
  11081. LIBS=$ac_check_lib_save_LIBS
  11082. fi
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_nis_add" >&5
  11084. $as_echo "$ac_cv_lib_nsl_nis_add" >&6; }
  11085. if test "x$ac_cv_lib_nsl_nis_add" = xyes; then :
  11086. FSM_LIB="$FSM_LIB -lnsl"
  11087. fi
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto in -lsocket" >&5
  11089. $as_echo_n "checking for sendto in -lsocket... " >&6; }
  11090. if ${ac_cv_lib_socket_sendto+:} false; then :
  11091. $as_echo_n "(cached) " >&6
  11092. else
  11093. ac_check_lib_save_LIBS=$LIBS
  11094. LIBS="-lsocket $LIBS"
  11095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11096. /* end confdefs.h. */
  11097. /* Override any GCC internal prototype to avoid an error.
  11098. Use char because int might match the return type of a GCC
  11099. builtin and then its argument prototype would still apply. */
  11100. #ifdef __cplusplus
  11101. extern "C"
  11102. #endif
  11103. char sendto ();
  11104. int
  11105. main ()
  11106. {
  11107. return sendto ();
  11108. ;
  11109. return 0;
  11110. }
  11111. _ACEOF
  11112. if ac_fn_c_try_link "$LINENO"; then :
  11113. ac_cv_lib_socket_sendto=yes
  11114. else
  11115. ac_cv_lib_socket_sendto=no
  11116. fi
  11117. rm -f core conftest.err conftest.$ac_objext \
  11118. conftest$ac_exeext conftest.$ac_ext
  11119. LIBS=$ac_check_lib_save_LIBS
  11120. fi
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_sendto" >&5
  11122. $as_echo "$ac_cv_lib_socket_sendto" >&6; }
  11123. if test "x$ac_cv_lib_socket_sendto" = xyes; then :
  11124. FSM_LIB="$FSM_LIB -lsocket"
  11125. fi
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrand48 in -lc" >&5
  11127. $as_echo_n "checking for lrand48 in -lc... " >&6; }
  11128. if ${ac_cv_lib_c_lrand48+:} false; then :
  11129. $as_echo_n "(cached) " >&6
  11130. else
  11131. ac_check_lib_save_LIBS=$LIBS
  11132. LIBS="-lc $LIBS"
  11133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11134. /* end confdefs.h. */
  11135. /* Override any GCC internal prototype to avoid an error.
  11136. Use char because int might match the return type of a GCC
  11137. builtin and then its argument prototype would still apply. */
  11138. #ifdef __cplusplus
  11139. extern "C"
  11140. #endif
  11141. char lrand48 ();
  11142. int
  11143. main ()
  11144. {
  11145. return lrand48 ();
  11146. ;
  11147. return 0;
  11148. }
  11149. _ACEOF
  11150. if ac_fn_c_try_link "$LINENO"; then :
  11151. ac_cv_lib_c_lrand48=yes
  11152. else
  11153. ac_cv_lib_c_lrand48=no
  11154. fi
  11155. rm -f core conftest.err conftest.$ac_objext \
  11156. conftest$ac_exeext conftest.$ac_ext
  11157. LIBS=$ac_check_lib_save_LIBS
  11158. fi
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lrand48" >&5
  11160. $as_echo "$ac_cv_lib_c_lrand48" >&6; }
  11161. if test "x$ac_cv_lib_c_lrand48" = xyes; then :
  11162. $as_echo "#define HAVE_LRAND48 /**/" >>confdefs.h
  11163. fi
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  11165. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  11166. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  11167. $as_echo_n "(cached) " >&6
  11168. else
  11169. ac_check_lib_save_LIBS=$LIBS
  11170. LIBS="-lrt $LIBS"
  11171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11172. /* end confdefs.h. */
  11173. /* Override any GCC internal prototype to avoid an error.
  11174. Use char because int might match the return type of a GCC
  11175. builtin and then its argument prototype would still apply. */
  11176. #ifdef __cplusplus
  11177. extern "C"
  11178. #endif
  11179. char clock_gettime ();
  11180. int
  11181. main ()
  11182. {
  11183. return clock_gettime ();
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. if ac_fn_c_try_link "$LINENO"; then :
  11189. ac_cv_lib_rt_clock_gettime=yes
  11190. else
  11191. ac_cv_lib_rt_clock_gettime=no
  11192. fi
  11193. rm -f core conftest.err conftest.$ac_objext \
  11194. conftest$ac_exeext conftest.$ac_ext
  11195. LIBS=$ac_check_lib_save_LIBS
  11196. fi
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  11198. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  11199. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  11200. FSM_LIB="$FSM_LIB -lrt"
  11201. fi
  11202. for ac_func in localtime
  11203. do :
  11204. ac_fn_c_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
  11205. if test "x$ac_cv_func_localtime" = xyes; then :
  11206. cat >>confdefs.h <<_ACEOF
  11207. #define HAVE_LOCALTIME 1
  11208. _ACEOF
  11209. fi
  11210. done
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall works" >&5
  11212. $as_echo_n "checking whether -Wall works... " >&6; }
  11213. if ${Wall_cv_flag+:} false; then :
  11214. $as_echo_n "(cached) " >&6
  11215. else
  11216. saved_CPPFLAGS=$CPPFLAGS
  11217. CPPFLAGS="-Wall"
  11218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11219. /* end confdefs.h. */
  11220. int
  11221. main ()
  11222. {
  11223. ;
  11224. return 0;
  11225. }
  11226. _ACEOF
  11227. if ac_fn_c_try_compile "$LINENO"; then :
  11228. Wall_cv_flag=yes
  11229. else
  11230. Wall_cv_flag=no
  11231. fi
  11232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11233. CPPFLAGS=$saved_CPPFLAGS
  11234. fi
  11235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wall_cv_flag" >&5
  11236. $as_echo "$Wall_cv_flag" >&6; }
  11237. if test "x$Wall_cv_flag" = xyes; then
  11238. CPPFLAGS="$CPPFLAGS -Wall"
  11239. fi
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcast-align works" >&5
  11241. $as_echo_n "checking whether -Wcast-align works... " >&6; }
  11242. if ${Wcast_align_cv_flag+:} false; then :
  11243. $as_echo_n "(cached) " >&6
  11244. else
  11245. saved_CPPFLAGS=$CPPFLAGS
  11246. CPPFLAGS="-Wcast-align"
  11247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11248. /* end confdefs.h. */
  11249. int
  11250. main ()
  11251. {
  11252. ;
  11253. return 0;
  11254. }
  11255. _ACEOF
  11256. if ac_fn_c_try_compile "$LINENO"; then :
  11257. Wcast_align_cv_flag=yes
  11258. else
  11259. Wcast_align_cv_flag=no
  11260. fi
  11261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11262. CPPFLAGS=$saved_CPPFLAGS
  11263. fi
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wcast_align_cv_flag" >&5
  11265. $as_echo "$Wcast_align_cv_flag" >&6; }
  11266. if test "x$Wcast_align_cv_flag" = xyes; then
  11267. CPPFLAGS="$CPPFLAGS -Wcast-align"
  11268. fi
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wchar-subscripts works" >&5
  11270. $as_echo_n "checking whether -Wchar-subscripts works... " >&6; }
  11271. if ${Wchar_subscripts_cv_flag+:} false; then :
  11272. $as_echo_n "(cached) " >&6
  11273. else
  11274. saved_CPPFLAGS=$CPPFLAGS
  11275. CPPFLAGS="-Wchar-subscripts"
  11276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11277. /* end confdefs.h. */
  11278. int
  11279. main ()
  11280. {
  11281. ;
  11282. return 0;
  11283. }
  11284. _ACEOF
  11285. if ac_fn_c_try_compile "$LINENO"; then :
  11286. Wchar_subscripts_cv_flag=yes
  11287. else
  11288. Wchar_subscripts_cv_flag=no
  11289. fi
  11290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11291. CPPFLAGS=$saved_CPPFLAGS
  11292. fi
  11293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wchar_subscripts_cv_flag" >&5
  11294. $as_echo "$Wchar_subscripts_cv_flag" >&6; }
  11295. if test "x$Wchar_subscripts_cv_flag" = xyes; then
  11296. CPPFLAGS="$CPPFLAGS -Wchar-subscripts"
  11297. fi
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat works" >&5
  11299. $as_echo_n "checking whether -Wformat works... " >&6; }
  11300. if ${Wformat_cv_flag+:} false; then :
  11301. $as_echo_n "(cached) " >&6
  11302. else
  11303. saved_CPPFLAGS=$CPPFLAGS
  11304. CPPFLAGS="-Wformat"
  11305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11306. /* end confdefs.h. */
  11307. int
  11308. main ()
  11309. {
  11310. ;
  11311. return 0;
  11312. }
  11313. _ACEOF
  11314. if ac_fn_c_try_compile "$LINENO"; then :
  11315. Wformat_cv_flag=yes
  11316. else
  11317. Wformat_cv_flag=no
  11318. fi
  11319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11320. CPPFLAGS=$saved_CPPFLAGS
  11321. fi
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wformat_cv_flag" >&5
  11323. $as_echo "$Wformat_cv_flag" >&6; }
  11324. if test "x$Wformat_cv_flag" = xyes; then
  11325. CPPFLAGS="$CPPFLAGS -Wformat"
  11326. fi
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Winline works" >&5
  11328. $as_echo_n "checking whether -Winline works... " >&6; }
  11329. if ${Winline_cv_flag+:} false; then :
  11330. $as_echo_n "(cached) " >&6
  11331. else
  11332. saved_CPPFLAGS=$CPPFLAGS
  11333. CPPFLAGS="-Winline"
  11334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11335. /* end confdefs.h. */
  11336. int
  11337. main ()
  11338. {
  11339. ;
  11340. return 0;
  11341. }
  11342. _ACEOF
  11343. if ac_fn_c_try_compile "$LINENO"; then :
  11344. Winline_cv_flag=yes
  11345. else
  11346. Winline_cv_flag=no
  11347. fi
  11348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11349. CPPFLAGS=$saved_CPPFLAGS
  11350. fi
  11351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Winline_cv_flag" >&5
  11352. $as_echo "$Winline_cv_flag" >&6; }
  11353. if test "x$Winline_cv_flag" = xyes; then
  11354. CPPFLAGS="$CPPFLAGS -Winline"
  11355. fi
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-declarations works" >&5
  11357. $as_echo_n "checking whether -Wmissing-declarations works... " >&6; }
  11358. if ${Wmissing_declarations_cv_flag+:} false; then :
  11359. $as_echo_n "(cached) " >&6
  11360. else
  11361. saved_CPPFLAGS=$CPPFLAGS
  11362. CPPFLAGS="-Wmissing-declarations"
  11363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11364. /* end confdefs.h. */
  11365. int
  11366. main ()
  11367. {
  11368. ;
  11369. return 0;
  11370. }
  11371. _ACEOF
  11372. if ac_fn_c_try_compile "$LINENO"; then :
  11373. Wmissing_declarations_cv_flag=yes
  11374. else
  11375. Wmissing_declarations_cv_flag=no
  11376. fi
  11377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11378. CPPFLAGS=$saved_CPPFLAGS
  11379. fi
  11380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wmissing_declarations_cv_flag" >&5
  11381. $as_echo "$Wmissing_declarations_cv_flag" >&6; }
  11382. if test "x$Wmissing_declarations_cv_flag" = xyes; then
  11383. CPPFLAGS="$CPPFLAGS -Wmissing-declarations"
  11384. fi
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes works" >&5
  11386. $as_echo_n "checking whether -Wmissing-prototypes works... " >&6; }
  11387. if ${Wmissing_prototypes_cv_flag+:} false; then :
  11388. $as_echo_n "(cached) " >&6
  11389. else
  11390. saved_CPPFLAGS=$CPPFLAGS
  11391. CPPFLAGS="-Wmissing-prototypes"
  11392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11393. /* end confdefs.h. */
  11394. int
  11395. main ()
  11396. {
  11397. ;
  11398. return 0;
  11399. }
  11400. _ACEOF
  11401. if ac_fn_c_try_compile "$LINENO"; then :
  11402. Wmissing_prototypes_cv_flag=yes
  11403. else
  11404. Wmissing_prototypes_cv_flag=no
  11405. fi
  11406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11407. CPPFLAGS=$saved_CPPFLAGS
  11408. fi
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wmissing_prototypes_cv_flag" >&5
  11410. $as_echo "$Wmissing_prototypes_cv_flag" >&6; }
  11411. if test "x$Wmissing_prototypes_cv_flag" = xyes; then
  11412. CPPFLAGS="$CPPFLAGS -Wmissing-prototypes"
  11413. fi
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wnested-externs works" >&5
  11415. $as_echo_n "checking whether -Wnested-externs works... " >&6; }
  11416. if ${Wnested_externs_cv_flag+:} false; then :
  11417. $as_echo_n "(cached) " >&6
  11418. else
  11419. saved_CPPFLAGS=$CPPFLAGS
  11420. CPPFLAGS="-Wnested-externs"
  11421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11422. /* end confdefs.h. */
  11423. int
  11424. main ()
  11425. {
  11426. ;
  11427. return 0;
  11428. }
  11429. _ACEOF
  11430. if ac_fn_c_try_compile "$LINENO"; then :
  11431. Wnested_externs_cv_flag=yes
  11432. else
  11433. Wnested_externs_cv_flag=no
  11434. fi
  11435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11436. CPPFLAGS=$saved_CPPFLAGS
  11437. fi
  11438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wnested_externs_cv_flag" >&5
  11439. $as_echo "$Wnested_externs_cv_flag" >&6; }
  11440. if test "x$Wnested_externs_cv_flag" = xyes; then
  11441. CPPFLAGS="$CPPFLAGS -Wnested-externs"
  11442. fi
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-arith works" >&5
  11444. $as_echo_n "checking whether -Wpointer-arith works... " >&6; }
  11445. if ${Wpointer_arith_cv_flag+:} false; then :
  11446. $as_echo_n "(cached) " >&6
  11447. else
  11448. saved_CPPFLAGS=$CPPFLAGS
  11449. CPPFLAGS="-Wpointer-arith"
  11450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11451. /* end confdefs.h. */
  11452. int
  11453. main ()
  11454. {
  11455. ;
  11456. return 0;
  11457. }
  11458. _ACEOF
  11459. if ac_fn_c_try_compile "$LINENO"; then :
  11460. Wpointer_arith_cv_flag=yes
  11461. else
  11462. Wpointer_arith_cv_flag=no
  11463. fi
  11464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11465. CPPFLAGS=$saved_CPPFLAGS
  11466. fi
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wpointer_arith_cv_flag" >&5
  11468. $as_echo "$Wpointer_arith_cv_flag" >&6; }
  11469. if test "x$Wpointer_arith_cv_flag" = xyes; then
  11470. CPPFLAGS="$CPPFLAGS -Wpointer-arith"
  11471. fi
  11472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11473. $as_echo_n "checking for ANSI C header files... " >&6; }
  11474. if ${ac_cv_header_stdc+:} false; then :
  11475. $as_echo_n "(cached) " >&6
  11476. else
  11477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11478. /* end confdefs.h. */
  11479. #include <stdlib.h>
  11480. #include <stdarg.h>
  11481. #include <string.h>
  11482. #include <float.h>
  11483. int
  11484. main ()
  11485. {
  11486. ;
  11487. return 0;
  11488. }
  11489. _ACEOF
  11490. if ac_fn_c_try_compile "$LINENO"; then :
  11491. ac_cv_header_stdc=yes
  11492. else
  11493. ac_cv_header_stdc=no
  11494. fi
  11495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11496. if test $ac_cv_header_stdc = yes; then
  11497. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11499. /* end confdefs.h. */
  11500. #include <string.h>
  11501. _ACEOF
  11502. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11503. $EGREP "memchr" >/dev/null 2>&1; then :
  11504. else
  11505. ac_cv_header_stdc=no
  11506. fi
  11507. rm -f conftest*
  11508. fi
  11509. if test $ac_cv_header_stdc = yes; then
  11510. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11512. /* end confdefs.h. */
  11513. #include <stdlib.h>
  11514. _ACEOF
  11515. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11516. $EGREP "free" >/dev/null 2>&1; then :
  11517. else
  11518. ac_cv_header_stdc=no
  11519. fi
  11520. rm -f conftest*
  11521. fi
  11522. if test $ac_cv_header_stdc = yes; then
  11523. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11524. if test "$cross_compiling" = yes; then :
  11525. :
  11526. else
  11527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11528. /* end confdefs.h. */
  11529. #include <ctype.h>
  11530. #include <stdlib.h>
  11531. #if ((' ' & 0x0FF) == 0x020)
  11532. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11533. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11534. #else
  11535. # define ISLOWER(c) \
  11536. (('a' <= (c) && (c) <= 'i') \
  11537. || ('j' <= (c) && (c) <= 'r') \
  11538. || ('s' <= (c) && (c) <= 'z'))
  11539. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11540. #endif
  11541. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11542. int
  11543. main ()
  11544. {
  11545. int i;
  11546. for (i = 0; i < 256; i++)
  11547. if (XOR (islower (i), ISLOWER (i))
  11548. || toupper (i) != TOUPPER (i))
  11549. return 2;
  11550. return 0;
  11551. }
  11552. _ACEOF
  11553. if ac_fn_c_try_run "$LINENO"; then :
  11554. else
  11555. ac_cv_header_stdc=no
  11556. fi
  11557. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11558. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11559. fi
  11560. fi
  11561. fi
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11563. $as_echo "$ac_cv_header_stdc" >&6; }
  11564. if test $ac_cv_header_stdc = yes; then
  11565. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11566. fi
  11567. for ac_header in string.h
  11568. do :
  11569. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  11570. if test "x$ac_cv_header_string_h" = xyes; then :
  11571. cat >>confdefs.h <<_ACEOF
  11572. #define HAVE_STRING_H 1
  11573. _ACEOF
  11574. fi
  11575. done
  11576. for ac_header in strings.h
  11577. do :
  11578. ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  11579. if test "x$ac_cv_header_strings_h" = xyes; then :
  11580. cat >>confdefs.h <<_ACEOF
  11581. #define HAVE_STRINGS_H 1
  11582. _ACEOF
  11583. fi
  11584. done
  11585. for ac_header in stdlib.h
  11586. do :
  11587. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  11588. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  11589. cat >>confdefs.h <<_ACEOF
  11590. #define HAVE_STDLIB_H 1
  11591. _ACEOF
  11592. fi
  11593. done
  11594. for ac_header in unistd.h
  11595. do :
  11596. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  11597. if test "x$ac_cv_header_unistd_h" = xyes; then :
  11598. cat >>confdefs.h <<_ACEOF
  11599. #define HAVE_UNISTD_H 1
  11600. _ACEOF
  11601. fi
  11602. done
  11603. for ac_header in sys/types.h
  11604. do :
  11605. ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  11606. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  11607. cat >>confdefs.h <<_ACEOF
  11608. #define HAVE_SYS_TYPES_H 1
  11609. _ACEOF
  11610. fi
  11611. done
  11612. for ac_header in sys/unistd.h
  11613. do :
  11614. ac_fn_c_check_header_mongrel "$LINENO" "sys/unistd.h" "ac_cv_header_sys_unistd_h" "$ac_includes_default"
  11615. if test "x$ac_cv_header_sys_unistd_h" = xyes; then :
  11616. cat >>confdefs.h <<_ACEOF
  11617. #define HAVE_SYS_UNISTD_H 1
  11618. _ACEOF
  11619. fi
  11620. done
  11621. for ac_header in syslog.h
  11622. do :
  11623. ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  11624. if test "x$ac_cv_header_syslog_h" = xyes; then :
  11625. cat >>confdefs.h <<_ACEOF
  11626. #define HAVE_SYSLOG_H 1
  11627. _ACEOF
  11628. fi
  11629. done
  11630. for ac_header in ctype.h
  11631. do :
  11632. ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  11633. if test "x$ac_cv_header_ctype_h" = xyes; then :
  11634. cat >>confdefs.h <<_ACEOF
  11635. #define HAVE_CTYPE_H 1
  11636. _ACEOF
  11637. fi
  11638. done
  11639. for ac_header in stdio.h
  11640. do :
  11641. ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  11642. if test "x$ac_cv_header_stdio_h" = xyes; then :
  11643. cat >>confdefs.h <<_ACEOF
  11644. #define HAVE_STDIO_H 1
  11645. _ACEOF
  11646. fi
  11647. done
  11648. for ac_header in stdarg.h
  11649. do :
  11650. ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  11651. if test "x$ac_cv_header_stdarg_h" = xyes; then :
  11652. cat >>confdefs.h <<_ACEOF
  11653. #define HAVE_STDARG_H 1
  11654. _ACEOF
  11655. fi
  11656. done
  11657. for ac_header in varargs.h
  11658. do :
  11659. ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
  11660. if test "x$ac_cv_header_varargs_h" = xyes; then :
  11661. cat >>confdefs.h <<_ACEOF
  11662. #define HAVE_VARARGS_H 1
  11663. _ACEOF
  11664. fi
  11665. done
  11666. for ac_header in fcntl.h
  11667. do :
  11668. ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  11669. if test "x$ac_cv_header_fcntl_h" = xyes; then :
  11670. cat >>confdefs.h <<_ACEOF
  11671. #define HAVE_FCNTL_H 1
  11672. _ACEOF
  11673. fi
  11674. done
  11675. for ac_header in time.h
  11676. do :
  11677. ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
  11678. if test "x$ac_cv_header_time_h" = xyes; then :
  11679. cat >>confdefs.h <<_ACEOF
  11680. #define HAVE_TIME_H 1
  11681. _ACEOF
  11682. fi
  11683. done
  11684. for ac_header in sys/time.h
  11685. do :
  11686. ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  11687. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  11688. cat >>confdefs.h <<_ACEOF
  11689. #define HAVE_SYS_TIME_H 1
  11690. _ACEOF
  11691. fi
  11692. done
  11693. for ac_header in sys/select.h
  11694. do :
  11695. ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  11696. if test "x$ac_cv_header_sys_select_h" = xyes; then :
  11697. cat >>confdefs.h <<_ACEOF
  11698. #define HAVE_SYS_SELECT_H 1
  11699. _ACEOF
  11700. fi
  11701. done
  11702. for ac_header in assert.h
  11703. do :
  11704. ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
  11705. if test "x$ac_cv_header_assert_h" = xyes; then :
  11706. cat >>confdefs.h <<_ACEOF
  11707. #define HAVE_ASSERT_H 1
  11708. _ACEOF
  11709. fi
  11710. done
  11711. for ac_header in signal.h
  11712. do :
  11713. ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  11714. if test "x$ac_cv_header_signal_h" = xyes; then :
  11715. cat >>confdefs.h <<_ACEOF
  11716. #define HAVE_SIGNAL_H 1
  11717. _ACEOF
  11718. fi
  11719. done
  11720. for ac_header in sys/signal.h
  11721. do :
  11722. ac_fn_c_check_header_mongrel "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default"
  11723. if test "x$ac_cv_header_sys_signal_h" = xyes; then :
  11724. cat >>confdefs.h <<_ACEOF
  11725. #define HAVE_SYS_SIGNAL_H 1
  11726. _ACEOF
  11727. fi
  11728. done
  11729. for ac_header in malloc.h
  11730. do :
  11731. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  11732. if test "x$ac_cv_header_malloc_h" = xyes; then :
  11733. cat >>confdefs.h <<_ACEOF
  11734. #define HAVE_MALLOC_H 1
  11735. _ACEOF
  11736. fi
  11737. done
  11738. ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "
  11739. #if TIME_WITH_SYS_TIME
  11740. # include <sys/time.h>
  11741. # include <time.h>
  11742. #else
  11743. # if HAVE_SYS_TIME_H
  11744. # include <sys/time.h>
  11745. # else
  11746. # include <time.h>
  11747. # endif
  11748. #endif
  11749. "
  11750. if test "x$ac_cv_type_struct_timeval" = xyes; then :
  11751. cat >>confdefs.h <<_ACEOF
  11752. #define HAVE_STRUCT_TIMEVAL 1
  11753. _ACEOF
  11754. fi
  11755. ac_config_files="$ac_config_files libosip2.pc Makefile scripts/Makefile src/Makefile src/osipparser2/Makefile src/osip2/Makefile src/test/Makefile include/Makefile include/osip2/Makefile include/osipparser2/Makefile include/osipparser2/headers/Makefile help/Makefile help/man/Makefile help/doxygen/Makefile platform/Makefile platform/rpm/Makefile platform/vsnet/Makefile include/osip2/doxygen.dox"
  11756. cat >confcache <<\_ACEOF
  11757. # This file is a shell script that caches the results of configure
  11758. # tests run on this system so they can be shared between configure
  11759. # scripts and configure runs, see configure's option --config-cache.
  11760. # It is not useful on other systems. If it contains results you don't
  11761. # want to keep, you may remove or edit it.
  11762. #
  11763. # config.status only pays attention to the cache file if you give it
  11764. # the --recheck option to rerun configure.
  11765. #
  11766. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11767. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11768. # following values.
  11769. _ACEOF
  11770. # The following way of writing the cache mishandles newlines in values,
  11771. # but we know of no workaround that is simple, portable, and efficient.
  11772. # So, we kill variables containing newlines.
  11773. # Ultrix sh set writes to stderr and can't be redirected directly,
  11774. # and sets the high bit in the cache file unless we assign to the vars.
  11775. (
  11776. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11777. eval ac_val=\$$ac_var
  11778. case $ac_val in #(
  11779. *${as_nl}*)
  11780. case $ac_var in #(
  11781. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11782. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11783. esac
  11784. case $ac_var in #(
  11785. _ | IFS | as_nl) ;; #(
  11786. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11787. *) { eval $ac_var=; unset $ac_var;} ;;
  11788. esac ;;
  11789. esac
  11790. done
  11791. (set) 2>&1 |
  11792. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11793. *${as_nl}ac_space=\ *)
  11794. # `set' does not quote correctly, so add quotes: double-quote
  11795. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11796. sed -n \
  11797. "s/'/'\\\\''/g;
  11798. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11799. ;; #(
  11800. *)
  11801. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11802. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11803. ;;
  11804. esac |
  11805. sort
  11806. ) |
  11807. sed '
  11808. /^ac_cv_env_/b end
  11809. t clear
  11810. :clear
  11811. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11812. t end
  11813. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11814. :end' >>confcache
  11815. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11816. if test -w "$cache_file"; then
  11817. if test "x$cache_file" != "x/dev/null"; then
  11818. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11819. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11820. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11821. cat confcache >"$cache_file"
  11822. else
  11823. case $cache_file in #(
  11824. */* | ?:*)
  11825. mv -f confcache "$cache_file"$$ &&
  11826. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11827. *)
  11828. mv -f confcache "$cache_file" ;;
  11829. esac
  11830. fi
  11831. fi
  11832. else
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11834. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11835. fi
  11836. fi
  11837. rm -f confcache
  11838. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11839. # Let make expand exec_prefix.
  11840. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11841. DEFS=-DHAVE_CONFIG_H
  11842. ac_libobjs=
  11843. ac_ltlibobjs=
  11844. U=
  11845. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11846. # 1. Remove the extension, and $U if already installed.
  11847. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11848. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11849. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11850. # will be set to the directory where LIBOBJS objects are built.
  11851. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11852. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11853. done
  11854. LIBOBJS=$ac_libobjs
  11855. LTLIBOBJS=$ac_ltlibobjs
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11857. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11858. if test -n "$am_sleep_pid"; then
  11859. # Hide warnings about reused PIDs.
  11860. wait $am_sleep_pid 2>/dev/null
  11861. fi
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11863. $as_echo "done" >&6; }
  11864. if test -n "$EXEEXT"; then
  11865. am__EXEEXT_TRUE=
  11866. am__EXEEXT_FALSE='#'
  11867. else
  11868. am__EXEEXT_TRUE='#'
  11869. am__EXEEXT_FALSE=
  11870. fi
  11871. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11872. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11873. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11874. fi
  11875. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11876. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11877. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11878. fi
  11879. if test -z "${BUILD_MT_TRUE}" && test -z "${BUILD_MT_FALSE}"; then
  11880. as_fn_error $? "conditional \"BUILD_MT\" was never defined.
  11881. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11882. fi
  11883. if test -z "${COMPILE_TESTS_TRUE}" && test -z "${COMPILE_TESTS_FALSE}"; then
  11884. as_fn_error $? "conditional \"COMPILE_TESTS\" was never defined.
  11885. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11886. fi
  11887. if test -z "${BUILD_MAXSIZE_TRUE}" && test -z "${BUILD_MAXSIZE_FALSE}"; then
  11888. as_fn_error $? "conditional \"BUILD_MAXSIZE\" was never defined.
  11889. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11890. fi
  11891. : "${CONFIG_STATUS=./config.status}"
  11892. ac_write_fail=0
  11893. ac_clean_files_save=$ac_clean_files
  11894. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11896. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11897. as_write_fail=0
  11898. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11899. #! $SHELL
  11900. # Generated by $as_me.
  11901. # Run this file to recreate the current configuration.
  11902. # Compiler output produced by configure, useful for debugging
  11903. # configure, is in config.log if it exists.
  11904. debug=false
  11905. ac_cs_recheck=false
  11906. ac_cs_silent=false
  11907. SHELL=\${CONFIG_SHELL-$SHELL}
  11908. export SHELL
  11909. _ASEOF
  11910. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11911. ## -------------------- ##
  11912. ## M4sh Initialization. ##
  11913. ## -------------------- ##
  11914. # Be more Bourne compatible
  11915. DUALCASE=1; export DUALCASE # for MKS sh
  11916. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11917. emulate sh
  11918. NULLCMD=:
  11919. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11920. # is contrary to our usage. Disable this feature.
  11921. alias -g '${1+"$@"}'='"$@"'
  11922. setopt NO_GLOB_SUBST
  11923. else
  11924. case `(set -o) 2>/dev/null` in #(
  11925. *posix*) :
  11926. set -o posix ;; #(
  11927. *) :
  11928. ;;
  11929. esac
  11930. fi
  11931. as_nl='
  11932. '
  11933. export as_nl
  11934. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11935. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11936. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11937. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11938. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11939. # but without wasting forks for bash or zsh.
  11940. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11941. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11942. as_echo='print -r --'
  11943. as_echo_n='print -rn --'
  11944. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11945. as_echo='printf %s\n'
  11946. as_echo_n='printf %s'
  11947. else
  11948. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11949. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11950. as_echo_n='/usr/ucb/echo -n'
  11951. else
  11952. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11953. as_echo_n_body='eval
  11954. arg=$1;
  11955. case $arg in #(
  11956. *"$as_nl"*)
  11957. expr "X$arg" : "X\\(.*\\)$as_nl";
  11958. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11959. esac;
  11960. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11961. '
  11962. export as_echo_n_body
  11963. as_echo_n='sh -c $as_echo_n_body as_echo'
  11964. fi
  11965. export as_echo_body
  11966. as_echo='sh -c $as_echo_body as_echo'
  11967. fi
  11968. # The user is always right.
  11969. if test "${PATH_SEPARATOR+set}" != set; then
  11970. PATH_SEPARATOR=:
  11971. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11972. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11973. PATH_SEPARATOR=';'
  11974. }
  11975. fi
  11976. # IFS
  11977. # We need space, tab and new line, in precisely that order. Quoting is
  11978. # there to prevent editors from complaining about space-tab.
  11979. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11980. # splitting by setting IFS to empty value.)
  11981. IFS=" "" $as_nl"
  11982. # Find who we are. Look in the path if we contain no directory separator.
  11983. as_myself=
  11984. case $0 in #((
  11985. *[\\/]* ) as_myself=$0 ;;
  11986. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11987. for as_dir in $PATH
  11988. do
  11989. IFS=$as_save_IFS
  11990. test -z "$as_dir" && as_dir=.
  11991. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11992. done
  11993. IFS=$as_save_IFS
  11994. ;;
  11995. esac
  11996. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11997. # in which case we are not to be found in the path.
  11998. if test "x$as_myself" = x; then
  11999. as_myself=$0
  12000. fi
  12001. if test ! -f "$as_myself"; then
  12002. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12003. exit 1
  12004. fi
  12005. # Unset variables that we do not need and which cause bugs (e.g. in
  12006. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12007. # suppresses any "Segmentation fault" message there. '((' could
  12008. # trigger a bug in pdksh 5.2.14.
  12009. for as_var in BASH_ENV ENV MAIL MAILPATH
  12010. do eval test x\${$as_var+set} = xset \
  12011. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12012. done
  12013. PS1='$ '
  12014. PS2='> '
  12015. PS4='+ '
  12016. # NLS nuisances.
  12017. LC_ALL=C
  12018. export LC_ALL
  12019. LANGUAGE=C
  12020. export LANGUAGE
  12021. # CDPATH.
  12022. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12023. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12024. # ----------------------------------------
  12025. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12026. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12027. # script with STATUS, using 1 if that was 0.
  12028. as_fn_error ()
  12029. {
  12030. as_status=$1; test $as_status -eq 0 && as_status=1
  12031. if test "$4"; then
  12032. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12033. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12034. fi
  12035. $as_echo "$as_me: error: $2" >&2
  12036. as_fn_exit $as_status
  12037. } # as_fn_error
  12038. # as_fn_set_status STATUS
  12039. # -----------------------
  12040. # Set $? to STATUS, without forking.
  12041. as_fn_set_status ()
  12042. {
  12043. return $1
  12044. } # as_fn_set_status
  12045. # as_fn_exit STATUS
  12046. # -----------------
  12047. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12048. as_fn_exit ()
  12049. {
  12050. set +e
  12051. as_fn_set_status $1
  12052. exit $1
  12053. } # as_fn_exit
  12054. # as_fn_unset VAR
  12055. # ---------------
  12056. # Portably unset VAR.
  12057. as_fn_unset ()
  12058. {
  12059. { eval $1=; unset $1;}
  12060. }
  12061. as_unset=as_fn_unset
  12062. # as_fn_append VAR VALUE
  12063. # ----------------------
  12064. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12065. # advantage of any shell optimizations that allow amortized linear growth over
  12066. # repeated appends, instead of the typical quadratic growth present in naive
  12067. # implementations.
  12068. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12069. eval 'as_fn_append ()
  12070. {
  12071. eval $1+=\$2
  12072. }'
  12073. else
  12074. as_fn_append ()
  12075. {
  12076. eval $1=\$$1\$2
  12077. }
  12078. fi # as_fn_append
  12079. # as_fn_arith ARG...
  12080. # ------------------
  12081. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12082. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12083. # must be portable across $(()) and expr.
  12084. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12085. eval 'as_fn_arith ()
  12086. {
  12087. as_val=$(( $* ))
  12088. }'
  12089. else
  12090. as_fn_arith ()
  12091. {
  12092. as_val=`expr "$@" || test $? -eq 1`
  12093. }
  12094. fi # as_fn_arith
  12095. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12096. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12097. as_expr=expr
  12098. else
  12099. as_expr=false
  12100. fi
  12101. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12102. as_basename=basename
  12103. else
  12104. as_basename=false
  12105. fi
  12106. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12107. as_dirname=dirname
  12108. else
  12109. as_dirname=false
  12110. fi
  12111. as_me=`$as_basename -- "$0" ||
  12112. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12113. X"$0" : 'X\(//\)$' \| \
  12114. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12115. $as_echo X/"$0" |
  12116. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12117. s//\1/
  12118. q
  12119. }
  12120. /^X\/\(\/\/\)$/{
  12121. s//\1/
  12122. q
  12123. }
  12124. /^X\/\(\/\).*/{
  12125. s//\1/
  12126. q
  12127. }
  12128. s/.*/./; q'`
  12129. # Avoid depending upon Character Ranges.
  12130. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12131. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12132. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12133. as_cr_digits='0123456789'
  12134. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12135. ECHO_C= ECHO_N= ECHO_T=
  12136. case `echo -n x` in #(((((
  12137. -n*)
  12138. case `echo 'xy\c'` in
  12139. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12140. xy) ECHO_C='\c';;
  12141. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12142. ECHO_T=' ';;
  12143. esac;;
  12144. *)
  12145. ECHO_N='-n';;
  12146. esac
  12147. rm -f conf$$ conf$$.exe conf$$.file
  12148. if test -d conf$$.dir; then
  12149. rm -f conf$$.dir/conf$$.file
  12150. else
  12151. rm -f conf$$.dir
  12152. mkdir conf$$.dir 2>/dev/null
  12153. fi
  12154. if (echo >conf$$.file) 2>/dev/null; then
  12155. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12156. as_ln_s='ln -s'
  12157. # ... but there are two gotchas:
  12158. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12159. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12160. # In both cases, we have to default to `cp -pR'.
  12161. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12162. as_ln_s='cp -pR'
  12163. elif ln conf$$.file conf$$ 2>/dev/null; then
  12164. as_ln_s=ln
  12165. else
  12166. as_ln_s='cp -pR'
  12167. fi
  12168. else
  12169. as_ln_s='cp -pR'
  12170. fi
  12171. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12172. rmdir conf$$.dir 2>/dev/null
  12173. # as_fn_mkdir_p
  12174. # -------------
  12175. # Create "$as_dir" as a directory, including parents if necessary.
  12176. as_fn_mkdir_p ()
  12177. {
  12178. case $as_dir in #(
  12179. -*) as_dir=./$as_dir;;
  12180. esac
  12181. test -d "$as_dir" || eval $as_mkdir_p || {
  12182. as_dirs=
  12183. while :; do
  12184. case $as_dir in #(
  12185. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12186. *) as_qdir=$as_dir;;
  12187. esac
  12188. as_dirs="'$as_qdir' $as_dirs"
  12189. as_dir=`$as_dirname -- "$as_dir" ||
  12190. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12191. X"$as_dir" : 'X\(//\)[^/]' \| \
  12192. X"$as_dir" : 'X\(//\)$' \| \
  12193. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12194. $as_echo X"$as_dir" |
  12195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12196. s//\1/
  12197. q
  12198. }
  12199. /^X\(\/\/\)[^/].*/{
  12200. s//\1/
  12201. q
  12202. }
  12203. /^X\(\/\/\)$/{
  12204. s//\1/
  12205. q
  12206. }
  12207. /^X\(\/\).*/{
  12208. s//\1/
  12209. q
  12210. }
  12211. s/.*/./; q'`
  12212. test -d "$as_dir" && break
  12213. done
  12214. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12215. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12216. } # as_fn_mkdir_p
  12217. if mkdir -p . 2>/dev/null; then
  12218. as_mkdir_p='mkdir -p "$as_dir"'
  12219. else
  12220. test -d ./-p && rmdir ./-p
  12221. as_mkdir_p=false
  12222. fi
  12223. # as_fn_executable_p FILE
  12224. # -----------------------
  12225. # Test if FILE is an executable regular file.
  12226. as_fn_executable_p ()
  12227. {
  12228. test -f "$1" && test -x "$1"
  12229. } # as_fn_executable_p
  12230. as_test_x='test -x'
  12231. as_executable_p=as_fn_executable_p
  12232. # Sed expression to map a string onto a valid CPP name.
  12233. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12234. # Sed expression to map a string onto a valid variable name.
  12235. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12236. exec 6>&1
  12237. ## ----------------------------------- ##
  12238. ## Main body of $CONFIG_STATUS script. ##
  12239. ## ----------------------------------- ##
  12240. _ASEOF
  12241. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12242. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12243. # Save the log message, to keep $0 and so on meaningful, and to
  12244. # report actual input values of CONFIG_FILES etc. instead of their
  12245. # values after options handling.
  12246. ac_log="
  12247. This file was extended by libosip2 $as_me 5.2.1, which was
  12248. generated by GNU Autoconf 2.69. Invocation command line was
  12249. CONFIG_FILES = $CONFIG_FILES
  12250. CONFIG_HEADERS = $CONFIG_HEADERS
  12251. CONFIG_LINKS = $CONFIG_LINKS
  12252. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12253. $ $0 $@
  12254. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12255. "
  12256. _ACEOF
  12257. case $ac_config_files in *"
  12258. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12259. esac
  12260. case $ac_config_headers in *"
  12261. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12262. esac
  12263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12264. # Files that config.status was made for.
  12265. config_files="$ac_config_files"
  12266. config_headers="$ac_config_headers"
  12267. config_commands="$ac_config_commands"
  12268. _ACEOF
  12269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12270. ac_cs_usage="\
  12271. \`$as_me' instantiates files and other configuration actions
  12272. from templates according to the current configuration. Unless the files
  12273. and actions are specified as TAGs, all are instantiated by default.
  12274. Usage: $0 [OPTION]... [TAG]...
  12275. -h, --help print this help, then exit
  12276. -V, --version print version number and configuration settings, then exit
  12277. --config print configuration, then exit
  12278. -q, --quiet, --silent
  12279. do not print progress messages
  12280. -d, --debug don't remove temporary files
  12281. --recheck update $as_me by reconfiguring in the same conditions
  12282. --file=FILE[:TEMPLATE]
  12283. instantiate the configuration file FILE
  12284. --header=FILE[:TEMPLATE]
  12285. instantiate the configuration header FILE
  12286. Configuration files:
  12287. $config_files
  12288. Configuration headers:
  12289. $config_headers
  12290. Configuration commands:
  12291. $config_commands
  12292. Report bugs to the package provider."
  12293. _ACEOF
  12294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12295. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12296. ac_cs_version="\\
  12297. libosip2 config.status 5.2.1
  12298. configured by $0, generated by GNU Autoconf 2.69,
  12299. with options \\"\$ac_cs_config\\"
  12300. Copyright (C) 2012 Free Software Foundation, Inc.
  12301. This config.status script is free software; the Free Software Foundation
  12302. gives unlimited permission to copy, distribute and modify it."
  12303. ac_pwd='$ac_pwd'
  12304. srcdir='$srcdir'
  12305. INSTALL='$INSTALL'
  12306. MKDIR_P='$MKDIR_P'
  12307. AWK='$AWK'
  12308. test -n "\$AWK" || AWK=awk
  12309. _ACEOF
  12310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12311. # The default lists apply if the user does not specify any file.
  12312. ac_need_defaults=:
  12313. while test $# != 0
  12314. do
  12315. case $1 in
  12316. --*=?*)
  12317. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12318. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12319. ac_shift=:
  12320. ;;
  12321. --*=)
  12322. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12323. ac_optarg=
  12324. ac_shift=:
  12325. ;;
  12326. *)
  12327. ac_option=$1
  12328. ac_optarg=$2
  12329. ac_shift=shift
  12330. ;;
  12331. esac
  12332. case $ac_option in
  12333. # Handling of the options.
  12334. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12335. ac_cs_recheck=: ;;
  12336. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12337. $as_echo "$ac_cs_version"; exit ;;
  12338. --config | --confi | --conf | --con | --co | --c )
  12339. $as_echo "$ac_cs_config"; exit ;;
  12340. --debug | --debu | --deb | --de | --d | -d )
  12341. debug=: ;;
  12342. --file | --fil | --fi | --f )
  12343. $ac_shift
  12344. case $ac_optarg in
  12345. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12346. '') as_fn_error $? "missing file argument" ;;
  12347. esac
  12348. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12349. ac_need_defaults=false;;
  12350. --header | --heade | --head | --hea )
  12351. $ac_shift
  12352. case $ac_optarg in
  12353. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12354. esac
  12355. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12356. ac_need_defaults=false;;
  12357. --he | --h)
  12358. # Conflict between --help and --header
  12359. as_fn_error $? "ambiguous option: \`$1'
  12360. Try \`$0 --help' for more information.";;
  12361. --help | --hel | -h )
  12362. $as_echo "$ac_cs_usage"; exit ;;
  12363. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12364. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12365. ac_cs_silent=: ;;
  12366. # This is an error.
  12367. -*) as_fn_error $? "unrecognized option: \`$1'
  12368. Try \`$0 --help' for more information." ;;
  12369. *) as_fn_append ac_config_targets " $1"
  12370. ac_need_defaults=false ;;
  12371. esac
  12372. shift
  12373. done
  12374. ac_configure_extra_args=
  12375. if $ac_cs_silent; then
  12376. exec 6>/dev/null
  12377. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12378. fi
  12379. _ACEOF
  12380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12381. if \$ac_cs_recheck; then
  12382. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12383. shift
  12384. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12385. CONFIG_SHELL='$SHELL'
  12386. export CONFIG_SHELL
  12387. exec "\$@"
  12388. fi
  12389. _ACEOF
  12390. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12391. exec 5>>config.log
  12392. {
  12393. echo
  12394. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12395. ## Running $as_me. ##
  12396. _ASBOX
  12397. $as_echo "$ac_log"
  12398. } >&5
  12399. _ACEOF
  12400. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12401. #
  12402. # INIT-COMMANDS
  12403. #
  12404. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  12405. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12406. # if CDPATH is set.
  12407. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12408. sed_quote_subst='$sed_quote_subst'
  12409. double_quote_subst='$double_quote_subst'
  12410. delay_variable_subst='$delay_variable_subst'
  12411. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12412. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12413. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12414. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12415. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12416. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12417. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  12418. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12419. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12420. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12421. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12422. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12423. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12424. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12425. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12426. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12427. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12428. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12429. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12430. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12431. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12432. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12433. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12434. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12435. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12436. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12437. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12438. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12439. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12440. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12441. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12442. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12443. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12444. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12445. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12446. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12447. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12448. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12449. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12450. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12451. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12452. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12453. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12454. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12455. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12456. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12457. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12458. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12459. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12460. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12461. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12462. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12463. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12464. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12465. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12466. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12467. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  12468. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12469. 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"`'
  12470. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  12471. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12472. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12473. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  12474. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12475. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12476. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12477. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12478. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12479. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12480. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12481. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12482. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12483. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12484. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12485. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12486. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12487. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12488. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12489. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12490. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12491. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12492. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12493. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12494. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12495. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12496. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12497. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12498. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12499. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12500. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12501. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12502. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12503. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12504. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12505. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12506. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12507. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12508. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12509. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12510. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12511. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12512. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12513. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12514. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12515. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12516. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12517. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12518. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12519. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12520. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12521. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12522. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12523. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12524. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12525. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12526. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12527. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12528. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12529. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12530. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12531. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12532. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12533. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12534. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12535. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12536. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12537. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12538. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  12539. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  12540. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12541. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12542. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12543. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12544. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12545. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12546. LTCC='$LTCC'
  12547. LTCFLAGS='$LTCFLAGS'
  12548. compiler='$compiler_DEFAULT'
  12549. # A function that is used when there is no print builtin or printf.
  12550. func_fallback_echo ()
  12551. {
  12552. eval 'cat <<_LTECHO_EOF
  12553. \$1
  12554. _LTECHO_EOF'
  12555. }
  12556. # Quote evaled strings.
  12557. for var in SHELL \
  12558. ECHO \
  12559. PATH_SEPARATOR \
  12560. SED \
  12561. GREP \
  12562. EGREP \
  12563. FGREP \
  12564. LD \
  12565. NM \
  12566. LN_S \
  12567. lt_SP2NL \
  12568. lt_NL2SP \
  12569. reload_flag \
  12570. OBJDUMP \
  12571. deplibs_check_method \
  12572. file_magic_cmd \
  12573. file_magic_glob \
  12574. want_nocaseglob \
  12575. DLLTOOL \
  12576. sharedlib_from_linklib_cmd \
  12577. AR \
  12578. AR_FLAGS \
  12579. archiver_list_spec \
  12580. STRIP \
  12581. RANLIB \
  12582. CC \
  12583. CFLAGS \
  12584. compiler \
  12585. lt_cv_sys_global_symbol_pipe \
  12586. lt_cv_sys_global_symbol_to_cdecl \
  12587. lt_cv_sys_global_symbol_to_import \
  12588. lt_cv_sys_global_symbol_to_c_name_address \
  12589. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12590. lt_cv_nm_interface \
  12591. nm_file_list_spec \
  12592. lt_cv_truncate_bin \
  12593. lt_prog_compiler_no_builtin_flag \
  12594. lt_prog_compiler_pic \
  12595. lt_prog_compiler_wl \
  12596. lt_prog_compiler_static \
  12597. lt_cv_prog_compiler_c_o \
  12598. need_locks \
  12599. MANIFEST_TOOL \
  12600. DSYMUTIL \
  12601. NMEDIT \
  12602. LIPO \
  12603. OTOOL \
  12604. OTOOL64 \
  12605. shrext_cmds \
  12606. export_dynamic_flag_spec \
  12607. whole_archive_flag_spec \
  12608. compiler_needs_object \
  12609. with_gnu_ld \
  12610. allow_undefined_flag \
  12611. no_undefined_flag \
  12612. hardcode_libdir_flag_spec \
  12613. hardcode_libdir_separator \
  12614. exclude_expsyms \
  12615. include_expsyms \
  12616. file_list_spec \
  12617. variables_saved_for_relink \
  12618. libname_spec \
  12619. library_names_spec \
  12620. soname_spec \
  12621. install_override_mode \
  12622. finish_eval \
  12623. old_striplib \
  12624. striplib; do
  12625. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12626. *[\\\\\\\`\\"\\\$]*)
  12627. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12628. ;;
  12629. *)
  12630. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12631. ;;
  12632. esac
  12633. done
  12634. # Double-quote double-evaled strings.
  12635. for var in reload_cmds \
  12636. old_postinstall_cmds \
  12637. old_postuninstall_cmds \
  12638. old_archive_cmds \
  12639. extract_expsyms_cmds \
  12640. old_archive_from_new_cmds \
  12641. old_archive_from_expsyms_cmds \
  12642. archive_cmds \
  12643. archive_expsym_cmds \
  12644. module_cmds \
  12645. module_expsym_cmds \
  12646. export_symbols_cmds \
  12647. prelink_cmds \
  12648. postlink_cmds \
  12649. postinstall_cmds \
  12650. postuninstall_cmds \
  12651. finish_cmds \
  12652. sys_lib_search_path_spec \
  12653. configure_time_dlsearch_path \
  12654. configure_time_lt_sys_library_path; do
  12655. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12656. *[\\\\\\\`\\"\\\$]*)
  12657. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12658. ;;
  12659. *)
  12660. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12661. ;;
  12662. esac
  12663. done
  12664. ac_aux_dir='$ac_aux_dir'
  12665. # See if we are running on zsh, and set the options that allow our
  12666. # commands through without removal of \ escapes INIT.
  12667. if test -n "\${ZSH_VERSION+set}"; then
  12668. setopt NO_GLOB_SUBST
  12669. fi
  12670. PACKAGE='$PACKAGE'
  12671. VERSION='$VERSION'
  12672. RM='$RM'
  12673. ofile='$ofile'
  12674. _ACEOF
  12675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12676. # Handling of arguments.
  12677. for ac_config_target in $ac_config_targets
  12678. do
  12679. case $ac_config_target in
  12680. "osip-config.h") CONFIG_HEADERS="$CONFIG_HEADERS osip-config.h" ;;
  12681. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12682. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12683. "libosip2.pc") CONFIG_FILES="$CONFIG_FILES libosip2.pc" ;;
  12684. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12685. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  12686. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12687. "src/osipparser2/Makefile") CONFIG_FILES="$CONFIG_FILES src/osipparser2/Makefile" ;;
  12688. "src/osip2/Makefile") CONFIG_FILES="$CONFIG_FILES src/osip2/Makefile" ;;
  12689. "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  12690. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  12691. "include/osip2/Makefile") CONFIG_FILES="$CONFIG_FILES include/osip2/Makefile" ;;
  12692. "include/osipparser2/Makefile") CONFIG_FILES="$CONFIG_FILES include/osipparser2/Makefile" ;;
  12693. "include/osipparser2/headers/Makefile") CONFIG_FILES="$CONFIG_FILES include/osipparser2/headers/Makefile" ;;
  12694. "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
  12695. "help/man/Makefile") CONFIG_FILES="$CONFIG_FILES help/man/Makefile" ;;
  12696. "help/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES help/doxygen/Makefile" ;;
  12697. "platform/Makefile") CONFIG_FILES="$CONFIG_FILES platform/Makefile" ;;
  12698. "platform/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES platform/rpm/Makefile" ;;
  12699. "platform/vsnet/Makefile") CONFIG_FILES="$CONFIG_FILES platform/vsnet/Makefile" ;;
  12700. "include/osip2/doxygen.dox") CONFIG_FILES="$CONFIG_FILES include/osip2/doxygen.dox" ;;
  12701. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12702. esac
  12703. done
  12704. # If the user did not use the arguments to specify the items to instantiate,
  12705. # then the envvar interface is used. Set only those that are not.
  12706. # We use the long form for the default assignment because of an extremely
  12707. # bizarre bug on SunOS 4.1.3.
  12708. if $ac_need_defaults; then
  12709. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12710. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12711. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12712. fi
  12713. # Have a temporary directory for convenience. Make it in the build tree
  12714. # simply because there is no reason against having it here, and in addition,
  12715. # creating and moving files from /tmp can sometimes cause problems.
  12716. # Hook for its removal unless debugging.
  12717. # Note that there is a small window in which the directory will not be cleaned:
  12718. # after its creation but before its name has been assigned to `$tmp'.
  12719. $debug ||
  12720. {
  12721. tmp= ac_tmp=
  12722. trap 'exit_status=$?
  12723. : "${ac_tmp:=$tmp}"
  12724. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12725. ' 0
  12726. trap 'as_fn_exit 1' 1 2 13 15
  12727. }
  12728. # Create a (secure) tmp directory for tmp files.
  12729. {
  12730. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12731. test -d "$tmp"
  12732. } ||
  12733. {
  12734. tmp=./conf$$-$RANDOM
  12735. (umask 077 && mkdir "$tmp")
  12736. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12737. ac_tmp=$tmp
  12738. # Set up the scripts for CONFIG_FILES section.
  12739. # No need to generate them if there are no CONFIG_FILES.
  12740. # This happens for instance with `./config.status config.h'.
  12741. if test -n "$CONFIG_FILES"; then
  12742. ac_cr=`echo X | tr X '\015'`
  12743. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12744. # But we know of no other shell where ac_cr would be empty at this
  12745. # point, so we can use a bashism as a fallback.
  12746. if test "x$ac_cr" = x; then
  12747. eval ac_cr=\$\'\\r\'
  12748. fi
  12749. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12750. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12751. ac_cs_awk_cr='\\r'
  12752. else
  12753. ac_cs_awk_cr=$ac_cr
  12754. fi
  12755. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12756. _ACEOF
  12757. {
  12758. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12759. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12760. echo "_ACEOF"
  12761. } >conf$$subs.sh ||
  12762. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12763. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12764. ac_delim='%!_!# '
  12765. for ac_last_try in false false false false false :; do
  12766. . ./conf$$subs.sh ||
  12767. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12768. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12769. if test $ac_delim_n = $ac_delim_num; then
  12770. break
  12771. elif $ac_last_try; then
  12772. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12773. else
  12774. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12775. fi
  12776. done
  12777. rm -f conf$$subs.sh
  12778. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12779. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12780. _ACEOF
  12781. sed -n '
  12782. h
  12783. s/^/S["/; s/!.*/"]=/
  12784. p
  12785. g
  12786. s/^[^!]*!//
  12787. :repl
  12788. t repl
  12789. s/'"$ac_delim"'$//
  12790. t delim
  12791. :nl
  12792. h
  12793. s/\(.\{148\}\)..*/\1/
  12794. t more1
  12795. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12796. p
  12797. n
  12798. b repl
  12799. :more1
  12800. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12801. p
  12802. g
  12803. s/.\{148\}//
  12804. t nl
  12805. :delim
  12806. h
  12807. s/\(.\{148\}\)..*/\1/
  12808. t more2
  12809. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12810. p
  12811. b
  12812. :more2
  12813. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12814. p
  12815. g
  12816. s/.\{148\}//
  12817. t delim
  12818. ' <conf$$subs.awk | sed '
  12819. /^[^""]/{
  12820. N
  12821. s/\n//
  12822. }
  12823. ' >>$CONFIG_STATUS || ac_write_fail=1
  12824. rm -f conf$$subs.awk
  12825. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12826. _ACAWK
  12827. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12828. for (key in S) S_is_set[key] = 1
  12829. FS = ""
  12830. }
  12831. {
  12832. line = $ 0
  12833. nfields = split(line, field, "@")
  12834. substed = 0
  12835. len = length(field[1])
  12836. for (i = 2; i < nfields; i++) {
  12837. key = field[i]
  12838. keylen = length(key)
  12839. if (S_is_set[key]) {
  12840. value = S[key]
  12841. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12842. len += length(value) + length(field[++i])
  12843. substed = 1
  12844. } else
  12845. len += 1 + keylen
  12846. }
  12847. print line
  12848. }
  12849. _ACAWK
  12850. _ACEOF
  12851. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12852. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12853. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12854. else
  12855. cat
  12856. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12857. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12858. _ACEOF
  12859. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12860. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12861. # trailing colons and then remove the whole line if VPATH becomes empty
  12862. # (actually we leave an empty line to preserve line numbers).
  12863. if test "x$srcdir" = x.; then
  12864. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12865. h
  12866. s///
  12867. s/^/:/
  12868. s/[ ]*$/:/
  12869. s/:\$(srcdir):/:/g
  12870. s/:\${srcdir}:/:/g
  12871. s/:@srcdir@:/:/g
  12872. s/^:*//
  12873. s/:*$//
  12874. x
  12875. s/\(=[ ]*\).*/\1/
  12876. G
  12877. s/\n//
  12878. s/^[^=]*=[ ]*$//
  12879. }'
  12880. fi
  12881. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12882. fi # test -n "$CONFIG_FILES"
  12883. # Set up the scripts for CONFIG_HEADERS section.
  12884. # No need to generate them if there are no CONFIG_HEADERS.
  12885. # This happens for instance with `./config.status Makefile'.
  12886. if test -n "$CONFIG_HEADERS"; then
  12887. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12888. BEGIN {
  12889. _ACEOF
  12890. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12891. # here-document in config.status, that substitutes the proper values into
  12892. # config.h.in to produce config.h.
  12893. # Create a delimiter string that does not exist in confdefs.h, to ease
  12894. # handling of long lines.
  12895. ac_delim='%!_!# '
  12896. for ac_last_try in false false :; do
  12897. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12898. if test -z "$ac_tt"; then
  12899. break
  12900. elif $ac_last_try; then
  12901. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12902. else
  12903. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12904. fi
  12905. done
  12906. # For the awk script, D is an array of macro values keyed by name,
  12907. # likewise P contains macro parameters if any. Preserve backslash
  12908. # newline sequences.
  12909. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12910. sed -n '
  12911. s/.\{148\}/&'"$ac_delim"'/g
  12912. t rset
  12913. :rset
  12914. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12915. t def
  12916. d
  12917. :def
  12918. s/\\$//
  12919. t bsnl
  12920. s/["\\]/\\&/g
  12921. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12922. D["\1"]=" \3"/p
  12923. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12924. d
  12925. :bsnl
  12926. s/["\\]/\\&/g
  12927. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12928. D["\1"]=" \3\\\\\\n"\\/p
  12929. t cont
  12930. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12931. t cont
  12932. d
  12933. :cont
  12934. n
  12935. s/.\{148\}/&'"$ac_delim"'/g
  12936. t clear
  12937. :clear
  12938. s/\\$//
  12939. t bsnlc
  12940. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12941. d
  12942. :bsnlc
  12943. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12944. b cont
  12945. ' <confdefs.h | sed '
  12946. s/'"$ac_delim"'/"\\\
  12947. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12948. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12949. for (key in D) D_is_set[key] = 1
  12950. FS = ""
  12951. }
  12952. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12953. line = \$ 0
  12954. split(line, arg, " ")
  12955. if (arg[1] == "#") {
  12956. defundef = arg[2]
  12957. mac1 = arg[3]
  12958. } else {
  12959. defundef = substr(arg[1], 2)
  12960. mac1 = arg[2]
  12961. }
  12962. split(mac1, mac2, "(") #)
  12963. macro = mac2[1]
  12964. prefix = substr(line, 1, index(line, defundef) - 1)
  12965. if (D_is_set[macro]) {
  12966. # Preserve the white space surrounding the "#".
  12967. print prefix "define", macro P[macro] D[macro]
  12968. next
  12969. } else {
  12970. # Replace #undef with comments. This is necessary, for example,
  12971. # in the case of _POSIX_SOURCE, which is predefined and required
  12972. # on some systems where configure will not decide to define it.
  12973. if (defundef == "undef") {
  12974. print "/*", prefix defundef, macro, "*/"
  12975. next
  12976. }
  12977. }
  12978. }
  12979. { print }
  12980. _ACAWK
  12981. _ACEOF
  12982. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12983. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12984. fi # test -n "$CONFIG_HEADERS"
  12985. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12986. shift
  12987. for ac_tag
  12988. do
  12989. case $ac_tag in
  12990. :[FHLC]) ac_mode=$ac_tag; continue;;
  12991. esac
  12992. case $ac_mode$ac_tag in
  12993. :[FHL]*:*);;
  12994. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12995. :[FH]-) ac_tag=-:-;;
  12996. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12997. esac
  12998. ac_save_IFS=$IFS
  12999. IFS=:
  13000. set x $ac_tag
  13001. IFS=$ac_save_IFS
  13002. shift
  13003. ac_file=$1
  13004. shift
  13005. case $ac_mode in
  13006. :L) ac_source=$1;;
  13007. :[FH])
  13008. ac_file_inputs=
  13009. for ac_f
  13010. do
  13011. case $ac_f in
  13012. -) ac_f="$ac_tmp/stdin";;
  13013. *) # Look for the file first in the build tree, then in the source tree
  13014. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13015. # because $ac_f cannot contain `:'.
  13016. test -f "$ac_f" ||
  13017. case $ac_f in
  13018. [\\/$]*) false;;
  13019. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13020. esac ||
  13021. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13022. esac
  13023. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13024. as_fn_append ac_file_inputs " '$ac_f'"
  13025. done
  13026. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13027. # use $as_me), people would be surprised to read:
  13028. # /* config.h. Generated by config.status. */
  13029. configure_input='Generated from '`
  13030. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13031. `' by configure.'
  13032. if test x"$ac_file" != x-; then
  13033. configure_input="$ac_file. $configure_input"
  13034. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13035. $as_echo "$as_me: creating $ac_file" >&6;}
  13036. fi
  13037. # Neutralize special characters interpreted by sed in replacement strings.
  13038. case $configure_input in #(
  13039. *\&* | *\|* | *\\* )
  13040. ac_sed_conf_input=`$as_echo "$configure_input" |
  13041. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13042. *) ac_sed_conf_input=$configure_input;;
  13043. esac
  13044. case $ac_tag in
  13045. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13046. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13047. esac
  13048. ;;
  13049. esac
  13050. ac_dir=`$as_dirname -- "$ac_file" ||
  13051. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13052. X"$ac_file" : 'X\(//\)[^/]' \| \
  13053. X"$ac_file" : 'X\(//\)$' \| \
  13054. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13055. $as_echo X"$ac_file" |
  13056. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13057. s//\1/
  13058. q
  13059. }
  13060. /^X\(\/\/\)[^/].*/{
  13061. s//\1/
  13062. q
  13063. }
  13064. /^X\(\/\/\)$/{
  13065. s//\1/
  13066. q
  13067. }
  13068. /^X\(\/\).*/{
  13069. s//\1/
  13070. q
  13071. }
  13072. s/.*/./; q'`
  13073. as_dir="$ac_dir"; as_fn_mkdir_p
  13074. ac_builddir=.
  13075. case "$ac_dir" in
  13076. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13077. *)
  13078. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13079. # A ".." for each directory in $ac_dir_suffix.
  13080. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13081. case $ac_top_builddir_sub in
  13082. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13083. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13084. esac ;;
  13085. esac
  13086. ac_abs_top_builddir=$ac_pwd
  13087. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13088. # for backward compatibility:
  13089. ac_top_builddir=$ac_top_build_prefix
  13090. case $srcdir in
  13091. .) # We are building in place.
  13092. ac_srcdir=.
  13093. ac_top_srcdir=$ac_top_builddir_sub
  13094. ac_abs_top_srcdir=$ac_pwd ;;
  13095. [\\/]* | ?:[\\/]* ) # Absolute name.
  13096. ac_srcdir=$srcdir$ac_dir_suffix;
  13097. ac_top_srcdir=$srcdir
  13098. ac_abs_top_srcdir=$srcdir ;;
  13099. *) # Relative name.
  13100. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13101. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13102. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13103. esac
  13104. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13105. case $ac_mode in
  13106. :F)
  13107. #
  13108. # CONFIG_FILE
  13109. #
  13110. case $INSTALL in
  13111. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13112. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13113. esac
  13114. ac_MKDIR_P=$MKDIR_P
  13115. case $MKDIR_P in
  13116. [\\/$]* | ?:[\\/]* ) ;;
  13117. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13118. esac
  13119. _ACEOF
  13120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13121. # If the template does not know about datarootdir, expand it.
  13122. # FIXME: This hack should be removed a few years after 2.60.
  13123. ac_datarootdir_hack=; ac_datarootdir_seen=
  13124. ac_sed_dataroot='
  13125. /datarootdir/ {
  13126. p
  13127. q
  13128. }
  13129. /@datadir@/p
  13130. /@docdir@/p
  13131. /@infodir@/p
  13132. /@localedir@/p
  13133. /@mandir@/p'
  13134. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13135. *datarootdir*) ac_datarootdir_seen=yes;;
  13136. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13138. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13139. _ACEOF
  13140. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13141. ac_datarootdir_hack='
  13142. s&@datadir@&$datadir&g
  13143. s&@docdir@&$docdir&g
  13144. s&@infodir@&$infodir&g
  13145. s&@localedir@&$localedir&g
  13146. s&@mandir@&$mandir&g
  13147. s&\\\${datarootdir}&$datarootdir&g' ;;
  13148. esac
  13149. _ACEOF
  13150. # Neutralize VPATH when `$srcdir' = `.'.
  13151. # Shell code in configure.ac might set extrasub.
  13152. # FIXME: do we really want to maintain this feature?
  13153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13154. ac_sed_extra="$ac_vpsub
  13155. $extrasub
  13156. _ACEOF
  13157. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13158. :t
  13159. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13160. s|@configure_input@|$ac_sed_conf_input|;t t
  13161. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13162. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13163. s&@srcdir@&$ac_srcdir&;t t
  13164. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13165. s&@top_srcdir@&$ac_top_srcdir&;t t
  13166. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13167. s&@builddir@&$ac_builddir&;t t
  13168. s&@abs_builddir@&$ac_abs_builddir&;t t
  13169. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13170. s&@INSTALL@&$ac_INSTALL&;t t
  13171. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13172. $ac_datarootdir_hack
  13173. "
  13174. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13175. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13176. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13177. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13178. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13179. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13181. which seems to be undefined. Please make sure it is defined" >&5
  13182. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13183. which seems to be undefined. Please make sure it is defined" >&2;}
  13184. rm -f "$ac_tmp/stdin"
  13185. case $ac_file in
  13186. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13187. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13188. esac \
  13189. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13190. ;;
  13191. :H)
  13192. #
  13193. # CONFIG_HEADER
  13194. #
  13195. if test x"$ac_file" != x-; then
  13196. {
  13197. $as_echo "/* $configure_input */" \
  13198. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13199. } >"$ac_tmp/config.h" \
  13200. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13201. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13203. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13204. else
  13205. rm -f "$ac_file"
  13206. mv "$ac_tmp/config.h" "$ac_file" \
  13207. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13208. fi
  13209. else
  13210. $as_echo "/* $configure_input */" \
  13211. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13212. || as_fn_error $? "could not create -" "$LINENO" 5
  13213. fi
  13214. # Compute "$ac_file"'s index in $config_headers.
  13215. _am_arg="$ac_file"
  13216. _am_stamp_count=1
  13217. for _am_header in $config_headers :; do
  13218. case $_am_header in
  13219. $_am_arg | $_am_arg:* )
  13220. break ;;
  13221. * )
  13222. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13223. esac
  13224. done
  13225. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13226. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13227. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13228. X"$_am_arg" : 'X\(//\)$' \| \
  13229. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13230. $as_echo X"$_am_arg" |
  13231. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13232. s//\1/
  13233. q
  13234. }
  13235. /^X\(\/\/\)[^/].*/{
  13236. s//\1/
  13237. q
  13238. }
  13239. /^X\(\/\/\)$/{
  13240. s//\1/
  13241. q
  13242. }
  13243. /^X\(\/\).*/{
  13244. s//\1/
  13245. q
  13246. }
  13247. s/.*/./; q'`/stamp-h$_am_stamp_count
  13248. ;;
  13249. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13250. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13251. ;;
  13252. esac
  13253. case $ac_file$ac_mode in
  13254. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13255. # Older Autoconf quotes --file arguments for eval, but not when files
  13256. # are listed without --file. Let's play safe and only enable the eval
  13257. # if we detect the quoting.
  13258. # TODO: see whether this extra hack can be removed once we start
  13259. # requiring Autoconf 2.70 or later.
  13260. case $CONFIG_FILES in #(
  13261. *\'*) :
  13262. eval set x "$CONFIG_FILES" ;; #(
  13263. *) :
  13264. set x $CONFIG_FILES ;; #(
  13265. *) :
  13266. ;;
  13267. esac
  13268. shift
  13269. # Used to flag and report bootstrapping failures.
  13270. am_rc=0
  13271. for am_mf
  13272. do
  13273. # Strip MF so we end up with the name of the file.
  13274. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  13275. # Check whether this is an Automake generated Makefile which includes
  13276. # dependency-tracking related rules and includes.
  13277. # Grep'ing the whole file directly is not great: AIX grep has a line
  13278. # limit of 2048, but all sed's we know have understand at least 4000.
  13279. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  13280. || continue
  13281. am_dirpart=`$as_dirname -- "$am_mf" ||
  13282. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13283. X"$am_mf" : 'X\(//\)[^/]' \| \
  13284. X"$am_mf" : 'X\(//\)$' \| \
  13285. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  13286. $as_echo X"$am_mf" |
  13287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13288. s//\1/
  13289. q
  13290. }
  13291. /^X\(\/\/\)[^/].*/{
  13292. s//\1/
  13293. q
  13294. }
  13295. /^X\(\/\/\)$/{
  13296. s//\1/
  13297. q
  13298. }
  13299. /^X\(\/\).*/{
  13300. s//\1/
  13301. q
  13302. }
  13303. s/.*/./; q'`
  13304. am_filepart=`$as_basename -- "$am_mf" ||
  13305. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  13306. X"$am_mf" : 'X\(//\)$' \| \
  13307. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  13308. $as_echo X/"$am_mf" |
  13309. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13310. s//\1/
  13311. q
  13312. }
  13313. /^X\/\(\/\/\)$/{
  13314. s//\1/
  13315. q
  13316. }
  13317. /^X\/\(\/\).*/{
  13318. s//\1/
  13319. q
  13320. }
  13321. s/.*/./; q'`
  13322. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  13323. && sed -e '/# am--include-marker/d' "$am_filepart" \
  13324. | $MAKE -f - am--depfiles" >&5
  13325. (cd "$am_dirpart" \
  13326. && sed -e '/# am--include-marker/d' "$am_filepart" \
  13327. | $MAKE -f - am--depfiles) >&5 2>&5
  13328. ac_status=$?
  13329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13330. (exit $ac_status); } || am_rc=$?
  13331. done
  13332. if test $am_rc -ne 0; then
  13333. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13335. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  13336. for automatic dependency tracking. Try re-running configure with the
  13337. '--disable-dependency-tracking' option to at least be able to build
  13338. the package (albeit without support for automatic dependency tracking).
  13339. See \`config.log' for more details" "$LINENO" 5; }
  13340. fi
  13341. { am_dirpart=; unset am_dirpart;}
  13342. { am_filepart=; unset am_filepart;}
  13343. { am_mf=; unset am_mf;}
  13344. { am_rc=; unset am_rc;}
  13345. rm -f conftest-deps.mk
  13346. }
  13347. ;;
  13348. "libtool":C)
  13349. # See if we are running on zsh, and set the options that allow our
  13350. # commands through without removal of \ escapes.
  13351. if test -n "${ZSH_VERSION+set}"; then
  13352. setopt NO_GLOB_SUBST
  13353. fi
  13354. cfgfile=${ofile}T
  13355. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13356. $RM "$cfgfile"
  13357. cat <<_LT_EOF >> "$cfgfile"
  13358. #! $SHELL
  13359. # Generated automatically by $as_me ($PACKAGE) $VERSION
  13360. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13361. # Provide generalized library-building support services.
  13362. # Written by Gordon Matzigkeit, 1996
  13363. # Copyright (C) 2014 Free Software Foundation, Inc.
  13364. # This is free software; see the source for copying conditions. There is NO
  13365. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13366. # GNU Libtool is free software; you can redistribute it and/or modify
  13367. # it under the terms of the GNU General Public License as published by
  13368. # the Free Software Foundation; either version 2 of of the License, or
  13369. # (at your option) any later version.
  13370. #
  13371. # As a special exception to the GNU General Public License, if you
  13372. # distribute this file as part of a program or library that is built
  13373. # using GNU Libtool, you may include this file under the same
  13374. # distribution terms that you use for the rest of that program.
  13375. #
  13376. # GNU Libtool is distributed in the hope that it will be useful, but
  13377. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13378. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13379. # GNU General Public License for more details.
  13380. #
  13381. # You should have received a copy of the GNU General Public License
  13382. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13383. # The names of the tagged configurations supported by this script.
  13384. available_tags=''
  13385. # Configured defaults for sys_lib_dlsearch_path munging.
  13386. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  13387. # ### BEGIN LIBTOOL CONFIG
  13388. # Which release of libtool.m4 was used?
  13389. macro_version=$macro_version
  13390. macro_revision=$macro_revision
  13391. # Whether or not to build shared libraries.
  13392. build_libtool_libs=$enable_shared
  13393. # Whether or not to build static libraries.
  13394. build_old_libs=$enable_static
  13395. # What type of objects to build.
  13396. pic_mode=$pic_mode
  13397. # Whether or not to optimize for fast installation.
  13398. fast_install=$enable_fast_install
  13399. # Shared archive member basename,for filename based shared library versioning on AIX.
  13400. shared_archive_member_spec=$shared_archive_member_spec
  13401. # Shell to use when invoking shell scripts.
  13402. SHELL=$lt_SHELL
  13403. # An echo program that protects backslashes.
  13404. ECHO=$lt_ECHO
  13405. # The PATH separator for the build system.
  13406. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  13407. # The host system.
  13408. host_alias=$host_alias
  13409. host=$host
  13410. host_os=$host_os
  13411. # The build system.
  13412. build_alias=$build_alias
  13413. build=$build
  13414. build_os=$build_os
  13415. # A sed program that does not truncate output.
  13416. SED=$lt_SED
  13417. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13418. Xsed="\$SED -e 1s/^X//"
  13419. # A grep program that handles long lines.
  13420. GREP=$lt_GREP
  13421. # An ERE matcher.
  13422. EGREP=$lt_EGREP
  13423. # A literal string matcher.
  13424. FGREP=$lt_FGREP
  13425. # A BSD- or MS-compatible name lister.
  13426. NM=$lt_NM
  13427. # Whether we need soft or hard links.
  13428. LN_S=$lt_LN_S
  13429. # What is the maximum length of a command?
  13430. max_cmd_len=$max_cmd_len
  13431. # Object file suffix (normally "o").
  13432. objext=$ac_objext
  13433. # Executable file suffix (normally "").
  13434. exeext=$exeext
  13435. # whether the shell understands "unset".
  13436. lt_unset=$lt_unset
  13437. # turn spaces into newlines.
  13438. SP2NL=$lt_lt_SP2NL
  13439. # turn newlines into spaces.
  13440. NL2SP=$lt_lt_NL2SP
  13441. # convert \$build file names to \$host format.
  13442. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13443. # convert \$build files to toolchain format.
  13444. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13445. # An object symbol dumper.
  13446. OBJDUMP=$lt_OBJDUMP
  13447. # Method to check whether dependent libraries are shared objects.
  13448. deplibs_check_method=$lt_deplibs_check_method
  13449. # Command to use when deplibs_check_method = "file_magic".
  13450. file_magic_cmd=$lt_file_magic_cmd
  13451. # How to find potential files when deplibs_check_method = "file_magic".
  13452. file_magic_glob=$lt_file_magic_glob
  13453. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13454. want_nocaseglob=$lt_want_nocaseglob
  13455. # DLL creation program.
  13456. DLLTOOL=$lt_DLLTOOL
  13457. # Command to associate shared and link libraries.
  13458. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13459. # The archiver.
  13460. AR=$lt_AR
  13461. # Flags to create an archive.
  13462. AR_FLAGS=$lt_AR_FLAGS
  13463. # How to feed a file listing to the archiver.
  13464. archiver_list_spec=$lt_archiver_list_spec
  13465. # A symbol stripping program.
  13466. STRIP=$lt_STRIP
  13467. # Commands used to install an old-style archive.
  13468. RANLIB=$lt_RANLIB
  13469. old_postinstall_cmds=$lt_old_postinstall_cmds
  13470. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13471. # Whether to use a lock for old archive extraction.
  13472. lock_old_archive_extraction=$lock_old_archive_extraction
  13473. # A C compiler.
  13474. LTCC=$lt_CC
  13475. # LTCC compiler flags.
  13476. LTCFLAGS=$lt_CFLAGS
  13477. # Take the output of nm and produce a listing of raw symbols and C names.
  13478. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13479. # Transform the output of nm in a proper C declaration.
  13480. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13481. # Transform the output of nm into a list of symbols to manually relocate.
  13482. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  13483. # Transform the output of nm in a C name address pair.
  13484. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13485. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13486. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13487. # The name lister interface.
  13488. nm_interface=$lt_lt_cv_nm_interface
  13489. # Specify filename containing input files for \$NM.
  13490. nm_file_list_spec=$lt_nm_file_list_spec
  13491. # The root where to search for dependent libraries,and where our libraries should be installed.
  13492. lt_sysroot=$lt_sysroot
  13493. # Command to truncate a binary pipe.
  13494. lt_truncate_bin=$lt_lt_cv_truncate_bin
  13495. # The name of the directory that contains temporary libtool files.
  13496. objdir=$objdir
  13497. # Used to examine libraries when file_magic_cmd begins with "file".
  13498. MAGIC_CMD=$MAGIC_CMD
  13499. # Must we lock files when doing compilation?
  13500. need_locks=$lt_need_locks
  13501. # Manifest tool.
  13502. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13503. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13504. DSYMUTIL=$lt_DSYMUTIL
  13505. # Tool to change global to local symbols on Mac OS X.
  13506. NMEDIT=$lt_NMEDIT
  13507. # Tool to manipulate fat objects and archives on Mac OS X.
  13508. LIPO=$lt_LIPO
  13509. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13510. OTOOL=$lt_OTOOL
  13511. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13512. OTOOL64=$lt_OTOOL64
  13513. # Old archive suffix (normally "a").
  13514. libext=$libext
  13515. # Shared library suffix (normally ".so").
  13516. shrext_cmds=$lt_shrext_cmds
  13517. # The commands to extract the exported symbol list from a shared archive.
  13518. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13519. # Variables whose values should be saved in libtool wrapper scripts and
  13520. # restored at link time.
  13521. variables_saved_for_relink=$lt_variables_saved_for_relink
  13522. # Do we need the "lib" prefix for modules?
  13523. need_lib_prefix=$need_lib_prefix
  13524. # Do we need a version for libraries?
  13525. need_version=$need_version
  13526. # Library versioning type.
  13527. version_type=$version_type
  13528. # Shared library runtime path variable.
  13529. runpath_var=$runpath_var
  13530. # Shared library path variable.
  13531. shlibpath_var=$shlibpath_var
  13532. # Is shlibpath searched before the hard-coded library search path?
  13533. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13534. # Format of library name prefix.
  13535. libname_spec=$lt_libname_spec
  13536. # List of archive names. First name is the real one, the rest are links.
  13537. # The last name is the one that the linker finds with -lNAME
  13538. library_names_spec=$lt_library_names_spec
  13539. # The coded name of the library, if different from the real name.
  13540. soname_spec=$lt_soname_spec
  13541. # Permission mode override for installation of shared libraries.
  13542. install_override_mode=$lt_install_override_mode
  13543. # Command to use after installation of a shared archive.
  13544. postinstall_cmds=$lt_postinstall_cmds
  13545. # Command to use after uninstallation of a shared archive.
  13546. postuninstall_cmds=$lt_postuninstall_cmds
  13547. # Commands used to finish a libtool library installation in a directory.
  13548. finish_cmds=$lt_finish_cmds
  13549. # As "finish_cmds", except a single script fragment to be evaled but
  13550. # not shown.
  13551. finish_eval=$lt_finish_eval
  13552. # Whether we should hardcode library paths into libraries.
  13553. hardcode_into_libs=$hardcode_into_libs
  13554. # Compile-time system search path for libraries.
  13555. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13556. # Detected run-time system search path for libraries.
  13557. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  13558. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  13559. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  13560. # Whether dlopen is supported.
  13561. dlopen_support=$enable_dlopen
  13562. # Whether dlopen of programs is supported.
  13563. dlopen_self=$enable_dlopen_self
  13564. # Whether dlopen of statically linked programs is supported.
  13565. dlopen_self_static=$enable_dlopen_self_static
  13566. # Commands to strip libraries.
  13567. old_striplib=$lt_old_striplib
  13568. striplib=$lt_striplib
  13569. # The linker used to build libraries.
  13570. LD=$lt_LD
  13571. # How to create reloadable object files.
  13572. reload_flag=$lt_reload_flag
  13573. reload_cmds=$lt_reload_cmds
  13574. # Commands used to build an old-style archive.
  13575. old_archive_cmds=$lt_old_archive_cmds
  13576. # A language specific compiler.
  13577. CC=$lt_compiler
  13578. # Is the compiler the GNU compiler?
  13579. with_gcc=$GCC
  13580. # Compiler flag to turn off builtin functions.
  13581. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13582. # Additional compiler flags for building library objects.
  13583. pic_flag=$lt_lt_prog_compiler_pic
  13584. # How to pass a linker flag through the compiler.
  13585. wl=$lt_lt_prog_compiler_wl
  13586. # Compiler flag to prevent dynamic linking.
  13587. link_static_flag=$lt_lt_prog_compiler_static
  13588. # Does compiler simultaneously support -c and -o options?
  13589. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13590. # Whether or not to add -lc for building shared libraries.
  13591. build_libtool_need_lc=$archive_cmds_need_lc
  13592. # Whether or not to disallow shared libs when runtime libs are static.
  13593. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13594. # Compiler flag to allow reflexive dlopens.
  13595. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13596. # Compiler flag to generate shared objects directly from archives.
  13597. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13598. # Whether the compiler copes with passing no objects directly.
  13599. compiler_needs_object=$lt_compiler_needs_object
  13600. # Create an old-style archive from a shared archive.
  13601. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13602. # Create a temporary old-style archive to link instead of a shared archive.
  13603. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13604. # Commands used to build a shared archive.
  13605. archive_cmds=$lt_archive_cmds
  13606. archive_expsym_cmds=$lt_archive_expsym_cmds
  13607. # Commands used to build a loadable module if different from building
  13608. # a shared archive.
  13609. module_cmds=$lt_module_cmds
  13610. module_expsym_cmds=$lt_module_expsym_cmds
  13611. # Whether we are building with GNU ld or not.
  13612. with_gnu_ld=$lt_with_gnu_ld
  13613. # Flag that allows shared libraries with undefined symbols to be built.
  13614. allow_undefined_flag=$lt_allow_undefined_flag
  13615. # Flag that enforces no undefined symbols.
  13616. no_undefined_flag=$lt_no_undefined_flag
  13617. # Flag to hardcode \$libdir into a binary during linking.
  13618. # This must work even if \$libdir does not exist
  13619. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13620. # Whether we need a single "-rpath" flag with a separated argument.
  13621. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13622. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13623. # DIR into the resulting binary.
  13624. hardcode_direct=$hardcode_direct
  13625. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13626. # DIR into the resulting binary and the resulting library dependency is
  13627. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  13628. # library is relocated.
  13629. hardcode_direct_absolute=$hardcode_direct_absolute
  13630. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13631. # into the resulting binary.
  13632. hardcode_minus_L=$hardcode_minus_L
  13633. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13634. # into the resulting binary.
  13635. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13636. # Set to "yes" if building a shared library automatically hardcodes DIR
  13637. # into the library and all subsequent libraries and executables linked
  13638. # against it.
  13639. hardcode_automatic=$hardcode_automatic
  13640. # Set to yes if linker adds runtime paths of dependent libraries
  13641. # to runtime path list.
  13642. inherit_rpath=$inherit_rpath
  13643. # Whether libtool must link a program against all its dependency libraries.
  13644. link_all_deplibs=$link_all_deplibs
  13645. # Set to "yes" if exported symbols are required.
  13646. always_export_symbols=$always_export_symbols
  13647. # The commands to list exported symbols.
  13648. export_symbols_cmds=$lt_export_symbols_cmds
  13649. # Symbols that should not be listed in the preloaded symbols.
  13650. exclude_expsyms=$lt_exclude_expsyms
  13651. # Symbols that must always be exported.
  13652. include_expsyms=$lt_include_expsyms
  13653. # Commands necessary for linking programs (against libraries) with templates.
  13654. prelink_cmds=$lt_prelink_cmds
  13655. # Commands necessary for finishing linking programs.
  13656. postlink_cmds=$lt_postlink_cmds
  13657. # Specify filename containing input files.
  13658. file_list_spec=$lt_file_list_spec
  13659. # How to hardcode a shared library path into an executable.
  13660. hardcode_action=$hardcode_action
  13661. # ### END LIBTOOL CONFIG
  13662. _LT_EOF
  13663. cat <<'_LT_EOF' >> "$cfgfile"
  13664. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  13665. # func_munge_path_list VARIABLE PATH
  13666. # -----------------------------------
  13667. # VARIABLE is name of variable containing _space_ separated list of
  13668. # directories to be munged by the contents of PATH, which is string
  13669. # having a format:
  13670. # "DIR[:DIR]:"
  13671. # string "DIR[ DIR]" will be prepended to VARIABLE
  13672. # ":DIR[:DIR]"
  13673. # string "DIR[ DIR]" will be appended to VARIABLE
  13674. # "DIRP[:DIRP]::[DIRA:]DIRA"
  13675. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  13676. # "DIRA[ DIRA]" will be appended to VARIABLE
  13677. # "DIR[:DIR]"
  13678. # VARIABLE will be replaced by "DIR[ DIR]"
  13679. func_munge_path_list ()
  13680. {
  13681. case x$2 in
  13682. x)
  13683. ;;
  13684. *:)
  13685. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  13686. ;;
  13687. x:*)
  13688. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  13689. ;;
  13690. *::*)
  13691. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  13692. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  13693. ;;
  13694. *)
  13695. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  13696. ;;
  13697. esac
  13698. }
  13699. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13700. func_cc_basename ()
  13701. {
  13702. for cc_temp in $*""; do
  13703. case $cc_temp in
  13704. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13705. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13706. \-*) ;;
  13707. *) break;;
  13708. esac
  13709. done
  13710. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13711. }
  13712. # ### END FUNCTIONS SHARED WITH CONFIGURE
  13713. _LT_EOF
  13714. case $host_os in
  13715. aix3*)
  13716. cat <<\_LT_EOF >> "$cfgfile"
  13717. # AIX sometimes has problems with the GCC collect2 program. For some
  13718. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13719. # vanish in a puff of smoke.
  13720. if test set != "${COLLECT_NAMES+set}"; then
  13721. COLLECT_NAMES=
  13722. export COLLECT_NAMES
  13723. fi
  13724. _LT_EOF
  13725. ;;
  13726. esac
  13727. ltmain=$ac_aux_dir/ltmain.sh
  13728. # We use sed instead of cat because bash on DJGPP gets confused if
  13729. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13730. # text mode, it properly converts lines to CR/LF. This bash problem
  13731. # is reportedly fixed, but why not run on old versions too?
  13732. sed '$q' "$ltmain" >> "$cfgfile" \
  13733. || (rm -f "$cfgfile"; exit 1)
  13734. mv -f "$cfgfile" "$ofile" ||
  13735. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13736. chmod +x "$ofile"
  13737. ;;
  13738. esac
  13739. done # for ac_tag
  13740. as_fn_exit 0
  13741. _ACEOF
  13742. ac_clean_files=$ac_clean_files_save
  13743. test $ac_write_fail = 0 ||
  13744. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13745. # configure is writing to config.log, and then calls config.status.
  13746. # config.status does its own redirection, appending to config.log.
  13747. # Unfortunately, on DOS this fails, as config.log is still kept open
  13748. # by configure, so config.status won't be able to write to it; its
  13749. # output is simply discarded. So we exec the FD to /dev/null,
  13750. # effectively closing config.log, so it can be properly (re)opened and
  13751. # appended to by config.status. When coming back to configure, we
  13752. # need to make the FD available again.
  13753. if test "$no_create" != yes; then
  13754. ac_cs_success=:
  13755. ac_config_status_args=
  13756. test "$silent" = yes &&
  13757. ac_config_status_args="$ac_config_status_args --quiet"
  13758. exec 5>/dev/null
  13759. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13760. exec 5>>config.log
  13761. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13762. # would make configure fail if this is the last instruction.
  13763. $ac_cs_success || as_fn_exit 1
  13764. fi
  13765. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13767. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13768. fi