output.2 417 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.68 for OPCUAServer 1.0.
  4. @%:@
  5. @%:@
  6. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. @%:@ Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in @%:@(
  135. *posix*) :
  136. set -o posix ;; @%:@(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in @%:@(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in @%:@ ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. @%:@ as_fn_unset VAR
  246. @%:@ ---------------
  247. @%:@ Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. @%:@ as_fn_set_status STATUS
  254. @%:@ -----------------------
  255. @%:@ Set @S|@? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } @%:@ as_fn_set_status
  260. @%:@ as_fn_exit STATUS
  261. @%:@ -----------------
  262. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } @%:@ as_fn_exit
  269. @%:@ as_fn_mkdir_p
  270. @%:@ -------------
  271. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } @%:@ as_fn_mkdir_p
  313. @%:@ as_fn_append VAR VALUE
  314. @%:@ ----------------------
  315. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  316. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  317. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  318. @%:@ implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. @%:@ as_fn_arith ARG...
  331. @%:@ ------------------
  332. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  333. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  334. @%:@ must be portable across @S|@(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. @%:@ ----------------------------------------
  348. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. @%:@ script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } @%:@ as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in @%:@(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in @%:@(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIB@&t@OBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME='OPCUAServer'
  520. PACKAGE_TARNAME='opcuaserver'
  521. PACKAGE_VERSION='1.0'
  522. PACKAGE_STRING='OPCUAServer 1.0'
  523. PACKAGE_BUGREPORT=''
  524. PACKAGE_URL=''
  525. # Factoring default headers for most tests.
  526. ac_includes_default="\
  527. #include <stdio.h>
  528. #ifdef HAVE_SYS_TYPES_H
  529. # include <sys/types.h>
  530. #endif
  531. #ifdef HAVE_SYS_STAT_H
  532. # include <sys/stat.h>
  533. #endif
  534. #ifdef STDC_HEADERS
  535. # include <stdlib.h>
  536. # include <stddef.h>
  537. #else
  538. # ifdef HAVE_STDLIB_H
  539. # include <stdlib.h>
  540. # endif
  541. #endif
  542. #ifdef HAVE_STRING_H
  543. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  544. # include <memory.h>
  545. # endif
  546. # include <string.h>
  547. #endif
  548. #ifdef HAVE_STRINGS_H
  549. # include <strings.h>
  550. #endif
  551. #ifdef HAVE_INTTYPES_H
  552. # include <inttypes.h>
  553. #endif
  554. #ifdef HAVE_STDINT_H
  555. # include <stdint.h>
  556. #endif
  557. #ifdef HAVE_UNISTD_H
  558. # include <unistd.h>
  559. #endif"
  560. ac_subst_vars='am__EXEEXT_FALSE
  561. am__EXEEXT_TRUE
  562. LTLIBOBJS
  563. LIB@&t@OBJS
  564. CPP
  565. OTOOL64
  566. OTOOL
  567. LIPO
  568. NMEDIT
  569. DSYMUTIL
  570. MANIFEST_TOOL
  571. RANLIB
  572. ac_ct_AR
  573. AR
  574. NM
  575. ac_ct_DUMPBIN
  576. DUMPBIN
  577. LD
  578. FGREP
  579. EGREP
  580. GREP
  581. SED
  582. LIBTOOL
  583. OBJDUMP
  584. DLLTOOL
  585. AS
  586. DEBUG_FALSE
  587. DEBUG_TRUE
  588. TARGET_LINUX_FALSE
  589. TARGET_LINUX_TRUE
  590. TARGET_WIN_FALSE
  591. TARGET_WIN_TRUE
  592. HAVE_CHECK_FALSE
  593. HAVE_CHECK_TRUE
  594. CHECK_LIBS
  595. CHECK_CFLAGS
  596. PKG_CONFIG_LIBDIR
  597. PKG_CONFIG_PATH
  598. PKG_CONFIG
  599. LN_S
  600. am__fastdepCC_FALSE
  601. am__fastdepCC_TRUE
  602. CCDEPMODE
  603. am__nodep
  604. AMDEPBACKSLASH
  605. AMDEP_FALSE
  606. AMDEP_TRUE
  607. am__quote
  608. am__include
  609. DEPDIR
  610. OBJEXT
  611. EXEEXT
  612. ac_ct_CC
  613. CPPFLAGS
  614. LDFLAGS
  615. CFLAGS
  616. CC
  617. am__untar
  618. am__tar
  619. AMTAR
  620. am__leading_dot
  621. SET_MAKE
  622. AWK
  623. mkdir_p
  624. MKDIR_P
  625. INSTALL_STRIP_PROGRAM
  626. STRIP
  627. install_sh
  628. MAKEINFO
  629. AUTOHEADER
  630. AUTOMAKE
  631. AUTOCONF
  632. ACLOCAL
  633. VERSION
  634. PACKAGE
  635. CYGPATH_W
  636. am__isrc
  637. INSTALL_DATA
  638. INSTALL_SCRIPT
  639. INSTALL_PROGRAM
  640. target_os
  641. target_vendor
  642. target_cpu
  643. target
  644. host_os
  645. host_vendor
  646. host_cpu
  647. host
  648. build_os
  649. build_vendor
  650. build_cpu
  651. build
  652. target_alias
  653. host_alias
  654. build_alias
  655. LIBS
  656. ECHO_T
  657. ECHO_N
  658. ECHO_C
  659. DEFS
  660. mandir
  661. localedir
  662. libdir
  663. psdir
  664. pdfdir
  665. dvidir
  666. htmldir
  667. infodir
  668. docdir
  669. oldincludedir
  670. includedir
  671. localstatedir
  672. sharedstatedir
  673. sysconfdir
  674. datadir
  675. datarootdir
  676. libexecdir
  677. sbindir
  678. bindir
  679. program_transform_name
  680. prefix
  681. exec_prefix
  682. PACKAGE_URL
  683. PACKAGE_BUGREPORT
  684. PACKAGE_STRING
  685. PACKAGE_VERSION
  686. PACKAGE_TARNAME
  687. PACKAGE_NAME
  688. PATH_SEPARATOR
  689. SHELL'
  690. ac_subst_files=''
  691. ac_user_opts='
  692. enable_option_checking
  693. enable_dependency_tracking
  694. enable_debug
  695. enable_shared
  696. enable_static
  697. with_pic
  698. enable_fast_install
  699. with_gnu_ld
  700. with_sysroot
  701. enable_libtool_lock
  702. '
  703. ac_precious_vars='build_alias
  704. host_alias
  705. target_alias
  706. CC
  707. CFLAGS
  708. LDFLAGS
  709. LIBS
  710. CPPFLAGS
  711. PKG_CONFIG
  712. PKG_CONFIG_PATH
  713. PKG_CONFIG_LIBDIR
  714. CHECK_CFLAGS
  715. CHECK_LIBS
  716. CPP'
  717. # Initialize some variables set by options.
  718. ac_init_help=
  719. ac_init_version=false
  720. ac_unrecognized_opts=
  721. ac_unrecognized_sep=
  722. # The variables have the same names as the options, with
  723. # dashes changed to underlines.
  724. cache_file=/dev/null
  725. exec_prefix=NONE
  726. no_create=
  727. no_recursion=
  728. prefix=NONE
  729. program_prefix=NONE
  730. program_suffix=NONE
  731. program_transform_name=s,x,x,
  732. silent=
  733. site=
  734. srcdir=
  735. verbose=
  736. x_includes=NONE
  737. x_libraries=NONE
  738. # Installation directory options.
  739. # These are left unexpanded so users can "make install exec_prefix=/foo"
  740. # and all the variables that are supposed to be based on exec_prefix
  741. # by default will actually change.
  742. # Use braces instead of parens because sh, perl, etc. also accept them.
  743. # (The list follows the same order as the GNU Coding Standards.)
  744. bindir='${exec_prefix}/bin'
  745. sbindir='${exec_prefix}/sbin'
  746. libexecdir='${exec_prefix}/libexec'
  747. datarootdir='${prefix}/share'
  748. datadir='${datarootdir}'
  749. sysconfdir='${prefix}/etc'
  750. sharedstatedir='${prefix}/com'
  751. localstatedir='${prefix}/var'
  752. includedir='${prefix}/include'
  753. oldincludedir='/usr/include'
  754. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  755. infodir='${datarootdir}/info'
  756. htmldir='${docdir}'
  757. dvidir='${docdir}'
  758. pdfdir='${docdir}'
  759. psdir='${docdir}'
  760. libdir='${exec_prefix}/lib'
  761. localedir='${datarootdir}/locale'
  762. mandir='${datarootdir}/man'
  763. ac_prev=
  764. ac_dashdash=
  765. for ac_option
  766. do
  767. # If the previous option needs an argument, assign it.
  768. if test -n "$ac_prev"; then
  769. eval $ac_prev=\$ac_option
  770. ac_prev=
  771. continue
  772. fi
  773. case $ac_option in
  774. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  775. *=) ac_optarg= ;;
  776. *) ac_optarg=yes ;;
  777. esac
  778. # Accept the important Cygnus configure options, so we can diagnose typos.
  779. case $ac_dashdash$ac_option in
  780. --)
  781. ac_dashdash=yes ;;
  782. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  783. ac_prev=bindir ;;
  784. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  785. bindir=$ac_optarg ;;
  786. -build | --build | --buil | --bui | --bu)
  787. ac_prev=build_alias ;;
  788. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  789. build_alias=$ac_optarg ;;
  790. -cache-file | --cache-file | --cache-fil | --cache-fi \
  791. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  792. ac_prev=cache_file ;;
  793. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  794. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  795. cache_file=$ac_optarg ;;
  796. --config-cache | -C)
  797. cache_file=config.cache ;;
  798. -datadir | --datadir | --datadi | --datad)
  799. ac_prev=datadir ;;
  800. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  801. datadir=$ac_optarg ;;
  802. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  803. | --dataroo | --dataro | --datar)
  804. ac_prev=datarootdir ;;
  805. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  806. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  807. datarootdir=$ac_optarg ;;
  808. -disable-* | --disable-*)
  809. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  810. # Reject names that are not valid shell variable names.
  811. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  812. as_fn_error $? "invalid feature name: $ac_useropt"
  813. ac_useropt_orig=$ac_useropt
  814. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  815. case $ac_user_opts in
  816. *"
  817. "enable_$ac_useropt"
  818. "*) ;;
  819. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  820. ac_unrecognized_sep=', ';;
  821. esac
  822. eval enable_$ac_useropt=no ;;
  823. -docdir | --docdir | --docdi | --doc | --do)
  824. ac_prev=docdir ;;
  825. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  826. docdir=$ac_optarg ;;
  827. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  828. ac_prev=dvidir ;;
  829. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  830. dvidir=$ac_optarg ;;
  831. -enable-* | --enable-*)
  832. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  833. # Reject names that are not valid shell variable names.
  834. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  835. as_fn_error $? "invalid feature name: $ac_useropt"
  836. ac_useropt_orig=$ac_useropt
  837. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  838. case $ac_user_opts in
  839. *"
  840. "enable_$ac_useropt"
  841. "*) ;;
  842. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  843. ac_unrecognized_sep=', ';;
  844. esac
  845. eval enable_$ac_useropt=\$ac_optarg ;;
  846. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  847. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  848. | --exec | --exe | --ex)
  849. ac_prev=exec_prefix ;;
  850. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  851. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  852. | --exec=* | --exe=* | --ex=*)
  853. exec_prefix=$ac_optarg ;;
  854. -gas | --gas | --ga | --g)
  855. # Obsolete; use --with-gas.
  856. with_gas=yes ;;
  857. -help | --help | --hel | --he | -h)
  858. ac_init_help=long ;;
  859. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  860. ac_init_help=recursive ;;
  861. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  862. ac_init_help=short ;;
  863. -host | --host | --hos | --ho)
  864. ac_prev=host_alias ;;
  865. -host=* | --host=* | --hos=* | --ho=*)
  866. host_alias=$ac_optarg ;;
  867. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  868. ac_prev=htmldir ;;
  869. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  870. | --ht=*)
  871. htmldir=$ac_optarg ;;
  872. -includedir | --includedir | --includedi | --included | --include \
  873. | --includ | --inclu | --incl | --inc)
  874. ac_prev=includedir ;;
  875. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  876. | --includ=* | --inclu=* | --incl=* | --inc=*)
  877. includedir=$ac_optarg ;;
  878. -infodir | --infodir | --infodi | --infod | --info | --inf)
  879. ac_prev=infodir ;;
  880. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  881. infodir=$ac_optarg ;;
  882. -libdir | --libdir | --libdi | --libd)
  883. ac_prev=libdir ;;
  884. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  885. libdir=$ac_optarg ;;
  886. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  887. | --libexe | --libex | --libe)
  888. ac_prev=libexecdir ;;
  889. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  890. | --libexe=* | --libex=* | --libe=*)
  891. libexecdir=$ac_optarg ;;
  892. -localedir | --localedir | --localedi | --localed | --locale)
  893. ac_prev=localedir ;;
  894. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  895. localedir=$ac_optarg ;;
  896. -localstatedir | --localstatedir | --localstatedi | --localstated \
  897. | --localstate | --localstat | --localsta | --localst | --locals)
  898. ac_prev=localstatedir ;;
  899. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  900. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  901. localstatedir=$ac_optarg ;;
  902. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  903. ac_prev=mandir ;;
  904. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  905. mandir=$ac_optarg ;;
  906. -nfp | --nfp | --nf)
  907. # Obsolete; use --without-fp.
  908. with_fp=no ;;
  909. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  910. | --no-cr | --no-c | -n)
  911. no_create=yes ;;
  912. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  913. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  914. no_recursion=yes ;;
  915. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  916. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  917. | --oldin | --oldi | --old | --ol | --o)
  918. ac_prev=oldincludedir ;;
  919. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  920. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  921. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  922. oldincludedir=$ac_optarg ;;
  923. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  924. ac_prev=prefix ;;
  925. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  926. prefix=$ac_optarg ;;
  927. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  928. | --program-pre | --program-pr | --program-p)
  929. ac_prev=program_prefix ;;
  930. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  931. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  932. program_prefix=$ac_optarg ;;
  933. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  934. | --program-suf | --program-su | --program-s)
  935. ac_prev=program_suffix ;;
  936. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  937. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  938. program_suffix=$ac_optarg ;;
  939. -program-transform-name | --program-transform-name \
  940. | --program-transform-nam | --program-transform-na \
  941. | --program-transform-n | --program-transform- \
  942. | --program-transform | --program-transfor \
  943. | --program-transfo | --program-transf \
  944. | --program-trans | --program-tran \
  945. | --progr-tra | --program-tr | --program-t)
  946. ac_prev=program_transform_name ;;
  947. -program-transform-name=* | --program-transform-name=* \
  948. | --program-transform-nam=* | --program-transform-na=* \
  949. | --program-transform-n=* | --program-transform-=* \
  950. | --program-transform=* | --program-transfor=* \
  951. | --program-transfo=* | --program-transf=* \
  952. | --program-trans=* | --program-tran=* \
  953. | --progr-tra=* | --program-tr=* | --program-t=*)
  954. program_transform_name=$ac_optarg ;;
  955. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  956. ac_prev=pdfdir ;;
  957. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  958. pdfdir=$ac_optarg ;;
  959. -psdir | --psdir | --psdi | --psd | --ps)
  960. ac_prev=psdir ;;
  961. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  962. psdir=$ac_optarg ;;
  963. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  964. | -silent | --silent | --silen | --sile | --sil)
  965. silent=yes ;;
  966. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  967. ac_prev=sbindir ;;
  968. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  969. | --sbi=* | --sb=*)
  970. sbindir=$ac_optarg ;;
  971. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  972. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  973. | --sharedst | --shareds | --shared | --share | --shar \
  974. | --sha | --sh)
  975. ac_prev=sharedstatedir ;;
  976. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  977. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  978. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  979. | --sha=* | --sh=*)
  980. sharedstatedir=$ac_optarg ;;
  981. -site | --site | --sit)
  982. ac_prev=site ;;
  983. -site=* | --site=* | --sit=*)
  984. site=$ac_optarg ;;
  985. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  986. ac_prev=srcdir ;;
  987. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  988. srcdir=$ac_optarg ;;
  989. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  990. | --syscon | --sysco | --sysc | --sys | --sy)
  991. ac_prev=sysconfdir ;;
  992. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  993. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  994. sysconfdir=$ac_optarg ;;
  995. -target | --target | --targe | --targ | --tar | --ta | --t)
  996. ac_prev=target_alias ;;
  997. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  998. target_alias=$ac_optarg ;;
  999. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1000. verbose=yes ;;
  1001. -version | --version | --versio | --versi | --vers | -V)
  1002. ac_init_version=: ;;
  1003. -with-* | --with-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid package name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "with_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval with_$ac_useropt=\$ac_optarg ;;
  1018. -without-* | --without-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error $? "invalid package name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "with_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval with_$ac_useropt=no ;;
  1033. --x)
  1034. # Obsolete; use --with-x.
  1035. with_x=yes ;;
  1036. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1037. | --x-incl | --x-inc | --x-in | --x-i)
  1038. ac_prev=x_includes ;;
  1039. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1040. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1041. x_includes=$ac_optarg ;;
  1042. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1043. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1044. ac_prev=x_libraries ;;
  1045. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1046. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1047. x_libraries=$ac_optarg ;;
  1048. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1049. Try \`$0 --help' for more information"
  1050. ;;
  1051. *=*)
  1052. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1053. # Reject names that are not valid shell variable names.
  1054. case $ac_envvar in #(
  1055. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1056. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1057. esac
  1058. eval $ac_envvar=\$ac_optarg
  1059. export $ac_envvar ;;
  1060. *)
  1061. # FIXME: should be removed in autoconf 3.0.
  1062. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1063. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1064. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1065. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1066. ;;
  1067. esac
  1068. done
  1069. if test -n "$ac_prev"; then
  1070. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1071. as_fn_error $? "missing argument to $ac_option"
  1072. fi
  1073. if test -n "$ac_unrecognized_opts"; then
  1074. case $enable_option_checking in
  1075. no) ;;
  1076. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1077. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1078. esac
  1079. fi
  1080. # Check all directory arguments for consistency.
  1081. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1082. datadir sysconfdir sharedstatedir localstatedir includedir \
  1083. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1084. libdir localedir mandir
  1085. do
  1086. eval ac_val=\$$ac_var
  1087. # Remove trailing slashes.
  1088. case $ac_val in
  1089. */ )
  1090. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1091. eval $ac_var=\$ac_val;;
  1092. esac
  1093. # Be sure to have absolute directory names.
  1094. case $ac_val in
  1095. [\\/$]* | ?:[\\/]* ) continue;;
  1096. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1097. esac
  1098. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1099. done
  1100. # There might be people who depend on the old broken behavior: `$host'
  1101. # used to hold the argument of --host etc.
  1102. # FIXME: To remove some day.
  1103. build=$build_alias
  1104. host=$host_alias
  1105. target=$target_alias
  1106. # FIXME: To remove some day.
  1107. if test "x$host_alias" != x; then
  1108. if test "x$build_alias" = x; then
  1109. cross_compiling=maybe
  1110. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1111. If a cross compiler is detected then cross compile mode will be used" >&2
  1112. elif test "x$build_alias" != "x$host_alias"; then
  1113. cross_compiling=yes
  1114. fi
  1115. fi
  1116. ac_tool_prefix=
  1117. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1118. test "$silent" = yes && exec 6>/dev/null
  1119. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1120. ac_ls_di=`ls -di .` &&
  1121. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1122. as_fn_error $? "working directory cannot be determined"
  1123. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1124. as_fn_error $? "pwd does not report name of working directory"
  1125. # Find the source files, if location was not specified.
  1126. if test -z "$srcdir"; then
  1127. ac_srcdir_defaulted=yes
  1128. # Try the directory containing this script, then the parent directory.
  1129. ac_confdir=`$as_dirname -- "$as_myself" ||
  1130. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1131. X"$as_myself" : 'X\(//\)[^/]' \| \
  1132. X"$as_myself" : 'X\(//\)$' \| \
  1133. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1134. $as_echo X"$as_myself" |
  1135. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\/\)[^/].*/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\/\)$/{
  1144. s//\1/
  1145. q
  1146. }
  1147. /^X\(\/\).*/{
  1148. s//\1/
  1149. q
  1150. }
  1151. s/.*/./; q'`
  1152. srcdir=$ac_confdir
  1153. if test ! -r "$srcdir/$ac_unique_file"; then
  1154. srcdir=..
  1155. fi
  1156. else
  1157. ac_srcdir_defaulted=no
  1158. fi
  1159. if test ! -r "$srcdir/$ac_unique_file"; then
  1160. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1161. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1162. fi
  1163. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1164. ac_abs_confdir=`(
  1165. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1166. pwd)`
  1167. # When building in place, set srcdir=.
  1168. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1169. srcdir=.
  1170. fi
  1171. # Remove unnecessary trailing slashes from srcdir.
  1172. # Double slashes in file names in object file debugging info
  1173. # mess up M-x gdb in Emacs.
  1174. case $srcdir in
  1175. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1176. esac
  1177. for ac_var in $ac_precious_vars; do
  1178. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1179. eval ac_env_${ac_var}_value=\$${ac_var}
  1180. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1181. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1182. done
  1183. #
  1184. # Report the --help message.
  1185. #
  1186. if test "$ac_init_help" = "long"; then
  1187. # Omit some internal or obsolete options to make the list less imposing.
  1188. # This message is too long to be a string in the A/UX 3.1 sh.
  1189. cat <<_ACEOF
  1190. \`configure' configures OPCUAServer 1.0 to adapt to many kinds of systems.
  1191. Usage: $0 [OPTION]... [VAR=VALUE]...
  1192. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1193. VAR=VALUE. See below for descriptions of some of the useful variables.
  1194. Defaults for the options are specified in brackets.
  1195. Configuration:
  1196. -h, --help display this help and exit
  1197. --help=short display options specific to this package
  1198. --help=recursive display the short help of all the included packages
  1199. -V, --version display version information and exit
  1200. -q, --quiet, --silent do not print \`checking ...' messages
  1201. --cache-file=FILE cache test results in FILE [disabled]
  1202. -C, --config-cache alias for \`--cache-file=config.cache'
  1203. -n, --no-create do not create output files
  1204. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1205. Installation directories:
  1206. --prefix=PREFIX install architecture-independent files in PREFIX
  1207. @<:@@S|@ac_default_prefix@:>@
  1208. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1209. @<:@PREFIX@:>@
  1210. By default, \`make install' will install all the files in
  1211. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1212. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1213. for instance \`--prefix=\$HOME'.
  1214. For better control, use the options below.
  1215. Fine tuning of the installation directories:
  1216. --bindir=DIR user executables [EPREFIX/bin]
  1217. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1218. --libexecdir=DIR program executables [EPREFIX/libexec]
  1219. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1220. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1221. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1222. --libdir=DIR object code libraries [EPREFIX/lib]
  1223. --includedir=DIR C header files [PREFIX/include]
  1224. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1225. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1226. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1227. --infodir=DIR info documentation [DATAROOTDIR/info]
  1228. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1229. --mandir=DIR man documentation [DATAROOTDIR/man]
  1230. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/opcuaserver@:>@
  1231. --htmldir=DIR html documentation [DOCDIR]
  1232. --dvidir=DIR dvi documentation [DOCDIR]
  1233. --pdfdir=DIR pdf documentation [DOCDIR]
  1234. --psdir=DIR ps documentation [DOCDIR]
  1235. _ACEOF
  1236. cat <<\_ACEOF
  1237. Program names:
  1238. --program-prefix=PREFIX prepend PREFIX to installed program names
  1239. --program-suffix=SUFFIX append SUFFIX to installed program names
  1240. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1241. System types:
  1242. --build=BUILD configure for building on BUILD [guessed]
  1243. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1244. --target=TARGET configure for building compilers for TARGET [HOST]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of OPCUAServer 1.0:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --disable-dependency-tracking speeds up one-time build
  1257. --enable-dependency-tracking do not reject slow dependency extractors
  1258. --enable-debug enable debugging, default: no
  1259. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1260. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1261. --enable-fast-install@<:@=PKGS@:>@
  1262. optimize for fast installation @<:@default=yes@:>@
  1263. --disable-libtool-lock avoid locking (might break parallel builds)
  1264. Optional Packages:
  1265. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1266. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1267. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1268. both@:>@
  1269. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1270. --with-sysroot=DIR Search for dependent libraries within DIR
  1271. (or the compiler's sysroot if not specified).
  1272. Some influential environment variables:
  1273. CC C compiler command
  1274. CFLAGS C compiler flags
  1275. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1276. nonstandard directory <lib dir>
  1277. LIBS libraries to pass to the linker, e.g. -l<library>
  1278. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1279. you have headers in a nonstandard directory <include dir>
  1280. PKG_CONFIG path to pkg-config utility
  1281. PKG_CONFIG_PATH
  1282. directories to add to pkg-config's search path
  1283. PKG_CONFIG_LIBDIR
  1284. path overriding pkg-config's built-in search path
  1285. CHECK_CFLAGS
  1286. C compiler flags for CHECK, overriding pkg-config
  1287. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1288. CPP C preprocessor
  1289. Use these variables to override the choices made by `configure' or to help
  1290. it to find libraries and programs with nonstandard names/locations.
  1291. Report bugs to the package provider.
  1292. _ACEOF
  1293. ac_status=$?
  1294. fi
  1295. if test "$ac_init_help" = "recursive"; then
  1296. # If there are subdirs, report their specific --help.
  1297. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1298. test -d "$ac_dir" ||
  1299. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1300. continue
  1301. ac_builddir=.
  1302. case "$ac_dir" in
  1303. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1304. *)
  1305. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1306. # A ".." for each directory in $ac_dir_suffix.
  1307. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1308. case $ac_top_builddir_sub in
  1309. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1310. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1311. esac ;;
  1312. esac
  1313. ac_abs_top_builddir=$ac_pwd
  1314. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1315. # for backward compatibility:
  1316. ac_top_builddir=$ac_top_build_prefix
  1317. case $srcdir in
  1318. .) # We are building in place.
  1319. ac_srcdir=.
  1320. ac_top_srcdir=$ac_top_builddir_sub
  1321. ac_abs_top_srcdir=$ac_pwd ;;
  1322. [\\/]* | ?:[\\/]* ) # Absolute name.
  1323. ac_srcdir=$srcdir$ac_dir_suffix;
  1324. ac_top_srcdir=$srcdir
  1325. ac_abs_top_srcdir=$srcdir ;;
  1326. *) # Relative name.
  1327. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1328. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1329. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1330. esac
  1331. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1332. cd "$ac_dir" || { ac_status=$?; continue; }
  1333. # Check for guested configure.
  1334. if test -f "$ac_srcdir/configure.gnu"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1337. elif test -f "$ac_srcdir/configure"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure" --help=recursive
  1340. else
  1341. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1342. fi || ac_status=$?
  1343. cd "$ac_pwd" || { ac_status=$?; break; }
  1344. done
  1345. fi
  1346. test -n "$ac_init_help" && exit $ac_status
  1347. if $ac_init_version; then
  1348. cat <<\_ACEOF
  1349. OPCUAServer configure 1.0
  1350. generated by GNU Autoconf 2.68
  1351. Copyright (C) 2010 Free Software Foundation, Inc.
  1352. This configure script is free software; the Free Software Foundation
  1353. gives unlimited permission to copy, distribute and modify it.
  1354. _ACEOF
  1355. exit
  1356. fi
  1357. ## ------------------------ ##
  1358. ## Autoconf initialization. ##
  1359. ## ------------------------ ##
  1360. @%:@ ac_fn_c_try_compile LINENO
  1361. @%:@ --------------------------
  1362. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1363. ac_fn_c_try_compile ()
  1364. {
  1365. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1366. rm -f conftest.$ac_objext
  1367. if { { ac_try="$ac_compile"
  1368. case "(($ac_try" in
  1369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1370. *) ac_try_echo=$ac_try;;
  1371. esac
  1372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1373. $as_echo "$ac_try_echo"; } >&5
  1374. (eval "$ac_compile") 2>conftest.err
  1375. ac_status=$?
  1376. if test -s conftest.err; then
  1377. grep -v '^ *+' conftest.err >conftest.er1
  1378. cat conftest.er1 >&5
  1379. mv -f conftest.er1 conftest.err
  1380. fi
  1381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1382. test $ac_status = 0; } && {
  1383. test -z "$ac_c_werror_flag" ||
  1384. test ! -s conftest.err
  1385. } && test -s conftest.$ac_objext; then :
  1386. ac_retval=0
  1387. else
  1388. $as_echo "$as_me: failed program was:" >&5
  1389. sed 's/^/| /' conftest.$ac_ext >&5
  1390. ac_retval=1
  1391. fi
  1392. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1393. as_fn_set_status $ac_retval
  1394. } @%:@ ac_fn_c_try_compile
  1395. @%:@ ac_fn_c_try_link LINENO
  1396. @%:@ -----------------------
  1397. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1398. ac_fn_c_try_link ()
  1399. {
  1400. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1401. rm -f conftest.$ac_objext conftest$ac_exeext
  1402. if { { ac_try="$ac_link"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_link") 2>conftest.err
  1410. ac_status=$?
  1411. if test -s conftest.err; then
  1412. grep -v '^ *+' conftest.err >conftest.er1
  1413. cat conftest.er1 >&5
  1414. mv -f conftest.er1 conftest.err
  1415. fi
  1416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1417. test $ac_status = 0; } && {
  1418. test -z "$ac_c_werror_flag" ||
  1419. test ! -s conftest.err
  1420. } && test -s conftest$ac_exeext && {
  1421. test "$cross_compiling" = yes ||
  1422. $as_test_x conftest$ac_exeext
  1423. }; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=1
  1429. fi
  1430. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1431. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1432. # interfere with the next link command; also delete a directory that is
  1433. # left behind by Apple's compiler. We do this before executing the actions.
  1434. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1435. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1436. as_fn_set_status $ac_retval
  1437. } @%:@ ac_fn_c_try_link
  1438. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1439. @%:@ -------------------------------------------------------
  1440. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1441. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1442. ac_fn_c_check_header_compile ()
  1443. {
  1444. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1446. $as_echo_n "checking for $2... " >&6; }
  1447. if eval \${$3+:} false; then :
  1448. $as_echo_n "(cached) " >&6
  1449. else
  1450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1451. /* end confdefs.h. */
  1452. $4
  1453. @%:@include <$2>
  1454. _ACEOF
  1455. if ac_fn_c_try_compile "$LINENO"; then :
  1456. eval "$3=yes"
  1457. else
  1458. eval "$3=no"
  1459. fi
  1460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1461. fi
  1462. eval ac_res=\$$3
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1464. $as_echo "$ac_res" >&6; }
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. } @%:@ ac_fn_c_check_header_compile
  1467. @%:@ ac_fn_c_try_cpp LINENO
  1468. @%:@ ----------------------
  1469. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1470. ac_fn_c_try_cpp ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1474. case "(($ac_try" in
  1475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1476. *) ac_try_echo=$ac_try;;
  1477. esac
  1478. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1479. $as_echo "$ac_try_echo"; } >&5
  1480. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1481. ac_status=$?
  1482. if test -s conftest.err; then
  1483. grep -v '^ *+' conftest.err >conftest.er1
  1484. cat conftest.er1 >&5
  1485. mv -f conftest.er1 conftest.err
  1486. fi
  1487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1488. test $ac_status = 0; } > conftest.i && {
  1489. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1490. test ! -s conftest.err
  1491. }; then :
  1492. ac_retval=0
  1493. else
  1494. $as_echo "$as_me: failed program was:" >&5
  1495. sed 's/^/| /' conftest.$ac_ext >&5
  1496. ac_retval=1
  1497. fi
  1498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1499. as_fn_set_status $ac_retval
  1500. } @%:@ ac_fn_c_try_cpp
  1501. @%:@ ac_fn_c_try_run LINENO
  1502. @%:@ ----------------------
  1503. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1504. @%:@ that executables *can* be run.
  1505. ac_fn_c_try_run ()
  1506. {
  1507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508. if { { ac_try="$ac_link"
  1509. case "(($ac_try" in
  1510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1511. *) ac_try_echo=$ac_try;;
  1512. esac
  1513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1514. $as_echo "$ac_try_echo"; } >&5
  1515. (eval "$ac_link") 2>&5
  1516. ac_status=$?
  1517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1518. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1519. { { case "(($ac_try" in
  1520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1521. *) ac_try_echo=$ac_try;;
  1522. esac
  1523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1524. $as_echo "$ac_try_echo"; } >&5
  1525. (eval "$ac_try") 2>&5
  1526. ac_status=$?
  1527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1528. test $ac_status = 0; }; }; then :
  1529. ac_retval=0
  1530. else
  1531. $as_echo "$as_me: program exited with status $ac_status" >&5
  1532. $as_echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. ac_retval=$ac_status
  1535. fi
  1536. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1537. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1538. as_fn_set_status $ac_retval
  1539. } @%:@ ac_fn_c_try_run
  1540. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1541. @%:@ ----------------------------------
  1542. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1543. ac_fn_c_check_func ()
  1544. {
  1545. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1547. $as_echo_n "checking for $2... " >&6; }
  1548. if eval \${$3+:} false; then :
  1549. $as_echo_n "(cached) " >&6
  1550. else
  1551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1552. /* end confdefs.h. */
  1553. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1554. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1555. #define $2 innocuous_$2
  1556. /* System header to define __stub macros and hopefully few prototypes,
  1557. which can conflict with char $2 (); below.
  1558. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1559. <limits.h> exists even on freestanding compilers. */
  1560. #ifdef __STDC__
  1561. # include <limits.h>
  1562. #else
  1563. # include <assert.h>
  1564. #endif
  1565. #undef $2
  1566. /* Override any GCC internal prototype to avoid an error.
  1567. Use char because int might match the return type of a GCC
  1568. builtin and then its argument prototype would still apply. */
  1569. #ifdef __cplusplus
  1570. extern "C"
  1571. #endif
  1572. char $2 ();
  1573. /* The GNU C library defines this for functions which it implements
  1574. to always fail with ENOSYS. Some functions are actually named
  1575. something starting with __ and the normal name is an alias. */
  1576. #if defined __stub_$2 || defined __stub___$2
  1577. choke me
  1578. #endif
  1579. int
  1580. main ()
  1581. {
  1582. return $2 ();
  1583. ;
  1584. return 0;
  1585. }
  1586. _ACEOF
  1587. if ac_fn_c_try_link "$LINENO"; then :
  1588. eval "$3=yes"
  1589. else
  1590. eval "$3=no"
  1591. fi
  1592. rm -f core conftest.err conftest.$ac_objext \
  1593. conftest$ac_exeext conftest.$ac_ext
  1594. fi
  1595. eval ac_res=\$$3
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1597. $as_echo "$ac_res" >&6; }
  1598. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1599. } @%:@ ac_fn_c_check_func
  1600. cat >config.log <<_ACEOF
  1601. This file contains any messages produced by compilers while
  1602. running configure, to aid debugging if configure makes a mistake.
  1603. It was created by OPCUAServer $as_me 1.0, which was
  1604. generated by GNU Autoconf 2.68. Invocation command line was
  1605. $ $0 $@
  1606. _ACEOF
  1607. exec 5>>config.log
  1608. {
  1609. cat <<_ASUNAME
  1610. ## --------- ##
  1611. ## Platform. ##
  1612. ## --------- ##
  1613. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1614. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1615. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1616. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1617. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1618. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1619. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1620. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1621. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1622. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1623. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1624. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1625. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1626. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1627. _ASUNAME
  1628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1629. for as_dir in $PATH
  1630. do
  1631. IFS=$as_save_IFS
  1632. test -z "$as_dir" && as_dir=.
  1633. $as_echo "PATH: $as_dir"
  1634. done
  1635. IFS=$as_save_IFS
  1636. } >&5
  1637. cat >&5 <<_ACEOF
  1638. ## ----------- ##
  1639. ## Core tests. ##
  1640. ## ----------- ##
  1641. _ACEOF
  1642. # Keep a trace of the command line.
  1643. # Strip out --no-create and --no-recursion so they do not pile up.
  1644. # Strip out --silent because we don't want to record it for future runs.
  1645. # Also quote any args containing shell meta-characters.
  1646. # Make two passes to allow for proper duplicate-argument suppression.
  1647. ac_configure_args=
  1648. ac_configure_args0=
  1649. ac_configure_args1=
  1650. ac_must_keep_next=false
  1651. for ac_pass in 1 2
  1652. do
  1653. for ac_arg
  1654. do
  1655. case $ac_arg in
  1656. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1657. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1658. | -silent | --silent | --silen | --sile | --sil)
  1659. continue ;;
  1660. *\'*)
  1661. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1662. esac
  1663. case $ac_pass in
  1664. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1665. 2)
  1666. as_fn_append ac_configure_args1 " '$ac_arg'"
  1667. if test $ac_must_keep_next = true; then
  1668. ac_must_keep_next=false # Got value, back to normal.
  1669. else
  1670. case $ac_arg in
  1671. *=* | --config-cache | -C | -disable-* | --disable-* \
  1672. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1673. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1674. | -with-* | --with-* | -without-* | --without-* | --x)
  1675. case "$ac_configure_args0 " in
  1676. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1677. esac
  1678. ;;
  1679. -* ) ac_must_keep_next=true ;;
  1680. esac
  1681. fi
  1682. as_fn_append ac_configure_args " '$ac_arg'"
  1683. ;;
  1684. esac
  1685. done
  1686. done
  1687. { ac_configure_args0=; unset ac_configure_args0;}
  1688. { ac_configure_args1=; unset ac_configure_args1;}
  1689. # When interrupted or exit'd, cleanup temporary files, and complete
  1690. # config.log. We remove comments because anyway the quotes in there
  1691. # would cause problems or look ugly.
  1692. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1693. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1694. trap 'exit_status=$?
  1695. # Save into config.log some information that might help in debugging.
  1696. {
  1697. echo
  1698. $as_echo "## ---------------- ##
  1699. ## Cache variables. ##
  1700. ## ---------------- ##"
  1701. echo
  1702. # The following way of writing the cache mishandles newlines in values,
  1703. (
  1704. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1705. eval ac_val=\$$ac_var
  1706. case $ac_val in #(
  1707. *${as_nl}*)
  1708. case $ac_var in #(
  1709. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1710. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1711. esac
  1712. case $ac_var in #(
  1713. _ | IFS | as_nl) ;; #(
  1714. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1715. *) { eval $ac_var=; unset $ac_var;} ;;
  1716. esac ;;
  1717. esac
  1718. done
  1719. (set) 2>&1 |
  1720. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1721. *${as_nl}ac_space=\ *)
  1722. sed -n \
  1723. "s/'\''/'\''\\\\'\'''\''/g;
  1724. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1725. ;; #(
  1726. *)
  1727. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1728. ;;
  1729. esac |
  1730. sort
  1731. )
  1732. echo
  1733. $as_echo "## ----------------- ##
  1734. ## Output variables. ##
  1735. ## ----------------- ##"
  1736. echo
  1737. for ac_var in $ac_subst_vars
  1738. do
  1739. eval ac_val=\$$ac_var
  1740. case $ac_val in
  1741. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1742. esac
  1743. $as_echo "$ac_var='\''$ac_val'\''"
  1744. done | sort
  1745. echo
  1746. if test -n "$ac_subst_files"; then
  1747. $as_echo "## ------------------- ##
  1748. ## File substitutions. ##
  1749. ## ------------------- ##"
  1750. echo
  1751. for ac_var in $ac_subst_files
  1752. do
  1753. eval ac_val=\$$ac_var
  1754. case $ac_val in
  1755. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1756. esac
  1757. $as_echo "$ac_var='\''$ac_val'\''"
  1758. done | sort
  1759. echo
  1760. fi
  1761. if test -s confdefs.h; then
  1762. $as_echo "## ----------- ##
  1763. ## confdefs.h. ##
  1764. ## ----------- ##"
  1765. echo
  1766. cat confdefs.h
  1767. echo
  1768. fi
  1769. test "$ac_signal" != 0 &&
  1770. $as_echo "$as_me: caught signal $ac_signal"
  1771. $as_echo "$as_me: exit $exit_status"
  1772. } >&5
  1773. rm -f core *.core core.conftest.* &&
  1774. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1775. exit $exit_status
  1776. ' 0
  1777. for ac_signal in 1 2 13 15; do
  1778. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1779. done
  1780. ac_signal=0
  1781. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1782. rm -f -r conftest* confdefs.h
  1783. $as_echo "/* confdefs.h */" > confdefs.h
  1784. # Predefined preprocessor variables.
  1785. cat >>confdefs.h <<_ACEOF
  1786. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1787. _ACEOF
  1788. cat >>confdefs.h <<_ACEOF
  1789. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1790. _ACEOF
  1791. cat >>confdefs.h <<_ACEOF
  1792. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1793. _ACEOF
  1794. cat >>confdefs.h <<_ACEOF
  1795. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1796. _ACEOF
  1797. cat >>confdefs.h <<_ACEOF
  1798. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1799. _ACEOF
  1800. cat >>confdefs.h <<_ACEOF
  1801. @%:@define PACKAGE_URL "$PACKAGE_URL"
  1802. _ACEOF
  1803. # Let the site file select an alternate cache file if it wants to.
  1804. # Prefer an explicitly selected file to automatically selected ones.
  1805. ac_site_file1=NONE
  1806. ac_site_file2=NONE
  1807. if test -n "$CONFIG_SITE"; then
  1808. # We do not want a PATH search for config.site.
  1809. case $CONFIG_SITE in @%:@((
  1810. -*) ac_site_file1=./$CONFIG_SITE;;
  1811. */*) ac_site_file1=$CONFIG_SITE;;
  1812. *) ac_site_file1=./$CONFIG_SITE;;
  1813. esac
  1814. elif test "x$prefix" != xNONE; then
  1815. ac_site_file1=$prefix/share/config.site
  1816. ac_site_file2=$prefix/etc/config.site
  1817. else
  1818. ac_site_file1=$ac_default_prefix/share/config.site
  1819. ac_site_file2=$ac_default_prefix/etc/config.site
  1820. fi
  1821. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1822. do
  1823. test "x$ac_site_file" = xNONE && continue
  1824. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1826. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1827. sed 's/^/| /' "$ac_site_file" >&5
  1828. . "$ac_site_file" \
  1829. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1830. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1831. as_fn_error $? "failed to load site script $ac_site_file
  1832. See \`config.log' for more details" "$LINENO" 5; }
  1833. fi
  1834. done
  1835. if test -r "$cache_file"; then
  1836. # Some versions of bash will fail to source /dev/null (special files
  1837. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1838. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1840. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1841. case $cache_file in
  1842. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1843. *) . "./$cache_file";;
  1844. esac
  1845. fi
  1846. else
  1847. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1848. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1849. >$cache_file
  1850. fi
  1851. # Check that the precious variables saved in the cache have kept the same
  1852. # value.
  1853. ac_cache_corrupted=false
  1854. for ac_var in $ac_precious_vars; do
  1855. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1856. eval ac_new_set=\$ac_env_${ac_var}_set
  1857. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1858. eval ac_new_val=\$ac_env_${ac_var}_value
  1859. case $ac_old_set,$ac_new_set in
  1860. set,)
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1862. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1863. ac_cache_corrupted=: ;;
  1864. ,set)
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1866. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1867. ac_cache_corrupted=: ;;
  1868. ,);;
  1869. *)
  1870. if test "x$ac_old_val" != "x$ac_new_val"; then
  1871. # differences in whitespace do not lead to failure.
  1872. ac_old_val_w=`echo x $ac_old_val`
  1873. ac_new_val_w=`echo x $ac_new_val`
  1874. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1876. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1877. ac_cache_corrupted=:
  1878. else
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1880. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1881. eval $ac_var=\$ac_old_val
  1882. fi
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1884. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1886. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1887. fi;;
  1888. esac
  1889. # Pass precious variables to config.status.
  1890. if test "$ac_new_set" = set; then
  1891. case $ac_new_val in
  1892. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1893. *) ac_arg=$ac_var=$ac_new_val ;;
  1894. esac
  1895. case " $ac_configure_args " in
  1896. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1897. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1898. esac
  1899. fi
  1900. done
  1901. if $ac_cache_corrupted; then
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1905. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1906. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1907. fi
  1908. ## -------------------- ##
  1909. ## Main body of script. ##
  1910. ## -------------------- ##
  1911. ac_ext=c
  1912. ac_cpp='$CPP $CPPFLAGS'
  1913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1916. ac_aux_dir=
  1917. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1918. if test -f "$ac_dir/install-sh"; then
  1919. ac_aux_dir=$ac_dir
  1920. ac_install_sh="$ac_aux_dir/install-sh -c"
  1921. break
  1922. elif test -f "$ac_dir/install.sh"; then
  1923. ac_aux_dir=$ac_dir
  1924. ac_install_sh="$ac_aux_dir/install.sh -c"
  1925. break
  1926. elif test -f "$ac_dir/shtool"; then
  1927. ac_aux_dir=$ac_dir
  1928. ac_install_sh="$ac_aux_dir/shtool install -c"
  1929. break
  1930. fi
  1931. done
  1932. if test -z "$ac_aux_dir"; then
  1933. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1934. fi
  1935. # These three variables are undocumented and unsupported,
  1936. # and are intended to be withdrawn in a future Autoconf release.
  1937. # They can cause serious problems if a builder's source tree is in a directory
  1938. # whose full name contains unusual characters.
  1939. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1940. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1941. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1942. # Make sure we can run config.sub.
  1943. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1944. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1946. $as_echo_n "checking build system type... " >&6; }
  1947. if ${ac_cv_build+:} false; then :
  1948. $as_echo_n "(cached) " >&6
  1949. else
  1950. ac_build_alias=$build_alias
  1951. test "x$ac_build_alias" = x &&
  1952. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1953. test "x$ac_build_alias" = x &&
  1954. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1955. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1956. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1957. fi
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1959. $as_echo "$ac_cv_build" >&6; }
  1960. case $ac_cv_build in
  1961. *-*-*) ;;
  1962. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1963. esac
  1964. build=$ac_cv_build
  1965. ac_save_IFS=$IFS; IFS='-'
  1966. set x $ac_cv_build
  1967. shift
  1968. build_cpu=$1
  1969. build_vendor=$2
  1970. shift; shift
  1971. # Remember, the first character of IFS is used to create $*,
  1972. # except with old shells:
  1973. build_os=$*
  1974. IFS=$ac_save_IFS
  1975. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1977. $as_echo_n "checking host system type... " >&6; }
  1978. if ${ac_cv_host+:} false; then :
  1979. $as_echo_n "(cached) " >&6
  1980. else
  1981. if test "x$host_alias" = x; then
  1982. ac_cv_host=$ac_cv_build
  1983. else
  1984. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1985. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1986. fi
  1987. fi
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1989. $as_echo "$ac_cv_host" >&6; }
  1990. case $ac_cv_host in
  1991. *-*-*) ;;
  1992. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1993. esac
  1994. host=$ac_cv_host
  1995. ac_save_IFS=$IFS; IFS='-'
  1996. set x $ac_cv_host
  1997. shift
  1998. host_cpu=$1
  1999. host_vendor=$2
  2000. shift; shift
  2001. # Remember, the first character of IFS is used to create $*,
  2002. # except with old shells:
  2003. host_os=$*
  2004. IFS=$ac_save_IFS
  2005. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2007. $as_echo_n "checking target system type... " >&6; }
  2008. if ${ac_cv_target+:} false; then :
  2009. $as_echo_n "(cached) " >&6
  2010. else
  2011. if test "x$target_alias" = x; then
  2012. ac_cv_target=$ac_cv_host
  2013. else
  2014. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2015. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2016. fi
  2017. fi
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2019. $as_echo "$ac_cv_target" >&6; }
  2020. case $ac_cv_target in
  2021. *-*-*) ;;
  2022. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2023. esac
  2024. target=$ac_cv_target
  2025. ac_save_IFS=$IFS; IFS='-'
  2026. set x $ac_cv_target
  2027. shift
  2028. target_cpu=$1
  2029. target_vendor=$2
  2030. shift; shift
  2031. # Remember, the first character of IFS is used to create $*,
  2032. # except with old shells:
  2033. target_os=$*
  2034. IFS=$ac_save_IFS
  2035. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2036. # The aliases save the names the user supplied, while $host etc.
  2037. # will get canonicalized.
  2038. test -n "$target_alias" &&
  2039. test "$program_prefix$program_suffix$program_transform_name" = \
  2040. NONENONEs,x,x, &&
  2041. program_prefix=${target_alias}-
  2042. am__api_version='1.11'
  2043. # Find a good install program. We prefer a C program (faster),
  2044. # so one script is as good as another. But avoid the broken or
  2045. # incompatible versions:
  2046. # SysV /etc/install, /usr/sbin/install
  2047. # SunOS /usr/etc/install
  2048. # IRIX /sbin/install
  2049. # AIX /bin/install
  2050. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2051. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2052. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2053. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2054. # OS/2's system install, which has a completely different semantic
  2055. # ./install, which can be erroneously created by make from ./install.sh.
  2056. # Reject install programs that cannot install multiple files.
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2058. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2059. if test -z "$INSTALL"; then
  2060. if ${ac_cv_path_install+:} false; then :
  2061. $as_echo_n "(cached) " >&6
  2062. else
  2063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2064. for as_dir in $PATH
  2065. do
  2066. IFS=$as_save_IFS
  2067. test -z "$as_dir" && as_dir=.
  2068. # Account for people who put trailing slashes in PATH elements.
  2069. case $as_dir/ in @%:@((
  2070. ./ | .// | /[cC]/* | \
  2071. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2072. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2073. /usr/ucb/* ) ;;
  2074. *)
  2075. # OSF1 and SCO ODT 3.0 have their own names for install.
  2076. # Don't use installbsd from OSF since it installs stuff as root
  2077. # by default.
  2078. for ac_prog in ginstall scoinst install; do
  2079. for ac_exec_ext in '' $ac_executable_extensions; do
  2080. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2081. if test $ac_prog = install &&
  2082. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2083. # AIX install. It has an incompatible calling convention.
  2084. :
  2085. elif test $ac_prog = install &&
  2086. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2087. # program-specific install script used by HP pwplus--don't use.
  2088. :
  2089. else
  2090. rm -rf conftest.one conftest.two conftest.dir
  2091. echo one > conftest.one
  2092. echo two > conftest.two
  2093. mkdir conftest.dir
  2094. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2095. test -s conftest.one && test -s conftest.two &&
  2096. test -s conftest.dir/conftest.one &&
  2097. test -s conftest.dir/conftest.two
  2098. then
  2099. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2100. break 3
  2101. fi
  2102. fi
  2103. fi
  2104. done
  2105. done
  2106. ;;
  2107. esac
  2108. done
  2109. IFS=$as_save_IFS
  2110. rm -rf conftest.one conftest.two conftest.dir
  2111. fi
  2112. if test "${ac_cv_path_install+set}" = set; then
  2113. INSTALL=$ac_cv_path_install
  2114. else
  2115. # As a last resort, use the slow shell script. Don't cache a
  2116. # value for INSTALL within a source directory, because that will
  2117. # break other packages using the cache if that directory is
  2118. # removed, or if the value is a relative name.
  2119. INSTALL=$ac_install_sh
  2120. fi
  2121. fi
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2123. $as_echo "$INSTALL" >&6; }
  2124. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2125. # It thinks the first close brace ends the variable substitution.
  2126. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2127. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2128. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2130. $as_echo_n "checking whether build environment is sane... " >&6; }
  2131. # Just in case
  2132. sleep 1
  2133. echo timestamp > conftest.file
  2134. # Reject unsafe characters in $srcdir or the absolute working directory
  2135. # name. Accept space and tab only in the latter.
  2136. am_lf='
  2137. '
  2138. case `pwd` in
  2139. *[\\\"\#\$\&\'\`$am_lf]*)
  2140. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2141. esac
  2142. case $srcdir in
  2143. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2144. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2145. esac
  2146. # Do `set' in a subshell so we don't clobber the current shell's
  2147. # arguments. Must try -L first in case configure is actually a
  2148. # symlink; some systems play weird games with the mod time of symlinks
  2149. # (eg FreeBSD returns the mod time of the symlink's containing
  2150. # directory).
  2151. if (
  2152. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2153. if test "$*" = "X"; then
  2154. # -L didn't work.
  2155. set X `ls -t "$srcdir/configure" conftest.file`
  2156. fi
  2157. rm -f conftest.file
  2158. if test "$*" != "X $srcdir/configure conftest.file" \
  2159. && test "$*" != "X conftest.file $srcdir/configure"; then
  2160. # If neither matched, then we have a broken ls. This can happen
  2161. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2162. # broken ls alias from the environment. This has actually
  2163. # happened. Such a system could not be considered "sane".
  2164. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2165. alias in your environment" "$LINENO" 5
  2166. fi
  2167. test "$2" = conftest.file
  2168. )
  2169. then
  2170. # Ok.
  2171. :
  2172. else
  2173. as_fn_error $? "newly created file is older than distributed files!
  2174. Check your system clock" "$LINENO" 5
  2175. fi
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2177. $as_echo "yes" >&6; }
  2178. test "$program_prefix" != NONE &&
  2179. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2180. # Use a double $ so make ignores it.
  2181. test "$program_suffix" != NONE &&
  2182. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2183. # Double any \ or $.
  2184. # By default was `s,x,x', remove it if useless.
  2185. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2186. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2187. # expand $ac_aux_dir to an absolute path
  2188. am_aux_dir=`cd $ac_aux_dir && pwd`
  2189. if test x"${MISSING+set}" != xset; then
  2190. case $am_aux_dir in
  2191. *\ * | *\ *)
  2192. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2193. *)
  2194. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2195. esac
  2196. fi
  2197. # Use eval to expand $SHELL
  2198. if eval "$MISSING --run true"; then
  2199. am_missing_run="$MISSING --run "
  2200. else
  2201. am_missing_run=
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2203. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2204. fi
  2205. if test x"${install_sh}" != xset; then
  2206. case $am_aux_dir in
  2207. *\ * | *\ *)
  2208. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2209. *)
  2210. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2211. esac
  2212. fi
  2213. # Installed binaries are usually stripped using `strip' when the user
  2214. # run `make install-strip'. However `strip' might not be the right
  2215. # tool to use in cross-compilation environments, therefore Automake
  2216. # will honor the `STRIP' environment variable to overrule this program.
  2217. if test "$cross_compiling" != no; then
  2218. if test -n "$ac_tool_prefix"; then
  2219. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2220. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2222. $as_echo_n "checking for $ac_word... " >&6; }
  2223. if ${ac_cv_prog_STRIP+:} false; then :
  2224. $as_echo_n "(cached) " >&6
  2225. else
  2226. if test -n "$STRIP"; then
  2227. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2228. else
  2229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2230. for as_dir in $PATH
  2231. do
  2232. IFS=$as_save_IFS
  2233. test -z "$as_dir" && as_dir=.
  2234. for ac_exec_ext in '' $ac_executable_extensions; do
  2235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2236. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2238. break 2
  2239. fi
  2240. done
  2241. done
  2242. IFS=$as_save_IFS
  2243. fi
  2244. fi
  2245. STRIP=$ac_cv_prog_STRIP
  2246. if test -n "$STRIP"; then
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2248. $as_echo "$STRIP" >&6; }
  2249. else
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2251. $as_echo "no" >&6; }
  2252. fi
  2253. fi
  2254. if test -z "$ac_cv_prog_STRIP"; then
  2255. ac_ct_STRIP=$STRIP
  2256. # Extract the first word of "strip", so it can be a program name with args.
  2257. set dummy strip; ac_word=$2
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2259. $as_echo_n "checking for $ac_word... " >&6; }
  2260. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2261. $as_echo_n "(cached) " >&6
  2262. else
  2263. if test -n "$ac_ct_STRIP"; then
  2264. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2265. else
  2266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2267. for as_dir in $PATH
  2268. do
  2269. IFS=$as_save_IFS
  2270. test -z "$as_dir" && as_dir=.
  2271. for ac_exec_ext in '' $ac_executable_extensions; do
  2272. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2273. ac_cv_prog_ac_ct_STRIP="strip"
  2274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2275. break 2
  2276. fi
  2277. done
  2278. done
  2279. IFS=$as_save_IFS
  2280. fi
  2281. fi
  2282. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2283. if test -n "$ac_ct_STRIP"; then
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2285. $as_echo "$ac_ct_STRIP" >&6; }
  2286. else
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2288. $as_echo "no" >&6; }
  2289. fi
  2290. if test "x$ac_ct_STRIP" = x; then
  2291. STRIP=":"
  2292. else
  2293. case $cross_compiling:$ac_tool_warned in
  2294. yes:)
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2296. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2297. ac_tool_warned=yes ;;
  2298. esac
  2299. STRIP=$ac_ct_STRIP
  2300. fi
  2301. else
  2302. STRIP="$ac_cv_prog_STRIP"
  2303. fi
  2304. fi
  2305. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2307. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2308. if test -z "$MKDIR_P"; then
  2309. if ${ac_cv_path_mkdir+:} false; then :
  2310. $as_echo_n "(cached) " >&6
  2311. else
  2312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2313. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2314. do
  2315. IFS=$as_save_IFS
  2316. test -z "$as_dir" && as_dir=.
  2317. for ac_prog in mkdir gmkdir; do
  2318. for ac_exec_ext in '' $ac_executable_extensions; do
  2319. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2320. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2321. 'mkdir (GNU coreutils) '* | \
  2322. 'mkdir (coreutils) '* | \
  2323. 'mkdir (fileutils) '4.1*)
  2324. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2325. break 3;;
  2326. esac
  2327. done
  2328. done
  2329. done
  2330. IFS=$as_save_IFS
  2331. fi
  2332. test -d ./--version && rmdir ./--version
  2333. if test "${ac_cv_path_mkdir+set}" = set; then
  2334. MKDIR_P="$ac_cv_path_mkdir -p"
  2335. else
  2336. # As a last resort, use the slow shell script. Don't cache a
  2337. # value for MKDIR_P within a source directory, because that will
  2338. # break other packages using the cache if that directory is
  2339. # removed, or if the value is a relative name.
  2340. MKDIR_P="$ac_install_sh -d"
  2341. fi
  2342. fi
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2344. $as_echo "$MKDIR_P" >&6; }
  2345. mkdir_p="$MKDIR_P"
  2346. case $mkdir_p in
  2347. [\\/$]* | ?:[\\/]*) ;;
  2348. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2349. esac
  2350. for ac_prog in gawk mawk nawk awk
  2351. do
  2352. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2353. set dummy $ac_prog; ac_word=$2
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2355. $as_echo_n "checking for $ac_word... " >&6; }
  2356. if ${ac_cv_prog_AWK+:} false; then :
  2357. $as_echo_n "(cached) " >&6
  2358. else
  2359. if test -n "$AWK"; then
  2360. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2361. else
  2362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2363. for as_dir in $PATH
  2364. do
  2365. IFS=$as_save_IFS
  2366. test -z "$as_dir" && as_dir=.
  2367. for ac_exec_ext in '' $ac_executable_extensions; do
  2368. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2369. ac_cv_prog_AWK="$ac_prog"
  2370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2371. break 2
  2372. fi
  2373. done
  2374. done
  2375. IFS=$as_save_IFS
  2376. fi
  2377. fi
  2378. AWK=$ac_cv_prog_AWK
  2379. if test -n "$AWK"; then
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2381. $as_echo "$AWK" >&6; }
  2382. else
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2384. $as_echo "no" >&6; }
  2385. fi
  2386. test -n "$AWK" && break
  2387. done
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2389. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2390. set x ${MAKE-make}
  2391. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2392. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2393. $as_echo_n "(cached) " >&6
  2394. else
  2395. cat >conftest.make <<\_ACEOF
  2396. SHELL = /bin/sh
  2397. all:
  2398. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2399. _ACEOF
  2400. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2401. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2402. *@@@%%%=?*=@@@%%%*)
  2403. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2404. *)
  2405. eval ac_cv_prog_make_${ac_make}_set=no;;
  2406. esac
  2407. rm -f conftest.make
  2408. fi
  2409. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2411. $as_echo "yes" >&6; }
  2412. SET_MAKE=
  2413. else
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2415. $as_echo "no" >&6; }
  2416. SET_MAKE="MAKE=${MAKE-make}"
  2417. fi
  2418. rm -rf .tst 2>/dev/null
  2419. mkdir .tst 2>/dev/null
  2420. if test -d .tst; then
  2421. am__leading_dot=.
  2422. else
  2423. am__leading_dot=_
  2424. fi
  2425. rmdir .tst 2>/dev/null
  2426. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2427. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2428. # is not polluted with repeated "-I."
  2429. am__isrc=' -I$(srcdir)'
  2430. # test to see if srcdir already configured
  2431. if test -f $srcdir/config.status; then
  2432. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2433. fi
  2434. fi
  2435. # test whether we have cygpath
  2436. if test -z "$CYGPATH_W"; then
  2437. if (cygpath --version) >/dev/null 2>/dev/null; then
  2438. CYGPATH_W='cygpath -w'
  2439. else
  2440. CYGPATH_W=echo
  2441. fi
  2442. fi
  2443. # Define the identity of the package.
  2444. PACKAGE='opcuaserver'
  2445. VERSION='1.0'
  2446. cat >>confdefs.h <<_ACEOF
  2447. @%:@define PACKAGE "$PACKAGE"
  2448. _ACEOF
  2449. cat >>confdefs.h <<_ACEOF
  2450. @%:@define VERSION "$VERSION"
  2451. _ACEOF
  2452. # Some tools Automake needs.
  2453. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2454. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2455. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2456. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2457. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2458. # We need awk for the "check" target. The system "awk" is bad on
  2459. # some platforms.
  2460. # Always define AMTAR for backward compatibility. Yes, it's still used
  2461. # in the wild :-( We should find a proper way to deprecate it ...
  2462. AMTAR='$${TAR-tar}'
  2463. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2465. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2466. set x ${MAKE-make}
  2467. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2468. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. cat >conftest.make <<\_ACEOF
  2472. SHELL = /bin/sh
  2473. all:
  2474. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2475. _ACEOF
  2476. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2477. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2478. *@@@%%%=?*=@@@%%%*)
  2479. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2480. *)
  2481. eval ac_cv_prog_make_${ac_make}_set=no;;
  2482. esac
  2483. rm -f conftest.make
  2484. fi
  2485. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2487. $as_echo "yes" >&6; }
  2488. SET_MAKE=
  2489. else
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2491. $as_echo "no" >&6; }
  2492. SET_MAKE="MAKE=${MAKE-make}"
  2493. fi
  2494. if test -z $CFLAGS; then
  2495. CFLAGS='-O2'
  2496. fi
  2497. ac_ext=c
  2498. ac_cpp='$CPP $CPPFLAGS'
  2499. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2500. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2501. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2502. if test -n "$ac_tool_prefix"; then
  2503. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2504. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2506. $as_echo_n "checking for $ac_word... " >&6; }
  2507. if ${ac_cv_prog_CC+:} false; then :
  2508. $as_echo_n "(cached) " >&6
  2509. else
  2510. if test -n "$CC"; then
  2511. ac_cv_prog_CC="$CC" # Let the user override the test.
  2512. else
  2513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2514. for as_dir in $PATH
  2515. do
  2516. IFS=$as_save_IFS
  2517. test -z "$as_dir" && as_dir=.
  2518. for ac_exec_ext in '' $ac_executable_extensions; do
  2519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2520. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2522. break 2
  2523. fi
  2524. done
  2525. done
  2526. IFS=$as_save_IFS
  2527. fi
  2528. fi
  2529. CC=$ac_cv_prog_CC
  2530. if test -n "$CC"; then
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2532. $as_echo "$CC" >&6; }
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2535. $as_echo "no" >&6; }
  2536. fi
  2537. fi
  2538. if test -z "$ac_cv_prog_CC"; then
  2539. ac_ct_CC=$CC
  2540. # Extract the first word of "gcc", so it can be a program name with args.
  2541. set dummy gcc; ac_word=$2
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2543. $as_echo_n "checking for $ac_word... " >&6; }
  2544. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test -n "$ac_ct_CC"; then
  2548. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. for ac_exec_ext in '' $ac_executable_extensions; do
  2556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2557. ac_cv_prog_ac_ct_CC="gcc"
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2559. break 2
  2560. fi
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. fi
  2566. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2567. if test -n "$ac_ct_CC"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2569. $as_echo "$ac_ct_CC" >&6; }
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. fi
  2574. if test "x$ac_ct_CC" = x; then
  2575. CC=""
  2576. else
  2577. case $cross_compiling:$ac_tool_warned in
  2578. yes:)
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2580. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2581. ac_tool_warned=yes ;;
  2582. esac
  2583. CC=$ac_ct_CC
  2584. fi
  2585. else
  2586. CC="$ac_cv_prog_CC"
  2587. fi
  2588. if test -z "$CC"; then
  2589. if test -n "$ac_tool_prefix"; then
  2590. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2591. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2593. $as_echo_n "checking for $ac_word... " >&6; }
  2594. if ${ac_cv_prog_CC+:} false; then :
  2595. $as_echo_n "(cached) " >&6
  2596. else
  2597. if test -n "$CC"; then
  2598. ac_cv_prog_CC="$CC" # Let the user override the test.
  2599. else
  2600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2601. for as_dir in $PATH
  2602. do
  2603. IFS=$as_save_IFS
  2604. test -z "$as_dir" && as_dir=.
  2605. for ac_exec_ext in '' $ac_executable_extensions; do
  2606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2607. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2609. break 2
  2610. fi
  2611. done
  2612. done
  2613. IFS=$as_save_IFS
  2614. fi
  2615. fi
  2616. CC=$ac_cv_prog_CC
  2617. if test -n "$CC"; then
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2619. $as_echo "$CC" >&6; }
  2620. else
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2622. $as_echo "no" >&6; }
  2623. fi
  2624. fi
  2625. fi
  2626. if test -z "$CC"; then
  2627. # Extract the first word of "cc", so it can be a program name with args.
  2628. set dummy cc; ac_word=$2
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2630. $as_echo_n "checking for $ac_word... " >&6; }
  2631. if ${ac_cv_prog_CC+:} false; then :
  2632. $as_echo_n "(cached) " >&6
  2633. else
  2634. if test -n "$CC"; then
  2635. ac_cv_prog_CC="$CC" # Let the user override the test.
  2636. else
  2637. ac_prog_rejected=no
  2638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2639. for as_dir in $PATH
  2640. do
  2641. IFS=$as_save_IFS
  2642. test -z "$as_dir" && as_dir=.
  2643. for ac_exec_ext in '' $ac_executable_extensions; do
  2644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2645. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2646. ac_prog_rejected=yes
  2647. continue
  2648. fi
  2649. ac_cv_prog_CC="cc"
  2650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2651. break 2
  2652. fi
  2653. done
  2654. done
  2655. IFS=$as_save_IFS
  2656. if test $ac_prog_rejected = yes; then
  2657. # We found a bogon in the path, so make sure we never use it.
  2658. set dummy $ac_cv_prog_CC
  2659. shift
  2660. if test $@%:@ != 0; then
  2661. # We chose a different compiler from the bogus one.
  2662. # However, it has the same basename, so the bogon will be chosen
  2663. # first if we set CC to just the basename; use the full file name.
  2664. shift
  2665. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2666. fi
  2667. fi
  2668. fi
  2669. fi
  2670. CC=$ac_cv_prog_CC
  2671. if test -n "$CC"; then
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2673. $as_echo "$CC" >&6; }
  2674. else
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2676. $as_echo "no" >&6; }
  2677. fi
  2678. fi
  2679. if test -z "$CC"; then
  2680. if test -n "$ac_tool_prefix"; then
  2681. for ac_prog in cl.exe
  2682. do
  2683. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2684. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2686. $as_echo_n "checking for $ac_word... " >&6; }
  2687. if ${ac_cv_prog_CC+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. if test -n "$CC"; then
  2691. ac_cv_prog_CC="$CC" # Let the user override the test.
  2692. else
  2693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2694. for as_dir in $PATH
  2695. do
  2696. IFS=$as_save_IFS
  2697. test -z "$as_dir" && as_dir=.
  2698. for ac_exec_ext in '' $ac_executable_extensions; do
  2699. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2700. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. fi
  2708. fi
  2709. CC=$ac_cv_prog_CC
  2710. if test -n "$CC"; then
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2712. $as_echo "$CC" >&6; }
  2713. else
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2715. $as_echo "no" >&6; }
  2716. fi
  2717. test -n "$CC" && break
  2718. done
  2719. fi
  2720. if test -z "$CC"; then
  2721. ac_ct_CC=$CC
  2722. for ac_prog in cl.exe
  2723. do
  2724. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2725. set dummy $ac_prog; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if test -n "$ac_ct_CC"; then
  2732. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2741. ac_cv_prog_ac_ct_CC="$ac_prog"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. fi
  2750. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2751. if test -n "$ac_ct_CC"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2753. $as_echo "$ac_ct_CC" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2756. $as_echo "no" >&6; }
  2757. fi
  2758. test -n "$ac_ct_CC" && break
  2759. done
  2760. if test "x$ac_ct_CC" = x; then
  2761. CC=""
  2762. else
  2763. case $cross_compiling:$ac_tool_warned in
  2764. yes:)
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2767. ac_tool_warned=yes ;;
  2768. esac
  2769. CC=$ac_ct_CC
  2770. fi
  2771. fi
  2772. fi
  2773. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2774. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2775. as_fn_error $? "no acceptable C compiler found in \$PATH
  2776. See \`config.log' for more details" "$LINENO" 5; }
  2777. # Provide some information about the compiler.
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2779. set X $ac_compile
  2780. ac_compiler=$2
  2781. for ac_option in --version -v -V -qversion; do
  2782. { { ac_try="$ac_compiler $ac_option >&5"
  2783. case "(($ac_try" in
  2784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2785. *) ac_try_echo=$ac_try;;
  2786. esac
  2787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2788. $as_echo "$ac_try_echo"; } >&5
  2789. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2790. ac_status=$?
  2791. if test -s conftest.err; then
  2792. sed '10a\
  2793. ... rest of stderr output deleted ...
  2794. 10q' conftest.err >conftest.er1
  2795. cat conftest.er1 >&5
  2796. fi
  2797. rm -f conftest.er1 conftest.err
  2798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2799. test $ac_status = 0; }
  2800. done
  2801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2802. /* end confdefs.h. */
  2803. int
  2804. main ()
  2805. {
  2806. ;
  2807. return 0;
  2808. }
  2809. _ACEOF
  2810. ac_clean_files_save=$ac_clean_files
  2811. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2812. # Try to create an executable without -o first, disregard a.out.
  2813. # It will help us diagnose broken compilers, and finding out an intuition
  2814. # of exeext.
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2816. $as_echo_n "checking whether the C compiler works... " >&6; }
  2817. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2818. # The possible output files:
  2819. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2820. ac_rmfiles=
  2821. for ac_file in $ac_files
  2822. do
  2823. case $ac_file in
  2824. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2825. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2826. esac
  2827. done
  2828. rm -f $ac_rmfiles
  2829. if { { ac_try="$ac_link_default"
  2830. case "(($ac_try" in
  2831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832. *) ac_try_echo=$ac_try;;
  2833. esac
  2834. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2835. $as_echo "$ac_try_echo"; } >&5
  2836. (eval "$ac_link_default") 2>&5
  2837. ac_status=$?
  2838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2839. test $ac_status = 0; }; then :
  2840. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2841. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2842. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2843. # so that the user can short-circuit this test for compilers unknown to
  2844. # Autoconf.
  2845. for ac_file in $ac_files ''
  2846. do
  2847. test -f "$ac_file" || continue
  2848. case $ac_file in
  2849. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2850. ;;
  2851. [ab].out )
  2852. # We found the default executable, but exeext='' is most
  2853. # certainly right.
  2854. break;;
  2855. *.* )
  2856. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2857. then :; else
  2858. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2859. fi
  2860. # We set ac_cv_exeext here because the later test for it is not
  2861. # safe: cross compilers may not add the suffix if given an `-o'
  2862. # argument, so we may need to know it at that point already.
  2863. # Even if this section looks crufty: it has the advantage of
  2864. # actually working.
  2865. break;;
  2866. * )
  2867. break;;
  2868. esac
  2869. done
  2870. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2871. else
  2872. ac_file=''
  2873. fi
  2874. if test -z "$ac_file"; then :
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2876. $as_echo "no" >&6; }
  2877. $as_echo "$as_me: failed program was:" >&5
  2878. sed 's/^/| /' conftest.$ac_ext >&5
  2879. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2880. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2881. as_fn_error 77 "C compiler cannot create executables
  2882. See \`config.log' for more details" "$LINENO" 5; }
  2883. else
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2885. $as_echo "yes" >&6; }
  2886. fi
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2888. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2890. $as_echo "$ac_file" >&6; }
  2891. ac_exeext=$ac_cv_exeext
  2892. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2893. ac_clean_files=$ac_clean_files_save
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2895. $as_echo_n "checking for suffix of executables... " >&6; }
  2896. if { { ac_try="$ac_link"
  2897. case "(($ac_try" in
  2898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2899. *) ac_try_echo=$ac_try;;
  2900. esac
  2901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2902. $as_echo "$ac_try_echo"; } >&5
  2903. (eval "$ac_link") 2>&5
  2904. ac_status=$?
  2905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2906. test $ac_status = 0; }; then :
  2907. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2908. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2909. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2910. # `rm'.
  2911. for ac_file in conftest.exe conftest conftest.*; do
  2912. test -f "$ac_file" || continue
  2913. case $ac_file in
  2914. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2915. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2916. break;;
  2917. * ) break;;
  2918. esac
  2919. done
  2920. else
  2921. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2922. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2923. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2924. See \`config.log' for more details" "$LINENO" 5; }
  2925. fi
  2926. rm -f conftest conftest$ac_cv_exeext
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2928. $as_echo "$ac_cv_exeext" >&6; }
  2929. rm -f conftest.$ac_ext
  2930. EXEEXT=$ac_cv_exeext
  2931. ac_exeext=$EXEEXT
  2932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2933. /* end confdefs.h. */
  2934. @%:@include <stdio.h>
  2935. int
  2936. main ()
  2937. {
  2938. FILE *f = fopen ("conftest.out", "w");
  2939. return ferror (f) || fclose (f) != 0;
  2940. ;
  2941. return 0;
  2942. }
  2943. _ACEOF
  2944. ac_clean_files="$ac_clean_files conftest.out"
  2945. # Check that the compiler produces executables we can run. If not, either
  2946. # the compiler is broken, or we cross compile.
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2948. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2949. if test "$cross_compiling" != yes; then
  2950. { { ac_try="$ac_link"
  2951. case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2956. $as_echo "$ac_try_echo"; } >&5
  2957. (eval "$ac_link") 2>&5
  2958. ac_status=$?
  2959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2960. test $ac_status = 0; }
  2961. if { ac_try='./conftest$ac_cv_exeext'
  2962. { { case "(($ac_try" in
  2963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2964. *) ac_try_echo=$ac_try;;
  2965. esac
  2966. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2967. $as_echo "$ac_try_echo"; } >&5
  2968. (eval "$ac_try") 2>&5
  2969. ac_status=$?
  2970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2971. test $ac_status = 0; }; }; then
  2972. cross_compiling=no
  2973. else
  2974. if test "$cross_compiling" = maybe; then
  2975. cross_compiling=yes
  2976. else
  2977. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2978. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2979. as_fn_error $? "cannot run C compiled programs.
  2980. If you meant to cross compile, use \`--host'.
  2981. See \`config.log' for more details" "$LINENO" 5; }
  2982. fi
  2983. fi
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2986. $as_echo "$cross_compiling" >&6; }
  2987. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2988. ac_clean_files=$ac_clean_files_save
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2990. $as_echo_n "checking for suffix of object files... " >&6; }
  2991. if ${ac_cv_objext+:} false; then :
  2992. $as_echo_n "(cached) " >&6
  2993. else
  2994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2995. /* end confdefs.h. */
  2996. int
  2997. main ()
  2998. {
  2999. ;
  3000. return 0;
  3001. }
  3002. _ACEOF
  3003. rm -f conftest.o conftest.obj
  3004. if { { ac_try="$ac_compile"
  3005. case "(($ac_try" in
  3006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007. *) ac_try_echo=$ac_try;;
  3008. esac
  3009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3010. $as_echo "$ac_try_echo"; } >&5
  3011. (eval "$ac_compile") 2>&5
  3012. ac_status=$?
  3013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3014. test $ac_status = 0; }; then :
  3015. for ac_file in conftest.o conftest.obj conftest.*; do
  3016. test -f "$ac_file" || continue;
  3017. case $ac_file in
  3018. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3019. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3020. break;;
  3021. esac
  3022. done
  3023. else
  3024. $as_echo "$as_me: failed program was:" >&5
  3025. sed 's/^/| /' conftest.$ac_ext >&5
  3026. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3027. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3028. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3029. See \`config.log' for more details" "$LINENO" 5; }
  3030. fi
  3031. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3032. fi
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3034. $as_echo "$ac_cv_objext" >&6; }
  3035. OBJEXT=$ac_cv_objext
  3036. ac_objext=$OBJEXT
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3038. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3039. if ${ac_cv_c_compiler_gnu+:} false; then :
  3040. $as_echo_n "(cached) " >&6
  3041. else
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044. int
  3045. main ()
  3046. {
  3047. #ifndef __GNUC__
  3048. choke me
  3049. #endif
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. if ac_fn_c_try_compile "$LINENO"; then :
  3055. ac_compiler_gnu=yes
  3056. else
  3057. ac_compiler_gnu=no
  3058. fi
  3059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3060. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3061. fi
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3063. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3064. if test $ac_compiler_gnu = yes; then
  3065. GCC=yes
  3066. else
  3067. GCC=
  3068. fi
  3069. ac_test_CFLAGS=${CFLAGS+set}
  3070. ac_save_CFLAGS=$CFLAGS
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3072. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3073. if ${ac_cv_prog_cc_g+:} false; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. ac_save_c_werror_flag=$ac_c_werror_flag
  3077. ac_c_werror_flag=yes
  3078. ac_cv_prog_cc_g=no
  3079. CFLAGS="-g"
  3080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3081. /* end confdefs.h. */
  3082. int
  3083. main ()
  3084. {
  3085. ;
  3086. return 0;
  3087. }
  3088. _ACEOF
  3089. if ac_fn_c_try_compile "$LINENO"; then :
  3090. ac_cv_prog_cc_g=yes
  3091. else
  3092. CFLAGS=""
  3093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3094. /* end confdefs.h. */
  3095. int
  3096. main ()
  3097. {
  3098. ;
  3099. return 0;
  3100. }
  3101. _ACEOF
  3102. if ac_fn_c_try_compile "$LINENO"; then :
  3103. else
  3104. ac_c_werror_flag=$ac_save_c_werror_flag
  3105. CFLAGS="-g"
  3106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3107. /* end confdefs.h. */
  3108. int
  3109. main ()
  3110. {
  3111. ;
  3112. return 0;
  3113. }
  3114. _ACEOF
  3115. if ac_fn_c_try_compile "$LINENO"; then :
  3116. ac_cv_prog_cc_g=yes
  3117. fi
  3118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3119. fi
  3120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3121. fi
  3122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3123. ac_c_werror_flag=$ac_save_c_werror_flag
  3124. fi
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3126. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3127. if test "$ac_test_CFLAGS" = set; then
  3128. CFLAGS=$ac_save_CFLAGS
  3129. elif test $ac_cv_prog_cc_g = yes; then
  3130. if test "$GCC" = yes; then
  3131. CFLAGS="-g -O2"
  3132. else
  3133. CFLAGS="-g"
  3134. fi
  3135. else
  3136. if test "$GCC" = yes; then
  3137. CFLAGS="-O2"
  3138. else
  3139. CFLAGS=
  3140. fi
  3141. fi
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3143. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3144. if ${ac_cv_prog_cc_c89+:} false; then :
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. ac_cv_prog_cc_c89=no
  3148. ac_save_CC=$CC
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. #include <stdarg.h>
  3152. #include <stdio.h>
  3153. #include <sys/types.h>
  3154. #include <sys/stat.h>
  3155. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3156. struct buf { int x; };
  3157. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3158. static char *e (p, i)
  3159. char **p;
  3160. int i;
  3161. {
  3162. return p[i];
  3163. }
  3164. static char *f (char * (*g) (char **, int), char **p, ...)
  3165. {
  3166. char *s;
  3167. va_list v;
  3168. va_start (v,p);
  3169. s = g (p, va_arg (v,int));
  3170. va_end (v);
  3171. return s;
  3172. }
  3173. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3174. function prototypes and stuff, but not '\xHH' hex character constants.
  3175. These don't provoke an error unfortunately, instead are silently treated
  3176. as 'x'. The following induces an error, until -std is added to get
  3177. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3178. array size at least. It's necessary to write '\x00'==0 to get something
  3179. that's true only with -std. */
  3180. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3181. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3182. inside strings and character constants. */
  3183. #define FOO(x) 'x'
  3184. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3185. int test (int i, double x);
  3186. struct s1 {int (*f) (int a);};
  3187. struct s2 {int (*f) (double a);};
  3188. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3189. int argc;
  3190. char **argv;
  3191. int
  3192. main ()
  3193. {
  3194. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3195. ;
  3196. return 0;
  3197. }
  3198. _ACEOF
  3199. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3200. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3201. do
  3202. CC="$ac_save_CC $ac_arg"
  3203. if ac_fn_c_try_compile "$LINENO"; then :
  3204. ac_cv_prog_cc_c89=$ac_arg
  3205. fi
  3206. rm -f core conftest.err conftest.$ac_objext
  3207. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3208. done
  3209. rm -f conftest.$ac_ext
  3210. CC=$ac_save_CC
  3211. fi
  3212. # AC_CACHE_VAL
  3213. case "x$ac_cv_prog_cc_c89" in
  3214. x)
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3216. $as_echo "none needed" >&6; } ;;
  3217. xno)
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3219. $as_echo "unsupported" >&6; } ;;
  3220. *)
  3221. CC="$CC $ac_cv_prog_cc_c89"
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3223. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3224. esac
  3225. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3226. fi
  3227. ac_ext=c
  3228. ac_cpp='$CPP $CPPFLAGS'
  3229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3232. DEPDIR="${am__leading_dot}deps"
  3233. ac_config_commands="$ac_config_commands depfiles"
  3234. am_make=${MAKE-make}
  3235. cat > confinc << 'END'
  3236. am__doit:
  3237. @echo this is the am__doit target
  3238. .PHONY: am__doit
  3239. END
  3240. # If we don't find an include directive, just comment out the code.
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3242. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3243. am__include="#"
  3244. am__quote=
  3245. _am_result=none
  3246. # First try GNU make style include.
  3247. echo "include confinc" > confmf
  3248. # Ignore all kinds of additional output from `make'.
  3249. case `$am_make -s -f confmf 2> /dev/null` in #(
  3250. *the\ am__doit\ target*)
  3251. am__include=include
  3252. am__quote=
  3253. _am_result=GNU
  3254. ;;
  3255. esac
  3256. # Now try BSD make style include.
  3257. if test "$am__include" = "#"; then
  3258. echo '.include "confinc"' > confmf
  3259. case `$am_make -s -f confmf 2> /dev/null` in #(
  3260. *the\ am__doit\ target*)
  3261. am__include=.include
  3262. am__quote="\""
  3263. _am_result=BSD
  3264. ;;
  3265. esac
  3266. fi
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3268. $as_echo "$_am_result" >&6; }
  3269. rm -f confinc confmf
  3270. @%:@ Check whether --enable-dependency-tracking was given.
  3271. if test "${enable_dependency_tracking+set}" = set; then :
  3272. enableval=$enable_dependency_tracking;
  3273. fi
  3274. if test "x$enable_dependency_tracking" != xno; then
  3275. am_depcomp="$ac_aux_dir/depcomp"
  3276. AMDEPBACKSLASH='\'
  3277. am__nodep='_no'
  3278. fi
  3279. if test "x$enable_dependency_tracking" != xno; then
  3280. AMDEP_TRUE=
  3281. AMDEP_FALSE='#'
  3282. else
  3283. AMDEP_TRUE='#'
  3284. AMDEP_FALSE=
  3285. fi
  3286. depcc="$CC" am_compiler_list=
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3288. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3289. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3290. $as_echo_n "(cached) " >&6
  3291. else
  3292. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3293. # We make a subdir and do the tests there. Otherwise we can end up
  3294. # making bogus files that we don't know about and never remove. For
  3295. # instance it was reported that on HP-UX the gcc test will end up
  3296. # making a dummy file named `D' -- because `-MD' means `put the output
  3297. # in D'.
  3298. rm -rf conftest.dir
  3299. mkdir conftest.dir
  3300. # Copy depcomp to subdir because otherwise we won't find it if we're
  3301. # using a relative directory.
  3302. cp "$am_depcomp" conftest.dir
  3303. cd conftest.dir
  3304. # We will build objects and dependencies in a subdirectory because
  3305. # it helps to detect inapplicable dependency modes. For instance
  3306. # both Tru64's cc and ICC support -MD to output dependencies as a
  3307. # side effect of compilation, but ICC will put the dependencies in
  3308. # the current directory while Tru64 will put them in the object
  3309. # directory.
  3310. mkdir sub
  3311. am_cv_CC_dependencies_compiler_type=none
  3312. if test "$am_compiler_list" = ""; then
  3313. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3314. fi
  3315. am__universal=false
  3316. case " $depcc " in #(
  3317. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3318. esac
  3319. for depmode in $am_compiler_list; do
  3320. # Setup a source with many dependencies, because some compilers
  3321. # like to wrap large dependency lists on column 80 (with \), and
  3322. # we should not choose a depcomp mode which is confused by this.
  3323. #
  3324. # We need to recreate these files for each test, as the compiler may
  3325. # overwrite some of them when testing with obscure command lines.
  3326. # This happens at least with the AIX C compiler.
  3327. : > sub/conftest.c
  3328. for i in 1 2 3 4 5 6; do
  3329. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3330. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3331. # Solaris 8's {/usr,}/bin/sh.
  3332. touch sub/conftst$i.h
  3333. done
  3334. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3335. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3336. # mode. It turns out that the SunPro C++ compiler does not properly
  3337. # handle `-M -o', and we need to detect this. Also, some Intel
  3338. # versions had trouble with output in subdirs
  3339. am__obj=sub/conftest.${OBJEXT-o}
  3340. am__minus_obj="-o $am__obj"
  3341. case $depmode in
  3342. gcc)
  3343. # This depmode causes a compiler race in universal mode.
  3344. test "$am__universal" = false || continue
  3345. ;;
  3346. nosideeffect)
  3347. # after this tag, mechanisms are not by side-effect, so they'll
  3348. # only be used when explicitly requested
  3349. if test "x$enable_dependency_tracking" = xyes; then
  3350. continue
  3351. else
  3352. break
  3353. fi
  3354. ;;
  3355. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3356. # This compiler won't grok `-c -o', but also, the minuso test has
  3357. # not run yet. These depmodes are late enough in the game, and
  3358. # so weak that their functioning should not be impacted.
  3359. am__obj=conftest.${OBJEXT-o}
  3360. am__minus_obj=
  3361. ;;
  3362. none) break ;;
  3363. esac
  3364. if depmode=$depmode \
  3365. source=sub/conftest.c object=$am__obj \
  3366. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3367. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3368. >/dev/null 2>conftest.err &&
  3369. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3370. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3371. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3372. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3373. # icc doesn't choke on unknown options, it will just issue warnings
  3374. # or remarks (even with -Werror). So we grep stderr for any message
  3375. # that says an option was ignored or not supported.
  3376. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3377. # icc: Command line warning: ignoring option '-M'; no argument required
  3378. # The diagnosis changed in icc 8.0:
  3379. # icc: Command line remark: option '-MP' not supported
  3380. if (grep 'ignoring option' conftest.err ||
  3381. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3382. am_cv_CC_dependencies_compiler_type=$depmode
  3383. break
  3384. fi
  3385. fi
  3386. done
  3387. cd ..
  3388. rm -rf conftest.dir
  3389. else
  3390. am_cv_CC_dependencies_compiler_type=none
  3391. fi
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3394. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3395. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3396. if
  3397. test "x$enable_dependency_tracking" != xno \
  3398. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3399. am__fastdepCC_TRUE=
  3400. am__fastdepCC_FALSE='#'
  3401. else
  3402. am__fastdepCC_TRUE='#'
  3403. am__fastdepCC_FALSE=
  3404. fi
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3406. $as_echo_n "checking whether ln -s works... " >&6; }
  3407. LN_S=$as_ln_s
  3408. if test "$LN_S" = "ln -s"; then
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3410. $as_echo "yes" >&6; }
  3411. else
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3413. $as_echo "no, using $LN_S" >&6; }
  3414. fi
  3415. if test "x$CC" != xcc; then
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3417. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3418. else
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3420. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3421. fi
  3422. set dummy $CC; ac_cc=`$as_echo "$2" |
  3423. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3424. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  3425. $as_echo_n "(cached) " >&6
  3426. else
  3427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3428. /* end confdefs.h. */
  3429. int
  3430. main ()
  3431. {
  3432. ;
  3433. return 0;
  3434. }
  3435. _ACEOF
  3436. # Make sure it works both with $CC and with simple cc.
  3437. # We do the test twice because some compilers refuse to overwrite an
  3438. # existing .o file with -o, though they will create one.
  3439. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3440. rm -f conftest2.*
  3441. if { { case "(($ac_try" in
  3442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3443. *) ac_try_echo=$ac_try;;
  3444. esac
  3445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3446. $as_echo "$ac_try_echo"; } >&5
  3447. (eval "$ac_try") 2>&5
  3448. ac_status=$?
  3449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3450. test $ac_status = 0; } &&
  3451. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3456. $as_echo "$ac_try_echo"; } >&5
  3457. (eval "$ac_try") 2>&5
  3458. ac_status=$?
  3459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3460. test $ac_status = 0; };
  3461. then
  3462. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3463. if test "x$CC" != xcc; then
  3464. # Test first that cc exists at all.
  3465. if { ac_try='cc -c conftest.$ac_ext >&5'
  3466. { { case "(($ac_try" in
  3467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3468. *) ac_try_echo=$ac_try;;
  3469. esac
  3470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3471. $as_echo "$ac_try_echo"; } >&5
  3472. (eval "$ac_try") 2>&5
  3473. ac_status=$?
  3474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3475. test $ac_status = 0; }; }; then
  3476. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3477. rm -f conftest2.*
  3478. if { { case "(($ac_try" in
  3479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3480. *) ac_try_echo=$ac_try;;
  3481. esac
  3482. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3483. $as_echo "$ac_try_echo"; } >&5
  3484. (eval "$ac_try") 2>&5
  3485. ac_status=$?
  3486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3487. test $ac_status = 0; } &&
  3488. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3490. *) ac_try_echo=$ac_try;;
  3491. esac
  3492. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3493. $as_echo "$ac_try_echo"; } >&5
  3494. (eval "$ac_try") 2>&5
  3495. ac_status=$?
  3496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3497. test $ac_status = 0; };
  3498. then
  3499. # cc works too.
  3500. :
  3501. else
  3502. # cc exists but doesn't like -o.
  3503. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3504. fi
  3505. fi
  3506. fi
  3507. else
  3508. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3509. fi
  3510. rm -f core conftest*
  3511. fi
  3512. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3514. $as_echo "yes" >&6; }
  3515. else
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3517. $as_echo "no" >&6; }
  3518. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3519. fi
  3520. # FIXME: we rely on the cache variable name because
  3521. # there is no other way.
  3522. set dummy $CC
  3523. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3524. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3525. if test "$am_t" != yes; then
  3526. # Losing compiler, so override with the script.
  3527. # FIXME: It is wrong to rewrite CC.
  3528. # But if we don't then we get into trouble of one sort or another.
  3529. # A longer-term fix would be to have automake use am__CC in this case,
  3530. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3531. CC="$am_aux_dir/compile $CC"
  3532. fi
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  3534. $as_echo_n "checking for exp in -lm... " >&6; }
  3535. if ${ac_cv_lib_m_exp+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. ac_check_lib_save_LIBS=$LIBS
  3539. LIBS="-lm $LIBS"
  3540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3541. /* end confdefs.h. */
  3542. /* Override any GCC internal prototype to avoid an error.
  3543. Use char because int might match the return type of a GCC
  3544. builtin and then its argument prototype would still apply. */
  3545. #ifdef __cplusplus
  3546. extern "C"
  3547. #endif
  3548. char exp ();
  3549. int
  3550. main ()
  3551. {
  3552. return exp ();
  3553. ;
  3554. return 0;
  3555. }
  3556. _ACEOF
  3557. if ac_fn_c_try_link "$LINENO"; then :
  3558. ac_cv_lib_m_exp=yes
  3559. else
  3560. ac_cv_lib_m_exp=no
  3561. fi
  3562. rm -f core conftest.err conftest.$ac_objext \
  3563. conftest$ac_exeext conftest.$ac_ext
  3564. LIBS=$ac_check_lib_save_LIBS
  3565. fi
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  3567. $as_echo "$ac_cv_lib_m_exp" >&6; }
  3568. if test "x$ac_cv_lib_m_exp" = xyes; then :
  3569. cat >>confdefs.h <<_ACEOF
  3570. @%:@define HAVE_LIBM 1
  3571. _ACEOF
  3572. LIBS="-lm $LIBS"
  3573. else
  3574. as_fn_error $? "Libm missing" "$LINENO" 5
  3575. fi
  3576. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3577. if test -n "$ac_tool_prefix"; then
  3578. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3579. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3581. $as_echo_n "checking for $ac_word... " >&6; }
  3582. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. case $PKG_CONFIG in
  3586. [\\/]* | ?:[\\/]*)
  3587. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3588. ;;
  3589. *)
  3590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3591. for as_dir in $PATH
  3592. do
  3593. IFS=$as_save_IFS
  3594. test -z "$as_dir" && as_dir=.
  3595. for ac_exec_ext in '' $ac_executable_extensions; do
  3596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3597. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3599. break 2
  3600. fi
  3601. done
  3602. done
  3603. IFS=$as_save_IFS
  3604. ;;
  3605. esac
  3606. fi
  3607. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3608. if test -n "$PKG_CONFIG"; then
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3610. $as_echo "$PKG_CONFIG" >&6; }
  3611. else
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3613. $as_echo "no" >&6; }
  3614. fi
  3615. fi
  3616. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3617. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3618. # Extract the first word of "pkg-config", so it can be a program name with args.
  3619. set dummy pkg-config; ac_word=$2
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3621. $as_echo_n "checking for $ac_word... " >&6; }
  3622. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. case $ac_pt_PKG_CONFIG in
  3626. [\\/]* | ?:[\\/]*)
  3627. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3628. ;;
  3629. *)
  3630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3631. for as_dir in $PATH
  3632. do
  3633. IFS=$as_save_IFS
  3634. test -z "$as_dir" && as_dir=.
  3635. for ac_exec_ext in '' $ac_executable_extensions; do
  3636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3637. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3639. break 2
  3640. fi
  3641. done
  3642. done
  3643. IFS=$as_save_IFS
  3644. ;;
  3645. esac
  3646. fi
  3647. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3648. if test -n "$ac_pt_PKG_CONFIG"; then
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3650. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3651. else
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3653. $as_echo "no" >&6; }
  3654. fi
  3655. if test "x$ac_pt_PKG_CONFIG" = x; then
  3656. PKG_CONFIG=""
  3657. else
  3658. case $cross_compiling:$ac_tool_warned in
  3659. yes:)
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3662. ac_tool_warned=yes ;;
  3663. esac
  3664. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3665. fi
  3666. else
  3667. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3668. fi
  3669. fi
  3670. if test -n "$PKG_CONFIG"; then
  3671. _pkg_min_version=0.9.0
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3673. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3674. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3676. $as_echo "yes" >&6; }
  3677. else
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3679. $as_echo "no" >&6; }
  3680. PKG_CONFIG=""
  3681. fi
  3682. fi
  3683. pkg_failed=no
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  3685. $as_echo_n "checking for CHECK... " >&6; }
  3686. if test -n "$CHECK_CFLAGS"; then
  3687. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  3688. elif test -n "$PKG_CONFIG"; then
  3689. if test -n "$PKG_CONFIG" && \
  3690. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.12\""; } >&5
  3691. ($PKG_CONFIG --exists --print-errors "check >= 0.9.12") 2>&5
  3692. ac_status=$?
  3693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3694. test $ac_status = 0; }; then
  3695. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.12" 2>/dev/null`
  3696. test "x$?" != "x0" && pkg_failed=yes
  3697. else
  3698. pkg_failed=yes
  3699. fi
  3700. else
  3701. pkg_failed=untried
  3702. fi
  3703. if test -n "$CHECK_LIBS"; then
  3704. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  3705. elif test -n "$PKG_CONFIG"; then
  3706. if test -n "$PKG_CONFIG" && \
  3707. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.12\""; } >&5
  3708. ($PKG_CONFIG --exists --print-errors "check >= 0.9.12") 2>&5
  3709. ac_status=$?
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3711. test $ac_status = 0; }; then
  3712. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.12" 2>/dev/null`
  3713. test "x$?" != "x0" && pkg_failed=yes
  3714. else
  3715. pkg_failed=yes
  3716. fi
  3717. else
  3718. pkg_failed=untried
  3719. fi
  3720. if test $pkg_failed = yes; then
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3722. $as_echo "no" >&6; }
  3723. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  3724. _pkg_short_errors_supported=yes
  3725. else
  3726. _pkg_short_errors_supported=no
  3727. fi
  3728. if test $_pkg_short_errors_supported = yes; then
  3729. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.12" 2>&1`
  3730. else
  3731. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.12" 2>&1`
  3732. fi
  3733. # Put the nasty error message in config.log where it belongs
  3734. echo "$CHECK_PKG_ERRORS" >&5
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&5
  3736. $as_echo "$as_me: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&2;}
  3737. have_check="no"
  3738. elif test $pkg_failed = untried; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3740. $as_echo "no" >&6; }
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&5
  3742. $as_echo "$as_me: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&2;}
  3743. have_check="no"
  3744. else
  3745. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  3746. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3748. $as_echo "yes" >&6; }
  3749. have_check="yes"
  3750. fi
  3751. if test x"$have_check" = "xyes"; then
  3752. HAVE_CHECK_TRUE=
  3753. HAVE_CHECK_FALSE='#'
  3754. else
  3755. HAVE_CHECK_TRUE='#'
  3756. HAVE_CHECK_FALSE=
  3757. fi
  3758. if test "${host_os}" = "mingw32"; then
  3759. TARGET_WIN_TRUE=
  3760. TARGET_WIN_FALSE='#'
  3761. else
  3762. TARGET_WIN_TRUE='#'
  3763. TARGET_WIN_FALSE=
  3764. fi
  3765. if test "${host_os}" = "linux-gnu" || test "${host_os}" = "linux"; then
  3766. TARGET_LINUX_TRUE=
  3767. TARGET_LINUX_FALSE='#'
  3768. else
  3769. TARGET_LINUX_TRUE='#'
  3770. TARGET_LINUX_FALSE=
  3771. fi
  3772. #adding platform-dependent information to compile flags
  3773. if test -z "$TARGET_WIN_TRUE"; then :
  3774. $as_echo "@%:@define WINDOWS 1" >>confdefs.h
  3775. fi #define WINDOWS is accessible from pre-processor
  3776. if test -z "$TARGET_LINUX_TRUE"; then :
  3777. $as_echo "@%:@define LINUX 1" >>confdefs.h
  3778. fi
  3779. @%:@ Check whether --enable-debug was given.
  3780. if test "${enable_debug+set}" = set; then :
  3781. enableval=$enable_debug; case "${enableval}" in
  3782. yes) debug=true ;;
  3783. no) debug=false ;;
  3784. *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  3785. esac
  3786. else
  3787. debug=false
  3788. fi
  3789. if test x"$debug" = x"true"; then
  3790. DEBUG_TRUE=
  3791. DEBUG_FALSE='#'
  3792. else
  3793. DEBUG_TRUE='#'
  3794. DEBUG_FALSE=
  3795. fi
  3796. enable_win32_dll=yes
  3797. case $host in
  3798. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3799. if test -n "$ac_tool_prefix"; then
  3800. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3801. set dummy ${ac_tool_prefix}as; ac_word=$2
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3803. $as_echo_n "checking for $ac_word... " >&6; }
  3804. if ${ac_cv_prog_AS+:} false; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. if test -n "$AS"; then
  3808. ac_cv_prog_AS="$AS" # Let the user override the test.
  3809. else
  3810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3811. for as_dir in $PATH
  3812. do
  3813. IFS=$as_save_IFS
  3814. test -z "$as_dir" && as_dir=.
  3815. for ac_exec_ext in '' $ac_executable_extensions; do
  3816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3817. ac_cv_prog_AS="${ac_tool_prefix}as"
  3818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3819. break 2
  3820. fi
  3821. done
  3822. done
  3823. IFS=$as_save_IFS
  3824. fi
  3825. fi
  3826. AS=$ac_cv_prog_AS
  3827. if test -n "$AS"; then
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3829. $as_echo "$AS" >&6; }
  3830. else
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3832. $as_echo "no" >&6; }
  3833. fi
  3834. fi
  3835. if test -z "$ac_cv_prog_AS"; then
  3836. ac_ct_AS=$AS
  3837. # Extract the first word of "as", so it can be a program name with args.
  3838. set dummy as; ac_word=$2
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3840. $as_echo_n "checking for $ac_word... " >&6; }
  3841. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. if test -n "$ac_ct_AS"; then
  3845. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3846. else
  3847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3848. for as_dir in $PATH
  3849. do
  3850. IFS=$as_save_IFS
  3851. test -z "$as_dir" && as_dir=.
  3852. for ac_exec_ext in '' $ac_executable_extensions; do
  3853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3854. ac_cv_prog_ac_ct_AS="as"
  3855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3856. break 2
  3857. fi
  3858. done
  3859. done
  3860. IFS=$as_save_IFS
  3861. fi
  3862. fi
  3863. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3864. if test -n "$ac_ct_AS"; then
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3866. $as_echo "$ac_ct_AS" >&6; }
  3867. else
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3869. $as_echo "no" >&6; }
  3870. fi
  3871. if test "x$ac_ct_AS" = x; then
  3872. AS="false"
  3873. else
  3874. case $cross_compiling:$ac_tool_warned in
  3875. yes:)
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3877. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3878. ac_tool_warned=yes ;;
  3879. esac
  3880. AS=$ac_ct_AS
  3881. fi
  3882. else
  3883. AS="$ac_cv_prog_AS"
  3884. fi
  3885. if test -n "$ac_tool_prefix"; then
  3886. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3887. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3889. $as_echo_n "checking for $ac_word... " >&6; }
  3890. if ${ac_cv_prog_DLLTOOL+:} false; then :
  3891. $as_echo_n "(cached) " >&6
  3892. else
  3893. if test -n "$DLLTOOL"; then
  3894. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3895. else
  3896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3897. for as_dir in $PATH
  3898. do
  3899. IFS=$as_save_IFS
  3900. test -z "$as_dir" && as_dir=.
  3901. for ac_exec_ext in '' $ac_executable_extensions; do
  3902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3903. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3905. break 2
  3906. fi
  3907. done
  3908. done
  3909. IFS=$as_save_IFS
  3910. fi
  3911. fi
  3912. DLLTOOL=$ac_cv_prog_DLLTOOL
  3913. if test -n "$DLLTOOL"; then
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3915. $as_echo "$DLLTOOL" >&6; }
  3916. else
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3918. $as_echo "no" >&6; }
  3919. fi
  3920. fi
  3921. if test -z "$ac_cv_prog_DLLTOOL"; then
  3922. ac_ct_DLLTOOL=$DLLTOOL
  3923. # Extract the first word of "dlltool", so it can be a program name with args.
  3924. set dummy dlltool; ac_word=$2
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3926. $as_echo_n "checking for $ac_word... " >&6; }
  3927. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. if test -n "$ac_ct_DLLTOOL"; then
  3931. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3932. else
  3933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3934. for as_dir in $PATH
  3935. do
  3936. IFS=$as_save_IFS
  3937. test -z "$as_dir" && as_dir=.
  3938. for ac_exec_ext in '' $ac_executable_extensions; do
  3939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3940. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3942. break 2
  3943. fi
  3944. done
  3945. done
  3946. IFS=$as_save_IFS
  3947. fi
  3948. fi
  3949. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3950. if test -n "$ac_ct_DLLTOOL"; then
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3952. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3953. else
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3955. $as_echo "no" >&6; }
  3956. fi
  3957. if test "x$ac_ct_DLLTOOL" = x; then
  3958. DLLTOOL="false"
  3959. else
  3960. case $cross_compiling:$ac_tool_warned in
  3961. yes:)
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3964. ac_tool_warned=yes ;;
  3965. esac
  3966. DLLTOOL=$ac_ct_DLLTOOL
  3967. fi
  3968. else
  3969. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3970. fi
  3971. if test -n "$ac_tool_prefix"; then
  3972. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3973. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3975. $as_echo_n "checking for $ac_word... " >&6; }
  3976. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. if test -n "$OBJDUMP"; then
  3980. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3981. else
  3982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3983. for as_dir in $PATH
  3984. do
  3985. IFS=$as_save_IFS
  3986. test -z "$as_dir" && as_dir=.
  3987. for ac_exec_ext in '' $ac_executable_extensions; do
  3988. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3989. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3991. break 2
  3992. fi
  3993. done
  3994. done
  3995. IFS=$as_save_IFS
  3996. fi
  3997. fi
  3998. OBJDUMP=$ac_cv_prog_OBJDUMP
  3999. if test -n "$OBJDUMP"; then
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4001. $as_echo "$OBJDUMP" >&6; }
  4002. else
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4004. $as_echo "no" >&6; }
  4005. fi
  4006. fi
  4007. if test -z "$ac_cv_prog_OBJDUMP"; then
  4008. ac_ct_OBJDUMP=$OBJDUMP
  4009. # Extract the first word of "objdump", so it can be a program name with args.
  4010. set dummy objdump; ac_word=$2
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4012. $as_echo_n "checking for $ac_word... " >&6; }
  4013. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4014. $as_echo_n "(cached) " >&6
  4015. else
  4016. if test -n "$ac_ct_OBJDUMP"; then
  4017. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4018. else
  4019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4020. for as_dir in $PATH
  4021. do
  4022. IFS=$as_save_IFS
  4023. test -z "$as_dir" && as_dir=.
  4024. for ac_exec_ext in '' $ac_executable_extensions; do
  4025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4026. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4028. break 2
  4029. fi
  4030. done
  4031. done
  4032. IFS=$as_save_IFS
  4033. fi
  4034. fi
  4035. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4036. if test -n "$ac_ct_OBJDUMP"; then
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4038. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4039. else
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4041. $as_echo "no" >&6; }
  4042. fi
  4043. if test "x$ac_ct_OBJDUMP" = x; then
  4044. OBJDUMP="false"
  4045. else
  4046. case $cross_compiling:$ac_tool_warned in
  4047. yes:)
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4049. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4050. ac_tool_warned=yes ;;
  4051. esac
  4052. OBJDUMP=$ac_ct_OBJDUMP
  4053. fi
  4054. else
  4055. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4056. fi
  4057. ;;
  4058. esac
  4059. test -z "$AS" && AS=as
  4060. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4061. test -z "$OBJDUMP" && OBJDUMP=objdump
  4062. case `pwd` in
  4063. *\ * | *\ *)
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4065. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4066. esac
  4067. macro_version='2.4.2'
  4068. macro_revision='1.3337'
  4069. ltmain="$ac_aux_dir/ltmain.sh"
  4070. # Backslashify metacharacters that are still active within
  4071. # double-quoted strings.
  4072. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4073. # Same as above, but do not quote variable references.
  4074. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4075. # Sed substitution to delay expansion of an escaped shell variable in a
  4076. # double_quote_subst'ed string.
  4077. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4078. # Sed substitution to delay expansion of an escaped single quote.
  4079. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4080. # Sed substitution to avoid accidental globbing in evaled expressions
  4081. no_glob_subst='s/\*/\\\*/g'
  4082. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4083. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4084. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4086. $as_echo_n "checking how to print strings... " >&6; }
  4087. # Test print first, because it will be a builtin if present.
  4088. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4089. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4090. ECHO='print -r --'
  4091. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4092. ECHO='printf %s\n'
  4093. else
  4094. # Use this function as a fallback that always works.
  4095. func_fallback_echo ()
  4096. {
  4097. eval 'cat <<_LTECHO_EOF
  4098. $1
  4099. _LTECHO_EOF'
  4100. }
  4101. ECHO='func_fallback_echo'
  4102. fi
  4103. # func_echo_all arg...
  4104. # Invoke $ECHO with all args, space-separated.
  4105. func_echo_all ()
  4106. {
  4107. $ECHO ""
  4108. }
  4109. case "$ECHO" in
  4110. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4111. $as_echo "printf" >&6; } ;;
  4112. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4113. $as_echo "print -r" >&6; } ;;
  4114. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4115. $as_echo "cat" >&6; } ;;
  4116. esac
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4118. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4119. if ${ac_cv_path_SED+:} false; then :
  4120. $as_echo_n "(cached) " >&6
  4121. else
  4122. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4123. for ac_i in 1 2 3 4 5 6 7; do
  4124. ac_script="$ac_script$as_nl$ac_script"
  4125. done
  4126. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4127. { ac_script=; unset ac_script;}
  4128. if test -z "$SED"; then
  4129. ac_path_SED_found=false
  4130. # Loop through the user's path and test for each of PROGNAME-LIST
  4131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4132. for as_dir in $PATH
  4133. do
  4134. IFS=$as_save_IFS
  4135. test -z "$as_dir" && as_dir=.
  4136. for ac_prog in sed gsed; do
  4137. for ac_exec_ext in '' $ac_executable_extensions; do
  4138. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4139. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4140. # Check for GNU ac_path_SED and select it if it is found.
  4141. # Check for GNU $ac_path_SED
  4142. case `"$ac_path_SED" --version 2>&1` in
  4143. *GNU*)
  4144. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4145. *)
  4146. ac_count=0
  4147. $as_echo_n 0123456789 >"conftest.in"
  4148. while :
  4149. do
  4150. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4151. mv "conftest.tmp" "conftest.in"
  4152. cp "conftest.in" "conftest.nl"
  4153. $as_echo '' >> "conftest.nl"
  4154. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4155. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4156. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4157. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4158. # Best one so far, save it but keep looking for a better one
  4159. ac_cv_path_SED="$ac_path_SED"
  4160. ac_path_SED_max=$ac_count
  4161. fi
  4162. # 10*(2^10) chars as input seems more than enough
  4163. test $ac_count -gt 10 && break
  4164. done
  4165. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4166. esac
  4167. $ac_path_SED_found && break 3
  4168. done
  4169. done
  4170. done
  4171. IFS=$as_save_IFS
  4172. if test -z "$ac_cv_path_SED"; then
  4173. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4174. fi
  4175. else
  4176. ac_cv_path_SED=$SED
  4177. fi
  4178. fi
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4180. $as_echo "$ac_cv_path_SED" >&6; }
  4181. SED="$ac_cv_path_SED"
  4182. rm -f conftest.sed
  4183. test -z "$SED" && SED=sed
  4184. Xsed="$SED -e 1s/^X//"
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4186. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4187. if ${ac_cv_path_GREP+:} false; then :
  4188. $as_echo_n "(cached) " >&6
  4189. else
  4190. if test -z "$GREP"; then
  4191. ac_path_GREP_found=false
  4192. # Loop through the user's path and test for each of PROGNAME-LIST
  4193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4194. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4195. do
  4196. IFS=$as_save_IFS
  4197. test -z "$as_dir" && as_dir=.
  4198. for ac_prog in grep ggrep; do
  4199. for ac_exec_ext in '' $ac_executable_extensions; do
  4200. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4201. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4202. # Check for GNU ac_path_GREP and select it if it is found.
  4203. # Check for GNU $ac_path_GREP
  4204. case `"$ac_path_GREP" --version 2>&1` in
  4205. *GNU*)
  4206. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4207. *)
  4208. ac_count=0
  4209. $as_echo_n 0123456789 >"conftest.in"
  4210. while :
  4211. do
  4212. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4213. mv "conftest.tmp" "conftest.in"
  4214. cp "conftest.in" "conftest.nl"
  4215. $as_echo 'GREP' >> "conftest.nl"
  4216. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4217. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4218. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4219. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4220. # Best one so far, save it but keep looking for a better one
  4221. ac_cv_path_GREP="$ac_path_GREP"
  4222. ac_path_GREP_max=$ac_count
  4223. fi
  4224. # 10*(2^10) chars as input seems more than enough
  4225. test $ac_count -gt 10 && break
  4226. done
  4227. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4228. esac
  4229. $ac_path_GREP_found && break 3
  4230. done
  4231. done
  4232. done
  4233. IFS=$as_save_IFS
  4234. if test -z "$ac_cv_path_GREP"; then
  4235. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4236. fi
  4237. else
  4238. ac_cv_path_GREP=$GREP
  4239. fi
  4240. fi
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4242. $as_echo "$ac_cv_path_GREP" >&6; }
  4243. GREP="$ac_cv_path_GREP"
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4245. $as_echo_n "checking for egrep... " >&6; }
  4246. if ${ac_cv_path_EGREP+:} false; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4250. then ac_cv_path_EGREP="$GREP -E"
  4251. else
  4252. if test -z "$EGREP"; then
  4253. ac_path_EGREP_found=false
  4254. # Loop through the user's path and test for each of PROGNAME-LIST
  4255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4256. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4257. do
  4258. IFS=$as_save_IFS
  4259. test -z "$as_dir" && as_dir=.
  4260. for ac_prog in egrep; do
  4261. for ac_exec_ext in '' $ac_executable_extensions; do
  4262. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4263. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4264. # Check for GNU ac_path_EGREP and select it if it is found.
  4265. # Check for GNU $ac_path_EGREP
  4266. case `"$ac_path_EGREP" --version 2>&1` in
  4267. *GNU*)
  4268. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4269. *)
  4270. ac_count=0
  4271. $as_echo_n 0123456789 >"conftest.in"
  4272. while :
  4273. do
  4274. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4275. mv "conftest.tmp" "conftest.in"
  4276. cp "conftest.in" "conftest.nl"
  4277. $as_echo 'EGREP' >> "conftest.nl"
  4278. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4279. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4280. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4281. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4282. # Best one so far, save it but keep looking for a better one
  4283. ac_cv_path_EGREP="$ac_path_EGREP"
  4284. ac_path_EGREP_max=$ac_count
  4285. fi
  4286. # 10*(2^10) chars as input seems more than enough
  4287. test $ac_count -gt 10 && break
  4288. done
  4289. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4290. esac
  4291. $ac_path_EGREP_found && break 3
  4292. done
  4293. done
  4294. done
  4295. IFS=$as_save_IFS
  4296. if test -z "$ac_cv_path_EGREP"; then
  4297. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4298. fi
  4299. else
  4300. ac_cv_path_EGREP=$EGREP
  4301. fi
  4302. fi
  4303. fi
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4305. $as_echo "$ac_cv_path_EGREP" >&6; }
  4306. EGREP="$ac_cv_path_EGREP"
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4308. $as_echo_n "checking for fgrep... " >&6; }
  4309. if ${ac_cv_path_FGREP+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4313. then ac_cv_path_FGREP="$GREP -F"
  4314. else
  4315. if test -z "$FGREP"; then
  4316. ac_path_FGREP_found=false
  4317. # Loop through the user's path and test for each of PROGNAME-LIST
  4318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4319. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4320. do
  4321. IFS=$as_save_IFS
  4322. test -z "$as_dir" && as_dir=.
  4323. for ac_prog in fgrep; do
  4324. for ac_exec_ext in '' $ac_executable_extensions; do
  4325. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4326. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4327. # Check for GNU ac_path_FGREP and select it if it is found.
  4328. # Check for GNU $ac_path_FGREP
  4329. case `"$ac_path_FGREP" --version 2>&1` in
  4330. *GNU*)
  4331. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4332. *)
  4333. ac_count=0
  4334. $as_echo_n 0123456789 >"conftest.in"
  4335. while :
  4336. do
  4337. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4338. mv "conftest.tmp" "conftest.in"
  4339. cp "conftest.in" "conftest.nl"
  4340. $as_echo 'FGREP' >> "conftest.nl"
  4341. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4342. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4343. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4344. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4345. # Best one so far, save it but keep looking for a better one
  4346. ac_cv_path_FGREP="$ac_path_FGREP"
  4347. ac_path_FGREP_max=$ac_count
  4348. fi
  4349. # 10*(2^10) chars as input seems more than enough
  4350. test $ac_count -gt 10 && break
  4351. done
  4352. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4353. esac
  4354. $ac_path_FGREP_found && break 3
  4355. done
  4356. done
  4357. done
  4358. IFS=$as_save_IFS
  4359. if test -z "$ac_cv_path_FGREP"; then
  4360. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4361. fi
  4362. else
  4363. ac_cv_path_FGREP=$FGREP
  4364. fi
  4365. fi
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4368. $as_echo "$ac_cv_path_FGREP" >&6; }
  4369. FGREP="$ac_cv_path_FGREP"
  4370. test -z "$GREP" && GREP=grep
  4371. @%:@ Check whether --with-gnu-ld was given.
  4372. if test "${with_gnu_ld+set}" = set; then :
  4373. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4374. else
  4375. with_gnu_ld=no
  4376. fi
  4377. ac_prog=ld
  4378. if test "$GCC" = yes; then
  4379. # Check if gcc -print-prog-name=ld gives a path.
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4381. $as_echo_n "checking for ld used by $CC... " >&6; }
  4382. case $host in
  4383. *-*-mingw*)
  4384. # gcc leaves a trailing carriage return which upsets mingw
  4385. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4386. *)
  4387. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4388. esac
  4389. case $ac_prog in
  4390. # Accept absolute paths.
  4391. [\\/]* | ?:[\\/]*)
  4392. re_direlt='/[^/][^/]*/\.\./'
  4393. # Canonicalize the pathname of ld
  4394. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4395. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4396. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4397. done
  4398. test -z "$LD" && LD="$ac_prog"
  4399. ;;
  4400. "")
  4401. # If it fails, then pretend we aren't using GCC.
  4402. ac_prog=ld
  4403. ;;
  4404. *)
  4405. # If it is relative, then search for the first ld in PATH.
  4406. with_gnu_ld=unknown
  4407. ;;
  4408. esac
  4409. elif test "$with_gnu_ld" = yes; then
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4411. $as_echo_n "checking for GNU ld... " >&6; }
  4412. else
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4414. $as_echo_n "checking for non-GNU ld... " >&6; }
  4415. fi
  4416. if ${lt_cv_path_LD+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test -z "$LD"; then
  4420. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4421. for ac_dir in $PATH; do
  4422. IFS="$lt_save_ifs"
  4423. test -z "$ac_dir" && ac_dir=.
  4424. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4425. lt_cv_path_LD="$ac_dir/$ac_prog"
  4426. # Check to see if the program is GNU ld. I'd rather use --version,
  4427. # but apparently some variants of GNU ld only accept -v.
  4428. # Break only if it was the GNU/non-GNU ld that we prefer.
  4429. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4430. *GNU* | *'with BFD'*)
  4431. test "$with_gnu_ld" != no && break
  4432. ;;
  4433. *)
  4434. test "$with_gnu_ld" != yes && break
  4435. ;;
  4436. esac
  4437. fi
  4438. done
  4439. IFS="$lt_save_ifs"
  4440. else
  4441. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4442. fi
  4443. fi
  4444. LD="$lt_cv_path_LD"
  4445. if test -n "$LD"; then
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4447. $as_echo "$LD" >&6; }
  4448. else
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4450. $as_echo "no" >&6; }
  4451. fi
  4452. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4454. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4455. if ${lt_cv_prog_gnu_ld+:} false; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4459. case `$LD -v 2>&1 </dev/null` in
  4460. *GNU* | *'with BFD'*)
  4461. lt_cv_prog_gnu_ld=yes
  4462. ;;
  4463. *)
  4464. lt_cv_prog_gnu_ld=no
  4465. ;;
  4466. esac
  4467. fi
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4469. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4470. with_gnu_ld=$lt_cv_prog_gnu_ld
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4472. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4473. if ${lt_cv_path_NM+:} false; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. if test -n "$NM"; then
  4477. # Let the user override the test.
  4478. lt_cv_path_NM="$NM"
  4479. else
  4480. lt_nm_to_check="${ac_tool_prefix}nm"
  4481. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4482. lt_nm_to_check="$lt_nm_to_check nm"
  4483. fi
  4484. for lt_tmp_nm in $lt_nm_to_check; do
  4485. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4486. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4487. IFS="$lt_save_ifs"
  4488. test -z "$ac_dir" && ac_dir=.
  4489. tmp_nm="$ac_dir/$lt_tmp_nm"
  4490. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4491. # Check to see if the nm accepts a BSD-compat flag.
  4492. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4493. # nm: unknown option "B" ignored
  4494. # Tru64's nm complains that /dev/null is an invalid object file
  4495. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4496. */dev/null* | *'Invalid file or object type'*)
  4497. lt_cv_path_NM="$tmp_nm -B"
  4498. break
  4499. ;;
  4500. *)
  4501. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4502. */dev/null*)
  4503. lt_cv_path_NM="$tmp_nm -p"
  4504. break
  4505. ;;
  4506. *)
  4507. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4508. continue # so that we can try to find one that supports BSD flags
  4509. ;;
  4510. esac
  4511. ;;
  4512. esac
  4513. fi
  4514. done
  4515. IFS="$lt_save_ifs"
  4516. done
  4517. : ${lt_cv_path_NM=no}
  4518. fi
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4521. $as_echo "$lt_cv_path_NM" >&6; }
  4522. if test "$lt_cv_path_NM" != "no"; then
  4523. NM="$lt_cv_path_NM"
  4524. else
  4525. # Didn't find any BSD compatible name lister, look for dumpbin.
  4526. if test -n "$DUMPBIN"; then :
  4527. # Let the user override the test.
  4528. else
  4529. if test -n "$ac_tool_prefix"; then
  4530. for ac_prog in dumpbin "link -dump"
  4531. do
  4532. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4533. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4535. $as_echo_n "checking for $ac_word... " >&6; }
  4536. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4537. $as_echo_n "(cached) " >&6
  4538. else
  4539. if test -n "$DUMPBIN"; then
  4540. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4541. else
  4542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543. for as_dir in $PATH
  4544. do
  4545. IFS=$as_save_IFS
  4546. test -z "$as_dir" && as_dir=.
  4547. for ac_exec_ext in '' $ac_executable_extensions; do
  4548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4549. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4551. break 2
  4552. fi
  4553. done
  4554. done
  4555. IFS=$as_save_IFS
  4556. fi
  4557. fi
  4558. DUMPBIN=$ac_cv_prog_DUMPBIN
  4559. if test -n "$DUMPBIN"; then
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4561. $as_echo "$DUMPBIN" >&6; }
  4562. else
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4564. $as_echo "no" >&6; }
  4565. fi
  4566. test -n "$DUMPBIN" && break
  4567. done
  4568. fi
  4569. if test -z "$DUMPBIN"; then
  4570. ac_ct_DUMPBIN=$DUMPBIN
  4571. for ac_prog in dumpbin "link -dump"
  4572. do
  4573. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4574. set dummy $ac_prog; ac_word=$2
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4576. $as_echo_n "checking for $ac_word... " >&6; }
  4577. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. if test -n "$ac_ct_DUMPBIN"; then
  4581. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4582. else
  4583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584. for as_dir in $PATH
  4585. do
  4586. IFS=$as_save_IFS
  4587. test -z "$as_dir" && as_dir=.
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4590. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4592. break 2
  4593. fi
  4594. done
  4595. done
  4596. IFS=$as_save_IFS
  4597. fi
  4598. fi
  4599. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4600. if test -n "$ac_ct_DUMPBIN"; then
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4602. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4603. else
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4605. $as_echo "no" >&6; }
  4606. fi
  4607. test -n "$ac_ct_DUMPBIN" && break
  4608. done
  4609. if test "x$ac_ct_DUMPBIN" = x; then
  4610. DUMPBIN=":"
  4611. else
  4612. case $cross_compiling:$ac_tool_warned in
  4613. yes:)
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4616. ac_tool_warned=yes ;;
  4617. esac
  4618. DUMPBIN=$ac_ct_DUMPBIN
  4619. fi
  4620. fi
  4621. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4622. *COFF*)
  4623. DUMPBIN="$DUMPBIN -symbols"
  4624. ;;
  4625. *)
  4626. DUMPBIN=:
  4627. ;;
  4628. esac
  4629. fi
  4630. if test "$DUMPBIN" != ":"; then
  4631. NM="$DUMPBIN"
  4632. fi
  4633. fi
  4634. test -z "$NM" && NM=nm
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4636. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4637. if ${lt_cv_nm_interface+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. lt_cv_nm_interface="BSD nm"
  4641. echo "int some_variable = 0;" > conftest.$ac_ext
  4642. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4643. (eval "$ac_compile" 2>conftest.err)
  4644. cat conftest.err >&5
  4645. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4646. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4647. cat conftest.err >&5
  4648. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4649. cat conftest.out >&5
  4650. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4651. lt_cv_nm_interface="MS dumpbin"
  4652. fi
  4653. rm -f conftest*
  4654. fi
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4656. $as_echo "$lt_cv_nm_interface" >&6; }
  4657. # find the maximum length of command line arguments
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4659. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4660. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4661. $as_echo_n "(cached) " >&6
  4662. else
  4663. i=0
  4664. teststring="ABCD"
  4665. case $build_os in
  4666. msdosdjgpp*)
  4667. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4668. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4669. # during glob expansion). Even if it were fixed, the result of this
  4670. # check would be larger than it should be.
  4671. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4672. ;;
  4673. gnu*)
  4674. # Under GNU Hurd, this test is not required because there is
  4675. # no limit to the length of command line arguments.
  4676. # Libtool will interpret -1 as no limit whatsoever
  4677. lt_cv_sys_max_cmd_len=-1;
  4678. ;;
  4679. cygwin* | mingw* | cegcc*)
  4680. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4681. # about 5 minutes as the teststring grows exponentially.
  4682. # Worse, since 9x/ME are not pre-emptively multitasking,
  4683. # you end up with a "frozen" computer, even though with patience
  4684. # the test eventually succeeds (with a max line length of 256k).
  4685. # Instead, let's just punt: use the minimum linelength reported by
  4686. # all of the supported platforms: 8192 (on NT/2K/XP).
  4687. lt_cv_sys_max_cmd_len=8192;
  4688. ;;
  4689. mint*)
  4690. # On MiNT this can take a long time and run out of memory.
  4691. lt_cv_sys_max_cmd_len=8192;
  4692. ;;
  4693. amigaos*)
  4694. # On AmigaOS with pdksh, this test takes hours, literally.
  4695. # So we just punt and use a minimum line length of 8192.
  4696. lt_cv_sys_max_cmd_len=8192;
  4697. ;;
  4698. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4699. # This has been around since 386BSD, at least. Likely further.
  4700. if test -x /sbin/sysctl; then
  4701. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4702. elif test -x /usr/sbin/sysctl; then
  4703. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4704. else
  4705. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4706. fi
  4707. # And add a safety zone
  4708. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4709. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4710. ;;
  4711. interix*)
  4712. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4713. lt_cv_sys_max_cmd_len=196608
  4714. ;;
  4715. os2*)
  4716. # The test takes a long time on OS/2.
  4717. lt_cv_sys_max_cmd_len=8192
  4718. ;;
  4719. osf*)
  4720. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4721. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4722. # nice to cause kernel panics so lets avoid the loop below.
  4723. # First set a reasonable default.
  4724. lt_cv_sys_max_cmd_len=16384
  4725. #
  4726. if test -x /sbin/sysconfig; then
  4727. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4728. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4729. esac
  4730. fi
  4731. ;;
  4732. sco3.2v5*)
  4733. lt_cv_sys_max_cmd_len=102400
  4734. ;;
  4735. sysv5* | sco5v6* | sysv4.2uw2*)
  4736. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4737. if test -n "$kargmax"; then
  4738. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4739. else
  4740. lt_cv_sys_max_cmd_len=32768
  4741. fi
  4742. ;;
  4743. *)
  4744. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4745. if test -n "$lt_cv_sys_max_cmd_len"; then
  4746. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4747. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4748. else
  4749. # Make teststring a little bigger before we do anything with it.
  4750. # a 1K string should be a reasonable start.
  4751. for i in 1 2 3 4 5 6 7 8 ; do
  4752. teststring=$teststring$teststring
  4753. done
  4754. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4755. # If test is not a shell built-in, we'll probably end up computing a
  4756. # maximum length that is only half of the actual maximum length, but
  4757. # we can't tell.
  4758. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4759. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4760. test $i != 17 # 1/2 MB should be enough
  4761. do
  4762. i=`expr $i + 1`
  4763. teststring=$teststring$teststring
  4764. done
  4765. # Only check the string length outside the loop.
  4766. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4767. teststring=
  4768. # Add a significant safety factor because C++ compilers can tack on
  4769. # massive amounts of additional arguments before passing them to the
  4770. # linker. It appears as though 1/2 is a usable value.
  4771. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4772. fi
  4773. ;;
  4774. esac
  4775. fi
  4776. if test -n $lt_cv_sys_max_cmd_len ; then
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4778. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4779. else
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4781. $as_echo "none" >&6; }
  4782. fi
  4783. max_cmd_len=$lt_cv_sys_max_cmd_len
  4784. : ${CP="cp -f"}
  4785. : ${MV="mv -f"}
  4786. : ${RM="rm -f"}
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4788. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4789. # Try some XSI features
  4790. xsi_shell=no
  4791. ( _lt_dummy="a/b/c"
  4792. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4793. = c,a/b,b/c, \
  4794. && eval 'test $(( 1 + 1 )) -eq 2 \
  4795. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4796. && xsi_shell=yes
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4798. $as_echo "$xsi_shell" >&6; }
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4800. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4801. lt_shell_append=no
  4802. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4803. >/dev/null 2>&1 \
  4804. && lt_shell_append=yes
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4806. $as_echo "$lt_shell_append" >&6; }
  4807. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4808. lt_unset=unset
  4809. else
  4810. lt_unset=false
  4811. fi
  4812. # test EBCDIC or ASCII
  4813. case `echo X|tr X '\101'` in
  4814. A) # ASCII based system
  4815. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4816. lt_SP2NL='tr \040 \012'
  4817. lt_NL2SP='tr \015\012 \040\040'
  4818. ;;
  4819. *) # EBCDIC based system
  4820. lt_SP2NL='tr \100 \n'
  4821. lt_NL2SP='tr \r\n \100\100'
  4822. ;;
  4823. esac
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4825. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4826. if ${lt_cv_to_host_file_cmd+:} false; then :
  4827. $as_echo_n "(cached) " >&6
  4828. else
  4829. case $host in
  4830. *-*-mingw* )
  4831. case $build in
  4832. *-*-mingw* ) # actually msys
  4833. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4834. ;;
  4835. *-*-cygwin* )
  4836. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4837. ;;
  4838. * ) # otherwise, assume *nix
  4839. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4840. ;;
  4841. esac
  4842. ;;
  4843. *-*-cygwin* )
  4844. case $build in
  4845. *-*-mingw* ) # actually msys
  4846. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4847. ;;
  4848. *-*-cygwin* )
  4849. lt_cv_to_host_file_cmd=func_convert_file_noop
  4850. ;;
  4851. * ) # otherwise, assume *nix
  4852. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4853. ;;
  4854. esac
  4855. ;;
  4856. * ) # unhandled hosts (and "normal" native builds)
  4857. lt_cv_to_host_file_cmd=func_convert_file_noop
  4858. ;;
  4859. esac
  4860. fi
  4861. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4863. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4865. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4866. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. #assume ordinary cross tools, or native build.
  4870. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4871. case $host in
  4872. *-*-mingw* )
  4873. case $build in
  4874. *-*-mingw* ) # actually msys
  4875. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4876. ;;
  4877. esac
  4878. ;;
  4879. esac
  4880. fi
  4881. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4883. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4885. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4886. if ${lt_cv_ld_reload_flag+:} false; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. lt_cv_ld_reload_flag='-r'
  4890. fi
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4892. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4893. reload_flag=$lt_cv_ld_reload_flag
  4894. case $reload_flag in
  4895. "" | " "*) ;;
  4896. *) reload_flag=" $reload_flag" ;;
  4897. esac
  4898. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4899. case $host_os in
  4900. cygwin* | mingw* | pw32* | cegcc*)
  4901. if test "$GCC" != yes; then
  4902. reload_cmds=false
  4903. fi
  4904. ;;
  4905. darwin*)
  4906. if test "$GCC" = yes; then
  4907. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4908. else
  4909. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4910. fi
  4911. ;;
  4912. esac
  4913. if test -n "$ac_tool_prefix"; then
  4914. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4915. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4917. $as_echo_n "checking for $ac_word... " >&6; }
  4918. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. if test -n "$OBJDUMP"; then
  4922. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4923. else
  4924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4925. for as_dir in $PATH
  4926. do
  4927. IFS=$as_save_IFS
  4928. test -z "$as_dir" && as_dir=.
  4929. for ac_exec_ext in '' $ac_executable_extensions; do
  4930. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4931. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4933. break 2
  4934. fi
  4935. done
  4936. done
  4937. IFS=$as_save_IFS
  4938. fi
  4939. fi
  4940. OBJDUMP=$ac_cv_prog_OBJDUMP
  4941. if test -n "$OBJDUMP"; then
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4943. $as_echo "$OBJDUMP" >&6; }
  4944. else
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4946. $as_echo "no" >&6; }
  4947. fi
  4948. fi
  4949. if test -z "$ac_cv_prog_OBJDUMP"; then
  4950. ac_ct_OBJDUMP=$OBJDUMP
  4951. # Extract the first word of "objdump", so it can be a program name with args.
  4952. set dummy objdump; ac_word=$2
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4954. $as_echo_n "checking for $ac_word... " >&6; }
  4955. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. if test -n "$ac_ct_OBJDUMP"; then
  4959. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4960. else
  4961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4962. for as_dir in $PATH
  4963. do
  4964. IFS=$as_save_IFS
  4965. test -z "$as_dir" && as_dir=.
  4966. for ac_exec_ext in '' $ac_executable_extensions; do
  4967. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4968. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4970. break 2
  4971. fi
  4972. done
  4973. done
  4974. IFS=$as_save_IFS
  4975. fi
  4976. fi
  4977. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4978. if test -n "$ac_ct_OBJDUMP"; then
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4980. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4981. else
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4983. $as_echo "no" >&6; }
  4984. fi
  4985. if test "x$ac_ct_OBJDUMP" = x; then
  4986. OBJDUMP="false"
  4987. else
  4988. case $cross_compiling:$ac_tool_warned in
  4989. yes:)
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4992. ac_tool_warned=yes ;;
  4993. esac
  4994. OBJDUMP=$ac_ct_OBJDUMP
  4995. fi
  4996. else
  4997. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4998. fi
  4999. test -z "$OBJDUMP" && OBJDUMP=objdump
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5001. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5002. if ${lt_cv_deplibs_check_method+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5006. lt_cv_file_magic_test_file=
  5007. lt_cv_deplibs_check_method='unknown'
  5008. # Need to set the preceding variable on all platforms that support
  5009. # interlibrary dependencies.
  5010. # 'none' -- dependencies not supported.
  5011. # `unknown' -- same as none, but documents that we really don't know.
  5012. # 'pass_all' -- all dependencies passed with no checks.
  5013. # 'test_compile' -- check by making test program.
  5014. # 'file_magic [[regex]]' -- check by looking for files in library path
  5015. # which responds to the $file_magic_cmd with a given extended regex.
  5016. # If you have `file' or equivalent on your system and you're not sure
  5017. # whether `pass_all' will *always* work, you probably want this one.
  5018. case $host_os in
  5019. aix[4-9]*)
  5020. lt_cv_deplibs_check_method=pass_all
  5021. ;;
  5022. beos*)
  5023. lt_cv_deplibs_check_method=pass_all
  5024. ;;
  5025. bsdi[45]*)
  5026. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5027. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5028. lt_cv_file_magic_test_file=/shlib/libc.so
  5029. ;;
  5030. cygwin*)
  5031. # func_win32_libid is a shell function defined in ltmain.sh
  5032. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5033. lt_cv_file_magic_cmd='func_win32_libid'
  5034. ;;
  5035. mingw* | pw32*)
  5036. # Base MSYS/MinGW do not provide the 'file' command needed by
  5037. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5038. # unless we find 'file', for example because we are cross-compiling.
  5039. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5040. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5041. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5042. lt_cv_file_magic_cmd='func_win32_libid'
  5043. else
  5044. # Keep this pattern in sync with the one in func_win32_libid.
  5045. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5046. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5047. fi
  5048. ;;
  5049. cegcc*)
  5050. # use the weaker test based on 'objdump'. See mingw*.
  5051. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5052. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5053. ;;
  5054. darwin* | rhapsody*)
  5055. lt_cv_deplibs_check_method=pass_all
  5056. ;;
  5057. freebsd* | dragonfly*)
  5058. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5059. case $host_cpu in
  5060. i*86 )
  5061. # Not sure whether the presence of OpenBSD here was a mistake.
  5062. # Let's accept both of them until this is cleared up.
  5063. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5064. lt_cv_file_magic_cmd=/usr/bin/file
  5065. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5066. ;;
  5067. esac
  5068. else
  5069. lt_cv_deplibs_check_method=pass_all
  5070. fi
  5071. ;;
  5072. gnu*)
  5073. lt_cv_deplibs_check_method=pass_all
  5074. ;;
  5075. haiku*)
  5076. lt_cv_deplibs_check_method=pass_all
  5077. ;;
  5078. hpux10.20* | hpux11*)
  5079. lt_cv_file_magic_cmd=/usr/bin/file
  5080. case $host_cpu in
  5081. ia64*)
  5082. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5083. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5084. ;;
  5085. hppa*64*)
  5086. 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]'
  5087. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5088. ;;
  5089. *)
  5090. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5091. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5092. ;;
  5093. esac
  5094. ;;
  5095. interix[3-9]*)
  5096. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5097. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5098. ;;
  5099. irix5* | irix6* | nonstopux*)
  5100. case $LD in
  5101. *-32|*"-32 ") libmagic=32-bit;;
  5102. *-n32|*"-n32 ") libmagic=N32;;
  5103. *-64|*"-64 ") libmagic=64-bit;;
  5104. *) libmagic=never-match;;
  5105. esac
  5106. lt_cv_deplibs_check_method=pass_all
  5107. ;;
  5108. # This must be glibc/ELF.
  5109. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5110. lt_cv_deplibs_check_method=pass_all
  5111. ;;
  5112. netbsd* | netbsdelf*-gnu)
  5113. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5114. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5115. else
  5116. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5117. fi
  5118. ;;
  5119. newos6*)
  5120. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5121. lt_cv_file_magic_cmd=/usr/bin/file
  5122. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5123. ;;
  5124. *nto* | *qnx*)
  5125. lt_cv_deplibs_check_method=pass_all
  5126. ;;
  5127. openbsd*)
  5128. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5129. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5130. else
  5131. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5132. fi
  5133. ;;
  5134. osf3* | osf4* | osf5*)
  5135. lt_cv_deplibs_check_method=pass_all
  5136. ;;
  5137. rdos*)
  5138. lt_cv_deplibs_check_method=pass_all
  5139. ;;
  5140. solaris*)
  5141. lt_cv_deplibs_check_method=pass_all
  5142. ;;
  5143. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. sysv4 | sysv4.3*)
  5147. case $host_vendor in
  5148. motorola)
  5149. 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]'
  5150. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5151. ;;
  5152. ncr)
  5153. lt_cv_deplibs_check_method=pass_all
  5154. ;;
  5155. sequent)
  5156. lt_cv_file_magic_cmd='/bin/file'
  5157. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5158. ;;
  5159. sni)
  5160. lt_cv_file_magic_cmd='/bin/file'
  5161. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5162. lt_cv_file_magic_test_file=/lib/libc.so
  5163. ;;
  5164. siemens)
  5165. lt_cv_deplibs_check_method=pass_all
  5166. ;;
  5167. pc)
  5168. lt_cv_deplibs_check_method=pass_all
  5169. ;;
  5170. esac
  5171. ;;
  5172. tpf*)
  5173. lt_cv_deplibs_check_method=pass_all
  5174. ;;
  5175. esac
  5176. fi
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5178. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5179. file_magic_glob=
  5180. want_nocaseglob=no
  5181. if test "$build" = "$host"; then
  5182. case $host_os in
  5183. mingw* | pw32*)
  5184. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5185. want_nocaseglob=yes
  5186. else
  5187. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5188. fi
  5189. ;;
  5190. esac
  5191. fi
  5192. file_magic_cmd=$lt_cv_file_magic_cmd
  5193. deplibs_check_method=$lt_cv_deplibs_check_method
  5194. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5195. if test -n "$ac_tool_prefix"; then
  5196. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5197. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5199. $as_echo_n "checking for $ac_word... " >&6; }
  5200. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5201. $as_echo_n "(cached) " >&6
  5202. else
  5203. if test -n "$DLLTOOL"; then
  5204. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5205. else
  5206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5207. for as_dir in $PATH
  5208. do
  5209. IFS=$as_save_IFS
  5210. test -z "$as_dir" && as_dir=.
  5211. for ac_exec_ext in '' $ac_executable_extensions; do
  5212. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5213. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5215. break 2
  5216. fi
  5217. done
  5218. done
  5219. IFS=$as_save_IFS
  5220. fi
  5221. fi
  5222. DLLTOOL=$ac_cv_prog_DLLTOOL
  5223. if test -n "$DLLTOOL"; then
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5225. $as_echo "$DLLTOOL" >&6; }
  5226. else
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5228. $as_echo "no" >&6; }
  5229. fi
  5230. fi
  5231. if test -z "$ac_cv_prog_DLLTOOL"; then
  5232. ac_ct_DLLTOOL=$DLLTOOL
  5233. # Extract the first word of "dlltool", so it can be a program name with args.
  5234. set dummy dlltool; ac_word=$2
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5236. $as_echo_n "checking for $ac_word... " >&6; }
  5237. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5238. $as_echo_n "(cached) " >&6
  5239. else
  5240. if test -n "$ac_ct_DLLTOOL"; then
  5241. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5242. else
  5243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5244. for as_dir in $PATH
  5245. do
  5246. IFS=$as_save_IFS
  5247. test -z "$as_dir" && as_dir=.
  5248. for ac_exec_ext in '' $ac_executable_extensions; do
  5249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5250. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5252. break 2
  5253. fi
  5254. done
  5255. done
  5256. IFS=$as_save_IFS
  5257. fi
  5258. fi
  5259. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5260. if test -n "$ac_ct_DLLTOOL"; then
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5262. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5263. else
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5265. $as_echo "no" >&6; }
  5266. fi
  5267. if test "x$ac_ct_DLLTOOL" = x; then
  5268. DLLTOOL="false"
  5269. else
  5270. case $cross_compiling:$ac_tool_warned in
  5271. yes:)
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5273. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5274. ac_tool_warned=yes ;;
  5275. esac
  5276. DLLTOOL=$ac_ct_DLLTOOL
  5277. fi
  5278. else
  5279. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5280. fi
  5281. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5283. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5284. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5285. $as_echo_n "(cached) " >&6
  5286. else
  5287. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5288. case $host_os in
  5289. cygwin* | mingw* | pw32* | cegcc*)
  5290. # two different shell functions defined in ltmain.sh
  5291. # decide which to use based on capabilities of $DLLTOOL
  5292. case `$DLLTOOL --help 2>&1` in
  5293. *--identify-strict*)
  5294. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5295. ;;
  5296. *)
  5297. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5298. ;;
  5299. esac
  5300. ;;
  5301. *)
  5302. # fallback: assume linklib IS sharedlib
  5303. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5304. ;;
  5305. esac
  5306. fi
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5308. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5309. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5310. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5311. if test -n "$ac_tool_prefix"; then
  5312. for ac_prog in ar
  5313. do
  5314. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5315. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5317. $as_echo_n "checking for $ac_word... " >&6; }
  5318. if ${ac_cv_prog_AR+:} false; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. if test -n "$AR"; then
  5322. ac_cv_prog_AR="$AR" # Let the user override the test.
  5323. else
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH
  5326. do
  5327. IFS=$as_save_IFS
  5328. test -z "$as_dir" && as_dir=.
  5329. for ac_exec_ext in '' $ac_executable_extensions; do
  5330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5331. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5333. break 2
  5334. fi
  5335. done
  5336. done
  5337. IFS=$as_save_IFS
  5338. fi
  5339. fi
  5340. AR=$ac_cv_prog_AR
  5341. if test -n "$AR"; then
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5343. $as_echo "$AR" >&6; }
  5344. else
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5346. $as_echo "no" >&6; }
  5347. fi
  5348. test -n "$AR" && break
  5349. done
  5350. fi
  5351. if test -z "$AR"; then
  5352. ac_ct_AR=$AR
  5353. for ac_prog in ar
  5354. do
  5355. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5356. set dummy $ac_prog; ac_word=$2
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5358. $as_echo_n "checking for $ac_word... " >&6; }
  5359. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5360. $as_echo_n "(cached) " >&6
  5361. else
  5362. if test -n "$ac_ct_AR"; then
  5363. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5364. else
  5365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5366. for as_dir in $PATH
  5367. do
  5368. IFS=$as_save_IFS
  5369. test -z "$as_dir" && as_dir=.
  5370. for ac_exec_ext in '' $ac_executable_extensions; do
  5371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5372. ac_cv_prog_ac_ct_AR="$ac_prog"
  5373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5374. break 2
  5375. fi
  5376. done
  5377. done
  5378. IFS=$as_save_IFS
  5379. fi
  5380. fi
  5381. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5382. if test -n "$ac_ct_AR"; then
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5384. $as_echo "$ac_ct_AR" >&6; }
  5385. else
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5387. $as_echo "no" >&6; }
  5388. fi
  5389. test -n "$ac_ct_AR" && break
  5390. done
  5391. if test "x$ac_ct_AR" = x; then
  5392. AR="false"
  5393. else
  5394. case $cross_compiling:$ac_tool_warned in
  5395. yes:)
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5397. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5398. ac_tool_warned=yes ;;
  5399. esac
  5400. AR=$ac_ct_AR
  5401. fi
  5402. fi
  5403. : ${AR=ar}
  5404. : ${AR_FLAGS=cru}
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5406. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5407. if ${lt_cv_ar_at_file+:} false; then :
  5408. $as_echo_n "(cached) " >&6
  5409. else
  5410. lt_cv_ar_at_file=no
  5411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5412. /* end confdefs.h. */
  5413. int
  5414. main ()
  5415. {
  5416. ;
  5417. return 0;
  5418. }
  5419. _ACEOF
  5420. if ac_fn_c_try_compile "$LINENO"; then :
  5421. echo conftest.$ac_objext > conftest.lst
  5422. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5423. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5424. (eval $lt_ar_try) 2>&5
  5425. ac_status=$?
  5426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5427. test $ac_status = 0; }
  5428. if test "$ac_status" -eq 0; then
  5429. # Ensure the archiver fails upon bogus file names.
  5430. rm -f conftest.$ac_objext libconftest.a
  5431. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5432. (eval $lt_ar_try) 2>&5
  5433. ac_status=$?
  5434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5435. test $ac_status = 0; }
  5436. if test "$ac_status" -ne 0; then
  5437. lt_cv_ar_at_file=@
  5438. fi
  5439. fi
  5440. rm -f conftest.* libconftest.a
  5441. fi
  5442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5443. fi
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5445. $as_echo "$lt_cv_ar_at_file" >&6; }
  5446. if test "x$lt_cv_ar_at_file" = xno; then
  5447. archiver_list_spec=
  5448. else
  5449. archiver_list_spec=$lt_cv_ar_at_file
  5450. fi
  5451. if test -n "$ac_tool_prefix"; then
  5452. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5453. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5455. $as_echo_n "checking for $ac_word... " >&6; }
  5456. if ${ac_cv_prog_STRIP+:} false; then :
  5457. $as_echo_n "(cached) " >&6
  5458. else
  5459. if test -n "$STRIP"; then
  5460. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5461. else
  5462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5463. for as_dir in $PATH
  5464. do
  5465. IFS=$as_save_IFS
  5466. test -z "$as_dir" && as_dir=.
  5467. for ac_exec_ext in '' $ac_executable_extensions; do
  5468. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5469. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5471. break 2
  5472. fi
  5473. done
  5474. done
  5475. IFS=$as_save_IFS
  5476. fi
  5477. fi
  5478. STRIP=$ac_cv_prog_STRIP
  5479. if test -n "$STRIP"; then
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5481. $as_echo "$STRIP" >&6; }
  5482. else
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5484. $as_echo "no" >&6; }
  5485. fi
  5486. fi
  5487. if test -z "$ac_cv_prog_STRIP"; then
  5488. ac_ct_STRIP=$STRIP
  5489. # Extract the first word of "strip", so it can be a program name with args.
  5490. set dummy strip; ac_word=$2
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5492. $as_echo_n "checking for $ac_word... " >&6; }
  5493. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$ac_ct_STRIP"; then
  5497. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5498. else
  5499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5500. for as_dir in $PATH
  5501. do
  5502. IFS=$as_save_IFS
  5503. test -z "$as_dir" && as_dir=.
  5504. for ac_exec_ext in '' $ac_executable_extensions; do
  5505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5506. ac_cv_prog_ac_ct_STRIP="strip"
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5508. break 2
  5509. fi
  5510. done
  5511. done
  5512. IFS=$as_save_IFS
  5513. fi
  5514. fi
  5515. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5516. if test -n "$ac_ct_STRIP"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5518. $as_echo "$ac_ct_STRIP" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. if test "x$ac_ct_STRIP" = x; then
  5524. STRIP=":"
  5525. else
  5526. case $cross_compiling:$ac_tool_warned in
  5527. yes:)
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5529. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5530. ac_tool_warned=yes ;;
  5531. esac
  5532. STRIP=$ac_ct_STRIP
  5533. fi
  5534. else
  5535. STRIP="$ac_cv_prog_STRIP"
  5536. fi
  5537. test -z "$STRIP" && STRIP=:
  5538. if test -n "$ac_tool_prefix"; then
  5539. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5540. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5542. $as_echo_n "checking for $ac_word... " >&6; }
  5543. if ${ac_cv_prog_RANLIB+:} false; then :
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. if test -n "$RANLIB"; then
  5547. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5548. else
  5549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5550. for as_dir in $PATH
  5551. do
  5552. IFS=$as_save_IFS
  5553. test -z "$as_dir" && as_dir=.
  5554. for ac_exec_ext in '' $ac_executable_extensions; do
  5555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5556. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5558. break 2
  5559. fi
  5560. done
  5561. done
  5562. IFS=$as_save_IFS
  5563. fi
  5564. fi
  5565. RANLIB=$ac_cv_prog_RANLIB
  5566. if test -n "$RANLIB"; then
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5568. $as_echo "$RANLIB" >&6; }
  5569. else
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5571. $as_echo "no" >&6; }
  5572. fi
  5573. fi
  5574. if test -z "$ac_cv_prog_RANLIB"; then
  5575. ac_ct_RANLIB=$RANLIB
  5576. # Extract the first word of "ranlib", so it can be a program name with args.
  5577. set dummy ranlib; ac_word=$2
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5579. $as_echo_n "checking for $ac_word... " >&6; }
  5580. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5581. $as_echo_n "(cached) " >&6
  5582. else
  5583. if test -n "$ac_ct_RANLIB"; then
  5584. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5585. else
  5586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5587. for as_dir in $PATH
  5588. do
  5589. IFS=$as_save_IFS
  5590. test -z "$as_dir" && as_dir=.
  5591. for ac_exec_ext in '' $ac_executable_extensions; do
  5592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5593. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5595. break 2
  5596. fi
  5597. done
  5598. done
  5599. IFS=$as_save_IFS
  5600. fi
  5601. fi
  5602. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5603. if test -n "$ac_ct_RANLIB"; then
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5605. $as_echo "$ac_ct_RANLIB" >&6; }
  5606. else
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. fi
  5610. if test "x$ac_ct_RANLIB" = x; then
  5611. RANLIB=":"
  5612. else
  5613. case $cross_compiling:$ac_tool_warned in
  5614. yes:)
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5617. ac_tool_warned=yes ;;
  5618. esac
  5619. RANLIB=$ac_ct_RANLIB
  5620. fi
  5621. else
  5622. RANLIB="$ac_cv_prog_RANLIB"
  5623. fi
  5624. test -z "$RANLIB" && RANLIB=:
  5625. # Determine commands to create old-style static archives.
  5626. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5627. old_postinstall_cmds='chmod 644 $oldlib'
  5628. old_postuninstall_cmds=
  5629. if test -n "$RANLIB"; then
  5630. case $host_os in
  5631. openbsd*)
  5632. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5633. ;;
  5634. *)
  5635. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5636. ;;
  5637. esac
  5638. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5639. fi
  5640. case $host_os in
  5641. darwin*)
  5642. lock_old_archive_extraction=yes ;;
  5643. *)
  5644. lock_old_archive_extraction=no ;;
  5645. esac
  5646. # If no C compiler was specified, use CC.
  5647. LTCC=${LTCC-"$CC"}
  5648. # If no C compiler flags were specified, use CFLAGS.
  5649. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5650. # Allow CC to be a program name with arguments.
  5651. compiler=$CC
  5652. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5654. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5655. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. # These are sane defaults that work on at least a few old systems.
  5659. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5660. # Character class describing NM global symbol codes.
  5661. symcode='[BCDEGRST]'
  5662. # Regexp to match symbols that can be accessed directly from C.
  5663. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5664. # Define system-specific variables.
  5665. case $host_os in
  5666. aix*)
  5667. symcode='[BCDT]'
  5668. ;;
  5669. cygwin* | mingw* | pw32* | cegcc*)
  5670. symcode='[ABCDGISTW]'
  5671. ;;
  5672. hpux*)
  5673. if test "$host_cpu" = ia64; then
  5674. symcode='[ABCDEGRST]'
  5675. fi
  5676. ;;
  5677. irix* | nonstopux*)
  5678. symcode='[BCDEGRST]'
  5679. ;;
  5680. osf*)
  5681. symcode='[BCDEGQRST]'
  5682. ;;
  5683. solaris*)
  5684. symcode='[BDRT]'
  5685. ;;
  5686. sco3.2v5*)
  5687. symcode='[DT]'
  5688. ;;
  5689. sysv4.2uw2*)
  5690. symcode='[DT]'
  5691. ;;
  5692. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5693. symcode='[ABDT]'
  5694. ;;
  5695. sysv4)
  5696. symcode='[DFNSTU]'
  5697. ;;
  5698. esac
  5699. # If we're using GNU nm, then use its standard symbol codes.
  5700. case `$NM -V 2>&1` in
  5701. *GNU* | *'with BFD'*)
  5702. symcode='[ABCDGIRSTW]' ;;
  5703. esac
  5704. # Transform an extracted symbol line into a proper C declaration.
  5705. # Some systems (esp. on ia64) link data and code symbols differently,
  5706. # so use this general approach.
  5707. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5708. # Transform an extracted symbol line into symbol name and symbol address
  5709. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5710. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5711. # Handle CRLF in mingw tool chain
  5712. opt_cr=
  5713. case $build_os in
  5714. mingw*)
  5715. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5716. ;;
  5717. esac
  5718. # Try without a prefix underscore, then with it.
  5719. for ac_symprfx in "" "_"; do
  5720. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5721. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5722. # Write the raw and C identifiers.
  5723. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5724. # Fake it for dumpbin and say T for any non-static function
  5725. # and D for any global variable.
  5726. # Also find C++ and __fastcall symbols from MSVC++,
  5727. # which start with @ or ?.
  5728. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5729. " {last_section=section; section=\$ 3};"\
  5730. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5731. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5732. " \$ 0!~/External *\|/{next};"\
  5733. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5734. " {if(hide[section]) next};"\
  5735. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5736. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5737. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5738. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5739. " ' prfx=^$ac_symprfx"
  5740. else
  5741. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5742. fi
  5743. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5744. # Check to see that the pipe works correctly.
  5745. pipe_works=no
  5746. rm -f conftest*
  5747. cat > conftest.$ac_ext <<_LT_EOF
  5748. #ifdef __cplusplus
  5749. extern "C" {
  5750. #endif
  5751. char nm_test_var;
  5752. void nm_test_func(void);
  5753. void nm_test_func(void){}
  5754. #ifdef __cplusplus
  5755. }
  5756. #endif
  5757. int main(){nm_test_var='a';nm_test_func();return(0);}
  5758. _LT_EOF
  5759. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5760. (eval $ac_compile) 2>&5
  5761. ac_status=$?
  5762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5763. test $ac_status = 0; }; then
  5764. # Now try to grab the symbols.
  5765. nlist=conftest.nm
  5766. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5767. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5768. ac_status=$?
  5769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5770. test $ac_status = 0; } && test -s "$nlist"; then
  5771. # Try sorting and uniquifying the output.
  5772. if sort "$nlist" | uniq > "$nlist"T; then
  5773. mv -f "$nlist"T "$nlist"
  5774. else
  5775. rm -f "$nlist"T
  5776. fi
  5777. # Make sure that we snagged all the symbols we need.
  5778. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5779. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5780. cat <<_LT_EOF > conftest.$ac_ext
  5781. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5782. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5783. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5784. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5785. # define LT@&t@_DLSYM_CONST
  5786. #elif defined(__osf__)
  5787. /* This system does not cope well with relocations in const data. */
  5788. # define LT@&t@_DLSYM_CONST
  5789. #else
  5790. # define LT@&t@_DLSYM_CONST const
  5791. #endif
  5792. #ifdef __cplusplus
  5793. extern "C" {
  5794. #endif
  5795. _LT_EOF
  5796. # Now generate the symbol file.
  5797. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5798. cat <<_LT_EOF >> conftest.$ac_ext
  5799. /* The mapping between symbol names and symbols. */
  5800. LT@&t@_DLSYM_CONST struct {
  5801. const char *name;
  5802. void *address;
  5803. }
  5804. lt__PROGRAM__LTX_preloaded_symbols[] =
  5805. {
  5806. { "@PROGRAM@", (void *) 0 },
  5807. _LT_EOF
  5808. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5809. cat <<\_LT_EOF >> conftest.$ac_ext
  5810. {0, (void *) 0}
  5811. };
  5812. /* This works around a problem in FreeBSD linker */
  5813. #ifdef FREEBSD_WORKAROUND
  5814. static const void *lt_preloaded_setup() {
  5815. return lt__PROGRAM__LTX_preloaded_symbols;
  5816. }
  5817. #endif
  5818. #ifdef __cplusplus
  5819. }
  5820. #endif
  5821. _LT_EOF
  5822. # Now try linking the two files.
  5823. mv conftest.$ac_objext conftstm.$ac_objext
  5824. lt_globsym_save_LIBS=$LIBS
  5825. lt_globsym_save_CFLAGS=$CFLAGS
  5826. LIBS="conftstm.$ac_objext"
  5827. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5828. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5829. (eval $ac_link) 2>&5
  5830. ac_status=$?
  5831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5832. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5833. pipe_works=yes
  5834. fi
  5835. LIBS=$lt_globsym_save_LIBS
  5836. CFLAGS=$lt_globsym_save_CFLAGS
  5837. else
  5838. echo "cannot find nm_test_func in $nlist" >&5
  5839. fi
  5840. else
  5841. echo "cannot find nm_test_var in $nlist" >&5
  5842. fi
  5843. else
  5844. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5845. fi
  5846. else
  5847. echo "$progname: failed program was:" >&5
  5848. cat conftest.$ac_ext >&5
  5849. fi
  5850. rm -rf conftest* conftst*
  5851. # Do not use the global_symbol_pipe unless it works.
  5852. if test "$pipe_works" = yes; then
  5853. break
  5854. else
  5855. lt_cv_sys_global_symbol_pipe=
  5856. fi
  5857. done
  5858. fi
  5859. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5860. lt_cv_sys_global_symbol_to_cdecl=
  5861. fi
  5862. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5864. $as_echo "failed" >&6; }
  5865. else
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5867. $as_echo "ok" >&6; }
  5868. fi
  5869. # Response file support.
  5870. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5871. nm_file_list_spec='@'
  5872. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5873. nm_file_list_spec='@'
  5874. fi
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5876. $as_echo_n "checking for sysroot... " >&6; }
  5877. @%:@ Check whether --with-sysroot was given.
  5878. if test "${with_sysroot+set}" = set; then :
  5879. withval=$with_sysroot;
  5880. else
  5881. with_sysroot=no
  5882. fi
  5883. lt_sysroot=
  5884. case ${with_sysroot} in #(
  5885. yes)
  5886. if test "$GCC" = yes; then
  5887. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5888. fi
  5889. ;; #(
  5890. /*)
  5891. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5892. ;; #(
  5893. no|'')
  5894. ;; #(
  5895. *)
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5897. $as_echo "${with_sysroot}" >&6; }
  5898. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5899. ;;
  5900. esac
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5902. $as_echo "${lt_sysroot:-no}" >&6; }
  5903. @%:@ Check whether --enable-libtool-lock was given.
  5904. if test "${enable_libtool_lock+set}" = set; then :
  5905. enableval=$enable_libtool_lock;
  5906. fi
  5907. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5908. # Some flags need to be propagated to the compiler or linker for good
  5909. # libtool support.
  5910. case $host in
  5911. ia64-*-hpux*)
  5912. # Find out which ABI we are using.
  5913. echo 'int i;' > conftest.$ac_ext
  5914. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5915. (eval $ac_compile) 2>&5
  5916. ac_status=$?
  5917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5918. test $ac_status = 0; }; then
  5919. case `/usr/bin/file conftest.$ac_objext` in
  5920. *ELF-32*)
  5921. HPUX_IA64_MODE="32"
  5922. ;;
  5923. *ELF-64*)
  5924. HPUX_IA64_MODE="64"
  5925. ;;
  5926. esac
  5927. fi
  5928. rm -rf conftest*
  5929. ;;
  5930. *-*-irix6*)
  5931. # Find out which ABI we are using.
  5932. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5934. (eval $ac_compile) 2>&5
  5935. ac_status=$?
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5937. test $ac_status = 0; }; then
  5938. if test "$lt_cv_prog_gnu_ld" = yes; then
  5939. case `/usr/bin/file conftest.$ac_objext` in
  5940. *32-bit*)
  5941. LD="${LD-ld} -melf32bsmip"
  5942. ;;
  5943. *N32*)
  5944. LD="${LD-ld} -melf32bmipn32"
  5945. ;;
  5946. *64-bit*)
  5947. LD="${LD-ld} -melf64bmip"
  5948. ;;
  5949. esac
  5950. else
  5951. case `/usr/bin/file conftest.$ac_objext` in
  5952. *32-bit*)
  5953. LD="${LD-ld} -32"
  5954. ;;
  5955. *N32*)
  5956. LD="${LD-ld} -n32"
  5957. ;;
  5958. *64-bit*)
  5959. LD="${LD-ld} -64"
  5960. ;;
  5961. esac
  5962. fi
  5963. fi
  5964. rm -rf conftest*
  5965. ;;
  5966. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5967. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5968. # Find out which ABI we are using.
  5969. echo 'int i;' > conftest.$ac_ext
  5970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5971. (eval $ac_compile) 2>&5
  5972. ac_status=$?
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; }; then
  5975. case `/usr/bin/file conftest.o` in
  5976. *32-bit*)
  5977. case $host in
  5978. x86_64-*kfreebsd*-gnu)
  5979. LD="${LD-ld} -m elf_i386_fbsd"
  5980. ;;
  5981. x86_64-*linux*)
  5982. LD="${LD-ld} -m elf_i386"
  5983. ;;
  5984. ppc64-*linux*|powerpc64-*linux*)
  5985. LD="${LD-ld} -m elf32ppclinux"
  5986. ;;
  5987. s390x-*linux*)
  5988. LD="${LD-ld} -m elf_s390"
  5989. ;;
  5990. sparc64-*linux*)
  5991. LD="${LD-ld} -m elf32_sparc"
  5992. ;;
  5993. esac
  5994. ;;
  5995. *64-bit*)
  5996. case $host in
  5997. x86_64-*kfreebsd*-gnu)
  5998. LD="${LD-ld} -m elf_x86_64_fbsd"
  5999. ;;
  6000. x86_64-*linux*)
  6001. LD="${LD-ld} -m elf_x86_64"
  6002. ;;
  6003. ppc*-*linux*|powerpc*-*linux*)
  6004. LD="${LD-ld} -m elf64ppc"
  6005. ;;
  6006. s390*-*linux*|s390*-*tpf*)
  6007. LD="${LD-ld} -m elf64_s390"
  6008. ;;
  6009. sparc*-*linux*)
  6010. LD="${LD-ld} -m elf64_sparc"
  6011. ;;
  6012. esac
  6013. ;;
  6014. esac
  6015. fi
  6016. rm -rf conftest*
  6017. ;;
  6018. *-*-sco3.2v5*)
  6019. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6020. SAVE_CFLAGS="$CFLAGS"
  6021. CFLAGS="$CFLAGS -belf"
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6023. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6024. if ${lt_cv_cc_needs_belf+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. ac_ext=c
  6028. ac_cpp='$CPP $CPPFLAGS'
  6029. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6030. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6031. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end confdefs.h. */
  6034. int
  6035. main ()
  6036. {
  6037. ;
  6038. return 0;
  6039. }
  6040. _ACEOF
  6041. if ac_fn_c_try_link "$LINENO"; then :
  6042. lt_cv_cc_needs_belf=yes
  6043. else
  6044. lt_cv_cc_needs_belf=no
  6045. fi
  6046. rm -f core conftest.err conftest.$ac_objext \
  6047. conftest$ac_exeext conftest.$ac_ext
  6048. ac_ext=c
  6049. ac_cpp='$CPP $CPPFLAGS'
  6050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6053. fi
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6055. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6056. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6057. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6058. CFLAGS="$SAVE_CFLAGS"
  6059. fi
  6060. ;;
  6061. *-*solaris*)
  6062. # Find out which ABI we are using.
  6063. echo 'int i;' > conftest.$ac_ext
  6064. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6065. (eval $ac_compile) 2>&5
  6066. ac_status=$?
  6067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6068. test $ac_status = 0; }; then
  6069. case `/usr/bin/file conftest.o` in
  6070. *64-bit*)
  6071. case $lt_cv_prog_gnu_ld in
  6072. yes*)
  6073. case $host in
  6074. i?86-*-solaris*)
  6075. LD="${LD-ld} -m elf_x86_64"
  6076. ;;
  6077. sparc*-*-solaris*)
  6078. LD="${LD-ld} -m elf64_sparc"
  6079. ;;
  6080. esac
  6081. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6082. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6083. LD="${LD-ld}_sol2"
  6084. fi
  6085. ;;
  6086. *)
  6087. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6088. LD="${LD-ld} -64"
  6089. fi
  6090. ;;
  6091. esac
  6092. ;;
  6093. esac
  6094. fi
  6095. rm -rf conftest*
  6096. ;;
  6097. esac
  6098. need_locks="$enable_libtool_lock"
  6099. if test -n "$ac_tool_prefix"; then
  6100. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6101. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6103. $as_echo_n "checking for $ac_word... " >&6; }
  6104. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. if test -n "$MANIFEST_TOOL"; then
  6108. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6109. else
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. test -z "$as_dir" && as_dir=.
  6115. for ac_exec_ext in '' $ac_executable_extensions; do
  6116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6117. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6119. break 2
  6120. fi
  6121. done
  6122. done
  6123. IFS=$as_save_IFS
  6124. fi
  6125. fi
  6126. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6127. if test -n "$MANIFEST_TOOL"; then
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6129. $as_echo "$MANIFEST_TOOL" >&6; }
  6130. else
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6132. $as_echo "no" >&6; }
  6133. fi
  6134. fi
  6135. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6136. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6137. # Extract the first word of "mt", so it can be a program name with args.
  6138. set dummy mt; ac_word=$2
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6140. $as_echo_n "checking for $ac_word... " >&6; }
  6141. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6142. $as_echo_n "(cached) " >&6
  6143. else
  6144. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6145. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6146. else
  6147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6148. for as_dir in $PATH
  6149. do
  6150. IFS=$as_save_IFS
  6151. test -z "$as_dir" && as_dir=.
  6152. for ac_exec_ext in '' $ac_executable_extensions; do
  6153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6154. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6156. break 2
  6157. fi
  6158. done
  6159. done
  6160. IFS=$as_save_IFS
  6161. fi
  6162. fi
  6163. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6164. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6166. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6167. else
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6169. $as_echo "no" >&6; }
  6170. fi
  6171. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6172. MANIFEST_TOOL=":"
  6173. else
  6174. case $cross_compiling:$ac_tool_warned in
  6175. yes:)
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6177. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6178. ac_tool_warned=yes ;;
  6179. esac
  6180. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6181. fi
  6182. else
  6183. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6184. fi
  6185. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6187. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6188. if ${lt_cv_path_mainfest_tool+:} false; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. lt_cv_path_mainfest_tool=no
  6192. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6193. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6194. cat conftest.err >&5
  6195. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6196. lt_cv_path_mainfest_tool=yes
  6197. fi
  6198. rm -f conftest*
  6199. fi
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6201. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6202. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6203. MANIFEST_TOOL=:
  6204. fi
  6205. case $host_os in
  6206. rhapsody* | darwin*)
  6207. if test -n "$ac_tool_prefix"; then
  6208. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6209. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. $as_echo_n "checking for $ac_word... " >&6; }
  6212. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$DSYMUTIL"; then
  6216. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6217. else
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6225. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. fi
  6233. fi
  6234. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6235. if test -n "$DSYMUTIL"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6237. $as_echo "$DSYMUTIL" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. fi
  6243. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6244. ac_ct_DSYMUTIL=$DSYMUTIL
  6245. # Extract the first word of "dsymutil", so it can be a program name with args.
  6246. set dummy dsymutil; ac_word=$2
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6248. $as_echo_n "checking for $ac_word... " >&6; }
  6249. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$ac_ct_DSYMUTIL"; then
  6253. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6262. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6272. if test -n "$ac_ct_DSYMUTIL"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6274. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. if test "x$ac_ct_DSYMUTIL" = x; then
  6280. DSYMUTIL=":"
  6281. else
  6282. case $cross_compiling:$ac_tool_warned in
  6283. yes:)
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6285. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6286. ac_tool_warned=yes ;;
  6287. esac
  6288. DSYMUTIL=$ac_ct_DSYMUTIL
  6289. fi
  6290. else
  6291. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6292. fi
  6293. if test -n "$ac_tool_prefix"; then
  6294. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6295. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6297. $as_echo_n "checking for $ac_word... " >&6; }
  6298. if ${ac_cv_prog_NMEDIT+:} false; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. if test -n "$NMEDIT"; then
  6302. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6303. else
  6304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6305. for as_dir in $PATH
  6306. do
  6307. IFS=$as_save_IFS
  6308. test -z "$as_dir" && as_dir=.
  6309. for ac_exec_ext in '' $ac_executable_extensions; do
  6310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6311. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6313. break 2
  6314. fi
  6315. done
  6316. done
  6317. IFS=$as_save_IFS
  6318. fi
  6319. fi
  6320. NMEDIT=$ac_cv_prog_NMEDIT
  6321. if test -n "$NMEDIT"; then
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6323. $as_echo "$NMEDIT" >&6; }
  6324. else
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6326. $as_echo "no" >&6; }
  6327. fi
  6328. fi
  6329. if test -z "$ac_cv_prog_NMEDIT"; then
  6330. ac_ct_NMEDIT=$NMEDIT
  6331. # Extract the first word of "nmedit", so it can be a program name with args.
  6332. set dummy nmedit; ac_word=$2
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6334. $as_echo_n "checking for $ac_word... " >&6; }
  6335. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. if test -n "$ac_ct_NMEDIT"; then
  6339. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6340. else
  6341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6342. for as_dir in $PATH
  6343. do
  6344. IFS=$as_save_IFS
  6345. test -z "$as_dir" && as_dir=.
  6346. for ac_exec_ext in '' $ac_executable_extensions; do
  6347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6348. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6350. break 2
  6351. fi
  6352. done
  6353. done
  6354. IFS=$as_save_IFS
  6355. fi
  6356. fi
  6357. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6358. if test -n "$ac_ct_NMEDIT"; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6360. $as_echo "$ac_ct_NMEDIT" >&6; }
  6361. else
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6363. $as_echo "no" >&6; }
  6364. fi
  6365. if test "x$ac_ct_NMEDIT" = x; then
  6366. NMEDIT=":"
  6367. else
  6368. case $cross_compiling:$ac_tool_warned in
  6369. yes:)
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6371. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6372. ac_tool_warned=yes ;;
  6373. esac
  6374. NMEDIT=$ac_ct_NMEDIT
  6375. fi
  6376. else
  6377. NMEDIT="$ac_cv_prog_NMEDIT"
  6378. fi
  6379. if test -n "$ac_tool_prefix"; then
  6380. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6381. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6383. $as_echo_n "checking for $ac_word... " >&6; }
  6384. if ${ac_cv_prog_LIPO+:} false; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. if test -n "$LIPO"; then
  6388. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6389. else
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6397. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. fi
  6405. fi
  6406. LIPO=$ac_cv_prog_LIPO
  6407. if test -n "$LIPO"; then
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6409. $as_echo "$LIPO" >&6; }
  6410. else
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6412. $as_echo "no" >&6; }
  6413. fi
  6414. fi
  6415. if test -z "$ac_cv_prog_LIPO"; then
  6416. ac_ct_LIPO=$LIPO
  6417. # Extract the first word of "lipo", so it can be a program name with args.
  6418. set dummy lipo; ac_word=$2
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. $as_echo_n "checking for $ac_word... " >&6; }
  6421. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. if test -n "$ac_ct_LIPO"; then
  6425. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6434. ac_cv_prog_ac_ct_LIPO="lipo"
  6435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6444. if test -n "$ac_ct_LIPO"; then
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6446. $as_echo "$ac_ct_LIPO" >&6; }
  6447. else
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. if test "x$ac_ct_LIPO" = x; then
  6452. LIPO=":"
  6453. else
  6454. case $cross_compiling:$ac_tool_warned in
  6455. yes:)
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6458. ac_tool_warned=yes ;;
  6459. esac
  6460. LIPO=$ac_ct_LIPO
  6461. fi
  6462. else
  6463. LIPO="$ac_cv_prog_LIPO"
  6464. fi
  6465. if test -n "$ac_tool_prefix"; then
  6466. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6467. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6469. $as_echo_n "checking for $ac_word... " >&6; }
  6470. if ${ac_cv_prog_OTOOL+:} false; then :
  6471. $as_echo_n "(cached) " >&6
  6472. else
  6473. if test -n "$OTOOL"; then
  6474. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6475. else
  6476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6477. for as_dir in $PATH
  6478. do
  6479. IFS=$as_save_IFS
  6480. test -z "$as_dir" && as_dir=.
  6481. for ac_exec_ext in '' $ac_executable_extensions; do
  6482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6483. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6485. break 2
  6486. fi
  6487. done
  6488. done
  6489. IFS=$as_save_IFS
  6490. fi
  6491. fi
  6492. OTOOL=$ac_cv_prog_OTOOL
  6493. if test -n "$OTOOL"; then
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6495. $as_echo "$OTOOL" >&6; }
  6496. else
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6498. $as_echo "no" >&6; }
  6499. fi
  6500. fi
  6501. if test -z "$ac_cv_prog_OTOOL"; then
  6502. ac_ct_OTOOL=$OTOOL
  6503. # Extract the first word of "otool", so it can be a program name with args.
  6504. set dummy otool; ac_word=$2
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6506. $as_echo_n "checking for $ac_word... " >&6; }
  6507. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. if test -n "$ac_ct_OTOOL"; then
  6511. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516. IFS=$as_save_IFS
  6517. test -z "$as_dir" && as_dir=.
  6518. for ac_exec_ext in '' $ac_executable_extensions; do
  6519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6520. ac_cv_prog_ac_ct_OTOOL="otool"
  6521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6522. break 2
  6523. fi
  6524. done
  6525. done
  6526. IFS=$as_save_IFS
  6527. fi
  6528. fi
  6529. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6530. if test -n "$ac_ct_OTOOL"; then
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6532. $as_echo "$ac_ct_OTOOL" >&6; }
  6533. else
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6535. $as_echo "no" >&6; }
  6536. fi
  6537. if test "x$ac_ct_OTOOL" = x; then
  6538. OTOOL=":"
  6539. else
  6540. case $cross_compiling:$ac_tool_warned in
  6541. yes:)
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6544. ac_tool_warned=yes ;;
  6545. esac
  6546. OTOOL=$ac_ct_OTOOL
  6547. fi
  6548. else
  6549. OTOOL="$ac_cv_prog_OTOOL"
  6550. fi
  6551. if test -n "$ac_tool_prefix"; then
  6552. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6553. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6555. $as_echo_n "checking for $ac_word... " >&6; }
  6556. if ${ac_cv_prog_OTOOL64+:} false; then :
  6557. $as_echo_n "(cached) " >&6
  6558. else
  6559. if test -n "$OTOOL64"; then
  6560. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6561. else
  6562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6563. for as_dir in $PATH
  6564. do
  6565. IFS=$as_save_IFS
  6566. test -z "$as_dir" && as_dir=.
  6567. for ac_exec_ext in '' $ac_executable_extensions; do
  6568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6569. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6571. break 2
  6572. fi
  6573. done
  6574. done
  6575. IFS=$as_save_IFS
  6576. fi
  6577. fi
  6578. OTOOL64=$ac_cv_prog_OTOOL64
  6579. if test -n "$OTOOL64"; then
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6581. $as_echo "$OTOOL64" >&6; }
  6582. else
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. fi
  6587. if test -z "$ac_cv_prog_OTOOL64"; then
  6588. ac_ct_OTOOL64=$OTOOL64
  6589. # Extract the first word of "otool64", so it can be a program name with args.
  6590. set dummy otool64; ac_word=$2
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6592. $as_echo_n "checking for $ac_word... " >&6; }
  6593. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. if test -n "$ac_ct_OTOOL64"; then
  6597. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6598. else
  6599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6600. for as_dir in $PATH
  6601. do
  6602. IFS=$as_save_IFS
  6603. test -z "$as_dir" && as_dir=.
  6604. for ac_exec_ext in '' $ac_executable_extensions; do
  6605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6606. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6608. break 2
  6609. fi
  6610. done
  6611. done
  6612. IFS=$as_save_IFS
  6613. fi
  6614. fi
  6615. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6616. if test -n "$ac_ct_OTOOL64"; then
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6618. $as_echo "$ac_ct_OTOOL64" >&6; }
  6619. else
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6621. $as_echo "no" >&6; }
  6622. fi
  6623. if test "x$ac_ct_OTOOL64" = x; then
  6624. OTOOL64=":"
  6625. else
  6626. case $cross_compiling:$ac_tool_warned in
  6627. yes:)
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6630. ac_tool_warned=yes ;;
  6631. esac
  6632. OTOOL64=$ac_ct_OTOOL64
  6633. fi
  6634. else
  6635. OTOOL64="$ac_cv_prog_OTOOL64"
  6636. fi
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6638. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6639. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. lt_cv_apple_cc_single_mod=no
  6643. if test -z "${LT_MULTI_MODULE}"; then
  6644. # By default we will add the -single_module flag. You can override
  6645. # by either setting the environment variable LT_MULTI_MODULE
  6646. # non-empty at configure time, or by adding -multi_module to the
  6647. # link flags.
  6648. rm -rf libconftest.dylib*
  6649. echo "int foo(void){return 1;}" > conftest.c
  6650. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6651. -dynamiclib -Wl,-single_module conftest.c" >&5
  6652. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6653. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6654. _lt_result=$?
  6655. # If there is a non-empty error log, and "single_module"
  6656. # appears in it, assume the flag caused a linker warning
  6657. if test -s conftest.err && $GREP single_module conftest.err; then
  6658. cat conftest.err >&5
  6659. # Otherwise, if the output was created with a 0 exit code from
  6660. # the compiler, it worked.
  6661. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6662. lt_cv_apple_cc_single_mod=yes
  6663. else
  6664. cat conftest.err >&5
  6665. fi
  6666. rm -rf libconftest.dylib*
  6667. rm -f conftest.*
  6668. fi
  6669. fi
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6671. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6673. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6674. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6675. $as_echo_n "(cached) " >&6
  6676. else
  6677. lt_cv_ld_exported_symbols_list=no
  6678. save_LDFLAGS=$LDFLAGS
  6679. echo "_main" > conftest.sym
  6680. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6682. /* end confdefs.h. */
  6683. int
  6684. main ()
  6685. {
  6686. ;
  6687. return 0;
  6688. }
  6689. _ACEOF
  6690. if ac_fn_c_try_link "$LINENO"; then :
  6691. lt_cv_ld_exported_symbols_list=yes
  6692. else
  6693. lt_cv_ld_exported_symbols_list=no
  6694. fi
  6695. rm -f core conftest.err conftest.$ac_objext \
  6696. conftest$ac_exeext conftest.$ac_ext
  6697. LDFLAGS="$save_LDFLAGS"
  6698. fi
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6700. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6702. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6703. if ${lt_cv_ld_force_load+:} false; then :
  6704. $as_echo_n "(cached) " >&6
  6705. else
  6706. lt_cv_ld_force_load=no
  6707. cat > conftest.c << _LT_EOF
  6708. int forced_loaded() { return 2;}
  6709. _LT_EOF
  6710. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6711. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6712. echo "$AR cru libconftest.a conftest.o" >&5
  6713. $AR cru libconftest.a conftest.o 2>&5
  6714. echo "$RANLIB libconftest.a" >&5
  6715. $RANLIB libconftest.a 2>&5
  6716. cat > conftest.c << _LT_EOF
  6717. int main() { return 0;}
  6718. _LT_EOF
  6719. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6720. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6721. _lt_result=$?
  6722. if test -s conftest.err && $GREP force_load conftest.err; then
  6723. cat conftest.err >&5
  6724. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6725. lt_cv_ld_force_load=yes
  6726. else
  6727. cat conftest.err >&5
  6728. fi
  6729. rm -f conftest.err libconftest.a conftest conftest.c
  6730. rm -rf conftest.dSYM
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6733. $as_echo "$lt_cv_ld_force_load" >&6; }
  6734. case $host_os in
  6735. rhapsody* | darwin1.[012])
  6736. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6737. darwin1.*)
  6738. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6739. darwin*) # darwin 5.x on
  6740. # if running on 10.5 or later, the deployment target defaults
  6741. # to the OS version, if on x86, and 10.4, the deployment
  6742. # target defaults to 10.4. Don't you love it?
  6743. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6744. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6745. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6746. 10.[012]*)
  6747. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6748. 10.*)
  6749. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6750. esac
  6751. ;;
  6752. esac
  6753. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6754. _lt_dar_single_mod='$single_module'
  6755. fi
  6756. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6757. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6758. else
  6759. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6760. fi
  6761. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6762. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6763. else
  6764. _lt_dsymutil=
  6765. fi
  6766. ;;
  6767. esac
  6768. ac_ext=c
  6769. ac_cpp='$CPP $CPPFLAGS'
  6770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6774. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6775. # On Suns, sometimes $CPP names a directory.
  6776. if test -n "$CPP" && test -d "$CPP"; then
  6777. CPP=
  6778. fi
  6779. if test -z "$CPP"; then
  6780. if ${ac_cv_prog_CPP+:} false; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. # Double quotes because CPP needs to be expanded
  6784. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6785. do
  6786. ac_preproc_ok=false
  6787. for ac_c_preproc_warn_flag in '' yes
  6788. do
  6789. # Use a header file that comes with gcc, so configuring glibc
  6790. # with a fresh cross-compiler works.
  6791. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6792. # <limits.h> exists even on freestanding compilers.
  6793. # On the NeXT, cc -E runs the code through the compiler's parser,
  6794. # not just through cpp. "Syntax error" is here to catch this case.
  6795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6796. /* end confdefs.h. */
  6797. @%:@ifdef __STDC__
  6798. @%:@ include <limits.h>
  6799. @%:@else
  6800. @%:@ include <assert.h>
  6801. @%:@endif
  6802. Syntax error
  6803. _ACEOF
  6804. if ac_fn_c_try_cpp "$LINENO"; then :
  6805. else
  6806. # Broken: fails on valid input.
  6807. continue
  6808. fi
  6809. rm -f conftest.err conftest.i conftest.$ac_ext
  6810. # OK, works on sane cases. Now check whether nonexistent headers
  6811. # can be detected and how.
  6812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6813. /* end confdefs.h. */
  6814. @%:@include <ac_nonexistent.h>
  6815. _ACEOF
  6816. if ac_fn_c_try_cpp "$LINENO"; then :
  6817. # Broken: success on invalid input.
  6818. continue
  6819. else
  6820. # Passes both tests.
  6821. ac_preproc_ok=:
  6822. break
  6823. fi
  6824. rm -f conftest.err conftest.i conftest.$ac_ext
  6825. done
  6826. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6827. rm -f conftest.i conftest.err conftest.$ac_ext
  6828. if $ac_preproc_ok; then :
  6829. break
  6830. fi
  6831. done
  6832. ac_cv_prog_CPP=$CPP
  6833. fi
  6834. CPP=$ac_cv_prog_CPP
  6835. else
  6836. ac_cv_prog_CPP=$CPP
  6837. fi
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6839. $as_echo "$CPP" >&6; }
  6840. ac_preproc_ok=false
  6841. for ac_c_preproc_warn_flag in '' yes
  6842. do
  6843. # Use a header file that comes with gcc, so configuring glibc
  6844. # with a fresh cross-compiler works.
  6845. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6846. # <limits.h> exists even on freestanding compilers.
  6847. # On the NeXT, cc -E runs the code through the compiler's parser,
  6848. # not just through cpp. "Syntax error" is here to catch this case.
  6849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6850. /* end confdefs.h. */
  6851. @%:@ifdef __STDC__
  6852. @%:@ include <limits.h>
  6853. @%:@else
  6854. @%:@ include <assert.h>
  6855. @%:@endif
  6856. Syntax error
  6857. _ACEOF
  6858. if ac_fn_c_try_cpp "$LINENO"; then :
  6859. else
  6860. # Broken: fails on valid input.
  6861. continue
  6862. fi
  6863. rm -f conftest.err conftest.i conftest.$ac_ext
  6864. # OK, works on sane cases. Now check whether nonexistent headers
  6865. # can be detected and how.
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. @%:@include <ac_nonexistent.h>
  6869. _ACEOF
  6870. if ac_fn_c_try_cpp "$LINENO"; then :
  6871. # Broken: success on invalid input.
  6872. continue
  6873. else
  6874. # Passes both tests.
  6875. ac_preproc_ok=:
  6876. break
  6877. fi
  6878. rm -f conftest.err conftest.i conftest.$ac_ext
  6879. done
  6880. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6881. rm -f conftest.i conftest.err conftest.$ac_ext
  6882. if $ac_preproc_ok; then :
  6883. else
  6884. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6885. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6886. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6887. See \`config.log' for more details" "$LINENO" 5; }
  6888. fi
  6889. ac_ext=c
  6890. ac_cpp='$CPP $CPPFLAGS'
  6891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6895. $as_echo_n "checking for ANSI C header files... " >&6; }
  6896. if ${ac_cv_header_stdc+:} false; then :
  6897. $as_echo_n "(cached) " >&6
  6898. else
  6899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6900. /* end confdefs.h. */
  6901. #include <stdlib.h>
  6902. #include <stdarg.h>
  6903. #include <string.h>
  6904. #include <float.h>
  6905. int
  6906. main ()
  6907. {
  6908. ;
  6909. return 0;
  6910. }
  6911. _ACEOF
  6912. if ac_fn_c_try_compile "$LINENO"; then :
  6913. ac_cv_header_stdc=yes
  6914. else
  6915. ac_cv_header_stdc=no
  6916. fi
  6917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6918. if test $ac_cv_header_stdc = yes; then
  6919. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6921. /* end confdefs.h. */
  6922. #include <string.h>
  6923. _ACEOF
  6924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6925. $EGREP "memchr" >/dev/null 2>&1; then :
  6926. else
  6927. ac_cv_header_stdc=no
  6928. fi
  6929. rm -f conftest*
  6930. fi
  6931. if test $ac_cv_header_stdc = yes; then
  6932. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6934. /* end confdefs.h. */
  6935. #include <stdlib.h>
  6936. _ACEOF
  6937. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6938. $EGREP "free" >/dev/null 2>&1; then :
  6939. else
  6940. ac_cv_header_stdc=no
  6941. fi
  6942. rm -f conftest*
  6943. fi
  6944. if test $ac_cv_header_stdc = yes; then
  6945. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6946. if test "$cross_compiling" = yes; then :
  6947. :
  6948. else
  6949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6950. /* end confdefs.h. */
  6951. #include <ctype.h>
  6952. #include <stdlib.h>
  6953. #if ((' ' & 0x0FF) == 0x020)
  6954. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6955. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6956. #else
  6957. # define ISLOWER(c) \
  6958. (('a' <= (c) && (c) <= 'i') \
  6959. || ('j' <= (c) && (c) <= 'r') \
  6960. || ('s' <= (c) && (c) <= 'z'))
  6961. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6962. #endif
  6963. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6964. int
  6965. main ()
  6966. {
  6967. int i;
  6968. for (i = 0; i < 256; i++)
  6969. if (XOR (islower (i), ISLOWER (i))
  6970. || toupper (i) != TOUPPER (i))
  6971. return 2;
  6972. return 0;
  6973. }
  6974. _ACEOF
  6975. if ac_fn_c_try_run "$LINENO"; then :
  6976. else
  6977. ac_cv_header_stdc=no
  6978. fi
  6979. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6980. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6981. fi
  6982. fi
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6985. $as_echo "$ac_cv_header_stdc" >&6; }
  6986. if test $ac_cv_header_stdc = yes; then
  6987. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  6988. fi
  6989. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6990. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6991. inttypes.h stdint.h unistd.h
  6992. do :
  6993. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6994. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6995. "
  6996. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6997. cat >>confdefs.h <<_ACEOF
  6998. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6999. _ACEOF
  7000. fi
  7001. done
  7002. for ac_header in dlfcn.h
  7003. do :
  7004. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7005. "
  7006. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7007. cat >>confdefs.h <<_ACEOF
  7008. @%:@define HAVE_DLFCN_H 1
  7009. _ACEOF
  7010. fi
  7011. done
  7012. # Set options
  7013. enable_dlopen=no
  7014. @%:@ Check whether --enable-shared was given.
  7015. if test "${enable_shared+set}" = set; then :
  7016. enableval=$enable_shared; p=${PACKAGE-default}
  7017. case $enableval in
  7018. yes) enable_shared=yes ;;
  7019. no) enable_shared=no ;;
  7020. *)
  7021. enable_shared=no
  7022. # Look at the argument we got. We use all the common list separators.
  7023. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7024. for pkg in $enableval; do
  7025. IFS="$lt_save_ifs"
  7026. if test "X$pkg" = "X$p"; then
  7027. enable_shared=yes
  7028. fi
  7029. done
  7030. IFS="$lt_save_ifs"
  7031. ;;
  7032. esac
  7033. else
  7034. enable_shared=yes
  7035. fi
  7036. @%:@ Check whether --enable-static was given.
  7037. if test "${enable_static+set}" = set; then :
  7038. enableval=$enable_static; p=${PACKAGE-default}
  7039. case $enableval in
  7040. yes) enable_static=yes ;;
  7041. no) enable_static=no ;;
  7042. *)
  7043. enable_static=no
  7044. # Look at the argument we got. We use all the common list separators.
  7045. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7046. for pkg in $enableval; do
  7047. IFS="$lt_save_ifs"
  7048. if test "X$pkg" = "X$p"; then
  7049. enable_static=yes
  7050. fi
  7051. done
  7052. IFS="$lt_save_ifs"
  7053. ;;
  7054. esac
  7055. else
  7056. enable_static=yes
  7057. fi
  7058. @%:@ Check whether --with-pic was given.
  7059. if test "${with_pic+set}" = set; then :
  7060. withval=$with_pic; lt_p=${PACKAGE-default}
  7061. case $withval in
  7062. yes|no) pic_mode=$withval ;;
  7063. *)
  7064. pic_mode=default
  7065. # Look at the argument we got. We use all the common list separators.
  7066. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7067. for lt_pkg in $withval; do
  7068. IFS="$lt_save_ifs"
  7069. if test "X$lt_pkg" = "X$lt_p"; then
  7070. pic_mode=yes
  7071. fi
  7072. done
  7073. IFS="$lt_save_ifs"
  7074. ;;
  7075. esac
  7076. else
  7077. pic_mode=default
  7078. fi
  7079. test -z "$pic_mode" && pic_mode=default
  7080. @%:@ Check whether --enable-fast-install was given.
  7081. if test "${enable_fast_install+set}" = set; then :
  7082. enableval=$enable_fast_install; p=${PACKAGE-default}
  7083. case $enableval in
  7084. yes) enable_fast_install=yes ;;
  7085. no) enable_fast_install=no ;;
  7086. *)
  7087. enable_fast_install=no
  7088. # Look at the argument we got. We use all the common list separators.
  7089. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7090. for pkg in $enableval; do
  7091. IFS="$lt_save_ifs"
  7092. if test "X$pkg" = "X$p"; then
  7093. enable_fast_install=yes
  7094. fi
  7095. done
  7096. IFS="$lt_save_ifs"
  7097. ;;
  7098. esac
  7099. else
  7100. enable_fast_install=yes
  7101. fi
  7102. # This can be used to rebuild libtool when needed
  7103. LIBTOOL_DEPS="$ltmain"
  7104. # Always use our own libtool.
  7105. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7106. test -z "$LN_S" && LN_S="ln -s"
  7107. if test -n "${ZSH_VERSION+set}" ; then
  7108. setopt NO_GLOB_SUBST
  7109. fi
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7111. $as_echo_n "checking for objdir... " >&6; }
  7112. if ${lt_cv_objdir+:} false; then :
  7113. $as_echo_n "(cached) " >&6
  7114. else
  7115. rm -f .libs 2>/dev/null
  7116. mkdir .libs 2>/dev/null
  7117. if test -d .libs; then
  7118. lt_cv_objdir=.libs
  7119. else
  7120. # MS-DOS does not allow filenames that begin with a dot.
  7121. lt_cv_objdir=_libs
  7122. fi
  7123. rmdir .libs 2>/dev/null
  7124. fi
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7126. $as_echo "$lt_cv_objdir" >&6; }
  7127. objdir=$lt_cv_objdir
  7128. cat >>confdefs.h <<_ACEOF
  7129. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  7130. _ACEOF
  7131. case $host_os in
  7132. aix3*)
  7133. # AIX sometimes has problems with the GCC collect2 program. For some
  7134. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7135. # vanish in a puff of smoke.
  7136. if test "X${COLLECT_NAMES+set}" != Xset; then
  7137. COLLECT_NAMES=
  7138. export COLLECT_NAMES
  7139. fi
  7140. ;;
  7141. esac
  7142. # Global variables:
  7143. ofile=libtool
  7144. can_build_shared=yes
  7145. # All known linkers require a `.a' archive for static linking (except MSVC,
  7146. # which needs '.lib').
  7147. libext=a
  7148. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7149. old_CC="$CC"
  7150. old_CFLAGS="$CFLAGS"
  7151. # Set sane defaults for various variables
  7152. test -z "$CC" && CC=cc
  7153. test -z "$LTCC" && LTCC=$CC
  7154. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7155. test -z "$LD" && LD=ld
  7156. test -z "$ac_objext" && ac_objext=o
  7157. for cc_temp in $compiler""; do
  7158. case $cc_temp in
  7159. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7160. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7161. \-*) ;;
  7162. *) break;;
  7163. esac
  7164. done
  7165. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7166. # Only perform the check for file, if the check method requires it
  7167. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7168. case $deplibs_check_method in
  7169. file_magic*)
  7170. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7172. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7173. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7174. $as_echo_n "(cached) " >&6
  7175. else
  7176. case $MAGIC_CMD in
  7177. [\\/*] | ?:[\\/]*)
  7178. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7179. ;;
  7180. *)
  7181. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7182. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7183. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7184. for ac_dir in $ac_dummy; do
  7185. IFS="$lt_save_ifs"
  7186. test -z "$ac_dir" && ac_dir=.
  7187. if test -f $ac_dir/${ac_tool_prefix}file; then
  7188. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7189. if test -n "$file_magic_test_file"; then
  7190. case $deplibs_check_method in
  7191. "file_magic "*)
  7192. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7193. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7194. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7195. $EGREP "$file_magic_regex" > /dev/null; then
  7196. :
  7197. else
  7198. cat <<_LT_EOF 1>&2
  7199. *** Warning: the command libtool uses to detect shared libraries,
  7200. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7201. *** The result is that libtool may fail to recognize shared libraries
  7202. *** as such. This will affect the creation of libtool libraries that
  7203. *** depend on shared libraries, but programs linked with such libtool
  7204. *** libraries will work regardless of this problem. Nevertheless, you
  7205. *** may want to report the problem to your system manager and/or to
  7206. *** bug-libtool@gnu.org
  7207. _LT_EOF
  7208. fi ;;
  7209. esac
  7210. fi
  7211. break
  7212. fi
  7213. done
  7214. IFS="$lt_save_ifs"
  7215. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7216. ;;
  7217. esac
  7218. fi
  7219. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7220. if test -n "$MAGIC_CMD"; then
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7222. $as_echo "$MAGIC_CMD" >&6; }
  7223. else
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7225. $as_echo "no" >&6; }
  7226. fi
  7227. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7228. if test -n "$ac_tool_prefix"; then
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7230. $as_echo_n "checking for file... " >&6; }
  7231. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. case $MAGIC_CMD in
  7235. [\\/*] | ?:[\\/]*)
  7236. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7237. ;;
  7238. *)
  7239. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7240. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7241. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7242. for ac_dir in $ac_dummy; do
  7243. IFS="$lt_save_ifs"
  7244. test -z "$ac_dir" && ac_dir=.
  7245. if test -f $ac_dir/file; then
  7246. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7247. if test -n "$file_magic_test_file"; then
  7248. case $deplibs_check_method in
  7249. "file_magic "*)
  7250. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7251. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7252. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7253. $EGREP "$file_magic_regex" > /dev/null; then
  7254. :
  7255. else
  7256. cat <<_LT_EOF 1>&2
  7257. *** Warning: the command libtool uses to detect shared libraries,
  7258. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7259. *** The result is that libtool may fail to recognize shared libraries
  7260. *** as such. This will affect the creation of libtool libraries that
  7261. *** depend on shared libraries, but programs linked with such libtool
  7262. *** libraries will work regardless of this problem. Nevertheless, you
  7263. *** may want to report the problem to your system manager and/or to
  7264. *** bug-libtool@gnu.org
  7265. _LT_EOF
  7266. fi ;;
  7267. esac
  7268. fi
  7269. break
  7270. fi
  7271. done
  7272. IFS="$lt_save_ifs"
  7273. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7274. ;;
  7275. esac
  7276. fi
  7277. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7278. if test -n "$MAGIC_CMD"; then
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7280. $as_echo "$MAGIC_CMD" >&6; }
  7281. else
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7283. $as_echo "no" >&6; }
  7284. fi
  7285. else
  7286. MAGIC_CMD=:
  7287. fi
  7288. fi
  7289. fi
  7290. ;;
  7291. esac
  7292. # Use C for the default configuration in the libtool script
  7293. lt_save_CC="$CC"
  7294. ac_ext=c
  7295. ac_cpp='$CPP $CPPFLAGS'
  7296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7299. # Source file extension for C test sources.
  7300. ac_ext=c
  7301. # Object file extension for compiled C test sources.
  7302. objext=o
  7303. objext=$objext
  7304. # Code to be used in simple compile tests
  7305. lt_simple_compile_test_code="int some_variable = 0;"
  7306. # Code to be used in simple link tests
  7307. lt_simple_link_test_code='int main(){return(0);}'
  7308. # If no C compiler was specified, use CC.
  7309. LTCC=${LTCC-"$CC"}
  7310. # If no C compiler flags were specified, use CFLAGS.
  7311. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7312. # Allow CC to be a program name with arguments.
  7313. compiler=$CC
  7314. # Save the default compiler, since it gets overwritten when the other
  7315. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7316. compiler_DEFAULT=$CC
  7317. # save warnings/boilerplate of simple test code
  7318. ac_outfile=conftest.$ac_objext
  7319. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7320. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7321. _lt_compiler_boilerplate=`cat conftest.err`
  7322. $RM conftest*
  7323. ac_outfile=conftest.$ac_objext
  7324. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7325. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7326. _lt_linker_boilerplate=`cat conftest.err`
  7327. $RM -r conftest*
  7328. ## CAVEAT EMPTOR:
  7329. ## There is no encapsulation within the following macros, do not change
  7330. ## the running order or otherwise move them around unless you know exactly
  7331. ## what you are doing...
  7332. if test -n "$compiler"; then
  7333. lt_prog_compiler_no_builtin_flag=
  7334. if test "$GCC" = yes; then
  7335. case $cc_basename in
  7336. nvcc*)
  7337. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7338. *)
  7339. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7340. esac
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7342. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7343. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7344. $as_echo_n "(cached) " >&6
  7345. else
  7346. lt_cv_prog_compiler_rtti_exceptions=no
  7347. ac_outfile=conftest.$ac_objext
  7348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7349. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7350. # Insert the option either (1) after the last *FLAGS variable, or
  7351. # (2) before a word containing "conftest.", or (3) at the end.
  7352. # Note that $ac_compile itself does not contain backslashes and begins
  7353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7354. # The option is referenced via a variable to avoid confusing sed.
  7355. lt_compile=`echo "$ac_compile" | $SED \
  7356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7358. -e 's:$: $lt_compiler_flag:'`
  7359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7360. (eval "$lt_compile" 2>conftest.err)
  7361. ac_status=$?
  7362. cat conftest.err >&5
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. if (exit $ac_status) && test -s "$ac_outfile"; then
  7365. # The compiler can only warn and ignore the option if not recognized
  7366. # So say no if there are warnings other than the usual output.
  7367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7369. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7370. lt_cv_prog_compiler_rtti_exceptions=yes
  7371. fi
  7372. fi
  7373. $RM conftest*
  7374. fi
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7376. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7377. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7378. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7379. else
  7380. :
  7381. fi
  7382. fi
  7383. lt_prog_compiler_wl=
  7384. lt_prog_compiler_pic=
  7385. lt_prog_compiler_static=
  7386. if test "$GCC" = yes; then
  7387. lt_prog_compiler_wl='-Wl,'
  7388. lt_prog_compiler_static='-static'
  7389. case $host_os in
  7390. aix*)
  7391. # All AIX code is PIC.
  7392. if test "$host_cpu" = ia64; then
  7393. # AIX 5 now supports IA64 processor
  7394. lt_prog_compiler_static='-Bstatic'
  7395. fi
  7396. ;;
  7397. amigaos*)
  7398. case $host_cpu in
  7399. powerpc)
  7400. # see comment about AmigaOS4 .so support
  7401. lt_prog_compiler_pic='-fPIC'
  7402. ;;
  7403. m68k)
  7404. # FIXME: we need at least 68020 code to build shared libraries, but
  7405. # adding the `-m68020' flag to GCC prevents building anything better,
  7406. # like `-m68040'.
  7407. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7408. ;;
  7409. esac
  7410. ;;
  7411. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7412. # PIC is the default for these OSes.
  7413. ;;
  7414. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7415. # This hack is so that the source file can tell whether it is being
  7416. # built for inclusion in a dll (and should export symbols for example).
  7417. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7418. # (--disable-auto-import) libraries
  7419. lt_prog_compiler_pic='-DDLL_EXPORT'
  7420. ;;
  7421. darwin* | rhapsody*)
  7422. # PIC is the default on this platform
  7423. # Common symbols not allowed in MH_DYLIB files
  7424. lt_prog_compiler_pic='-fno-common'
  7425. ;;
  7426. haiku*)
  7427. # PIC is the default for Haiku.
  7428. # The "-static" flag exists, but is broken.
  7429. lt_prog_compiler_static=
  7430. ;;
  7431. hpux*)
  7432. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7433. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7434. # sets the default TLS model and affects inlining.
  7435. case $host_cpu in
  7436. hppa*64*)
  7437. # +Z the default
  7438. ;;
  7439. *)
  7440. lt_prog_compiler_pic='-fPIC'
  7441. ;;
  7442. esac
  7443. ;;
  7444. interix[3-9]*)
  7445. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7446. # Instead, we relocate shared libraries at runtime.
  7447. ;;
  7448. msdosdjgpp*)
  7449. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7450. # on systems that don't support them.
  7451. lt_prog_compiler_can_build_shared=no
  7452. enable_shared=no
  7453. ;;
  7454. *nto* | *qnx*)
  7455. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7456. # it will coredump.
  7457. lt_prog_compiler_pic='-fPIC -shared'
  7458. ;;
  7459. sysv4*MP*)
  7460. if test -d /usr/nec; then
  7461. lt_prog_compiler_pic=-Kconform_pic
  7462. fi
  7463. ;;
  7464. *)
  7465. lt_prog_compiler_pic='-fPIC'
  7466. ;;
  7467. esac
  7468. case $cc_basename in
  7469. nvcc*) # Cuda Compiler Driver 2.2
  7470. lt_prog_compiler_wl='-Xlinker '
  7471. if test -n "$lt_prog_compiler_pic"; then
  7472. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7473. fi
  7474. ;;
  7475. esac
  7476. else
  7477. # PORTME Check for flag to pass linker flags through the system compiler.
  7478. case $host_os in
  7479. aix*)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. if test "$host_cpu" = ia64; then
  7482. # AIX 5 now supports IA64 processor
  7483. lt_prog_compiler_static='-Bstatic'
  7484. else
  7485. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7486. fi
  7487. ;;
  7488. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7489. # This hack is so that the source file can tell whether it is being
  7490. # built for inclusion in a dll (and should export symbols for example).
  7491. lt_prog_compiler_pic='-DDLL_EXPORT'
  7492. ;;
  7493. hpux9* | hpux10* | hpux11*)
  7494. lt_prog_compiler_wl='-Wl,'
  7495. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7496. # not for PA HP-UX.
  7497. case $host_cpu in
  7498. hppa*64*|ia64*)
  7499. # +Z the default
  7500. ;;
  7501. *)
  7502. lt_prog_compiler_pic='+Z'
  7503. ;;
  7504. esac
  7505. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7506. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7507. ;;
  7508. irix5* | irix6* | nonstopux*)
  7509. lt_prog_compiler_wl='-Wl,'
  7510. # PIC (with -KPIC) is the default.
  7511. lt_prog_compiler_static='-non_shared'
  7512. ;;
  7513. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7514. case $cc_basename in
  7515. # old Intel for x86_64 which still supported -KPIC.
  7516. ecc*)
  7517. lt_prog_compiler_wl='-Wl,'
  7518. lt_prog_compiler_pic='-KPIC'
  7519. lt_prog_compiler_static='-static'
  7520. ;;
  7521. # icc used to be incompatible with GCC.
  7522. # ICC 10 doesn't accept -KPIC any more.
  7523. icc* | ifort*)
  7524. lt_prog_compiler_wl='-Wl,'
  7525. lt_prog_compiler_pic='-fPIC'
  7526. lt_prog_compiler_static='-static'
  7527. ;;
  7528. # Lahey Fortran 8.1.
  7529. lf95*)
  7530. lt_prog_compiler_wl='-Wl,'
  7531. lt_prog_compiler_pic='--shared'
  7532. lt_prog_compiler_static='--static'
  7533. ;;
  7534. nagfor*)
  7535. # NAG Fortran compiler
  7536. lt_prog_compiler_wl='-Wl,-Wl,,'
  7537. lt_prog_compiler_pic='-PIC'
  7538. lt_prog_compiler_static='-Bstatic'
  7539. ;;
  7540. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7541. # Portland Group compilers (*not* the Pentium gcc compiler,
  7542. # which looks to be a dead project)
  7543. lt_prog_compiler_wl='-Wl,'
  7544. lt_prog_compiler_pic='-fpic'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. ;;
  7547. ccc*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. # All Alpha code is PIC.
  7550. lt_prog_compiler_static='-non_shared'
  7551. ;;
  7552. xl* | bgxl* | bgf* | mpixl*)
  7553. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7554. lt_prog_compiler_wl='-Wl,'
  7555. lt_prog_compiler_pic='-qpic'
  7556. lt_prog_compiler_static='-qstaticlink'
  7557. ;;
  7558. *)
  7559. case `$CC -V 2>&1 | sed 5q` in
  7560. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7561. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7562. lt_prog_compiler_pic='-KPIC'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. lt_prog_compiler_wl=''
  7565. ;;
  7566. *Sun\ F* | *Sun*Fortran*)
  7567. lt_prog_compiler_pic='-KPIC'
  7568. lt_prog_compiler_static='-Bstatic'
  7569. lt_prog_compiler_wl='-Qoption ld '
  7570. ;;
  7571. *Sun\ C*)
  7572. # Sun C 5.9
  7573. lt_prog_compiler_pic='-KPIC'
  7574. lt_prog_compiler_static='-Bstatic'
  7575. lt_prog_compiler_wl='-Wl,'
  7576. ;;
  7577. *Intel*\ [CF]*Compiler*)
  7578. lt_prog_compiler_wl='-Wl,'
  7579. lt_prog_compiler_pic='-fPIC'
  7580. lt_prog_compiler_static='-static'
  7581. ;;
  7582. *Portland\ Group*)
  7583. lt_prog_compiler_wl='-Wl,'
  7584. lt_prog_compiler_pic='-fpic'
  7585. lt_prog_compiler_static='-Bstatic'
  7586. ;;
  7587. esac
  7588. ;;
  7589. esac
  7590. ;;
  7591. newsos6)
  7592. lt_prog_compiler_pic='-KPIC'
  7593. lt_prog_compiler_static='-Bstatic'
  7594. ;;
  7595. *nto* | *qnx*)
  7596. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7597. # it will coredump.
  7598. lt_prog_compiler_pic='-fPIC -shared'
  7599. ;;
  7600. osf3* | osf4* | osf5*)
  7601. lt_prog_compiler_wl='-Wl,'
  7602. # All OSF/1 code is PIC.
  7603. lt_prog_compiler_static='-non_shared'
  7604. ;;
  7605. rdos*)
  7606. lt_prog_compiler_static='-non_shared'
  7607. ;;
  7608. solaris*)
  7609. lt_prog_compiler_pic='-KPIC'
  7610. lt_prog_compiler_static='-Bstatic'
  7611. case $cc_basename in
  7612. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7613. lt_prog_compiler_wl='-Qoption ld ';;
  7614. *)
  7615. lt_prog_compiler_wl='-Wl,';;
  7616. esac
  7617. ;;
  7618. sunos4*)
  7619. lt_prog_compiler_wl='-Qoption ld '
  7620. lt_prog_compiler_pic='-PIC'
  7621. lt_prog_compiler_static='-Bstatic'
  7622. ;;
  7623. sysv4 | sysv4.2uw2* | sysv4.3*)
  7624. lt_prog_compiler_wl='-Wl,'
  7625. lt_prog_compiler_pic='-KPIC'
  7626. lt_prog_compiler_static='-Bstatic'
  7627. ;;
  7628. sysv4*MP*)
  7629. if test -d /usr/nec ;then
  7630. lt_prog_compiler_pic='-Kconform_pic'
  7631. lt_prog_compiler_static='-Bstatic'
  7632. fi
  7633. ;;
  7634. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7635. lt_prog_compiler_wl='-Wl,'
  7636. lt_prog_compiler_pic='-KPIC'
  7637. lt_prog_compiler_static='-Bstatic'
  7638. ;;
  7639. unicos*)
  7640. lt_prog_compiler_wl='-Wl,'
  7641. lt_prog_compiler_can_build_shared=no
  7642. ;;
  7643. uts4*)
  7644. lt_prog_compiler_pic='-pic'
  7645. lt_prog_compiler_static='-Bstatic'
  7646. ;;
  7647. *)
  7648. lt_prog_compiler_can_build_shared=no
  7649. ;;
  7650. esac
  7651. fi
  7652. case $host_os in
  7653. # For platforms which do not support PIC, -DPIC is meaningless:
  7654. *djgpp*)
  7655. lt_prog_compiler_pic=
  7656. ;;
  7657. *)
  7658. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  7659. ;;
  7660. esac
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7662. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7663. if ${lt_cv_prog_compiler_pic+:} false; then :
  7664. $as_echo_n "(cached) " >&6
  7665. else
  7666. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7667. fi
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7669. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7670. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7671. #
  7672. # Check to make sure the PIC flag actually works.
  7673. #
  7674. if test -n "$lt_prog_compiler_pic"; then
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7676. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7677. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7678. $as_echo_n "(cached) " >&6
  7679. else
  7680. lt_cv_prog_compiler_pic_works=no
  7681. ac_outfile=conftest.$ac_objext
  7682. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7683. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  7684. # Insert the option either (1) after the last *FLAGS variable, or
  7685. # (2) before a word containing "conftest.", or (3) at the end.
  7686. # Note that $ac_compile itself does not contain backslashes and begins
  7687. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7688. # The option is referenced via a variable to avoid confusing sed.
  7689. lt_compile=`echo "$ac_compile" | $SED \
  7690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7692. -e 's:$: $lt_compiler_flag:'`
  7693. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7694. (eval "$lt_compile" 2>conftest.err)
  7695. ac_status=$?
  7696. cat conftest.err >&5
  7697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7698. if (exit $ac_status) && test -s "$ac_outfile"; then
  7699. # The compiler can only warn and ignore the option if not recognized
  7700. # So say no if there are warnings other than the usual output.
  7701. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7702. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7703. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7704. lt_cv_prog_compiler_pic_works=yes
  7705. fi
  7706. fi
  7707. $RM conftest*
  7708. fi
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7710. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7711. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7712. case $lt_prog_compiler_pic in
  7713. "" | " "*) ;;
  7714. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7715. esac
  7716. else
  7717. lt_prog_compiler_pic=
  7718. lt_prog_compiler_can_build_shared=no
  7719. fi
  7720. fi
  7721. #
  7722. # Check to make sure the static flag actually works.
  7723. #
  7724. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7726. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7727. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7728. $as_echo_n "(cached) " >&6
  7729. else
  7730. lt_cv_prog_compiler_static_works=no
  7731. save_LDFLAGS="$LDFLAGS"
  7732. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7733. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7734. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7735. # The linker can only warn and ignore the option if not recognized
  7736. # So say no if there are warnings
  7737. if test -s conftest.err; then
  7738. # Append any errors to the config.log.
  7739. cat conftest.err 1>&5
  7740. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7741. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7742. if diff conftest.exp conftest.er2 >/dev/null; then
  7743. lt_cv_prog_compiler_static_works=yes
  7744. fi
  7745. else
  7746. lt_cv_prog_compiler_static_works=yes
  7747. fi
  7748. fi
  7749. $RM -r conftest*
  7750. LDFLAGS="$save_LDFLAGS"
  7751. fi
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7753. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7754. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7755. :
  7756. else
  7757. lt_prog_compiler_static=
  7758. fi
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7760. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7761. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7762. $as_echo_n "(cached) " >&6
  7763. else
  7764. lt_cv_prog_compiler_c_o=no
  7765. $RM -r conftest 2>/dev/null
  7766. mkdir conftest
  7767. cd conftest
  7768. mkdir out
  7769. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7770. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7771. # Insert the option either (1) after the last *FLAGS variable, or
  7772. # (2) before a word containing "conftest.", or (3) at the end.
  7773. # Note that $ac_compile itself does not contain backslashes and begins
  7774. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7775. lt_compile=`echo "$ac_compile" | $SED \
  7776. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7777. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7778. -e 's:$: $lt_compiler_flag:'`
  7779. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7780. (eval "$lt_compile" 2>out/conftest.err)
  7781. ac_status=$?
  7782. cat out/conftest.err >&5
  7783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7784. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7785. then
  7786. # The compiler can only warn and ignore the option if not recognized
  7787. # So say no if there are warnings
  7788. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7789. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7790. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7791. lt_cv_prog_compiler_c_o=yes
  7792. fi
  7793. fi
  7794. chmod u+w . 2>&5
  7795. $RM conftest*
  7796. # SGI C++ compiler will create directory out/ii_files/ for
  7797. # template instantiation
  7798. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7799. $RM out/* && rmdir out
  7800. cd ..
  7801. $RM -r conftest
  7802. $RM conftest*
  7803. fi
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7805. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7807. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7808. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7809. $as_echo_n "(cached) " >&6
  7810. else
  7811. lt_cv_prog_compiler_c_o=no
  7812. $RM -r conftest 2>/dev/null
  7813. mkdir conftest
  7814. cd conftest
  7815. mkdir out
  7816. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7817. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7818. # Insert the option either (1) after the last *FLAGS variable, or
  7819. # (2) before a word containing "conftest.", or (3) at the end.
  7820. # Note that $ac_compile itself does not contain backslashes and begins
  7821. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7822. lt_compile=`echo "$ac_compile" | $SED \
  7823. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7824. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7825. -e 's:$: $lt_compiler_flag:'`
  7826. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7827. (eval "$lt_compile" 2>out/conftest.err)
  7828. ac_status=$?
  7829. cat out/conftest.err >&5
  7830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7831. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7832. then
  7833. # The compiler can only warn and ignore the option if not recognized
  7834. # So say no if there are warnings
  7835. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7836. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7837. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7838. lt_cv_prog_compiler_c_o=yes
  7839. fi
  7840. fi
  7841. chmod u+w . 2>&5
  7842. $RM conftest*
  7843. # SGI C++ compiler will create directory out/ii_files/ for
  7844. # template instantiation
  7845. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7846. $RM out/* && rmdir out
  7847. cd ..
  7848. $RM -r conftest
  7849. $RM conftest*
  7850. fi
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7852. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7853. hard_links="nottested"
  7854. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7855. # do not overwrite the value of need_locks provided by the user
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7857. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7858. hard_links=yes
  7859. $RM conftest*
  7860. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7861. touch conftest.a
  7862. ln conftest.a conftest.b 2>&5 || hard_links=no
  7863. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7865. $as_echo "$hard_links" >&6; }
  7866. if test "$hard_links" = no; then
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7868. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7869. need_locks=warn
  7870. fi
  7871. else
  7872. need_locks=no
  7873. fi
  7874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7875. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7876. runpath_var=
  7877. allow_undefined_flag=
  7878. always_export_symbols=no
  7879. archive_cmds=
  7880. archive_expsym_cmds=
  7881. compiler_needs_object=no
  7882. enable_shared_with_static_runtimes=no
  7883. export_dynamic_flag_spec=
  7884. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7885. hardcode_automatic=no
  7886. hardcode_direct=no
  7887. hardcode_direct_absolute=no
  7888. hardcode_libdir_flag_spec=
  7889. hardcode_libdir_separator=
  7890. hardcode_minus_L=no
  7891. hardcode_shlibpath_var=unsupported
  7892. inherit_rpath=no
  7893. link_all_deplibs=unknown
  7894. module_cmds=
  7895. module_expsym_cmds=
  7896. old_archive_from_new_cmds=
  7897. old_archive_from_expsyms_cmds=
  7898. thread_safe_flag_spec=
  7899. whole_archive_flag_spec=
  7900. # include_expsyms should be a list of space-separated symbols to be *always*
  7901. # included in the symbol list
  7902. include_expsyms=
  7903. # exclude_expsyms can be an extended regexp of symbols to exclude
  7904. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7905. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7906. # as well as any symbol that contains `d'.
  7907. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7908. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7909. # platforms (ab)use it in PIC code, but their linkers get confused if
  7910. # the symbol is explicitly referenced. Since portable code cannot
  7911. # rely on this symbol name, it's probably fine to never include it in
  7912. # preloaded symbol tables.
  7913. # Exclude shared library initialization/finalization symbols.
  7914. extract_expsyms_cmds=
  7915. case $host_os in
  7916. cygwin* | mingw* | pw32* | cegcc*)
  7917. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7918. # When not using gcc, we currently assume that we are using
  7919. # Microsoft Visual C++.
  7920. if test "$GCC" != yes; then
  7921. with_gnu_ld=no
  7922. fi
  7923. ;;
  7924. interix*)
  7925. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7926. with_gnu_ld=yes
  7927. ;;
  7928. openbsd*)
  7929. with_gnu_ld=no
  7930. ;;
  7931. linux* | k*bsd*-gnu | gnu*)
  7932. link_all_deplibs=no
  7933. ;;
  7934. esac
  7935. ld_shlibs=yes
  7936. # On some targets, GNU ld is compatible enough with the native linker
  7937. # that we're better off using the native interface for both.
  7938. lt_use_gnu_ld_interface=no
  7939. if test "$with_gnu_ld" = yes; then
  7940. case $host_os in
  7941. aix*)
  7942. # The AIX port of GNU ld has always aspired to compatibility
  7943. # with the native linker. However, as the warning in the GNU ld
  7944. # block says, versions before 2.19.5* couldn't really create working
  7945. # shared libraries, regardless of the interface used.
  7946. case `$LD -v 2>&1` in
  7947. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7948. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7949. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7950. *)
  7951. lt_use_gnu_ld_interface=yes
  7952. ;;
  7953. esac
  7954. ;;
  7955. *)
  7956. lt_use_gnu_ld_interface=yes
  7957. ;;
  7958. esac
  7959. fi
  7960. if test "$lt_use_gnu_ld_interface" = yes; then
  7961. # If archive_cmds runs LD, not CC, wlarc should be empty
  7962. wlarc='${wl}'
  7963. # Set some defaults for GNU ld with shared library support. These
  7964. # are reset later if shared libraries are not supported. Putting them
  7965. # here allows them to be overridden if necessary.
  7966. runpath_var=LD_RUN_PATH
  7967. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7968. export_dynamic_flag_spec='${wl}--export-dynamic'
  7969. # ancient GNU ld didn't support --whole-archive et. al.
  7970. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7971. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7972. else
  7973. whole_archive_flag_spec=
  7974. fi
  7975. supports_anon_versioning=no
  7976. case `$LD -v 2>&1` in
  7977. *GNU\ gold*) supports_anon_versioning=yes ;;
  7978. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7979. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7980. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7981. *\ 2.11.*) ;; # other 2.11 versions
  7982. *) supports_anon_versioning=yes ;;
  7983. esac
  7984. # See if GNU ld supports shared libraries.
  7985. case $host_os in
  7986. aix[3-9]*)
  7987. # On AIX/PPC, the GNU linker is very broken
  7988. if test "$host_cpu" != ia64; then
  7989. ld_shlibs=no
  7990. cat <<_LT_EOF 1>&2
  7991. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7992. *** to be unable to reliably create shared libraries on AIX.
  7993. *** Therefore, libtool is disabling shared libraries support. If you
  7994. *** really care for shared libraries, you may want to install binutils
  7995. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7996. *** You will then need to restart the configuration process.
  7997. _LT_EOF
  7998. fi
  7999. ;;
  8000. amigaos*)
  8001. case $host_cpu in
  8002. powerpc)
  8003. # see comment about AmigaOS4 .so support
  8004. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8005. archive_expsym_cmds=''
  8006. ;;
  8007. m68k)
  8008. 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)'
  8009. hardcode_libdir_flag_spec='-L$libdir'
  8010. hardcode_minus_L=yes
  8011. ;;
  8012. esac
  8013. ;;
  8014. beos*)
  8015. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8016. allow_undefined_flag=unsupported
  8017. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8018. # support --undefined. This deserves some investigation. FIXME
  8019. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8020. else
  8021. ld_shlibs=no
  8022. fi
  8023. ;;
  8024. cygwin* | mingw* | pw32* | cegcc*)
  8025. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8026. # as there is no search path for DLLs.
  8027. hardcode_libdir_flag_spec='-L$libdir'
  8028. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8029. allow_undefined_flag=unsupported
  8030. always_export_symbols=no
  8031. enable_shared_with_static_runtimes=yes
  8032. 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'
  8033. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8034. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8035. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8036. # If the export-symbols file already is a .def file (1st line
  8037. # is EXPORTS), use it as is; otherwise, prepend...
  8038. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8039. cp $export_symbols $output_objdir/$soname.def;
  8040. else
  8041. echo EXPORTS > $output_objdir/$soname.def;
  8042. cat $export_symbols >> $output_objdir/$soname.def;
  8043. fi~
  8044. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8045. else
  8046. ld_shlibs=no
  8047. fi
  8048. ;;
  8049. haiku*)
  8050. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8051. link_all_deplibs=yes
  8052. ;;
  8053. interix[3-9]*)
  8054. hardcode_direct=no
  8055. hardcode_shlibpath_var=no
  8056. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8057. export_dynamic_flag_spec='${wl}-E'
  8058. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8059. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8060. # default) and relocated if they conflict, which is a slow very memory
  8061. # consuming and fragmenting process. To avoid this, we pick a random,
  8062. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8063. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8064. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8065. 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'
  8066. ;;
  8067. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8068. tmp_diet=no
  8069. if test "$host_os" = linux-dietlibc; then
  8070. case $cc_basename in
  8071. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8072. esac
  8073. fi
  8074. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8075. && test "$tmp_diet" = no
  8076. then
  8077. tmp_addflag=' $pic_flag'
  8078. tmp_sharedflag='-shared'
  8079. case $cc_basename,$host_cpu in
  8080. pgcc*) # Portland Group C compiler
  8081. 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'
  8082. tmp_addflag=' $pic_flag'
  8083. ;;
  8084. pgf77* | pgf90* | pgf95* | pgfortran*)
  8085. # Portland Group f77 and f90 compilers
  8086. 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'
  8087. tmp_addflag=' $pic_flag -Mnomain' ;;
  8088. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8089. tmp_addflag=' -i_dynamic' ;;
  8090. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8091. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8092. ifc* | ifort*) # Intel Fortran compiler
  8093. tmp_addflag=' -nofor_main' ;;
  8094. lf95*) # Lahey Fortran 8.1
  8095. whole_archive_flag_spec=
  8096. tmp_sharedflag='--shared' ;;
  8097. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8098. tmp_sharedflag='-qmkshrobj'
  8099. tmp_addflag= ;;
  8100. nvcc*) # Cuda Compiler Driver 2.2
  8101. 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'
  8102. compiler_needs_object=yes
  8103. ;;
  8104. esac
  8105. case `$CC -V 2>&1 | sed 5q` in
  8106. *Sun\ C*) # Sun C 5.9
  8107. 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'
  8108. compiler_needs_object=yes
  8109. tmp_sharedflag='-G' ;;
  8110. *Sun\ F*) # Sun Fortran 8.3
  8111. tmp_sharedflag='-G' ;;
  8112. esac
  8113. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8114. if test "x$supports_anon_versioning" = xyes; then
  8115. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8116. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8117. echo "local: *; };" >> $output_objdir/$libname.ver~
  8118. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8119. fi
  8120. case $cc_basename in
  8121. xlf* | bgf* | bgxlf* | mpixlf*)
  8122. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8123. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8124. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8125. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8126. if test "x$supports_anon_versioning" = xyes; then
  8127. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8128. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8129. echo "local: *; };" >> $output_objdir/$libname.ver~
  8130. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8131. fi
  8132. ;;
  8133. esac
  8134. else
  8135. ld_shlibs=no
  8136. fi
  8137. ;;
  8138. netbsd* | netbsdelf*-gnu)
  8139. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8140. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8141. wlarc=
  8142. else
  8143. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8144. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8145. fi
  8146. ;;
  8147. solaris*)
  8148. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8149. ld_shlibs=no
  8150. cat <<_LT_EOF 1>&2
  8151. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8152. *** create shared libraries on Solaris systems. Therefore, libtool
  8153. *** is disabling shared libraries support. We urge you to upgrade GNU
  8154. *** binutils to release 2.9.1 or newer. Another option is to modify
  8155. *** your PATH or compiler configuration so that the native linker is
  8156. *** used, and then restart.
  8157. _LT_EOF
  8158. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8159. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8160. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8161. else
  8162. ld_shlibs=no
  8163. fi
  8164. ;;
  8165. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8166. case `$LD -v 2>&1` in
  8167. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8168. ld_shlibs=no
  8169. cat <<_LT_EOF 1>&2
  8170. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8171. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8172. *** is disabling shared libraries support. We urge you to upgrade GNU
  8173. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8174. *** your PATH or compiler configuration so that the native linker is
  8175. *** used, and then restart.
  8176. _LT_EOF
  8177. ;;
  8178. *)
  8179. # For security reasons, it is highly recommended that you always
  8180. # use absolute paths for naming shared libraries, and exclude the
  8181. # DT_RUNPATH tag from executables and libraries. But doing so
  8182. # requires that you compile everything twice, which is a pain.
  8183. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8184. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8185. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8186. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8187. else
  8188. ld_shlibs=no
  8189. fi
  8190. ;;
  8191. esac
  8192. ;;
  8193. sunos4*)
  8194. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8195. wlarc=
  8196. hardcode_direct=yes
  8197. hardcode_shlibpath_var=no
  8198. ;;
  8199. *)
  8200. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8201. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8202. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8203. else
  8204. ld_shlibs=no
  8205. fi
  8206. ;;
  8207. esac
  8208. if test "$ld_shlibs" = no; then
  8209. runpath_var=
  8210. hardcode_libdir_flag_spec=
  8211. export_dynamic_flag_spec=
  8212. whole_archive_flag_spec=
  8213. fi
  8214. else
  8215. # PORTME fill in a description of your system's linker (not GNU ld)
  8216. case $host_os in
  8217. aix3*)
  8218. allow_undefined_flag=unsupported
  8219. always_export_symbols=yes
  8220. 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'
  8221. # Note: this linker hardcodes the directories in LIBPATH if there
  8222. # are no directories specified by -L.
  8223. hardcode_minus_L=yes
  8224. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8225. # Neither direct hardcoding nor static linking is supported with a
  8226. # broken collect2.
  8227. hardcode_direct=unsupported
  8228. fi
  8229. ;;
  8230. aix[4-9]*)
  8231. if test "$host_cpu" = ia64; then
  8232. # On IA64, the linker does run time linking by default, so we don't
  8233. # have to do anything special.
  8234. aix_use_runtimelinking=no
  8235. exp_sym_flag='-Bexport'
  8236. no_entry_flag=""
  8237. else
  8238. # If we're using GNU nm, then we don't want the "-C" option.
  8239. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8240. # Also, AIX nm treats weak defined symbols like other global
  8241. # defined symbols, whereas GNU nm marks them as "W".
  8242. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8243. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8244. else
  8245. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8246. fi
  8247. aix_use_runtimelinking=no
  8248. # Test if we are trying to use run time linking or normal
  8249. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8250. # need to do runtime linking.
  8251. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8252. for ld_flag in $LDFLAGS; do
  8253. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8254. aix_use_runtimelinking=yes
  8255. break
  8256. fi
  8257. done
  8258. ;;
  8259. esac
  8260. exp_sym_flag='-bexport'
  8261. no_entry_flag='-bnoentry'
  8262. fi
  8263. # When large executables or shared objects are built, AIX ld can
  8264. # have problems creating the table of contents. If linking a library
  8265. # or program results in "error TOC overflow" add -mminimal-toc to
  8266. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8267. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8268. archive_cmds=''
  8269. hardcode_direct=yes
  8270. hardcode_direct_absolute=yes
  8271. hardcode_libdir_separator=':'
  8272. link_all_deplibs=yes
  8273. file_list_spec='${wl}-f,'
  8274. if test "$GCC" = yes; then
  8275. case $host_os in aix4.[012]|aix4.[012].*)
  8276. # We only want to do this on AIX 4.2 and lower, the check
  8277. # below for broken collect2 doesn't work under 4.3+
  8278. collect2name=`${CC} -print-prog-name=collect2`
  8279. if test -f "$collect2name" &&
  8280. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8281. then
  8282. # We have reworked collect2
  8283. :
  8284. else
  8285. # We have old collect2
  8286. hardcode_direct=unsupported
  8287. # It fails to find uninstalled libraries when the uninstalled
  8288. # path is not listed in the libpath. Setting hardcode_minus_L
  8289. # to unsupported forces relinking
  8290. hardcode_minus_L=yes
  8291. hardcode_libdir_flag_spec='-L$libdir'
  8292. hardcode_libdir_separator=
  8293. fi
  8294. ;;
  8295. esac
  8296. shared_flag='-shared'
  8297. if test "$aix_use_runtimelinking" = yes; then
  8298. shared_flag="$shared_flag "'${wl}-G'
  8299. fi
  8300. link_all_deplibs=no
  8301. else
  8302. # not using gcc
  8303. if test "$host_cpu" = ia64; then
  8304. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8305. # chokes on -Wl,-G. The following line is correct:
  8306. shared_flag='-G'
  8307. else
  8308. if test "$aix_use_runtimelinking" = yes; then
  8309. shared_flag='${wl}-G'
  8310. else
  8311. shared_flag='${wl}-bM:SRE'
  8312. fi
  8313. fi
  8314. fi
  8315. export_dynamic_flag_spec='${wl}-bexpall'
  8316. # It seems that -bexpall does not export symbols beginning with
  8317. # underscore (_), so it is better to generate a list of symbols to export.
  8318. always_export_symbols=yes
  8319. if test "$aix_use_runtimelinking" = yes; then
  8320. # Warning - without using the other runtime loading flags (-brtl),
  8321. # -berok will link without error, but may produce a broken library.
  8322. allow_undefined_flag='-berok'
  8323. # Determine the default libpath from the value encoded in an
  8324. # empty executable.
  8325. if test "${lt_cv_aix_libpath+set}" = set; then
  8326. aix_libpath=$lt_cv_aix_libpath
  8327. else
  8328. if ${lt_cv_aix_libpath_+:} false; then :
  8329. $as_echo_n "(cached) " >&6
  8330. else
  8331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8332. /* end confdefs.h. */
  8333. int
  8334. main ()
  8335. {
  8336. ;
  8337. return 0;
  8338. }
  8339. _ACEOF
  8340. if ac_fn_c_try_link "$LINENO"; then :
  8341. lt_aix_libpath_sed='
  8342. /Import File Strings/,/^$/ {
  8343. /^0/ {
  8344. s/^0 *\([^ ]*\) *$/\1/
  8345. p
  8346. }
  8347. }'
  8348. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8349. # Check for a 64-bit object if we didn't find anything.
  8350. if test -z "$lt_cv_aix_libpath_"; then
  8351. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8352. fi
  8353. fi
  8354. rm -f core conftest.err conftest.$ac_objext \
  8355. conftest$ac_exeext conftest.$ac_ext
  8356. if test -z "$lt_cv_aix_libpath_"; then
  8357. lt_cv_aix_libpath_="/usr/lib:/lib"
  8358. fi
  8359. fi
  8360. aix_libpath=$lt_cv_aix_libpath_
  8361. fi
  8362. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8363. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8364. else
  8365. if test "$host_cpu" = ia64; then
  8366. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8367. allow_undefined_flag="-z nodefs"
  8368. 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"
  8369. else
  8370. # Determine the default libpath from the value encoded in an
  8371. # empty executable.
  8372. if test "${lt_cv_aix_libpath+set}" = set; then
  8373. aix_libpath=$lt_cv_aix_libpath
  8374. else
  8375. if ${lt_cv_aix_libpath_+:} false; then :
  8376. $as_echo_n "(cached) " >&6
  8377. else
  8378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8379. /* end confdefs.h. */
  8380. int
  8381. main ()
  8382. {
  8383. ;
  8384. return 0;
  8385. }
  8386. _ACEOF
  8387. if ac_fn_c_try_link "$LINENO"; then :
  8388. lt_aix_libpath_sed='
  8389. /Import File Strings/,/^$/ {
  8390. /^0/ {
  8391. s/^0 *\([^ ]*\) *$/\1/
  8392. p
  8393. }
  8394. }'
  8395. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8396. # Check for a 64-bit object if we didn't find anything.
  8397. if test -z "$lt_cv_aix_libpath_"; then
  8398. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8399. fi
  8400. fi
  8401. rm -f core conftest.err conftest.$ac_objext \
  8402. conftest$ac_exeext conftest.$ac_ext
  8403. if test -z "$lt_cv_aix_libpath_"; then
  8404. lt_cv_aix_libpath_="/usr/lib:/lib"
  8405. fi
  8406. fi
  8407. aix_libpath=$lt_cv_aix_libpath_
  8408. fi
  8409. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8410. # Warning - without using the other run time loading flags,
  8411. # -berok will link without error, but may produce a broken library.
  8412. no_undefined_flag=' ${wl}-bernotok'
  8413. allow_undefined_flag=' ${wl}-berok'
  8414. if test "$with_gnu_ld" = yes; then
  8415. # We only use this code for GNU lds that support --whole-archive.
  8416. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8417. else
  8418. # Exported symbols can be pulled into shared objects from archives
  8419. whole_archive_flag_spec='$convenience'
  8420. fi
  8421. archive_cmds_need_lc=yes
  8422. # This is similar to how AIX traditionally builds its shared libraries.
  8423. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8424. fi
  8425. fi
  8426. ;;
  8427. amigaos*)
  8428. case $host_cpu in
  8429. powerpc)
  8430. # see comment about AmigaOS4 .so support
  8431. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8432. archive_expsym_cmds=''
  8433. ;;
  8434. m68k)
  8435. 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)'
  8436. hardcode_libdir_flag_spec='-L$libdir'
  8437. hardcode_minus_L=yes
  8438. ;;
  8439. esac
  8440. ;;
  8441. bsdi[45]*)
  8442. export_dynamic_flag_spec=-rdynamic
  8443. ;;
  8444. cygwin* | mingw* | pw32* | cegcc*)
  8445. # When not using gcc, we currently assume that we are using
  8446. # Microsoft Visual C++.
  8447. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8448. # no search path for DLLs.
  8449. case $cc_basename in
  8450. cl*)
  8451. # Native MSVC
  8452. hardcode_libdir_flag_spec=' '
  8453. allow_undefined_flag=unsupported
  8454. always_export_symbols=yes
  8455. file_list_spec='@'
  8456. # Tell ltmain to make .lib files, not .a files.
  8457. libext=lib
  8458. # Tell ltmain to make .dll files, not .so files.
  8459. shrext_cmds=".dll"
  8460. # FIXME: Setting linknames here is a bad hack.
  8461. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8462. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8463. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8464. else
  8465. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8466. fi~
  8467. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8468. linknames='
  8469. # The linker will not automatically build a static lib if we build a DLL.
  8470. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8471. enable_shared_with_static_runtimes=yes
  8472. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8473. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8474. # Don't use ranlib
  8475. old_postinstall_cmds='chmod 644 $oldlib'
  8476. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8477. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8478. case $lt_outputfile in
  8479. *.exe|*.EXE) ;;
  8480. *)
  8481. lt_outputfile="$lt_outputfile.exe"
  8482. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8483. ;;
  8484. esac~
  8485. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8486. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8487. $RM "$lt_outputfile.manifest";
  8488. fi'
  8489. ;;
  8490. *)
  8491. # Assume MSVC wrapper
  8492. hardcode_libdir_flag_spec=' '
  8493. allow_undefined_flag=unsupported
  8494. # Tell ltmain to make .lib files, not .a files.
  8495. libext=lib
  8496. # Tell ltmain to make .dll files, not .so files.
  8497. shrext_cmds=".dll"
  8498. # FIXME: Setting linknames here is a bad hack.
  8499. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8500. # The linker will automatically build a .lib file if we build a DLL.
  8501. old_archive_from_new_cmds='true'
  8502. # FIXME: Should let the user specify the lib program.
  8503. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8504. enable_shared_with_static_runtimes=yes
  8505. ;;
  8506. esac
  8507. ;;
  8508. darwin* | rhapsody*)
  8509. archive_cmds_need_lc=no
  8510. hardcode_direct=no
  8511. hardcode_automatic=yes
  8512. hardcode_shlibpath_var=unsupported
  8513. if test "$lt_cv_ld_force_load" = "yes"; then
  8514. 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\"`'
  8515. else
  8516. whole_archive_flag_spec=''
  8517. fi
  8518. link_all_deplibs=yes
  8519. allow_undefined_flag="$_lt_dar_allow_undefined"
  8520. case $cc_basename in
  8521. ifort*) _lt_dar_can_shared=yes ;;
  8522. *) _lt_dar_can_shared=$GCC ;;
  8523. esac
  8524. if test "$_lt_dar_can_shared" = "yes"; then
  8525. output_verbose_link_cmd=func_echo_all
  8526. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8527. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8528. 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}"
  8529. 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}"
  8530. else
  8531. ld_shlibs=no
  8532. fi
  8533. ;;
  8534. dgux*)
  8535. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8536. hardcode_libdir_flag_spec='-L$libdir'
  8537. hardcode_shlibpath_var=no
  8538. ;;
  8539. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8540. # support. Future versions do this automatically, but an explicit c++rt0.o
  8541. # does not break anything, and helps significantly (at the cost of a little
  8542. # extra space).
  8543. freebsd2.2*)
  8544. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8545. hardcode_libdir_flag_spec='-R$libdir'
  8546. hardcode_direct=yes
  8547. hardcode_shlibpath_var=no
  8548. ;;
  8549. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8550. freebsd2.*)
  8551. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8552. hardcode_direct=yes
  8553. hardcode_minus_L=yes
  8554. hardcode_shlibpath_var=no
  8555. ;;
  8556. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8557. freebsd* | dragonfly*)
  8558. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8559. hardcode_libdir_flag_spec='-R$libdir'
  8560. hardcode_direct=yes
  8561. hardcode_shlibpath_var=no
  8562. ;;
  8563. hpux9*)
  8564. if test "$GCC" = yes; then
  8565. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8566. else
  8567. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8568. fi
  8569. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8570. hardcode_libdir_separator=:
  8571. hardcode_direct=yes
  8572. # hardcode_minus_L: Not really in the search PATH,
  8573. # but as the default location of the library.
  8574. hardcode_minus_L=yes
  8575. export_dynamic_flag_spec='${wl}-E'
  8576. ;;
  8577. hpux10*)
  8578. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8579. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8580. else
  8581. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8582. fi
  8583. if test "$with_gnu_ld" = no; then
  8584. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8585. hardcode_libdir_separator=:
  8586. hardcode_direct=yes
  8587. hardcode_direct_absolute=yes
  8588. export_dynamic_flag_spec='${wl}-E'
  8589. # hardcode_minus_L: Not really in the search PATH,
  8590. # but as the default location of the library.
  8591. hardcode_minus_L=yes
  8592. fi
  8593. ;;
  8594. hpux11*)
  8595. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8596. case $host_cpu in
  8597. hppa*64*)
  8598. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8599. ;;
  8600. ia64*)
  8601. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8602. ;;
  8603. *)
  8604. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8605. ;;
  8606. esac
  8607. else
  8608. case $host_cpu in
  8609. hppa*64*)
  8610. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. ia64*)
  8613. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8614. ;;
  8615. *)
  8616. # Older versions of the 11.00 compiler do not understand -b yet
  8617. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8619. $as_echo_n "checking if $CC understands -b... " >&6; }
  8620. if ${lt_cv_prog_compiler__b+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. lt_cv_prog_compiler__b=no
  8624. save_LDFLAGS="$LDFLAGS"
  8625. LDFLAGS="$LDFLAGS -b"
  8626. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8627. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8628. # The linker can only warn and ignore the option if not recognized
  8629. # So say no if there are warnings
  8630. if test -s conftest.err; then
  8631. # Append any errors to the config.log.
  8632. cat conftest.err 1>&5
  8633. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8635. if diff conftest.exp conftest.er2 >/dev/null; then
  8636. lt_cv_prog_compiler__b=yes
  8637. fi
  8638. else
  8639. lt_cv_prog_compiler__b=yes
  8640. fi
  8641. fi
  8642. $RM -r conftest*
  8643. LDFLAGS="$save_LDFLAGS"
  8644. fi
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8646. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8647. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8648. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8649. else
  8650. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8651. fi
  8652. ;;
  8653. esac
  8654. fi
  8655. if test "$with_gnu_ld" = no; then
  8656. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8657. hardcode_libdir_separator=:
  8658. case $host_cpu in
  8659. hppa*64*|ia64*)
  8660. hardcode_direct=no
  8661. hardcode_shlibpath_var=no
  8662. ;;
  8663. *)
  8664. hardcode_direct=yes
  8665. hardcode_direct_absolute=yes
  8666. export_dynamic_flag_spec='${wl}-E'
  8667. # hardcode_minus_L: Not really in the search PATH,
  8668. # but as the default location of the library.
  8669. hardcode_minus_L=yes
  8670. ;;
  8671. esac
  8672. fi
  8673. ;;
  8674. irix5* | irix6* | nonstopux*)
  8675. if test "$GCC" = yes; then
  8676. 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'
  8677. # Try to use the -exported_symbol ld option, if it does not
  8678. # work, assume that -exports_file does not work either and
  8679. # implicitly export all symbols.
  8680. # This should be the same for all languages, so no per-tag cache variable.
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8682. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8683. if ${lt_cv_irix_exported_symbol+:} false; then :
  8684. $as_echo_n "(cached) " >&6
  8685. else
  8686. save_LDFLAGS="$LDFLAGS"
  8687. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8689. /* end confdefs.h. */
  8690. int foo (void) { return 0; }
  8691. _ACEOF
  8692. if ac_fn_c_try_link "$LINENO"; then :
  8693. lt_cv_irix_exported_symbol=yes
  8694. else
  8695. lt_cv_irix_exported_symbol=no
  8696. fi
  8697. rm -f core conftest.err conftest.$ac_objext \
  8698. conftest$ac_exeext conftest.$ac_ext
  8699. LDFLAGS="$save_LDFLAGS"
  8700. fi
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8702. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8703. if test "$lt_cv_irix_exported_symbol" = yes; then
  8704. 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'
  8705. fi
  8706. else
  8707. 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'
  8708. 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'
  8709. fi
  8710. archive_cmds_need_lc='no'
  8711. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8712. hardcode_libdir_separator=:
  8713. inherit_rpath=yes
  8714. link_all_deplibs=yes
  8715. ;;
  8716. netbsd* | netbsdelf*-gnu)
  8717. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8718. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8719. else
  8720. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8721. fi
  8722. hardcode_libdir_flag_spec='-R$libdir'
  8723. hardcode_direct=yes
  8724. hardcode_shlibpath_var=no
  8725. ;;
  8726. newsos6)
  8727. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8728. hardcode_direct=yes
  8729. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8730. hardcode_libdir_separator=:
  8731. hardcode_shlibpath_var=no
  8732. ;;
  8733. *nto* | *qnx*)
  8734. ;;
  8735. openbsd*)
  8736. if test -f /usr/libexec/ld.so; then
  8737. hardcode_direct=yes
  8738. hardcode_shlibpath_var=no
  8739. hardcode_direct_absolute=yes
  8740. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8741. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8742. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8743. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8744. export_dynamic_flag_spec='${wl}-E'
  8745. else
  8746. case $host_os in
  8747. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8748. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8749. hardcode_libdir_flag_spec='-R$libdir'
  8750. ;;
  8751. *)
  8752. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8753. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8754. ;;
  8755. esac
  8756. fi
  8757. else
  8758. ld_shlibs=no
  8759. fi
  8760. ;;
  8761. os2*)
  8762. hardcode_libdir_flag_spec='-L$libdir'
  8763. hardcode_minus_L=yes
  8764. allow_undefined_flag=unsupported
  8765. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8766. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8767. ;;
  8768. osf3*)
  8769. if test "$GCC" = yes; then
  8770. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8771. 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'
  8772. else
  8773. allow_undefined_flag=' -expect_unresolved \*'
  8774. 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'
  8775. fi
  8776. archive_cmds_need_lc='no'
  8777. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8778. hardcode_libdir_separator=:
  8779. ;;
  8780. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8781. if test "$GCC" = yes; then
  8782. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8783. 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'
  8784. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8785. else
  8786. allow_undefined_flag=' -expect_unresolved \*'
  8787. 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'
  8788. 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~
  8789. $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'
  8790. # Both c and cxx compiler support -rpath directly
  8791. hardcode_libdir_flag_spec='-rpath $libdir'
  8792. fi
  8793. archive_cmds_need_lc='no'
  8794. hardcode_libdir_separator=:
  8795. ;;
  8796. solaris*)
  8797. no_undefined_flag=' -z defs'
  8798. if test "$GCC" = yes; then
  8799. wlarc='${wl}'
  8800. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8801. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8802. $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'
  8803. else
  8804. case `$CC -V 2>&1` in
  8805. *"Compilers 5.0"*)
  8806. wlarc=''
  8807. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8808. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8809. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8810. ;;
  8811. *)
  8812. wlarc='${wl}'
  8813. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8814. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8815. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8816. ;;
  8817. esac
  8818. fi
  8819. hardcode_libdir_flag_spec='-R$libdir'
  8820. hardcode_shlibpath_var=no
  8821. case $host_os in
  8822. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8823. *)
  8824. # The compiler driver will combine and reorder linker options,
  8825. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8826. # but is careful enough not to reorder.
  8827. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8828. if test "$GCC" = yes; then
  8829. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8830. else
  8831. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8832. fi
  8833. ;;
  8834. esac
  8835. link_all_deplibs=yes
  8836. ;;
  8837. sunos4*)
  8838. if test "x$host_vendor" = xsequent; then
  8839. # Use $CC to link under sequent, because it throws in some extra .o
  8840. # files that make .init and .fini sections work.
  8841. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8842. else
  8843. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8844. fi
  8845. hardcode_libdir_flag_spec='-L$libdir'
  8846. hardcode_direct=yes
  8847. hardcode_minus_L=yes
  8848. hardcode_shlibpath_var=no
  8849. ;;
  8850. sysv4)
  8851. case $host_vendor in
  8852. sni)
  8853. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8854. hardcode_direct=yes # is this really true???
  8855. ;;
  8856. siemens)
  8857. ## LD is ld it makes a PLAMLIB
  8858. ## CC just makes a GrossModule.
  8859. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8860. reload_cmds='$CC -r -o $output$reload_objs'
  8861. hardcode_direct=no
  8862. ;;
  8863. motorola)
  8864. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8865. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8866. ;;
  8867. esac
  8868. runpath_var='LD_RUN_PATH'
  8869. hardcode_shlibpath_var=no
  8870. ;;
  8871. sysv4.3*)
  8872. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8873. hardcode_shlibpath_var=no
  8874. export_dynamic_flag_spec='-Bexport'
  8875. ;;
  8876. sysv4*MP*)
  8877. if test -d /usr/nec; then
  8878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8879. hardcode_shlibpath_var=no
  8880. runpath_var=LD_RUN_PATH
  8881. hardcode_runpath_var=yes
  8882. ld_shlibs=yes
  8883. fi
  8884. ;;
  8885. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8886. no_undefined_flag='${wl}-z,text'
  8887. archive_cmds_need_lc=no
  8888. hardcode_shlibpath_var=no
  8889. runpath_var='LD_RUN_PATH'
  8890. if test "$GCC" = yes; then
  8891. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8892. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8893. else
  8894. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8895. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8896. fi
  8897. ;;
  8898. sysv5* | sco3.2v5* | sco5v6*)
  8899. # Note: We can NOT use -z defs as we might desire, because we do not
  8900. # link with -lc, and that would cause any symbols used from libc to
  8901. # always be unresolved, which means just about no library would
  8902. # ever link correctly. If we're not using GNU ld we use -z text
  8903. # though, which does catch some bad symbols but isn't as heavy-handed
  8904. # as -z defs.
  8905. no_undefined_flag='${wl}-z,text'
  8906. allow_undefined_flag='${wl}-z,nodefs'
  8907. archive_cmds_need_lc=no
  8908. hardcode_shlibpath_var=no
  8909. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8910. hardcode_libdir_separator=':'
  8911. link_all_deplibs=yes
  8912. export_dynamic_flag_spec='${wl}-Bexport'
  8913. runpath_var='LD_RUN_PATH'
  8914. if test "$GCC" = yes; then
  8915. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8916. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8917. else
  8918. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8920. fi
  8921. ;;
  8922. uts4*)
  8923. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8924. hardcode_libdir_flag_spec='-L$libdir'
  8925. hardcode_shlibpath_var=no
  8926. ;;
  8927. *)
  8928. ld_shlibs=no
  8929. ;;
  8930. esac
  8931. if test x$host_vendor = xsni; then
  8932. case $host in
  8933. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8934. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8935. ;;
  8936. esac
  8937. fi
  8938. fi
  8939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8940. $as_echo "$ld_shlibs" >&6; }
  8941. test "$ld_shlibs" = no && can_build_shared=no
  8942. with_gnu_ld=$with_gnu_ld
  8943. #
  8944. # Do we need to explicitly link libc?
  8945. #
  8946. case "x$archive_cmds_need_lc" in
  8947. x|xyes)
  8948. # Assume -lc should be added
  8949. archive_cmds_need_lc=yes
  8950. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8951. case $archive_cmds in
  8952. *'~'*)
  8953. # FIXME: we may have to deal with multi-command sequences.
  8954. ;;
  8955. '$CC '*)
  8956. # Test whether the compiler implicitly links with -lc since on some
  8957. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8958. # to ld, don't add -lc before -lgcc.
  8959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8960. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8961. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8962. $as_echo_n "(cached) " >&6
  8963. else
  8964. $RM conftest*
  8965. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8966. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8967. (eval $ac_compile) 2>&5
  8968. ac_status=$?
  8969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8970. test $ac_status = 0; } 2>conftest.err; then
  8971. soname=conftest
  8972. lib=conftest
  8973. libobjs=conftest.$ac_objext
  8974. deplibs=
  8975. wl=$lt_prog_compiler_wl
  8976. pic_flag=$lt_prog_compiler_pic
  8977. compiler_flags=-v
  8978. linker_flags=-v
  8979. verstring=
  8980. output_objdir=.
  8981. libname=conftest
  8982. lt_save_allow_undefined_flag=$allow_undefined_flag
  8983. allow_undefined_flag=
  8984. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8985. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8986. ac_status=$?
  8987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8988. test $ac_status = 0; }
  8989. then
  8990. lt_cv_archive_cmds_need_lc=no
  8991. else
  8992. lt_cv_archive_cmds_need_lc=yes
  8993. fi
  8994. allow_undefined_flag=$lt_save_allow_undefined_flag
  8995. else
  8996. cat conftest.err 1>&5
  8997. fi
  8998. $RM conftest*
  8999. fi
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9001. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9002. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9003. ;;
  9004. esac
  9005. fi
  9006. ;;
  9007. esac
  9008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9009. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9010. if test "$GCC" = yes; then
  9011. case $host_os in
  9012. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9013. *) lt_awk_arg="/^libraries:/" ;;
  9014. esac
  9015. case $host_os in
  9016. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9017. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9018. esac
  9019. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9020. case $lt_search_path_spec in
  9021. *\;*)
  9022. # if the path contains ";" then we assume it to be the separator
  9023. # otherwise default to the standard path separator (i.e. ":") - it is
  9024. # assumed that no part of a normal pathname contains ";" but that should
  9025. # okay in the real world where ";" in dirpaths is itself problematic.
  9026. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9027. ;;
  9028. *)
  9029. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9030. ;;
  9031. esac
  9032. # Ok, now we have the path, separated by spaces, we can step through it
  9033. # and add multilib dir if necessary.
  9034. lt_tmp_lt_search_path_spec=
  9035. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9036. for lt_sys_path in $lt_search_path_spec; do
  9037. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9038. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9039. else
  9040. test -d "$lt_sys_path" && \
  9041. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9042. fi
  9043. done
  9044. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9045. BEGIN {RS=" "; FS="/|\n";} {
  9046. lt_foo="";
  9047. lt_count=0;
  9048. for (lt_i = NF; lt_i > 0; lt_i--) {
  9049. if ($lt_i != "" && $lt_i != ".") {
  9050. if ($lt_i == "..") {
  9051. lt_count++;
  9052. } else {
  9053. if (lt_count == 0) {
  9054. lt_foo="/" $lt_i lt_foo;
  9055. } else {
  9056. lt_count--;
  9057. }
  9058. }
  9059. }
  9060. }
  9061. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9062. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9063. }'`
  9064. # AWK program above erroneously prepends '/' to C:/dos/paths
  9065. # for these hosts.
  9066. case $host_os in
  9067. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9068. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9069. esac
  9070. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9071. else
  9072. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9073. fi
  9074. library_names_spec=
  9075. libname_spec='lib$name'
  9076. soname_spec=
  9077. shrext_cmds=".so"
  9078. postinstall_cmds=
  9079. postuninstall_cmds=
  9080. finish_cmds=
  9081. finish_eval=
  9082. shlibpath_var=
  9083. shlibpath_overrides_runpath=unknown
  9084. version_type=none
  9085. dynamic_linker="$host_os ld.so"
  9086. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9087. need_lib_prefix=unknown
  9088. hardcode_into_libs=no
  9089. # when you set need_version to no, make sure it does not cause -set_version
  9090. # flags to be left without arguments
  9091. need_version=unknown
  9092. case $host_os in
  9093. aix3*)
  9094. version_type=linux # correct to gnu/linux during the next big refactor
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9096. shlibpath_var=LIBPATH
  9097. # AIX 3 has no versioning support, so we append a major version to the name.
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. ;;
  9100. aix[4-9]*)
  9101. version_type=linux # correct to gnu/linux during the next big refactor
  9102. need_lib_prefix=no
  9103. need_version=no
  9104. hardcode_into_libs=yes
  9105. if test "$host_cpu" = ia64; then
  9106. # AIX 5 supports IA64
  9107. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9108. shlibpath_var=LD_LIBRARY_PATH
  9109. else
  9110. # With GCC up to 2.95.x, collect2 would create an import file
  9111. # for dependence libraries. The import file would start with
  9112. # the line `#! .'. This would cause the generated library to
  9113. # depend on `.', always an invalid library. This was fixed in
  9114. # development snapshots of GCC prior to 3.0.
  9115. case $host_os in
  9116. aix4 | aix4.[01] | aix4.[01].*)
  9117. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9118. echo ' yes '
  9119. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9120. :
  9121. else
  9122. can_build_shared=no
  9123. fi
  9124. ;;
  9125. esac
  9126. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9127. # soname into executable. Probably we can add versioning support to
  9128. # collect2, so additional links can be useful in future.
  9129. if test "$aix_use_runtimelinking" = yes; then
  9130. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9131. # instead of lib<name>.a to let people know that these are not
  9132. # typical AIX shared libraries.
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9134. else
  9135. # We preserve .a as extension for shared libraries through AIX4.2
  9136. # and later when we are not doing run time linking.
  9137. library_names_spec='${libname}${release}.a $libname.a'
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. fi
  9140. shlibpath_var=LIBPATH
  9141. fi
  9142. ;;
  9143. amigaos*)
  9144. case $host_cpu in
  9145. powerpc)
  9146. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9147. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9149. ;;
  9150. m68k)
  9151. library_names_spec='$libname.ixlibrary $libname.a'
  9152. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9153. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9154. ;;
  9155. esac
  9156. ;;
  9157. beos*)
  9158. library_names_spec='${libname}${shared_ext}'
  9159. dynamic_linker="$host_os ld.so"
  9160. shlibpath_var=LIBRARY_PATH
  9161. ;;
  9162. bsdi[45]*)
  9163. version_type=linux # correct to gnu/linux during the next big refactor
  9164. need_version=no
  9165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9166. soname_spec='${libname}${release}${shared_ext}$major'
  9167. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9168. shlibpath_var=LD_LIBRARY_PATH
  9169. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9170. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9171. # the default ld.so.conf also contains /usr/contrib/lib and
  9172. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9173. # libtool to hard-code these into programs
  9174. ;;
  9175. cygwin* | mingw* | pw32* | cegcc*)
  9176. version_type=windows
  9177. shrext_cmds=".dll"
  9178. need_version=no
  9179. need_lib_prefix=no
  9180. case $GCC,$cc_basename in
  9181. yes,*)
  9182. # gcc
  9183. library_names_spec='$libname.dll.a'
  9184. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9185. postinstall_cmds='base_file=`basename \${file}`~
  9186. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9187. dldir=$destdir/`dirname \$dlpath`~
  9188. test -d \$dldir || mkdir -p \$dldir~
  9189. $install_prog $dir/$dlname \$dldir/$dlname~
  9190. chmod a+x \$dldir/$dlname~
  9191. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9192. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9193. fi'
  9194. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9195. dlpath=$dir/\$dldll~
  9196. $RM \$dlpath'
  9197. shlibpath_overrides_runpath=yes
  9198. case $host_os in
  9199. cygwin*)
  9200. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9201. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9202. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9203. ;;
  9204. mingw* | cegcc*)
  9205. # MinGW DLLs use traditional 'lib' prefix
  9206. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9207. ;;
  9208. pw32*)
  9209. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9210. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9211. ;;
  9212. esac
  9213. dynamic_linker='Win32 ld.exe'
  9214. ;;
  9215. *,cl*)
  9216. # Native MSVC
  9217. libname_spec='$name'
  9218. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9219. library_names_spec='${libname}.dll.lib'
  9220. case $build_os in
  9221. mingw*)
  9222. sys_lib_search_path_spec=
  9223. lt_save_ifs=$IFS
  9224. IFS=';'
  9225. for lt_path in $LIB
  9226. do
  9227. IFS=$lt_save_ifs
  9228. # Let DOS variable expansion print the short 8.3 style file name.
  9229. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9230. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9231. done
  9232. IFS=$lt_save_ifs
  9233. # Convert to MSYS style.
  9234. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9235. ;;
  9236. cygwin*)
  9237. # Convert to unix form, then to dos form, then back to unix form
  9238. # but this time dos style (no spaces!) so that the unix form looks
  9239. # like /cygdrive/c/PROGRA~1:/cygdr...
  9240. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9241. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9242. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9243. ;;
  9244. *)
  9245. sys_lib_search_path_spec="$LIB"
  9246. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9247. # It is most probably a Windows format PATH.
  9248. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9249. else
  9250. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9251. fi
  9252. # FIXME: find the short name or the path components, as spaces are
  9253. # common. (e.g. "Program Files" -> "PROGRA~1")
  9254. ;;
  9255. esac
  9256. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9257. postinstall_cmds='base_file=`basename \${file}`~
  9258. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9259. dldir=$destdir/`dirname \$dlpath`~
  9260. test -d \$dldir || mkdir -p \$dldir~
  9261. $install_prog $dir/$dlname \$dldir/$dlname'
  9262. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9263. dlpath=$dir/\$dldll~
  9264. $RM \$dlpath'
  9265. shlibpath_overrides_runpath=yes
  9266. dynamic_linker='Win32 link.exe'
  9267. ;;
  9268. *)
  9269. # Assume MSVC wrapper
  9270. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9271. dynamic_linker='Win32 ld.exe'
  9272. ;;
  9273. esac
  9274. # FIXME: first we should search . and the directory the executable is in
  9275. shlibpath_var=PATH
  9276. ;;
  9277. darwin* | rhapsody*)
  9278. dynamic_linker="$host_os dyld"
  9279. version_type=darwin
  9280. need_lib_prefix=no
  9281. need_version=no
  9282. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9283. soname_spec='${libname}${release}${major}$shared_ext'
  9284. shlibpath_overrides_runpath=yes
  9285. shlibpath_var=DYLD_LIBRARY_PATH
  9286. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9287. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9288. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9289. ;;
  9290. dgux*)
  9291. version_type=linux # correct to gnu/linux during the next big refactor
  9292. need_lib_prefix=no
  9293. need_version=no
  9294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9295. soname_spec='${libname}${release}${shared_ext}$major'
  9296. shlibpath_var=LD_LIBRARY_PATH
  9297. ;;
  9298. freebsd* | dragonfly*)
  9299. # DragonFly does not have aout. When/if they implement a new
  9300. # versioning mechanism, adjust this.
  9301. if test -x /usr/bin/objformat; then
  9302. objformat=`/usr/bin/objformat`
  9303. else
  9304. case $host_os in
  9305. freebsd[23].*) objformat=aout ;;
  9306. *) objformat=elf ;;
  9307. esac
  9308. fi
  9309. version_type=freebsd-$objformat
  9310. case $version_type in
  9311. freebsd-elf*)
  9312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9313. need_version=no
  9314. need_lib_prefix=no
  9315. ;;
  9316. freebsd-*)
  9317. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9318. need_version=yes
  9319. ;;
  9320. esac
  9321. shlibpath_var=LD_LIBRARY_PATH
  9322. case $host_os in
  9323. freebsd2.*)
  9324. shlibpath_overrides_runpath=yes
  9325. ;;
  9326. freebsd3.[01]* | freebsdelf3.[01]*)
  9327. shlibpath_overrides_runpath=yes
  9328. hardcode_into_libs=yes
  9329. ;;
  9330. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9331. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9332. shlibpath_overrides_runpath=no
  9333. hardcode_into_libs=yes
  9334. ;;
  9335. *) # from 4.6 on, and DragonFly
  9336. shlibpath_overrides_runpath=yes
  9337. hardcode_into_libs=yes
  9338. ;;
  9339. esac
  9340. ;;
  9341. gnu*)
  9342. version_type=linux # correct to gnu/linux during the next big refactor
  9343. need_lib_prefix=no
  9344. need_version=no
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9346. soname_spec='${libname}${release}${shared_ext}$major'
  9347. shlibpath_var=LD_LIBRARY_PATH
  9348. shlibpath_overrides_runpath=no
  9349. hardcode_into_libs=yes
  9350. ;;
  9351. haiku*)
  9352. version_type=linux # correct to gnu/linux during the next big refactor
  9353. need_lib_prefix=no
  9354. need_version=no
  9355. dynamic_linker="$host_os runtime_loader"
  9356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9357. soname_spec='${libname}${release}${shared_ext}$major'
  9358. shlibpath_var=LIBRARY_PATH
  9359. shlibpath_overrides_runpath=yes
  9360. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9361. hardcode_into_libs=yes
  9362. ;;
  9363. hpux9* | hpux10* | hpux11*)
  9364. # Give a soname corresponding to the major version so that dld.sl refuses to
  9365. # link against other versions.
  9366. version_type=sunos
  9367. need_lib_prefix=no
  9368. need_version=no
  9369. case $host_cpu in
  9370. ia64*)
  9371. shrext_cmds='.so'
  9372. hardcode_into_libs=yes
  9373. dynamic_linker="$host_os dld.so"
  9374. shlibpath_var=LD_LIBRARY_PATH
  9375. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9377. soname_spec='${libname}${release}${shared_ext}$major'
  9378. if test "X$HPUX_IA64_MODE" = X32; then
  9379. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9380. else
  9381. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9382. fi
  9383. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9384. ;;
  9385. hppa*64*)
  9386. shrext_cmds='.sl'
  9387. hardcode_into_libs=yes
  9388. dynamic_linker="$host_os dld.sl"
  9389. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9390. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9392. soname_spec='${libname}${release}${shared_ext}$major'
  9393. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9394. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9395. ;;
  9396. *)
  9397. shrext_cmds='.sl'
  9398. dynamic_linker="$host_os dld.sl"
  9399. shlibpath_var=SHLIB_PATH
  9400. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9402. soname_spec='${libname}${release}${shared_ext}$major'
  9403. ;;
  9404. esac
  9405. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9406. postinstall_cmds='chmod 555 $lib'
  9407. # or fails outright, so override atomically:
  9408. install_override_mode=555
  9409. ;;
  9410. interix[3-9]*)
  9411. version_type=linux # correct to gnu/linux during the next big refactor
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9415. soname_spec='${libname}${release}${shared_ext}$major'
  9416. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9417. shlibpath_var=LD_LIBRARY_PATH
  9418. shlibpath_overrides_runpath=no
  9419. hardcode_into_libs=yes
  9420. ;;
  9421. irix5* | irix6* | nonstopux*)
  9422. case $host_os in
  9423. nonstopux*) version_type=nonstopux ;;
  9424. *)
  9425. if test "$lt_cv_prog_gnu_ld" = yes; then
  9426. version_type=linux # correct to gnu/linux during the next big refactor
  9427. else
  9428. version_type=irix
  9429. fi ;;
  9430. esac
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. soname_spec='${libname}${release}${shared_ext}$major'
  9434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9435. case $host_os in
  9436. irix5* | nonstopux*)
  9437. libsuff= shlibsuff=
  9438. ;;
  9439. *)
  9440. case $LD in # libtool.m4 will add one of these switches to LD
  9441. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9442. libsuff= shlibsuff= libmagic=32-bit;;
  9443. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9444. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9445. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9446. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9447. *) libsuff= shlibsuff= libmagic=never-match;;
  9448. esac
  9449. ;;
  9450. esac
  9451. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9452. shlibpath_overrides_runpath=no
  9453. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9454. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9455. hardcode_into_libs=yes
  9456. ;;
  9457. # No shared lib support for Linux oldld, aout, or coff.
  9458. linux*oldld* | linux*aout* | linux*coff*)
  9459. dynamic_linker=no
  9460. ;;
  9461. # This must be glibc/ELF.
  9462. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9463. version_type=linux # correct to gnu/linux during the next big refactor
  9464. need_lib_prefix=no
  9465. need_version=no
  9466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9467. soname_spec='${libname}${release}${shared_ext}$major'
  9468. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9469. shlibpath_var=LD_LIBRARY_PATH
  9470. shlibpath_overrides_runpath=no
  9471. # Some binutils ld are patched to set DT_RUNPATH
  9472. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9473. $as_echo_n "(cached) " >&6
  9474. else
  9475. lt_cv_shlibpath_overrides_runpath=no
  9476. save_LDFLAGS=$LDFLAGS
  9477. save_libdir=$libdir
  9478. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9479. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9481. /* end confdefs.h. */
  9482. int
  9483. main ()
  9484. {
  9485. ;
  9486. return 0;
  9487. }
  9488. _ACEOF
  9489. if ac_fn_c_try_link "$LINENO"; then :
  9490. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9491. lt_cv_shlibpath_overrides_runpath=yes
  9492. fi
  9493. fi
  9494. rm -f core conftest.err conftest.$ac_objext \
  9495. conftest$ac_exeext conftest.$ac_ext
  9496. LDFLAGS=$save_LDFLAGS
  9497. libdir=$save_libdir
  9498. fi
  9499. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9500. # This implies no fast_install, which is unacceptable.
  9501. # Some rework will be needed to allow for fast_install
  9502. # before this can be enabled.
  9503. hardcode_into_libs=yes
  9504. # Append ld.so.conf contents to the search path
  9505. if test -f /etc/ld.so.conf; then
  9506. 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' ' '`
  9507. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9508. fi
  9509. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9510. # powerpc, because MkLinux only supported shared libraries with the
  9511. # GNU dynamic linker. Since this was broken with cross compilers,
  9512. # most powerpc-linux boxes support dynamic linking these days and
  9513. # people can always --disable-shared, the test was removed, and we
  9514. # assume the GNU/Linux dynamic linker is in use.
  9515. dynamic_linker='GNU/Linux ld.so'
  9516. ;;
  9517. netbsdelf*-gnu)
  9518. version_type=linux
  9519. need_lib_prefix=no
  9520. need_version=no
  9521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9522. soname_spec='${libname}${release}${shared_ext}$major'
  9523. shlibpath_var=LD_LIBRARY_PATH
  9524. shlibpath_overrides_runpath=no
  9525. hardcode_into_libs=yes
  9526. dynamic_linker='NetBSD ld.elf_so'
  9527. ;;
  9528. netbsd*)
  9529. version_type=sunos
  9530. need_lib_prefix=no
  9531. need_version=no
  9532. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9534. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9535. dynamic_linker='NetBSD (a.out) ld.so'
  9536. else
  9537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9538. soname_spec='${libname}${release}${shared_ext}$major'
  9539. dynamic_linker='NetBSD ld.elf_so'
  9540. fi
  9541. shlibpath_var=LD_LIBRARY_PATH
  9542. shlibpath_overrides_runpath=yes
  9543. hardcode_into_libs=yes
  9544. ;;
  9545. newsos6)
  9546. version_type=linux # correct to gnu/linux during the next big refactor
  9547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9548. shlibpath_var=LD_LIBRARY_PATH
  9549. shlibpath_overrides_runpath=yes
  9550. ;;
  9551. *nto* | *qnx*)
  9552. version_type=qnx
  9553. need_lib_prefix=no
  9554. need_version=no
  9555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9556. soname_spec='${libname}${release}${shared_ext}$major'
  9557. shlibpath_var=LD_LIBRARY_PATH
  9558. shlibpath_overrides_runpath=no
  9559. hardcode_into_libs=yes
  9560. dynamic_linker='ldqnx.so'
  9561. ;;
  9562. openbsd*)
  9563. version_type=sunos
  9564. sys_lib_dlsearch_path_spec="/usr/lib"
  9565. need_lib_prefix=no
  9566. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9567. case $host_os in
  9568. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9569. *) need_version=no ;;
  9570. esac
  9571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9572. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9573. shlibpath_var=LD_LIBRARY_PATH
  9574. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9575. case $host_os in
  9576. openbsd2.[89] | openbsd2.[89].*)
  9577. shlibpath_overrides_runpath=no
  9578. ;;
  9579. *)
  9580. shlibpath_overrides_runpath=yes
  9581. ;;
  9582. esac
  9583. else
  9584. shlibpath_overrides_runpath=yes
  9585. fi
  9586. ;;
  9587. os2*)
  9588. libname_spec='$name'
  9589. shrext_cmds=".dll"
  9590. need_lib_prefix=no
  9591. library_names_spec='$libname${shared_ext} $libname.a'
  9592. dynamic_linker='OS/2 ld.exe'
  9593. shlibpath_var=LIBPATH
  9594. ;;
  9595. osf3* | osf4* | osf5*)
  9596. version_type=osf
  9597. need_lib_prefix=no
  9598. need_version=no
  9599. soname_spec='${libname}${release}${shared_ext}$major'
  9600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9601. shlibpath_var=LD_LIBRARY_PATH
  9602. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9603. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9604. ;;
  9605. rdos*)
  9606. dynamic_linker=no
  9607. ;;
  9608. solaris*)
  9609. version_type=linux # correct to gnu/linux during the next big refactor
  9610. need_lib_prefix=no
  9611. need_version=no
  9612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9613. soname_spec='${libname}${release}${shared_ext}$major'
  9614. shlibpath_var=LD_LIBRARY_PATH
  9615. shlibpath_overrides_runpath=yes
  9616. hardcode_into_libs=yes
  9617. # ldd complains unless libraries are executable
  9618. postinstall_cmds='chmod +x $lib'
  9619. ;;
  9620. sunos4*)
  9621. version_type=sunos
  9622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9623. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9624. shlibpath_var=LD_LIBRARY_PATH
  9625. shlibpath_overrides_runpath=yes
  9626. if test "$with_gnu_ld" = yes; then
  9627. need_lib_prefix=no
  9628. fi
  9629. need_version=yes
  9630. ;;
  9631. sysv4 | sysv4.3*)
  9632. version_type=linux # correct to gnu/linux during the next big refactor
  9633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9634. soname_spec='${libname}${release}${shared_ext}$major'
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. case $host_vendor in
  9637. sni)
  9638. shlibpath_overrides_runpath=no
  9639. need_lib_prefix=no
  9640. runpath_var=LD_RUN_PATH
  9641. ;;
  9642. siemens)
  9643. need_lib_prefix=no
  9644. ;;
  9645. motorola)
  9646. need_lib_prefix=no
  9647. need_version=no
  9648. shlibpath_overrides_runpath=no
  9649. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9650. ;;
  9651. esac
  9652. ;;
  9653. sysv4*MP*)
  9654. if test -d /usr/nec ;then
  9655. version_type=linux # correct to gnu/linux during the next big refactor
  9656. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9657. soname_spec='$libname${shared_ext}.$major'
  9658. shlibpath_var=LD_LIBRARY_PATH
  9659. fi
  9660. ;;
  9661. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9662. version_type=freebsd-elf
  9663. need_lib_prefix=no
  9664. need_version=no
  9665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9666. soname_spec='${libname}${release}${shared_ext}$major'
  9667. shlibpath_var=LD_LIBRARY_PATH
  9668. shlibpath_overrides_runpath=yes
  9669. hardcode_into_libs=yes
  9670. if test "$with_gnu_ld" = yes; then
  9671. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9672. else
  9673. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9674. case $host_os in
  9675. sco3.2v5*)
  9676. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9677. ;;
  9678. esac
  9679. fi
  9680. sys_lib_dlsearch_path_spec='/usr/lib'
  9681. ;;
  9682. tpf*)
  9683. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9684. version_type=linux # correct to gnu/linux during the next big refactor
  9685. need_lib_prefix=no
  9686. need_version=no
  9687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9688. shlibpath_var=LD_LIBRARY_PATH
  9689. shlibpath_overrides_runpath=no
  9690. hardcode_into_libs=yes
  9691. ;;
  9692. uts4*)
  9693. version_type=linux # correct to gnu/linux during the next big refactor
  9694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9695. soname_spec='${libname}${release}${shared_ext}$major'
  9696. shlibpath_var=LD_LIBRARY_PATH
  9697. ;;
  9698. *)
  9699. dynamic_linker=no
  9700. ;;
  9701. esac
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9703. $as_echo "$dynamic_linker" >&6; }
  9704. test "$dynamic_linker" = no && can_build_shared=no
  9705. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9706. if test "$GCC" = yes; then
  9707. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9708. fi
  9709. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9710. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9711. fi
  9712. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9713. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9714. fi
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9716. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9717. hardcode_action=
  9718. if test -n "$hardcode_libdir_flag_spec" ||
  9719. test -n "$runpath_var" ||
  9720. test "X$hardcode_automatic" = "Xyes" ; then
  9721. # We can hardcode non-existent directories.
  9722. if test "$hardcode_direct" != no &&
  9723. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9724. # have to relink, otherwise we might link with an installed library
  9725. # when we should be linking with a yet-to-be-installed one
  9726. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9727. test "$hardcode_minus_L" != no; then
  9728. # Linking always hardcodes the temporary library directory.
  9729. hardcode_action=relink
  9730. else
  9731. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9732. hardcode_action=immediate
  9733. fi
  9734. else
  9735. # We cannot hardcode anything, or else we can only hardcode existing
  9736. # directories.
  9737. hardcode_action=unsupported
  9738. fi
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9740. $as_echo "$hardcode_action" >&6; }
  9741. if test "$hardcode_action" = relink ||
  9742. test "$inherit_rpath" = yes; then
  9743. # Fast installation is not supported
  9744. enable_fast_install=no
  9745. elif test "$shlibpath_overrides_runpath" = yes ||
  9746. test "$enable_shared" = no; then
  9747. # Fast installation is not necessary
  9748. enable_fast_install=needless
  9749. fi
  9750. if test "x$enable_dlopen" != xyes; then
  9751. enable_dlopen=unknown
  9752. enable_dlopen_self=unknown
  9753. enable_dlopen_self_static=unknown
  9754. else
  9755. lt_cv_dlopen=no
  9756. lt_cv_dlopen_libs=
  9757. case $host_os in
  9758. beos*)
  9759. lt_cv_dlopen="load_add_on"
  9760. lt_cv_dlopen_libs=
  9761. lt_cv_dlopen_self=yes
  9762. ;;
  9763. mingw* | pw32* | cegcc*)
  9764. lt_cv_dlopen="LoadLibrary"
  9765. lt_cv_dlopen_libs=
  9766. ;;
  9767. cygwin*)
  9768. lt_cv_dlopen="dlopen"
  9769. lt_cv_dlopen_libs=
  9770. ;;
  9771. darwin*)
  9772. # if libdl is installed we need to link against it
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9774. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9775. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9776. $as_echo_n "(cached) " >&6
  9777. else
  9778. ac_check_lib_save_LIBS=$LIBS
  9779. LIBS="-ldl $LIBS"
  9780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9781. /* end confdefs.h. */
  9782. /* Override any GCC internal prototype to avoid an error.
  9783. Use char because int might match the return type of a GCC
  9784. builtin and then its argument prototype would still apply. */
  9785. #ifdef __cplusplus
  9786. extern "C"
  9787. #endif
  9788. char dlopen ();
  9789. int
  9790. main ()
  9791. {
  9792. return dlopen ();
  9793. ;
  9794. return 0;
  9795. }
  9796. _ACEOF
  9797. if ac_fn_c_try_link "$LINENO"; then :
  9798. ac_cv_lib_dl_dlopen=yes
  9799. else
  9800. ac_cv_lib_dl_dlopen=no
  9801. fi
  9802. rm -f core conftest.err conftest.$ac_objext \
  9803. conftest$ac_exeext conftest.$ac_ext
  9804. LIBS=$ac_check_lib_save_LIBS
  9805. fi
  9806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9807. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9808. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9809. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9810. else
  9811. lt_cv_dlopen="dyld"
  9812. lt_cv_dlopen_libs=
  9813. lt_cv_dlopen_self=yes
  9814. fi
  9815. ;;
  9816. *)
  9817. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9818. if test "x$ac_cv_func_shl_load" = xyes; then :
  9819. lt_cv_dlopen="shl_load"
  9820. else
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9822. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9823. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9824. $as_echo_n "(cached) " >&6
  9825. else
  9826. ac_check_lib_save_LIBS=$LIBS
  9827. LIBS="-ldld $LIBS"
  9828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9829. /* end confdefs.h. */
  9830. /* Override any GCC internal prototype to avoid an error.
  9831. Use char because int might match the return type of a GCC
  9832. builtin and then its argument prototype would still apply. */
  9833. #ifdef __cplusplus
  9834. extern "C"
  9835. #endif
  9836. char shl_load ();
  9837. int
  9838. main ()
  9839. {
  9840. return shl_load ();
  9841. ;
  9842. return 0;
  9843. }
  9844. _ACEOF
  9845. if ac_fn_c_try_link "$LINENO"; then :
  9846. ac_cv_lib_dld_shl_load=yes
  9847. else
  9848. ac_cv_lib_dld_shl_load=no
  9849. fi
  9850. rm -f core conftest.err conftest.$ac_objext \
  9851. conftest$ac_exeext conftest.$ac_ext
  9852. LIBS=$ac_check_lib_save_LIBS
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9855. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9856. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9857. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9858. else
  9859. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9860. if test "x$ac_cv_func_dlopen" = xyes; then :
  9861. lt_cv_dlopen="dlopen"
  9862. else
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9864. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9865. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. ac_check_lib_save_LIBS=$LIBS
  9869. LIBS="-ldl $LIBS"
  9870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9871. /* end confdefs.h. */
  9872. /* Override any GCC internal prototype to avoid an error.
  9873. Use char because int might match the return type of a GCC
  9874. builtin and then its argument prototype would still apply. */
  9875. #ifdef __cplusplus
  9876. extern "C"
  9877. #endif
  9878. char dlopen ();
  9879. int
  9880. main ()
  9881. {
  9882. return dlopen ();
  9883. ;
  9884. return 0;
  9885. }
  9886. _ACEOF
  9887. if ac_fn_c_try_link "$LINENO"; then :
  9888. ac_cv_lib_dl_dlopen=yes
  9889. else
  9890. ac_cv_lib_dl_dlopen=no
  9891. fi
  9892. rm -f core conftest.err conftest.$ac_objext \
  9893. conftest$ac_exeext conftest.$ac_ext
  9894. LIBS=$ac_check_lib_save_LIBS
  9895. fi
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9897. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9898. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9899. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9900. else
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9902. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9903. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9904. $as_echo_n "(cached) " >&6
  9905. else
  9906. ac_check_lib_save_LIBS=$LIBS
  9907. LIBS="-lsvld $LIBS"
  9908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9909. /* end confdefs.h. */
  9910. /* Override any GCC internal prototype to avoid an error.
  9911. Use char because int might match the return type of a GCC
  9912. builtin and then its argument prototype would still apply. */
  9913. #ifdef __cplusplus
  9914. extern "C"
  9915. #endif
  9916. char dlopen ();
  9917. int
  9918. main ()
  9919. {
  9920. return dlopen ();
  9921. ;
  9922. return 0;
  9923. }
  9924. _ACEOF
  9925. if ac_fn_c_try_link "$LINENO"; then :
  9926. ac_cv_lib_svld_dlopen=yes
  9927. else
  9928. ac_cv_lib_svld_dlopen=no
  9929. fi
  9930. rm -f core conftest.err conftest.$ac_objext \
  9931. conftest$ac_exeext conftest.$ac_ext
  9932. LIBS=$ac_check_lib_save_LIBS
  9933. fi
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9935. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9936. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9937. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9938. else
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9940. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9941. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. ac_check_lib_save_LIBS=$LIBS
  9945. LIBS="-ldld $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 dld_link ();
  9955. int
  9956. main ()
  9957. {
  9958. return dld_link ();
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. if ac_fn_c_try_link "$LINENO"; then :
  9964. ac_cv_lib_dld_dld_link=yes
  9965. else
  9966. ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
  9973. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9974. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9975. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9976. fi
  9977. fi
  9978. fi
  9979. fi
  9980. fi
  9981. fi
  9982. ;;
  9983. esac
  9984. if test "x$lt_cv_dlopen" != xno; then
  9985. enable_dlopen=yes
  9986. else
  9987. enable_dlopen=no
  9988. fi
  9989. case $lt_cv_dlopen in
  9990. dlopen)
  9991. save_CPPFLAGS="$CPPFLAGS"
  9992. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9993. save_LDFLAGS="$LDFLAGS"
  9994. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9995. save_LIBS="$LIBS"
  9996. LIBS="$lt_cv_dlopen_libs $LIBS"
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9998. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9999. if ${lt_cv_dlopen_self+:} false; then :
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. if test "$cross_compiling" = yes; then :
  10003. lt_cv_dlopen_self=cross
  10004. else
  10005. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10006. lt_status=$lt_dlunknown
  10007. cat > conftest.$ac_ext <<_LT_EOF
  10008. #line $LINENO "configure"
  10009. #include "confdefs.h"
  10010. #if HAVE_DLFCN_H
  10011. #include <dlfcn.h>
  10012. #endif
  10013. #include <stdio.h>
  10014. #ifdef RTLD_GLOBAL
  10015. # define LT_DLGLOBAL RTLD_GLOBAL
  10016. #else
  10017. # ifdef DL_GLOBAL
  10018. # define LT_DLGLOBAL DL_GLOBAL
  10019. # else
  10020. # define LT_DLGLOBAL 0
  10021. # endif
  10022. #endif
  10023. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10024. find out it does not work in some platform. */
  10025. #ifndef LT_DLLAZY_OR_NOW
  10026. # ifdef RTLD_LAZY
  10027. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10028. # else
  10029. # ifdef DL_LAZY
  10030. # define LT_DLLAZY_OR_NOW DL_LAZY
  10031. # else
  10032. # ifdef RTLD_NOW
  10033. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10034. # else
  10035. # ifdef DL_NOW
  10036. # define LT_DLLAZY_OR_NOW DL_NOW
  10037. # else
  10038. # define LT_DLLAZY_OR_NOW 0
  10039. # endif
  10040. # endif
  10041. # endif
  10042. # endif
  10043. #endif
  10044. /* When -fvisbility=hidden is used, assume the code has been annotated
  10045. correspondingly for the symbols needed. */
  10046. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10047. int fnord () __attribute__((visibility("default")));
  10048. #endif
  10049. int fnord () { return 42; }
  10050. int main ()
  10051. {
  10052. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10053. int status = $lt_dlunknown;
  10054. if (self)
  10055. {
  10056. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10057. else
  10058. {
  10059. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10060. else puts (dlerror ());
  10061. }
  10062. /* dlclose (self); */
  10063. }
  10064. else
  10065. puts (dlerror ());
  10066. return status;
  10067. }
  10068. _LT_EOF
  10069. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10070. (eval $ac_link) 2>&5
  10071. ac_status=$?
  10072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10073. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10074. (./conftest; exit; ) >&5 2>/dev/null
  10075. lt_status=$?
  10076. case x$lt_status in
  10077. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10078. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10079. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10080. esac
  10081. else :
  10082. # compilation failed
  10083. lt_cv_dlopen_self=no
  10084. fi
  10085. fi
  10086. rm -fr conftest*
  10087. fi
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10089. $as_echo "$lt_cv_dlopen_self" >&6; }
  10090. if test "x$lt_cv_dlopen_self" = xyes; then
  10091. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10093. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10094. if ${lt_cv_dlopen_self_static+:} false; then :
  10095. $as_echo_n "(cached) " >&6
  10096. else
  10097. if test "$cross_compiling" = yes; then :
  10098. lt_cv_dlopen_self_static=cross
  10099. else
  10100. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10101. lt_status=$lt_dlunknown
  10102. cat > conftest.$ac_ext <<_LT_EOF
  10103. #line $LINENO "configure"
  10104. #include "confdefs.h"
  10105. #if HAVE_DLFCN_H
  10106. #include <dlfcn.h>
  10107. #endif
  10108. #include <stdio.h>
  10109. #ifdef RTLD_GLOBAL
  10110. # define LT_DLGLOBAL RTLD_GLOBAL
  10111. #else
  10112. # ifdef DL_GLOBAL
  10113. # define LT_DLGLOBAL DL_GLOBAL
  10114. # else
  10115. # define LT_DLGLOBAL 0
  10116. # endif
  10117. #endif
  10118. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10119. find out it does not work in some platform. */
  10120. #ifndef LT_DLLAZY_OR_NOW
  10121. # ifdef RTLD_LAZY
  10122. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10123. # else
  10124. # ifdef DL_LAZY
  10125. # define LT_DLLAZY_OR_NOW DL_LAZY
  10126. # else
  10127. # ifdef RTLD_NOW
  10128. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10129. # else
  10130. # ifdef DL_NOW
  10131. # define LT_DLLAZY_OR_NOW DL_NOW
  10132. # else
  10133. # define LT_DLLAZY_OR_NOW 0
  10134. # endif
  10135. # endif
  10136. # endif
  10137. # endif
  10138. #endif
  10139. /* When -fvisbility=hidden is used, assume the code has been annotated
  10140. correspondingly for the symbols needed. */
  10141. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10142. int fnord () __attribute__((visibility("default")));
  10143. #endif
  10144. int fnord () { return 42; }
  10145. int main ()
  10146. {
  10147. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10148. int status = $lt_dlunknown;
  10149. if (self)
  10150. {
  10151. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10152. else
  10153. {
  10154. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10155. else puts (dlerror ());
  10156. }
  10157. /* dlclose (self); */
  10158. }
  10159. else
  10160. puts (dlerror ());
  10161. return status;
  10162. }
  10163. _LT_EOF
  10164. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10165. (eval $ac_link) 2>&5
  10166. ac_status=$?
  10167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10168. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10169. (./conftest; exit; ) >&5 2>/dev/null
  10170. lt_status=$?
  10171. case x$lt_status in
  10172. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10173. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10174. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10175. esac
  10176. else :
  10177. # compilation failed
  10178. lt_cv_dlopen_self_static=no
  10179. fi
  10180. fi
  10181. rm -fr conftest*
  10182. fi
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10184. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10185. fi
  10186. CPPFLAGS="$save_CPPFLAGS"
  10187. LDFLAGS="$save_LDFLAGS"
  10188. LIBS="$save_LIBS"
  10189. ;;
  10190. esac
  10191. case $lt_cv_dlopen_self in
  10192. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10193. *) enable_dlopen_self=unknown ;;
  10194. esac
  10195. case $lt_cv_dlopen_self_static in
  10196. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10197. *) enable_dlopen_self_static=unknown ;;
  10198. esac
  10199. fi
  10200. striplib=
  10201. old_striplib=
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10203. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10204. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10205. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10206. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10208. $as_echo "yes" >&6; }
  10209. else
  10210. # FIXME - insert some real tests, host_os isn't really good enough
  10211. case $host_os in
  10212. darwin*)
  10213. if test -n "$STRIP" ; then
  10214. striplib="$STRIP -x"
  10215. old_striplib="$STRIP -S"
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10217. $as_echo "yes" >&6; }
  10218. else
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10220. $as_echo "no" >&6; }
  10221. fi
  10222. ;;
  10223. *)
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10225. $as_echo "no" >&6; }
  10226. ;;
  10227. esac
  10228. fi
  10229. # Report which library types will actually be built
  10230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10231. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10233. $as_echo "$can_build_shared" >&6; }
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10235. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10236. test "$can_build_shared" = "no" && enable_shared=no
  10237. # On AIX, shared libraries and static libraries use the same namespace, and
  10238. # are all built from PIC.
  10239. case $host_os in
  10240. aix3*)
  10241. test "$enable_shared" = yes && enable_static=no
  10242. if test -n "$RANLIB"; then
  10243. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10244. postinstall_cmds='$RANLIB $lib'
  10245. fi
  10246. ;;
  10247. aix[4-9]*)
  10248. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10249. test "$enable_shared" = yes && enable_static=no
  10250. fi
  10251. ;;
  10252. esac
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10254. $as_echo "$enable_shared" >&6; }
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10256. $as_echo_n "checking whether to build static libraries... " >&6; }
  10257. # Make sure either enable_shared or enable_static is yes.
  10258. test "$enable_shared" = yes || enable_static=yes
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10260. $as_echo "$enable_static" >&6; }
  10261. fi
  10262. ac_ext=c
  10263. ac_cpp='$CPP $CPPFLAGS'
  10264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10267. CC="$lt_save_CC"
  10268. ac_config_commands="$ac_config_commands libtool"
  10269. # Only expand once:
  10270. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile examples/src/Makefile"
  10271. cat >confcache <<\_ACEOF
  10272. # This file is a shell script that caches the results of configure
  10273. # tests run on this system so they can be shared between configure
  10274. # scripts and configure runs, see configure's option --config-cache.
  10275. # It is not useful on other systems. If it contains results you don't
  10276. # want to keep, you may remove or edit it.
  10277. #
  10278. # config.status only pays attention to the cache file if you give it
  10279. # the --recheck option to rerun configure.
  10280. #
  10281. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10282. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10283. # following values.
  10284. _ACEOF
  10285. # The following way of writing the cache mishandles newlines in values,
  10286. # but we know of no workaround that is simple, portable, and efficient.
  10287. # So, we kill variables containing newlines.
  10288. # Ultrix sh set writes to stderr and can't be redirected directly,
  10289. # and sets the high bit in the cache file unless we assign to the vars.
  10290. (
  10291. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10292. eval ac_val=\$$ac_var
  10293. case $ac_val in #(
  10294. *${as_nl}*)
  10295. case $ac_var in #(
  10296. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10297. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10298. esac
  10299. case $ac_var in #(
  10300. _ | IFS | as_nl) ;; #(
  10301. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10302. *) { eval $ac_var=; unset $ac_var;} ;;
  10303. esac ;;
  10304. esac
  10305. done
  10306. (set) 2>&1 |
  10307. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10308. *${as_nl}ac_space=\ *)
  10309. # `set' does not quote correctly, so add quotes: double-quote
  10310. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10311. sed -n \
  10312. "s/'/'\\\\''/g;
  10313. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10314. ;; #(
  10315. *)
  10316. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10317. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10318. ;;
  10319. esac |
  10320. sort
  10321. ) |
  10322. sed '
  10323. /^ac_cv_env_/b end
  10324. t clear
  10325. :clear
  10326. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10327. t end
  10328. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10329. :end' >>confcache
  10330. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10331. if test -w "$cache_file"; then
  10332. if test "x$cache_file" != "x/dev/null"; then
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10334. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10335. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10336. cat confcache >"$cache_file"
  10337. else
  10338. case $cache_file in #(
  10339. */* | ?:*)
  10340. mv -f confcache "$cache_file"$$ &&
  10341. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10342. *)
  10343. mv -f confcache "$cache_file" ;;
  10344. esac
  10345. fi
  10346. fi
  10347. else
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10349. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10350. fi
  10351. fi
  10352. rm -f confcache
  10353. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10354. # Let make expand exec_prefix.
  10355. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10356. # Transform confdefs.h into DEFS.
  10357. # Protect against shell expansion while executing Makefile rules.
  10358. # Protect against Makefile macro expansion.
  10359. #
  10360. # If the first sed substitution is executed (which looks for macros that
  10361. # take arguments), then branch to the quote section. Otherwise,
  10362. # look for a macro that doesn't take arguments.
  10363. ac_script='
  10364. :mline
  10365. /\\$/{
  10366. N
  10367. s,\\\n,,
  10368. b mline
  10369. }
  10370. t clear
  10371. :clear
  10372. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10373. t quote
  10374. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10375. t quote
  10376. b any
  10377. :quote
  10378. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10379. s/\[/\\&/g
  10380. s/\]/\\&/g
  10381. s/\$/$$/g
  10382. H
  10383. :any
  10384. ${
  10385. g
  10386. s/^\n//
  10387. s/\n/ /g
  10388. p
  10389. }
  10390. '
  10391. DEFS=`sed -n "$ac_script" confdefs.h`
  10392. ac_libobjs=
  10393. ac_ltlibobjs=
  10394. U=
  10395. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  10396. # 1. Remove the extension, and $U if already installed.
  10397. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10398. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10399. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10400. # will be set to the directory where LIBOBJS objects are built.
  10401. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10402. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10403. done
  10404. LIB@&t@OBJS=$ac_libobjs
  10405. LTLIBOBJS=$ac_ltlibobjs
  10406. if test -n "$EXEEXT"; then
  10407. am__EXEEXT_TRUE=
  10408. am__EXEEXT_FALSE='#'
  10409. else
  10410. am__EXEEXT_TRUE='#'
  10411. am__EXEEXT_FALSE=
  10412. fi
  10413. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10414. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10415. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10416. fi
  10417. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10418. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10419. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10420. fi
  10421. if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  10422. as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
  10423. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10424. fi
  10425. if test -z "${TARGET_WIN_TRUE}" && test -z "${TARGET_WIN_FALSE}"; then
  10426. as_fn_error $? "conditional \"TARGET_WIN\" was never defined.
  10427. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10428. fi
  10429. if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then
  10430. as_fn_error $? "conditional \"TARGET_LINUX\" was never defined.
  10431. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10432. fi
  10433. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  10434. as_fn_error $? "conditional \"DEBUG\" was never defined.
  10435. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10436. fi
  10437. : "${CONFIG_STATUS=./config.status}"
  10438. ac_write_fail=0
  10439. ac_clean_files_save=$ac_clean_files
  10440. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10442. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10443. as_write_fail=0
  10444. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10445. #! $SHELL
  10446. # Generated by $as_me.
  10447. # Run this file to recreate the current configuration.
  10448. # Compiler output produced by configure, useful for debugging
  10449. # configure, is in config.log if it exists.
  10450. debug=false
  10451. ac_cs_recheck=false
  10452. ac_cs_silent=false
  10453. SHELL=\${CONFIG_SHELL-$SHELL}
  10454. export SHELL
  10455. _ASEOF
  10456. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10457. ## -------------------- ##
  10458. ## M4sh Initialization. ##
  10459. ## -------------------- ##
  10460. # Be more Bourne compatible
  10461. DUALCASE=1; export DUALCASE # for MKS sh
  10462. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10463. emulate sh
  10464. NULLCMD=:
  10465. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10466. # is contrary to our usage. Disable this feature.
  10467. alias -g '${1+"$@"}'='"$@"'
  10468. setopt NO_GLOB_SUBST
  10469. else
  10470. case `(set -o) 2>/dev/null` in @%:@(
  10471. *posix*) :
  10472. set -o posix ;; @%:@(
  10473. *) :
  10474. ;;
  10475. esac
  10476. fi
  10477. as_nl='
  10478. '
  10479. export as_nl
  10480. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10481. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10482. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10483. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10484. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10485. # but without wasting forks for bash or zsh.
  10486. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10487. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10488. as_echo='print -r --'
  10489. as_echo_n='print -rn --'
  10490. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10491. as_echo='printf %s\n'
  10492. as_echo_n='printf %s'
  10493. else
  10494. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10495. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10496. as_echo_n='/usr/ucb/echo -n'
  10497. else
  10498. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10499. as_echo_n_body='eval
  10500. arg=$1;
  10501. case $arg in @%:@(
  10502. *"$as_nl"*)
  10503. expr "X$arg" : "X\\(.*\\)$as_nl";
  10504. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10505. esac;
  10506. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10507. '
  10508. export as_echo_n_body
  10509. as_echo_n='sh -c $as_echo_n_body as_echo'
  10510. fi
  10511. export as_echo_body
  10512. as_echo='sh -c $as_echo_body as_echo'
  10513. fi
  10514. # The user is always right.
  10515. if test "${PATH_SEPARATOR+set}" != set; then
  10516. PATH_SEPARATOR=:
  10517. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10518. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10519. PATH_SEPARATOR=';'
  10520. }
  10521. fi
  10522. # IFS
  10523. # We need space, tab and new line, in precisely that order. Quoting is
  10524. # there to prevent editors from complaining about space-tab.
  10525. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10526. # splitting by setting IFS to empty value.)
  10527. IFS=" "" $as_nl"
  10528. # Find who we are. Look in the path if we contain no directory separator.
  10529. as_myself=
  10530. case $0 in @%:@((
  10531. *[\\/]* ) as_myself=$0 ;;
  10532. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10533. for as_dir in $PATH
  10534. do
  10535. IFS=$as_save_IFS
  10536. test -z "$as_dir" && as_dir=.
  10537. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10538. done
  10539. IFS=$as_save_IFS
  10540. ;;
  10541. esac
  10542. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10543. # in which case we are not to be found in the path.
  10544. if test "x$as_myself" = x; then
  10545. as_myself=$0
  10546. fi
  10547. if test ! -f "$as_myself"; then
  10548. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10549. exit 1
  10550. fi
  10551. # Unset variables that we do not need and which cause bugs (e.g. in
  10552. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10553. # suppresses any "Segmentation fault" message there. '((' could
  10554. # trigger a bug in pdksh 5.2.14.
  10555. for as_var in BASH_ENV ENV MAIL MAILPATH
  10556. do eval test x\${$as_var+set} = xset \
  10557. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10558. done
  10559. PS1='$ '
  10560. PS2='> '
  10561. PS4='+ '
  10562. # NLS nuisances.
  10563. LC_ALL=C
  10564. export LC_ALL
  10565. LANGUAGE=C
  10566. export LANGUAGE
  10567. # CDPATH.
  10568. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10569. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  10570. @%:@ ----------------------------------------
  10571. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10572. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10573. @%:@ script with STATUS, using 1 if that was 0.
  10574. as_fn_error ()
  10575. {
  10576. as_status=$1; test $as_status -eq 0 && as_status=1
  10577. if test "$4"; then
  10578. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10579. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10580. fi
  10581. $as_echo "$as_me: error: $2" >&2
  10582. as_fn_exit $as_status
  10583. } @%:@ as_fn_error
  10584. @%:@ as_fn_set_status STATUS
  10585. @%:@ -----------------------
  10586. @%:@ Set @S|@? to STATUS, without forking.
  10587. as_fn_set_status ()
  10588. {
  10589. return $1
  10590. } @%:@ as_fn_set_status
  10591. @%:@ as_fn_exit STATUS
  10592. @%:@ -----------------
  10593. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10594. as_fn_exit ()
  10595. {
  10596. set +e
  10597. as_fn_set_status $1
  10598. exit $1
  10599. } @%:@ as_fn_exit
  10600. @%:@ as_fn_unset VAR
  10601. @%:@ ---------------
  10602. @%:@ Portably unset VAR.
  10603. as_fn_unset ()
  10604. {
  10605. { eval $1=; unset $1;}
  10606. }
  10607. as_unset=as_fn_unset
  10608. @%:@ as_fn_append VAR VALUE
  10609. @%:@ ----------------------
  10610. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  10611. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  10612. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  10613. @%:@ implementations.
  10614. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10615. eval 'as_fn_append ()
  10616. {
  10617. eval $1+=\$2
  10618. }'
  10619. else
  10620. as_fn_append ()
  10621. {
  10622. eval $1=\$$1\$2
  10623. }
  10624. fi # as_fn_append
  10625. @%:@ as_fn_arith ARG...
  10626. @%:@ ------------------
  10627. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  10628. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  10629. @%:@ must be portable across @S|@(()) and expr.
  10630. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10631. eval 'as_fn_arith ()
  10632. {
  10633. as_val=$(( $* ))
  10634. }'
  10635. else
  10636. as_fn_arith ()
  10637. {
  10638. as_val=`expr "$@" || test $? -eq 1`
  10639. }
  10640. fi # as_fn_arith
  10641. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10642. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10643. as_expr=expr
  10644. else
  10645. as_expr=false
  10646. fi
  10647. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10648. as_basename=basename
  10649. else
  10650. as_basename=false
  10651. fi
  10652. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10653. as_dirname=dirname
  10654. else
  10655. as_dirname=false
  10656. fi
  10657. as_me=`$as_basename -- "$0" ||
  10658. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10659. X"$0" : 'X\(//\)$' \| \
  10660. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10661. $as_echo X/"$0" |
  10662. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10663. s//\1/
  10664. q
  10665. }
  10666. /^X\/\(\/\/\)$/{
  10667. s//\1/
  10668. q
  10669. }
  10670. /^X\/\(\/\).*/{
  10671. s//\1/
  10672. q
  10673. }
  10674. s/.*/./; q'`
  10675. # Avoid depending upon Character Ranges.
  10676. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10677. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10678. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10679. as_cr_digits='0123456789'
  10680. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10681. ECHO_C= ECHO_N= ECHO_T=
  10682. case `echo -n x` in @%:@(((((
  10683. -n*)
  10684. case `echo 'xy\c'` in
  10685. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10686. xy) ECHO_C='\c';;
  10687. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10688. ECHO_T=' ';;
  10689. esac;;
  10690. *)
  10691. ECHO_N='-n';;
  10692. esac
  10693. rm -f conf$$ conf$$.exe conf$$.file
  10694. if test -d conf$$.dir; then
  10695. rm -f conf$$.dir/conf$$.file
  10696. else
  10697. rm -f conf$$.dir
  10698. mkdir conf$$.dir 2>/dev/null
  10699. fi
  10700. if (echo >conf$$.file) 2>/dev/null; then
  10701. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10702. as_ln_s='ln -s'
  10703. # ... but there are two gotchas:
  10704. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10705. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10706. # In both cases, we have to default to `cp -p'.
  10707. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10708. as_ln_s='cp -p'
  10709. elif ln conf$$.file conf$$ 2>/dev/null; then
  10710. as_ln_s=ln
  10711. else
  10712. as_ln_s='cp -p'
  10713. fi
  10714. else
  10715. as_ln_s='cp -p'
  10716. fi
  10717. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10718. rmdir conf$$.dir 2>/dev/null
  10719. @%:@ as_fn_mkdir_p
  10720. @%:@ -------------
  10721. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  10722. as_fn_mkdir_p ()
  10723. {
  10724. case $as_dir in #(
  10725. -*) as_dir=./$as_dir;;
  10726. esac
  10727. test -d "$as_dir" || eval $as_mkdir_p || {
  10728. as_dirs=
  10729. while :; do
  10730. case $as_dir in #(
  10731. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10732. *) as_qdir=$as_dir;;
  10733. esac
  10734. as_dirs="'$as_qdir' $as_dirs"
  10735. as_dir=`$as_dirname -- "$as_dir" ||
  10736. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10737. X"$as_dir" : 'X\(//\)[^/]' \| \
  10738. X"$as_dir" : 'X\(//\)$' \| \
  10739. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10740. $as_echo X"$as_dir" |
  10741. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10742. s//\1/
  10743. q
  10744. }
  10745. /^X\(\/\/\)[^/].*/{
  10746. s//\1/
  10747. q
  10748. }
  10749. /^X\(\/\/\)$/{
  10750. s//\1/
  10751. q
  10752. }
  10753. /^X\(\/\).*/{
  10754. s//\1/
  10755. q
  10756. }
  10757. s/.*/./; q'`
  10758. test -d "$as_dir" && break
  10759. done
  10760. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10761. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10762. } @%:@ as_fn_mkdir_p
  10763. if mkdir -p . 2>/dev/null; then
  10764. as_mkdir_p='mkdir -p "$as_dir"'
  10765. else
  10766. test -d ./-p && rmdir ./-p
  10767. as_mkdir_p=false
  10768. fi
  10769. if test -x / >/dev/null 2>&1; then
  10770. as_test_x='test -x'
  10771. else
  10772. if ls -dL / >/dev/null 2>&1; then
  10773. as_ls_L_option=L
  10774. else
  10775. as_ls_L_option=
  10776. fi
  10777. as_test_x='
  10778. eval sh -c '\''
  10779. if test -d "$1"; then
  10780. test -d "$1/.";
  10781. else
  10782. case $1 in @%:@(
  10783. -*)set "./$1";;
  10784. esac;
  10785. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  10786. ???[sx]*):;;*)false;;esac;fi
  10787. '\'' sh
  10788. '
  10789. fi
  10790. as_executable_p=$as_test_x
  10791. # Sed expression to map a string onto a valid CPP name.
  10792. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10793. # Sed expression to map a string onto a valid variable name.
  10794. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10795. exec 6>&1
  10796. ## ----------------------------------- ##
  10797. ## Main body of $CONFIG_STATUS script. ##
  10798. ## ----------------------------------- ##
  10799. _ASEOF
  10800. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10802. # Save the log message, to keep $0 and so on meaningful, and to
  10803. # report actual input values of CONFIG_FILES etc. instead of their
  10804. # values after options handling.
  10805. ac_log="
  10806. This file was extended by OPCUAServer $as_me 1.0, which was
  10807. generated by GNU Autoconf 2.68. Invocation command line was
  10808. CONFIG_FILES = $CONFIG_FILES
  10809. CONFIG_HEADERS = $CONFIG_HEADERS
  10810. CONFIG_LINKS = $CONFIG_LINKS
  10811. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10812. $ $0 $@
  10813. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10814. "
  10815. _ACEOF
  10816. case $ac_config_files in *"
  10817. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10818. esac
  10819. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10820. # Files that config.status was made for.
  10821. config_files="$ac_config_files"
  10822. config_commands="$ac_config_commands"
  10823. _ACEOF
  10824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10825. ac_cs_usage="\
  10826. \`$as_me' instantiates files and other configuration actions
  10827. from templates according to the current configuration. Unless the files
  10828. and actions are specified as TAGs, all are instantiated by default.
  10829. Usage: $0 [OPTION]... [TAG]...
  10830. -h, --help print this help, then exit
  10831. -V, --version print version number and configuration settings, then exit
  10832. --config print configuration, then exit
  10833. -q, --quiet, --silent
  10834. do not print progress messages
  10835. -d, --debug don't remove temporary files
  10836. --recheck update $as_me by reconfiguring in the same conditions
  10837. --file=FILE[:TEMPLATE]
  10838. instantiate the configuration file FILE
  10839. Configuration files:
  10840. $config_files
  10841. Configuration commands:
  10842. $config_commands
  10843. Report bugs to the package provider."
  10844. _ACEOF
  10845. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10846. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10847. ac_cs_version="\\
  10848. OPCUAServer config.status 1.0
  10849. configured by $0, generated by GNU Autoconf 2.68,
  10850. with options \\"\$ac_cs_config\\"
  10851. Copyright (C) 2010 Free Software Foundation, Inc.
  10852. This config.status script is free software; the Free Software Foundation
  10853. gives unlimited permission to copy, distribute and modify it."
  10854. ac_pwd='$ac_pwd'
  10855. srcdir='$srcdir'
  10856. INSTALL='$INSTALL'
  10857. MKDIR_P='$MKDIR_P'
  10858. AWK='$AWK'
  10859. test -n "\$AWK" || AWK=awk
  10860. _ACEOF
  10861. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10862. # The default lists apply if the user does not specify any file.
  10863. ac_need_defaults=:
  10864. while test $# != 0
  10865. do
  10866. case $1 in
  10867. --*=?*)
  10868. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10869. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10870. ac_shift=:
  10871. ;;
  10872. --*=)
  10873. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10874. ac_optarg=
  10875. ac_shift=:
  10876. ;;
  10877. *)
  10878. ac_option=$1
  10879. ac_optarg=$2
  10880. ac_shift=shift
  10881. ;;
  10882. esac
  10883. case $ac_option in
  10884. # Handling of the options.
  10885. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10886. ac_cs_recheck=: ;;
  10887. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10888. $as_echo "$ac_cs_version"; exit ;;
  10889. --config | --confi | --conf | --con | --co | --c )
  10890. $as_echo "$ac_cs_config"; exit ;;
  10891. --debug | --debu | --deb | --de | --d | -d )
  10892. debug=: ;;
  10893. --file | --fil | --fi | --f )
  10894. $ac_shift
  10895. case $ac_optarg in
  10896. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10897. '') as_fn_error $? "missing file argument" ;;
  10898. esac
  10899. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10900. ac_need_defaults=false;;
  10901. --he | --h | --help | --hel | -h )
  10902. $as_echo "$ac_cs_usage"; exit ;;
  10903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10904. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10905. ac_cs_silent=: ;;
  10906. # This is an error.
  10907. -*) as_fn_error $? "unrecognized option: \`$1'
  10908. Try \`$0 --help' for more information." ;;
  10909. *) as_fn_append ac_config_targets " $1"
  10910. ac_need_defaults=false ;;
  10911. esac
  10912. shift
  10913. done
  10914. ac_configure_extra_args=
  10915. if $ac_cs_silent; then
  10916. exec 6>/dev/null
  10917. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10918. fi
  10919. _ACEOF
  10920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10921. if \$ac_cs_recheck; then
  10922. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10923. shift
  10924. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10925. CONFIG_SHELL='$SHELL'
  10926. export CONFIG_SHELL
  10927. exec "\$@"
  10928. fi
  10929. _ACEOF
  10930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10931. exec 5>>config.log
  10932. {
  10933. echo
  10934. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  10935. @%:@@%:@ Running $as_me. @%:@@%:@
  10936. _ASBOX
  10937. $as_echo "$ac_log"
  10938. } >&5
  10939. _ACEOF
  10940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10941. #
  10942. # INIT-COMMANDS
  10943. #
  10944. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10945. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10946. # if CDPATH is set.
  10947. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10948. sed_quote_subst='$sed_quote_subst'
  10949. double_quote_subst='$double_quote_subst'
  10950. delay_variable_subst='$delay_variable_subst'
  10951. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  10952. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10953. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10954. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10955. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10956. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10957. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10958. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10959. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10960. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10961. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10962. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10963. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10964. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10965. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10966. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10967. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10968. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10969. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10970. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10971. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10972. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10973. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10974. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10975. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10976. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10977. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10978. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10979. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10980. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10981. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10982. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10983. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10984. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10985. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10986. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10987. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10988. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10989. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10990. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10991. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10992. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10993. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10994. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10995. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10996. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10997. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10998. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10999. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11000. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11001. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11002. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11003. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11004. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11005. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11006. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11007. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11008. 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"`'
  11009. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11010. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11011. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11012. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11013. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11014. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11015. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11016. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11017. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11018. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11019. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11020. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11021. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11022. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11023. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11024. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11025. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11026. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11027. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11028. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11029. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11030. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11031. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11032. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11033. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11034. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11035. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11036. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11037. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11038. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11039. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11040. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11041. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11042. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11043. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11044. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11045. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11046. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11047. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11048. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11049. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11050. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11051. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11052. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11053. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11054. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11055. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11056. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11057. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11058. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11059. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11060. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11061. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11062. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11063. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11064. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11065. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11066. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11067. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11068. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11069. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11070. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11071. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11072. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11073. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11074. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11075. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11076. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11077. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11078. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11079. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11080. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11081. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11082. LTCC='$LTCC'
  11083. LTCFLAGS='$LTCFLAGS'
  11084. compiler='$compiler_DEFAULT'
  11085. # A function that is used when there is no print builtin or printf.
  11086. func_fallback_echo ()
  11087. {
  11088. eval 'cat <<_LTECHO_EOF
  11089. \$1
  11090. _LTECHO_EOF'
  11091. }
  11092. # Quote evaled strings.
  11093. for var in AS \
  11094. DLLTOOL \
  11095. OBJDUMP \
  11096. SHELL \
  11097. ECHO \
  11098. PATH_SEPARATOR \
  11099. SED \
  11100. GREP \
  11101. EGREP \
  11102. FGREP \
  11103. LD \
  11104. NM \
  11105. LN_S \
  11106. lt_SP2NL \
  11107. lt_NL2SP \
  11108. reload_flag \
  11109. deplibs_check_method \
  11110. file_magic_cmd \
  11111. file_magic_glob \
  11112. want_nocaseglob \
  11113. sharedlib_from_linklib_cmd \
  11114. AR \
  11115. AR_FLAGS \
  11116. archiver_list_spec \
  11117. STRIP \
  11118. RANLIB \
  11119. CC \
  11120. CFLAGS \
  11121. compiler \
  11122. lt_cv_sys_global_symbol_pipe \
  11123. lt_cv_sys_global_symbol_to_cdecl \
  11124. lt_cv_sys_global_symbol_to_c_name_address \
  11125. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11126. nm_file_list_spec \
  11127. lt_prog_compiler_no_builtin_flag \
  11128. lt_prog_compiler_pic \
  11129. lt_prog_compiler_wl \
  11130. lt_prog_compiler_static \
  11131. lt_cv_prog_compiler_c_o \
  11132. need_locks \
  11133. MANIFEST_TOOL \
  11134. DSYMUTIL \
  11135. NMEDIT \
  11136. LIPO \
  11137. OTOOL \
  11138. OTOOL64 \
  11139. shrext_cmds \
  11140. export_dynamic_flag_spec \
  11141. whole_archive_flag_spec \
  11142. compiler_needs_object \
  11143. with_gnu_ld \
  11144. allow_undefined_flag \
  11145. no_undefined_flag \
  11146. hardcode_libdir_flag_spec \
  11147. hardcode_libdir_separator \
  11148. exclude_expsyms \
  11149. include_expsyms \
  11150. file_list_spec \
  11151. variables_saved_for_relink \
  11152. libname_spec \
  11153. library_names_spec \
  11154. soname_spec \
  11155. install_override_mode \
  11156. finish_eval \
  11157. old_striplib \
  11158. striplib; do
  11159. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11160. *[\\\\\\\`\\"\\\$]*)
  11161. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11162. ;;
  11163. *)
  11164. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11165. ;;
  11166. esac
  11167. done
  11168. # Double-quote double-evaled strings.
  11169. for var in reload_cmds \
  11170. old_postinstall_cmds \
  11171. old_postuninstall_cmds \
  11172. old_archive_cmds \
  11173. extract_expsyms_cmds \
  11174. old_archive_from_new_cmds \
  11175. old_archive_from_expsyms_cmds \
  11176. archive_cmds \
  11177. archive_expsym_cmds \
  11178. module_cmds \
  11179. module_expsym_cmds \
  11180. export_symbols_cmds \
  11181. prelink_cmds \
  11182. postlink_cmds \
  11183. postinstall_cmds \
  11184. postuninstall_cmds \
  11185. finish_cmds \
  11186. sys_lib_search_path_spec \
  11187. sys_lib_dlsearch_path_spec; do
  11188. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11189. *[\\\\\\\`\\"\\\$]*)
  11190. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11191. ;;
  11192. *)
  11193. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11194. ;;
  11195. esac
  11196. done
  11197. ac_aux_dir='$ac_aux_dir'
  11198. xsi_shell='$xsi_shell'
  11199. lt_shell_append='$lt_shell_append'
  11200. # See if we are running on zsh, and set the options which allow our
  11201. # commands through without removal of \ escapes INIT.
  11202. if test -n "\${ZSH_VERSION+set}" ; then
  11203. setopt NO_GLOB_SUBST
  11204. fi
  11205. PACKAGE='$PACKAGE'
  11206. VERSION='$VERSION'
  11207. TIMESTAMP='$TIMESTAMP'
  11208. RM='$RM'
  11209. ofile='$ofile'
  11210. _ACEOF
  11211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11212. # Handling of arguments.
  11213. for ac_config_target in $ac_config_targets
  11214. do
  11215. case $ac_config_target in
  11216. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11217. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11218. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11219. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11220. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  11221. "examples/src/Makefile") CONFIG_FILES="$CONFIG_FILES examples/src/Makefile" ;;
  11222. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11223. esac
  11224. done
  11225. # If the user did not use the arguments to specify the items to instantiate,
  11226. # then the envvar interface is used. Set only those that are not.
  11227. # We use the long form for the default assignment because of an extremely
  11228. # bizarre bug on SunOS 4.1.3.
  11229. if $ac_need_defaults; then
  11230. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11231. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11232. fi
  11233. # Have a temporary directory for convenience. Make it in the build tree
  11234. # simply because there is no reason against having it here, and in addition,
  11235. # creating and moving files from /tmp can sometimes cause problems.
  11236. # Hook for its removal unless debugging.
  11237. # Note that there is a small window in which the directory will not be cleaned:
  11238. # after its creation but before its name has been assigned to `$tmp'.
  11239. $debug ||
  11240. {
  11241. tmp= ac_tmp=
  11242. trap 'exit_status=$?
  11243. : "${ac_tmp:=$tmp}"
  11244. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11245. ' 0
  11246. trap 'as_fn_exit 1' 1 2 13 15
  11247. }
  11248. # Create a (secure) tmp directory for tmp files.
  11249. {
  11250. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11251. test -d "$tmp"
  11252. } ||
  11253. {
  11254. tmp=./conf$$-$RANDOM
  11255. (umask 077 && mkdir "$tmp")
  11256. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11257. ac_tmp=$tmp
  11258. # Set up the scripts for CONFIG_FILES section.
  11259. # No need to generate them if there are no CONFIG_FILES.
  11260. # This happens for instance with `./config.status config.h'.
  11261. if test -n "$CONFIG_FILES"; then
  11262. ac_cr=`echo X | tr X '\015'`
  11263. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11264. # But we know of no other shell where ac_cr would be empty at this
  11265. # point, so we can use a bashism as a fallback.
  11266. if test "x$ac_cr" = x; then
  11267. eval ac_cr=\$\'\\r\'
  11268. fi
  11269. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11270. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11271. ac_cs_awk_cr='\\r'
  11272. else
  11273. ac_cs_awk_cr=$ac_cr
  11274. fi
  11275. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11276. _ACEOF
  11277. {
  11278. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11279. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11280. echo "_ACEOF"
  11281. } >conf$$subs.sh ||
  11282. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11283. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11284. ac_delim='%!_!# '
  11285. for ac_last_try in false false false false false :; do
  11286. . ./conf$$subs.sh ||
  11287. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11288. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11289. if test $ac_delim_n = $ac_delim_num; then
  11290. break
  11291. elif $ac_last_try; then
  11292. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11293. else
  11294. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11295. fi
  11296. done
  11297. rm -f conf$$subs.sh
  11298. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11299. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11300. _ACEOF
  11301. sed -n '
  11302. h
  11303. s/^/S["/; s/!.*/"]=/
  11304. p
  11305. g
  11306. s/^[^!]*!//
  11307. :repl
  11308. t repl
  11309. s/'"$ac_delim"'$//
  11310. t delim
  11311. :nl
  11312. h
  11313. s/\(.\{148\}\)..*/\1/
  11314. t more1
  11315. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11316. p
  11317. n
  11318. b repl
  11319. :more1
  11320. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11321. p
  11322. g
  11323. s/.\{148\}//
  11324. t nl
  11325. :delim
  11326. h
  11327. s/\(.\{148\}\)..*/\1/
  11328. t more2
  11329. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11330. p
  11331. b
  11332. :more2
  11333. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11334. p
  11335. g
  11336. s/.\{148\}//
  11337. t delim
  11338. ' <conf$$subs.awk | sed '
  11339. /^[^""]/{
  11340. N
  11341. s/\n//
  11342. }
  11343. ' >>$CONFIG_STATUS || ac_write_fail=1
  11344. rm -f conf$$subs.awk
  11345. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11346. _ACAWK
  11347. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11348. for (key in S) S_is_set[key] = 1
  11349. FS = ""
  11350. }
  11351. {
  11352. line = $ 0
  11353. nfields = split(line, field, "@")
  11354. substed = 0
  11355. len = length(field[1])
  11356. for (i = 2; i < nfields; i++) {
  11357. key = field[i]
  11358. keylen = length(key)
  11359. if (S_is_set[key]) {
  11360. value = S[key]
  11361. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11362. len += length(value) + length(field[++i])
  11363. substed = 1
  11364. } else
  11365. len += 1 + keylen
  11366. }
  11367. print line
  11368. }
  11369. _ACAWK
  11370. _ACEOF
  11371. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11372. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11373. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11374. else
  11375. cat
  11376. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11377. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11378. _ACEOF
  11379. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11380. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11381. # trailing colons and then remove the whole line if VPATH becomes empty
  11382. # (actually we leave an empty line to preserve line numbers).
  11383. if test "x$srcdir" = x.; then
  11384. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11385. h
  11386. s///
  11387. s/^/:/
  11388. s/[ ]*$/:/
  11389. s/:\$(srcdir):/:/g
  11390. s/:\${srcdir}:/:/g
  11391. s/:@srcdir@:/:/g
  11392. s/^:*//
  11393. s/:*$//
  11394. x
  11395. s/\(=[ ]*\).*/\1/
  11396. G
  11397. s/\n//
  11398. s/^[^=]*=[ ]*$//
  11399. }'
  11400. fi
  11401. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11402. fi # test -n "$CONFIG_FILES"
  11403. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11404. shift
  11405. for ac_tag
  11406. do
  11407. case $ac_tag in
  11408. :[FHLC]) ac_mode=$ac_tag; continue;;
  11409. esac
  11410. case $ac_mode$ac_tag in
  11411. :[FHL]*:*);;
  11412. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11413. :[FH]-) ac_tag=-:-;;
  11414. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11415. esac
  11416. ac_save_IFS=$IFS
  11417. IFS=:
  11418. set x $ac_tag
  11419. IFS=$ac_save_IFS
  11420. shift
  11421. ac_file=$1
  11422. shift
  11423. case $ac_mode in
  11424. :L) ac_source=$1;;
  11425. :[FH])
  11426. ac_file_inputs=
  11427. for ac_f
  11428. do
  11429. case $ac_f in
  11430. -) ac_f="$ac_tmp/stdin";;
  11431. *) # Look for the file first in the build tree, then in the source tree
  11432. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11433. # because $ac_f cannot contain `:'.
  11434. test -f "$ac_f" ||
  11435. case $ac_f in
  11436. [\\/$]*) false;;
  11437. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11438. esac ||
  11439. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11440. esac
  11441. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11442. as_fn_append ac_file_inputs " '$ac_f'"
  11443. done
  11444. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11445. # use $as_me), people would be surprised to read:
  11446. # /* config.h. Generated by config.status. */
  11447. configure_input='Generated from '`
  11448. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11449. `' by configure.'
  11450. if test x"$ac_file" != x-; then
  11451. configure_input="$ac_file. $configure_input"
  11452. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11453. $as_echo "$as_me: creating $ac_file" >&6;}
  11454. fi
  11455. # Neutralize special characters interpreted by sed in replacement strings.
  11456. case $configure_input in #(
  11457. *\&* | *\|* | *\\* )
  11458. ac_sed_conf_input=`$as_echo "$configure_input" |
  11459. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11460. *) ac_sed_conf_input=$configure_input;;
  11461. esac
  11462. case $ac_tag in
  11463. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11464. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11465. esac
  11466. ;;
  11467. esac
  11468. ac_dir=`$as_dirname -- "$ac_file" ||
  11469. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11470. X"$ac_file" : 'X\(//\)[^/]' \| \
  11471. X"$ac_file" : 'X\(//\)$' \| \
  11472. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11473. $as_echo X"$ac_file" |
  11474. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11475. s//\1/
  11476. q
  11477. }
  11478. /^X\(\/\/\)[^/].*/{
  11479. s//\1/
  11480. q
  11481. }
  11482. /^X\(\/\/\)$/{
  11483. s//\1/
  11484. q
  11485. }
  11486. /^X\(\/\).*/{
  11487. s//\1/
  11488. q
  11489. }
  11490. s/.*/./; q'`
  11491. as_dir="$ac_dir"; as_fn_mkdir_p
  11492. ac_builddir=.
  11493. case "$ac_dir" in
  11494. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11495. *)
  11496. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11497. # A ".." for each directory in $ac_dir_suffix.
  11498. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11499. case $ac_top_builddir_sub in
  11500. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11501. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11502. esac ;;
  11503. esac
  11504. ac_abs_top_builddir=$ac_pwd
  11505. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11506. # for backward compatibility:
  11507. ac_top_builddir=$ac_top_build_prefix
  11508. case $srcdir in
  11509. .) # We are building in place.
  11510. ac_srcdir=.
  11511. ac_top_srcdir=$ac_top_builddir_sub
  11512. ac_abs_top_srcdir=$ac_pwd ;;
  11513. [\\/]* | ?:[\\/]* ) # Absolute name.
  11514. ac_srcdir=$srcdir$ac_dir_suffix;
  11515. ac_top_srcdir=$srcdir
  11516. ac_abs_top_srcdir=$srcdir ;;
  11517. *) # Relative name.
  11518. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11519. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11520. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11521. esac
  11522. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11523. case $ac_mode in
  11524. :F)
  11525. #
  11526. # CONFIG_FILE
  11527. #
  11528. case $INSTALL in
  11529. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11530. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11531. esac
  11532. ac_MKDIR_P=$MKDIR_P
  11533. case $MKDIR_P in
  11534. [\\/$]* | ?:[\\/]* ) ;;
  11535. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11536. esac
  11537. _ACEOF
  11538. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11539. # If the template does not know about datarootdir, expand it.
  11540. # FIXME: This hack should be removed a few years after 2.60.
  11541. ac_datarootdir_hack=; ac_datarootdir_seen=
  11542. ac_sed_dataroot='
  11543. /datarootdir/ {
  11544. p
  11545. q
  11546. }
  11547. /@datadir@/p
  11548. /@docdir@/p
  11549. /@infodir@/p
  11550. /@localedir@/p
  11551. /@mandir@/p'
  11552. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11553. *datarootdir*) ac_datarootdir_seen=yes;;
  11554. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11556. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11557. _ACEOF
  11558. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11559. ac_datarootdir_hack='
  11560. s&@datadir@&$datadir&g
  11561. s&@docdir@&$docdir&g
  11562. s&@infodir@&$infodir&g
  11563. s&@localedir@&$localedir&g
  11564. s&@mandir@&$mandir&g
  11565. s&\\\${datarootdir}&$datarootdir&g' ;;
  11566. esac
  11567. _ACEOF
  11568. # Neutralize VPATH when `$srcdir' = `.'.
  11569. # Shell code in configure.ac might set extrasub.
  11570. # FIXME: do we really want to maintain this feature?
  11571. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11572. ac_sed_extra="$ac_vpsub
  11573. $extrasub
  11574. _ACEOF
  11575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11576. :t
  11577. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11578. s|@configure_input@|$ac_sed_conf_input|;t t
  11579. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11580. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11581. s&@srcdir@&$ac_srcdir&;t t
  11582. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11583. s&@top_srcdir@&$ac_top_srcdir&;t t
  11584. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11585. s&@builddir@&$ac_builddir&;t t
  11586. s&@abs_builddir@&$ac_abs_builddir&;t t
  11587. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11588. s&@INSTALL@&$ac_INSTALL&;t t
  11589. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11590. $ac_datarootdir_hack
  11591. "
  11592. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11593. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11594. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11595. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11596. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11597. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11599. which seems to be undefined. Please make sure it is defined" >&5
  11600. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11601. which seems to be undefined. Please make sure it is defined" >&2;}
  11602. rm -f "$ac_tmp/stdin"
  11603. case $ac_file in
  11604. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11605. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11606. esac \
  11607. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11608. ;;
  11609. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11610. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11611. ;;
  11612. esac
  11613. case $ac_file$ac_mode in
  11614. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11615. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11616. # are listed without --file. Let's play safe and only enable the eval
  11617. # if we detect the quoting.
  11618. case $CONFIG_FILES in
  11619. *\'*) eval set x "$CONFIG_FILES" ;;
  11620. *) set x $CONFIG_FILES ;;
  11621. esac
  11622. shift
  11623. for mf
  11624. do
  11625. # Strip MF so we end up with the name of the file.
  11626. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11627. # Check whether this is an Automake generated Makefile or not.
  11628. # We used to match only the files named `Makefile.in', but
  11629. # some people rename them; so instead we look at the file content.
  11630. # Grep'ing the first line is not enough: some people post-process
  11631. # each Makefile.in and add a new line on top of each file to say so.
  11632. # Grep'ing the whole file is not good either: AIX grep has a line
  11633. # limit of 2048, but all sed's we know have understand at least 4000.
  11634. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11635. dirpart=`$as_dirname -- "$mf" ||
  11636. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11637. X"$mf" : 'X\(//\)[^/]' \| \
  11638. X"$mf" : 'X\(//\)$' \| \
  11639. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11640. $as_echo X"$mf" |
  11641. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11642. s//\1/
  11643. q
  11644. }
  11645. /^X\(\/\/\)[^/].*/{
  11646. s//\1/
  11647. q
  11648. }
  11649. /^X\(\/\/\)$/{
  11650. s//\1/
  11651. q
  11652. }
  11653. /^X\(\/\).*/{
  11654. s//\1/
  11655. q
  11656. }
  11657. s/.*/./; q'`
  11658. else
  11659. continue
  11660. fi
  11661. # Extract the definition of DEPDIR, am__include, and am__quote
  11662. # from the Makefile without running `make'.
  11663. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11664. test -z "$DEPDIR" && continue
  11665. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11666. test -z "am__include" && continue
  11667. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11668. # When using ansi2knr, U may be empty or an underscore; expand it
  11669. U=`sed -n 's/^U = //p' < "$mf"`
  11670. # Find all dependency output files, they are included files with
  11671. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11672. # simplest approach to changing $(DEPDIR) to its actual value in the
  11673. # expansion.
  11674. for file in `sed -n "
  11675. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11676. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11677. # Make sure the directory exists.
  11678. test -f "$dirpart/$file" && continue
  11679. fdir=`$as_dirname -- "$file" ||
  11680. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11681. X"$file" : 'X\(//\)[^/]' \| \
  11682. X"$file" : 'X\(//\)$' \| \
  11683. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11684. $as_echo X"$file" |
  11685. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11686. s//\1/
  11687. q
  11688. }
  11689. /^X\(\/\/\)[^/].*/{
  11690. s//\1/
  11691. q
  11692. }
  11693. /^X\(\/\/\)$/{
  11694. s//\1/
  11695. q
  11696. }
  11697. /^X\(\/\).*/{
  11698. s//\1/
  11699. q
  11700. }
  11701. s/.*/./; q'`
  11702. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11703. # echo "creating $dirpart/$file"
  11704. echo '# dummy' > "$dirpart/$file"
  11705. done
  11706. done
  11707. }
  11708. ;;
  11709. "libtool":C)
  11710. # See if we are running on zsh, and set the options which allow our
  11711. # commands through without removal of \ escapes.
  11712. if test -n "${ZSH_VERSION+set}" ; then
  11713. setopt NO_GLOB_SUBST
  11714. fi
  11715. cfgfile="${ofile}T"
  11716. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11717. $RM "$cfgfile"
  11718. cat <<_LT_EOF >> "$cfgfile"
  11719. #! $SHELL
  11720. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11721. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11722. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11723. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11724. #
  11725. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11726. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11727. # Foundation, Inc.
  11728. # Written by Gordon Matzigkeit, 1996
  11729. #
  11730. # This file is part of GNU Libtool.
  11731. #
  11732. # GNU Libtool is free software; you can redistribute it and/or
  11733. # modify it under the terms of the GNU General Public License as
  11734. # published by the Free Software Foundation; either version 2 of
  11735. # the License, or (at your option) any later version.
  11736. #
  11737. # As a special exception to the GNU General Public License,
  11738. # if you distribute this file as part of a program or library that
  11739. # is built using GNU Libtool, you may include this file under the
  11740. # same distribution terms that you use for the rest of that program.
  11741. #
  11742. # GNU Libtool is distributed in the hope that it will be useful,
  11743. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11744. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11745. # GNU General Public License for more details.
  11746. #
  11747. # You should have received a copy of the GNU General Public License
  11748. # along with GNU Libtool; see the file COPYING. If not, a copy
  11749. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11750. # obtained by writing to the Free Software Foundation, Inc.,
  11751. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11752. # The names of the tagged configurations supported by this script.
  11753. available_tags=""
  11754. # ### BEGIN LIBTOOL CONFIG
  11755. # Assembler program.
  11756. AS=$lt_AS
  11757. # DLL creation program.
  11758. DLLTOOL=$lt_DLLTOOL
  11759. # Object dumper program.
  11760. OBJDUMP=$lt_OBJDUMP
  11761. # Which release of libtool.m4 was used?
  11762. macro_version=$macro_version
  11763. macro_revision=$macro_revision
  11764. # Whether or not to build shared libraries.
  11765. build_libtool_libs=$enable_shared
  11766. # Whether or not to build static libraries.
  11767. build_old_libs=$enable_static
  11768. # What type of objects to build.
  11769. pic_mode=$pic_mode
  11770. # Whether or not to optimize for fast installation.
  11771. fast_install=$enable_fast_install
  11772. # Shell to use when invoking shell scripts.
  11773. SHELL=$lt_SHELL
  11774. # An echo program that protects backslashes.
  11775. ECHO=$lt_ECHO
  11776. # The PATH separator for the build system.
  11777. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11778. # The host system.
  11779. host_alias=$host_alias
  11780. host=$host
  11781. host_os=$host_os
  11782. # The build system.
  11783. build_alias=$build_alias
  11784. build=$build
  11785. build_os=$build_os
  11786. # A sed program that does not truncate output.
  11787. SED=$lt_SED
  11788. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11789. Xsed="\$SED -e 1s/^X//"
  11790. # A grep program that handles long lines.
  11791. GREP=$lt_GREP
  11792. # An ERE matcher.
  11793. EGREP=$lt_EGREP
  11794. # A literal string matcher.
  11795. FGREP=$lt_FGREP
  11796. # A BSD- or MS-compatible name lister.
  11797. NM=$lt_NM
  11798. # Whether we need soft or hard links.
  11799. LN_S=$lt_LN_S
  11800. # What is the maximum length of a command?
  11801. max_cmd_len=$max_cmd_len
  11802. # Object file suffix (normally "o").
  11803. objext=$ac_objext
  11804. # Executable file suffix (normally "").
  11805. exeext=$exeext
  11806. # whether the shell understands "unset".
  11807. lt_unset=$lt_unset
  11808. # turn spaces into newlines.
  11809. SP2NL=$lt_lt_SP2NL
  11810. # turn newlines into spaces.
  11811. NL2SP=$lt_lt_NL2SP
  11812. # convert \$build file names to \$host format.
  11813. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11814. # convert \$build files to toolchain format.
  11815. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11816. # Method to check whether dependent libraries are shared objects.
  11817. deplibs_check_method=$lt_deplibs_check_method
  11818. # Command to use when deplibs_check_method = "file_magic".
  11819. file_magic_cmd=$lt_file_magic_cmd
  11820. # How to find potential files when deplibs_check_method = "file_magic".
  11821. file_magic_glob=$lt_file_magic_glob
  11822. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11823. want_nocaseglob=$lt_want_nocaseglob
  11824. # Command to associate shared and link libraries.
  11825. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11826. # The archiver.
  11827. AR=$lt_AR
  11828. # Flags to create an archive.
  11829. AR_FLAGS=$lt_AR_FLAGS
  11830. # How to feed a file listing to the archiver.
  11831. archiver_list_spec=$lt_archiver_list_spec
  11832. # A symbol stripping program.
  11833. STRIP=$lt_STRIP
  11834. # Commands used to install an old-style archive.
  11835. RANLIB=$lt_RANLIB
  11836. old_postinstall_cmds=$lt_old_postinstall_cmds
  11837. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11838. # Whether to use a lock for old archive extraction.
  11839. lock_old_archive_extraction=$lock_old_archive_extraction
  11840. # A C compiler.
  11841. LTCC=$lt_CC
  11842. # LTCC compiler flags.
  11843. LTCFLAGS=$lt_CFLAGS
  11844. # Take the output of nm and produce a listing of raw symbols and C names.
  11845. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11846. # Transform the output of nm in a proper C declaration.
  11847. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11848. # Transform the output of nm in a C name address pair.
  11849. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11850. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11851. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11852. # Specify filename containing input files for \$NM.
  11853. nm_file_list_spec=$lt_nm_file_list_spec
  11854. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11855. lt_sysroot=$lt_sysroot
  11856. # The name of the directory that contains temporary libtool files.
  11857. objdir=$objdir
  11858. # Used to examine libraries when file_magic_cmd begins with "file".
  11859. MAGIC_CMD=$MAGIC_CMD
  11860. # Must we lock files when doing compilation?
  11861. need_locks=$lt_need_locks
  11862. # Manifest tool.
  11863. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11864. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11865. DSYMUTIL=$lt_DSYMUTIL
  11866. # Tool to change global to local symbols on Mac OS X.
  11867. NMEDIT=$lt_NMEDIT
  11868. # Tool to manipulate fat objects and archives on Mac OS X.
  11869. LIPO=$lt_LIPO
  11870. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11871. OTOOL=$lt_OTOOL
  11872. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11873. OTOOL64=$lt_OTOOL64
  11874. # Old archive suffix (normally "a").
  11875. libext=$libext
  11876. # Shared library suffix (normally ".so").
  11877. shrext_cmds=$lt_shrext_cmds
  11878. # The commands to extract the exported symbol list from a shared archive.
  11879. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11880. # Variables whose values should be saved in libtool wrapper scripts and
  11881. # restored at link time.
  11882. variables_saved_for_relink=$lt_variables_saved_for_relink
  11883. # Do we need the "lib" prefix for modules?
  11884. need_lib_prefix=$need_lib_prefix
  11885. # Do we need a version for libraries?
  11886. need_version=$need_version
  11887. # Library versioning type.
  11888. version_type=$version_type
  11889. # Shared library runtime path variable.
  11890. runpath_var=$runpath_var
  11891. # Shared library path variable.
  11892. shlibpath_var=$shlibpath_var
  11893. # Is shlibpath searched before the hard-coded library search path?
  11894. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11895. # Format of library name prefix.
  11896. libname_spec=$lt_libname_spec
  11897. # List of archive names. First name is the real one, the rest are links.
  11898. # The last name is the one that the linker finds with -lNAME
  11899. library_names_spec=$lt_library_names_spec
  11900. # The coded name of the library, if different from the real name.
  11901. soname_spec=$lt_soname_spec
  11902. # Permission mode override for installation of shared libraries.
  11903. install_override_mode=$lt_install_override_mode
  11904. # Command to use after installation of a shared archive.
  11905. postinstall_cmds=$lt_postinstall_cmds
  11906. # Command to use after uninstallation of a shared archive.
  11907. postuninstall_cmds=$lt_postuninstall_cmds
  11908. # Commands used to finish a libtool library installation in a directory.
  11909. finish_cmds=$lt_finish_cmds
  11910. # As "finish_cmds", except a single script fragment to be evaled but
  11911. # not shown.
  11912. finish_eval=$lt_finish_eval
  11913. # Whether we should hardcode library paths into libraries.
  11914. hardcode_into_libs=$hardcode_into_libs
  11915. # Compile-time system search path for libraries.
  11916. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11917. # Run-time system search path for libraries.
  11918. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11919. # Whether dlopen is supported.
  11920. dlopen_support=$enable_dlopen
  11921. # Whether dlopen of programs is supported.
  11922. dlopen_self=$enable_dlopen_self
  11923. # Whether dlopen of statically linked programs is supported.
  11924. dlopen_self_static=$enable_dlopen_self_static
  11925. # Commands to strip libraries.
  11926. old_striplib=$lt_old_striplib
  11927. striplib=$lt_striplib
  11928. # The linker used to build libraries.
  11929. LD=$lt_LD
  11930. # How to create reloadable object files.
  11931. reload_flag=$lt_reload_flag
  11932. reload_cmds=$lt_reload_cmds
  11933. # Commands used to build an old-style archive.
  11934. old_archive_cmds=$lt_old_archive_cmds
  11935. # A language specific compiler.
  11936. CC=$lt_compiler
  11937. # Is the compiler the GNU compiler?
  11938. with_gcc=$GCC
  11939. # Compiler flag to turn off builtin functions.
  11940. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11941. # Additional compiler flags for building library objects.
  11942. pic_flag=$lt_lt_prog_compiler_pic
  11943. # How to pass a linker flag through the compiler.
  11944. wl=$lt_lt_prog_compiler_wl
  11945. # Compiler flag to prevent dynamic linking.
  11946. link_static_flag=$lt_lt_prog_compiler_static
  11947. # Does compiler simultaneously support -c and -o options?
  11948. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11949. # Whether or not to add -lc for building shared libraries.
  11950. build_libtool_need_lc=$archive_cmds_need_lc
  11951. # Whether or not to disallow shared libs when runtime libs are static.
  11952. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11953. # Compiler flag to allow reflexive dlopens.
  11954. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11955. # Compiler flag to generate shared objects directly from archives.
  11956. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11957. # Whether the compiler copes with passing no objects directly.
  11958. compiler_needs_object=$lt_compiler_needs_object
  11959. # Create an old-style archive from a shared archive.
  11960. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11961. # Create a temporary old-style archive to link instead of a shared archive.
  11962. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11963. # Commands used to build a shared archive.
  11964. archive_cmds=$lt_archive_cmds
  11965. archive_expsym_cmds=$lt_archive_expsym_cmds
  11966. # Commands used to build a loadable module if different from building
  11967. # a shared archive.
  11968. module_cmds=$lt_module_cmds
  11969. module_expsym_cmds=$lt_module_expsym_cmds
  11970. # Whether we are building with GNU ld or not.
  11971. with_gnu_ld=$lt_with_gnu_ld
  11972. # Flag that allows shared libraries with undefined symbols to be built.
  11973. allow_undefined_flag=$lt_allow_undefined_flag
  11974. # Flag that enforces no undefined symbols.
  11975. no_undefined_flag=$lt_no_undefined_flag
  11976. # Flag to hardcode \$libdir into a binary during linking.
  11977. # This must work even if \$libdir does not exist
  11978. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11979. # Whether we need a single "-rpath" flag with a separated argument.
  11980. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11981. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11982. # DIR into the resulting binary.
  11983. hardcode_direct=$hardcode_direct
  11984. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11985. # DIR into the resulting binary and the resulting library dependency is
  11986. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11987. # library is relocated.
  11988. hardcode_direct_absolute=$hardcode_direct_absolute
  11989. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11990. # into the resulting binary.
  11991. hardcode_minus_L=$hardcode_minus_L
  11992. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11993. # into the resulting binary.
  11994. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11995. # Set to "yes" if building a shared library automatically hardcodes DIR
  11996. # into the library and all subsequent libraries and executables linked
  11997. # against it.
  11998. hardcode_automatic=$hardcode_automatic
  11999. # Set to yes if linker adds runtime paths of dependent libraries
  12000. # to runtime path list.
  12001. inherit_rpath=$inherit_rpath
  12002. # Whether libtool must link a program against all its dependency libraries.
  12003. link_all_deplibs=$link_all_deplibs
  12004. # Set to "yes" if exported symbols are required.
  12005. always_export_symbols=$always_export_symbols
  12006. # The commands to list exported symbols.
  12007. export_symbols_cmds=$lt_export_symbols_cmds
  12008. # Symbols that should not be listed in the preloaded symbols.
  12009. exclude_expsyms=$lt_exclude_expsyms
  12010. # Symbols that must always be exported.
  12011. include_expsyms=$lt_include_expsyms
  12012. # Commands necessary for linking programs (against libraries) with templates.
  12013. prelink_cmds=$lt_prelink_cmds
  12014. # Commands necessary for finishing linking programs.
  12015. postlink_cmds=$lt_postlink_cmds
  12016. # Specify filename containing input files.
  12017. file_list_spec=$lt_file_list_spec
  12018. # How to hardcode a shared library path into an executable.
  12019. hardcode_action=$hardcode_action
  12020. # ### END LIBTOOL CONFIG
  12021. _LT_EOF
  12022. case $host_os in
  12023. aix3*)
  12024. cat <<\_LT_EOF >> "$cfgfile"
  12025. # AIX sometimes has problems with the GCC collect2 program. For some
  12026. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12027. # vanish in a puff of smoke.
  12028. if test "X${COLLECT_NAMES+set}" != Xset; then
  12029. COLLECT_NAMES=
  12030. export COLLECT_NAMES
  12031. fi
  12032. _LT_EOF
  12033. ;;
  12034. esac
  12035. ltmain="$ac_aux_dir/ltmain.sh"
  12036. # We use sed instead of cat because bash on DJGPP gets confused if
  12037. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12038. # text mode, it properly converts lines to CR/LF. This bash problem
  12039. # is reportedly fixed, but why not run on old versions too?
  12040. sed '$q' "$ltmain" >> "$cfgfile" \
  12041. || (rm -f "$cfgfile"; exit 1)
  12042. if test x"$xsi_shell" = xyes; then
  12043. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  12044. func_dirname ()\
  12045. {\
  12046. \ case ${1} in\
  12047. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12048. \ * ) func_dirname_result="${3}" ;;\
  12049. \ esac\
  12050. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  12051. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12052. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12053. test 0 -eq $? || _lt_function_replace_fail=:
  12054. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  12055. func_basename ()\
  12056. {\
  12057. \ func_basename_result="${1##*/}"\
  12058. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12059. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12060. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12061. test 0 -eq $? || _lt_function_replace_fail=:
  12062. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12063. func_dirname_and_basename ()\
  12064. {\
  12065. \ case ${1} in\
  12066. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12067. \ * ) func_dirname_result="${3}" ;;\
  12068. \ esac\
  12069. \ func_basename_result="${1##*/}"\
  12070. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12071. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12072. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12073. test 0 -eq $? || _lt_function_replace_fail=:
  12074. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12075. func_stripname ()\
  12076. {\
  12077. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12078. \ # positional parameters, so assign one to ordinary parameter first.\
  12079. \ func_stripname_result=${3}\
  12080. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12081. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12082. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12083. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12084. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12085. test 0 -eq $? || _lt_function_replace_fail=:
  12086. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12087. func_split_long_opt ()\
  12088. {\
  12089. \ func_split_long_opt_name=${1%%=*}\
  12090. \ func_split_long_opt_arg=${1#*=}\
  12091. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12092. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12093. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12094. test 0 -eq $? || _lt_function_replace_fail=:
  12095. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12096. func_split_short_opt ()\
  12097. {\
  12098. \ func_split_short_opt_arg=${1#??}\
  12099. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12100. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12101. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12102. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12103. test 0 -eq $? || _lt_function_replace_fail=:
  12104. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12105. func_lo2o ()\
  12106. {\
  12107. \ case ${1} in\
  12108. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12109. \ *) func_lo2o_result=${1} ;;\
  12110. \ esac\
  12111. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12112. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12113. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12114. test 0 -eq $? || _lt_function_replace_fail=:
  12115. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12116. func_xform ()\
  12117. {\
  12118. func_xform_result=${1%.*}.lo\
  12119. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12120. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12121. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12122. test 0 -eq $? || _lt_function_replace_fail=:
  12123. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12124. func_arith ()\
  12125. {\
  12126. func_arith_result=$(( $* ))\
  12127. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12128. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12129. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12130. test 0 -eq $? || _lt_function_replace_fail=:
  12131. sed -e '/^func_len ()$/,/^} # func_len /c\
  12132. func_len ()\
  12133. {\
  12134. func_len_result=${#1}\
  12135. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12136. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12137. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12138. test 0 -eq $? || _lt_function_replace_fail=:
  12139. fi
  12140. if test x"$lt_shell_append" = xyes; then
  12141. sed -e '/^func_append ()$/,/^} # func_append /c\
  12142. func_append ()\
  12143. {\
  12144. eval "${1}+=\\${2}"\
  12145. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12146. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12147. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12148. test 0 -eq $? || _lt_function_replace_fail=:
  12149. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12150. func_append_quoted ()\
  12151. {\
  12152. \ func_quote_for_eval "${2}"\
  12153. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12154. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12155. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12156. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12157. test 0 -eq $? || _lt_function_replace_fail=:
  12158. # Save a `func_append' function call where possible by direct use of '+='
  12159. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12160. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12161. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12162. test 0 -eq $? || _lt_function_replace_fail=:
  12163. else
  12164. # Save a `func_append' function call even when '+=' is not available
  12165. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12166. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12167. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12168. test 0 -eq $? || _lt_function_replace_fail=:
  12169. fi
  12170. if test x"$_lt_function_replace_fail" = x":"; then
  12171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12172. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12173. fi
  12174. mv -f "$cfgfile" "$ofile" ||
  12175. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12176. chmod +x "$ofile"
  12177. ;;
  12178. esac
  12179. done # for ac_tag
  12180. as_fn_exit 0
  12181. _ACEOF
  12182. ac_clean_files=$ac_clean_files_save
  12183. test $ac_write_fail = 0 ||
  12184. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12185. # configure is writing to config.log, and then calls config.status.
  12186. # config.status does its own redirection, appending to config.log.
  12187. # Unfortunately, on DOS this fails, as config.log is still kept open
  12188. # by configure, so config.status won't be able to write to it; its
  12189. # output is simply discarded. So we exec the FD to /dev/null,
  12190. # effectively closing config.log, so it can be properly (re)opened and
  12191. # appended to by config.status. When coming back to configure, we
  12192. # need to make the FD available again.
  12193. if test "$no_create" != yes; then
  12194. ac_cs_success=:
  12195. ac_config_status_args=
  12196. test "$silent" = yes &&
  12197. ac_config_status_args="$ac_config_status_args --quiet"
  12198. exec 5>/dev/null
  12199. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12200. exec 5>>config.log
  12201. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12202. # would make configure fail if this is the last instruction.
  12203. $ac_cs_success || as_fn_exit 1
  12204. fi
  12205. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12207. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12208. fi