configure 451 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for klish 1.6.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  259. $0: gmail dot com about your system, including any error
  260. $0: possibly output before this message. Then install a
  261. $0: modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='klish'
  542. PACKAGE_TARNAME='klish'
  543. PACKAGE_VERSION='1.6.0'
  544. PACKAGE_STRING='klish 1.6.0'
  545. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. TINYRL_CFLAGS
  587. TINYRL_LIBS
  588. KONF_CFLAGS
  589. KONF_LIBS
  590. LUB_CFLAGS
  591. LUB_LIBS
  592. XML_CFLAGS
  593. XML_LDFLAGS
  594. XML_LIBS
  595. DEBUG_FALSE
  596. DEBUG_TRUE
  597. am__fastdepCC_FALSE
  598. am__fastdepCC_TRUE
  599. CCDEPMODE
  600. am__nodep
  601. AMDEPBACKSLASH
  602. AMDEP_FALSE
  603. AMDEP_TRUE
  604. am__quote
  605. am__include
  606. DEPDIR
  607. am__untar
  608. am__tar
  609. AMTAR
  610. am__leading_dot
  611. SET_MAKE
  612. mkdir_p
  613. MKDIR_P
  614. INSTALL_STRIP_PROGRAM
  615. install_sh
  616. MAKEINFO
  617. AUTOHEADER
  618. AUTOMAKE
  619. AUTOCONF
  620. ACLOCAL
  621. VERSION
  622. PACKAGE
  623. CYGPATH_W
  624. am__isrc
  625. INSTALL_DATA
  626. INSTALL_SCRIPT
  627. INSTALL_PROGRAM
  628. OTOOL64
  629. OTOOL
  630. LIPO
  631. NMEDIT
  632. DSYMUTIL
  633. MANIFEST_TOOL
  634. AWK
  635. RANLIB
  636. STRIP
  637. ac_ct_AR
  638. AR
  639. LN_S
  640. NM
  641. ac_ct_DUMPBIN
  642. DUMPBIN
  643. LD
  644. FGREP
  645. SED
  646. LIBTOOL
  647. OBJDUMP
  648. DLLTOOL
  649. AS
  650. host_os
  651. host_vendor
  652. host_cpu
  653. host
  654. build_os
  655. build_vendor
  656. build_cpu
  657. build
  658. EGREP
  659. GREP
  660. CPP
  661. OBJEXT
  662. EXEEXT
  663. ac_ct_CC
  664. CPPFLAGS
  665. LDFLAGS
  666. CFLAGS
  667. CC
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_shared
  710. enable_static
  711. with_pic
  712. enable_fast_install
  713. with_gnu_ld
  714. with_sysroot
  715. enable_libtool_lock
  716. enable_dependency_tracking
  717. enable_debug
  718. with_roxml
  719. with_libxml2
  720. '
  721. ac_precious_vars='build_alias
  722. host_alias
  723. target_alias
  724. CC
  725. CFLAGS
  726. LDFLAGS
  727. LIBS
  728. CPPFLAGS
  729. CPP'
  730. # Initialize some variables set by options.
  731. ac_init_help=
  732. ac_init_version=false
  733. ac_unrecognized_opts=
  734. ac_unrecognized_sep=
  735. # The variables have the same names as the options, with
  736. # dashes changed to underlines.
  737. cache_file=/dev/null
  738. exec_prefix=NONE
  739. no_create=
  740. no_recursion=
  741. prefix=NONE
  742. program_prefix=NONE
  743. program_suffix=NONE
  744. program_transform_name=s,x,x,
  745. silent=
  746. site=
  747. srcdir=
  748. verbose=
  749. x_includes=NONE
  750. x_libraries=NONE
  751. # Installation directory options.
  752. # These are left unexpanded so users can "make install exec_prefix=/foo"
  753. # and all the variables that are supposed to be based on exec_prefix
  754. # by default will actually change.
  755. # Use braces instead of parens because sh, perl, etc. also accept them.
  756. # (The list follows the same order as the GNU Coding Standards.)
  757. bindir='${exec_prefix}/bin'
  758. sbindir='${exec_prefix}/sbin'
  759. libexecdir='${exec_prefix}/libexec'
  760. datarootdir='${prefix}/share'
  761. datadir='${datarootdir}'
  762. sysconfdir='${prefix}/etc'
  763. sharedstatedir='${prefix}/com'
  764. localstatedir='${prefix}/var'
  765. includedir='${prefix}/include'
  766. oldincludedir='/usr/include'
  767. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  768. infodir='${datarootdir}/info'
  769. htmldir='${docdir}'
  770. dvidir='${docdir}'
  771. pdfdir='${docdir}'
  772. psdir='${docdir}'
  773. libdir='${exec_prefix}/lib'
  774. localedir='${datarootdir}/locale'
  775. mandir='${datarootdir}/man'
  776. ac_prev=
  777. ac_dashdash=
  778. for ac_option
  779. do
  780. # If the previous option needs an argument, assign it.
  781. if test -n "$ac_prev"; then
  782. eval $ac_prev=\$ac_option
  783. ac_prev=
  784. continue
  785. fi
  786. case $ac_option in
  787. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  788. *=) ac_optarg= ;;
  789. *) ac_optarg=yes ;;
  790. esac
  791. # Accept the important Cygnus configure options, so we can diagnose typos.
  792. case $ac_dashdash$ac_option in
  793. --)
  794. ac_dashdash=yes ;;
  795. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  796. ac_prev=bindir ;;
  797. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  798. bindir=$ac_optarg ;;
  799. -build | --build | --buil | --bui | --bu)
  800. ac_prev=build_alias ;;
  801. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  802. build_alias=$ac_optarg ;;
  803. -cache-file | --cache-file | --cache-fil | --cache-fi \
  804. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  805. ac_prev=cache_file ;;
  806. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  807. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  808. cache_file=$ac_optarg ;;
  809. --config-cache | -C)
  810. cache_file=config.cache ;;
  811. -datadir | --datadir | --datadi | --datad)
  812. ac_prev=datadir ;;
  813. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  814. datadir=$ac_optarg ;;
  815. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  816. | --dataroo | --dataro | --datar)
  817. ac_prev=datarootdir ;;
  818. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  819. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  820. datarootdir=$ac_optarg ;;
  821. -disable-* | --disable-*)
  822. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  823. # Reject names that are not valid shell variable names.
  824. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  825. as_fn_error $? "invalid feature name: $ac_useropt"
  826. ac_useropt_orig=$ac_useropt
  827. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  828. case $ac_user_opts in
  829. *"
  830. "enable_$ac_useropt"
  831. "*) ;;
  832. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  833. ac_unrecognized_sep=', ';;
  834. esac
  835. eval enable_$ac_useropt=no ;;
  836. -docdir | --docdir | --docdi | --doc | --do)
  837. ac_prev=docdir ;;
  838. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  839. docdir=$ac_optarg ;;
  840. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  841. ac_prev=dvidir ;;
  842. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  843. dvidir=$ac_optarg ;;
  844. -enable-* | --enable-*)
  845. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  846. # Reject names that are not valid shell variable names.
  847. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  848. as_fn_error $? "invalid feature name: $ac_useropt"
  849. ac_useropt_orig=$ac_useropt
  850. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  851. case $ac_user_opts in
  852. *"
  853. "enable_$ac_useropt"
  854. "*) ;;
  855. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  856. ac_unrecognized_sep=', ';;
  857. esac
  858. eval enable_$ac_useropt=\$ac_optarg ;;
  859. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  860. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  861. | --exec | --exe | --ex)
  862. ac_prev=exec_prefix ;;
  863. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  864. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  865. | --exec=* | --exe=* | --ex=*)
  866. exec_prefix=$ac_optarg ;;
  867. -gas | --gas | --ga | --g)
  868. # Obsolete; use --with-gas.
  869. with_gas=yes ;;
  870. -help | --help | --hel | --he | -h)
  871. ac_init_help=long ;;
  872. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  873. ac_init_help=recursive ;;
  874. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  875. ac_init_help=short ;;
  876. -host | --host | --hos | --ho)
  877. ac_prev=host_alias ;;
  878. -host=* | --host=* | --hos=* | --ho=*)
  879. host_alias=$ac_optarg ;;
  880. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  881. ac_prev=htmldir ;;
  882. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  883. | --ht=*)
  884. htmldir=$ac_optarg ;;
  885. -includedir | --includedir | --includedi | --included | --include \
  886. | --includ | --inclu | --incl | --inc)
  887. ac_prev=includedir ;;
  888. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  889. | --includ=* | --inclu=* | --incl=* | --inc=*)
  890. includedir=$ac_optarg ;;
  891. -infodir | --infodir | --infodi | --infod | --info | --inf)
  892. ac_prev=infodir ;;
  893. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  894. infodir=$ac_optarg ;;
  895. -libdir | --libdir | --libdi | --libd)
  896. ac_prev=libdir ;;
  897. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  898. libdir=$ac_optarg ;;
  899. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  900. | --libexe | --libex | --libe)
  901. ac_prev=libexecdir ;;
  902. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  903. | --libexe=* | --libex=* | --libe=*)
  904. libexecdir=$ac_optarg ;;
  905. -localedir | --localedir | --localedi | --localed | --locale)
  906. ac_prev=localedir ;;
  907. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  908. localedir=$ac_optarg ;;
  909. -localstatedir | --localstatedir | --localstatedi | --localstated \
  910. | --localstate | --localstat | --localsta | --localst | --locals)
  911. ac_prev=localstatedir ;;
  912. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  913. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  914. localstatedir=$ac_optarg ;;
  915. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  916. ac_prev=mandir ;;
  917. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  918. mandir=$ac_optarg ;;
  919. -nfp | --nfp | --nf)
  920. # Obsolete; use --without-fp.
  921. with_fp=no ;;
  922. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  923. | --no-cr | --no-c | -n)
  924. no_create=yes ;;
  925. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  926. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  927. no_recursion=yes ;;
  928. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  929. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  930. | --oldin | --oldi | --old | --ol | --o)
  931. ac_prev=oldincludedir ;;
  932. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  933. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  934. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  935. oldincludedir=$ac_optarg ;;
  936. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  937. ac_prev=prefix ;;
  938. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  939. prefix=$ac_optarg ;;
  940. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  941. | --program-pre | --program-pr | --program-p)
  942. ac_prev=program_prefix ;;
  943. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  944. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  945. program_prefix=$ac_optarg ;;
  946. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  947. | --program-suf | --program-su | --program-s)
  948. ac_prev=program_suffix ;;
  949. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  950. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  951. program_suffix=$ac_optarg ;;
  952. -program-transform-name | --program-transform-name \
  953. | --program-transform-nam | --program-transform-na \
  954. | --program-transform-n | --program-transform- \
  955. | --program-transform | --program-transfor \
  956. | --program-transfo | --program-transf \
  957. | --program-trans | --program-tran \
  958. | --progr-tra | --program-tr | --program-t)
  959. ac_prev=program_transform_name ;;
  960. -program-transform-name=* | --program-transform-name=* \
  961. | --program-transform-nam=* | --program-transform-na=* \
  962. | --program-transform-n=* | --program-transform-=* \
  963. | --program-transform=* | --program-transfor=* \
  964. | --program-transfo=* | --program-transf=* \
  965. | --program-trans=* | --program-tran=* \
  966. | --progr-tra=* | --program-tr=* | --program-t=*)
  967. program_transform_name=$ac_optarg ;;
  968. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  969. ac_prev=pdfdir ;;
  970. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  971. pdfdir=$ac_optarg ;;
  972. -psdir | --psdir | --psdi | --psd | --ps)
  973. ac_prev=psdir ;;
  974. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  975. psdir=$ac_optarg ;;
  976. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  977. | -silent | --silent | --silen | --sile | --sil)
  978. silent=yes ;;
  979. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  980. ac_prev=sbindir ;;
  981. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  982. | --sbi=* | --sb=*)
  983. sbindir=$ac_optarg ;;
  984. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  985. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  986. | --sharedst | --shareds | --shared | --share | --shar \
  987. | --sha | --sh)
  988. ac_prev=sharedstatedir ;;
  989. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  990. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  991. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  992. | --sha=* | --sh=*)
  993. sharedstatedir=$ac_optarg ;;
  994. -site | --site | --sit)
  995. ac_prev=site ;;
  996. -site=* | --site=* | --sit=*)
  997. site=$ac_optarg ;;
  998. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  999. ac_prev=srcdir ;;
  1000. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1001. srcdir=$ac_optarg ;;
  1002. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1003. | --syscon | --sysco | --sysc | --sys | --sy)
  1004. ac_prev=sysconfdir ;;
  1005. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1006. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1007. sysconfdir=$ac_optarg ;;
  1008. -target | --target | --targe | --targ | --tar | --ta | --t)
  1009. ac_prev=target_alias ;;
  1010. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1011. target_alias=$ac_optarg ;;
  1012. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1013. verbose=yes ;;
  1014. -version | --version | --versio | --versi | --vers | -V)
  1015. ac_init_version=: ;;
  1016. -with-* | --with-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. as_fn_error $? "invalid package name: $ac_useropt"
  1021. ac_useropt_orig=$ac_useropt
  1022. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1023. case $ac_user_opts in
  1024. *"
  1025. "with_$ac_useropt"
  1026. "*) ;;
  1027. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1028. ac_unrecognized_sep=', ';;
  1029. esac
  1030. eval with_$ac_useropt=\$ac_optarg ;;
  1031. -without-* | --without-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=no ;;
  1046. --x)
  1047. # Obsolete; use --with-x.
  1048. with_x=yes ;;
  1049. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1050. | --x-incl | --x-inc | --x-in | --x-i)
  1051. ac_prev=x_includes ;;
  1052. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1053. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1054. x_includes=$ac_optarg ;;
  1055. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1056. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1057. ac_prev=x_libraries ;;
  1058. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1059. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1060. x_libraries=$ac_optarg ;;
  1061. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1062. Try \`$0 --help' for more information"
  1063. ;;
  1064. *=*)
  1065. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1066. # Reject names that are not valid shell variable names.
  1067. case $ac_envvar in #(
  1068. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1069. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1070. esac
  1071. eval $ac_envvar=\$ac_optarg
  1072. export $ac_envvar ;;
  1073. *)
  1074. # FIXME: should be removed in autoconf 3.0.
  1075. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1076. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1077. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1078. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1079. ;;
  1080. esac
  1081. done
  1082. if test -n "$ac_prev"; then
  1083. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1084. as_fn_error $? "missing argument to $ac_option"
  1085. fi
  1086. if test -n "$ac_unrecognized_opts"; then
  1087. case $enable_option_checking in
  1088. no) ;;
  1089. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1090. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1091. esac
  1092. fi
  1093. # Check all directory arguments for consistency.
  1094. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1095. datadir sysconfdir sharedstatedir localstatedir includedir \
  1096. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1097. libdir localedir mandir
  1098. do
  1099. eval ac_val=\$$ac_var
  1100. # Remove trailing slashes.
  1101. case $ac_val in
  1102. */ )
  1103. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1104. eval $ac_var=\$ac_val;;
  1105. esac
  1106. # Be sure to have absolute directory names.
  1107. case $ac_val in
  1108. [\\/$]* | ?:[\\/]* ) continue;;
  1109. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1110. esac
  1111. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1112. done
  1113. # There might be people who depend on the old broken behavior: `$host'
  1114. # used to hold the argument of --host etc.
  1115. # FIXME: To remove some day.
  1116. build=$build_alias
  1117. host=$host_alias
  1118. target=$target_alias
  1119. # FIXME: To remove some day.
  1120. if test "x$host_alias" != x; then
  1121. if test "x$build_alias" = x; then
  1122. cross_compiling=maybe
  1123. elif test "x$build_alias" != "x$host_alias"; then
  1124. cross_compiling=yes
  1125. fi
  1126. fi
  1127. ac_tool_prefix=
  1128. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1129. test "$silent" = yes && exec 6>/dev/null
  1130. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1131. ac_ls_di=`ls -di .` &&
  1132. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1133. as_fn_error $? "working directory cannot be determined"
  1134. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1135. as_fn_error $? "pwd does not report name of working directory"
  1136. # Find the source files, if location was not specified.
  1137. if test -z "$srcdir"; then
  1138. ac_srcdir_defaulted=yes
  1139. # Try the directory containing this script, then the parent directory.
  1140. ac_confdir=`$as_dirname -- "$as_myself" ||
  1141. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1142. X"$as_myself" : 'X\(//\)[^/]' \| \
  1143. X"$as_myself" : 'X\(//\)$' \| \
  1144. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1145. $as_echo X"$as_myself" |
  1146. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\/\)[^/].*/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\/\)$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\).*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. s/.*/./; q'`
  1163. srcdir=$ac_confdir
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. srcdir=..
  1166. fi
  1167. else
  1168. ac_srcdir_defaulted=no
  1169. fi
  1170. if test ! -r "$srcdir/$ac_unique_file"; then
  1171. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1172. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1173. fi
  1174. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1175. ac_abs_confdir=`(
  1176. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1177. pwd)`
  1178. # When building in place, set srcdir=.
  1179. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1180. srcdir=.
  1181. fi
  1182. # Remove unnecessary trailing slashes from srcdir.
  1183. # Double slashes in file names in object file debugging info
  1184. # mess up M-x gdb in Emacs.
  1185. case $srcdir in
  1186. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1187. esac
  1188. for ac_var in $ac_precious_vars; do
  1189. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1190. eval ac_env_${ac_var}_value=\$${ac_var}
  1191. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1192. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1193. done
  1194. #
  1195. # Report the --help message.
  1196. #
  1197. if test "$ac_init_help" = "long"; then
  1198. # Omit some internal or obsolete options to make the list less imposing.
  1199. # This message is too long to be a string in the A/UX 3.1 sh.
  1200. cat <<_ACEOF
  1201. \`configure' configures klish 1.6.0 to adapt to many kinds of systems.
  1202. Usage: $0 [OPTION]... [VAR=VALUE]...
  1203. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1204. VAR=VALUE. See below for descriptions of some of the useful variables.
  1205. Defaults for the options are specified in brackets.
  1206. Configuration:
  1207. -h, --help display this help and exit
  1208. --help=short display options specific to this package
  1209. --help=recursive display the short help of all the included packages
  1210. -V, --version display version information and exit
  1211. -q, --quiet, --silent do not print \`checking ...' messages
  1212. --cache-file=FILE cache test results in FILE [disabled]
  1213. -C, --config-cache alias for \`--cache-file=config.cache'
  1214. -n, --no-create do not create output files
  1215. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1216. Installation directories:
  1217. --prefix=PREFIX install architecture-independent files in PREFIX
  1218. [$ac_default_prefix]
  1219. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1220. [PREFIX]
  1221. By default, \`make install' will install all the files in
  1222. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1223. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1224. for instance \`--prefix=\$HOME'.
  1225. For better control, use the options below.
  1226. Fine tuning of the installation directories:
  1227. --bindir=DIR user executables [EPREFIX/bin]
  1228. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1229. --libexecdir=DIR program executables [EPREFIX/libexec]
  1230. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1231. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1232. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1233. --libdir=DIR object code libraries [EPREFIX/lib]
  1234. --includedir=DIR C header files [PREFIX/include]
  1235. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1236. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1237. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1238. --infodir=DIR info documentation [DATAROOTDIR/info]
  1239. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1240. --mandir=DIR man documentation [DATAROOTDIR/man]
  1241. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1242. --htmldir=DIR html documentation [DOCDIR]
  1243. --dvidir=DIR dvi documentation [DOCDIR]
  1244. --pdfdir=DIR pdf documentation [DOCDIR]
  1245. --psdir=DIR ps documentation [DOCDIR]
  1246. _ACEOF
  1247. cat <<\_ACEOF
  1248. Program names:
  1249. --program-prefix=PREFIX prepend PREFIX to installed program names
  1250. --program-suffix=SUFFIX append SUFFIX to installed program names
  1251. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1252. System types:
  1253. --build=BUILD configure for building on BUILD [guessed]
  1254. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1255. _ACEOF
  1256. fi
  1257. if test -n "$ac_init_help"; then
  1258. case $ac_init_help in
  1259. short | recursive ) echo "Configuration of klish 1.6.0:";;
  1260. esac
  1261. cat <<\_ACEOF
  1262. Optional Features:
  1263. --disable-option-checking ignore unrecognized --enable/--with options
  1264. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1265. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1266. --enable-shared[=PKGS] build shared libraries [default=yes]
  1267. --enable-static[=PKGS] build static libraries [default=yes]
  1268. --enable-fast-install[=PKGS]
  1269. optimize for fast installation [default=yes]
  1270. --disable-libtool-lock avoid locking (might break parallel builds)
  1271. --enable-dependency-tracking
  1272. do not reject slow dependency extractors
  1273. --disable-dependency-tracking
  1274. speeds up one-time build
  1275. --enable-debug Turn on debugging including asserts [default=no]
  1276. Optional Packages:
  1277. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1278. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1279. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1280. both]
  1281. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1282. --with-sysroot=DIR Search for dependent libraries within DIR
  1283. (or the compiler's sysroot if not specified).
  1284. --with-roxml=DIR Use roxml as the XML parser implementation
  1285. [default=no]
  1286. --with-libxml2=DIR Use libxml2 as the XML parser implementation
  1287. [default=yes]
  1288. Some influential environment variables:
  1289. CC C compiler command
  1290. CFLAGS C compiler flags
  1291. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1292. nonstandard directory <lib dir>
  1293. LIBS libraries to pass to the linker, e.g. -l<library>
  1294. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1295. you have headers in a nonstandard directory <include dir>
  1296. CPP C preprocessor
  1297. Use these variables to override the choices made by `configure' or to help
  1298. it to find libraries and programs with nonstandard names/locations.
  1299. Report bugs to <serj.kalichev at gmail dot com>.
  1300. _ACEOF
  1301. ac_status=$?
  1302. fi
  1303. if test "$ac_init_help" = "recursive"; then
  1304. # If there are subdirs, report their specific --help.
  1305. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1306. test -d "$ac_dir" ||
  1307. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1308. continue
  1309. ac_builddir=.
  1310. case "$ac_dir" in
  1311. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1312. *)
  1313. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1314. # A ".." for each directory in $ac_dir_suffix.
  1315. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1316. case $ac_top_builddir_sub in
  1317. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1318. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1319. esac ;;
  1320. esac
  1321. ac_abs_top_builddir=$ac_pwd
  1322. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1323. # for backward compatibility:
  1324. ac_top_builddir=$ac_top_build_prefix
  1325. case $srcdir in
  1326. .) # We are building in place.
  1327. ac_srcdir=.
  1328. ac_top_srcdir=$ac_top_builddir_sub
  1329. ac_abs_top_srcdir=$ac_pwd ;;
  1330. [\\/]* | ?:[\\/]* ) # Absolute name.
  1331. ac_srcdir=$srcdir$ac_dir_suffix;
  1332. ac_top_srcdir=$srcdir
  1333. ac_abs_top_srcdir=$srcdir ;;
  1334. *) # Relative name.
  1335. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1336. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1337. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1338. esac
  1339. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1340. cd "$ac_dir" || { ac_status=$?; continue; }
  1341. # Check for guested configure.
  1342. if test -f "$ac_srcdir/configure.gnu"; then
  1343. echo &&
  1344. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1345. elif test -f "$ac_srcdir/configure"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure" --help=recursive
  1348. else
  1349. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1350. fi || ac_status=$?
  1351. cd "$ac_pwd" || { ac_status=$?; break; }
  1352. done
  1353. fi
  1354. test -n "$ac_init_help" && exit $ac_status
  1355. if $ac_init_version; then
  1356. cat <<\_ACEOF
  1357. klish configure 1.6.0
  1358. generated by GNU Autoconf 2.69
  1359. Copyright (C) 2012 Free Software Foundation, Inc.
  1360. This configure script is free software; the Free Software Foundation
  1361. gives unlimited permission to copy, distribute and modify it.
  1362. _ACEOF
  1363. exit
  1364. fi
  1365. ## ------------------------ ##
  1366. ## Autoconf initialization. ##
  1367. ## ------------------------ ##
  1368. # ac_fn_c_try_compile LINENO
  1369. # --------------------------
  1370. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1371. ac_fn_c_try_compile ()
  1372. {
  1373. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1374. rm -f conftest.$ac_objext
  1375. if { { ac_try="$ac_compile"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_compile") 2>conftest.err
  1383. ac_status=$?
  1384. if test -s conftest.err; then
  1385. grep -v '^ *+' conftest.err >conftest.er1
  1386. cat conftest.er1 >&5
  1387. mv -f conftest.er1 conftest.err
  1388. fi
  1389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1390. test $ac_status = 0; } && {
  1391. test -z "$ac_c_werror_flag" ||
  1392. test ! -s conftest.err
  1393. } && test -s conftest.$ac_objext; then :
  1394. ac_retval=0
  1395. else
  1396. $as_echo "$as_me: failed program was:" >&5
  1397. sed 's/^/| /' conftest.$ac_ext >&5
  1398. ac_retval=1
  1399. fi
  1400. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1401. as_fn_set_status $ac_retval
  1402. } # ac_fn_c_try_compile
  1403. # ac_fn_c_try_cpp LINENO
  1404. # ----------------------
  1405. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1406. ac_fn_c_try_cpp ()
  1407. {
  1408. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1409. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1410. case "(($ac_try" in
  1411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1412. *) ac_try_echo=$ac_try;;
  1413. esac
  1414. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1415. $as_echo "$ac_try_echo"; } >&5
  1416. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1417. ac_status=$?
  1418. if test -s conftest.err; then
  1419. grep -v '^ *+' conftest.err >conftest.er1
  1420. cat conftest.er1 >&5
  1421. mv -f conftest.er1 conftest.err
  1422. fi
  1423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1424. test $ac_status = 0; } > conftest.i && {
  1425. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1426. test ! -s conftest.err
  1427. }; then :
  1428. ac_retval=0
  1429. else
  1430. $as_echo "$as_me: failed program was:" >&5
  1431. sed 's/^/| /' conftest.$ac_ext >&5
  1432. ac_retval=1
  1433. fi
  1434. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1435. as_fn_set_status $ac_retval
  1436. } # ac_fn_c_try_cpp
  1437. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1438. # -------------------------------------------------------
  1439. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1440. # the include files in INCLUDES and setting the cache variable VAR
  1441. # accordingly.
  1442. ac_fn_c_check_header_mongrel ()
  1443. {
  1444. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1445. if eval \${$3+:} false; then :
  1446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1447. $as_echo_n "checking for $2... " >&6; }
  1448. if eval \${$3+:} false; then :
  1449. $as_echo_n "(cached) " >&6
  1450. fi
  1451. eval ac_res=\$$3
  1452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1453. $as_echo "$ac_res" >&6; }
  1454. else
  1455. # Is the header compilable?
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1457. $as_echo_n "checking $2 usability... " >&6; }
  1458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1459. /* end confdefs.h. */
  1460. $4
  1461. #include <$2>
  1462. _ACEOF
  1463. if ac_fn_c_try_compile "$LINENO"; then :
  1464. ac_header_compiler=yes
  1465. else
  1466. ac_header_compiler=no
  1467. fi
  1468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1470. $as_echo "$ac_header_compiler" >&6; }
  1471. # Is the header present?
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1473. $as_echo_n "checking $2 presence... " >&6; }
  1474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1475. /* end confdefs.h. */
  1476. #include <$2>
  1477. _ACEOF
  1478. if ac_fn_c_try_cpp "$LINENO"; then :
  1479. ac_header_preproc=yes
  1480. else
  1481. ac_header_preproc=no
  1482. fi
  1483. rm -f conftest.err conftest.i conftest.$ac_ext
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1485. $as_echo "$ac_header_preproc" >&6; }
  1486. # So? What about this header?
  1487. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1488. yes:no: )
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1490. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1492. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1493. ;;
  1494. no:yes:* )
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1496. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1498. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1500. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1502. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1504. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1505. ( $as_echo "## --------------------------------------------- ##
  1506. ## Report this to serj.kalichev at gmail dot com ##
  1507. ## --------------------------------------------- ##"
  1508. ) | sed "s/^/$as_me: WARNING: /" >&2
  1509. ;;
  1510. esac
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1512. $as_echo_n "checking for $2... " >&6; }
  1513. if eval \${$3+:} false; then :
  1514. $as_echo_n "(cached) " >&6
  1515. else
  1516. eval "$3=\$ac_header_compiler"
  1517. fi
  1518. eval ac_res=\$$3
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1520. $as_echo "$ac_res" >&6; }
  1521. fi
  1522. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1523. } # ac_fn_c_check_header_mongrel
  1524. # ac_fn_c_try_run LINENO
  1525. # ----------------------
  1526. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1527. # that executables *can* be run.
  1528. ac_fn_c_try_run ()
  1529. {
  1530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1531. if { { ac_try="$ac_link"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. $as_echo "$ac_try_echo"; } >&5
  1538. (eval "$ac_link") 2>&5
  1539. ac_status=$?
  1540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1541. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1542. { { case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_try") 2>&5
  1549. ac_status=$?
  1550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1551. test $ac_status = 0; }; }; then :
  1552. ac_retval=0
  1553. else
  1554. $as_echo "$as_me: program exited with status $ac_status" >&5
  1555. $as_echo "$as_me: failed program was:" >&5
  1556. sed 's/^/| /' conftest.$ac_ext >&5
  1557. ac_retval=$ac_status
  1558. fi
  1559. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. as_fn_set_status $ac_retval
  1562. } # ac_fn_c_try_run
  1563. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1564. # -------------------------------------------------------
  1565. # Tests whether HEADER exists and can be compiled using the include files in
  1566. # INCLUDES, setting the cache variable VAR accordingly.
  1567. ac_fn_c_check_header_compile ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1571. $as_echo_n "checking for $2... " >&6; }
  1572. if eval \${$3+:} false; then :
  1573. $as_echo_n "(cached) " >&6
  1574. else
  1575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end confdefs.h. */
  1577. $4
  1578. #include <$2>
  1579. _ACEOF
  1580. if ac_fn_c_try_compile "$LINENO"; then :
  1581. eval "$3=yes"
  1582. else
  1583. eval "$3=no"
  1584. fi
  1585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1586. fi
  1587. eval ac_res=\$$3
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1589. $as_echo "$ac_res" >&6; }
  1590. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1591. } # ac_fn_c_check_header_compile
  1592. # ac_fn_c_try_link LINENO
  1593. # -----------------------
  1594. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1595. ac_fn_c_try_link ()
  1596. {
  1597. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1598. rm -f conftest.$ac_objext conftest$ac_exeext
  1599. if { { ac_try="$ac_link"
  1600. case "(($ac_try" in
  1601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1602. *) ac_try_echo=$ac_try;;
  1603. esac
  1604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1605. $as_echo "$ac_try_echo"; } >&5
  1606. (eval "$ac_link") 2>conftest.err
  1607. ac_status=$?
  1608. if test -s conftest.err; then
  1609. grep -v '^ *+' conftest.err >conftest.er1
  1610. cat conftest.er1 >&5
  1611. mv -f conftest.er1 conftest.err
  1612. fi
  1613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1614. test $ac_status = 0; } && {
  1615. test -z "$ac_c_werror_flag" ||
  1616. test ! -s conftest.err
  1617. } && test -s conftest$ac_exeext && {
  1618. test "$cross_compiling" = yes ||
  1619. test -x conftest$ac_exeext
  1620. }; then :
  1621. ac_retval=0
  1622. else
  1623. $as_echo "$as_me: failed program was:" >&5
  1624. sed 's/^/| /' conftest.$ac_ext >&5
  1625. ac_retval=1
  1626. fi
  1627. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1628. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1629. # interfere with the next link command; also delete a directory that is
  1630. # left behind by Apple's compiler. We do this before executing the actions.
  1631. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1632. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1633. as_fn_set_status $ac_retval
  1634. } # ac_fn_c_try_link
  1635. # ac_fn_c_check_func LINENO FUNC VAR
  1636. # ----------------------------------
  1637. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1638. ac_fn_c_check_func ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1642. $as_echo_n "checking for $2... " >&6; }
  1643. if eval \${$3+:} false; then :
  1644. $as_echo_n "(cached) " >&6
  1645. else
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1649. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1650. #define $2 innocuous_$2
  1651. /* System header to define __stub macros and hopefully few prototypes,
  1652. which can conflict with char $2 (); below.
  1653. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1654. <limits.h> exists even on freestanding compilers. */
  1655. #ifdef __STDC__
  1656. # include <limits.h>
  1657. #else
  1658. # include <assert.h>
  1659. #endif
  1660. #undef $2
  1661. /* Override any GCC internal prototype to avoid an error.
  1662. Use char because int might match the return type of a GCC
  1663. builtin and then its argument prototype would still apply. */
  1664. #ifdef __cplusplus
  1665. extern "C"
  1666. #endif
  1667. char $2 ();
  1668. /* The GNU C library defines this for functions which it implements
  1669. to always fail with ENOSYS. Some functions are actually named
  1670. something starting with __ and the normal name is an alias. */
  1671. #if defined __stub_$2 || defined __stub___$2
  1672. choke me
  1673. #endif
  1674. int
  1675. main ()
  1676. {
  1677. return $2 ();
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. if ac_fn_c_try_link "$LINENO"; then :
  1683. eval "$3=yes"
  1684. else
  1685. eval "$3=no"
  1686. fi
  1687. rm -f core conftest.err conftest.$ac_objext \
  1688. conftest$ac_exeext conftest.$ac_ext
  1689. fi
  1690. eval ac_res=\$$3
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1692. $as_echo "$ac_res" >&6; }
  1693. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1694. } # ac_fn_c_check_func
  1695. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1696. # --------------------------------------------
  1697. # Tries to find the compile-time value of EXPR in a program that includes
  1698. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1699. # computed
  1700. ac_fn_c_compute_int ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if test "$cross_compiling" = yes; then
  1704. # Depending upon the size, compute the lo and hi bounds.
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $4
  1708. int
  1709. main ()
  1710. {
  1711. static int test_array [1 - 2 * !(($2) >= 0)];
  1712. test_array [0] = 0;
  1713. return test_array [0];
  1714. ;
  1715. return 0;
  1716. }
  1717. _ACEOF
  1718. if ac_fn_c_try_compile "$LINENO"; then :
  1719. ac_lo=0 ac_mid=0
  1720. while :; do
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. $4
  1724. int
  1725. main ()
  1726. {
  1727. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1728. test_array [0] = 0;
  1729. return test_array [0];
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_c_try_compile "$LINENO"; then :
  1735. ac_hi=$ac_mid; break
  1736. else
  1737. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1738. if test $ac_lo -le $ac_mid; then
  1739. ac_lo= ac_hi=
  1740. break
  1741. fi
  1742. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1743. fi
  1744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1745. done
  1746. else
  1747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end confdefs.h. */
  1749. $4
  1750. int
  1751. main ()
  1752. {
  1753. static int test_array [1 - 2 * !(($2) < 0)];
  1754. test_array [0] = 0;
  1755. return test_array [0];
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. ac_hi=-1 ac_mid=-1
  1762. while :; do
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. $4
  1766. int
  1767. main ()
  1768. {
  1769. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1770. test_array [0] = 0;
  1771. return test_array [0];
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. if ac_fn_c_try_compile "$LINENO"; then :
  1777. ac_lo=$ac_mid; break
  1778. else
  1779. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1780. if test $ac_mid -le $ac_hi; then
  1781. ac_lo= ac_hi=
  1782. break
  1783. fi
  1784. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1785. fi
  1786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1787. done
  1788. else
  1789. ac_lo= ac_hi=
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1792. fi
  1793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1794. # Binary search between lo and hi bounds.
  1795. while test "x$ac_lo" != "x$ac_hi"; do
  1796. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1798. /* end confdefs.h. */
  1799. $4
  1800. int
  1801. main ()
  1802. {
  1803. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1804. test_array [0] = 0;
  1805. return test_array [0];
  1806. ;
  1807. return 0;
  1808. }
  1809. _ACEOF
  1810. if ac_fn_c_try_compile "$LINENO"; then :
  1811. ac_hi=$ac_mid
  1812. else
  1813. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1814. fi
  1815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1816. done
  1817. case $ac_lo in #((
  1818. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1819. '') ac_retval=1 ;;
  1820. esac
  1821. else
  1822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1823. /* end confdefs.h. */
  1824. $4
  1825. static long int longval () { return $2; }
  1826. static unsigned long int ulongval () { return $2; }
  1827. #include <stdio.h>
  1828. #include <stdlib.h>
  1829. int
  1830. main ()
  1831. {
  1832. FILE *f = fopen ("conftest.val", "w");
  1833. if (! f)
  1834. return 1;
  1835. if (($2) < 0)
  1836. {
  1837. long int i = longval ();
  1838. if (i != ($2))
  1839. return 1;
  1840. fprintf (f, "%ld", i);
  1841. }
  1842. else
  1843. {
  1844. unsigned long int i = ulongval ();
  1845. if (i != ($2))
  1846. return 1;
  1847. fprintf (f, "%lu", i);
  1848. }
  1849. /* Do not output a trailing newline, as this causes \r\n confusion
  1850. on some platforms. */
  1851. return ferror (f) || fclose (f) != 0;
  1852. ;
  1853. return 0;
  1854. }
  1855. _ACEOF
  1856. if ac_fn_c_try_run "$LINENO"; then :
  1857. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1858. else
  1859. ac_retval=1
  1860. fi
  1861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1862. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1863. rm -f conftest.val
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } # ac_fn_c_compute_int
  1868. cat >config.log <<_ACEOF
  1869. This file contains any messages produced by compilers while
  1870. running configure, to aid debugging if configure makes a mistake.
  1871. It was created by klish $as_me 1.6.0, which was
  1872. generated by GNU Autoconf 2.69. Invocation command line was
  1873. $ $0 $@
  1874. _ACEOF
  1875. exec 5>>config.log
  1876. {
  1877. cat <<_ASUNAME
  1878. ## --------- ##
  1879. ## Platform. ##
  1880. ## --------- ##
  1881. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1882. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1883. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1884. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1885. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1886. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1887. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1888. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1889. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1890. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1891. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1892. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1893. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1894. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1895. _ASUNAME
  1896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1897. for as_dir in $PATH
  1898. do
  1899. IFS=$as_save_IFS
  1900. test -z "$as_dir" && as_dir=.
  1901. $as_echo "PATH: $as_dir"
  1902. done
  1903. IFS=$as_save_IFS
  1904. } >&5
  1905. cat >&5 <<_ACEOF
  1906. ## ----------- ##
  1907. ## Core tests. ##
  1908. ## ----------- ##
  1909. _ACEOF
  1910. # Keep a trace of the command line.
  1911. # Strip out --no-create and --no-recursion so they do not pile up.
  1912. # Strip out --silent because we don't want to record it for future runs.
  1913. # Also quote any args containing shell meta-characters.
  1914. # Make two passes to allow for proper duplicate-argument suppression.
  1915. ac_configure_args=
  1916. ac_configure_args0=
  1917. ac_configure_args1=
  1918. ac_must_keep_next=false
  1919. for ac_pass in 1 2
  1920. do
  1921. for ac_arg
  1922. do
  1923. case $ac_arg in
  1924. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1925. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1926. | -silent | --silent | --silen | --sile | --sil)
  1927. continue ;;
  1928. *\'*)
  1929. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1930. esac
  1931. case $ac_pass in
  1932. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1933. 2)
  1934. as_fn_append ac_configure_args1 " '$ac_arg'"
  1935. if test $ac_must_keep_next = true; then
  1936. ac_must_keep_next=false # Got value, back to normal.
  1937. else
  1938. case $ac_arg in
  1939. *=* | --config-cache | -C | -disable-* | --disable-* \
  1940. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1941. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1942. | -with-* | --with-* | -without-* | --without-* | --x)
  1943. case "$ac_configure_args0 " in
  1944. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1945. esac
  1946. ;;
  1947. -* ) ac_must_keep_next=true ;;
  1948. esac
  1949. fi
  1950. as_fn_append ac_configure_args " '$ac_arg'"
  1951. ;;
  1952. esac
  1953. done
  1954. done
  1955. { ac_configure_args0=; unset ac_configure_args0;}
  1956. { ac_configure_args1=; unset ac_configure_args1;}
  1957. # When interrupted or exit'd, cleanup temporary files, and complete
  1958. # config.log. We remove comments because anyway the quotes in there
  1959. # would cause problems or look ugly.
  1960. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1961. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1962. trap 'exit_status=$?
  1963. # Save into config.log some information that might help in debugging.
  1964. {
  1965. echo
  1966. $as_echo "## ---------------- ##
  1967. ## Cache variables. ##
  1968. ## ---------------- ##"
  1969. echo
  1970. # The following way of writing the cache mishandles newlines in values,
  1971. (
  1972. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1973. eval ac_val=\$$ac_var
  1974. case $ac_val in #(
  1975. *${as_nl}*)
  1976. case $ac_var in #(
  1977. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1978. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1979. esac
  1980. case $ac_var in #(
  1981. _ | IFS | as_nl) ;; #(
  1982. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1983. *) { eval $ac_var=; unset $ac_var;} ;;
  1984. esac ;;
  1985. esac
  1986. done
  1987. (set) 2>&1 |
  1988. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1989. *${as_nl}ac_space=\ *)
  1990. sed -n \
  1991. "s/'\''/'\''\\\\'\'''\''/g;
  1992. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1993. ;; #(
  1994. *)
  1995. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1996. ;;
  1997. esac |
  1998. sort
  1999. )
  2000. echo
  2001. $as_echo "## ----------------- ##
  2002. ## Output variables. ##
  2003. ## ----------------- ##"
  2004. echo
  2005. for ac_var in $ac_subst_vars
  2006. do
  2007. eval ac_val=\$$ac_var
  2008. case $ac_val in
  2009. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2010. esac
  2011. $as_echo "$ac_var='\''$ac_val'\''"
  2012. done | sort
  2013. echo
  2014. if test -n "$ac_subst_files"; then
  2015. $as_echo "## ------------------- ##
  2016. ## File substitutions. ##
  2017. ## ------------------- ##"
  2018. echo
  2019. for ac_var in $ac_subst_files
  2020. do
  2021. eval ac_val=\$$ac_var
  2022. case $ac_val in
  2023. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2024. esac
  2025. $as_echo "$ac_var='\''$ac_val'\''"
  2026. done | sort
  2027. echo
  2028. fi
  2029. if test -s confdefs.h; then
  2030. $as_echo "## ----------- ##
  2031. ## confdefs.h. ##
  2032. ## ----------- ##"
  2033. echo
  2034. cat confdefs.h
  2035. echo
  2036. fi
  2037. test "$ac_signal" != 0 &&
  2038. $as_echo "$as_me: caught signal $ac_signal"
  2039. $as_echo "$as_me: exit $exit_status"
  2040. } >&5
  2041. rm -f core *.core core.conftest.* &&
  2042. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2043. exit $exit_status
  2044. ' 0
  2045. for ac_signal in 1 2 13 15; do
  2046. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2047. done
  2048. ac_signal=0
  2049. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2050. rm -f -r conftest* confdefs.h
  2051. $as_echo "/* confdefs.h */" > confdefs.h
  2052. # Predefined preprocessor variables.
  2053. cat >>confdefs.h <<_ACEOF
  2054. #define PACKAGE_NAME "$PACKAGE_NAME"
  2055. _ACEOF
  2056. cat >>confdefs.h <<_ACEOF
  2057. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2058. _ACEOF
  2059. cat >>confdefs.h <<_ACEOF
  2060. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2061. _ACEOF
  2062. cat >>confdefs.h <<_ACEOF
  2063. #define PACKAGE_STRING "$PACKAGE_STRING"
  2064. _ACEOF
  2065. cat >>confdefs.h <<_ACEOF
  2066. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2067. _ACEOF
  2068. cat >>confdefs.h <<_ACEOF
  2069. #define PACKAGE_URL "$PACKAGE_URL"
  2070. _ACEOF
  2071. # Let the site file select an alternate cache file if it wants to.
  2072. # Prefer an explicitly selected file to automatically selected ones.
  2073. ac_site_file1=NONE
  2074. ac_site_file2=NONE
  2075. if test -n "$CONFIG_SITE"; then
  2076. # We do not want a PATH search for config.site.
  2077. case $CONFIG_SITE in #((
  2078. -*) ac_site_file1=./$CONFIG_SITE;;
  2079. */*) ac_site_file1=$CONFIG_SITE;;
  2080. *) ac_site_file1=./$CONFIG_SITE;;
  2081. esac
  2082. elif test "x$prefix" != xNONE; then
  2083. ac_site_file1=$prefix/share/config.site
  2084. ac_site_file2=$prefix/etc/config.site
  2085. else
  2086. ac_site_file1=$ac_default_prefix/share/config.site
  2087. ac_site_file2=$ac_default_prefix/etc/config.site
  2088. fi
  2089. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2090. do
  2091. test "x$ac_site_file" = xNONE && continue
  2092. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2094. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2095. sed 's/^/| /' "$ac_site_file" >&5
  2096. . "$ac_site_file" \
  2097. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2098. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2099. as_fn_error $? "failed to load site script $ac_site_file
  2100. See \`config.log' for more details" "$LINENO" 5; }
  2101. fi
  2102. done
  2103. if test -r "$cache_file"; then
  2104. # Some versions of bash will fail to source /dev/null (special files
  2105. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2106. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2108. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2109. case $cache_file in
  2110. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2111. *) . "./$cache_file";;
  2112. esac
  2113. fi
  2114. else
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2116. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2117. >$cache_file
  2118. fi
  2119. # Check that the precious variables saved in the cache have kept the same
  2120. # value.
  2121. ac_cache_corrupted=false
  2122. for ac_var in $ac_precious_vars; do
  2123. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2124. eval ac_new_set=\$ac_env_${ac_var}_set
  2125. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2126. eval ac_new_val=\$ac_env_${ac_var}_value
  2127. case $ac_old_set,$ac_new_set in
  2128. set,)
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2130. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2131. ac_cache_corrupted=: ;;
  2132. ,set)
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2134. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2135. ac_cache_corrupted=: ;;
  2136. ,);;
  2137. *)
  2138. if test "x$ac_old_val" != "x$ac_new_val"; then
  2139. # differences in whitespace do not lead to failure.
  2140. ac_old_val_w=`echo x $ac_old_val`
  2141. ac_new_val_w=`echo x $ac_new_val`
  2142. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2144. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2145. ac_cache_corrupted=:
  2146. else
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2148. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2149. eval $ac_var=\$ac_old_val
  2150. fi
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2152. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2154. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2155. fi;;
  2156. esac
  2157. # Pass precious variables to config.status.
  2158. if test "$ac_new_set" = set; then
  2159. case $ac_new_val in
  2160. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2161. *) ac_arg=$ac_var=$ac_new_val ;;
  2162. esac
  2163. case " $ac_configure_args " in
  2164. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2165. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2166. esac
  2167. fi
  2168. done
  2169. if $ac_cache_corrupted; then
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2171. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2173. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2174. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2175. fi
  2176. ## -------------------- ##
  2177. ## Main body of script. ##
  2178. ## -------------------- ##
  2179. ac_ext=c
  2180. ac_cpp='$CPP $CPPFLAGS'
  2181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2184. ac_aux_dir=
  2185. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2186. if test -f "$ac_dir/install-sh"; then
  2187. ac_aux_dir=$ac_dir
  2188. ac_install_sh="$ac_aux_dir/install-sh -c"
  2189. break
  2190. elif test -f "$ac_dir/install.sh"; then
  2191. ac_aux_dir=$ac_dir
  2192. ac_install_sh="$ac_aux_dir/install.sh -c"
  2193. break
  2194. elif test -f "$ac_dir/shtool"; then
  2195. ac_aux_dir=$ac_dir
  2196. ac_install_sh="$ac_aux_dir/shtool install -c"
  2197. break
  2198. fi
  2199. done
  2200. if test -z "$ac_aux_dir"; then
  2201. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2202. fi
  2203. # These three variables are undocumented and unsupported,
  2204. # and are intended to be withdrawn in a future Autoconf release.
  2205. # They can cause serious problems if a builder's source tree is in a directory
  2206. # whose full name contains unusual characters.
  2207. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2208. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2209. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2210. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2211. ac_ext=c
  2212. ac_cpp='$CPP $CPPFLAGS'
  2213. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2214. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2215. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2216. if test -n "$ac_tool_prefix"; then
  2217. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2218. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2220. $as_echo_n "checking for $ac_word... " >&6; }
  2221. if ${ac_cv_prog_CC+:} false; then :
  2222. $as_echo_n "(cached) " >&6
  2223. else
  2224. if test -n "$CC"; then
  2225. ac_cv_prog_CC="$CC" # Let the user override the test.
  2226. else
  2227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2228. for as_dir in $PATH
  2229. do
  2230. IFS=$as_save_IFS
  2231. test -z "$as_dir" && as_dir=.
  2232. for ac_exec_ext in '' $ac_executable_extensions; do
  2233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2234. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2236. break 2
  2237. fi
  2238. done
  2239. done
  2240. IFS=$as_save_IFS
  2241. fi
  2242. fi
  2243. CC=$ac_cv_prog_CC
  2244. if test -n "$CC"; then
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2246. $as_echo "$CC" >&6; }
  2247. else
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2249. $as_echo "no" >&6; }
  2250. fi
  2251. fi
  2252. if test -z "$ac_cv_prog_CC"; then
  2253. ac_ct_CC=$CC
  2254. # Extract the first word of "gcc", so it can be a program name with args.
  2255. set dummy gcc; ac_word=$2
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2257. $as_echo_n "checking for $ac_word... " >&6; }
  2258. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2259. $as_echo_n "(cached) " >&6
  2260. else
  2261. if test -n "$ac_ct_CC"; then
  2262. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2263. else
  2264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. for as_dir in $PATH
  2266. do
  2267. IFS=$as_save_IFS
  2268. test -z "$as_dir" && as_dir=.
  2269. for ac_exec_ext in '' $ac_executable_extensions; do
  2270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2271. ac_cv_prog_ac_ct_CC="gcc"
  2272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2273. break 2
  2274. fi
  2275. done
  2276. done
  2277. IFS=$as_save_IFS
  2278. fi
  2279. fi
  2280. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2281. if test -n "$ac_ct_CC"; then
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2283. $as_echo "$ac_ct_CC" >&6; }
  2284. else
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2286. $as_echo "no" >&6; }
  2287. fi
  2288. if test "x$ac_ct_CC" = x; then
  2289. CC=""
  2290. else
  2291. case $cross_compiling:$ac_tool_warned in
  2292. yes:)
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2294. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2295. ac_tool_warned=yes ;;
  2296. esac
  2297. CC=$ac_ct_CC
  2298. fi
  2299. else
  2300. CC="$ac_cv_prog_CC"
  2301. fi
  2302. if test -z "$CC"; then
  2303. if test -n "$ac_tool_prefix"; then
  2304. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2305. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2307. $as_echo_n "checking for $ac_word... " >&6; }
  2308. if ${ac_cv_prog_CC+:} false; then :
  2309. $as_echo_n "(cached) " >&6
  2310. else
  2311. if test -n "$CC"; then
  2312. ac_cv_prog_CC="$CC" # Let the user override the test.
  2313. else
  2314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2315. for as_dir in $PATH
  2316. do
  2317. IFS=$as_save_IFS
  2318. test -z "$as_dir" && as_dir=.
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2321. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2323. break 2
  2324. fi
  2325. done
  2326. done
  2327. IFS=$as_save_IFS
  2328. fi
  2329. fi
  2330. CC=$ac_cv_prog_CC
  2331. if test -n "$CC"; then
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2333. $as_echo "$CC" >&6; }
  2334. else
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2336. $as_echo "no" >&6; }
  2337. fi
  2338. fi
  2339. fi
  2340. if test -z "$CC"; then
  2341. # Extract the first word of "cc", so it can be a program name with args.
  2342. set dummy cc; ac_word=$2
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2344. $as_echo_n "checking for $ac_word... " >&6; }
  2345. if ${ac_cv_prog_CC+:} false; then :
  2346. $as_echo_n "(cached) " >&6
  2347. else
  2348. if test -n "$CC"; then
  2349. ac_cv_prog_CC="$CC" # Let the user override the test.
  2350. else
  2351. ac_prog_rejected=no
  2352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2353. for as_dir in $PATH
  2354. do
  2355. IFS=$as_save_IFS
  2356. test -z "$as_dir" && as_dir=.
  2357. for ac_exec_ext in '' $ac_executable_extensions; do
  2358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2359. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2360. ac_prog_rejected=yes
  2361. continue
  2362. fi
  2363. ac_cv_prog_CC="cc"
  2364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2365. break 2
  2366. fi
  2367. done
  2368. done
  2369. IFS=$as_save_IFS
  2370. if test $ac_prog_rejected = yes; then
  2371. # We found a bogon in the path, so make sure we never use it.
  2372. set dummy $ac_cv_prog_CC
  2373. shift
  2374. if test $# != 0; then
  2375. # We chose a different compiler from the bogus one.
  2376. # However, it has the same basename, so the bogon will be chosen
  2377. # first if we set CC to just the basename; use the full file name.
  2378. shift
  2379. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2380. fi
  2381. fi
  2382. fi
  2383. fi
  2384. CC=$ac_cv_prog_CC
  2385. if test -n "$CC"; then
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2387. $as_echo "$CC" >&6; }
  2388. else
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2390. $as_echo "no" >&6; }
  2391. fi
  2392. fi
  2393. if test -z "$CC"; then
  2394. if test -n "$ac_tool_prefix"; then
  2395. for ac_prog in cl.exe
  2396. do
  2397. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2398. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2400. $as_echo_n "checking for $ac_word... " >&6; }
  2401. if ${ac_cv_prog_CC+:} false; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. if test -n "$CC"; then
  2405. ac_cv_prog_CC="$CC" # Let the user override the test.
  2406. else
  2407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2408. for as_dir in $PATH
  2409. do
  2410. IFS=$as_save_IFS
  2411. test -z "$as_dir" && as_dir=.
  2412. for ac_exec_ext in '' $ac_executable_extensions; do
  2413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2414. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2416. break 2
  2417. fi
  2418. done
  2419. done
  2420. IFS=$as_save_IFS
  2421. fi
  2422. fi
  2423. CC=$ac_cv_prog_CC
  2424. if test -n "$CC"; then
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2426. $as_echo "$CC" >&6; }
  2427. else
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2429. $as_echo "no" >&6; }
  2430. fi
  2431. test -n "$CC" && break
  2432. done
  2433. fi
  2434. if test -z "$CC"; then
  2435. ac_ct_CC=$CC
  2436. for ac_prog in cl.exe
  2437. do
  2438. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2439. set dummy $ac_prog; ac_word=$2
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2441. $as_echo_n "checking for $ac_word... " >&6; }
  2442. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2443. $as_echo_n "(cached) " >&6
  2444. else
  2445. if test -n "$ac_ct_CC"; then
  2446. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2447. else
  2448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2449. for as_dir in $PATH
  2450. do
  2451. IFS=$as_save_IFS
  2452. test -z "$as_dir" && as_dir=.
  2453. for ac_exec_ext in '' $ac_executable_extensions; do
  2454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2455. ac_cv_prog_ac_ct_CC="$ac_prog"
  2456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2457. break 2
  2458. fi
  2459. done
  2460. done
  2461. IFS=$as_save_IFS
  2462. fi
  2463. fi
  2464. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2465. if test -n "$ac_ct_CC"; then
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2467. $as_echo "$ac_ct_CC" >&6; }
  2468. else
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2470. $as_echo "no" >&6; }
  2471. fi
  2472. test -n "$ac_ct_CC" && break
  2473. done
  2474. if test "x$ac_ct_CC" = x; then
  2475. CC=""
  2476. else
  2477. case $cross_compiling:$ac_tool_warned in
  2478. yes:)
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2480. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2481. ac_tool_warned=yes ;;
  2482. esac
  2483. CC=$ac_ct_CC
  2484. fi
  2485. fi
  2486. fi
  2487. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2488. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2489. as_fn_error $? "no acceptable C compiler found in \$PATH
  2490. See \`config.log' for more details" "$LINENO" 5; }
  2491. # Provide some information about the compiler.
  2492. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2493. set X $ac_compile
  2494. ac_compiler=$2
  2495. for ac_option in --version -v -V -qversion; do
  2496. { { ac_try="$ac_compiler $ac_option >&5"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2502. $as_echo "$ac_try_echo"; } >&5
  2503. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2504. ac_status=$?
  2505. if test -s conftest.err; then
  2506. sed '10a\
  2507. ... rest of stderr output deleted ...
  2508. 10q' conftest.err >conftest.er1
  2509. cat conftest.er1 >&5
  2510. fi
  2511. rm -f conftest.er1 conftest.err
  2512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2513. test $ac_status = 0; }
  2514. done
  2515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2516. /* end confdefs.h. */
  2517. int
  2518. main ()
  2519. {
  2520. ;
  2521. return 0;
  2522. }
  2523. _ACEOF
  2524. ac_clean_files_save=$ac_clean_files
  2525. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2526. # Try to create an executable without -o first, disregard a.out.
  2527. # It will help us diagnose broken compilers, and finding out an intuition
  2528. # of exeext.
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2530. $as_echo_n "checking whether the C compiler works... " >&6; }
  2531. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2532. # The possible output files:
  2533. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2534. ac_rmfiles=
  2535. for ac_file in $ac_files
  2536. do
  2537. case $ac_file in
  2538. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2539. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2540. esac
  2541. done
  2542. rm -f $ac_rmfiles
  2543. if { { ac_try="$ac_link_default"
  2544. case "(($ac_try" in
  2545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2546. *) ac_try_echo=$ac_try;;
  2547. esac
  2548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2549. $as_echo "$ac_try_echo"; } >&5
  2550. (eval "$ac_link_default") 2>&5
  2551. ac_status=$?
  2552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2553. test $ac_status = 0; }; then :
  2554. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2555. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2556. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2557. # so that the user can short-circuit this test for compilers unknown to
  2558. # Autoconf.
  2559. for ac_file in $ac_files ''
  2560. do
  2561. test -f "$ac_file" || continue
  2562. case $ac_file in
  2563. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2564. ;;
  2565. [ab].out )
  2566. # We found the default executable, but exeext='' is most
  2567. # certainly right.
  2568. break;;
  2569. *.* )
  2570. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2571. then :; else
  2572. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2573. fi
  2574. # We set ac_cv_exeext here because the later test for it is not
  2575. # safe: cross compilers may not add the suffix if given an `-o'
  2576. # argument, so we may need to know it at that point already.
  2577. # Even if this section looks crufty: it has the advantage of
  2578. # actually working.
  2579. break;;
  2580. * )
  2581. break;;
  2582. esac
  2583. done
  2584. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2585. else
  2586. ac_file=''
  2587. fi
  2588. if test -z "$ac_file"; then :
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2590. $as_echo "no" >&6; }
  2591. $as_echo "$as_me: failed program was:" >&5
  2592. sed 's/^/| /' conftest.$ac_ext >&5
  2593. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2594. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2595. as_fn_error 77 "C compiler cannot create executables
  2596. See \`config.log' for more details" "$LINENO" 5; }
  2597. else
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2599. $as_echo "yes" >&6; }
  2600. fi
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2602. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2604. $as_echo "$ac_file" >&6; }
  2605. ac_exeext=$ac_cv_exeext
  2606. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2607. ac_clean_files=$ac_clean_files_save
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2609. $as_echo_n "checking for suffix of executables... " >&6; }
  2610. if { { ac_try="$ac_link"
  2611. case "(($ac_try" in
  2612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2613. *) ac_try_echo=$ac_try;;
  2614. esac
  2615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2616. $as_echo "$ac_try_echo"; } >&5
  2617. (eval "$ac_link") 2>&5
  2618. ac_status=$?
  2619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2620. test $ac_status = 0; }; then :
  2621. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2622. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2623. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2624. # `rm'.
  2625. for ac_file in conftest.exe conftest conftest.*; do
  2626. test -f "$ac_file" || continue
  2627. case $ac_file in
  2628. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2629. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2630. break;;
  2631. * ) break;;
  2632. esac
  2633. done
  2634. else
  2635. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2636. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2637. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2638. See \`config.log' for more details" "$LINENO" 5; }
  2639. fi
  2640. rm -f conftest conftest$ac_cv_exeext
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2642. $as_echo "$ac_cv_exeext" >&6; }
  2643. rm -f conftest.$ac_ext
  2644. EXEEXT=$ac_cv_exeext
  2645. ac_exeext=$EXEEXT
  2646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2647. /* end confdefs.h. */
  2648. #include <stdio.h>
  2649. int
  2650. main ()
  2651. {
  2652. FILE *f = fopen ("conftest.out", "w");
  2653. return ferror (f) || fclose (f) != 0;
  2654. ;
  2655. return 0;
  2656. }
  2657. _ACEOF
  2658. ac_clean_files="$ac_clean_files conftest.out"
  2659. # Check that the compiler produces executables we can run. If not, either
  2660. # the compiler is broken, or we cross compile.
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2662. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2663. if test "$cross_compiling" != yes; then
  2664. { { ac_try="$ac_link"
  2665. case "(($ac_try" in
  2666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2667. *) ac_try_echo=$ac_try;;
  2668. esac
  2669. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2670. $as_echo "$ac_try_echo"; } >&5
  2671. (eval "$ac_link") 2>&5
  2672. ac_status=$?
  2673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2674. test $ac_status = 0; }
  2675. if { ac_try='./conftest$ac_cv_exeext'
  2676. { { case "(($ac_try" in
  2677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2678. *) ac_try_echo=$ac_try;;
  2679. esac
  2680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2681. $as_echo "$ac_try_echo"; } >&5
  2682. (eval "$ac_try") 2>&5
  2683. ac_status=$?
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2685. test $ac_status = 0; }; }; then
  2686. cross_compiling=no
  2687. else
  2688. if test "$cross_compiling" = maybe; then
  2689. cross_compiling=yes
  2690. else
  2691. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2693. as_fn_error $? "cannot run C compiled programs.
  2694. If you meant to cross compile, use \`--host'.
  2695. See \`config.log' for more details" "$LINENO" 5; }
  2696. fi
  2697. fi
  2698. fi
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2700. $as_echo "$cross_compiling" >&6; }
  2701. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2702. ac_clean_files=$ac_clean_files_save
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2704. $as_echo_n "checking for suffix of object files... " >&6; }
  2705. if ${ac_cv_objext+:} false; then :
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2709. /* end confdefs.h. */
  2710. int
  2711. main ()
  2712. {
  2713. ;
  2714. return 0;
  2715. }
  2716. _ACEOF
  2717. rm -f conftest.o conftest.obj
  2718. if { { ac_try="$ac_compile"
  2719. case "(($ac_try" in
  2720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2721. *) ac_try_echo=$ac_try;;
  2722. esac
  2723. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2724. $as_echo "$ac_try_echo"; } >&5
  2725. (eval "$ac_compile") 2>&5
  2726. ac_status=$?
  2727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2728. test $ac_status = 0; }; then :
  2729. for ac_file in conftest.o conftest.obj conftest.*; do
  2730. test -f "$ac_file" || continue;
  2731. case $ac_file in
  2732. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2733. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2734. break;;
  2735. esac
  2736. done
  2737. else
  2738. $as_echo "$as_me: failed program was:" >&5
  2739. sed 's/^/| /' conftest.$ac_ext >&5
  2740. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2741. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2742. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2743. See \`config.log' for more details" "$LINENO" 5; }
  2744. fi
  2745. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2746. fi
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2748. $as_echo "$ac_cv_objext" >&6; }
  2749. OBJEXT=$ac_cv_objext
  2750. ac_objext=$OBJEXT
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2752. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2753. if ${ac_cv_c_compiler_gnu+:} false; then :
  2754. $as_echo_n "(cached) " >&6
  2755. else
  2756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2757. /* end confdefs.h. */
  2758. int
  2759. main ()
  2760. {
  2761. #ifndef __GNUC__
  2762. choke me
  2763. #endif
  2764. ;
  2765. return 0;
  2766. }
  2767. _ACEOF
  2768. if ac_fn_c_try_compile "$LINENO"; then :
  2769. ac_compiler_gnu=yes
  2770. else
  2771. ac_compiler_gnu=no
  2772. fi
  2773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2774. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2775. fi
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2777. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2778. if test $ac_compiler_gnu = yes; then
  2779. GCC=yes
  2780. else
  2781. GCC=
  2782. fi
  2783. ac_test_CFLAGS=${CFLAGS+set}
  2784. ac_save_CFLAGS=$CFLAGS
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2786. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2787. if ${ac_cv_prog_cc_g+:} false; then :
  2788. $as_echo_n "(cached) " >&6
  2789. else
  2790. ac_save_c_werror_flag=$ac_c_werror_flag
  2791. ac_c_werror_flag=yes
  2792. ac_cv_prog_cc_g=no
  2793. CFLAGS="-g"
  2794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2795. /* end confdefs.h. */
  2796. int
  2797. main ()
  2798. {
  2799. ;
  2800. return 0;
  2801. }
  2802. _ACEOF
  2803. if ac_fn_c_try_compile "$LINENO"; then :
  2804. ac_cv_prog_cc_g=yes
  2805. else
  2806. CFLAGS=""
  2807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2808. /* end confdefs.h. */
  2809. int
  2810. main ()
  2811. {
  2812. ;
  2813. return 0;
  2814. }
  2815. _ACEOF
  2816. if ac_fn_c_try_compile "$LINENO"; then :
  2817. else
  2818. ac_c_werror_flag=$ac_save_c_werror_flag
  2819. CFLAGS="-g"
  2820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2821. /* end confdefs.h. */
  2822. int
  2823. main ()
  2824. {
  2825. ;
  2826. return 0;
  2827. }
  2828. _ACEOF
  2829. if ac_fn_c_try_compile "$LINENO"; then :
  2830. ac_cv_prog_cc_g=yes
  2831. fi
  2832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2833. fi
  2834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2835. fi
  2836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2837. ac_c_werror_flag=$ac_save_c_werror_flag
  2838. fi
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2840. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2841. if test "$ac_test_CFLAGS" = set; then
  2842. CFLAGS=$ac_save_CFLAGS
  2843. elif test $ac_cv_prog_cc_g = yes; then
  2844. if test "$GCC" = yes; then
  2845. CFLAGS="-g -O2"
  2846. else
  2847. CFLAGS="-g"
  2848. fi
  2849. else
  2850. if test "$GCC" = yes; then
  2851. CFLAGS="-O2"
  2852. else
  2853. CFLAGS=
  2854. fi
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2857. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2858. if ${ac_cv_prog_cc_c89+:} false; then :
  2859. $as_echo_n "(cached) " >&6
  2860. else
  2861. ac_cv_prog_cc_c89=no
  2862. ac_save_CC=$CC
  2863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2864. /* end confdefs.h. */
  2865. #include <stdarg.h>
  2866. #include <stdio.h>
  2867. struct stat;
  2868. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2869. struct buf { int x; };
  2870. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2871. static char *e (p, i)
  2872. char **p;
  2873. int i;
  2874. {
  2875. return p[i];
  2876. }
  2877. static char *f (char * (*g) (char **, int), char **p, ...)
  2878. {
  2879. char *s;
  2880. va_list v;
  2881. va_start (v,p);
  2882. s = g (p, va_arg (v,int));
  2883. va_end (v);
  2884. return s;
  2885. }
  2886. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2887. function prototypes and stuff, but not '\xHH' hex character constants.
  2888. These don't provoke an error unfortunately, instead are silently treated
  2889. as 'x'. The following induces an error, until -std is added to get
  2890. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2891. array size at least. It's necessary to write '\x00'==0 to get something
  2892. that's true only with -std. */
  2893. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2894. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2895. inside strings and character constants. */
  2896. #define FOO(x) 'x'
  2897. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2898. int test (int i, double x);
  2899. struct s1 {int (*f) (int a);};
  2900. struct s2 {int (*f) (double a);};
  2901. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2902. int argc;
  2903. char **argv;
  2904. int
  2905. main ()
  2906. {
  2907. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2908. ;
  2909. return 0;
  2910. }
  2911. _ACEOF
  2912. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2913. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2914. do
  2915. CC="$ac_save_CC $ac_arg"
  2916. if ac_fn_c_try_compile "$LINENO"; then :
  2917. ac_cv_prog_cc_c89=$ac_arg
  2918. fi
  2919. rm -f core conftest.err conftest.$ac_objext
  2920. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2921. done
  2922. rm -f conftest.$ac_ext
  2923. CC=$ac_save_CC
  2924. fi
  2925. # AC_CACHE_VAL
  2926. case "x$ac_cv_prog_cc_c89" in
  2927. x)
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2929. $as_echo "none needed" >&6; } ;;
  2930. xno)
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2932. $as_echo "unsupported" >&6; } ;;
  2933. *)
  2934. CC="$CC $ac_cv_prog_cc_c89"
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2936. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2937. esac
  2938. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2939. fi
  2940. ac_ext=c
  2941. ac_cpp='$CPP $CPPFLAGS'
  2942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2945. ac_ext=c
  2946. ac_cpp='$CPP $CPPFLAGS'
  2947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2951. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2952. # On Suns, sometimes $CPP names a directory.
  2953. if test -n "$CPP" && test -d "$CPP"; then
  2954. CPP=
  2955. fi
  2956. if test -z "$CPP"; then
  2957. if ${ac_cv_prog_CPP+:} false; then :
  2958. $as_echo_n "(cached) " >&6
  2959. else
  2960. # Double quotes because CPP needs to be expanded
  2961. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2962. do
  2963. ac_preproc_ok=false
  2964. for ac_c_preproc_warn_flag in '' yes
  2965. do
  2966. # Use a header file that comes with gcc, so configuring glibc
  2967. # with a fresh cross-compiler works.
  2968. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2969. # <limits.h> exists even on freestanding compilers.
  2970. # On the NeXT, cc -E runs the code through the compiler's parser,
  2971. # not just through cpp. "Syntax error" is here to catch this case.
  2972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2973. /* end confdefs.h. */
  2974. #ifdef __STDC__
  2975. # include <limits.h>
  2976. #else
  2977. # include <assert.h>
  2978. #endif
  2979. Syntax error
  2980. _ACEOF
  2981. if ac_fn_c_try_cpp "$LINENO"; then :
  2982. else
  2983. # Broken: fails on valid input.
  2984. continue
  2985. fi
  2986. rm -f conftest.err conftest.i conftest.$ac_ext
  2987. # OK, works on sane cases. Now check whether nonexistent headers
  2988. # can be detected and how.
  2989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2990. /* end confdefs.h. */
  2991. #include <ac_nonexistent.h>
  2992. _ACEOF
  2993. if ac_fn_c_try_cpp "$LINENO"; then :
  2994. # Broken: success on invalid input.
  2995. continue
  2996. else
  2997. # Passes both tests.
  2998. ac_preproc_ok=:
  2999. break
  3000. fi
  3001. rm -f conftest.err conftest.i conftest.$ac_ext
  3002. done
  3003. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3004. rm -f conftest.i conftest.err conftest.$ac_ext
  3005. if $ac_preproc_ok; then :
  3006. break
  3007. fi
  3008. done
  3009. ac_cv_prog_CPP=$CPP
  3010. fi
  3011. CPP=$ac_cv_prog_CPP
  3012. else
  3013. ac_cv_prog_CPP=$CPP
  3014. fi
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3016. $as_echo "$CPP" >&6; }
  3017. ac_preproc_ok=false
  3018. for ac_c_preproc_warn_flag in '' yes
  3019. do
  3020. # Use a header file that comes with gcc, so configuring glibc
  3021. # with a fresh cross-compiler works.
  3022. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3023. # <limits.h> exists even on freestanding compilers.
  3024. # On the NeXT, cc -E runs the code through the compiler's parser,
  3025. # not just through cpp. "Syntax error" is here to catch this case.
  3026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3027. /* end confdefs.h. */
  3028. #ifdef __STDC__
  3029. # include <limits.h>
  3030. #else
  3031. # include <assert.h>
  3032. #endif
  3033. Syntax error
  3034. _ACEOF
  3035. if ac_fn_c_try_cpp "$LINENO"; then :
  3036. else
  3037. # Broken: fails on valid input.
  3038. continue
  3039. fi
  3040. rm -f conftest.err conftest.i conftest.$ac_ext
  3041. # OK, works on sane cases. Now check whether nonexistent headers
  3042. # can be detected and how.
  3043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3044. /* end confdefs.h. */
  3045. #include <ac_nonexistent.h>
  3046. _ACEOF
  3047. if ac_fn_c_try_cpp "$LINENO"; then :
  3048. # Broken: success on invalid input.
  3049. continue
  3050. else
  3051. # Passes both tests.
  3052. ac_preproc_ok=:
  3053. break
  3054. fi
  3055. rm -f conftest.err conftest.i conftest.$ac_ext
  3056. done
  3057. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3058. rm -f conftest.i conftest.err conftest.$ac_ext
  3059. if $ac_preproc_ok; then :
  3060. else
  3061. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3063. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3064. See \`config.log' for more details" "$LINENO" 5; }
  3065. fi
  3066. ac_ext=c
  3067. ac_cpp='$CPP $CPPFLAGS'
  3068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3072. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3073. if ${ac_cv_path_GREP+:} false; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. if test -z "$GREP"; then
  3077. ac_path_GREP_found=false
  3078. # Loop through the user's path and test for each of PROGNAME-LIST
  3079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3080. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3081. do
  3082. IFS=$as_save_IFS
  3083. test -z "$as_dir" && as_dir=.
  3084. for ac_prog in grep ggrep; do
  3085. for ac_exec_ext in '' $ac_executable_extensions; do
  3086. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3087. as_fn_executable_p "$ac_path_GREP" || continue
  3088. # Check for GNU ac_path_GREP and select it if it is found.
  3089. # Check for GNU $ac_path_GREP
  3090. case `"$ac_path_GREP" --version 2>&1` in
  3091. *GNU*)
  3092. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3093. *)
  3094. ac_count=0
  3095. $as_echo_n 0123456789 >"conftest.in"
  3096. while :
  3097. do
  3098. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3099. mv "conftest.tmp" "conftest.in"
  3100. cp "conftest.in" "conftest.nl"
  3101. $as_echo 'GREP' >> "conftest.nl"
  3102. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3103. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3104. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3105. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3106. # Best one so far, save it but keep looking for a better one
  3107. ac_cv_path_GREP="$ac_path_GREP"
  3108. ac_path_GREP_max=$ac_count
  3109. fi
  3110. # 10*(2^10) chars as input seems more than enough
  3111. test $ac_count -gt 10 && break
  3112. done
  3113. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3114. esac
  3115. $ac_path_GREP_found && break 3
  3116. done
  3117. done
  3118. done
  3119. IFS=$as_save_IFS
  3120. if test -z "$ac_cv_path_GREP"; then
  3121. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3122. fi
  3123. else
  3124. ac_cv_path_GREP=$GREP
  3125. fi
  3126. fi
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3128. $as_echo "$ac_cv_path_GREP" >&6; }
  3129. GREP="$ac_cv_path_GREP"
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3131. $as_echo_n "checking for egrep... " >&6; }
  3132. if ${ac_cv_path_EGREP+:} false; then :
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3136. then ac_cv_path_EGREP="$GREP -E"
  3137. else
  3138. if test -z "$EGREP"; then
  3139. ac_path_EGREP_found=false
  3140. # Loop through the user's path and test for each of PROGNAME-LIST
  3141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3142. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3143. do
  3144. IFS=$as_save_IFS
  3145. test -z "$as_dir" && as_dir=.
  3146. for ac_prog in egrep; do
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3149. as_fn_executable_p "$ac_path_EGREP" || continue
  3150. # Check for GNU ac_path_EGREP and select it if it is found.
  3151. # Check for GNU $ac_path_EGREP
  3152. case `"$ac_path_EGREP" --version 2>&1` in
  3153. *GNU*)
  3154. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3155. *)
  3156. ac_count=0
  3157. $as_echo_n 0123456789 >"conftest.in"
  3158. while :
  3159. do
  3160. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3161. mv "conftest.tmp" "conftest.in"
  3162. cp "conftest.in" "conftest.nl"
  3163. $as_echo 'EGREP' >> "conftest.nl"
  3164. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3165. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3166. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3167. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3168. # Best one so far, save it but keep looking for a better one
  3169. ac_cv_path_EGREP="$ac_path_EGREP"
  3170. ac_path_EGREP_max=$ac_count
  3171. fi
  3172. # 10*(2^10) chars as input seems more than enough
  3173. test $ac_count -gt 10 && break
  3174. done
  3175. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3176. esac
  3177. $ac_path_EGREP_found && break 3
  3178. done
  3179. done
  3180. done
  3181. IFS=$as_save_IFS
  3182. if test -z "$ac_cv_path_EGREP"; then
  3183. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3184. fi
  3185. else
  3186. ac_cv_path_EGREP=$EGREP
  3187. fi
  3188. fi
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3191. $as_echo "$ac_cv_path_EGREP" >&6; }
  3192. EGREP="$ac_cv_path_EGREP"
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3194. $as_echo_n "checking for ANSI C header files... " >&6; }
  3195. if ${ac_cv_header_stdc+:} false; then :
  3196. $as_echo_n "(cached) " >&6
  3197. else
  3198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3199. /* end confdefs.h. */
  3200. #include <stdlib.h>
  3201. #include <stdarg.h>
  3202. #include <string.h>
  3203. #include <float.h>
  3204. int
  3205. main ()
  3206. {
  3207. ;
  3208. return 0;
  3209. }
  3210. _ACEOF
  3211. if ac_fn_c_try_compile "$LINENO"; then :
  3212. ac_cv_header_stdc=yes
  3213. else
  3214. ac_cv_header_stdc=no
  3215. fi
  3216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3217. if test $ac_cv_header_stdc = yes; then
  3218. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. #include <string.h>
  3222. _ACEOF
  3223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3224. $EGREP "memchr" >/dev/null 2>&1; then :
  3225. else
  3226. ac_cv_header_stdc=no
  3227. fi
  3228. rm -f conftest*
  3229. fi
  3230. if test $ac_cv_header_stdc = yes; then
  3231. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. #include <stdlib.h>
  3235. _ACEOF
  3236. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3237. $EGREP "free" >/dev/null 2>&1; then :
  3238. else
  3239. ac_cv_header_stdc=no
  3240. fi
  3241. rm -f conftest*
  3242. fi
  3243. if test $ac_cv_header_stdc = yes; then
  3244. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3245. if test "$cross_compiling" = yes; then :
  3246. :
  3247. else
  3248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3249. /* end confdefs.h. */
  3250. #include <ctype.h>
  3251. #include <stdlib.h>
  3252. #if ((' ' & 0x0FF) == 0x020)
  3253. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3254. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3255. #else
  3256. # define ISLOWER(c) \
  3257. (('a' <= (c) && (c) <= 'i') \
  3258. || ('j' <= (c) && (c) <= 'r') \
  3259. || ('s' <= (c) && (c) <= 'z'))
  3260. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3261. #endif
  3262. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3263. int
  3264. main ()
  3265. {
  3266. int i;
  3267. for (i = 0; i < 256; i++)
  3268. if (XOR (islower (i), ISLOWER (i))
  3269. || toupper (i) != TOUPPER (i))
  3270. return 2;
  3271. return 0;
  3272. }
  3273. _ACEOF
  3274. if ac_fn_c_try_run "$LINENO"; then :
  3275. else
  3276. ac_cv_header_stdc=no
  3277. fi
  3278. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3279. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3280. fi
  3281. fi
  3282. fi
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3284. $as_echo "$ac_cv_header_stdc" >&6; }
  3285. if test $ac_cv_header_stdc = yes; then
  3286. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3287. fi
  3288. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3289. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3290. inttypes.h stdint.h unistd.h
  3291. do :
  3292. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3293. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3294. "
  3295. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3296. cat >>confdefs.h <<_ACEOF
  3297. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3298. _ACEOF
  3299. fi
  3300. done
  3301. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3302. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3303. MINIX=yes
  3304. else
  3305. MINIX=
  3306. fi
  3307. if test "$MINIX" = yes; then
  3308. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3309. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3310. $as_echo "#define _MINIX 1" >>confdefs.h
  3311. fi
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3313. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3314. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3315. $as_echo_n "(cached) " >&6
  3316. else
  3317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3318. /* end confdefs.h. */
  3319. # define __EXTENSIONS__ 1
  3320. $ac_includes_default
  3321. int
  3322. main ()
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"; then :
  3329. ac_cv_safe_to_define___extensions__=yes
  3330. else
  3331. ac_cv_safe_to_define___extensions__=no
  3332. fi
  3333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3334. fi
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3336. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3337. test $ac_cv_safe_to_define___extensions__ = yes &&
  3338. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3339. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3340. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3341. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3342. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3343. # Checks for programs.
  3344. ac_ext=c
  3345. ac_cpp='$CPP $CPPFLAGS'
  3346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3349. if test -n "$ac_tool_prefix"; then
  3350. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3351. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3353. $as_echo_n "checking for $ac_word... " >&6; }
  3354. if ${ac_cv_prog_CC+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. if test -n "$CC"; then
  3358. ac_cv_prog_CC="$CC" # Let the user override the test.
  3359. else
  3360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3361. for as_dir in $PATH
  3362. do
  3363. IFS=$as_save_IFS
  3364. test -z "$as_dir" && as_dir=.
  3365. for ac_exec_ext in '' $ac_executable_extensions; do
  3366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3367. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3369. break 2
  3370. fi
  3371. done
  3372. done
  3373. IFS=$as_save_IFS
  3374. fi
  3375. fi
  3376. CC=$ac_cv_prog_CC
  3377. if test -n "$CC"; then
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3379. $as_echo "$CC" >&6; }
  3380. else
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3382. $as_echo "no" >&6; }
  3383. fi
  3384. fi
  3385. if test -z "$ac_cv_prog_CC"; then
  3386. ac_ct_CC=$CC
  3387. # Extract the first word of "gcc", so it can be a program name with args.
  3388. set dummy gcc; ac_word=$2
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3390. $as_echo_n "checking for $ac_word... " >&6; }
  3391. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3392. $as_echo_n "(cached) " >&6
  3393. else
  3394. if test -n "$ac_ct_CC"; then
  3395. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3396. else
  3397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3398. for as_dir in $PATH
  3399. do
  3400. IFS=$as_save_IFS
  3401. test -z "$as_dir" && as_dir=.
  3402. for ac_exec_ext in '' $ac_executable_extensions; do
  3403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3404. ac_cv_prog_ac_ct_CC="gcc"
  3405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3406. break 2
  3407. fi
  3408. done
  3409. done
  3410. IFS=$as_save_IFS
  3411. fi
  3412. fi
  3413. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3414. if test -n "$ac_ct_CC"; then
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3416. $as_echo "$ac_ct_CC" >&6; }
  3417. else
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. $as_echo "no" >&6; }
  3420. fi
  3421. if test "x$ac_ct_CC" = x; then
  3422. CC=""
  3423. else
  3424. case $cross_compiling:$ac_tool_warned in
  3425. yes:)
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3428. ac_tool_warned=yes ;;
  3429. esac
  3430. CC=$ac_ct_CC
  3431. fi
  3432. else
  3433. CC="$ac_cv_prog_CC"
  3434. fi
  3435. if test -z "$CC"; then
  3436. if test -n "$ac_tool_prefix"; then
  3437. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3438. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3440. $as_echo_n "checking for $ac_word... " >&6; }
  3441. if ${ac_cv_prog_CC+:} false; then :
  3442. $as_echo_n "(cached) " >&6
  3443. else
  3444. if test -n "$CC"; then
  3445. ac_cv_prog_CC="$CC" # Let the user override the test.
  3446. else
  3447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3448. for as_dir in $PATH
  3449. do
  3450. IFS=$as_save_IFS
  3451. test -z "$as_dir" && as_dir=.
  3452. for ac_exec_ext in '' $ac_executable_extensions; do
  3453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3454. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3456. break 2
  3457. fi
  3458. done
  3459. done
  3460. IFS=$as_save_IFS
  3461. fi
  3462. fi
  3463. CC=$ac_cv_prog_CC
  3464. if test -n "$CC"; then
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3466. $as_echo "$CC" >&6; }
  3467. else
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3469. $as_echo "no" >&6; }
  3470. fi
  3471. fi
  3472. fi
  3473. if test -z "$CC"; then
  3474. # Extract the first word of "cc", so it can be a program name with args.
  3475. set dummy cc; ac_word=$2
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3477. $as_echo_n "checking for $ac_word... " >&6; }
  3478. if ${ac_cv_prog_CC+:} false; then :
  3479. $as_echo_n "(cached) " >&6
  3480. else
  3481. if test -n "$CC"; then
  3482. ac_cv_prog_CC="$CC" # Let the user override the test.
  3483. else
  3484. ac_prog_rejected=no
  3485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3486. for as_dir in $PATH
  3487. do
  3488. IFS=$as_save_IFS
  3489. test -z "$as_dir" && as_dir=.
  3490. for ac_exec_ext in '' $ac_executable_extensions; do
  3491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3492. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3493. ac_prog_rejected=yes
  3494. continue
  3495. fi
  3496. ac_cv_prog_CC="cc"
  3497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3498. break 2
  3499. fi
  3500. done
  3501. done
  3502. IFS=$as_save_IFS
  3503. if test $ac_prog_rejected = yes; then
  3504. # We found a bogon in the path, so make sure we never use it.
  3505. set dummy $ac_cv_prog_CC
  3506. shift
  3507. if test $# != 0; then
  3508. # We chose a different compiler from the bogus one.
  3509. # However, it has the same basename, so the bogon will be chosen
  3510. # first if we set CC to just the basename; use the full file name.
  3511. shift
  3512. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3513. fi
  3514. fi
  3515. fi
  3516. fi
  3517. CC=$ac_cv_prog_CC
  3518. if test -n "$CC"; then
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3520. $as_echo "$CC" >&6; }
  3521. else
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3523. $as_echo "no" >&6; }
  3524. fi
  3525. fi
  3526. if test -z "$CC"; then
  3527. if test -n "$ac_tool_prefix"; then
  3528. for ac_prog in cl.exe
  3529. do
  3530. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3531. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3533. $as_echo_n "checking for $ac_word... " >&6; }
  3534. if ${ac_cv_prog_CC+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. if test -n "$CC"; then
  3538. ac_cv_prog_CC="$CC" # Let the user override the test.
  3539. else
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH
  3542. do
  3543. IFS=$as_save_IFS
  3544. test -z "$as_dir" && as_dir=.
  3545. for ac_exec_ext in '' $ac_executable_extensions; do
  3546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3547. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3549. break 2
  3550. fi
  3551. done
  3552. done
  3553. IFS=$as_save_IFS
  3554. fi
  3555. fi
  3556. CC=$ac_cv_prog_CC
  3557. if test -n "$CC"; then
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3559. $as_echo "$CC" >&6; }
  3560. else
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3562. $as_echo "no" >&6; }
  3563. fi
  3564. test -n "$CC" && break
  3565. done
  3566. fi
  3567. if test -z "$CC"; then
  3568. ac_ct_CC=$CC
  3569. for ac_prog in cl.exe
  3570. do
  3571. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3572. set dummy $ac_prog; ac_word=$2
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3574. $as_echo_n "checking for $ac_word... " >&6; }
  3575. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3576. $as_echo_n "(cached) " >&6
  3577. else
  3578. if test -n "$ac_ct_CC"; then
  3579. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3580. else
  3581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3582. for as_dir in $PATH
  3583. do
  3584. IFS=$as_save_IFS
  3585. test -z "$as_dir" && as_dir=.
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3588. ac_cv_prog_ac_ct_CC="$ac_prog"
  3589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3590. break 2
  3591. fi
  3592. done
  3593. done
  3594. IFS=$as_save_IFS
  3595. fi
  3596. fi
  3597. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3598. if test -n "$ac_ct_CC"; then
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3600. $as_echo "$ac_ct_CC" >&6; }
  3601. else
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3603. $as_echo "no" >&6; }
  3604. fi
  3605. test -n "$ac_ct_CC" && break
  3606. done
  3607. if test "x$ac_ct_CC" = x; then
  3608. CC=""
  3609. else
  3610. case $cross_compiling:$ac_tool_warned in
  3611. yes:)
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3614. ac_tool_warned=yes ;;
  3615. esac
  3616. CC=$ac_ct_CC
  3617. fi
  3618. fi
  3619. fi
  3620. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3621. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3622. as_fn_error $? "no acceptable C compiler found in \$PATH
  3623. See \`config.log' for more details" "$LINENO" 5; }
  3624. # Provide some information about the compiler.
  3625. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3626. set X $ac_compile
  3627. ac_compiler=$2
  3628. for ac_option in --version -v -V -qversion; do
  3629. { { ac_try="$ac_compiler $ac_option >&5"
  3630. case "(($ac_try" in
  3631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3632. *) ac_try_echo=$ac_try;;
  3633. esac
  3634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3635. $as_echo "$ac_try_echo"; } >&5
  3636. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3637. ac_status=$?
  3638. if test -s conftest.err; then
  3639. sed '10a\
  3640. ... rest of stderr output deleted ...
  3641. 10q' conftest.err >conftest.er1
  3642. cat conftest.er1 >&5
  3643. fi
  3644. rm -f conftest.er1 conftest.err
  3645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3646. test $ac_status = 0; }
  3647. done
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3649. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3650. if ${ac_cv_c_compiler_gnu+:} false; then :
  3651. $as_echo_n "(cached) " >&6
  3652. else
  3653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3654. /* end confdefs.h. */
  3655. int
  3656. main ()
  3657. {
  3658. #ifndef __GNUC__
  3659. choke me
  3660. #endif
  3661. ;
  3662. return 0;
  3663. }
  3664. _ACEOF
  3665. if ac_fn_c_try_compile "$LINENO"; then :
  3666. ac_compiler_gnu=yes
  3667. else
  3668. ac_compiler_gnu=no
  3669. fi
  3670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3674. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3675. if test $ac_compiler_gnu = yes; then
  3676. GCC=yes
  3677. else
  3678. GCC=
  3679. fi
  3680. ac_test_CFLAGS=${CFLAGS+set}
  3681. ac_save_CFLAGS=$CFLAGS
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3683. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3684. if ${ac_cv_prog_cc_g+:} false; then :
  3685. $as_echo_n "(cached) " >&6
  3686. else
  3687. ac_save_c_werror_flag=$ac_c_werror_flag
  3688. ac_c_werror_flag=yes
  3689. ac_cv_prog_cc_g=no
  3690. CFLAGS="-g"
  3691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3692. /* end confdefs.h. */
  3693. int
  3694. main ()
  3695. {
  3696. ;
  3697. return 0;
  3698. }
  3699. _ACEOF
  3700. if ac_fn_c_try_compile "$LINENO"; then :
  3701. ac_cv_prog_cc_g=yes
  3702. else
  3703. CFLAGS=""
  3704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3705. /* end confdefs.h. */
  3706. int
  3707. main ()
  3708. {
  3709. ;
  3710. return 0;
  3711. }
  3712. _ACEOF
  3713. if ac_fn_c_try_compile "$LINENO"; then :
  3714. else
  3715. ac_c_werror_flag=$ac_save_c_werror_flag
  3716. CFLAGS="-g"
  3717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3718. /* end confdefs.h. */
  3719. int
  3720. main ()
  3721. {
  3722. ;
  3723. return 0;
  3724. }
  3725. _ACEOF
  3726. if ac_fn_c_try_compile "$LINENO"; then :
  3727. ac_cv_prog_cc_g=yes
  3728. fi
  3729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3730. fi
  3731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3732. fi
  3733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3734. ac_c_werror_flag=$ac_save_c_werror_flag
  3735. fi
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3737. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3738. if test "$ac_test_CFLAGS" = set; then
  3739. CFLAGS=$ac_save_CFLAGS
  3740. elif test $ac_cv_prog_cc_g = yes; then
  3741. if test "$GCC" = yes; then
  3742. CFLAGS="-g -O2"
  3743. else
  3744. CFLAGS="-g"
  3745. fi
  3746. else
  3747. if test "$GCC" = yes; then
  3748. CFLAGS="-O2"
  3749. else
  3750. CFLAGS=
  3751. fi
  3752. fi
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3754. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3755. if ${ac_cv_prog_cc_c89+:} false; then :
  3756. $as_echo_n "(cached) " >&6
  3757. else
  3758. ac_cv_prog_cc_c89=no
  3759. ac_save_CC=$CC
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. #include <stdarg.h>
  3763. #include <stdio.h>
  3764. struct stat;
  3765. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3766. struct buf { int x; };
  3767. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3768. static char *e (p, i)
  3769. char **p;
  3770. int i;
  3771. {
  3772. return p[i];
  3773. }
  3774. static char *f (char * (*g) (char **, int), char **p, ...)
  3775. {
  3776. char *s;
  3777. va_list v;
  3778. va_start (v,p);
  3779. s = g (p, va_arg (v,int));
  3780. va_end (v);
  3781. return s;
  3782. }
  3783. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3784. function prototypes and stuff, but not '\xHH' hex character constants.
  3785. These don't provoke an error unfortunately, instead are silently treated
  3786. as 'x'. The following induces an error, until -std is added to get
  3787. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3788. array size at least. It's necessary to write '\x00'==0 to get something
  3789. that's true only with -std. */
  3790. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3791. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3792. inside strings and character constants. */
  3793. #define FOO(x) 'x'
  3794. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3795. int test (int i, double x);
  3796. struct s1 {int (*f) (int a);};
  3797. struct s2 {int (*f) (double a);};
  3798. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3799. int argc;
  3800. char **argv;
  3801. int
  3802. main ()
  3803. {
  3804. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3805. ;
  3806. return 0;
  3807. }
  3808. _ACEOF
  3809. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3810. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3811. do
  3812. CC="$ac_save_CC $ac_arg"
  3813. if ac_fn_c_try_compile "$LINENO"; then :
  3814. ac_cv_prog_cc_c89=$ac_arg
  3815. fi
  3816. rm -f core conftest.err conftest.$ac_objext
  3817. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3818. done
  3819. rm -f conftest.$ac_ext
  3820. CC=$ac_save_CC
  3821. fi
  3822. # AC_CACHE_VAL
  3823. case "x$ac_cv_prog_cc_c89" in
  3824. x)
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3826. $as_echo "none needed" >&6; } ;;
  3827. xno)
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3829. $as_echo "unsupported" >&6; } ;;
  3830. *)
  3831. CC="$CC $ac_cv_prog_cc_c89"
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3833. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3834. esac
  3835. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3836. fi
  3837. ac_ext=c
  3838. ac_cpp='$CPP $CPPFLAGS'
  3839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3842. # Make sure we can run config.sub.
  3843. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3844. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3846. $as_echo_n "checking build system type... " >&6; }
  3847. if ${ac_cv_build+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. ac_build_alias=$build_alias
  3851. test "x$ac_build_alias" = x &&
  3852. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3853. test "x$ac_build_alias" = x &&
  3854. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3855. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3856. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3857. fi
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3859. $as_echo "$ac_cv_build" >&6; }
  3860. case $ac_cv_build in
  3861. *-*-*) ;;
  3862. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3863. esac
  3864. build=$ac_cv_build
  3865. ac_save_IFS=$IFS; IFS='-'
  3866. set x $ac_cv_build
  3867. shift
  3868. build_cpu=$1
  3869. build_vendor=$2
  3870. shift; shift
  3871. # Remember, the first character of IFS is used to create $*,
  3872. # except with old shells:
  3873. build_os=$*
  3874. IFS=$ac_save_IFS
  3875. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3877. $as_echo_n "checking host system type... " >&6; }
  3878. if ${ac_cv_host+:} false; then :
  3879. $as_echo_n "(cached) " >&6
  3880. else
  3881. if test "x$host_alias" = x; then
  3882. ac_cv_host=$ac_cv_build
  3883. else
  3884. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3885. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3886. fi
  3887. fi
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3889. $as_echo "$ac_cv_host" >&6; }
  3890. case $ac_cv_host in
  3891. *-*-*) ;;
  3892. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3893. esac
  3894. host=$ac_cv_host
  3895. ac_save_IFS=$IFS; IFS='-'
  3896. set x $ac_cv_host
  3897. shift
  3898. host_cpu=$1
  3899. host_vendor=$2
  3900. shift; shift
  3901. # Remember, the first character of IFS is used to create $*,
  3902. # except with old shells:
  3903. host_os=$*
  3904. IFS=$ac_save_IFS
  3905. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3906. enable_win32_dll=yes
  3907. case $host in
  3908. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3909. if test -n "$ac_tool_prefix"; then
  3910. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3911. set dummy ${ac_tool_prefix}as; ac_word=$2
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3913. $as_echo_n "checking for $ac_word... " >&6; }
  3914. if ${ac_cv_prog_AS+:} false; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if test -n "$AS"; then
  3918. ac_cv_prog_AS="$AS" # Let the user override the test.
  3919. else
  3920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3921. for as_dir in $PATH
  3922. do
  3923. IFS=$as_save_IFS
  3924. test -z "$as_dir" && as_dir=.
  3925. for ac_exec_ext in '' $ac_executable_extensions; do
  3926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3927. ac_cv_prog_AS="${ac_tool_prefix}as"
  3928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3929. break 2
  3930. fi
  3931. done
  3932. done
  3933. IFS=$as_save_IFS
  3934. fi
  3935. fi
  3936. AS=$ac_cv_prog_AS
  3937. if test -n "$AS"; then
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3939. $as_echo "$AS" >&6; }
  3940. else
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3942. $as_echo "no" >&6; }
  3943. fi
  3944. fi
  3945. if test -z "$ac_cv_prog_AS"; then
  3946. ac_ct_AS=$AS
  3947. # Extract the first word of "as", so it can be a program name with args.
  3948. set dummy as; ac_word=$2
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3950. $as_echo_n "checking for $ac_word... " >&6; }
  3951. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if test -n "$ac_ct_AS"; then
  3955. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3956. else
  3957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3958. for as_dir in $PATH
  3959. do
  3960. IFS=$as_save_IFS
  3961. test -z "$as_dir" && as_dir=.
  3962. for ac_exec_ext in '' $ac_executable_extensions; do
  3963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3964. ac_cv_prog_ac_ct_AS="as"
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3966. break 2
  3967. fi
  3968. done
  3969. done
  3970. IFS=$as_save_IFS
  3971. fi
  3972. fi
  3973. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3974. if test -n "$ac_ct_AS"; then
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3976. $as_echo "$ac_ct_AS" >&6; }
  3977. else
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3979. $as_echo "no" >&6; }
  3980. fi
  3981. if test "x$ac_ct_AS" = x; then
  3982. AS="false"
  3983. else
  3984. case $cross_compiling:$ac_tool_warned in
  3985. yes:)
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3988. ac_tool_warned=yes ;;
  3989. esac
  3990. AS=$ac_ct_AS
  3991. fi
  3992. else
  3993. AS="$ac_cv_prog_AS"
  3994. fi
  3995. if test -n "$ac_tool_prefix"; then
  3996. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3997. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3999. $as_echo_n "checking for $ac_word... " >&6; }
  4000. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. if test -n "$DLLTOOL"; then
  4004. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4005. else
  4006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4007. for as_dir in $PATH
  4008. do
  4009. IFS=$as_save_IFS
  4010. test -z "$as_dir" && as_dir=.
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4013. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4015. break 2
  4016. fi
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. fi
  4021. fi
  4022. DLLTOOL=$ac_cv_prog_DLLTOOL
  4023. if test -n "$DLLTOOL"; then
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4025. $as_echo "$DLLTOOL" >&6; }
  4026. else
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4028. $as_echo "no" >&6; }
  4029. fi
  4030. fi
  4031. if test -z "$ac_cv_prog_DLLTOOL"; then
  4032. ac_ct_DLLTOOL=$DLLTOOL
  4033. # Extract the first word of "dlltool", so it can be a program name with args.
  4034. set dummy dlltool; ac_word=$2
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4036. $as_echo_n "checking for $ac_word... " >&6; }
  4037. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. if test -n "$ac_ct_DLLTOOL"; then
  4041. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4042. else
  4043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4044. for as_dir in $PATH
  4045. do
  4046. IFS=$as_save_IFS
  4047. test -z "$as_dir" && as_dir=.
  4048. for ac_exec_ext in '' $ac_executable_extensions; do
  4049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4050. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4052. break 2
  4053. fi
  4054. done
  4055. done
  4056. IFS=$as_save_IFS
  4057. fi
  4058. fi
  4059. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4060. if test -n "$ac_ct_DLLTOOL"; then
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4062. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4063. else
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4065. $as_echo "no" >&6; }
  4066. fi
  4067. if test "x$ac_ct_DLLTOOL" = x; then
  4068. DLLTOOL="false"
  4069. else
  4070. case $cross_compiling:$ac_tool_warned in
  4071. yes:)
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4073. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4074. ac_tool_warned=yes ;;
  4075. esac
  4076. DLLTOOL=$ac_ct_DLLTOOL
  4077. fi
  4078. else
  4079. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4080. fi
  4081. if test -n "$ac_tool_prefix"; then
  4082. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4083. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4085. $as_echo_n "checking for $ac_word... " >&6; }
  4086. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4087. $as_echo_n "(cached) " >&6
  4088. else
  4089. if test -n "$OBJDUMP"; then
  4090. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4091. else
  4092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4093. for as_dir in $PATH
  4094. do
  4095. IFS=$as_save_IFS
  4096. test -z "$as_dir" && as_dir=.
  4097. for ac_exec_ext in '' $ac_executable_extensions; do
  4098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4099. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4101. break 2
  4102. fi
  4103. done
  4104. done
  4105. IFS=$as_save_IFS
  4106. fi
  4107. fi
  4108. OBJDUMP=$ac_cv_prog_OBJDUMP
  4109. if test -n "$OBJDUMP"; then
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4111. $as_echo "$OBJDUMP" >&6; }
  4112. else
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4114. $as_echo "no" >&6; }
  4115. fi
  4116. fi
  4117. if test -z "$ac_cv_prog_OBJDUMP"; then
  4118. ac_ct_OBJDUMP=$OBJDUMP
  4119. # Extract the first word of "objdump", so it can be a program name with args.
  4120. set dummy objdump; ac_word=$2
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4122. $as_echo_n "checking for $ac_word... " >&6; }
  4123. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. if test -n "$ac_ct_OBJDUMP"; then
  4127. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4128. else
  4129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4130. for as_dir in $PATH
  4131. do
  4132. IFS=$as_save_IFS
  4133. test -z "$as_dir" && as_dir=.
  4134. for ac_exec_ext in '' $ac_executable_extensions; do
  4135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4136. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4138. break 2
  4139. fi
  4140. done
  4141. done
  4142. IFS=$as_save_IFS
  4143. fi
  4144. fi
  4145. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4146. if test -n "$ac_ct_OBJDUMP"; then
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4148. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4149. else
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4151. $as_echo "no" >&6; }
  4152. fi
  4153. if test "x$ac_ct_OBJDUMP" = x; then
  4154. OBJDUMP="false"
  4155. else
  4156. case $cross_compiling:$ac_tool_warned in
  4157. yes:)
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4160. ac_tool_warned=yes ;;
  4161. esac
  4162. OBJDUMP=$ac_ct_OBJDUMP
  4163. fi
  4164. else
  4165. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4166. fi
  4167. ;;
  4168. esac
  4169. test -z "$AS" && AS=as
  4170. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4171. test -z "$OBJDUMP" && OBJDUMP=objdump
  4172. case `pwd` in
  4173. *\ * | *\ *)
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4175. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4176. esac
  4177. macro_version='2.4.2'
  4178. macro_revision='1.3337'
  4179. ltmain="$ac_aux_dir/ltmain.sh"
  4180. # Backslashify metacharacters that are still active within
  4181. # double-quoted strings.
  4182. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4183. # Same as above, but do not quote variable references.
  4184. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4185. # Sed substitution to delay expansion of an escaped shell variable in a
  4186. # double_quote_subst'ed string.
  4187. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4188. # Sed substitution to delay expansion of an escaped single quote.
  4189. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4190. # Sed substitution to avoid accidental globbing in evaled expressions
  4191. no_glob_subst='s/\*/\\\*/g'
  4192. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4193. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4194. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4196. $as_echo_n "checking how to print strings... " >&6; }
  4197. # Test print first, because it will be a builtin if present.
  4198. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4199. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4200. ECHO='print -r --'
  4201. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4202. ECHO='printf %s\n'
  4203. else
  4204. # Use this function as a fallback that always works.
  4205. func_fallback_echo ()
  4206. {
  4207. eval 'cat <<_LTECHO_EOF
  4208. $1
  4209. _LTECHO_EOF'
  4210. }
  4211. ECHO='func_fallback_echo'
  4212. fi
  4213. # func_echo_all arg...
  4214. # Invoke $ECHO with all args, space-separated.
  4215. func_echo_all ()
  4216. {
  4217. $ECHO ""
  4218. }
  4219. case "$ECHO" in
  4220. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4221. $as_echo "printf" >&6; } ;;
  4222. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4223. $as_echo "print -r" >&6; } ;;
  4224. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4225. $as_echo "cat" >&6; } ;;
  4226. esac
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4228. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4229. if ${ac_cv_path_SED+:} false; then :
  4230. $as_echo_n "(cached) " >&6
  4231. else
  4232. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4233. for ac_i in 1 2 3 4 5 6 7; do
  4234. ac_script="$ac_script$as_nl$ac_script"
  4235. done
  4236. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4237. { ac_script=; unset ac_script;}
  4238. if test -z "$SED"; then
  4239. ac_path_SED_found=false
  4240. # Loop through the user's path and test for each of PROGNAME-LIST
  4241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4242. for as_dir in $PATH
  4243. do
  4244. IFS=$as_save_IFS
  4245. test -z "$as_dir" && as_dir=.
  4246. for ac_prog in sed gsed; do
  4247. for ac_exec_ext in '' $ac_executable_extensions; do
  4248. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4249. as_fn_executable_p "$ac_path_SED" || continue
  4250. # Check for GNU ac_path_SED and select it if it is found.
  4251. # Check for GNU $ac_path_SED
  4252. case `"$ac_path_SED" --version 2>&1` in
  4253. *GNU*)
  4254. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4255. *)
  4256. ac_count=0
  4257. $as_echo_n 0123456789 >"conftest.in"
  4258. while :
  4259. do
  4260. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4261. mv "conftest.tmp" "conftest.in"
  4262. cp "conftest.in" "conftest.nl"
  4263. $as_echo '' >> "conftest.nl"
  4264. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4265. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4266. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4267. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4268. # Best one so far, save it but keep looking for a better one
  4269. ac_cv_path_SED="$ac_path_SED"
  4270. ac_path_SED_max=$ac_count
  4271. fi
  4272. # 10*(2^10) chars as input seems more than enough
  4273. test $ac_count -gt 10 && break
  4274. done
  4275. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4276. esac
  4277. $ac_path_SED_found && break 3
  4278. done
  4279. done
  4280. done
  4281. IFS=$as_save_IFS
  4282. if test -z "$ac_cv_path_SED"; then
  4283. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4284. fi
  4285. else
  4286. ac_cv_path_SED=$SED
  4287. fi
  4288. fi
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4290. $as_echo "$ac_cv_path_SED" >&6; }
  4291. SED="$ac_cv_path_SED"
  4292. rm -f conftest.sed
  4293. test -z "$SED" && SED=sed
  4294. Xsed="$SED -e 1s/^X//"
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4296. $as_echo_n "checking for fgrep... " >&6; }
  4297. if ${ac_cv_path_FGREP+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4301. then ac_cv_path_FGREP="$GREP -F"
  4302. else
  4303. if test -z "$FGREP"; then
  4304. ac_path_FGREP_found=false
  4305. # Loop through the user's path and test for each of PROGNAME-LIST
  4306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4308. do
  4309. IFS=$as_save_IFS
  4310. test -z "$as_dir" && as_dir=.
  4311. for ac_prog in fgrep; do
  4312. for ac_exec_ext in '' $ac_executable_extensions; do
  4313. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4314. as_fn_executable_p "$ac_path_FGREP" || continue
  4315. # Check for GNU ac_path_FGREP and select it if it is found.
  4316. # Check for GNU $ac_path_FGREP
  4317. case `"$ac_path_FGREP" --version 2>&1` in
  4318. *GNU*)
  4319. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4320. *)
  4321. ac_count=0
  4322. $as_echo_n 0123456789 >"conftest.in"
  4323. while :
  4324. do
  4325. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4326. mv "conftest.tmp" "conftest.in"
  4327. cp "conftest.in" "conftest.nl"
  4328. $as_echo 'FGREP' >> "conftest.nl"
  4329. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4330. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4331. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4332. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4333. # Best one so far, save it but keep looking for a better one
  4334. ac_cv_path_FGREP="$ac_path_FGREP"
  4335. ac_path_FGREP_max=$ac_count
  4336. fi
  4337. # 10*(2^10) chars as input seems more than enough
  4338. test $ac_count -gt 10 && break
  4339. done
  4340. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4341. esac
  4342. $ac_path_FGREP_found && break 3
  4343. done
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. if test -z "$ac_cv_path_FGREP"; then
  4348. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4349. fi
  4350. else
  4351. ac_cv_path_FGREP=$FGREP
  4352. fi
  4353. fi
  4354. fi
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4356. $as_echo "$ac_cv_path_FGREP" >&6; }
  4357. FGREP="$ac_cv_path_FGREP"
  4358. test -z "$GREP" && GREP=grep
  4359. # Check whether --with-gnu-ld was given.
  4360. if test "${with_gnu_ld+set}" = set; then :
  4361. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4362. else
  4363. with_gnu_ld=no
  4364. fi
  4365. ac_prog=ld
  4366. if test "$GCC" = yes; then
  4367. # Check if gcc -print-prog-name=ld gives a path.
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4369. $as_echo_n "checking for ld used by $CC... " >&6; }
  4370. case $host in
  4371. *-*-mingw*)
  4372. # gcc leaves a trailing carriage return which upsets mingw
  4373. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4374. *)
  4375. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4376. esac
  4377. case $ac_prog in
  4378. # Accept absolute paths.
  4379. [\\/]* | ?:[\\/]*)
  4380. re_direlt='/[^/][^/]*/\.\./'
  4381. # Canonicalize the pathname of ld
  4382. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4383. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4384. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4385. done
  4386. test -z "$LD" && LD="$ac_prog"
  4387. ;;
  4388. "")
  4389. # If it fails, then pretend we aren't using GCC.
  4390. ac_prog=ld
  4391. ;;
  4392. *)
  4393. # If it is relative, then search for the first ld in PATH.
  4394. with_gnu_ld=unknown
  4395. ;;
  4396. esac
  4397. elif test "$with_gnu_ld" = yes; then
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4399. $as_echo_n "checking for GNU ld... " >&6; }
  4400. else
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4402. $as_echo_n "checking for non-GNU ld... " >&6; }
  4403. fi
  4404. if ${lt_cv_path_LD+:} false; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. if test -z "$LD"; then
  4408. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4409. for ac_dir in $PATH; do
  4410. IFS="$lt_save_ifs"
  4411. test -z "$ac_dir" && ac_dir=.
  4412. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4413. lt_cv_path_LD="$ac_dir/$ac_prog"
  4414. # Check to see if the program is GNU ld. I'd rather use --version,
  4415. # but apparently some variants of GNU ld only accept -v.
  4416. # Break only if it was the GNU/non-GNU ld that we prefer.
  4417. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4418. *GNU* | *'with BFD'*)
  4419. test "$with_gnu_ld" != no && break
  4420. ;;
  4421. *)
  4422. test "$with_gnu_ld" != yes && break
  4423. ;;
  4424. esac
  4425. fi
  4426. done
  4427. IFS="$lt_save_ifs"
  4428. else
  4429. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4430. fi
  4431. fi
  4432. LD="$lt_cv_path_LD"
  4433. if test -n "$LD"; then
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4435. $as_echo "$LD" >&6; }
  4436. else
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4438. $as_echo "no" >&6; }
  4439. fi
  4440. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4442. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4443. if ${lt_cv_prog_gnu_ld+:} false; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4447. case `$LD -v 2>&1 </dev/null` in
  4448. *GNU* | *'with BFD'*)
  4449. lt_cv_prog_gnu_ld=yes
  4450. ;;
  4451. *)
  4452. lt_cv_prog_gnu_ld=no
  4453. ;;
  4454. esac
  4455. fi
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4457. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4458. with_gnu_ld=$lt_cv_prog_gnu_ld
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4460. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4461. if ${lt_cv_path_NM+:} false; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$NM"; then
  4465. # Let the user override the test.
  4466. lt_cv_path_NM="$NM"
  4467. else
  4468. lt_nm_to_check="${ac_tool_prefix}nm"
  4469. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4470. lt_nm_to_check="$lt_nm_to_check nm"
  4471. fi
  4472. for lt_tmp_nm in $lt_nm_to_check; do
  4473. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4474. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4475. IFS="$lt_save_ifs"
  4476. test -z "$ac_dir" && ac_dir=.
  4477. tmp_nm="$ac_dir/$lt_tmp_nm"
  4478. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4479. # Check to see if the nm accepts a BSD-compat flag.
  4480. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4481. # nm: unknown option "B" ignored
  4482. # Tru64's nm complains that /dev/null is an invalid object file
  4483. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4484. */dev/null* | *'Invalid file or object type'*)
  4485. lt_cv_path_NM="$tmp_nm -B"
  4486. break
  4487. ;;
  4488. *)
  4489. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4490. */dev/null*)
  4491. lt_cv_path_NM="$tmp_nm -p"
  4492. break
  4493. ;;
  4494. *)
  4495. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4496. continue # so that we can try to find one that supports BSD flags
  4497. ;;
  4498. esac
  4499. ;;
  4500. esac
  4501. fi
  4502. done
  4503. IFS="$lt_save_ifs"
  4504. done
  4505. : ${lt_cv_path_NM=no}
  4506. fi
  4507. fi
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4509. $as_echo "$lt_cv_path_NM" >&6; }
  4510. if test "$lt_cv_path_NM" != "no"; then
  4511. NM="$lt_cv_path_NM"
  4512. else
  4513. # Didn't find any BSD compatible name lister, look for dumpbin.
  4514. if test -n "$DUMPBIN"; then :
  4515. # Let the user override the test.
  4516. else
  4517. if test -n "$ac_tool_prefix"; then
  4518. for ac_prog in dumpbin "link -dump"
  4519. do
  4520. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4521. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4523. $as_echo_n "checking for $ac_word... " >&6; }
  4524. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if test -n "$DUMPBIN"; then
  4528. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4529. else
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_exec_ext in '' $ac_executable_extensions; do
  4536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4537. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4539. break 2
  4540. fi
  4541. done
  4542. done
  4543. IFS=$as_save_IFS
  4544. fi
  4545. fi
  4546. DUMPBIN=$ac_cv_prog_DUMPBIN
  4547. if test -n "$DUMPBIN"; then
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4549. $as_echo "$DUMPBIN" >&6; }
  4550. else
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4552. $as_echo "no" >&6; }
  4553. fi
  4554. test -n "$DUMPBIN" && break
  4555. done
  4556. fi
  4557. if test -z "$DUMPBIN"; then
  4558. ac_ct_DUMPBIN=$DUMPBIN
  4559. for ac_prog in dumpbin "link -dump"
  4560. do
  4561. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4562. set dummy $ac_prog; ac_word=$2
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4564. $as_echo_n "checking for $ac_word... " >&6; }
  4565. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if test -n "$ac_ct_DUMPBIN"; then
  4569. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4570. else
  4571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4572. for as_dir in $PATH
  4573. do
  4574. IFS=$as_save_IFS
  4575. test -z "$as_dir" && as_dir=.
  4576. for ac_exec_ext in '' $ac_executable_extensions; do
  4577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4578. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4580. break 2
  4581. fi
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. fi
  4586. fi
  4587. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4588. if test -n "$ac_ct_DUMPBIN"; then
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4590. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4591. else
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4593. $as_echo "no" >&6; }
  4594. fi
  4595. test -n "$ac_ct_DUMPBIN" && break
  4596. done
  4597. if test "x$ac_ct_DUMPBIN" = x; then
  4598. DUMPBIN=":"
  4599. else
  4600. case $cross_compiling:$ac_tool_warned in
  4601. yes:)
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4603. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4604. ac_tool_warned=yes ;;
  4605. esac
  4606. DUMPBIN=$ac_ct_DUMPBIN
  4607. fi
  4608. fi
  4609. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4610. *COFF*)
  4611. DUMPBIN="$DUMPBIN -symbols"
  4612. ;;
  4613. *)
  4614. DUMPBIN=:
  4615. ;;
  4616. esac
  4617. fi
  4618. if test "$DUMPBIN" != ":"; then
  4619. NM="$DUMPBIN"
  4620. fi
  4621. fi
  4622. test -z "$NM" && NM=nm
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4624. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4625. if ${lt_cv_nm_interface+:} false; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. lt_cv_nm_interface="BSD nm"
  4629. echo "int some_variable = 0;" > conftest.$ac_ext
  4630. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4631. (eval "$ac_compile" 2>conftest.err)
  4632. cat conftest.err >&5
  4633. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4634. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4635. cat conftest.err >&5
  4636. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4637. cat conftest.out >&5
  4638. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4639. lt_cv_nm_interface="MS dumpbin"
  4640. fi
  4641. rm -f conftest*
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4644. $as_echo "$lt_cv_nm_interface" >&6; }
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4646. $as_echo_n "checking whether ln -s works... " >&6; }
  4647. LN_S=$as_ln_s
  4648. if test "$LN_S" = "ln -s"; then
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4650. $as_echo "yes" >&6; }
  4651. else
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4653. $as_echo "no, using $LN_S" >&6; }
  4654. fi
  4655. # find the maximum length of command line arguments
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4657. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4658. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. i=0
  4662. teststring="ABCD"
  4663. case $build_os in
  4664. msdosdjgpp*)
  4665. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4666. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4667. # during glob expansion). Even if it were fixed, the result of this
  4668. # check would be larger than it should be.
  4669. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4670. ;;
  4671. gnu*)
  4672. # Under GNU Hurd, this test is not required because there is
  4673. # no limit to the length of command line arguments.
  4674. # Libtool will interpret -1 as no limit whatsoever
  4675. lt_cv_sys_max_cmd_len=-1;
  4676. ;;
  4677. cygwin* | mingw* | cegcc*)
  4678. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4679. # about 5 minutes as the teststring grows exponentially.
  4680. # Worse, since 9x/ME are not pre-emptively multitasking,
  4681. # you end up with a "frozen" computer, even though with patience
  4682. # the test eventually succeeds (with a max line length of 256k).
  4683. # Instead, let's just punt: use the minimum linelength reported by
  4684. # all of the supported platforms: 8192 (on NT/2K/XP).
  4685. lt_cv_sys_max_cmd_len=8192;
  4686. ;;
  4687. mint*)
  4688. # On MiNT this can take a long time and run out of memory.
  4689. lt_cv_sys_max_cmd_len=8192;
  4690. ;;
  4691. amigaos*)
  4692. # On AmigaOS with pdksh, this test takes hours, literally.
  4693. # So we just punt and use a minimum line length of 8192.
  4694. lt_cv_sys_max_cmd_len=8192;
  4695. ;;
  4696. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4697. # This has been around since 386BSD, at least. Likely further.
  4698. if test -x /sbin/sysctl; then
  4699. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4700. elif test -x /usr/sbin/sysctl; then
  4701. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4702. else
  4703. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4704. fi
  4705. # And add a safety zone
  4706. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4707. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4708. ;;
  4709. interix*)
  4710. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4711. lt_cv_sys_max_cmd_len=196608
  4712. ;;
  4713. os2*)
  4714. # The test takes a long time on OS/2.
  4715. lt_cv_sys_max_cmd_len=8192
  4716. ;;
  4717. osf*)
  4718. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4719. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4720. # nice to cause kernel panics so lets avoid the loop below.
  4721. # First set a reasonable default.
  4722. lt_cv_sys_max_cmd_len=16384
  4723. #
  4724. if test -x /sbin/sysconfig; then
  4725. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4726. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4727. esac
  4728. fi
  4729. ;;
  4730. sco3.2v5*)
  4731. lt_cv_sys_max_cmd_len=102400
  4732. ;;
  4733. sysv5* | sco5v6* | sysv4.2uw2*)
  4734. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4735. if test -n "$kargmax"; then
  4736. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4737. else
  4738. lt_cv_sys_max_cmd_len=32768
  4739. fi
  4740. ;;
  4741. *)
  4742. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4743. if test -n "$lt_cv_sys_max_cmd_len"; then
  4744. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4745. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4746. else
  4747. # Make teststring a little bigger before we do anything with it.
  4748. # a 1K string should be a reasonable start.
  4749. for i in 1 2 3 4 5 6 7 8 ; do
  4750. teststring=$teststring$teststring
  4751. done
  4752. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4753. # If test is not a shell built-in, we'll probably end up computing a
  4754. # maximum length that is only half of the actual maximum length, but
  4755. # we can't tell.
  4756. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4757. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4758. test $i != 17 # 1/2 MB should be enough
  4759. do
  4760. i=`expr $i + 1`
  4761. teststring=$teststring$teststring
  4762. done
  4763. # Only check the string length outside the loop.
  4764. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4765. teststring=
  4766. # Add a significant safety factor because C++ compilers can tack on
  4767. # massive amounts of additional arguments before passing them to the
  4768. # linker. It appears as though 1/2 is a usable value.
  4769. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4770. fi
  4771. ;;
  4772. esac
  4773. fi
  4774. if test -n $lt_cv_sys_max_cmd_len ; then
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4776. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4777. else
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4779. $as_echo "none" >&6; }
  4780. fi
  4781. max_cmd_len=$lt_cv_sys_max_cmd_len
  4782. : ${CP="cp -f"}
  4783. : ${MV="mv -f"}
  4784. : ${RM="rm -f"}
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4786. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4787. # Try some XSI features
  4788. xsi_shell=no
  4789. ( _lt_dummy="a/b/c"
  4790. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4791. = c,a/b,b/c, \
  4792. && eval 'test $(( 1 + 1 )) -eq 2 \
  4793. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4794. && xsi_shell=yes
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4796. $as_echo "$xsi_shell" >&6; }
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4798. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4799. lt_shell_append=no
  4800. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4801. >/dev/null 2>&1 \
  4802. && lt_shell_append=yes
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4804. $as_echo "$lt_shell_append" >&6; }
  4805. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4806. lt_unset=unset
  4807. else
  4808. lt_unset=false
  4809. fi
  4810. # test EBCDIC or ASCII
  4811. case `echo X|tr X '\101'` in
  4812. A) # ASCII based system
  4813. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4814. lt_SP2NL='tr \040 \012'
  4815. lt_NL2SP='tr \015\012 \040\040'
  4816. ;;
  4817. *) # EBCDIC based system
  4818. lt_SP2NL='tr \100 \n'
  4819. lt_NL2SP='tr \r\n \100\100'
  4820. ;;
  4821. esac
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4823. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4824. if ${lt_cv_to_host_file_cmd+:} false; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. case $host in
  4828. *-*-mingw* )
  4829. case $build in
  4830. *-*-mingw* ) # actually msys
  4831. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4832. ;;
  4833. *-*-cygwin* )
  4834. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4835. ;;
  4836. * ) # otherwise, assume *nix
  4837. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4838. ;;
  4839. esac
  4840. ;;
  4841. *-*-cygwin* )
  4842. case $build in
  4843. *-*-mingw* ) # actually msys
  4844. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4845. ;;
  4846. *-*-cygwin* )
  4847. lt_cv_to_host_file_cmd=func_convert_file_noop
  4848. ;;
  4849. * ) # otherwise, assume *nix
  4850. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4851. ;;
  4852. esac
  4853. ;;
  4854. * ) # unhandled hosts (and "normal" native builds)
  4855. lt_cv_to_host_file_cmd=func_convert_file_noop
  4856. ;;
  4857. esac
  4858. fi
  4859. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4861. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4863. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4864. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. #assume ordinary cross tools, or native build.
  4868. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4869. case $host in
  4870. *-*-mingw* )
  4871. case $build in
  4872. *-*-mingw* ) # actually msys
  4873. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4874. ;;
  4875. esac
  4876. ;;
  4877. esac
  4878. fi
  4879. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4881. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4883. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4884. if ${lt_cv_ld_reload_flag+:} false; then :
  4885. $as_echo_n "(cached) " >&6
  4886. else
  4887. lt_cv_ld_reload_flag='-r'
  4888. fi
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4890. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4891. reload_flag=$lt_cv_ld_reload_flag
  4892. case $reload_flag in
  4893. "" | " "*) ;;
  4894. *) reload_flag=" $reload_flag" ;;
  4895. esac
  4896. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4897. case $host_os in
  4898. cygwin* | mingw* | pw32* | cegcc*)
  4899. if test "$GCC" != yes; then
  4900. reload_cmds=false
  4901. fi
  4902. ;;
  4903. darwin*)
  4904. if test "$GCC" = yes; then
  4905. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4906. else
  4907. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4908. fi
  4909. ;;
  4910. esac
  4911. if test -n "$ac_tool_prefix"; then
  4912. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4913. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. $as_echo_n "checking for $ac_word... " >&6; }
  4916. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$OBJDUMP"; then
  4920. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4921. else
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_exec_ext in '' $ac_executable_extensions; do
  4928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4929. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. fi
  4937. fi
  4938. OBJDUMP=$ac_cv_prog_OBJDUMP
  4939. if test -n "$OBJDUMP"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4941. $as_echo "$OBJDUMP" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. fi
  4947. if test -z "$ac_cv_prog_OBJDUMP"; then
  4948. ac_ct_OBJDUMP=$OBJDUMP
  4949. # Extract the first word of "objdump", so it can be a program name with args.
  4950. set dummy objdump; ac_word=$2
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4952. $as_echo_n "checking for $ac_word... " >&6; }
  4953. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4954. $as_echo_n "(cached) " >&6
  4955. else
  4956. if test -n "$ac_ct_OBJDUMP"; then
  4957. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4958. else
  4959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4960. for as_dir in $PATH
  4961. do
  4962. IFS=$as_save_IFS
  4963. test -z "$as_dir" && as_dir=.
  4964. for ac_exec_ext in '' $ac_executable_extensions; do
  4965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4966. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4968. break 2
  4969. fi
  4970. done
  4971. done
  4972. IFS=$as_save_IFS
  4973. fi
  4974. fi
  4975. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4976. if test -n "$ac_ct_OBJDUMP"; then
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4978. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4979. else
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4981. $as_echo "no" >&6; }
  4982. fi
  4983. if test "x$ac_ct_OBJDUMP" = x; then
  4984. OBJDUMP="false"
  4985. else
  4986. case $cross_compiling:$ac_tool_warned in
  4987. yes:)
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4990. ac_tool_warned=yes ;;
  4991. esac
  4992. OBJDUMP=$ac_ct_OBJDUMP
  4993. fi
  4994. else
  4995. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4996. fi
  4997. test -z "$OBJDUMP" && OBJDUMP=objdump
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4999. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5000. if ${lt_cv_deplibs_check_method+:} false; then :
  5001. $as_echo_n "(cached) " >&6
  5002. else
  5003. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5004. lt_cv_file_magic_test_file=
  5005. lt_cv_deplibs_check_method='unknown'
  5006. # Need to set the preceding variable on all platforms that support
  5007. # interlibrary dependencies.
  5008. # 'none' -- dependencies not supported.
  5009. # `unknown' -- same as none, but documents that we really don't know.
  5010. # 'pass_all' -- all dependencies passed with no checks.
  5011. # 'test_compile' -- check by making test program.
  5012. # 'file_magic [[regex]]' -- check by looking for files in library path
  5013. # which responds to the $file_magic_cmd with a given extended regex.
  5014. # If you have `file' or equivalent on your system and you're not sure
  5015. # whether `pass_all' will *always* work, you probably want this one.
  5016. case $host_os in
  5017. aix[4-9]*)
  5018. lt_cv_deplibs_check_method=pass_all
  5019. ;;
  5020. beos*)
  5021. lt_cv_deplibs_check_method=pass_all
  5022. ;;
  5023. bsdi[45]*)
  5024. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5025. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5026. lt_cv_file_magic_test_file=/shlib/libc.so
  5027. ;;
  5028. cygwin*)
  5029. # func_win32_libid is a shell function defined in ltmain.sh
  5030. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5031. lt_cv_file_magic_cmd='func_win32_libid'
  5032. ;;
  5033. mingw* | pw32*)
  5034. # Base MSYS/MinGW do not provide the 'file' command needed by
  5035. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5036. # unless we find 'file', for example because we are cross-compiling.
  5037. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5038. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5039. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5040. lt_cv_file_magic_cmd='func_win32_libid'
  5041. else
  5042. # Keep this pattern in sync with the one in func_win32_libid.
  5043. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5044. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5045. fi
  5046. ;;
  5047. cegcc*)
  5048. # use the weaker test based on 'objdump'. See mingw*.
  5049. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5050. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5051. ;;
  5052. darwin* | rhapsody*)
  5053. lt_cv_deplibs_check_method=pass_all
  5054. ;;
  5055. freebsd* | dragonfly*)
  5056. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5057. case $host_cpu in
  5058. i*86 )
  5059. # Not sure whether the presence of OpenBSD here was a mistake.
  5060. # Let's accept both of them until this is cleared up.
  5061. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5062. lt_cv_file_magic_cmd=/usr/bin/file
  5063. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5064. ;;
  5065. esac
  5066. else
  5067. lt_cv_deplibs_check_method=pass_all
  5068. fi
  5069. ;;
  5070. gnu*)
  5071. lt_cv_deplibs_check_method=pass_all
  5072. ;;
  5073. haiku*)
  5074. lt_cv_deplibs_check_method=pass_all
  5075. ;;
  5076. hpux10.20* | hpux11*)
  5077. lt_cv_file_magic_cmd=/usr/bin/file
  5078. case $host_cpu in
  5079. ia64*)
  5080. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5081. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5082. ;;
  5083. hppa*64*)
  5084. 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]'
  5085. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5086. ;;
  5087. *)
  5088. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5089. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5090. ;;
  5091. esac
  5092. ;;
  5093. interix[3-9]*)
  5094. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5095. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5096. ;;
  5097. irix5* | irix6* | nonstopux*)
  5098. case $LD in
  5099. *-32|*"-32 ") libmagic=32-bit;;
  5100. *-n32|*"-n32 ") libmagic=N32;;
  5101. *-64|*"-64 ") libmagic=64-bit;;
  5102. *) libmagic=never-match;;
  5103. esac
  5104. lt_cv_deplibs_check_method=pass_all
  5105. ;;
  5106. # This must be glibc/ELF.
  5107. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5108. lt_cv_deplibs_check_method=pass_all
  5109. ;;
  5110. netbsd*)
  5111. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5112. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5113. else
  5114. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5115. fi
  5116. ;;
  5117. newos6*)
  5118. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5119. lt_cv_file_magic_cmd=/usr/bin/file
  5120. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5121. ;;
  5122. *nto* | *qnx*)
  5123. lt_cv_deplibs_check_method=pass_all
  5124. ;;
  5125. openbsd*)
  5126. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5127. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5128. else
  5129. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5130. fi
  5131. ;;
  5132. osf3* | osf4* | osf5*)
  5133. lt_cv_deplibs_check_method=pass_all
  5134. ;;
  5135. rdos*)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. solaris*)
  5139. lt_cv_deplibs_check_method=pass_all
  5140. ;;
  5141. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5142. lt_cv_deplibs_check_method=pass_all
  5143. ;;
  5144. sysv4 | sysv4.3*)
  5145. case $host_vendor in
  5146. motorola)
  5147. 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]'
  5148. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5149. ;;
  5150. ncr)
  5151. lt_cv_deplibs_check_method=pass_all
  5152. ;;
  5153. sequent)
  5154. lt_cv_file_magic_cmd='/bin/file'
  5155. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5156. ;;
  5157. sni)
  5158. lt_cv_file_magic_cmd='/bin/file'
  5159. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5160. lt_cv_file_magic_test_file=/lib/libc.so
  5161. ;;
  5162. siemens)
  5163. lt_cv_deplibs_check_method=pass_all
  5164. ;;
  5165. pc)
  5166. lt_cv_deplibs_check_method=pass_all
  5167. ;;
  5168. esac
  5169. ;;
  5170. tpf*)
  5171. lt_cv_deplibs_check_method=pass_all
  5172. ;;
  5173. esac
  5174. fi
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5176. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5177. file_magic_glob=
  5178. want_nocaseglob=no
  5179. if test "$build" = "$host"; then
  5180. case $host_os in
  5181. mingw* | pw32*)
  5182. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5183. want_nocaseglob=yes
  5184. else
  5185. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5186. fi
  5187. ;;
  5188. esac
  5189. fi
  5190. file_magic_cmd=$lt_cv_file_magic_cmd
  5191. deplibs_check_method=$lt_cv_deplibs_check_method
  5192. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5193. if test -n "$ac_tool_prefix"; then
  5194. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5195. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5197. $as_echo_n "checking for $ac_word... " >&6; }
  5198. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5199. $as_echo_n "(cached) " >&6
  5200. else
  5201. if test -n "$DLLTOOL"; then
  5202. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5203. else
  5204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5205. for as_dir in $PATH
  5206. do
  5207. IFS=$as_save_IFS
  5208. test -z "$as_dir" && as_dir=.
  5209. for ac_exec_ext in '' $ac_executable_extensions; do
  5210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5211. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5213. break 2
  5214. fi
  5215. done
  5216. done
  5217. IFS=$as_save_IFS
  5218. fi
  5219. fi
  5220. DLLTOOL=$ac_cv_prog_DLLTOOL
  5221. if test -n "$DLLTOOL"; then
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5223. $as_echo "$DLLTOOL" >&6; }
  5224. else
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5226. $as_echo "no" >&6; }
  5227. fi
  5228. fi
  5229. if test -z "$ac_cv_prog_DLLTOOL"; then
  5230. ac_ct_DLLTOOL=$DLLTOOL
  5231. # Extract the first word of "dlltool", so it can be a program name with args.
  5232. set dummy dlltool; ac_word=$2
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5234. $as_echo_n "checking for $ac_word... " >&6; }
  5235. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5236. $as_echo_n "(cached) " >&6
  5237. else
  5238. if test -n "$ac_ct_DLLTOOL"; then
  5239. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5240. else
  5241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5242. for as_dir in $PATH
  5243. do
  5244. IFS=$as_save_IFS
  5245. test -z "$as_dir" && as_dir=.
  5246. for ac_exec_ext in '' $ac_executable_extensions; do
  5247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5248. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5250. break 2
  5251. fi
  5252. done
  5253. done
  5254. IFS=$as_save_IFS
  5255. fi
  5256. fi
  5257. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5258. if test -n "$ac_ct_DLLTOOL"; then
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5260. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5261. else
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5263. $as_echo "no" >&6; }
  5264. fi
  5265. if test "x$ac_ct_DLLTOOL" = x; then
  5266. DLLTOOL="false"
  5267. else
  5268. case $cross_compiling:$ac_tool_warned in
  5269. yes:)
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5271. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5272. ac_tool_warned=yes ;;
  5273. esac
  5274. DLLTOOL=$ac_ct_DLLTOOL
  5275. fi
  5276. else
  5277. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5278. fi
  5279. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5281. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5282. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5286. case $host_os in
  5287. cygwin* | mingw* | pw32* | cegcc*)
  5288. # two different shell functions defined in ltmain.sh
  5289. # decide which to use based on capabilities of $DLLTOOL
  5290. case `$DLLTOOL --help 2>&1` in
  5291. *--identify-strict*)
  5292. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5293. ;;
  5294. *)
  5295. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5296. ;;
  5297. esac
  5298. ;;
  5299. *)
  5300. # fallback: assume linklib IS sharedlib
  5301. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5302. ;;
  5303. esac
  5304. fi
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5306. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5307. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5308. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5309. if test -n "$ac_tool_prefix"; then
  5310. for ac_prog in ar
  5311. do
  5312. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5313. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5315. $as_echo_n "checking for $ac_word... " >&6; }
  5316. if ${ac_cv_prog_AR+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. if test -n "$AR"; then
  5320. ac_cv_prog_AR="$AR" # Let the user override the test.
  5321. else
  5322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5323. for as_dir in $PATH
  5324. do
  5325. IFS=$as_save_IFS
  5326. test -z "$as_dir" && as_dir=.
  5327. for ac_exec_ext in '' $ac_executable_extensions; do
  5328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5329. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5331. break 2
  5332. fi
  5333. done
  5334. done
  5335. IFS=$as_save_IFS
  5336. fi
  5337. fi
  5338. AR=$ac_cv_prog_AR
  5339. if test -n "$AR"; then
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5341. $as_echo "$AR" >&6; }
  5342. else
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5344. $as_echo "no" >&6; }
  5345. fi
  5346. test -n "$AR" && break
  5347. done
  5348. fi
  5349. if test -z "$AR"; then
  5350. ac_ct_AR=$AR
  5351. for ac_prog in ar
  5352. do
  5353. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5354. set dummy $ac_prog; ac_word=$2
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5356. $as_echo_n "checking for $ac_word... " >&6; }
  5357. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5358. $as_echo_n "(cached) " >&6
  5359. else
  5360. if test -n "$ac_ct_AR"; then
  5361. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5362. else
  5363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5364. for as_dir in $PATH
  5365. do
  5366. IFS=$as_save_IFS
  5367. test -z "$as_dir" && as_dir=.
  5368. for ac_exec_ext in '' $ac_executable_extensions; do
  5369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5370. ac_cv_prog_ac_ct_AR="$ac_prog"
  5371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5372. break 2
  5373. fi
  5374. done
  5375. done
  5376. IFS=$as_save_IFS
  5377. fi
  5378. fi
  5379. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5380. if test -n "$ac_ct_AR"; then
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5382. $as_echo "$ac_ct_AR" >&6; }
  5383. else
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5385. $as_echo "no" >&6; }
  5386. fi
  5387. test -n "$ac_ct_AR" && break
  5388. done
  5389. if test "x$ac_ct_AR" = x; then
  5390. AR="false"
  5391. else
  5392. case $cross_compiling:$ac_tool_warned in
  5393. yes:)
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5395. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5396. ac_tool_warned=yes ;;
  5397. esac
  5398. AR=$ac_ct_AR
  5399. fi
  5400. fi
  5401. : ${AR=ar}
  5402. : ${AR_FLAGS=cru}
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5404. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5405. if ${lt_cv_ar_at_file+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. lt_cv_ar_at_file=no
  5409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5410. /* end confdefs.h. */
  5411. int
  5412. main ()
  5413. {
  5414. ;
  5415. return 0;
  5416. }
  5417. _ACEOF
  5418. if ac_fn_c_try_compile "$LINENO"; then :
  5419. echo conftest.$ac_objext > conftest.lst
  5420. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5421. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5422. (eval $lt_ar_try) 2>&5
  5423. ac_status=$?
  5424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5425. test $ac_status = 0; }
  5426. if test "$ac_status" -eq 0; then
  5427. # Ensure the archiver fails upon bogus file names.
  5428. rm -f conftest.$ac_objext libconftest.a
  5429. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5430. (eval $lt_ar_try) 2>&5
  5431. ac_status=$?
  5432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5433. test $ac_status = 0; }
  5434. if test "$ac_status" -ne 0; then
  5435. lt_cv_ar_at_file=@
  5436. fi
  5437. fi
  5438. rm -f conftest.* libconftest.a
  5439. fi
  5440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5441. fi
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5443. $as_echo "$lt_cv_ar_at_file" >&6; }
  5444. if test "x$lt_cv_ar_at_file" = xno; then
  5445. archiver_list_spec=
  5446. else
  5447. archiver_list_spec=$lt_cv_ar_at_file
  5448. fi
  5449. if test -n "$ac_tool_prefix"; then
  5450. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5451. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5453. $as_echo_n "checking for $ac_word... " >&6; }
  5454. if ${ac_cv_prog_STRIP+:} false; then :
  5455. $as_echo_n "(cached) " >&6
  5456. else
  5457. if test -n "$STRIP"; then
  5458. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5459. else
  5460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5461. for as_dir in $PATH
  5462. do
  5463. IFS=$as_save_IFS
  5464. test -z "$as_dir" && as_dir=.
  5465. for ac_exec_ext in '' $ac_executable_extensions; do
  5466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5467. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5469. break 2
  5470. fi
  5471. done
  5472. done
  5473. IFS=$as_save_IFS
  5474. fi
  5475. fi
  5476. STRIP=$ac_cv_prog_STRIP
  5477. if test -n "$STRIP"; then
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5479. $as_echo "$STRIP" >&6; }
  5480. else
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5482. $as_echo "no" >&6; }
  5483. fi
  5484. fi
  5485. if test -z "$ac_cv_prog_STRIP"; then
  5486. ac_ct_STRIP=$STRIP
  5487. # Extract the first word of "strip", so it can be a program name with args.
  5488. set dummy strip; ac_word=$2
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5490. $as_echo_n "checking for $ac_word... " >&6; }
  5491. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5492. $as_echo_n "(cached) " >&6
  5493. else
  5494. if test -n "$ac_ct_STRIP"; then
  5495. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5504. ac_cv_prog_ac_ct_STRIP="strip"
  5505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. fi
  5512. fi
  5513. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5514. if test -n "$ac_ct_STRIP"; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5516. $as_echo "$ac_ct_STRIP" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5519. $as_echo "no" >&6; }
  5520. fi
  5521. if test "x$ac_ct_STRIP" = x; then
  5522. STRIP=":"
  5523. else
  5524. case $cross_compiling:$ac_tool_warned in
  5525. yes:)
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5528. ac_tool_warned=yes ;;
  5529. esac
  5530. STRIP=$ac_ct_STRIP
  5531. fi
  5532. else
  5533. STRIP="$ac_cv_prog_STRIP"
  5534. fi
  5535. test -z "$STRIP" && STRIP=:
  5536. if test -n "$ac_tool_prefix"; then
  5537. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5538. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_RANLIB+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$RANLIB"; then
  5545. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. RANLIB=$ac_cv_prog_RANLIB
  5564. if test -n "$RANLIB"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5566. $as_echo "$RANLIB" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. fi
  5572. if test -z "$ac_cv_prog_RANLIB"; then
  5573. ac_ct_RANLIB=$RANLIB
  5574. # Extract the first word of "ranlib", so it can be a program name with args.
  5575. set dummy ranlib; ac_word=$2
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5577. $as_echo_n "checking for $ac_word... " >&6; }
  5578. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5579. $as_echo_n "(cached) " >&6
  5580. else
  5581. if test -n "$ac_ct_RANLIB"; then
  5582. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5583. else
  5584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5585. for as_dir in $PATH
  5586. do
  5587. IFS=$as_save_IFS
  5588. test -z "$as_dir" && as_dir=.
  5589. for ac_exec_ext in '' $ac_executable_extensions; do
  5590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5591. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5593. break 2
  5594. fi
  5595. done
  5596. done
  5597. IFS=$as_save_IFS
  5598. fi
  5599. fi
  5600. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5601. if test -n "$ac_ct_RANLIB"; then
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5603. $as_echo "$ac_ct_RANLIB" >&6; }
  5604. else
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. fi
  5608. if test "x$ac_ct_RANLIB" = x; then
  5609. RANLIB=":"
  5610. else
  5611. case $cross_compiling:$ac_tool_warned in
  5612. yes:)
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5615. ac_tool_warned=yes ;;
  5616. esac
  5617. RANLIB=$ac_ct_RANLIB
  5618. fi
  5619. else
  5620. RANLIB="$ac_cv_prog_RANLIB"
  5621. fi
  5622. test -z "$RANLIB" && RANLIB=:
  5623. # Determine commands to create old-style static archives.
  5624. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5625. old_postinstall_cmds='chmod 644 $oldlib'
  5626. old_postuninstall_cmds=
  5627. if test -n "$RANLIB"; then
  5628. case $host_os in
  5629. openbsd*)
  5630. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5631. ;;
  5632. *)
  5633. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5634. ;;
  5635. esac
  5636. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5637. fi
  5638. case $host_os in
  5639. darwin*)
  5640. lock_old_archive_extraction=yes ;;
  5641. *)
  5642. lock_old_archive_extraction=no ;;
  5643. esac
  5644. for ac_prog in gawk mawk nawk awk
  5645. do
  5646. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5647. set dummy $ac_prog; ac_word=$2
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5649. $as_echo_n "checking for $ac_word... " >&6; }
  5650. if ${ac_cv_prog_AWK+:} false; then :
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. if test -n "$AWK"; then
  5654. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5655. else
  5656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5657. for as_dir in $PATH
  5658. do
  5659. IFS=$as_save_IFS
  5660. test -z "$as_dir" && as_dir=.
  5661. for ac_exec_ext in '' $ac_executable_extensions; do
  5662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5663. ac_cv_prog_AWK="$ac_prog"
  5664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5665. break 2
  5666. fi
  5667. done
  5668. done
  5669. IFS=$as_save_IFS
  5670. fi
  5671. fi
  5672. AWK=$ac_cv_prog_AWK
  5673. if test -n "$AWK"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5675. $as_echo "$AWK" >&6; }
  5676. else
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. $as_echo "no" >&6; }
  5679. fi
  5680. test -n "$AWK" && break
  5681. done
  5682. # If no C compiler was specified, use CC.
  5683. LTCC=${LTCC-"$CC"}
  5684. # If no C compiler flags were specified, use CFLAGS.
  5685. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5686. # Allow CC to be a program name with arguments.
  5687. compiler=$CC
  5688. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5690. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5691. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5692. $as_echo_n "(cached) " >&6
  5693. else
  5694. # These are sane defaults that work on at least a few old systems.
  5695. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5696. # Character class describing NM global symbol codes.
  5697. symcode='[BCDEGRST]'
  5698. # Regexp to match symbols that can be accessed directly from C.
  5699. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5700. # Define system-specific variables.
  5701. case $host_os in
  5702. aix*)
  5703. symcode='[BCDT]'
  5704. ;;
  5705. cygwin* | mingw* | pw32* | cegcc*)
  5706. symcode='[ABCDGISTW]'
  5707. ;;
  5708. hpux*)
  5709. if test "$host_cpu" = ia64; then
  5710. symcode='[ABCDEGRST]'
  5711. fi
  5712. ;;
  5713. irix* | nonstopux*)
  5714. symcode='[BCDEGRST]'
  5715. ;;
  5716. osf*)
  5717. symcode='[BCDEGQRST]'
  5718. ;;
  5719. solaris*)
  5720. symcode='[BDRT]'
  5721. ;;
  5722. sco3.2v5*)
  5723. symcode='[DT]'
  5724. ;;
  5725. sysv4.2uw2*)
  5726. symcode='[DT]'
  5727. ;;
  5728. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5729. symcode='[ABDT]'
  5730. ;;
  5731. sysv4)
  5732. symcode='[DFNSTU]'
  5733. ;;
  5734. esac
  5735. # If we're using GNU nm, then use its standard symbol codes.
  5736. case `$NM -V 2>&1` in
  5737. *GNU* | *'with BFD'*)
  5738. symcode='[ABCDGIRSTW]' ;;
  5739. esac
  5740. # Transform an extracted symbol line into a proper C declaration.
  5741. # Some systems (esp. on ia64) link data and code symbols differently,
  5742. # so use this general approach.
  5743. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5744. # Transform an extracted symbol line into symbol name and symbol address
  5745. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5746. 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'"
  5747. # Handle CRLF in mingw tool chain
  5748. opt_cr=
  5749. case $build_os in
  5750. mingw*)
  5751. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5752. ;;
  5753. esac
  5754. # Try without a prefix underscore, then with it.
  5755. for ac_symprfx in "" "_"; do
  5756. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5757. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5758. # Write the raw and C identifiers.
  5759. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5760. # Fake it for dumpbin and say T for any non-static function
  5761. # and D for any global variable.
  5762. # Also find C++ and __fastcall symbols from MSVC++,
  5763. # which start with @ or ?.
  5764. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5765. " {last_section=section; section=\$ 3};"\
  5766. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5767. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5768. " \$ 0!~/External *\|/{next};"\
  5769. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5770. " {if(hide[section]) next};"\
  5771. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5772. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5773. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5774. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5775. " ' prfx=^$ac_symprfx"
  5776. else
  5777. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5778. fi
  5779. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5780. # Check to see that the pipe works correctly.
  5781. pipe_works=no
  5782. rm -f conftest*
  5783. cat > conftest.$ac_ext <<_LT_EOF
  5784. #ifdef __cplusplus
  5785. extern "C" {
  5786. #endif
  5787. char nm_test_var;
  5788. void nm_test_func(void);
  5789. void nm_test_func(void){}
  5790. #ifdef __cplusplus
  5791. }
  5792. #endif
  5793. int main(){nm_test_var='a';nm_test_func();return(0);}
  5794. _LT_EOF
  5795. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5796. (eval $ac_compile) 2>&5
  5797. ac_status=$?
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5799. test $ac_status = 0; }; then
  5800. # Now try to grab the symbols.
  5801. nlist=conftest.nm
  5802. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5803. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5804. ac_status=$?
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5806. test $ac_status = 0; } && test -s "$nlist"; then
  5807. # Try sorting and uniquifying the output.
  5808. if sort "$nlist" | uniq > "$nlist"T; then
  5809. mv -f "$nlist"T "$nlist"
  5810. else
  5811. rm -f "$nlist"T
  5812. fi
  5813. # Make sure that we snagged all the symbols we need.
  5814. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5815. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5816. cat <<_LT_EOF > conftest.$ac_ext
  5817. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5818. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5819. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5820. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5821. # define LT_DLSYM_CONST
  5822. #elif defined(__osf__)
  5823. /* This system does not cope well with relocations in const data. */
  5824. # define LT_DLSYM_CONST
  5825. #else
  5826. # define LT_DLSYM_CONST const
  5827. #endif
  5828. #ifdef __cplusplus
  5829. extern "C" {
  5830. #endif
  5831. _LT_EOF
  5832. # Now generate the symbol file.
  5833. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5834. cat <<_LT_EOF >> conftest.$ac_ext
  5835. /* The mapping between symbol names and symbols. */
  5836. LT_DLSYM_CONST struct {
  5837. const char *name;
  5838. void *address;
  5839. }
  5840. lt__PROGRAM__LTX_preloaded_symbols[] =
  5841. {
  5842. { "@PROGRAM@", (void *) 0 },
  5843. _LT_EOF
  5844. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5845. cat <<\_LT_EOF >> conftest.$ac_ext
  5846. {0, (void *) 0}
  5847. };
  5848. /* This works around a problem in FreeBSD linker */
  5849. #ifdef FREEBSD_WORKAROUND
  5850. static const void *lt_preloaded_setup() {
  5851. return lt__PROGRAM__LTX_preloaded_symbols;
  5852. }
  5853. #endif
  5854. #ifdef __cplusplus
  5855. }
  5856. #endif
  5857. _LT_EOF
  5858. # Now try linking the two files.
  5859. mv conftest.$ac_objext conftstm.$ac_objext
  5860. lt_globsym_save_LIBS=$LIBS
  5861. lt_globsym_save_CFLAGS=$CFLAGS
  5862. LIBS="conftstm.$ac_objext"
  5863. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5864. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5865. (eval $ac_link) 2>&5
  5866. ac_status=$?
  5867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5868. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5869. pipe_works=yes
  5870. fi
  5871. LIBS=$lt_globsym_save_LIBS
  5872. CFLAGS=$lt_globsym_save_CFLAGS
  5873. else
  5874. echo "cannot find nm_test_func in $nlist" >&5
  5875. fi
  5876. else
  5877. echo "cannot find nm_test_var in $nlist" >&5
  5878. fi
  5879. else
  5880. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5881. fi
  5882. else
  5883. echo "$progname: failed program was:" >&5
  5884. cat conftest.$ac_ext >&5
  5885. fi
  5886. rm -rf conftest* conftst*
  5887. # Do not use the global_symbol_pipe unless it works.
  5888. if test "$pipe_works" = yes; then
  5889. break
  5890. else
  5891. lt_cv_sys_global_symbol_pipe=
  5892. fi
  5893. done
  5894. fi
  5895. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5896. lt_cv_sys_global_symbol_to_cdecl=
  5897. fi
  5898. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5900. $as_echo "failed" >&6; }
  5901. else
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5903. $as_echo "ok" >&6; }
  5904. fi
  5905. # Response file support.
  5906. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5907. nm_file_list_spec='@'
  5908. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5909. nm_file_list_spec='@'
  5910. fi
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5912. $as_echo_n "checking for sysroot... " >&6; }
  5913. # Check whether --with-sysroot was given.
  5914. if test "${with_sysroot+set}" = set; then :
  5915. withval=$with_sysroot;
  5916. else
  5917. with_sysroot=no
  5918. fi
  5919. lt_sysroot=
  5920. case ${with_sysroot} in #(
  5921. yes)
  5922. if test "$GCC" = yes; then
  5923. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5924. fi
  5925. ;; #(
  5926. /*)
  5927. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5928. ;; #(
  5929. no|'')
  5930. ;; #(
  5931. *)
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5933. $as_echo "${with_sysroot}" >&6; }
  5934. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5935. ;;
  5936. esac
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5938. $as_echo "${lt_sysroot:-no}" >&6; }
  5939. # Check whether --enable-libtool-lock was given.
  5940. if test "${enable_libtool_lock+set}" = set; then :
  5941. enableval=$enable_libtool_lock;
  5942. fi
  5943. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5944. # Some flags need to be propagated to the compiler or linker for good
  5945. # libtool support.
  5946. case $host in
  5947. ia64-*-hpux*)
  5948. # Find out which ABI we are using.
  5949. echo 'int i;' > conftest.$ac_ext
  5950. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5951. (eval $ac_compile) 2>&5
  5952. ac_status=$?
  5953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5954. test $ac_status = 0; }; then
  5955. case `/usr/bin/file conftest.$ac_objext` in
  5956. *ELF-32*)
  5957. HPUX_IA64_MODE="32"
  5958. ;;
  5959. *ELF-64*)
  5960. HPUX_IA64_MODE="64"
  5961. ;;
  5962. esac
  5963. fi
  5964. rm -rf conftest*
  5965. ;;
  5966. *-*-irix6*)
  5967. # Find out which ABI we are using.
  5968. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5969. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5970. (eval $ac_compile) 2>&5
  5971. ac_status=$?
  5972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5973. test $ac_status = 0; }; then
  5974. if test "$lt_cv_prog_gnu_ld" = yes; then
  5975. case `/usr/bin/file conftest.$ac_objext` in
  5976. *32-bit*)
  5977. LD="${LD-ld} -melf32bsmip"
  5978. ;;
  5979. *N32*)
  5980. LD="${LD-ld} -melf32bmipn32"
  5981. ;;
  5982. *64-bit*)
  5983. LD="${LD-ld} -melf64bmip"
  5984. ;;
  5985. esac
  5986. else
  5987. case `/usr/bin/file conftest.$ac_objext` in
  5988. *32-bit*)
  5989. LD="${LD-ld} -32"
  5990. ;;
  5991. *N32*)
  5992. LD="${LD-ld} -n32"
  5993. ;;
  5994. *64-bit*)
  5995. LD="${LD-ld} -64"
  5996. ;;
  5997. esac
  5998. fi
  5999. fi
  6000. rm -rf conftest*
  6001. ;;
  6002. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6003. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6004. # Find out which ABI we are using.
  6005. echo 'int i;' > conftest.$ac_ext
  6006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6007. (eval $ac_compile) 2>&5
  6008. ac_status=$?
  6009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6010. test $ac_status = 0; }; then
  6011. case `/usr/bin/file conftest.o` in
  6012. *32-bit*)
  6013. case $host in
  6014. x86_64-*kfreebsd*-gnu)
  6015. LD="${LD-ld} -m elf_i386_fbsd"
  6016. ;;
  6017. x86_64-*linux*)
  6018. LD="${LD-ld} -m elf_i386"
  6019. ;;
  6020. ppc64-*linux*|powerpc64-*linux*)
  6021. LD="${LD-ld} -m elf32ppclinux"
  6022. ;;
  6023. s390x-*linux*)
  6024. LD="${LD-ld} -m elf_s390"
  6025. ;;
  6026. sparc64-*linux*)
  6027. LD="${LD-ld} -m elf32_sparc"
  6028. ;;
  6029. esac
  6030. ;;
  6031. *64-bit*)
  6032. case $host in
  6033. x86_64-*kfreebsd*-gnu)
  6034. LD="${LD-ld} -m elf_x86_64_fbsd"
  6035. ;;
  6036. x86_64-*linux*)
  6037. LD="${LD-ld} -m elf_x86_64"
  6038. ;;
  6039. ppc*-*linux*|powerpc*-*linux*)
  6040. LD="${LD-ld} -m elf64ppc"
  6041. ;;
  6042. s390*-*linux*|s390*-*tpf*)
  6043. LD="${LD-ld} -m elf64_s390"
  6044. ;;
  6045. sparc*-*linux*)
  6046. LD="${LD-ld} -m elf64_sparc"
  6047. ;;
  6048. esac
  6049. ;;
  6050. esac
  6051. fi
  6052. rm -rf conftest*
  6053. ;;
  6054. *-*-sco3.2v5*)
  6055. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6056. SAVE_CFLAGS="$CFLAGS"
  6057. CFLAGS="$CFLAGS -belf"
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6059. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6060. if ${lt_cv_cc_needs_belf+:} false; then :
  6061. $as_echo_n "(cached) " >&6
  6062. else
  6063. ac_ext=c
  6064. ac_cpp='$CPP $CPPFLAGS'
  6065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6069. /* end confdefs.h. */
  6070. int
  6071. main ()
  6072. {
  6073. ;
  6074. return 0;
  6075. }
  6076. _ACEOF
  6077. if ac_fn_c_try_link "$LINENO"; then :
  6078. lt_cv_cc_needs_belf=yes
  6079. else
  6080. lt_cv_cc_needs_belf=no
  6081. fi
  6082. rm -f core conftest.err conftest.$ac_objext \
  6083. conftest$ac_exeext conftest.$ac_ext
  6084. ac_ext=c
  6085. ac_cpp='$CPP $CPPFLAGS'
  6086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6089. fi
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6091. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6092. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6093. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6094. CFLAGS="$SAVE_CFLAGS"
  6095. fi
  6096. ;;
  6097. *-*solaris*)
  6098. # Find out which ABI we are using.
  6099. echo 'int i;' > conftest.$ac_ext
  6100. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6101. (eval $ac_compile) 2>&5
  6102. ac_status=$?
  6103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6104. test $ac_status = 0; }; then
  6105. case `/usr/bin/file conftest.o` in
  6106. *64-bit*)
  6107. case $lt_cv_prog_gnu_ld in
  6108. yes*)
  6109. case $host in
  6110. i?86-*-solaris*)
  6111. LD="${LD-ld} -m elf_x86_64"
  6112. ;;
  6113. sparc*-*-solaris*)
  6114. LD="${LD-ld} -m elf64_sparc"
  6115. ;;
  6116. esac
  6117. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6118. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6119. LD="${LD-ld}_sol2"
  6120. fi
  6121. ;;
  6122. *)
  6123. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6124. LD="${LD-ld} -64"
  6125. fi
  6126. ;;
  6127. esac
  6128. ;;
  6129. esac
  6130. fi
  6131. rm -rf conftest*
  6132. ;;
  6133. esac
  6134. need_locks="$enable_libtool_lock"
  6135. if test -n "$ac_tool_prefix"; then
  6136. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6137. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6139. $as_echo_n "checking for $ac_word... " >&6; }
  6140. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. if test -n "$MANIFEST_TOOL"; then
  6144. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6145. else
  6146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6147. for as_dir in $PATH
  6148. do
  6149. IFS=$as_save_IFS
  6150. test -z "$as_dir" && as_dir=.
  6151. for ac_exec_ext in '' $ac_executable_extensions; do
  6152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6153. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6155. break 2
  6156. fi
  6157. done
  6158. done
  6159. IFS=$as_save_IFS
  6160. fi
  6161. fi
  6162. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6163. if test -n "$MANIFEST_TOOL"; then
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6165. $as_echo "$MANIFEST_TOOL" >&6; }
  6166. else
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6168. $as_echo "no" >&6; }
  6169. fi
  6170. fi
  6171. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6172. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6173. # Extract the first word of "mt", so it can be a program name with args.
  6174. set dummy mt; ac_word=$2
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6176. $as_echo_n "checking for $ac_word... " >&6; }
  6177. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6181. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6182. else
  6183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6184. for as_dir in $PATH
  6185. do
  6186. IFS=$as_save_IFS
  6187. test -z "$as_dir" && as_dir=.
  6188. for ac_exec_ext in '' $ac_executable_extensions; do
  6189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6190. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6192. break 2
  6193. fi
  6194. done
  6195. done
  6196. IFS=$as_save_IFS
  6197. fi
  6198. fi
  6199. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6200. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6202. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6203. else
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6205. $as_echo "no" >&6; }
  6206. fi
  6207. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6208. MANIFEST_TOOL=":"
  6209. else
  6210. case $cross_compiling:$ac_tool_warned in
  6211. yes:)
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6213. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6214. ac_tool_warned=yes ;;
  6215. esac
  6216. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6217. fi
  6218. else
  6219. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6220. fi
  6221. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6223. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6224. if ${lt_cv_path_mainfest_tool+:} false; then :
  6225. $as_echo_n "(cached) " >&6
  6226. else
  6227. lt_cv_path_mainfest_tool=no
  6228. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6229. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6230. cat conftest.err >&5
  6231. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6232. lt_cv_path_mainfest_tool=yes
  6233. fi
  6234. rm -f conftest*
  6235. fi
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6237. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6238. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6239. MANIFEST_TOOL=:
  6240. fi
  6241. case $host_os in
  6242. rhapsody* | darwin*)
  6243. if test -n "$ac_tool_prefix"; then
  6244. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6245. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6247. $as_echo_n "checking for $ac_word... " >&6; }
  6248. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. if test -n "$DSYMUTIL"; then
  6252. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6253. else
  6254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6255. for as_dir in $PATH
  6256. do
  6257. IFS=$as_save_IFS
  6258. test -z "$as_dir" && as_dir=.
  6259. for ac_exec_ext in '' $ac_executable_extensions; do
  6260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6261. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6263. break 2
  6264. fi
  6265. done
  6266. done
  6267. IFS=$as_save_IFS
  6268. fi
  6269. fi
  6270. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6271. if test -n "$DSYMUTIL"; then
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6273. $as_echo "$DSYMUTIL" >&6; }
  6274. else
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6276. $as_echo "no" >&6; }
  6277. fi
  6278. fi
  6279. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6280. ac_ct_DSYMUTIL=$DSYMUTIL
  6281. # Extract the first word of "dsymutil", so it can be a program name with args.
  6282. set dummy dsymutil; ac_word=$2
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6284. $as_echo_n "checking for $ac_word... " >&6; }
  6285. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6286. $as_echo_n "(cached) " >&6
  6287. else
  6288. if test -n "$ac_ct_DSYMUTIL"; then
  6289. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6290. else
  6291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6292. for as_dir in $PATH
  6293. do
  6294. IFS=$as_save_IFS
  6295. test -z "$as_dir" && as_dir=.
  6296. for ac_exec_ext in '' $ac_executable_extensions; do
  6297. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6298. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6300. break 2
  6301. fi
  6302. done
  6303. done
  6304. IFS=$as_save_IFS
  6305. fi
  6306. fi
  6307. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6308. if test -n "$ac_ct_DSYMUTIL"; then
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6310. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6311. else
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6313. $as_echo "no" >&6; }
  6314. fi
  6315. if test "x$ac_ct_DSYMUTIL" = x; then
  6316. DSYMUTIL=":"
  6317. else
  6318. case $cross_compiling:$ac_tool_warned in
  6319. yes:)
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6322. ac_tool_warned=yes ;;
  6323. esac
  6324. DSYMUTIL=$ac_ct_DSYMUTIL
  6325. fi
  6326. else
  6327. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6328. fi
  6329. if test -n "$ac_tool_prefix"; then
  6330. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6331. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6333. $as_echo_n "checking for $ac_word... " >&6; }
  6334. if ${ac_cv_prog_NMEDIT+:} false; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. if test -n "$NMEDIT"; then
  6338. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6339. else
  6340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6341. for as_dir in $PATH
  6342. do
  6343. IFS=$as_save_IFS
  6344. test -z "$as_dir" && as_dir=.
  6345. for ac_exec_ext in '' $ac_executable_extensions; do
  6346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6347. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6349. break 2
  6350. fi
  6351. done
  6352. done
  6353. IFS=$as_save_IFS
  6354. fi
  6355. fi
  6356. NMEDIT=$ac_cv_prog_NMEDIT
  6357. if test -n "$NMEDIT"; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6359. $as_echo "$NMEDIT" >&6; }
  6360. else
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6362. $as_echo "no" >&6; }
  6363. fi
  6364. fi
  6365. if test -z "$ac_cv_prog_NMEDIT"; then
  6366. ac_ct_NMEDIT=$NMEDIT
  6367. # Extract the first word of "nmedit", so it can be a program name with args.
  6368. set dummy nmedit; ac_word=$2
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6370. $as_echo_n "checking for $ac_word... " >&6; }
  6371. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6372. $as_echo_n "(cached) " >&6
  6373. else
  6374. if test -n "$ac_ct_NMEDIT"; then
  6375. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6376. else
  6377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6378. for as_dir in $PATH
  6379. do
  6380. IFS=$as_save_IFS
  6381. test -z "$as_dir" && as_dir=.
  6382. for ac_exec_ext in '' $ac_executable_extensions; do
  6383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6384. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6386. break 2
  6387. fi
  6388. done
  6389. done
  6390. IFS=$as_save_IFS
  6391. fi
  6392. fi
  6393. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6394. if test -n "$ac_ct_NMEDIT"; then
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6396. $as_echo "$ac_ct_NMEDIT" >&6; }
  6397. else
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6399. $as_echo "no" >&6; }
  6400. fi
  6401. if test "x$ac_ct_NMEDIT" = x; then
  6402. NMEDIT=":"
  6403. else
  6404. case $cross_compiling:$ac_tool_warned in
  6405. yes:)
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6408. ac_tool_warned=yes ;;
  6409. esac
  6410. NMEDIT=$ac_ct_NMEDIT
  6411. fi
  6412. else
  6413. NMEDIT="$ac_cv_prog_NMEDIT"
  6414. fi
  6415. if test -n "$ac_tool_prefix"; then
  6416. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6417. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6419. $as_echo_n "checking for $ac_word... " >&6; }
  6420. if ${ac_cv_prog_LIPO+:} false; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. if test -n "$LIPO"; then
  6424. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6425. else
  6426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6427. for as_dir in $PATH
  6428. do
  6429. IFS=$as_save_IFS
  6430. test -z "$as_dir" && as_dir=.
  6431. for ac_exec_ext in '' $ac_executable_extensions; do
  6432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6433. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6435. break 2
  6436. fi
  6437. done
  6438. done
  6439. IFS=$as_save_IFS
  6440. fi
  6441. fi
  6442. LIPO=$ac_cv_prog_LIPO
  6443. if test -n "$LIPO"; then
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6445. $as_echo "$LIPO" >&6; }
  6446. else
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6448. $as_echo "no" >&6; }
  6449. fi
  6450. fi
  6451. if test -z "$ac_cv_prog_LIPO"; then
  6452. ac_ct_LIPO=$LIPO
  6453. # Extract the first word of "lipo", so it can be a program name with args.
  6454. set dummy lipo; ac_word=$2
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6456. $as_echo_n "checking for $ac_word... " >&6; }
  6457. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6458. $as_echo_n "(cached) " >&6
  6459. else
  6460. if test -n "$ac_ct_LIPO"; then
  6461. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6462. else
  6463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6464. for as_dir in $PATH
  6465. do
  6466. IFS=$as_save_IFS
  6467. test -z "$as_dir" && as_dir=.
  6468. for ac_exec_ext in '' $ac_executable_extensions; do
  6469. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6470. ac_cv_prog_ac_ct_LIPO="lipo"
  6471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6472. break 2
  6473. fi
  6474. done
  6475. done
  6476. IFS=$as_save_IFS
  6477. fi
  6478. fi
  6479. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6480. if test -n "$ac_ct_LIPO"; then
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6482. $as_echo "$ac_ct_LIPO" >&6; }
  6483. else
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6485. $as_echo "no" >&6; }
  6486. fi
  6487. if test "x$ac_ct_LIPO" = x; then
  6488. LIPO=":"
  6489. else
  6490. case $cross_compiling:$ac_tool_warned in
  6491. yes:)
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6493. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6494. ac_tool_warned=yes ;;
  6495. esac
  6496. LIPO=$ac_ct_LIPO
  6497. fi
  6498. else
  6499. LIPO="$ac_cv_prog_LIPO"
  6500. fi
  6501. if test -n "$ac_tool_prefix"; then
  6502. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6503. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6505. $as_echo_n "checking for $ac_word... " >&6; }
  6506. if ${ac_cv_prog_OTOOL+:} false; then :
  6507. $as_echo_n "(cached) " >&6
  6508. else
  6509. if test -n "$OTOOL"; then
  6510. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6511. else
  6512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6513. for as_dir in $PATH
  6514. do
  6515. IFS=$as_save_IFS
  6516. test -z "$as_dir" && as_dir=.
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6519. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. fi
  6527. fi
  6528. OTOOL=$ac_cv_prog_OTOOL
  6529. if test -n "$OTOOL"; then
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6531. $as_echo "$OTOOL" >&6; }
  6532. else
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534. $as_echo "no" >&6; }
  6535. fi
  6536. fi
  6537. if test -z "$ac_cv_prog_OTOOL"; then
  6538. ac_ct_OTOOL=$OTOOL
  6539. # Extract the first word of "otool", so it can be a program name with args.
  6540. set dummy otool; ac_word=$2
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6542. $as_echo_n "checking for $ac_word... " >&6; }
  6543. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6544. $as_echo_n "(cached) " >&6
  6545. else
  6546. if test -n "$ac_ct_OTOOL"; then
  6547. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6548. else
  6549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6550. for as_dir in $PATH
  6551. do
  6552. IFS=$as_save_IFS
  6553. test -z "$as_dir" && as_dir=.
  6554. for ac_exec_ext in '' $ac_executable_extensions; do
  6555. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6556. ac_cv_prog_ac_ct_OTOOL="otool"
  6557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6558. break 2
  6559. fi
  6560. done
  6561. done
  6562. IFS=$as_save_IFS
  6563. fi
  6564. fi
  6565. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6566. if test -n "$ac_ct_OTOOL"; then
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6568. $as_echo "$ac_ct_OTOOL" >&6; }
  6569. else
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6571. $as_echo "no" >&6; }
  6572. fi
  6573. if test "x$ac_ct_OTOOL" = x; then
  6574. OTOOL=":"
  6575. else
  6576. case $cross_compiling:$ac_tool_warned in
  6577. yes:)
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6579. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6580. ac_tool_warned=yes ;;
  6581. esac
  6582. OTOOL=$ac_ct_OTOOL
  6583. fi
  6584. else
  6585. OTOOL="$ac_cv_prog_OTOOL"
  6586. fi
  6587. if test -n "$ac_tool_prefix"; then
  6588. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6589. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6591. $as_echo_n "checking for $ac_word... " >&6; }
  6592. if ${ac_cv_prog_OTOOL64+:} false; then :
  6593. $as_echo_n "(cached) " >&6
  6594. else
  6595. if test -n "$OTOOL64"; then
  6596. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6597. else
  6598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6599. for as_dir in $PATH
  6600. do
  6601. IFS=$as_save_IFS
  6602. test -z "$as_dir" && as_dir=.
  6603. for ac_exec_ext in '' $ac_executable_extensions; do
  6604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6605. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6607. break 2
  6608. fi
  6609. done
  6610. done
  6611. IFS=$as_save_IFS
  6612. fi
  6613. fi
  6614. OTOOL64=$ac_cv_prog_OTOOL64
  6615. if test -n "$OTOOL64"; then
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6617. $as_echo "$OTOOL64" >&6; }
  6618. else
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6620. $as_echo "no" >&6; }
  6621. fi
  6622. fi
  6623. if test -z "$ac_cv_prog_OTOOL64"; then
  6624. ac_ct_OTOOL64=$OTOOL64
  6625. # Extract the first word of "otool64", so it can be a program name with args.
  6626. set dummy otool64; ac_word=$2
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6628. $as_echo_n "checking for $ac_word... " >&6; }
  6629. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6630. $as_echo_n "(cached) " >&6
  6631. else
  6632. if test -n "$ac_ct_OTOOL64"; then
  6633. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6634. else
  6635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6636. for as_dir in $PATH
  6637. do
  6638. IFS=$as_save_IFS
  6639. test -z "$as_dir" && as_dir=.
  6640. for ac_exec_ext in '' $ac_executable_extensions; do
  6641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6642. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6644. break 2
  6645. fi
  6646. done
  6647. done
  6648. IFS=$as_save_IFS
  6649. fi
  6650. fi
  6651. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6652. if test -n "$ac_ct_OTOOL64"; then
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6654. $as_echo "$ac_ct_OTOOL64" >&6; }
  6655. else
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6657. $as_echo "no" >&6; }
  6658. fi
  6659. if test "x$ac_ct_OTOOL64" = x; then
  6660. OTOOL64=":"
  6661. else
  6662. case $cross_compiling:$ac_tool_warned in
  6663. yes:)
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6666. ac_tool_warned=yes ;;
  6667. esac
  6668. OTOOL64=$ac_ct_OTOOL64
  6669. fi
  6670. else
  6671. OTOOL64="$ac_cv_prog_OTOOL64"
  6672. fi
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6674. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6675. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. lt_cv_apple_cc_single_mod=no
  6679. if test -z "${LT_MULTI_MODULE}"; then
  6680. # By default we will add the -single_module flag. You can override
  6681. # by either setting the environment variable LT_MULTI_MODULE
  6682. # non-empty at configure time, or by adding -multi_module to the
  6683. # link flags.
  6684. rm -rf libconftest.dylib*
  6685. echo "int foo(void){return 1;}" > conftest.c
  6686. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6687. -dynamiclib -Wl,-single_module conftest.c" >&5
  6688. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6689. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6690. _lt_result=$?
  6691. # If there is a non-empty error log, and "single_module"
  6692. # appears in it, assume the flag caused a linker warning
  6693. if test -s conftest.err && $GREP single_module conftest.err; then
  6694. cat conftest.err >&5
  6695. # Otherwise, if the output was created with a 0 exit code from
  6696. # the compiler, it worked.
  6697. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6698. lt_cv_apple_cc_single_mod=yes
  6699. else
  6700. cat conftest.err >&5
  6701. fi
  6702. rm -rf libconftest.dylib*
  6703. rm -f conftest.*
  6704. fi
  6705. fi
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6707. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6709. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6710. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. lt_cv_ld_exported_symbols_list=no
  6714. save_LDFLAGS=$LDFLAGS
  6715. echo "_main" > conftest.sym
  6716. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6718. /* end confdefs.h. */
  6719. int
  6720. main ()
  6721. {
  6722. ;
  6723. return 0;
  6724. }
  6725. _ACEOF
  6726. if ac_fn_c_try_link "$LINENO"; then :
  6727. lt_cv_ld_exported_symbols_list=yes
  6728. else
  6729. lt_cv_ld_exported_symbols_list=no
  6730. fi
  6731. rm -f core conftest.err conftest.$ac_objext \
  6732. conftest$ac_exeext conftest.$ac_ext
  6733. LDFLAGS="$save_LDFLAGS"
  6734. fi
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6736. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6738. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6739. if ${lt_cv_ld_force_load+:} false; then :
  6740. $as_echo_n "(cached) " >&6
  6741. else
  6742. lt_cv_ld_force_load=no
  6743. cat > conftest.c << _LT_EOF
  6744. int forced_loaded() { return 2;}
  6745. _LT_EOF
  6746. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6747. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6748. echo "$AR cru libconftest.a conftest.o" >&5
  6749. $AR cru libconftest.a conftest.o 2>&5
  6750. echo "$RANLIB libconftest.a" >&5
  6751. $RANLIB libconftest.a 2>&5
  6752. cat > conftest.c << _LT_EOF
  6753. int main() { return 0;}
  6754. _LT_EOF
  6755. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6756. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6757. _lt_result=$?
  6758. if test -s conftest.err && $GREP force_load conftest.err; then
  6759. cat conftest.err >&5
  6760. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6761. lt_cv_ld_force_load=yes
  6762. else
  6763. cat conftest.err >&5
  6764. fi
  6765. rm -f conftest.err libconftest.a conftest conftest.c
  6766. rm -rf conftest.dSYM
  6767. fi
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6769. $as_echo "$lt_cv_ld_force_load" >&6; }
  6770. case $host_os in
  6771. rhapsody* | darwin1.[012])
  6772. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6773. darwin1.*)
  6774. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6775. darwin*) # darwin 5.x on
  6776. # if running on 10.5 or later, the deployment target defaults
  6777. # to the OS version, if on x86, and 10.4, the deployment
  6778. # target defaults to 10.4. Don't you love it?
  6779. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6780. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6781. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6782. 10.[012]*)
  6783. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6784. 10.*)
  6785. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6786. esac
  6787. ;;
  6788. esac
  6789. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6790. _lt_dar_single_mod='$single_module'
  6791. fi
  6792. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6793. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6794. else
  6795. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6796. fi
  6797. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6798. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6799. else
  6800. _lt_dsymutil=
  6801. fi
  6802. ;;
  6803. esac
  6804. for ac_header in dlfcn.h
  6805. do :
  6806. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6807. "
  6808. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6809. cat >>confdefs.h <<_ACEOF
  6810. #define HAVE_DLFCN_H 1
  6811. _ACEOF
  6812. fi
  6813. done
  6814. # Set options
  6815. enable_dlopen=no
  6816. # Check whether --enable-shared was given.
  6817. if test "${enable_shared+set}" = set; then :
  6818. enableval=$enable_shared; p=${PACKAGE-default}
  6819. case $enableval in
  6820. yes) enable_shared=yes ;;
  6821. no) enable_shared=no ;;
  6822. *)
  6823. enable_shared=no
  6824. # Look at the argument we got. We use all the common list separators.
  6825. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6826. for pkg in $enableval; do
  6827. IFS="$lt_save_ifs"
  6828. if test "X$pkg" = "X$p"; then
  6829. enable_shared=yes
  6830. fi
  6831. done
  6832. IFS="$lt_save_ifs"
  6833. ;;
  6834. esac
  6835. else
  6836. enable_shared=yes
  6837. fi
  6838. # Check whether --enable-static was given.
  6839. if test "${enable_static+set}" = set; then :
  6840. enableval=$enable_static; p=${PACKAGE-default}
  6841. case $enableval in
  6842. yes) enable_static=yes ;;
  6843. no) enable_static=no ;;
  6844. *)
  6845. enable_static=no
  6846. # Look at the argument we got. We use all the common list separators.
  6847. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6848. for pkg in $enableval; do
  6849. IFS="$lt_save_ifs"
  6850. if test "X$pkg" = "X$p"; then
  6851. enable_static=yes
  6852. fi
  6853. done
  6854. IFS="$lt_save_ifs"
  6855. ;;
  6856. esac
  6857. else
  6858. enable_static=yes
  6859. fi
  6860. # Check whether --with-pic was given.
  6861. if test "${with_pic+set}" = set; then :
  6862. withval=$with_pic; lt_p=${PACKAGE-default}
  6863. case $withval in
  6864. yes|no) pic_mode=$withval ;;
  6865. *)
  6866. pic_mode=default
  6867. # Look at the argument we got. We use all the common list separators.
  6868. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6869. for lt_pkg in $withval; do
  6870. IFS="$lt_save_ifs"
  6871. if test "X$lt_pkg" = "X$lt_p"; then
  6872. pic_mode=yes
  6873. fi
  6874. done
  6875. IFS="$lt_save_ifs"
  6876. ;;
  6877. esac
  6878. else
  6879. pic_mode=default
  6880. fi
  6881. test -z "$pic_mode" && pic_mode=default
  6882. # Check whether --enable-fast-install was given.
  6883. if test "${enable_fast_install+set}" = set; then :
  6884. enableval=$enable_fast_install; p=${PACKAGE-default}
  6885. case $enableval in
  6886. yes) enable_fast_install=yes ;;
  6887. no) enable_fast_install=no ;;
  6888. *)
  6889. enable_fast_install=no
  6890. # Look at the argument we got. We use all the common list separators.
  6891. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6892. for pkg in $enableval; do
  6893. IFS="$lt_save_ifs"
  6894. if test "X$pkg" = "X$p"; then
  6895. enable_fast_install=yes
  6896. fi
  6897. done
  6898. IFS="$lt_save_ifs"
  6899. ;;
  6900. esac
  6901. else
  6902. enable_fast_install=yes
  6903. fi
  6904. # This can be used to rebuild libtool when needed
  6905. LIBTOOL_DEPS="$ltmain"
  6906. # Always use our own libtool.
  6907. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6908. test -z "$LN_S" && LN_S="ln -s"
  6909. if test -n "${ZSH_VERSION+set}" ; then
  6910. setopt NO_GLOB_SUBST
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6913. $as_echo_n "checking for objdir... " >&6; }
  6914. if ${lt_cv_objdir+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. rm -f .libs 2>/dev/null
  6918. mkdir .libs 2>/dev/null
  6919. if test -d .libs; then
  6920. lt_cv_objdir=.libs
  6921. else
  6922. # MS-DOS does not allow filenames that begin with a dot.
  6923. lt_cv_objdir=_libs
  6924. fi
  6925. rmdir .libs 2>/dev/null
  6926. fi
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6928. $as_echo "$lt_cv_objdir" >&6; }
  6929. objdir=$lt_cv_objdir
  6930. cat >>confdefs.h <<_ACEOF
  6931. #define LT_OBJDIR "$lt_cv_objdir/"
  6932. _ACEOF
  6933. case $host_os in
  6934. aix3*)
  6935. # AIX sometimes has problems with the GCC collect2 program. For some
  6936. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6937. # vanish in a puff of smoke.
  6938. if test "X${COLLECT_NAMES+set}" != Xset; then
  6939. COLLECT_NAMES=
  6940. export COLLECT_NAMES
  6941. fi
  6942. ;;
  6943. esac
  6944. # Global variables:
  6945. ofile=libtool
  6946. can_build_shared=yes
  6947. # All known linkers require a `.a' archive for static linking (except MSVC,
  6948. # which needs '.lib').
  6949. libext=a
  6950. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6951. old_CC="$CC"
  6952. old_CFLAGS="$CFLAGS"
  6953. # Set sane defaults for various variables
  6954. test -z "$CC" && CC=cc
  6955. test -z "$LTCC" && LTCC=$CC
  6956. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6957. test -z "$LD" && LD=ld
  6958. test -z "$ac_objext" && ac_objext=o
  6959. for cc_temp in $compiler""; do
  6960. case $cc_temp in
  6961. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6962. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6963. \-*) ;;
  6964. *) break;;
  6965. esac
  6966. done
  6967. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6968. # Only perform the check for file, if the check method requires it
  6969. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6970. case $deplibs_check_method in
  6971. file_magic*)
  6972. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6974. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6975. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6976. $as_echo_n "(cached) " >&6
  6977. else
  6978. case $MAGIC_CMD in
  6979. [\\/*] | ?:[\\/]*)
  6980. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6981. ;;
  6982. *)
  6983. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6984. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6985. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6986. for ac_dir in $ac_dummy; do
  6987. IFS="$lt_save_ifs"
  6988. test -z "$ac_dir" && ac_dir=.
  6989. if test -f $ac_dir/${ac_tool_prefix}file; then
  6990. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6991. if test -n "$file_magic_test_file"; then
  6992. case $deplibs_check_method in
  6993. "file_magic "*)
  6994. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6995. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6996. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6997. $EGREP "$file_magic_regex" > /dev/null; then
  6998. :
  6999. else
  7000. cat <<_LT_EOF 1>&2
  7001. *** Warning: the command libtool uses to detect shared libraries,
  7002. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7003. *** The result is that libtool may fail to recognize shared libraries
  7004. *** as such. This will affect the creation of libtool libraries that
  7005. *** depend on shared libraries, but programs linked with such libtool
  7006. *** libraries will work regardless of this problem. Nevertheless, you
  7007. *** may want to report the problem to your system manager and/or to
  7008. *** bug-libtool@gnu.org
  7009. _LT_EOF
  7010. fi ;;
  7011. esac
  7012. fi
  7013. break
  7014. fi
  7015. done
  7016. IFS="$lt_save_ifs"
  7017. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7018. ;;
  7019. esac
  7020. fi
  7021. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7022. if test -n "$MAGIC_CMD"; then
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7024. $as_echo "$MAGIC_CMD" >&6; }
  7025. else
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7027. $as_echo "no" >&6; }
  7028. fi
  7029. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7030. if test -n "$ac_tool_prefix"; then
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7032. $as_echo_n "checking for file... " >&6; }
  7033. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7034. $as_echo_n "(cached) " >&6
  7035. else
  7036. case $MAGIC_CMD in
  7037. [\\/*] | ?:[\\/]*)
  7038. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7039. ;;
  7040. *)
  7041. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7042. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7043. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7044. for ac_dir in $ac_dummy; do
  7045. IFS="$lt_save_ifs"
  7046. test -z "$ac_dir" && ac_dir=.
  7047. if test -f $ac_dir/file; then
  7048. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7049. if test -n "$file_magic_test_file"; then
  7050. case $deplibs_check_method in
  7051. "file_magic "*)
  7052. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7053. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7054. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7055. $EGREP "$file_magic_regex" > /dev/null; then
  7056. :
  7057. else
  7058. cat <<_LT_EOF 1>&2
  7059. *** Warning: the command libtool uses to detect shared libraries,
  7060. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7061. *** The result is that libtool may fail to recognize shared libraries
  7062. *** as such. This will affect the creation of libtool libraries that
  7063. *** depend on shared libraries, but programs linked with such libtool
  7064. *** libraries will work regardless of this problem. Nevertheless, you
  7065. *** may want to report the problem to your system manager and/or to
  7066. *** bug-libtool@gnu.org
  7067. _LT_EOF
  7068. fi ;;
  7069. esac
  7070. fi
  7071. break
  7072. fi
  7073. done
  7074. IFS="$lt_save_ifs"
  7075. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7076. ;;
  7077. esac
  7078. fi
  7079. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7080. if test -n "$MAGIC_CMD"; then
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7082. $as_echo "$MAGIC_CMD" >&6; }
  7083. else
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7085. $as_echo "no" >&6; }
  7086. fi
  7087. else
  7088. MAGIC_CMD=:
  7089. fi
  7090. fi
  7091. fi
  7092. ;;
  7093. esac
  7094. # Use C for the default configuration in the libtool script
  7095. lt_save_CC="$CC"
  7096. ac_ext=c
  7097. ac_cpp='$CPP $CPPFLAGS'
  7098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7101. # Source file extension for C test sources.
  7102. ac_ext=c
  7103. # Object file extension for compiled C test sources.
  7104. objext=o
  7105. objext=$objext
  7106. # Code to be used in simple compile tests
  7107. lt_simple_compile_test_code="int some_variable = 0;"
  7108. # Code to be used in simple link tests
  7109. lt_simple_link_test_code='int main(){return(0);}'
  7110. # If no C compiler was specified, use CC.
  7111. LTCC=${LTCC-"$CC"}
  7112. # If no C compiler flags were specified, use CFLAGS.
  7113. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7114. # Allow CC to be a program name with arguments.
  7115. compiler=$CC
  7116. # Save the default compiler, since it gets overwritten when the other
  7117. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7118. compiler_DEFAULT=$CC
  7119. # save warnings/boilerplate of simple test code
  7120. ac_outfile=conftest.$ac_objext
  7121. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7122. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7123. _lt_compiler_boilerplate=`cat conftest.err`
  7124. $RM conftest*
  7125. ac_outfile=conftest.$ac_objext
  7126. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7127. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7128. _lt_linker_boilerplate=`cat conftest.err`
  7129. $RM -r conftest*
  7130. if test -n "$compiler"; then
  7131. lt_prog_compiler_no_builtin_flag=
  7132. if test "$GCC" = yes; then
  7133. case $cc_basename in
  7134. nvcc*)
  7135. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7136. *)
  7137. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7138. esac
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7140. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7141. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7142. $as_echo_n "(cached) " >&6
  7143. else
  7144. lt_cv_prog_compiler_rtti_exceptions=no
  7145. ac_outfile=conftest.$ac_objext
  7146. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7147. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7148. # Insert the option either (1) after the last *FLAGS variable, or
  7149. # (2) before a word containing "conftest.", or (3) at the end.
  7150. # Note that $ac_compile itself does not contain backslashes and begins
  7151. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7152. # The option is referenced via a variable to avoid confusing sed.
  7153. lt_compile=`echo "$ac_compile" | $SED \
  7154. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7155. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7156. -e 's:$: $lt_compiler_flag:'`
  7157. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7158. (eval "$lt_compile" 2>conftest.err)
  7159. ac_status=$?
  7160. cat conftest.err >&5
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. if (exit $ac_status) && test -s "$ac_outfile"; then
  7163. # The compiler can only warn and ignore the option if not recognized
  7164. # So say no if there are warnings other than the usual output.
  7165. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7166. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7167. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7168. lt_cv_prog_compiler_rtti_exceptions=yes
  7169. fi
  7170. fi
  7171. $RM conftest*
  7172. fi
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7174. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7175. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7176. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7177. else
  7178. :
  7179. fi
  7180. fi
  7181. lt_prog_compiler_wl=
  7182. lt_prog_compiler_pic=
  7183. lt_prog_compiler_static=
  7184. if test "$GCC" = yes; then
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_static='-static'
  7187. case $host_os in
  7188. aix*)
  7189. # All AIX code is PIC.
  7190. if test "$host_cpu" = ia64; then
  7191. # AIX 5 now supports IA64 processor
  7192. lt_prog_compiler_static='-Bstatic'
  7193. fi
  7194. ;;
  7195. amigaos*)
  7196. case $host_cpu in
  7197. powerpc)
  7198. # see comment about AmigaOS4 .so support
  7199. lt_prog_compiler_pic='-fPIC'
  7200. ;;
  7201. m68k)
  7202. # FIXME: we need at least 68020 code to build shared libraries, but
  7203. # adding the `-m68020' flag to GCC prevents building anything better,
  7204. # like `-m68040'.
  7205. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7206. ;;
  7207. esac
  7208. ;;
  7209. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7210. # PIC is the default for these OSes.
  7211. ;;
  7212. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7213. # This hack is so that the source file can tell whether it is being
  7214. # built for inclusion in a dll (and should export symbols for example).
  7215. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7216. # (--disable-auto-import) libraries
  7217. lt_prog_compiler_pic='-DDLL_EXPORT'
  7218. ;;
  7219. darwin* | rhapsody*)
  7220. # PIC is the default on this platform
  7221. # Common symbols not allowed in MH_DYLIB files
  7222. lt_prog_compiler_pic='-fno-common'
  7223. ;;
  7224. haiku*)
  7225. # PIC is the default for Haiku.
  7226. # The "-static" flag exists, but is broken.
  7227. lt_prog_compiler_static=
  7228. ;;
  7229. hpux*)
  7230. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7231. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7232. # sets the default TLS model and affects inlining.
  7233. case $host_cpu in
  7234. hppa*64*)
  7235. # +Z the default
  7236. ;;
  7237. *)
  7238. lt_prog_compiler_pic='-fPIC'
  7239. ;;
  7240. esac
  7241. ;;
  7242. interix[3-9]*)
  7243. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7244. # Instead, we relocate shared libraries at runtime.
  7245. ;;
  7246. msdosdjgpp*)
  7247. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7248. # on systems that don't support them.
  7249. lt_prog_compiler_can_build_shared=no
  7250. enable_shared=no
  7251. ;;
  7252. *nto* | *qnx*)
  7253. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7254. # it will coredump.
  7255. lt_prog_compiler_pic='-fPIC -shared'
  7256. ;;
  7257. sysv4*MP*)
  7258. if test -d /usr/nec; then
  7259. lt_prog_compiler_pic=-Kconform_pic
  7260. fi
  7261. ;;
  7262. *)
  7263. lt_prog_compiler_pic='-fPIC'
  7264. ;;
  7265. esac
  7266. case $cc_basename in
  7267. nvcc*) # Cuda Compiler Driver 2.2
  7268. lt_prog_compiler_wl='-Xlinker '
  7269. if test -n "$lt_prog_compiler_pic"; then
  7270. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7271. fi
  7272. ;;
  7273. esac
  7274. else
  7275. # PORTME Check for flag to pass linker flags through the system compiler.
  7276. case $host_os in
  7277. aix*)
  7278. lt_prog_compiler_wl='-Wl,'
  7279. if test "$host_cpu" = ia64; then
  7280. # AIX 5 now supports IA64 processor
  7281. lt_prog_compiler_static='-Bstatic'
  7282. else
  7283. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7284. fi
  7285. ;;
  7286. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7287. # This hack is so that the source file can tell whether it is being
  7288. # built for inclusion in a dll (and should export symbols for example).
  7289. lt_prog_compiler_pic='-DDLL_EXPORT'
  7290. ;;
  7291. hpux9* | hpux10* | hpux11*)
  7292. lt_prog_compiler_wl='-Wl,'
  7293. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7294. # not for PA HP-UX.
  7295. case $host_cpu in
  7296. hppa*64*|ia64*)
  7297. # +Z the default
  7298. ;;
  7299. *)
  7300. lt_prog_compiler_pic='+Z'
  7301. ;;
  7302. esac
  7303. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7304. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7305. ;;
  7306. irix5* | irix6* | nonstopux*)
  7307. lt_prog_compiler_wl='-Wl,'
  7308. # PIC (with -KPIC) is the default.
  7309. lt_prog_compiler_static='-non_shared'
  7310. ;;
  7311. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7312. case $cc_basename in
  7313. # old Intel for x86_64 which still supported -KPIC.
  7314. ecc*)
  7315. lt_prog_compiler_wl='-Wl,'
  7316. lt_prog_compiler_pic='-KPIC'
  7317. lt_prog_compiler_static='-static'
  7318. ;;
  7319. # icc used to be incompatible with GCC.
  7320. # ICC 10 doesn't accept -KPIC any more.
  7321. icc* | ifort*)
  7322. lt_prog_compiler_wl='-Wl,'
  7323. lt_prog_compiler_pic='-fPIC'
  7324. lt_prog_compiler_static='-static'
  7325. ;;
  7326. # Lahey Fortran 8.1.
  7327. lf95*)
  7328. lt_prog_compiler_wl='-Wl,'
  7329. lt_prog_compiler_pic='--shared'
  7330. lt_prog_compiler_static='--static'
  7331. ;;
  7332. nagfor*)
  7333. # NAG Fortran compiler
  7334. lt_prog_compiler_wl='-Wl,-Wl,,'
  7335. lt_prog_compiler_pic='-PIC'
  7336. lt_prog_compiler_static='-Bstatic'
  7337. ;;
  7338. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7339. # Portland Group compilers (*not* the Pentium gcc compiler,
  7340. # which looks to be a dead project)
  7341. lt_prog_compiler_wl='-Wl,'
  7342. lt_prog_compiler_pic='-fpic'
  7343. lt_prog_compiler_static='-Bstatic'
  7344. ;;
  7345. ccc*)
  7346. lt_prog_compiler_wl='-Wl,'
  7347. # All Alpha code is PIC.
  7348. lt_prog_compiler_static='-non_shared'
  7349. ;;
  7350. xl* | bgxl* | bgf* | mpixl*)
  7351. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7352. lt_prog_compiler_wl='-Wl,'
  7353. lt_prog_compiler_pic='-qpic'
  7354. lt_prog_compiler_static='-qstaticlink'
  7355. ;;
  7356. *)
  7357. case `$CC -V 2>&1 | sed 5q` in
  7358. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7359. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7360. lt_prog_compiler_pic='-KPIC'
  7361. lt_prog_compiler_static='-Bstatic'
  7362. lt_prog_compiler_wl=''
  7363. ;;
  7364. *Sun\ F* | *Sun*Fortran*)
  7365. lt_prog_compiler_pic='-KPIC'
  7366. lt_prog_compiler_static='-Bstatic'
  7367. lt_prog_compiler_wl='-Qoption ld '
  7368. ;;
  7369. *Sun\ C*)
  7370. # Sun C 5.9
  7371. lt_prog_compiler_pic='-KPIC'
  7372. lt_prog_compiler_static='-Bstatic'
  7373. lt_prog_compiler_wl='-Wl,'
  7374. ;;
  7375. *Intel*\ [CF]*Compiler*)
  7376. lt_prog_compiler_wl='-Wl,'
  7377. lt_prog_compiler_pic='-fPIC'
  7378. lt_prog_compiler_static='-static'
  7379. ;;
  7380. *Portland\ Group*)
  7381. lt_prog_compiler_wl='-Wl,'
  7382. lt_prog_compiler_pic='-fpic'
  7383. lt_prog_compiler_static='-Bstatic'
  7384. ;;
  7385. esac
  7386. ;;
  7387. esac
  7388. ;;
  7389. newsos6)
  7390. lt_prog_compiler_pic='-KPIC'
  7391. lt_prog_compiler_static='-Bstatic'
  7392. ;;
  7393. *nto* | *qnx*)
  7394. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7395. # it will coredump.
  7396. lt_prog_compiler_pic='-fPIC -shared'
  7397. ;;
  7398. osf3* | osf4* | osf5*)
  7399. lt_prog_compiler_wl='-Wl,'
  7400. # All OSF/1 code is PIC.
  7401. lt_prog_compiler_static='-non_shared'
  7402. ;;
  7403. rdos*)
  7404. lt_prog_compiler_static='-non_shared'
  7405. ;;
  7406. solaris*)
  7407. lt_prog_compiler_pic='-KPIC'
  7408. lt_prog_compiler_static='-Bstatic'
  7409. case $cc_basename in
  7410. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7411. lt_prog_compiler_wl='-Qoption ld ';;
  7412. *)
  7413. lt_prog_compiler_wl='-Wl,';;
  7414. esac
  7415. ;;
  7416. sunos4*)
  7417. lt_prog_compiler_wl='-Qoption ld '
  7418. lt_prog_compiler_pic='-PIC'
  7419. lt_prog_compiler_static='-Bstatic'
  7420. ;;
  7421. sysv4 | sysv4.2uw2* | sysv4.3*)
  7422. lt_prog_compiler_wl='-Wl,'
  7423. lt_prog_compiler_pic='-KPIC'
  7424. lt_prog_compiler_static='-Bstatic'
  7425. ;;
  7426. sysv4*MP*)
  7427. if test -d /usr/nec ;then
  7428. lt_prog_compiler_pic='-Kconform_pic'
  7429. lt_prog_compiler_static='-Bstatic'
  7430. fi
  7431. ;;
  7432. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7433. lt_prog_compiler_wl='-Wl,'
  7434. lt_prog_compiler_pic='-KPIC'
  7435. lt_prog_compiler_static='-Bstatic'
  7436. ;;
  7437. unicos*)
  7438. lt_prog_compiler_wl='-Wl,'
  7439. lt_prog_compiler_can_build_shared=no
  7440. ;;
  7441. uts4*)
  7442. lt_prog_compiler_pic='-pic'
  7443. lt_prog_compiler_static='-Bstatic'
  7444. ;;
  7445. *)
  7446. lt_prog_compiler_can_build_shared=no
  7447. ;;
  7448. esac
  7449. fi
  7450. case $host_os in
  7451. # For platforms which do not support PIC, -DPIC is meaningless:
  7452. *djgpp*)
  7453. lt_prog_compiler_pic=
  7454. ;;
  7455. *)
  7456. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7457. ;;
  7458. esac
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7460. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7461. if ${lt_cv_prog_compiler_pic+:} false; then :
  7462. $as_echo_n "(cached) " >&6
  7463. else
  7464. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7465. fi
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7467. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7468. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7469. #
  7470. # Check to make sure the PIC flag actually works.
  7471. #
  7472. if test -n "$lt_prog_compiler_pic"; then
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7474. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7475. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7476. $as_echo_n "(cached) " >&6
  7477. else
  7478. lt_cv_prog_compiler_pic_works=no
  7479. ac_outfile=conftest.$ac_objext
  7480. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7481. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7482. # Insert the option either (1) after the last *FLAGS variable, or
  7483. # (2) before a word containing "conftest.", or (3) at the end.
  7484. # Note that $ac_compile itself does not contain backslashes and begins
  7485. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7486. # The option is referenced via a variable to avoid confusing sed.
  7487. lt_compile=`echo "$ac_compile" | $SED \
  7488. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7489. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7490. -e 's:$: $lt_compiler_flag:'`
  7491. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7492. (eval "$lt_compile" 2>conftest.err)
  7493. ac_status=$?
  7494. cat conftest.err >&5
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. if (exit $ac_status) && test -s "$ac_outfile"; then
  7497. # The compiler can only warn and ignore the option if not recognized
  7498. # So say no if there are warnings other than the usual output.
  7499. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7500. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7501. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7502. lt_cv_prog_compiler_pic_works=yes
  7503. fi
  7504. fi
  7505. $RM conftest*
  7506. fi
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7508. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7509. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7510. case $lt_prog_compiler_pic in
  7511. "" | " "*) ;;
  7512. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7513. esac
  7514. else
  7515. lt_prog_compiler_pic=
  7516. lt_prog_compiler_can_build_shared=no
  7517. fi
  7518. fi
  7519. #
  7520. # Check to make sure the static flag actually works.
  7521. #
  7522. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7524. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7525. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7526. $as_echo_n "(cached) " >&6
  7527. else
  7528. lt_cv_prog_compiler_static_works=no
  7529. save_LDFLAGS="$LDFLAGS"
  7530. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7531. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7532. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7533. # The linker can only warn and ignore the option if not recognized
  7534. # So say no if there are warnings
  7535. if test -s conftest.err; then
  7536. # Append any errors to the config.log.
  7537. cat conftest.err 1>&5
  7538. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7539. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7540. if diff conftest.exp conftest.er2 >/dev/null; then
  7541. lt_cv_prog_compiler_static_works=yes
  7542. fi
  7543. else
  7544. lt_cv_prog_compiler_static_works=yes
  7545. fi
  7546. fi
  7547. $RM -r conftest*
  7548. LDFLAGS="$save_LDFLAGS"
  7549. fi
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7551. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7552. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7553. :
  7554. else
  7555. lt_prog_compiler_static=
  7556. fi
  7557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7558. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7559. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7560. $as_echo_n "(cached) " >&6
  7561. else
  7562. lt_cv_prog_compiler_c_o=no
  7563. $RM -r conftest 2>/dev/null
  7564. mkdir conftest
  7565. cd conftest
  7566. mkdir out
  7567. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7568. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7569. # Insert the option either (1) after the last *FLAGS variable, or
  7570. # (2) before a word containing "conftest.", or (3) at the end.
  7571. # Note that $ac_compile itself does not contain backslashes and begins
  7572. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7573. lt_compile=`echo "$ac_compile" | $SED \
  7574. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7575. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7576. -e 's:$: $lt_compiler_flag:'`
  7577. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7578. (eval "$lt_compile" 2>out/conftest.err)
  7579. ac_status=$?
  7580. cat out/conftest.err >&5
  7581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7582. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7583. then
  7584. # The compiler can only warn and ignore the option if not recognized
  7585. # So say no if there are warnings
  7586. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7587. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7588. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7589. lt_cv_prog_compiler_c_o=yes
  7590. fi
  7591. fi
  7592. chmod u+w . 2>&5
  7593. $RM conftest*
  7594. # SGI C++ compiler will create directory out/ii_files/ for
  7595. # template instantiation
  7596. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7597. $RM out/* && rmdir out
  7598. cd ..
  7599. $RM -r conftest
  7600. $RM conftest*
  7601. fi
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7603. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7605. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7606. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7607. $as_echo_n "(cached) " >&6
  7608. else
  7609. lt_cv_prog_compiler_c_o=no
  7610. $RM -r conftest 2>/dev/null
  7611. mkdir conftest
  7612. cd conftest
  7613. mkdir out
  7614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7615. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7616. # Insert the option either (1) after the last *FLAGS variable, or
  7617. # (2) before a word containing "conftest.", or (3) at the end.
  7618. # Note that $ac_compile itself does not contain backslashes and begins
  7619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7620. lt_compile=`echo "$ac_compile" | $SED \
  7621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7623. -e 's:$: $lt_compiler_flag:'`
  7624. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7625. (eval "$lt_compile" 2>out/conftest.err)
  7626. ac_status=$?
  7627. cat out/conftest.err >&5
  7628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7629. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7630. then
  7631. # The compiler can only warn and ignore the option if not recognized
  7632. # So say no if there are warnings
  7633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7634. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7635. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7636. lt_cv_prog_compiler_c_o=yes
  7637. fi
  7638. fi
  7639. chmod u+w . 2>&5
  7640. $RM conftest*
  7641. # SGI C++ compiler will create directory out/ii_files/ for
  7642. # template instantiation
  7643. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7644. $RM out/* && rmdir out
  7645. cd ..
  7646. $RM -r conftest
  7647. $RM conftest*
  7648. fi
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7650. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7651. hard_links="nottested"
  7652. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7653. # do not overwrite the value of need_locks provided by the user
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7655. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7656. hard_links=yes
  7657. $RM conftest*
  7658. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7659. touch conftest.a
  7660. ln conftest.a conftest.b 2>&5 || hard_links=no
  7661. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7663. $as_echo "$hard_links" >&6; }
  7664. if test "$hard_links" = no; then
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7666. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7667. need_locks=warn
  7668. fi
  7669. else
  7670. need_locks=no
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7673. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7674. runpath_var=
  7675. allow_undefined_flag=
  7676. always_export_symbols=no
  7677. archive_cmds=
  7678. archive_expsym_cmds=
  7679. compiler_needs_object=no
  7680. enable_shared_with_static_runtimes=no
  7681. export_dynamic_flag_spec=
  7682. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7683. hardcode_automatic=no
  7684. hardcode_direct=no
  7685. hardcode_direct_absolute=no
  7686. hardcode_libdir_flag_spec=
  7687. hardcode_libdir_separator=
  7688. hardcode_minus_L=no
  7689. hardcode_shlibpath_var=unsupported
  7690. inherit_rpath=no
  7691. link_all_deplibs=unknown
  7692. module_cmds=
  7693. module_expsym_cmds=
  7694. old_archive_from_new_cmds=
  7695. old_archive_from_expsyms_cmds=
  7696. thread_safe_flag_spec=
  7697. whole_archive_flag_spec=
  7698. # include_expsyms should be a list of space-separated symbols to be *always*
  7699. # included in the symbol list
  7700. include_expsyms=
  7701. # exclude_expsyms can be an extended regexp of symbols to exclude
  7702. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7703. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7704. # as well as any symbol that contains `d'.
  7705. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7706. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7707. # platforms (ab)use it in PIC code, but their linkers get confused if
  7708. # the symbol is explicitly referenced. Since portable code cannot
  7709. # rely on this symbol name, it's probably fine to never include it in
  7710. # preloaded symbol tables.
  7711. # Exclude shared library initialization/finalization symbols.
  7712. extract_expsyms_cmds=
  7713. case $host_os in
  7714. cygwin* | mingw* | pw32* | cegcc*)
  7715. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7716. # When not using gcc, we currently assume that we are using
  7717. # Microsoft Visual C++.
  7718. if test "$GCC" != yes; then
  7719. with_gnu_ld=no
  7720. fi
  7721. ;;
  7722. interix*)
  7723. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7724. with_gnu_ld=yes
  7725. ;;
  7726. openbsd*)
  7727. with_gnu_ld=no
  7728. ;;
  7729. esac
  7730. ld_shlibs=yes
  7731. # On some targets, GNU ld is compatible enough with the native linker
  7732. # that we're better off using the native interface for both.
  7733. lt_use_gnu_ld_interface=no
  7734. if test "$with_gnu_ld" = yes; then
  7735. case $host_os in
  7736. aix*)
  7737. # The AIX port of GNU ld has always aspired to compatibility
  7738. # with the native linker. However, as the warning in the GNU ld
  7739. # block says, versions before 2.19.5* couldn't really create working
  7740. # shared libraries, regardless of the interface used.
  7741. case `$LD -v 2>&1` in
  7742. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7743. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7744. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7745. *)
  7746. lt_use_gnu_ld_interface=yes
  7747. ;;
  7748. esac
  7749. ;;
  7750. *)
  7751. lt_use_gnu_ld_interface=yes
  7752. ;;
  7753. esac
  7754. fi
  7755. if test "$lt_use_gnu_ld_interface" = yes; then
  7756. # If archive_cmds runs LD, not CC, wlarc should be empty
  7757. wlarc='${wl}'
  7758. # Set some defaults for GNU ld with shared library support. These
  7759. # are reset later if shared libraries are not supported. Putting them
  7760. # here allows them to be overridden if necessary.
  7761. runpath_var=LD_RUN_PATH
  7762. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7763. export_dynamic_flag_spec='${wl}--export-dynamic'
  7764. # ancient GNU ld didn't support --whole-archive et. al.
  7765. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7766. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7767. else
  7768. whole_archive_flag_spec=
  7769. fi
  7770. supports_anon_versioning=no
  7771. case `$LD -v 2>&1` in
  7772. *GNU\ gold*) supports_anon_versioning=yes ;;
  7773. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7774. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7775. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7776. *\ 2.11.*) ;; # other 2.11 versions
  7777. *) supports_anon_versioning=yes ;;
  7778. esac
  7779. # See if GNU ld supports shared libraries.
  7780. case $host_os in
  7781. aix[3-9]*)
  7782. # On AIX/PPC, the GNU linker is very broken
  7783. if test "$host_cpu" != ia64; then
  7784. ld_shlibs=no
  7785. cat <<_LT_EOF 1>&2
  7786. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7787. *** to be unable to reliably create shared libraries on AIX.
  7788. *** Therefore, libtool is disabling shared libraries support. If you
  7789. *** really care for shared libraries, you may want to install binutils
  7790. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7791. *** You will then need to restart the configuration process.
  7792. _LT_EOF
  7793. fi
  7794. ;;
  7795. amigaos*)
  7796. case $host_cpu in
  7797. powerpc)
  7798. # see comment about AmigaOS4 .so support
  7799. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7800. archive_expsym_cmds=''
  7801. ;;
  7802. m68k)
  7803. 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)'
  7804. hardcode_libdir_flag_spec='-L$libdir'
  7805. hardcode_minus_L=yes
  7806. ;;
  7807. esac
  7808. ;;
  7809. beos*)
  7810. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7811. allow_undefined_flag=unsupported
  7812. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7813. # support --undefined. This deserves some investigation. FIXME
  7814. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7815. else
  7816. ld_shlibs=no
  7817. fi
  7818. ;;
  7819. cygwin* | mingw* | pw32* | cegcc*)
  7820. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7821. # as there is no search path for DLLs.
  7822. hardcode_libdir_flag_spec='-L$libdir'
  7823. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7824. allow_undefined_flag=unsupported
  7825. always_export_symbols=no
  7826. enable_shared_with_static_runtimes=yes
  7827. 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'
  7828. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7829. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7830. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7831. # If the export-symbols file already is a .def file (1st line
  7832. # is EXPORTS), use it as is; otherwise, prepend...
  7833. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7834. cp $export_symbols $output_objdir/$soname.def;
  7835. else
  7836. echo EXPORTS > $output_objdir/$soname.def;
  7837. cat $export_symbols >> $output_objdir/$soname.def;
  7838. fi~
  7839. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7840. else
  7841. ld_shlibs=no
  7842. fi
  7843. ;;
  7844. haiku*)
  7845. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7846. link_all_deplibs=yes
  7847. ;;
  7848. interix[3-9]*)
  7849. hardcode_direct=no
  7850. hardcode_shlibpath_var=no
  7851. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7852. export_dynamic_flag_spec='${wl}-E'
  7853. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7854. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7855. # default) and relocated if they conflict, which is a slow very memory
  7856. # consuming and fragmenting process. To avoid this, we pick a random,
  7857. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7858. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7859. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7860. 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'
  7861. ;;
  7862. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7863. tmp_diet=no
  7864. if test "$host_os" = linux-dietlibc; then
  7865. case $cc_basename in
  7866. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7867. esac
  7868. fi
  7869. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7870. && test "$tmp_diet" = no
  7871. then
  7872. tmp_addflag=' $pic_flag'
  7873. tmp_sharedflag='-shared'
  7874. case $cc_basename,$host_cpu in
  7875. pgcc*) # Portland Group C compiler
  7876. 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'
  7877. tmp_addflag=' $pic_flag'
  7878. ;;
  7879. pgf77* | pgf90* | pgf95* | pgfortran*)
  7880. # Portland Group f77 and f90 compilers
  7881. 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'
  7882. tmp_addflag=' $pic_flag -Mnomain' ;;
  7883. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7884. tmp_addflag=' -i_dynamic' ;;
  7885. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7886. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7887. ifc* | ifort*) # Intel Fortran compiler
  7888. tmp_addflag=' -nofor_main' ;;
  7889. lf95*) # Lahey Fortran 8.1
  7890. whole_archive_flag_spec=
  7891. tmp_sharedflag='--shared' ;;
  7892. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7893. tmp_sharedflag='-qmkshrobj'
  7894. tmp_addflag= ;;
  7895. nvcc*) # Cuda Compiler Driver 2.2
  7896. 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'
  7897. compiler_needs_object=yes
  7898. ;;
  7899. esac
  7900. case `$CC -V 2>&1 | sed 5q` in
  7901. *Sun\ C*) # Sun C 5.9
  7902. 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'
  7903. compiler_needs_object=yes
  7904. tmp_sharedflag='-G' ;;
  7905. *Sun\ F*) # Sun Fortran 8.3
  7906. tmp_sharedflag='-G' ;;
  7907. esac
  7908. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7909. if test "x$supports_anon_versioning" = xyes; then
  7910. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7911. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7912. echo "local: *; };" >> $output_objdir/$libname.ver~
  7913. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7914. fi
  7915. case $cc_basename in
  7916. xlf* | bgf* | bgxlf* | mpixlf*)
  7917. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7918. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7919. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7920. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7921. if test "x$supports_anon_versioning" = xyes; then
  7922. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7923. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7924. echo "local: *; };" >> $output_objdir/$libname.ver~
  7925. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7926. fi
  7927. ;;
  7928. esac
  7929. else
  7930. ld_shlibs=no
  7931. fi
  7932. ;;
  7933. netbsd*)
  7934. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7935. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7936. wlarc=
  7937. else
  7938. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7939. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7940. fi
  7941. ;;
  7942. solaris*)
  7943. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7944. ld_shlibs=no
  7945. cat <<_LT_EOF 1>&2
  7946. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7947. *** create shared libraries on Solaris systems. Therefore, libtool
  7948. *** is disabling shared libraries support. We urge you to upgrade GNU
  7949. *** binutils to release 2.9.1 or newer. Another option is to modify
  7950. *** your PATH or compiler configuration so that the native linker is
  7951. *** used, and then restart.
  7952. _LT_EOF
  7953. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7954. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7955. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7956. else
  7957. ld_shlibs=no
  7958. fi
  7959. ;;
  7960. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7961. case `$LD -v 2>&1` in
  7962. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7963. ld_shlibs=no
  7964. cat <<_LT_EOF 1>&2
  7965. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7966. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7967. *** is disabling shared libraries support. We urge you to upgrade GNU
  7968. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7969. *** your PATH or compiler configuration so that the native linker is
  7970. *** used, and then restart.
  7971. _LT_EOF
  7972. ;;
  7973. *)
  7974. # For security reasons, it is highly recommended that you always
  7975. # use absolute paths for naming shared libraries, and exclude the
  7976. # DT_RUNPATH tag from executables and libraries. But doing so
  7977. # requires that you compile everything twice, which is a pain.
  7978. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7979. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7980. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7981. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7982. else
  7983. ld_shlibs=no
  7984. fi
  7985. ;;
  7986. esac
  7987. ;;
  7988. sunos4*)
  7989. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7990. wlarc=
  7991. hardcode_direct=yes
  7992. hardcode_shlibpath_var=no
  7993. ;;
  7994. *)
  7995. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7996. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7997. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7998. else
  7999. ld_shlibs=no
  8000. fi
  8001. ;;
  8002. esac
  8003. if test "$ld_shlibs" = no; then
  8004. runpath_var=
  8005. hardcode_libdir_flag_spec=
  8006. export_dynamic_flag_spec=
  8007. whole_archive_flag_spec=
  8008. fi
  8009. else
  8010. # PORTME fill in a description of your system's linker (not GNU ld)
  8011. case $host_os in
  8012. aix3*)
  8013. allow_undefined_flag=unsupported
  8014. always_export_symbols=yes
  8015. 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'
  8016. # Note: this linker hardcodes the directories in LIBPATH if there
  8017. # are no directories specified by -L.
  8018. hardcode_minus_L=yes
  8019. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8020. # Neither direct hardcoding nor static linking is supported with a
  8021. # broken collect2.
  8022. hardcode_direct=unsupported
  8023. fi
  8024. ;;
  8025. aix[4-9]*)
  8026. if test "$host_cpu" = ia64; then
  8027. # On IA64, the linker does run time linking by default, so we don't
  8028. # have to do anything special.
  8029. aix_use_runtimelinking=no
  8030. exp_sym_flag='-Bexport'
  8031. no_entry_flag=""
  8032. else
  8033. # If we're using GNU nm, then we don't want the "-C" option.
  8034. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8035. # Also, AIX nm treats weak defined symbols like other global
  8036. # defined symbols, whereas GNU nm marks them as "W".
  8037. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8038. 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'
  8039. else
  8040. 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'
  8041. fi
  8042. aix_use_runtimelinking=no
  8043. # Test if we are trying to use run time linking or normal
  8044. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8045. # need to do runtime linking.
  8046. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8047. for ld_flag in $LDFLAGS; do
  8048. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8049. aix_use_runtimelinking=yes
  8050. break
  8051. fi
  8052. done
  8053. ;;
  8054. esac
  8055. exp_sym_flag='-bexport'
  8056. no_entry_flag='-bnoentry'
  8057. fi
  8058. # When large executables or shared objects are built, AIX ld can
  8059. # have problems creating the table of contents. If linking a library
  8060. # or program results in "error TOC overflow" add -mminimal-toc to
  8061. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8062. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8063. archive_cmds=''
  8064. hardcode_direct=yes
  8065. hardcode_direct_absolute=yes
  8066. hardcode_libdir_separator=':'
  8067. link_all_deplibs=yes
  8068. file_list_spec='${wl}-f,'
  8069. if test "$GCC" = yes; then
  8070. case $host_os in aix4.[012]|aix4.[012].*)
  8071. # We only want to do this on AIX 4.2 and lower, the check
  8072. # below for broken collect2 doesn't work under 4.3+
  8073. collect2name=`${CC} -print-prog-name=collect2`
  8074. if test -f "$collect2name" &&
  8075. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8076. then
  8077. # We have reworked collect2
  8078. :
  8079. else
  8080. # We have old collect2
  8081. hardcode_direct=unsupported
  8082. # It fails to find uninstalled libraries when the uninstalled
  8083. # path is not listed in the libpath. Setting hardcode_minus_L
  8084. # to unsupported forces relinking
  8085. hardcode_minus_L=yes
  8086. hardcode_libdir_flag_spec='-L$libdir'
  8087. hardcode_libdir_separator=
  8088. fi
  8089. ;;
  8090. esac
  8091. shared_flag='-shared'
  8092. if test "$aix_use_runtimelinking" = yes; then
  8093. shared_flag="$shared_flag "'${wl}-G'
  8094. fi
  8095. else
  8096. # not using gcc
  8097. if test "$host_cpu" = ia64; then
  8098. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8099. # chokes on -Wl,-G. The following line is correct:
  8100. shared_flag='-G'
  8101. else
  8102. if test "$aix_use_runtimelinking" = yes; then
  8103. shared_flag='${wl}-G'
  8104. else
  8105. shared_flag='${wl}-bM:SRE'
  8106. fi
  8107. fi
  8108. fi
  8109. export_dynamic_flag_spec='${wl}-bexpall'
  8110. # It seems that -bexpall does not export symbols beginning with
  8111. # underscore (_), so it is better to generate a list of symbols to export.
  8112. always_export_symbols=yes
  8113. if test "$aix_use_runtimelinking" = yes; then
  8114. # Warning - without using the other runtime loading flags (-brtl),
  8115. # -berok will link without error, but may produce a broken library.
  8116. allow_undefined_flag='-berok'
  8117. # Determine the default libpath from the value encoded in an
  8118. # empty executable.
  8119. if test "${lt_cv_aix_libpath+set}" = set; then
  8120. aix_libpath=$lt_cv_aix_libpath
  8121. else
  8122. if ${lt_cv_aix_libpath_+:} false; then :
  8123. $as_echo_n "(cached) " >&6
  8124. else
  8125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8126. /* end confdefs.h. */
  8127. int
  8128. main ()
  8129. {
  8130. ;
  8131. return 0;
  8132. }
  8133. _ACEOF
  8134. if ac_fn_c_try_link "$LINENO"; then :
  8135. lt_aix_libpath_sed='
  8136. /Import File Strings/,/^$/ {
  8137. /^0/ {
  8138. s/^0 *\([^ ]*\) *$/\1/
  8139. p
  8140. }
  8141. }'
  8142. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8143. # Check for a 64-bit object if we didn't find anything.
  8144. if test -z "$lt_cv_aix_libpath_"; then
  8145. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8146. fi
  8147. fi
  8148. rm -f core conftest.err conftest.$ac_objext \
  8149. conftest$ac_exeext conftest.$ac_ext
  8150. if test -z "$lt_cv_aix_libpath_"; then
  8151. lt_cv_aix_libpath_="/usr/lib:/lib"
  8152. fi
  8153. fi
  8154. aix_libpath=$lt_cv_aix_libpath_
  8155. fi
  8156. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8157. 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"
  8158. else
  8159. if test "$host_cpu" = ia64; then
  8160. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8161. allow_undefined_flag="-z nodefs"
  8162. 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"
  8163. else
  8164. # Determine the default libpath from the value encoded in an
  8165. # empty executable.
  8166. if test "${lt_cv_aix_libpath+set}" = set; then
  8167. aix_libpath=$lt_cv_aix_libpath
  8168. else
  8169. if ${lt_cv_aix_libpath_+:} false; then :
  8170. $as_echo_n "(cached) " >&6
  8171. else
  8172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8173. /* end confdefs.h. */
  8174. int
  8175. main ()
  8176. {
  8177. ;
  8178. return 0;
  8179. }
  8180. _ACEOF
  8181. if ac_fn_c_try_link "$LINENO"; then :
  8182. lt_aix_libpath_sed='
  8183. /Import File Strings/,/^$/ {
  8184. /^0/ {
  8185. s/^0 *\([^ ]*\) *$/\1/
  8186. p
  8187. }
  8188. }'
  8189. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8190. # Check for a 64-bit object if we didn't find anything.
  8191. if test -z "$lt_cv_aix_libpath_"; then
  8192. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8193. fi
  8194. fi
  8195. rm -f core conftest.err conftest.$ac_objext \
  8196. conftest$ac_exeext conftest.$ac_ext
  8197. if test -z "$lt_cv_aix_libpath_"; then
  8198. lt_cv_aix_libpath_="/usr/lib:/lib"
  8199. fi
  8200. fi
  8201. aix_libpath=$lt_cv_aix_libpath_
  8202. fi
  8203. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8204. # Warning - without using the other run time loading flags,
  8205. # -berok will link without error, but may produce a broken library.
  8206. no_undefined_flag=' ${wl}-bernotok'
  8207. allow_undefined_flag=' ${wl}-berok'
  8208. if test "$with_gnu_ld" = yes; then
  8209. # We only use this code for GNU lds that support --whole-archive.
  8210. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8211. else
  8212. # Exported symbols can be pulled into shared objects from archives
  8213. whole_archive_flag_spec='$convenience'
  8214. fi
  8215. archive_cmds_need_lc=yes
  8216. # This is similar to how AIX traditionally builds its shared libraries.
  8217. 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'
  8218. fi
  8219. fi
  8220. ;;
  8221. amigaos*)
  8222. case $host_cpu in
  8223. powerpc)
  8224. # see comment about AmigaOS4 .so support
  8225. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8226. archive_expsym_cmds=''
  8227. ;;
  8228. m68k)
  8229. 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)'
  8230. hardcode_libdir_flag_spec='-L$libdir'
  8231. hardcode_minus_L=yes
  8232. ;;
  8233. esac
  8234. ;;
  8235. bsdi[45]*)
  8236. export_dynamic_flag_spec=-rdynamic
  8237. ;;
  8238. cygwin* | mingw* | pw32* | cegcc*)
  8239. # When not using gcc, we currently assume that we are using
  8240. # Microsoft Visual C++.
  8241. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8242. # no search path for DLLs.
  8243. case $cc_basename in
  8244. cl*)
  8245. # Native MSVC
  8246. hardcode_libdir_flag_spec=' '
  8247. allow_undefined_flag=unsupported
  8248. always_export_symbols=yes
  8249. file_list_spec='@'
  8250. # Tell ltmain to make .lib files, not .a files.
  8251. libext=lib
  8252. # Tell ltmain to make .dll files, not .so files.
  8253. shrext_cmds=".dll"
  8254. # FIXME: Setting linknames here is a bad hack.
  8255. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8256. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8257. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8258. else
  8259. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8260. fi~
  8261. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8262. linknames='
  8263. # The linker will not automatically build a static lib if we build a DLL.
  8264. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8265. enable_shared_with_static_runtimes=yes
  8266. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8267. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8268. # Don't use ranlib
  8269. old_postinstall_cmds='chmod 644 $oldlib'
  8270. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8271. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8272. case $lt_outputfile in
  8273. *.exe|*.EXE) ;;
  8274. *)
  8275. lt_outputfile="$lt_outputfile.exe"
  8276. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8277. ;;
  8278. esac~
  8279. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8280. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8281. $RM "$lt_outputfile.manifest";
  8282. fi'
  8283. ;;
  8284. *)
  8285. # Assume MSVC wrapper
  8286. hardcode_libdir_flag_spec=' '
  8287. allow_undefined_flag=unsupported
  8288. # Tell ltmain to make .lib files, not .a files.
  8289. libext=lib
  8290. # Tell ltmain to make .dll files, not .so files.
  8291. shrext_cmds=".dll"
  8292. # FIXME: Setting linknames here is a bad hack.
  8293. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8294. # The linker will automatically build a .lib file if we build a DLL.
  8295. old_archive_from_new_cmds='true'
  8296. # FIXME: Should let the user specify the lib program.
  8297. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8298. enable_shared_with_static_runtimes=yes
  8299. ;;
  8300. esac
  8301. ;;
  8302. darwin* | rhapsody*)
  8303. archive_cmds_need_lc=no
  8304. hardcode_direct=no
  8305. hardcode_automatic=yes
  8306. hardcode_shlibpath_var=unsupported
  8307. if test "$lt_cv_ld_force_load" = "yes"; then
  8308. 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\"`'
  8309. else
  8310. whole_archive_flag_spec=''
  8311. fi
  8312. link_all_deplibs=yes
  8313. allow_undefined_flag="$_lt_dar_allow_undefined"
  8314. case $cc_basename in
  8315. ifort*) _lt_dar_can_shared=yes ;;
  8316. *) _lt_dar_can_shared=$GCC ;;
  8317. esac
  8318. if test "$_lt_dar_can_shared" = "yes"; then
  8319. output_verbose_link_cmd=func_echo_all
  8320. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8321. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8322. 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}"
  8323. 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}"
  8324. else
  8325. ld_shlibs=no
  8326. fi
  8327. ;;
  8328. dgux*)
  8329. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8330. hardcode_libdir_flag_spec='-L$libdir'
  8331. hardcode_shlibpath_var=no
  8332. ;;
  8333. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8334. # support. Future versions do this automatically, but an explicit c++rt0.o
  8335. # does not break anything, and helps significantly (at the cost of a little
  8336. # extra space).
  8337. freebsd2.2*)
  8338. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8339. hardcode_libdir_flag_spec='-R$libdir'
  8340. hardcode_direct=yes
  8341. hardcode_shlibpath_var=no
  8342. ;;
  8343. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8344. freebsd2.*)
  8345. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8346. hardcode_direct=yes
  8347. hardcode_minus_L=yes
  8348. hardcode_shlibpath_var=no
  8349. ;;
  8350. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8351. freebsd* | dragonfly*)
  8352. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8353. hardcode_libdir_flag_spec='-R$libdir'
  8354. hardcode_direct=yes
  8355. hardcode_shlibpath_var=no
  8356. ;;
  8357. hpux9*)
  8358. if test "$GCC" = yes; then
  8359. 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'
  8360. else
  8361. 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'
  8362. fi
  8363. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8364. hardcode_libdir_separator=:
  8365. hardcode_direct=yes
  8366. # hardcode_minus_L: Not really in the search PATH,
  8367. # but as the default location of the library.
  8368. hardcode_minus_L=yes
  8369. export_dynamic_flag_spec='${wl}-E'
  8370. ;;
  8371. hpux10*)
  8372. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8373. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8374. else
  8375. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8376. fi
  8377. if test "$with_gnu_ld" = no; then
  8378. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8379. hardcode_libdir_separator=:
  8380. hardcode_direct=yes
  8381. hardcode_direct_absolute=yes
  8382. export_dynamic_flag_spec='${wl}-E'
  8383. # hardcode_minus_L: Not really in the search PATH,
  8384. # but as the default location of the library.
  8385. hardcode_minus_L=yes
  8386. fi
  8387. ;;
  8388. hpux11*)
  8389. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8390. case $host_cpu in
  8391. hppa*64*)
  8392. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8393. ;;
  8394. ia64*)
  8395. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8396. ;;
  8397. *)
  8398. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8399. ;;
  8400. esac
  8401. else
  8402. case $host_cpu in
  8403. hppa*64*)
  8404. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. ;;
  8406. ia64*)
  8407. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8408. ;;
  8409. *)
  8410. # Older versions of the 11.00 compiler do not understand -b yet
  8411. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8413. $as_echo_n "checking if $CC understands -b... " >&6; }
  8414. if ${lt_cv_prog_compiler__b+:} false; then :
  8415. $as_echo_n "(cached) " >&6
  8416. else
  8417. lt_cv_prog_compiler__b=no
  8418. save_LDFLAGS="$LDFLAGS"
  8419. LDFLAGS="$LDFLAGS -b"
  8420. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8421. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8422. # The linker can only warn and ignore the option if not recognized
  8423. # So say no if there are warnings
  8424. if test -s conftest.err; then
  8425. # Append any errors to the config.log.
  8426. cat conftest.err 1>&5
  8427. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8428. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8429. if diff conftest.exp conftest.er2 >/dev/null; then
  8430. lt_cv_prog_compiler__b=yes
  8431. fi
  8432. else
  8433. lt_cv_prog_compiler__b=yes
  8434. fi
  8435. fi
  8436. $RM -r conftest*
  8437. LDFLAGS="$save_LDFLAGS"
  8438. fi
  8439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8440. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8441. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8442. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8443. else
  8444. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8445. fi
  8446. ;;
  8447. esac
  8448. fi
  8449. if test "$with_gnu_ld" = no; then
  8450. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8451. hardcode_libdir_separator=:
  8452. case $host_cpu in
  8453. hppa*64*|ia64*)
  8454. hardcode_direct=no
  8455. hardcode_shlibpath_var=no
  8456. ;;
  8457. *)
  8458. hardcode_direct=yes
  8459. hardcode_direct_absolute=yes
  8460. export_dynamic_flag_spec='${wl}-E'
  8461. # hardcode_minus_L: Not really in the search PATH,
  8462. # but as the default location of the library.
  8463. hardcode_minus_L=yes
  8464. ;;
  8465. esac
  8466. fi
  8467. ;;
  8468. irix5* | irix6* | nonstopux*)
  8469. if test "$GCC" = yes; then
  8470. 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'
  8471. # Try to use the -exported_symbol ld option, if it does not
  8472. # work, assume that -exports_file does not work either and
  8473. # implicitly export all symbols.
  8474. # This should be the same for all languages, so no per-tag cache variable.
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8476. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8477. if ${lt_cv_irix_exported_symbol+:} false; then :
  8478. $as_echo_n "(cached) " >&6
  8479. else
  8480. save_LDFLAGS="$LDFLAGS"
  8481. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8483. /* end confdefs.h. */
  8484. int foo (void) { return 0; }
  8485. _ACEOF
  8486. if ac_fn_c_try_link "$LINENO"; then :
  8487. lt_cv_irix_exported_symbol=yes
  8488. else
  8489. lt_cv_irix_exported_symbol=no
  8490. fi
  8491. rm -f core conftest.err conftest.$ac_objext \
  8492. conftest$ac_exeext conftest.$ac_ext
  8493. LDFLAGS="$save_LDFLAGS"
  8494. fi
  8495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8496. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8497. if test "$lt_cv_irix_exported_symbol" = yes; then
  8498. 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'
  8499. fi
  8500. else
  8501. 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'
  8502. 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'
  8503. fi
  8504. archive_cmds_need_lc='no'
  8505. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8506. hardcode_libdir_separator=:
  8507. inherit_rpath=yes
  8508. link_all_deplibs=yes
  8509. ;;
  8510. netbsd*)
  8511. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8512. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8513. else
  8514. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8515. fi
  8516. hardcode_libdir_flag_spec='-R$libdir'
  8517. hardcode_direct=yes
  8518. hardcode_shlibpath_var=no
  8519. ;;
  8520. newsos6)
  8521. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8522. hardcode_direct=yes
  8523. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8524. hardcode_libdir_separator=:
  8525. hardcode_shlibpath_var=no
  8526. ;;
  8527. *nto* | *qnx*)
  8528. ;;
  8529. openbsd*)
  8530. if test -f /usr/libexec/ld.so; then
  8531. hardcode_direct=yes
  8532. hardcode_shlibpath_var=no
  8533. hardcode_direct_absolute=yes
  8534. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8535. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8536. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8537. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8538. export_dynamic_flag_spec='${wl}-E'
  8539. else
  8540. case $host_os in
  8541. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8542. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8543. hardcode_libdir_flag_spec='-R$libdir'
  8544. ;;
  8545. *)
  8546. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8547. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8548. ;;
  8549. esac
  8550. fi
  8551. else
  8552. ld_shlibs=no
  8553. fi
  8554. ;;
  8555. os2*)
  8556. hardcode_libdir_flag_spec='-L$libdir'
  8557. hardcode_minus_L=yes
  8558. allow_undefined_flag=unsupported
  8559. 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'
  8560. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8561. ;;
  8562. osf3*)
  8563. if test "$GCC" = yes; then
  8564. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8565. 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'
  8566. else
  8567. allow_undefined_flag=' -expect_unresolved \*'
  8568. 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'
  8569. fi
  8570. archive_cmds_need_lc='no'
  8571. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8572. hardcode_libdir_separator=:
  8573. ;;
  8574. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8575. if test "$GCC" = yes; then
  8576. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8577. 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'
  8578. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8579. else
  8580. allow_undefined_flag=' -expect_unresolved \*'
  8581. 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'
  8582. 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~
  8583. $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'
  8584. # Both c and cxx compiler support -rpath directly
  8585. hardcode_libdir_flag_spec='-rpath $libdir'
  8586. fi
  8587. archive_cmds_need_lc='no'
  8588. hardcode_libdir_separator=:
  8589. ;;
  8590. solaris*)
  8591. no_undefined_flag=' -z defs'
  8592. if test "$GCC" = yes; then
  8593. wlarc='${wl}'
  8594. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8595. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8596. $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'
  8597. else
  8598. case `$CC -V 2>&1` in
  8599. *"Compilers 5.0"*)
  8600. wlarc=''
  8601. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8602. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8603. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8604. ;;
  8605. *)
  8606. wlarc='${wl}'
  8607. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8608. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8609. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8610. ;;
  8611. esac
  8612. fi
  8613. hardcode_libdir_flag_spec='-R$libdir'
  8614. hardcode_shlibpath_var=no
  8615. case $host_os in
  8616. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8617. *)
  8618. # The compiler driver will combine and reorder linker options,
  8619. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8620. # but is careful enough not to reorder.
  8621. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8622. if test "$GCC" = yes; then
  8623. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8624. else
  8625. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8626. fi
  8627. ;;
  8628. esac
  8629. link_all_deplibs=yes
  8630. ;;
  8631. sunos4*)
  8632. if test "x$host_vendor" = xsequent; then
  8633. # Use $CC to link under sequent, because it throws in some extra .o
  8634. # files that make .init and .fini sections work.
  8635. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8636. else
  8637. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8638. fi
  8639. hardcode_libdir_flag_spec='-L$libdir'
  8640. hardcode_direct=yes
  8641. hardcode_minus_L=yes
  8642. hardcode_shlibpath_var=no
  8643. ;;
  8644. sysv4)
  8645. case $host_vendor in
  8646. sni)
  8647. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8648. hardcode_direct=yes # is this really true???
  8649. ;;
  8650. siemens)
  8651. ## LD is ld it makes a PLAMLIB
  8652. ## CC just makes a GrossModule.
  8653. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8654. reload_cmds='$CC -r -o $output$reload_objs'
  8655. hardcode_direct=no
  8656. ;;
  8657. motorola)
  8658. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8659. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8660. ;;
  8661. esac
  8662. runpath_var='LD_RUN_PATH'
  8663. hardcode_shlibpath_var=no
  8664. ;;
  8665. sysv4.3*)
  8666. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8667. hardcode_shlibpath_var=no
  8668. export_dynamic_flag_spec='-Bexport'
  8669. ;;
  8670. sysv4*MP*)
  8671. if test -d /usr/nec; then
  8672. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8673. hardcode_shlibpath_var=no
  8674. runpath_var=LD_RUN_PATH
  8675. hardcode_runpath_var=yes
  8676. ld_shlibs=yes
  8677. fi
  8678. ;;
  8679. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8680. no_undefined_flag='${wl}-z,text'
  8681. archive_cmds_need_lc=no
  8682. hardcode_shlibpath_var=no
  8683. runpath_var='LD_RUN_PATH'
  8684. if test "$GCC" = yes; then
  8685. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8686. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8687. else
  8688. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8689. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8690. fi
  8691. ;;
  8692. sysv5* | sco3.2v5* | sco5v6*)
  8693. # Note: We can NOT use -z defs as we might desire, because we do not
  8694. # link with -lc, and that would cause any symbols used from libc to
  8695. # always be unresolved, which means just about no library would
  8696. # ever link correctly. If we're not using GNU ld we use -z text
  8697. # though, which does catch some bad symbols but isn't as heavy-handed
  8698. # as -z defs.
  8699. no_undefined_flag='${wl}-z,text'
  8700. allow_undefined_flag='${wl}-z,nodefs'
  8701. archive_cmds_need_lc=no
  8702. hardcode_shlibpath_var=no
  8703. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8704. hardcode_libdir_separator=':'
  8705. link_all_deplibs=yes
  8706. export_dynamic_flag_spec='${wl}-Bexport'
  8707. runpath_var='LD_RUN_PATH'
  8708. if test "$GCC" = yes; then
  8709. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8710. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8711. else
  8712. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8713. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8714. fi
  8715. ;;
  8716. uts4*)
  8717. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8718. hardcode_libdir_flag_spec='-L$libdir'
  8719. hardcode_shlibpath_var=no
  8720. ;;
  8721. *)
  8722. ld_shlibs=no
  8723. ;;
  8724. esac
  8725. if test x$host_vendor = xsni; then
  8726. case $host in
  8727. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8728. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8729. ;;
  8730. esac
  8731. fi
  8732. fi
  8733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8734. $as_echo "$ld_shlibs" >&6; }
  8735. test "$ld_shlibs" = no && can_build_shared=no
  8736. with_gnu_ld=$with_gnu_ld
  8737. #
  8738. # Do we need to explicitly link libc?
  8739. #
  8740. case "x$archive_cmds_need_lc" in
  8741. x|xyes)
  8742. # Assume -lc should be added
  8743. archive_cmds_need_lc=yes
  8744. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8745. case $archive_cmds in
  8746. *'~'*)
  8747. # FIXME: we may have to deal with multi-command sequences.
  8748. ;;
  8749. '$CC '*)
  8750. # Test whether the compiler implicitly links with -lc since on some
  8751. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8752. # to ld, don't add -lc before -lgcc.
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8754. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8755. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8756. $as_echo_n "(cached) " >&6
  8757. else
  8758. $RM conftest*
  8759. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8760. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8761. (eval $ac_compile) 2>&5
  8762. ac_status=$?
  8763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8764. test $ac_status = 0; } 2>conftest.err; then
  8765. soname=conftest
  8766. lib=conftest
  8767. libobjs=conftest.$ac_objext
  8768. deplibs=
  8769. wl=$lt_prog_compiler_wl
  8770. pic_flag=$lt_prog_compiler_pic
  8771. compiler_flags=-v
  8772. linker_flags=-v
  8773. verstring=
  8774. output_objdir=.
  8775. libname=conftest
  8776. lt_save_allow_undefined_flag=$allow_undefined_flag
  8777. allow_undefined_flag=
  8778. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8779. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8780. ac_status=$?
  8781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8782. test $ac_status = 0; }
  8783. then
  8784. lt_cv_archive_cmds_need_lc=no
  8785. else
  8786. lt_cv_archive_cmds_need_lc=yes
  8787. fi
  8788. allow_undefined_flag=$lt_save_allow_undefined_flag
  8789. else
  8790. cat conftest.err 1>&5
  8791. fi
  8792. $RM conftest*
  8793. fi
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8795. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8796. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8797. ;;
  8798. esac
  8799. fi
  8800. ;;
  8801. esac
  8802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8803. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8804. if test "$GCC" = yes; then
  8805. case $host_os in
  8806. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8807. *) lt_awk_arg="/^libraries:/" ;;
  8808. esac
  8809. case $host_os in
  8810. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8811. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8812. esac
  8813. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8814. case $lt_search_path_spec in
  8815. *\;*)
  8816. # if the path contains ";" then we assume it to be the separator
  8817. # otherwise default to the standard path separator (i.e. ":") - it is
  8818. # assumed that no part of a normal pathname contains ";" but that should
  8819. # okay in the real world where ";" in dirpaths is itself problematic.
  8820. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8821. ;;
  8822. *)
  8823. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8824. ;;
  8825. esac
  8826. # Ok, now we have the path, separated by spaces, we can step through it
  8827. # and add multilib dir if necessary.
  8828. lt_tmp_lt_search_path_spec=
  8829. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8830. for lt_sys_path in $lt_search_path_spec; do
  8831. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8832. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8833. else
  8834. test -d "$lt_sys_path" && \
  8835. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8836. fi
  8837. done
  8838. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8839. BEGIN {RS=" "; FS="/|\n";} {
  8840. lt_foo="";
  8841. lt_count=0;
  8842. for (lt_i = NF; lt_i > 0; lt_i--) {
  8843. if ($lt_i != "" && $lt_i != ".") {
  8844. if ($lt_i == "..") {
  8845. lt_count++;
  8846. } else {
  8847. if (lt_count == 0) {
  8848. lt_foo="/" $lt_i lt_foo;
  8849. } else {
  8850. lt_count--;
  8851. }
  8852. }
  8853. }
  8854. }
  8855. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8856. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8857. }'`
  8858. # AWK program above erroneously prepends '/' to C:/dos/paths
  8859. # for these hosts.
  8860. case $host_os in
  8861. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8862. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8863. esac
  8864. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8865. else
  8866. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8867. fi
  8868. library_names_spec=
  8869. libname_spec='lib$name'
  8870. soname_spec=
  8871. shrext_cmds=".so"
  8872. postinstall_cmds=
  8873. postuninstall_cmds=
  8874. finish_cmds=
  8875. finish_eval=
  8876. shlibpath_var=
  8877. shlibpath_overrides_runpath=unknown
  8878. version_type=none
  8879. dynamic_linker="$host_os ld.so"
  8880. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8881. need_lib_prefix=unknown
  8882. hardcode_into_libs=no
  8883. # when you set need_version to no, make sure it does not cause -set_version
  8884. # flags to be left without arguments
  8885. need_version=unknown
  8886. case $host_os in
  8887. aix3*)
  8888. version_type=linux # correct to gnu/linux during the next big refactor
  8889. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8890. shlibpath_var=LIBPATH
  8891. # AIX 3 has no versioning support, so we append a major version to the name.
  8892. soname_spec='${libname}${release}${shared_ext}$major'
  8893. ;;
  8894. aix[4-9]*)
  8895. version_type=linux # correct to gnu/linux during the next big refactor
  8896. need_lib_prefix=no
  8897. need_version=no
  8898. hardcode_into_libs=yes
  8899. if test "$host_cpu" = ia64; then
  8900. # AIX 5 supports IA64
  8901. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. else
  8904. # With GCC up to 2.95.x, collect2 would create an import file
  8905. # for dependence libraries. The import file would start with
  8906. # the line `#! .'. This would cause the generated library to
  8907. # depend on `.', always an invalid library. This was fixed in
  8908. # development snapshots of GCC prior to 3.0.
  8909. case $host_os in
  8910. aix4 | aix4.[01] | aix4.[01].*)
  8911. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8912. echo ' yes '
  8913. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8914. :
  8915. else
  8916. can_build_shared=no
  8917. fi
  8918. ;;
  8919. esac
  8920. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8921. # soname into executable. Probably we can add versioning support to
  8922. # collect2, so additional links can be useful in future.
  8923. if test "$aix_use_runtimelinking" = yes; then
  8924. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8925. # instead of lib<name>.a to let people know that these are not
  8926. # typical AIX shared libraries.
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8928. else
  8929. # We preserve .a as extension for shared libraries through AIX4.2
  8930. # and later when we are not doing run time linking.
  8931. library_names_spec='${libname}${release}.a $libname.a'
  8932. soname_spec='${libname}${release}${shared_ext}$major'
  8933. fi
  8934. shlibpath_var=LIBPATH
  8935. fi
  8936. ;;
  8937. amigaos*)
  8938. case $host_cpu in
  8939. powerpc)
  8940. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8941. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8943. ;;
  8944. m68k)
  8945. library_names_spec='$libname.ixlibrary $libname.a'
  8946. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8947. 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'
  8948. ;;
  8949. esac
  8950. ;;
  8951. beos*)
  8952. library_names_spec='${libname}${shared_ext}'
  8953. dynamic_linker="$host_os ld.so"
  8954. shlibpath_var=LIBRARY_PATH
  8955. ;;
  8956. bsdi[45]*)
  8957. version_type=linux # correct to gnu/linux during the next big refactor
  8958. need_version=no
  8959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8962. shlibpath_var=LD_LIBRARY_PATH
  8963. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8964. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8965. # the default ld.so.conf also contains /usr/contrib/lib and
  8966. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8967. # libtool to hard-code these into programs
  8968. ;;
  8969. cygwin* | mingw* | pw32* | cegcc*)
  8970. version_type=windows
  8971. shrext_cmds=".dll"
  8972. need_version=no
  8973. need_lib_prefix=no
  8974. case $GCC,$cc_basename in
  8975. yes,*)
  8976. # gcc
  8977. library_names_spec='$libname.dll.a'
  8978. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8979. postinstall_cmds='base_file=`basename \${file}`~
  8980. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8981. dldir=$destdir/`dirname \$dlpath`~
  8982. test -d \$dldir || mkdir -p \$dldir~
  8983. $install_prog $dir/$dlname \$dldir/$dlname~
  8984. chmod a+x \$dldir/$dlname~
  8985. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8986. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8987. fi'
  8988. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8989. dlpath=$dir/\$dldll~
  8990. $RM \$dlpath'
  8991. shlibpath_overrides_runpath=yes
  8992. case $host_os in
  8993. cygwin*)
  8994. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8995. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8996. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8997. ;;
  8998. mingw* | cegcc*)
  8999. # MinGW DLLs use traditional 'lib' prefix
  9000. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9001. ;;
  9002. pw32*)
  9003. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9004. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9005. ;;
  9006. esac
  9007. dynamic_linker='Win32 ld.exe'
  9008. ;;
  9009. *,cl*)
  9010. # Native MSVC
  9011. libname_spec='$name'
  9012. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9013. library_names_spec='${libname}.dll.lib'
  9014. case $build_os in
  9015. mingw*)
  9016. sys_lib_search_path_spec=
  9017. lt_save_ifs=$IFS
  9018. IFS=';'
  9019. for lt_path in $LIB
  9020. do
  9021. IFS=$lt_save_ifs
  9022. # Let DOS variable expansion print the short 8.3 style file name.
  9023. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9024. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9025. done
  9026. IFS=$lt_save_ifs
  9027. # Convert to MSYS style.
  9028. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9029. ;;
  9030. cygwin*)
  9031. # Convert to unix form, then to dos form, then back to unix form
  9032. # but this time dos style (no spaces!) so that the unix form looks
  9033. # like /cygdrive/c/PROGRA~1:/cygdr...
  9034. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9035. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9036. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9037. ;;
  9038. *)
  9039. sys_lib_search_path_spec="$LIB"
  9040. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9041. # It is most probably a Windows format PATH.
  9042. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9043. else
  9044. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9045. fi
  9046. # FIXME: find the short name or the path components, as spaces are
  9047. # common. (e.g. "Program Files" -> "PROGRA~1")
  9048. ;;
  9049. esac
  9050. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9051. postinstall_cmds='base_file=`basename \${file}`~
  9052. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9053. dldir=$destdir/`dirname \$dlpath`~
  9054. test -d \$dldir || mkdir -p \$dldir~
  9055. $install_prog $dir/$dlname \$dldir/$dlname'
  9056. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9057. dlpath=$dir/\$dldll~
  9058. $RM \$dlpath'
  9059. shlibpath_overrides_runpath=yes
  9060. dynamic_linker='Win32 link.exe'
  9061. ;;
  9062. *)
  9063. # Assume MSVC wrapper
  9064. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9065. dynamic_linker='Win32 ld.exe'
  9066. ;;
  9067. esac
  9068. # FIXME: first we should search . and the directory the executable is in
  9069. shlibpath_var=PATH
  9070. ;;
  9071. darwin* | rhapsody*)
  9072. dynamic_linker="$host_os dyld"
  9073. version_type=darwin
  9074. need_lib_prefix=no
  9075. need_version=no
  9076. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9077. soname_spec='${libname}${release}${major}$shared_ext'
  9078. shlibpath_overrides_runpath=yes
  9079. shlibpath_var=DYLD_LIBRARY_PATH
  9080. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9081. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9082. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9083. ;;
  9084. dgux*)
  9085. version_type=linux # correct to gnu/linux during the next big refactor
  9086. need_lib_prefix=no
  9087. need_version=no
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9089. soname_spec='${libname}${release}${shared_ext}$major'
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. ;;
  9092. freebsd* | dragonfly*)
  9093. # DragonFly does not have aout. When/if they implement a new
  9094. # versioning mechanism, adjust this.
  9095. if test -x /usr/bin/objformat; then
  9096. objformat=`/usr/bin/objformat`
  9097. else
  9098. case $host_os in
  9099. freebsd[23].*) objformat=aout ;;
  9100. *) objformat=elf ;;
  9101. esac
  9102. fi
  9103. version_type=freebsd-$objformat
  9104. case $version_type in
  9105. freebsd-elf*)
  9106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9107. need_version=no
  9108. need_lib_prefix=no
  9109. ;;
  9110. freebsd-*)
  9111. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9112. need_version=yes
  9113. ;;
  9114. esac
  9115. shlibpath_var=LD_LIBRARY_PATH
  9116. case $host_os in
  9117. freebsd2.*)
  9118. shlibpath_overrides_runpath=yes
  9119. ;;
  9120. freebsd3.[01]* | freebsdelf3.[01]*)
  9121. shlibpath_overrides_runpath=yes
  9122. hardcode_into_libs=yes
  9123. ;;
  9124. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9125. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9126. shlibpath_overrides_runpath=no
  9127. hardcode_into_libs=yes
  9128. ;;
  9129. *) # from 4.6 on, and DragonFly
  9130. shlibpath_overrides_runpath=yes
  9131. hardcode_into_libs=yes
  9132. ;;
  9133. esac
  9134. ;;
  9135. gnu*)
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. shlibpath_overrides_runpath=no
  9143. hardcode_into_libs=yes
  9144. ;;
  9145. haiku*)
  9146. version_type=linux # correct to gnu/linux during the next big refactor
  9147. need_lib_prefix=no
  9148. need_version=no
  9149. dynamic_linker="$host_os runtime_loader"
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9151. soname_spec='${libname}${release}${shared_ext}$major'
  9152. shlibpath_var=LIBRARY_PATH
  9153. shlibpath_overrides_runpath=yes
  9154. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9155. hardcode_into_libs=yes
  9156. ;;
  9157. hpux9* | hpux10* | hpux11*)
  9158. # Give a soname corresponding to the major version so that dld.sl refuses to
  9159. # link against other versions.
  9160. version_type=sunos
  9161. need_lib_prefix=no
  9162. need_version=no
  9163. case $host_cpu in
  9164. ia64*)
  9165. shrext_cmds='.so'
  9166. hardcode_into_libs=yes
  9167. dynamic_linker="$host_os dld.so"
  9168. shlibpath_var=LD_LIBRARY_PATH
  9169. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9171. soname_spec='${libname}${release}${shared_ext}$major'
  9172. if test "X$HPUX_IA64_MODE" = X32; then
  9173. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9174. else
  9175. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9176. fi
  9177. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9178. ;;
  9179. hppa*64*)
  9180. shrext_cmds='.sl'
  9181. hardcode_into_libs=yes
  9182. dynamic_linker="$host_os dld.sl"
  9183. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9184. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9186. soname_spec='${libname}${release}${shared_ext}$major'
  9187. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9188. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9189. ;;
  9190. *)
  9191. shrext_cmds='.sl'
  9192. dynamic_linker="$host_os dld.sl"
  9193. shlibpath_var=SHLIB_PATH
  9194. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9196. soname_spec='${libname}${release}${shared_ext}$major'
  9197. ;;
  9198. esac
  9199. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9200. postinstall_cmds='chmod 555 $lib'
  9201. # or fails outright, so override atomically:
  9202. install_override_mode=555
  9203. ;;
  9204. interix[3-9]*)
  9205. version_type=linux # correct to gnu/linux during the next big refactor
  9206. need_lib_prefix=no
  9207. need_version=no
  9208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9209. soname_spec='${libname}${release}${shared_ext}$major'
  9210. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. shlibpath_overrides_runpath=no
  9213. hardcode_into_libs=yes
  9214. ;;
  9215. irix5* | irix6* | nonstopux*)
  9216. case $host_os in
  9217. nonstopux*) version_type=nonstopux ;;
  9218. *)
  9219. if test "$lt_cv_prog_gnu_ld" = yes; then
  9220. version_type=linux # correct to gnu/linux during the next big refactor
  9221. else
  9222. version_type=irix
  9223. fi ;;
  9224. esac
  9225. need_lib_prefix=no
  9226. need_version=no
  9227. soname_spec='${libname}${release}${shared_ext}$major'
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9229. case $host_os in
  9230. irix5* | nonstopux*)
  9231. libsuff= shlibsuff=
  9232. ;;
  9233. *)
  9234. case $LD in # libtool.m4 will add one of these switches to LD
  9235. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9236. libsuff= shlibsuff= libmagic=32-bit;;
  9237. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9238. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9239. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9240. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9241. *) libsuff= shlibsuff= libmagic=never-match;;
  9242. esac
  9243. ;;
  9244. esac
  9245. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9246. shlibpath_overrides_runpath=no
  9247. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9248. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9249. hardcode_into_libs=yes
  9250. ;;
  9251. # No shared lib support for Linux oldld, aout, or coff.
  9252. linux*oldld* | linux*aout* | linux*coff*)
  9253. dynamic_linker=no
  9254. ;;
  9255. # This must be glibc/ELF.
  9256. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9257. version_type=linux # correct to gnu/linux during the next big refactor
  9258. need_lib_prefix=no
  9259. need_version=no
  9260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9261. soname_spec='${libname}${release}${shared_ext}$major'
  9262. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. shlibpath_overrides_runpath=no
  9265. # Some binutils ld are patched to set DT_RUNPATH
  9266. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9267. $as_echo_n "(cached) " >&6
  9268. else
  9269. lt_cv_shlibpath_overrides_runpath=no
  9270. save_LDFLAGS=$LDFLAGS
  9271. save_libdir=$libdir
  9272. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9273. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9275. /* end confdefs.h. */
  9276. int
  9277. main ()
  9278. {
  9279. ;
  9280. return 0;
  9281. }
  9282. _ACEOF
  9283. if ac_fn_c_try_link "$LINENO"; then :
  9284. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9285. lt_cv_shlibpath_overrides_runpath=yes
  9286. fi
  9287. fi
  9288. rm -f core conftest.err conftest.$ac_objext \
  9289. conftest$ac_exeext conftest.$ac_ext
  9290. LDFLAGS=$save_LDFLAGS
  9291. libdir=$save_libdir
  9292. fi
  9293. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9294. # This implies no fast_install, which is unacceptable.
  9295. # Some rework will be needed to allow for fast_install
  9296. # before this can be enabled.
  9297. hardcode_into_libs=yes
  9298. # Append ld.so.conf contents to the search path
  9299. if test -f /etc/ld.so.conf; then
  9300. 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' ' '`
  9301. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9302. fi
  9303. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9304. # powerpc, because MkLinux only supported shared libraries with the
  9305. # GNU dynamic linker. Since this was broken with cross compilers,
  9306. # most powerpc-linux boxes support dynamic linking these days and
  9307. # people can always --disable-shared, the test was removed, and we
  9308. # assume the GNU/Linux dynamic linker is in use.
  9309. dynamic_linker='GNU/Linux ld.so'
  9310. ;;
  9311. netbsd*)
  9312. version_type=sunos
  9313. need_lib_prefix=no
  9314. need_version=no
  9315. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9317. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9318. dynamic_linker='NetBSD (a.out) ld.so'
  9319. else
  9320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9321. soname_spec='${libname}${release}${shared_ext}$major'
  9322. dynamic_linker='NetBSD ld.elf_so'
  9323. fi
  9324. shlibpath_var=LD_LIBRARY_PATH
  9325. shlibpath_overrides_runpath=yes
  9326. hardcode_into_libs=yes
  9327. ;;
  9328. newsos6)
  9329. version_type=linux # correct to gnu/linux during the next big refactor
  9330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9331. shlibpath_var=LD_LIBRARY_PATH
  9332. shlibpath_overrides_runpath=yes
  9333. ;;
  9334. *nto* | *qnx*)
  9335. version_type=qnx
  9336. need_lib_prefix=no
  9337. need_version=no
  9338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9339. soname_spec='${libname}${release}${shared_ext}$major'
  9340. shlibpath_var=LD_LIBRARY_PATH
  9341. shlibpath_overrides_runpath=no
  9342. hardcode_into_libs=yes
  9343. dynamic_linker='ldqnx.so'
  9344. ;;
  9345. openbsd*)
  9346. version_type=sunos
  9347. sys_lib_dlsearch_path_spec="/usr/lib"
  9348. need_lib_prefix=no
  9349. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9350. case $host_os in
  9351. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9352. *) need_version=no ;;
  9353. esac
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9355. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9358. case $host_os in
  9359. openbsd2.[89] | openbsd2.[89].*)
  9360. shlibpath_overrides_runpath=no
  9361. ;;
  9362. *)
  9363. shlibpath_overrides_runpath=yes
  9364. ;;
  9365. esac
  9366. else
  9367. shlibpath_overrides_runpath=yes
  9368. fi
  9369. ;;
  9370. os2*)
  9371. libname_spec='$name'
  9372. shrext_cmds=".dll"
  9373. need_lib_prefix=no
  9374. library_names_spec='$libname${shared_ext} $libname.a'
  9375. dynamic_linker='OS/2 ld.exe'
  9376. shlibpath_var=LIBPATH
  9377. ;;
  9378. osf3* | osf4* | osf5*)
  9379. version_type=osf
  9380. need_lib_prefix=no
  9381. need_version=no
  9382. soname_spec='${libname}${release}${shared_ext}$major'
  9383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9384. shlibpath_var=LD_LIBRARY_PATH
  9385. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9386. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9387. ;;
  9388. rdos*)
  9389. dynamic_linker=no
  9390. ;;
  9391. solaris*)
  9392. version_type=linux # correct to gnu/linux during the next big refactor
  9393. need_lib_prefix=no
  9394. need_version=no
  9395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9396. soname_spec='${libname}${release}${shared_ext}$major'
  9397. shlibpath_var=LD_LIBRARY_PATH
  9398. shlibpath_overrides_runpath=yes
  9399. hardcode_into_libs=yes
  9400. # ldd complains unless libraries are executable
  9401. postinstall_cmds='chmod +x $lib'
  9402. ;;
  9403. sunos4*)
  9404. version_type=sunos
  9405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9406. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9407. shlibpath_var=LD_LIBRARY_PATH
  9408. shlibpath_overrides_runpath=yes
  9409. if test "$with_gnu_ld" = yes; then
  9410. need_lib_prefix=no
  9411. fi
  9412. need_version=yes
  9413. ;;
  9414. sysv4 | sysv4.3*)
  9415. version_type=linux # correct to gnu/linux during the next big refactor
  9416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9417. soname_spec='${libname}${release}${shared_ext}$major'
  9418. shlibpath_var=LD_LIBRARY_PATH
  9419. case $host_vendor in
  9420. sni)
  9421. shlibpath_overrides_runpath=no
  9422. need_lib_prefix=no
  9423. runpath_var=LD_RUN_PATH
  9424. ;;
  9425. siemens)
  9426. need_lib_prefix=no
  9427. ;;
  9428. motorola)
  9429. need_lib_prefix=no
  9430. need_version=no
  9431. shlibpath_overrides_runpath=no
  9432. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9433. ;;
  9434. esac
  9435. ;;
  9436. sysv4*MP*)
  9437. if test -d /usr/nec ;then
  9438. version_type=linux # correct to gnu/linux during the next big refactor
  9439. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9440. soname_spec='$libname${shared_ext}.$major'
  9441. shlibpath_var=LD_LIBRARY_PATH
  9442. fi
  9443. ;;
  9444. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9445. version_type=freebsd-elf
  9446. need_lib_prefix=no
  9447. need_version=no
  9448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9449. soname_spec='${libname}${release}${shared_ext}$major'
  9450. shlibpath_var=LD_LIBRARY_PATH
  9451. shlibpath_overrides_runpath=yes
  9452. hardcode_into_libs=yes
  9453. if test "$with_gnu_ld" = yes; then
  9454. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9455. else
  9456. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9457. case $host_os in
  9458. sco3.2v5*)
  9459. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9460. ;;
  9461. esac
  9462. fi
  9463. sys_lib_dlsearch_path_spec='/usr/lib'
  9464. ;;
  9465. tpf*)
  9466. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9467. version_type=linux # correct to gnu/linux during the next big refactor
  9468. need_lib_prefix=no
  9469. need_version=no
  9470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9471. shlibpath_var=LD_LIBRARY_PATH
  9472. shlibpath_overrides_runpath=no
  9473. hardcode_into_libs=yes
  9474. ;;
  9475. uts4*)
  9476. version_type=linux # correct to gnu/linux during the next big refactor
  9477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9478. soname_spec='${libname}${release}${shared_ext}$major'
  9479. shlibpath_var=LD_LIBRARY_PATH
  9480. ;;
  9481. *)
  9482. dynamic_linker=no
  9483. ;;
  9484. esac
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9486. $as_echo "$dynamic_linker" >&6; }
  9487. test "$dynamic_linker" = no && can_build_shared=no
  9488. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9489. if test "$GCC" = yes; then
  9490. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9491. fi
  9492. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9493. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9494. fi
  9495. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9496. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9497. fi
  9498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9499. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9500. hardcode_action=
  9501. if test -n "$hardcode_libdir_flag_spec" ||
  9502. test -n "$runpath_var" ||
  9503. test "X$hardcode_automatic" = "Xyes" ; then
  9504. # We can hardcode non-existent directories.
  9505. if test "$hardcode_direct" != no &&
  9506. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9507. # have to relink, otherwise we might link with an installed library
  9508. # when we should be linking with a yet-to-be-installed one
  9509. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9510. test "$hardcode_minus_L" != no; then
  9511. # Linking always hardcodes the temporary library directory.
  9512. hardcode_action=relink
  9513. else
  9514. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9515. hardcode_action=immediate
  9516. fi
  9517. else
  9518. # We cannot hardcode anything, or else we can only hardcode existing
  9519. # directories.
  9520. hardcode_action=unsupported
  9521. fi
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9523. $as_echo "$hardcode_action" >&6; }
  9524. if test "$hardcode_action" = relink ||
  9525. test "$inherit_rpath" = yes; then
  9526. # Fast installation is not supported
  9527. enable_fast_install=no
  9528. elif test "$shlibpath_overrides_runpath" = yes ||
  9529. test "$enable_shared" = no; then
  9530. # Fast installation is not necessary
  9531. enable_fast_install=needless
  9532. fi
  9533. if test "x$enable_dlopen" != xyes; then
  9534. enable_dlopen=unknown
  9535. enable_dlopen_self=unknown
  9536. enable_dlopen_self_static=unknown
  9537. else
  9538. lt_cv_dlopen=no
  9539. lt_cv_dlopen_libs=
  9540. case $host_os in
  9541. beos*)
  9542. lt_cv_dlopen="load_add_on"
  9543. lt_cv_dlopen_libs=
  9544. lt_cv_dlopen_self=yes
  9545. ;;
  9546. mingw* | pw32* | cegcc*)
  9547. lt_cv_dlopen="LoadLibrary"
  9548. lt_cv_dlopen_libs=
  9549. ;;
  9550. cygwin*)
  9551. lt_cv_dlopen="dlopen"
  9552. lt_cv_dlopen_libs=
  9553. ;;
  9554. darwin*)
  9555. # if libdl is installed we need to link against it
  9556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9557. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9558. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9559. $as_echo_n "(cached) " >&6
  9560. else
  9561. ac_check_lib_save_LIBS=$LIBS
  9562. LIBS="-ldl $LIBS"
  9563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9564. /* end confdefs.h. */
  9565. /* Override any GCC internal prototype to avoid an error.
  9566. Use char because int might match the return type of a GCC
  9567. builtin and then its argument prototype would still apply. */
  9568. #ifdef __cplusplus
  9569. extern "C"
  9570. #endif
  9571. char dlopen ();
  9572. int
  9573. main ()
  9574. {
  9575. return dlopen ();
  9576. ;
  9577. return 0;
  9578. }
  9579. _ACEOF
  9580. if ac_fn_c_try_link "$LINENO"; then :
  9581. ac_cv_lib_dl_dlopen=yes
  9582. else
  9583. ac_cv_lib_dl_dlopen=no
  9584. fi
  9585. rm -f core conftest.err conftest.$ac_objext \
  9586. conftest$ac_exeext conftest.$ac_ext
  9587. LIBS=$ac_check_lib_save_LIBS
  9588. fi
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9590. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9591. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9592. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9593. else
  9594. lt_cv_dlopen="dyld"
  9595. lt_cv_dlopen_libs=
  9596. lt_cv_dlopen_self=yes
  9597. fi
  9598. ;;
  9599. *)
  9600. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9601. if test "x$ac_cv_func_shl_load" = xyes; then :
  9602. lt_cv_dlopen="shl_load"
  9603. else
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9605. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9606. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9607. $as_echo_n "(cached) " >&6
  9608. else
  9609. ac_check_lib_save_LIBS=$LIBS
  9610. LIBS="-ldld $LIBS"
  9611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9612. /* end confdefs.h. */
  9613. /* Override any GCC internal prototype to avoid an error.
  9614. Use char because int might match the return type of a GCC
  9615. builtin and then its argument prototype would still apply. */
  9616. #ifdef __cplusplus
  9617. extern "C"
  9618. #endif
  9619. char shl_load ();
  9620. int
  9621. main ()
  9622. {
  9623. return shl_load ();
  9624. ;
  9625. return 0;
  9626. }
  9627. _ACEOF
  9628. if ac_fn_c_try_link "$LINENO"; then :
  9629. ac_cv_lib_dld_shl_load=yes
  9630. else
  9631. ac_cv_lib_dld_shl_load=no
  9632. fi
  9633. rm -f core conftest.err conftest.$ac_objext \
  9634. conftest$ac_exeext conftest.$ac_ext
  9635. LIBS=$ac_check_lib_save_LIBS
  9636. fi
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9638. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9639. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9640. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9641. else
  9642. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9643. if test "x$ac_cv_func_dlopen" = xyes; then :
  9644. lt_cv_dlopen="dlopen"
  9645. else
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9647. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9648. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9649. $as_echo_n "(cached) " >&6
  9650. else
  9651. ac_check_lib_save_LIBS=$LIBS
  9652. LIBS="-ldl $LIBS"
  9653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9654. /* end confdefs.h. */
  9655. /* Override any GCC internal prototype to avoid an error.
  9656. Use char because int might match the return type of a GCC
  9657. builtin and then its argument prototype would still apply. */
  9658. #ifdef __cplusplus
  9659. extern "C"
  9660. #endif
  9661. char dlopen ();
  9662. int
  9663. main ()
  9664. {
  9665. return dlopen ();
  9666. ;
  9667. return 0;
  9668. }
  9669. _ACEOF
  9670. if ac_fn_c_try_link "$LINENO"; then :
  9671. ac_cv_lib_dl_dlopen=yes
  9672. else
  9673. ac_cv_lib_dl_dlopen=no
  9674. fi
  9675. rm -f core conftest.err conftest.$ac_objext \
  9676. conftest$ac_exeext conftest.$ac_ext
  9677. LIBS=$ac_check_lib_save_LIBS
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9680. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9681. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9682. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9683. else
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9685. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9686. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9687. $as_echo_n "(cached) " >&6
  9688. else
  9689. ac_check_lib_save_LIBS=$LIBS
  9690. LIBS="-lsvld $LIBS"
  9691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9692. /* end confdefs.h. */
  9693. /* Override any GCC internal prototype to avoid an error.
  9694. Use char because int might match the return type of a GCC
  9695. builtin and then its argument prototype would still apply. */
  9696. #ifdef __cplusplus
  9697. extern "C"
  9698. #endif
  9699. char dlopen ();
  9700. int
  9701. main ()
  9702. {
  9703. return dlopen ();
  9704. ;
  9705. return 0;
  9706. }
  9707. _ACEOF
  9708. if ac_fn_c_try_link "$LINENO"; then :
  9709. ac_cv_lib_svld_dlopen=yes
  9710. else
  9711. ac_cv_lib_svld_dlopen=no
  9712. fi
  9713. rm -f core conftest.err conftest.$ac_objext \
  9714. conftest$ac_exeext conftest.$ac_ext
  9715. LIBS=$ac_check_lib_save_LIBS
  9716. fi
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9718. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9719. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9720. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9721. else
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9723. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9724. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9725. $as_echo_n "(cached) " >&6
  9726. else
  9727. ac_check_lib_save_LIBS=$LIBS
  9728. LIBS="-ldld $LIBS"
  9729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9730. /* end confdefs.h. */
  9731. /* Override any GCC internal prototype to avoid an error.
  9732. Use char because int might match the return type of a GCC
  9733. builtin and then its argument prototype would still apply. */
  9734. #ifdef __cplusplus
  9735. extern "C"
  9736. #endif
  9737. char dld_link ();
  9738. int
  9739. main ()
  9740. {
  9741. return dld_link ();
  9742. ;
  9743. return 0;
  9744. }
  9745. _ACEOF
  9746. if ac_fn_c_try_link "$LINENO"; then :
  9747. ac_cv_lib_dld_dld_link=yes
  9748. else
  9749. ac_cv_lib_dld_dld_link=no
  9750. fi
  9751. rm -f core conftest.err conftest.$ac_objext \
  9752. conftest$ac_exeext conftest.$ac_ext
  9753. LIBS=$ac_check_lib_save_LIBS
  9754. fi
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9756. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9757. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9758. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9759. fi
  9760. fi
  9761. fi
  9762. fi
  9763. fi
  9764. fi
  9765. ;;
  9766. esac
  9767. if test "x$lt_cv_dlopen" != xno; then
  9768. enable_dlopen=yes
  9769. else
  9770. enable_dlopen=no
  9771. fi
  9772. case $lt_cv_dlopen in
  9773. dlopen)
  9774. save_CPPFLAGS="$CPPFLAGS"
  9775. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9776. save_LDFLAGS="$LDFLAGS"
  9777. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9778. save_LIBS="$LIBS"
  9779. LIBS="$lt_cv_dlopen_libs $LIBS"
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9781. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9782. if ${lt_cv_dlopen_self+:} false; then :
  9783. $as_echo_n "(cached) " >&6
  9784. else
  9785. if test "$cross_compiling" = yes; then :
  9786. lt_cv_dlopen_self=cross
  9787. else
  9788. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9789. lt_status=$lt_dlunknown
  9790. cat > conftest.$ac_ext <<_LT_EOF
  9791. #line $LINENO "configure"
  9792. #include "confdefs.h"
  9793. #if HAVE_DLFCN_H
  9794. #include <dlfcn.h>
  9795. #endif
  9796. #include <stdio.h>
  9797. #ifdef RTLD_GLOBAL
  9798. # define LT_DLGLOBAL RTLD_GLOBAL
  9799. #else
  9800. # ifdef DL_GLOBAL
  9801. # define LT_DLGLOBAL DL_GLOBAL
  9802. # else
  9803. # define LT_DLGLOBAL 0
  9804. # endif
  9805. #endif
  9806. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9807. find out it does not work in some platform. */
  9808. #ifndef LT_DLLAZY_OR_NOW
  9809. # ifdef RTLD_LAZY
  9810. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9811. # else
  9812. # ifdef DL_LAZY
  9813. # define LT_DLLAZY_OR_NOW DL_LAZY
  9814. # else
  9815. # ifdef RTLD_NOW
  9816. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9817. # else
  9818. # ifdef DL_NOW
  9819. # define LT_DLLAZY_OR_NOW DL_NOW
  9820. # else
  9821. # define LT_DLLAZY_OR_NOW 0
  9822. # endif
  9823. # endif
  9824. # endif
  9825. # endif
  9826. #endif
  9827. /* When -fvisbility=hidden is used, assume the code has been annotated
  9828. correspondingly for the symbols needed. */
  9829. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9830. int fnord () __attribute__((visibility("default")));
  9831. #endif
  9832. int fnord () { return 42; }
  9833. int main ()
  9834. {
  9835. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9836. int status = $lt_dlunknown;
  9837. if (self)
  9838. {
  9839. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9840. else
  9841. {
  9842. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9843. else puts (dlerror ());
  9844. }
  9845. /* dlclose (self); */
  9846. }
  9847. else
  9848. puts (dlerror ());
  9849. return status;
  9850. }
  9851. _LT_EOF
  9852. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9853. (eval $ac_link) 2>&5
  9854. ac_status=$?
  9855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9856. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9857. (./conftest; exit; ) >&5 2>/dev/null
  9858. lt_status=$?
  9859. case x$lt_status in
  9860. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9861. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9862. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9863. esac
  9864. else :
  9865. # compilation failed
  9866. lt_cv_dlopen_self=no
  9867. fi
  9868. fi
  9869. rm -fr conftest*
  9870. fi
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9872. $as_echo "$lt_cv_dlopen_self" >&6; }
  9873. if test "x$lt_cv_dlopen_self" = xyes; then
  9874. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9876. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9877. if ${lt_cv_dlopen_self_static+:} false; then :
  9878. $as_echo_n "(cached) " >&6
  9879. else
  9880. if test "$cross_compiling" = yes; then :
  9881. lt_cv_dlopen_self_static=cross
  9882. else
  9883. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9884. lt_status=$lt_dlunknown
  9885. cat > conftest.$ac_ext <<_LT_EOF
  9886. #line $LINENO "configure"
  9887. #include "confdefs.h"
  9888. #if HAVE_DLFCN_H
  9889. #include <dlfcn.h>
  9890. #endif
  9891. #include <stdio.h>
  9892. #ifdef RTLD_GLOBAL
  9893. # define LT_DLGLOBAL RTLD_GLOBAL
  9894. #else
  9895. # ifdef DL_GLOBAL
  9896. # define LT_DLGLOBAL DL_GLOBAL
  9897. # else
  9898. # define LT_DLGLOBAL 0
  9899. # endif
  9900. #endif
  9901. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9902. find out it does not work in some platform. */
  9903. #ifndef LT_DLLAZY_OR_NOW
  9904. # ifdef RTLD_LAZY
  9905. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9906. # else
  9907. # ifdef DL_LAZY
  9908. # define LT_DLLAZY_OR_NOW DL_LAZY
  9909. # else
  9910. # ifdef RTLD_NOW
  9911. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9912. # else
  9913. # ifdef DL_NOW
  9914. # define LT_DLLAZY_OR_NOW DL_NOW
  9915. # else
  9916. # define LT_DLLAZY_OR_NOW 0
  9917. # endif
  9918. # endif
  9919. # endif
  9920. # endif
  9921. #endif
  9922. /* When -fvisbility=hidden is used, assume the code has been annotated
  9923. correspondingly for the symbols needed. */
  9924. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9925. int fnord () __attribute__((visibility("default")));
  9926. #endif
  9927. int fnord () { return 42; }
  9928. int main ()
  9929. {
  9930. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9931. int status = $lt_dlunknown;
  9932. if (self)
  9933. {
  9934. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9935. else
  9936. {
  9937. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9938. else puts (dlerror ());
  9939. }
  9940. /* dlclose (self); */
  9941. }
  9942. else
  9943. puts (dlerror ());
  9944. return status;
  9945. }
  9946. _LT_EOF
  9947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9948. (eval $ac_link) 2>&5
  9949. ac_status=$?
  9950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9951. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9952. (./conftest; exit; ) >&5 2>/dev/null
  9953. lt_status=$?
  9954. case x$lt_status in
  9955. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9956. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9957. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9958. esac
  9959. else :
  9960. # compilation failed
  9961. lt_cv_dlopen_self_static=no
  9962. fi
  9963. fi
  9964. rm -fr conftest*
  9965. fi
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9967. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9968. fi
  9969. CPPFLAGS="$save_CPPFLAGS"
  9970. LDFLAGS="$save_LDFLAGS"
  9971. LIBS="$save_LIBS"
  9972. ;;
  9973. esac
  9974. case $lt_cv_dlopen_self in
  9975. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9976. *) enable_dlopen_self=unknown ;;
  9977. esac
  9978. case $lt_cv_dlopen_self_static in
  9979. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9980. *) enable_dlopen_self_static=unknown ;;
  9981. esac
  9982. fi
  9983. striplib=
  9984. old_striplib=
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9986. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9987. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9988. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9989. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9991. $as_echo "yes" >&6; }
  9992. else
  9993. # FIXME - insert some real tests, host_os isn't really good enough
  9994. case $host_os in
  9995. darwin*)
  9996. if test -n "$STRIP" ; then
  9997. striplib="$STRIP -x"
  9998. old_striplib="$STRIP -S"
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10000. $as_echo "yes" >&6; }
  10001. else
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10003. $as_echo "no" >&6; }
  10004. fi
  10005. ;;
  10006. *)
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10008. $as_echo "no" >&6; }
  10009. ;;
  10010. esac
  10011. fi
  10012. # Report which library types will actually be built
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10014. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10016. $as_echo "$can_build_shared" >&6; }
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10018. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10019. test "$can_build_shared" = "no" && enable_shared=no
  10020. # On AIX, shared libraries and static libraries use the same namespace, and
  10021. # are all built from PIC.
  10022. case $host_os in
  10023. aix3*)
  10024. test "$enable_shared" = yes && enable_static=no
  10025. if test -n "$RANLIB"; then
  10026. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10027. postinstall_cmds='$RANLIB $lib'
  10028. fi
  10029. ;;
  10030. aix[4-9]*)
  10031. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10032. test "$enable_shared" = yes && enable_static=no
  10033. fi
  10034. ;;
  10035. esac
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10037. $as_echo "$enable_shared" >&6; }
  10038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10039. $as_echo_n "checking whether to build static libraries... " >&6; }
  10040. # Make sure either enable_shared or enable_static is yes.
  10041. test "$enable_shared" = yes || enable_static=yes
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10043. $as_echo "$enable_static" >&6; }
  10044. fi
  10045. ac_ext=c
  10046. ac_cpp='$CPP $CPPFLAGS'
  10047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10050. CC="$lt_save_CC"
  10051. ac_config_commands="$ac_config_commands libtool"
  10052. # Only expand once:
  10053. ac_config_headers="$ac_config_headers config.h"
  10054. am__api_version='1.12'
  10055. # Find a good install program. We prefer a C program (faster),
  10056. # so one script is as good as another. But avoid the broken or
  10057. # incompatible versions:
  10058. # SysV /etc/install, /usr/sbin/install
  10059. # SunOS /usr/etc/install
  10060. # IRIX /sbin/install
  10061. # AIX /bin/install
  10062. # AmigaOS /C/install, which installs bootblocks on floppy discs
  10063. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10064. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10065. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10066. # OS/2's system install, which has a completely different semantic
  10067. # ./install, which can be erroneously created by make from ./install.sh.
  10068. # Reject install programs that cannot install multiple files.
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  10070. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  10071. if test -z "$INSTALL"; then
  10072. if ${ac_cv_path_install+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10076. for as_dir in $PATH
  10077. do
  10078. IFS=$as_save_IFS
  10079. test -z "$as_dir" && as_dir=.
  10080. # Account for people who put trailing slashes in PATH elements.
  10081. case $as_dir/ in #((
  10082. ./ | .// | /[cC]/* | \
  10083. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10084. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  10085. /usr/ucb/* ) ;;
  10086. *)
  10087. # OSF1 and SCO ODT 3.0 have their own names for install.
  10088. # Don't use installbsd from OSF since it installs stuff as root
  10089. # by default.
  10090. for ac_prog in ginstall scoinst install; do
  10091. for ac_exec_ext in '' $ac_executable_extensions; do
  10092. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10093. if test $ac_prog = install &&
  10094. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10095. # AIX install. It has an incompatible calling convention.
  10096. :
  10097. elif test $ac_prog = install &&
  10098. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10099. # program-specific install script used by HP pwplus--don't use.
  10100. :
  10101. else
  10102. rm -rf conftest.one conftest.two conftest.dir
  10103. echo one > conftest.one
  10104. echo two > conftest.two
  10105. mkdir conftest.dir
  10106. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  10107. test -s conftest.one && test -s conftest.two &&
  10108. test -s conftest.dir/conftest.one &&
  10109. test -s conftest.dir/conftest.two
  10110. then
  10111. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10112. break 3
  10113. fi
  10114. fi
  10115. fi
  10116. done
  10117. done
  10118. ;;
  10119. esac
  10120. done
  10121. IFS=$as_save_IFS
  10122. rm -rf conftest.one conftest.two conftest.dir
  10123. fi
  10124. if test "${ac_cv_path_install+set}" = set; then
  10125. INSTALL=$ac_cv_path_install
  10126. else
  10127. # As a last resort, use the slow shell script. Don't cache a
  10128. # value for INSTALL within a source directory, because that will
  10129. # break other packages using the cache if that directory is
  10130. # removed, or if the value is a relative name.
  10131. INSTALL=$ac_install_sh
  10132. fi
  10133. fi
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  10135. $as_echo "$INSTALL" >&6; }
  10136. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10137. # It thinks the first close brace ends the variable substitution.
  10138. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10139. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10140. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  10142. $as_echo_n "checking whether build environment is sane... " >&6; }
  10143. # Reject unsafe characters in $srcdir or the absolute working directory
  10144. # name. Accept space and tab only in the latter.
  10145. am_lf='
  10146. '
  10147. case `pwd` in
  10148. *[\\\"\#\$\&\'\`$am_lf]*)
  10149. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  10150. esac
  10151. case $srcdir in
  10152. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  10153. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  10154. esac
  10155. # Do 'set' in a subshell so we don't clobber the current shell's
  10156. # arguments. Must try -L first in case configure is actually a
  10157. # symlink; some systems play weird games with the mod time of symlinks
  10158. # (eg FreeBSD returns the mod time of the symlink's containing
  10159. # directory).
  10160. if (
  10161. am_has_slept=no
  10162. for am_try in 1 2; do
  10163. echo "timestamp, slept: $am_has_slept" > conftest.file
  10164. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  10165. if test "$*" = "X"; then
  10166. # -L didn't work.
  10167. set X `ls -t "$srcdir/configure" conftest.file`
  10168. fi
  10169. if test "$*" != "X $srcdir/configure conftest.file" \
  10170. && test "$*" != "X conftest.file $srcdir/configure"; then
  10171. # If neither matched, then we have a broken ls. This can happen
  10172. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10173. # broken ls alias from the environment. This has actually
  10174. # happened. Such a system could not be considered "sane".
  10175. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  10176. alias in your environment" "$LINENO" 5
  10177. fi
  10178. if test "$2" = conftest.file || test $am_try -eq 2; then
  10179. break
  10180. fi
  10181. # Just in case.
  10182. sleep 1
  10183. am_has_slept=yes
  10184. done
  10185. test "$2" = conftest.file
  10186. )
  10187. then
  10188. # Ok.
  10189. :
  10190. else
  10191. as_fn_error $? "newly created file is older than distributed files!
  10192. Check your system clock" "$LINENO" 5
  10193. fi
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10195. $as_echo "yes" >&6; }
  10196. # If we didn't sleep, we still need to ensure time stamps of config.status and
  10197. # generated files are strictly newer.
  10198. am_sleep_pid=
  10199. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  10200. ( sleep 1 ) &
  10201. am_sleep_pid=$!
  10202. fi
  10203. rm -f conftest.file
  10204. test "$program_prefix" != NONE &&
  10205. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10206. # Use a double $ so make ignores it.
  10207. test "$program_suffix" != NONE &&
  10208. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10209. # Double any \ or $.
  10210. # By default was `s,x,x', remove it if useless.
  10211. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10212. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10213. # expand $ac_aux_dir to an absolute path
  10214. am_aux_dir=`cd $ac_aux_dir && pwd`
  10215. if test x"${MISSING+set}" != xset; then
  10216. case $am_aux_dir in
  10217. *\ * | *\ *)
  10218. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10219. *)
  10220. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10221. esac
  10222. fi
  10223. # Use eval to expand $SHELL
  10224. if eval "$MISSING --run true"; then
  10225. am_missing_run="$MISSING --run "
  10226. else
  10227. am_missing_run=
  10228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  10229. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  10230. fi
  10231. if test x"${install_sh}" != xset; then
  10232. case $am_aux_dir in
  10233. *\ * | *\ *)
  10234. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10235. *)
  10236. install_sh="\${SHELL} $am_aux_dir/install-sh"
  10237. esac
  10238. fi
  10239. # Installed binaries are usually stripped using 'strip' when the user
  10240. # run "make install-strip". However 'strip' might not be the right
  10241. # tool to use in cross-compilation environments, therefore Automake
  10242. # will honor the 'STRIP' environment variable to overrule this program.
  10243. if test "$cross_compiling" != no; then
  10244. if test -n "$ac_tool_prefix"; then
  10245. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10246. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10248. $as_echo_n "checking for $ac_word... " >&6; }
  10249. if ${ac_cv_prog_STRIP+:} false; then :
  10250. $as_echo_n "(cached) " >&6
  10251. else
  10252. if test -n "$STRIP"; then
  10253. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10254. else
  10255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10256. for as_dir in $PATH
  10257. do
  10258. IFS=$as_save_IFS
  10259. test -z "$as_dir" && as_dir=.
  10260. for ac_exec_ext in '' $ac_executable_extensions; do
  10261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10262. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10264. break 2
  10265. fi
  10266. done
  10267. done
  10268. IFS=$as_save_IFS
  10269. fi
  10270. fi
  10271. STRIP=$ac_cv_prog_STRIP
  10272. if test -n "$STRIP"; then
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10274. $as_echo "$STRIP" >&6; }
  10275. else
  10276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10277. $as_echo "no" >&6; }
  10278. fi
  10279. fi
  10280. if test -z "$ac_cv_prog_STRIP"; then
  10281. ac_ct_STRIP=$STRIP
  10282. # Extract the first word of "strip", so it can be a program name with args.
  10283. set dummy strip; ac_word=$2
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10285. $as_echo_n "checking for $ac_word... " >&6; }
  10286. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10287. $as_echo_n "(cached) " >&6
  10288. else
  10289. if test -n "$ac_ct_STRIP"; then
  10290. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10291. else
  10292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10293. for as_dir in $PATH
  10294. do
  10295. IFS=$as_save_IFS
  10296. test -z "$as_dir" && as_dir=.
  10297. for ac_exec_ext in '' $ac_executable_extensions; do
  10298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10299. ac_cv_prog_ac_ct_STRIP="strip"
  10300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10301. break 2
  10302. fi
  10303. done
  10304. done
  10305. IFS=$as_save_IFS
  10306. fi
  10307. fi
  10308. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10309. if test -n "$ac_ct_STRIP"; then
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10311. $as_echo "$ac_ct_STRIP" >&6; }
  10312. else
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10314. $as_echo "no" >&6; }
  10315. fi
  10316. if test "x$ac_ct_STRIP" = x; then
  10317. STRIP=":"
  10318. else
  10319. case $cross_compiling:$ac_tool_warned in
  10320. yes:)
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10323. ac_tool_warned=yes ;;
  10324. esac
  10325. STRIP=$ac_ct_STRIP
  10326. fi
  10327. else
  10328. STRIP="$ac_cv_prog_STRIP"
  10329. fi
  10330. fi
  10331. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10333. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10334. if test -z "$MKDIR_P"; then
  10335. if ${ac_cv_path_mkdir+:} false; then :
  10336. $as_echo_n "(cached) " >&6
  10337. else
  10338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10339. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10340. do
  10341. IFS=$as_save_IFS
  10342. test -z "$as_dir" && as_dir=.
  10343. for ac_prog in mkdir gmkdir; do
  10344. for ac_exec_ext in '' $ac_executable_extensions; do
  10345. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  10346. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10347. 'mkdir (GNU coreutils) '* | \
  10348. 'mkdir (coreutils) '* | \
  10349. 'mkdir (fileutils) '4.1*)
  10350. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10351. break 3;;
  10352. esac
  10353. done
  10354. done
  10355. done
  10356. IFS=$as_save_IFS
  10357. fi
  10358. test -d ./--version && rmdir ./--version
  10359. if test "${ac_cv_path_mkdir+set}" = set; then
  10360. MKDIR_P="$ac_cv_path_mkdir -p"
  10361. else
  10362. # As a last resort, use the slow shell script. Don't cache a
  10363. # value for MKDIR_P within a source directory, because that will
  10364. # break other packages using the cache if that directory is
  10365. # removed, or if the value is a relative name.
  10366. MKDIR_P="$ac_install_sh -d"
  10367. fi
  10368. fi
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10370. $as_echo "$MKDIR_P" >&6; }
  10371. mkdir_p="$MKDIR_P"
  10372. case $mkdir_p in
  10373. [\\/$]* | ?:[\\/]*) ;;
  10374. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  10375. esac
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10377. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10378. set x ${MAKE-make}
  10379. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10380. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  10381. $as_echo_n "(cached) " >&6
  10382. else
  10383. cat >conftest.make <<\_ACEOF
  10384. SHELL = /bin/sh
  10385. all:
  10386. @echo '@@@%%%=$(MAKE)=@@@%%%'
  10387. _ACEOF
  10388. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  10389. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10390. *@@@%%%=?*=@@@%%%*)
  10391. eval ac_cv_prog_make_${ac_make}_set=yes;;
  10392. *)
  10393. eval ac_cv_prog_make_${ac_make}_set=no;;
  10394. esac
  10395. rm -f conftest.make
  10396. fi
  10397. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10399. $as_echo "yes" >&6; }
  10400. SET_MAKE=
  10401. else
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10403. $as_echo "no" >&6; }
  10404. SET_MAKE="MAKE=${MAKE-make}"
  10405. fi
  10406. rm -rf .tst 2>/dev/null
  10407. mkdir .tst 2>/dev/null
  10408. if test -d .tst; then
  10409. am__leading_dot=.
  10410. else
  10411. am__leading_dot=_
  10412. fi
  10413. rmdir .tst 2>/dev/null
  10414. DEPDIR="${am__leading_dot}deps"
  10415. ac_config_commands="$ac_config_commands depfiles"
  10416. am_make=${MAKE-make}
  10417. cat > confinc << 'END'
  10418. am__doit:
  10419. @echo this is the am__doit target
  10420. .PHONY: am__doit
  10421. END
  10422. # If we don't find an include directive, just comment out the code.
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  10424. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  10425. am__include="#"
  10426. am__quote=
  10427. _am_result=none
  10428. # First try GNU make style include.
  10429. echo "include confinc" > confmf
  10430. # Ignore all kinds of additional output from 'make'.
  10431. case `$am_make -s -f confmf 2> /dev/null` in #(
  10432. *the\ am__doit\ target*)
  10433. am__include=include
  10434. am__quote=
  10435. _am_result=GNU
  10436. ;;
  10437. esac
  10438. # Now try BSD make style include.
  10439. if test "$am__include" = "#"; then
  10440. echo '.include "confinc"' > confmf
  10441. case `$am_make -s -f confmf 2> /dev/null` in #(
  10442. *the\ am__doit\ target*)
  10443. am__include=.include
  10444. am__quote="\""
  10445. _am_result=BSD
  10446. ;;
  10447. esac
  10448. fi
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  10450. $as_echo "$_am_result" >&6; }
  10451. rm -f confinc confmf
  10452. # Check whether --enable-dependency-tracking was given.
  10453. if test "${enable_dependency_tracking+set}" = set; then :
  10454. enableval=$enable_dependency_tracking;
  10455. fi
  10456. if test "x$enable_dependency_tracking" != xno; then
  10457. am_depcomp="$ac_aux_dir/depcomp"
  10458. AMDEPBACKSLASH='\'
  10459. am__nodep='_no'
  10460. fi
  10461. if test "x$enable_dependency_tracking" != xno; then
  10462. AMDEP_TRUE=
  10463. AMDEP_FALSE='#'
  10464. else
  10465. AMDEP_TRUE='#'
  10466. AMDEP_FALSE=
  10467. fi
  10468. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  10469. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  10470. # is not polluted with repeated "-I."
  10471. am__isrc=' -I$(srcdir)'
  10472. # test to see if srcdir already configured
  10473. if test -f $srcdir/config.status; then
  10474. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  10475. fi
  10476. fi
  10477. # test whether we have cygpath
  10478. if test -z "$CYGPATH_W"; then
  10479. if (cygpath --version) >/dev/null 2>/dev/null; then
  10480. CYGPATH_W='cygpath -w'
  10481. else
  10482. CYGPATH_W=echo
  10483. fi
  10484. fi
  10485. # Define the identity of the package.
  10486. PACKAGE='klish'
  10487. VERSION='1.6.0'
  10488. cat >>confdefs.h <<_ACEOF
  10489. #define PACKAGE "$PACKAGE"
  10490. _ACEOF
  10491. cat >>confdefs.h <<_ACEOF
  10492. #define VERSION "$VERSION"
  10493. _ACEOF
  10494. # Some tools Automake needs.
  10495. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  10496. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  10497. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  10498. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  10499. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10500. # We need awk for the "check" target. The system "awk" is bad on
  10501. # some platforms.
  10502. # Always define AMTAR for backward compatibility. Yes, it's still used
  10503. # in the wild :-( We should find a proper way to deprecate it ...
  10504. AMTAR='$${TAR-tar}'
  10505. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  10506. depcc="$CC" am_compiler_list=
  10507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10508. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10509. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  10510. $as_echo_n "(cached) " >&6
  10511. else
  10512. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10513. # We make a subdir and do the tests there. Otherwise we can end up
  10514. # making bogus files that we don't know about and never remove. For
  10515. # instance it was reported that on HP-UX the gcc test will end up
  10516. # making a dummy file named 'D' -- because '-MD' means "put the output
  10517. # in D".
  10518. rm -rf conftest.dir
  10519. mkdir conftest.dir
  10520. # Copy depcomp to subdir because otherwise we won't find it if we're
  10521. # using a relative directory.
  10522. cp "$am_depcomp" conftest.dir
  10523. cd conftest.dir
  10524. # We will build objects and dependencies in a subdirectory because
  10525. # it helps to detect inapplicable dependency modes. For instance
  10526. # both Tru64's cc and ICC support -MD to output dependencies as a
  10527. # side effect of compilation, but ICC will put the dependencies in
  10528. # the current directory while Tru64 will put them in the object
  10529. # directory.
  10530. mkdir sub
  10531. am_cv_CC_dependencies_compiler_type=none
  10532. if test "$am_compiler_list" = ""; then
  10533. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10534. fi
  10535. am__universal=false
  10536. case " $depcc " in #(
  10537. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10538. esac
  10539. for depmode in $am_compiler_list; do
  10540. # Setup a source with many dependencies, because some compilers
  10541. # like to wrap large dependency lists on column 80 (with \), and
  10542. # we should not choose a depcomp mode which is confused by this.
  10543. #
  10544. # We need to recreate these files for each test, as the compiler may
  10545. # overwrite some of them when testing with obscure command lines.
  10546. # This happens at least with the AIX C compiler.
  10547. : > sub/conftest.c
  10548. for i in 1 2 3 4 5 6; do
  10549. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10550. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10551. # Solaris 10 /bin/sh.
  10552. echo '/* dummy */' > sub/conftst$i.h
  10553. done
  10554. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10555. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10556. # mode. It turns out that the SunPro C++ compiler does not properly
  10557. # handle '-M -o', and we need to detect this. Also, some Intel
  10558. # versions had trouble with output in subdirs.
  10559. am__obj=sub/conftest.${OBJEXT-o}
  10560. am__minus_obj="-o $am__obj"
  10561. case $depmode in
  10562. gcc)
  10563. # This depmode causes a compiler race in universal mode.
  10564. test "$am__universal" = false || continue
  10565. ;;
  10566. nosideeffect)
  10567. # After this tag, mechanisms are not by side-effect, so they'll
  10568. # only be used when explicitly requested.
  10569. if test "x$enable_dependency_tracking" = xyes; then
  10570. continue
  10571. else
  10572. break
  10573. fi
  10574. ;;
  10575. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10576. # This compiler won't grok '-c -o', but also, the minuso test has
  10577. # not run yet. These depmodes are late enough in the game, and
  10578. # so weak that their functioning should not be impacted.
  10579. am__obj=conftest.${OBJEXT-o}
  10580. am__minus_obj=
  10581. ;;
  10582. none) break ;;
  10583. esac
  10584. if depmode=$depmode \
  10585. source=sub/conftest.c object=$am__obj \
  10586. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10587. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10588. >/dev/null 2>conftest.err &&
  10589. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10590. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10591. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10592. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10593. # icc doesn't choke on unknown options, it will just issue warnings
  10594. # or remarks (even with -Werror). So we grep stderr for any message
  10595. # that says an option was ignored or not supported.
  10596. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10597. # icc: Command line warning: ignoring option '-M'; no argument required
  10598. # The diagnosis changed in icc 8.0:
  10599. # icc: Command line remark: option '-MP' not supported
  10600. if (grep 'ignoring option' conftest.err ||
  10601. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10602. am_cv_CC_dependencies_compiler_type=$depmode
  10603. break
  10604. fi
  10605. fi
  10606. done
  10607. cd ..
  10608. rm -rf conftest.dir
  10609. else
  10610. am_cv_CC_dependencies_compiler_type=none
  10611. fi
  10612. fi
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10614. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10615. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10616. if
  10617. test "x$enable_dependency_tracking" != xno \
  10618. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10619. am__fastdepCC_TRUE=
  10620. am__fastdepCC_FALSE='#'
  10621. else
  10622. am__fastdepCC_TRUE='#'
  10623. am__fastdepCC_FALSE=
  10624. fi
  10625. if test "x$CC" != xcc; then
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  10627. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  10628. else
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  10630. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  10631. fi
  10632. set dummy $CC; ac_cc=`$as_echo "$2" |
  10633. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10634. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  10635. $as_echo_n "(cached) " >&6
  10636. else
  10637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10638. /* end confdefs.h. */
  10639. int
  10640. main ()
  10641. {
  10642. ;
  10643. return 0;
  10644. }
  10645. _ACEOF
  10646. # Make sure it works both with $CC and with simple cc.
  10647. # We do the test twice because some compilers refuse to overwrite an
  10648. # existing .o file with -o, though they will create one.
  10649. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  10650. rm -f conftest2.*
  10651. if { { case "(($ac_try" in
  10652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10653. *) ac_try_echo=$ac_try;;
  10654. esac
  10655. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10656. $as_echo "$ac_try_echo"; } >&5
  10657. (eval "$ac_try") 2>&5
  10658. ac_status=$?
  10659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10660. test $ac_status = 0; } &&
  10661. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  10662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10663. *) ac_try_echo=$ac_try;;
  10664. esac
  10665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10666. $as_echo "$ac_try_echo"; } >&5
  10667. (eval "$ac_try") 2>&5
  10668. ac_status=$?
  10669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10670. test $ac_status = 0; };
  10671. then
  10672. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  10673. if test "x$CC" != xcc; then
  10674. # Test first that cc exists at all.
  10675. if { ac_try='cc -c conftest.$ac_ext >&5'
  10676. { { case "(($ac_try" in
  10677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10678. *) ac_try_echo=$ac_try;;
  10679. esac
  10680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10681. $as_echo "$ac_try_echo"; } >&5
  10682. (eval "$ac_try") 2>&5
  10683. ac_status=$?
  10684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10685. test $ac_status = 0; }; }; then
  10686. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  10687. rm -f conftest2.*
  10688. if { { case "(($ac_try" in
  10689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10690. *) ac_try_echo=$ac_try;;
  10691. esac
  10692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10693. $as_echo "$ac_try_echo"; } >&5
  10694. (eval "$ac_try") 2>&5
  10695. ac_status=$?
  10696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10697. test $ac_status = 0; } &&
  10698. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  10699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10700. *) ac_try_echo=$ac_try;;
  10701. esac
  10702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10703. $as_echo "$ac_try_echo"; } >&5
  10704. (eval "$ac_try") 2>&5
  10705. ac_status=$?
  10706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10707. test $ac_status = 0; };
  10708. then
  10709. # cc works too.
  10710. :
  10711. else
  10712. # cc exists but doesn't like -o.
  10713. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10714. fi
  10715. fi
  10716. fi
  10717. else
  10718. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10719. fi
  10720. rm -f core conftest*
  10721. fi
  10722. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10724. $as_echo "yes" >&6; }
  10725. else
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10727. $as_echo "no" >&6; }
  10728. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  10729. fi
  10730. # FIXME: we rely on the cache variable name because
  10731. # there is no other way.
  10732. set dummy $CC
  10733. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10734. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  10735. if test "$am_t" != yes; then
  10736. # Losing compiler, so override with the script.
  10737. # FIXME: It is wrong to rewrite CC.
  10738. # But if we don't then we get into trouble of one sort or another.
  10739. # A longer-term fix would be to have automake use am__CC in this case,
  10740. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  10741. CC="$am_aux_dir/compile $CC"
  10742. fi
  10743. # needed to handle 64-bit architecture
  10744. # The cast to long int works around a bug in the HP C Compiler
  10745. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10746. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10747. # This bug is HP SR number 8606223364.
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10749. $as_echo_n "checking size of int... " >&6; }
  10750. if ${ac_cv_sizeof_int+:} false; then :
  10751. $as_echo_n "(cached) " >&6
  10752. else
  10753. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10754. else
  10755. if test "$ac_cv_type_int" = yes; then
  10756. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10758. as_fn_error 77 "cannot compute sizeof (int)
  10759. See \`config.log' for more details" "$LINENO" 5; }
  10760. else
  10761. ac_cv_sizeof_int=0
  10762. fi
  10763. fi
  10764. fi
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10766. $as_echo "$ac_cv_sizeof_int" >&6; }
  10767. cat >>confdefs.h <<_ACEOF
  10768. #define SIZEOF_INT $ac_cv_sizeof_int
  10769. _ACEOF
  10770. # The cast to long int works around a bug in the HP C Compiler
  10771. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10772. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10773. # This bug is HP SR number 8606223364.
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10775. $as_echo_n "checking size of long... " >&6; }
  10776. if ${ac_cv_sizeof_long+:} false; then :
  10777. $as_echo_n "(cached) " >&6
  10778. else
  10779. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10780. else
  10781. if test "$ac_cv_type_long" = yes; then
  10782. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10783. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10784. as_fn_error 77 "cannot compute sizeof (long)
  10785. See \`config.log' for more details" "$LINENO" 5; }
  10786. else
  10787. ac_cv_sizeof_long=0
  10788. fi
  10789. fi
  10790. fi
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10792. $as_echo "$ac_cv_sizeof_long" >&6; }
  10793. cat >>confdefs.h <<_ACEOF
  10794. #define SIZEOF_LONG $ac_cv_sizeof_long
  10795. _ACEOF
  10796. # The cast to long int works around a bug in the HP C Compiler
  10797. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10798. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10799. # This bug is HP SR number 8606223364.
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  10801. $as_echo_n "checking size of size_t... " >&6; }
  10802. if ${ac_cv_sizeof_size_t+:} false; then :
  10803. $as_echo_n "(cached) " >&6
  10804. else
  10805. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  10806. else
  10807. if test "$ac_cv_type_size_t" = yes; then
  10808. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10809. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10810. as_fn_error 77 "cannot compute sizeof (size_t)
  10811. See \`config.log' for more details" "$LINENO" 5; }
  10812. else
  10813. ac_cv_sizeof_size_t=0
  10814. fi
  10815. fi
  10816. fi
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  10818. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  10819. cat >>confdefs.h <<_ACEOF
  10820. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  10821. _ACEOF
  10822. #------------------------------------------------------------------------
  10823. # Handle the --prefix=... option
  10824. #------------------------------------------------------------------------
  10825. if test "${prefix}" = "NONE"; then
  10826. prefix=/usr/local
  10827. fi
  10828. if test "${exec_prefix}" = "NONE"; then
  10829. exec_prefix=$prefix
  10830. fi
  10831. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  10832. eval libdir="$libdir"
  10833. ################################
  10834. # Deal with debugging options
  10835. ################################
  10836. # Check whether --enable-debug was given.
  10837. if test "${enable_debug+set}" = set; then :
  10838. enableval=$enable_debug;
  10839. else
  10840. enable_debug=no
  10841. fi
  10842. if test x$enable_debug = xyes; then
  10843. DEBUG_TRUE=
  10844. DEBUG_FALSE='#'
  10845. else
  10846. DEBUG_TRUE='#'
  10847. DEBUG_FALSE=
  10848. fi
  10849. ################################
  10850. # Check for the roxml library
  10851. ################################
  10852. # Check whether --with-roxml was given.
  10853. if test "${with_roxml+set}" = set; then :
  10854. withval=$with_roxml; use_roxml=$withval
  10855. else
  10856. use_roxml=no
  10857. fi
  10858. # Check whether --with-libxml2 was given.
  10859. if test "${with_libxml2+set}" = set; then :
  10860. withval=$with_libxml2; use_libxml2=$withval
  10861. else
  10862. use_libxml2=yes
  10863. fi
  10864. if test "x$use_roxml" != "xno"; then
  10865. if test "x$use_libxml2" != "xno"; then
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both roxml and libxml2 are selected. I choose roxml" >&5
  10867. $as_echo "$as_me: WARNING: both roxml and libxml2 are selected. I choose roxml" >&2;}
  10868. use_libxml2=no
  10869. fi
  10870. else
  10871. if test "x$use_libxml2" = "xno"; then
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither roxml nor libxml2 are selected. I choose libxml2" >&5
  10873. $as_echo "$as_me: WARNING: neither roxml nor libxml2 are selected. I choose libxml2" >&2;}
  10874. use_libxml2=yes
  10875. fi
  10876. fi
  10877. XML_LDFLAGS=""
  10878. XML_CFLAGS=""
  10879. XML_LIBS=""
  10880. case x$use_roxml in
  10881. xno)
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libroxml support" >&5
  10883. $as_echo_n "checking for libroxml support... " >&6; }
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10885. $as_echo "no" >&6; }
  10886. ;;
  10887. xyes)
  10888. # we choose to NOT rely on pkg-config on this one. We may do it as
  10889. # libroxml provides a .pc file but some environment (both cross-compile
  10890. # or native environment) may lack this support. The good thing is that
  10891. # it doesn't add much complexity to the configure.ac file (and we
  10892. # may move these tests to another m4 file later).
  10893. # the header is installed in the standard path
  10894. ac_fn_c_check_header_compile "$LINENO" "roxml.h" "ac_cv_header_roxml_h" "/* force include check */
  10895. "
  10896. if test "x$ac_cv_header_roxml_h" = xyes; then :
  10897. roxml_h_found=yes
  10898. else
  10899. roxml_h_found=no
  10900. fi
  10901. if test "x$roxml_h_found" != "xyes"; then
  10902. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  10903. fi
  10904. XML_CFLAGS=""
  10905. # the library is installed in the standard path
  10906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  10907. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  10908. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  10909. $as_echo_n "(cached) " >&6
  10910. else
  10911. ac_check_lib_save_LIBS=$LIBS
  10912. LIBS="-lroxml $LIBS"
  10913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10914. /* end confdefs.h. */
  10915. /* Override any GCC internal prototype to avoid an error.
  10916. Use char because int might match the return type of a GCC
  10917. builtin and then its argument prototype would still apply. */
  10918. #ifdef __cplusplus
  10919. extern "C"
  10920. #endif
  10921. char roxml_load_doc ();
  10922. int
  10923. main ()
  10924. {
  10925. return roxml_load_doc ();
  10926. ;
  10927. return 0;
  10928. }
  10929. _ACEOF
  10930. if ac_fn_c_try_link "$LINENO"; then :
  10931. ac_cv_lib_roxml_roxml_load_doc=yes
  10932. else
  10933. ac_cv_lib_roxml_roxml_load_doc=no
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext \
  10936. conftest$ac_exeext conftest.$ac_ext
  10937. LIBS=$ac_check_lib_save_LIBS
  10938. fi
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  10940. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  10941. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  10942. roxml_lib_found=yes
  10943. else
  10944. roxml_lib_found=no
  10945. fi
  10946. if test "x$roxml_lib_found" != "xyes"; then
  10947. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  10948. fi
  10949. XML_LDFLAGS=""
  10950. XML_LIBS="-lroxml"
  10951. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  10952. ;;
  10953. *)
  10954. # first, we check if we're not looking for an alternate include
  10955. # directory -for example, if the user feeds the script with the
  10956. # option --with-roxml=/usr/local
  10957. # NOTE: we search for include/roxml.h and inc/roxml.h to defeat
  10958. # the caching algorithm of the configure script. If someone knows
  10959. # a better way, please do not hesitate
  10960. roxml_CFLAGS="$CFLAGS"
  10961. CFLAGS="$CFLAGS -I${use_roxml}"
  10962. ac_fn_c_check_header_compile "$LINENO" "include/roxml.h" "ac_cv_header_include_roxml_h" "/* force include check */
  10963. "
  10964. if test "x$ac_cv_header_include_roxml_h" = xyes; then :
  10965. roxml_h_found=yes
  10966. else
  10967. roxml_h_found=no
  10968. fi
  10969. if test "x$roxml_h_found" = "xno"; then
  10970. # the directory might be a source directory, so check
  10971. # if the include file is to be found here
  10972. ac_fn_c_check_header_compile "$LINENO" "inc/roxml.h" "ac_cv_header_inc_roxml_h" "/* force include check */
  10973. "
  10974. if test "x$ac_cv_header_inc_roxml_h" = xyes; then :
  10975. roxml_h_found=yes
  10976. else
  10977. roxml_h_found=no
  10978. fi
  10979. if test "x$roxml_h_found" = "xno"; then
  10980. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  10981. fi
  10982. XML_CFLAGS="-I${use_roxml}/inc"
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/inc" >&5
  10984. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/inc" >&6;}
  10985. else
  10986. XML_CFLAGS="-I${use_roxml}/include"
  10987. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/include" >&5
  10988. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/include" >&6;}
  10989. fi
  10990. CFLAGS="$roxml_CFLAGS"
  10991. # we're doing both previous checks, but we are trying to find a library
  10992. # now, so the check themselves are a bit different
  10993. # NOTE: we search for roxml_load_doc and roxml_close to defeat
  10994. # the caching algorithm of the configure script. If someone knows
  10995. # a better way, please do not hesitate.
  10996. roxml_LDFLAGS="$LDFLAGS"
  10997. LDFLAGS="$LDFLAGS -L${use_roxml}/lib"
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  10999. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  11000. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  11001. $as_echo_n "(cached) " >&6
  11002. else
  11003. ac_check_lib_save_LIBS=$LIBS
  11004. LIBS="-lroxml $LIBS"
  11005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11006. /* end confdefs.h. */
  11007. /* Override any GCC internal prototype to avoid an error.
  11008. Use char because int might match the return type of a GCC
  11009. builtin and then its argument prototype would still apply. */
  11010. #ifdef __cplusplus
  11011. extern "C"
  11012. #endif
  11013. char roxml_load_doc ();
  11014. int
  11015. main ()
  11016. {
  11017. return roxml_load_doc ();
  11018. ;
  11019. return 0;
  11020. }
  11021. _ACEOF
  11022. if ac_fn_c_try_link "$LINENO"; then :
  11023. ac_cv_lib_roxml_roxml_load_doc=yes
  11024. else
  11025. ac_cv_lib_roxml_roxml_load_doc=no
  11026. fi
  11027. rm -f core conftest.err conftest.$ac_objext \
  11028. conftest$ac_exeext conftest.$ac_ext
  11029. LIBS=$ac_check_lib_save_LIBS
  11030. fi
  11031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  11032. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  11033. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  11034. roxml_lib_found=yes
  11035. else
  11036. roxml_lib_found=no
  11037. fi
  11038. LDFLAGS=$roxml_LDFLAGS
  11039. if test "x$roxml_lib_found" = "xno"; then
  11040. LDFLAGS="$LDFLAGS -L${use_roxml}"
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_close in -lroxml" >&5
  11042. $as_echo_n "checking for roxml_close in -lroxml... " >&6; }
  11043. if ${ac_cv_lib_roxml_roxml_close+:} false; then :
  11044. $as_echo_n "(cached) " >&6
  11045. else
  11046. ac_check_lib_save_LIBS=$LIBS
  11047. LIBS="-lroxml $LIBS"
  11048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11049. /* end confdefs.h. */
  11050. /* Override any GCC internal prototype to avoid an error.
  11051. Use char because int might match the return type of a GCC
  11052. builtin and then its argument prototype would still apply. */
  11053. #ifdef __cplusplus
  11054. extern "C"
  11055. #endif
  11056. char roxml_close ();
  11057. int
  11058. main ()
  11059. {
  11060. return roxml_close ();
  11061. ;
  11062. return 0;
  11063. }
  11064. _ACEOF
  11065. if ac_fn_c_try_link "$LINENO"; then :
  11066. ac_cv_lib_roxml_roxml_close=yes
  11067. else
  11068. ac_cv_lib_roxml_roxml_close=no
  11069. fi
  11070. rm -f core conftest.err conftest.$ac_objext \
  11071. conftest$ac_exeext conftest.$ac_ext
  11072. LIBS=$ac_check_lib_save_LIBS
  11073. fi
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_close" >&5
  11075. $as_echo "$ac_cv_lib_roxml_roxml_close" >&6; }
  11076. if test "x$ac_cv_lib_roxml_roxml_close" = xyes; then :
  11077. roxml_lib_found=yes
  11078. else
  11079. roxml_lib_found=no
  11080. fi
  11081. LDFLAGS=$roxml_LDFLAGS
  11082. if test "x$roxml_lib_found" = "xno"; then
  11083. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  11084. fi
  11085. XML_LDFLAGS="-L${use_roxml}"
  11086. XML_LIBS="-lroxml"
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: library libroxml found in ${use_roxml}" >&5
  11088. $as_echo "$as_me: library libroxml found in ${use_roxml}" >&6;}
  11089. else
  11090. XML_LDFLAGS="-L${use_roxml}/lib"
  11091. XML_LIBS="-lroxml"
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: library libroxml found in ${use_roxml}/lib" >&5
  11093. $as_echo "$as_me: library libroxml found in ${use_roxml}/lib" >&6;}
  11094. fi
  11095. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  11096. ;;
  11097. esac
  11098. case x$use_libxml2 in
  11099. xno)
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
  11101. $as_echo_n "checking for libxml2 support... " >&6; }
  11102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11103. $as_echo "no" >&6; }
  11104. ;;
  11105. xyes)
  11106. # I would love to avoid using pkg-config (which may not be available on
  11107. # some compilation environment) but doing so really add a lot of complexity
  11108. # to the system, as the headers don't lie in a standard directory (they
  11109. # lie in a subdirectory of a standard include directory; not the same thing
  11110. # for configure scripts).
  11111. XML_CFLAGS="`pkg-config libxml-2.0 --cflags`"
  11112. XML_LDFLAGS="`pkg-config libxml-2.0 --libs-only-L`"
  11113. XML_LIBS="`pkg-config libxml-2.0 --libs-only-l`"
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDoc in -lxml2" >&5
  11115. $as_echo_n "checking for xmlNewDoc in -lxml2... " >&6; }
  11116. if ${ac_cv_lib_xml2_xmlNewDoc+:} false; then :
  11117. $as_echo_n "(cached) " >&6
  11118. else
  11119. ac_check_lib_save_LIBS=$LIBS
  11120. LIBS="-lxml2 -lz $LIBS"
  11121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11122. /* end confdefs.h. */
  11123. /* Override any GCC internal prototype to avoid an error.
  11124. Use char because int might match the return type of a GCC
  11125. builtin and then its argument prototype would still apply. */
  11126. #ifdef __cplusplus
  11127. extern "C"
  11128. #endif
  11129. char xmlNewDoc ();
  11130. int
  11131. main ()
  11132. {
  11133. return xmlNewDoc ();
  11134. ;
  11135. return 0;
  11136. }
  11137. _ACEOF
  11138. if ac_fn_c_try_link "$LINENO"; then :
  11139. ac_cv_lib_xml2_xmlNewDoc=yes
  11140. else
  11141. ac_cv_lib_xml2_xmlNewDoc=no
  11142. fi
  11143. rm -f core conftest.err conftest.$ac_objext \
  11144. conftest$ac_exeext conftest.$ac_ext
  11145. LIBS=$ac_check_lib_save_LIBS
  11146. fi
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDoc" >&5
  11148. $as_echo "$ac_cv_lib_xml2_xmlNewDoc" >&6; }
  11149. if test "x$ac_cv_lib_xml2_xmlNewDoc" = xyes; then :
  11150. libxml2_lib_found=yes
  11151. else
  11152. libxml2_lib_found=no
  11153. fi
  11154. if test "x$libxml2_lib_found" != "xyes"; then
  11155. as_fn_error $? "cannot find libxml2 library" "$LINENO" 5
  11156. fi
  11157. # the header file is installed in a subdirectory of one of the standard
  11158. # include directory. This might prove to be a problem if the cross-compile
  11159. # environment is not complete enough (i.e. if it misses pkg-config, or
  11160. # if pkg-config returns wrong values). In most cases, the environment is
  11161. # likely to be OK so we will never hit any issue.
  11162. xml2_CFLAGS="$CFLAGS"
  11163. CFLAGS="$CFLAGS $XML_CFLAGS"
  11164. ac_fn_c_check_header_compile "$LINENO" "libxml/tree.h" "ac_cv_header_libxml_tree_h" "/* force include check */
  11165. "
  11166. if test "x$ac_cv_header_libxml_tree_h" = xyes; then :
  11167. libxml2_h_found=yes
  11168. else
  11169. libxml2_h_found=no
  11170. fi
  11171. CFLAGS="$xml2_CFLAGS"
  11172. if test "x$libxml2_h_found" != "xyes"; then
  11173. as_fn_error $? "cannot find libxml2 headers" "$LINENO" 5
  11174. fi
  11175. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  11176. ;;
  11177. *)
  11178. # this is probably broken. We consider that the user supplied path is
  11179. # a non-standard path. But we're not going to check anything.
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libxml2=DIR is probably broken, but let's try" >&5
  11181. $as_echo "$as_me: WARNING: --with-libxml2=DIR is probably broken, but let's try" >&2;}
  11182. XML_LDFLAGS="-L${use_libxml2}/include/libxml2"
  11183. XML_CFLAGS="-I${use_libxml2}/lib"
  11184. XML_LIBS="-lxml2"
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
  11186. $as_echo_n "checking for libxml2 support... " >&6; }
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11188. $as_echo "yes" >&6; }
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&5
  11190. $as_echo "$as_me: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&6;}
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: library libxml2 hopefully in ${use_libxml2}/lib" >&5
  11192. $as_echo "$as_me: library libxml2 hopefully in ${use_libxml2}/lib" >&6;}
  11193. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  11194. ;;
  11195. esac
  11196. ################################
  11197. # Check for the LUB library
  11198. ################################
  11199. LUB_LIBS="-llub"
  11200. LUB_CFLAGS=""
  11201. if test "x$LUB_LIBS" = "x"; then
  11202. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  11203. fi
  11204. ################################
  11205. # Check for the KONF library
  11206. ################################
  11207. KONF_LIBS="-lkonf"
  11208. KONF_CFLAGS=""
  11209. if test "x$KONF_LIBS" = "x"; then
  11210. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  11211. fi
  11212. ################################
  11213. # Check for the TINYRL library
  11214. ################################
  11215. TINYRL_LIBS="-ltinyrl"
  11216. TINYRL_CFLAGS=""
  11217. if test "x$TINYRL_LIBS" = "x"; then
  11218. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  11219. fi
  11220. ################################
  11221. # Search for network functions (like connect())
  11222. ################################
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  11224. $as_echo_n "checking for library containing socket... " >&6; }
  11225. if ${ac_cv_search_socket+:} false; then :
  11226. $as_echo_n "(cached) " >&6
  11227. else
  11228. ac_func_search_save_LIBS=$LIBS
  11229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11230. /* end confdefs.h. */
  11231. /* Override any GCC internal prototype to avoid an error.
  11232. Use char because int might match the return type of a GCC
  11233. builtin and then its argument prototype would still apply. */
  11234. #ifdef __cplusplus
  11235. extern "C"
  11236. #endif
  11237. char socket ();
  11238. int
  11239. main ()
  11240. {
  11241. return socket ();
  11242. ;
  11243. return 0;
  11244. }
  11245. _ACEOF
  11246. for ac_lib in '' socket; do
  11247. if test -z "$ac_lib"; then
  11248. ac_res="none required"
  11249. else
  11250. ac_res=-l$ac_lib
  11251. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11252. fi
  11253. if ac_fn_c_try_link "$LINENO"; then :
  11254. ac_cv_search_socket=$ac_res
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext \
  11257. conftest$ac_exeext
  11258. if ${ac_cv_search_socket+:} false; then :
  11259. break
  11260. fi
  11261. done
  11262. if ${ac_cv_search_socket+:} false; then :
  11263. else
  11264. ac_cv_search_socket=no
  11265. fi
  11266. rm conftest.$ac_ext
  11267. LIBS=$ac_func_search_save_LIBS
  11268. fi
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  11270. $as_echo "$ac_cv_search_socket" >&6; }
  11271. ac_res=$ac_cv_search_socket
  11272. if test "$ac_res" != no; then :
  11273. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11274. fi
  11275. ################################
  11276. # Check for regex.h
  11277. ################################
  11278. for ac_header in regex.h
  11279. do :
  11280. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  11281. if test "x$ac_cv_header_regex_h" = xyes; then :
  11282. cat >>confdefs.h <<_ACEOF
  11283. #define HAVE_REGEX_H 1
  11284. _ACEOF
  11285. else
  11286. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  11287. fi
  11288. done
  11289. ################################
  11290. # Check for getopt_long()
  11291. ################################
  11292. for ac_header in getopt.h
  11293. do :
  11294. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  11295. if test "x$ac_cv_header_getopt_h" = xyes; then :
  11296. cat >>confdefs.h <<_ACEOF
  11297. #define HAVE_GETOPT_H 1
  11298. _ACEOF
  11299. else
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  11301. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  11302. fi
  11303. done
  11304. ################################
  11305. # Check for locale.h
  11306. ################################
  11307. for ac_header in locale.h
  11308. do :
  11309. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  11310. if test "x$ac_cv_header_locale_h" = xyes; then :
  11311. cat >>confdefs.h <<_ACEOF
  11312. #define HAVE_LOCALE_H 1
  11313. _ACEOF
  11314. else
  11315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  11316. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  11317. fi
  11318. done
  11319. ################################
  11320. # Check for CODESET within nl_langinfo
  11321. ################################
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11323. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11324. if ${am_cv_langinfo_codeset+:} false; then :
  11325. $as_echo_n "(cached) " >&6
  11326. else
  11327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11328. /* end confdefs.h. */
  11329. #include <langinfo.h>
  11330. int
  11331. main ()
  11332. {
  11333. char* cs = nl_langinfo(CODESET); return !cs;
  11334. ;
  11335. return 0;
  11336. }
  11337. _ACEOF
  11338. if ac_fn_c_try_link "$LINENO"; then :
  11339. am_cv_langinfo_codeset=yes
  11340. else
  11341. am_cv_langinfo_codeset=no
  11342. fi
  11343. rm -f core conftest.err conftest.$ac_objext \
  11344. conftest$ac_exeext conftest.$ac_ext
  11345. fi
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11347. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11348. if test $am_cv_langinfo_codeset = yes; then
  11349. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11350. fi
  11351. ################################
  11352. # Check for pwd.h and grp.h
  11353. ################################
  11354. for ac_header in pwd.h
  11355. do :
  11356. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  11357. if test "x$ac_cv_header_pwd_h" = xyes; then :
  11358. cat >>confdefs.h <<_ACEOF
  11359. #define HAVE_PWD_H 1
  11360. _ACEOF
  11361. else
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  11363. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  11364. fi
  11365. done
  11366. for ac_header in grp.h
  11367. do :
  11368. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  11369. if test "x$ac_cv_header_grp_h" = xyes; then :
  11370. cat >>confdefs.h <<_ACEOF
  11371. #define HAVE_GRP_H 1
  11372. _ACEOF
  11373. else
  11374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  11375. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  11376. fi
  11377. done
  11378. ################################
  11379. # Check for chroot
  11380. ################################
  11381. for ac_func in chroot
  11382. do :
  11383. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  11384. if test "x$ac_cv_func_chroot" = xyes; then :
  11385. cat >>confdefs.h <<_ACEOF
  11386. #define HAVE_CHROOT 1
  11387. _ACEOF
  11388. else
  11389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  11390. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  11391. fi
  11392. done
  11393. ac_config_files="$ac_config_files Makefile"
  11394. cat >confcache <<\_ACEOF
  11395. # This file is a shell script that caches the results of configure
  11396. # tests run on this system so they can be shared between configure
  11397. # scripts and configure runs, see configure's option --config-cache.
  11398. # It is not useful on other systems. If it contains results you don't
  11399. # want to keep, you may remove or edit it.
  11400. #
  11401. # config.status only pays attention to the cache file if you give it
  11402. # the --recheck option to rerun configure.
  11403. #
  11404. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11405. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11406. # following values.
  11407. _ACEOF
  11408. # The following way of writing the cache mishandles newlines in values,
  11409. # but we know of no workaround that is simple, portable, and efficient.
  11410. # So, we kill variables containing newlines.
  11411. # Ultrix sh set writes to stderr and can't be redirected directly,
  11412. # and sets the high bit in the cache file unless we assign to the vars.
  11413. (
  11414. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11415. eval ac_val=\$$ac_var
  11416. case $ac_val in #(
  11417. *${as_nl}*)
  11418. case $ac_var in #(
  11419. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11420. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11421. esac
  11422. case $ac_var in #(
  11423. _ | IFS | as_nl) ;; #(
  11424. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11425. *) { eval $ac_var=; unset $ac_var;} ;;
  11426. esac ;;
  11427. esac
  11428. done
  11429. (set) 2>&1 |
  11430. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11431. *${as_nl}ac_space=\ *)
  11432. # `set' does not quote correctly, so add quotes: double-quote
  11433. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11434. sed -n \
  11435. "s/'/'\\\\''/g;
  11436. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11437. ;; #(
  11438. *)
  11439. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11440. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11441. ;;
  11442. esac |
  11443. sort
  11444. ) |
  11445. sed '
  11446. /^ac_cv_env_/b end
  11447. t clear
  11448. :clear
  11449. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11450. t end
  11451. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11452. :end' >>confcache
  11453. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11454. if test -w "$cache_file"; then
  11455. if test "x$cache_file" != "x/dev/null"; then
  11456. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11457. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11458. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11459. cat confcache >"$cache_file"
  11460. else
  11461. case $cache_file in #(
  11462. */* | ?:*)
  11463. mv -f confcache "$cache_file"$$ &&
  11464. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11465. *)
  11466. mv -f confcache "$cache_file" ;;
  11467. esac
  11468. fi
  11469. fi
  11470. else
  11471. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11472. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11473. fi
  11474. fi
  11475. rm -f confcache
  11476. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11477. # Let make expand exec_prefix.
  11478. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11479. DEFS=-DHAVE_CONFIG_H
  11480. ac_libobjs=
  11481. ac_ltlibobjs=
  11482. U=
  11483. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11484. # 1. Remove the extension, and $U if already installed.
  11485. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11486. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11487. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11488. # will be set to the directory where LIBOBJS objects are built.
  11489. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11490. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11491. done
  11492. LIBOBJS=$ac_libobjs
  11493. LTLIBOBJS=$ac_ltlibobjs
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11495. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11496. if test -n "$am_sleep_pid"; then
  11497. # Hide warnings about reused PIDs.
  11498. wait $am_sleep_pid 2>/dev/null
  11499. fi
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11501. $as_echo "done" >&6; }
  11502. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11503. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11504. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11505. fi
  11506. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11507. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11508. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11509. fi
  11510. if test -n "$EXEEXT"; then
  11511. am__EXEEXT_TRUE=
  11512. am__EXEEXT_FALSE='#'
  11513. else
  11514. am__EXEEXT_TRUE='#'
  11515. am__EXEEXT_FALSE=
  11516. fi
  11517. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  11518. as_fn_error $? "conditional \"DEBUG\" was never defined.
  11519. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11520. fi
  11521. : "${CONFIG_STATUS=./config.status}"
  11522. ac_write_fail=0
  11523. ac_clean_files_save=$ac_clean_files
  11524. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11526. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11527. as_write_fail=0
  11528. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11529. #! $SHELL
  11530. # Generated by $as_me.
  11531. # Run this file to recreate the current configuration.
  11532. # Compiler output produced by configure, useful for debugging
  11533. # configure, is in config.log if it exists.
  11534. debug=false
  11535. ac_cs_recheck=false
  11536. ac_cs_silent=false
  11537. SHELL=\${CONFIG_SHELL-$SHELL}
  11538. export SHELL
  11539. _ASEOF
  11540. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11541. ## -------------------- ##
  11542. ## M4sh Initialization. ##
  11543. ## -------------------- ##
  11544. # Be more Bourne compatible
  11545. DUALCASE=1; export DUALCASE # for MKS sh
  11546. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11547. emulate sh
  11548. NULLCMD=:
  11549. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11550. # is contrary to our usage. Disable this feature.
  11551. alias -g '${1+"$@"}'='"$@"'
  11552. setopt NO_GLOB_SUBST
  11553. else
  11554. case `(set -o) 2>/dev/null` in #(
  11555. *posix*) :
  11556. set -o posix ;; #(
  11557. *) :
  11558. ;;
  11559. esac
  11560. fi
  11561. as_nl='
  11562. '
  11563. export as_nl
  11564. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11565. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11566. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11567. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11568. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11569. # but without wasting forks for bash or zsh.
  11570. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11571. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11572. as_echo='print -r --'
  11573. as_echo_n='print -rn --'
  11574. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11575. as_echo='printf %s\n'
  11576. as_echo_n='printf %s'
  11577. else
  11578. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11579. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11580. as_echo_n='/usr/ucb/echo -n'
  11581. else
  11582. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11583. as_echo_n_body='eval
  11584. arg=$1;
  11585. case $arg in #(
  11586. *"$as_nl"*)
  11587. expr "X$arg" : "X\\(.*\\)$as_nl";
  11588. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11589. esac;
  11590. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11591. '
  11592. export as_echo_n_body
  11593. as_echo_n='sh -c $as_echo_n_body as_echo'
  11594. fi
  11595. export as_echo_body
  11596. as_echo='sh -c $as_echo_body as_echo'
  11597. fi
  11598. # The user is always right.
  11599. if test "${PATH_SEPARATOR+set}" != set; then
  11600. PATH_SEPARATOR=:
  11601. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11602. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11603. PATH_SEPARATOR=';'
  11604. }
  11605. fi
  11606. # IFS
  11607. # We need space, tab and new line, in precisely that order. Quoting is
  11608. # there to prevent editors from complaining about space-tab.
  11609. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11610. # splitting by setting IFS to empty value.)
  11611. IFS=" "" $as_nl"
  11612. # Find who we are. Look in the path if we contain no directory separator.
  11613. as_myself=
  11614. case $0 in #((
  11615. *[\\/]* ) as_myself=$0 ;;
  11616. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11617. for as_dir in $PATH
  11618. do
  11619. IFS=$as_save_IFS
  11620. test -z "$as_dir" && as_dir=.
  11621. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11622. done
  11623. IFS=$as_save_IFS
  11624. ;;
  11625. esac
  11626. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11627. # in which case we are not to be found in the path.
  11628. if test "x$as_myself" = x; then
  11629. as_myself=$0
  11630. fi
  11631. if test ! -f "$as_myself"; then
  11632. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11633. exit 1
  11634. fi
  11635. # Unset variables that we do not need and which cause bugs (e.g. in
  11636. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11637. # suppresses any "Segmentation fault" message there. '((' could
  11638. # trigger a bug in pdksh 5.2.14.
  11639. for as_var in BASH_ENV ENV MAIL MAILPATH
  11640. do eval test x\${$as_var+set} = xset \
  11641. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11642. done
  11643. PS1='$ '
  11644. PS2='> '
  11645. PS4='+ '
  11646. # NLS nuisances.
  11647. LC_ALL=C
  11648. export LC_ALL
  11649. LANGUAGE=C
  11650. export LANGUAGE
  11651. # CDPATH.
  11652. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11653. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11654. # ----------------------------------------
  11655. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11656. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11657. # script with STATUS, using 1 if that was 0.
  11658. as_fn_error ()
  11659. {
  11660. as_status=$1; test $as_status -eq 0 && as_status=1
  11661. if test "$4"; then
  11662. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11663. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11664. fi
  11665. $as_echo "$as_me: error: $2" >&2
  11666. as_fn_exit $as_status
  11667. } # as_fn_error
  11668. # as_fn_set_status STATUS
  11669. # -----------------------
  11670. # Set $? to STATUS, without forking.
  11671. as_fn_set_status ()
  11672. {
  11673. return $1
  11674. } # as_fn_set_status
  11675. # as_fn_exit STATUS
  11676. # -----------------
  11677. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11678. as_fn_exit ()
  11679. {
  11680. set +e
  11681. as_fn_set_status $1
  11682. exit $1
  11683. } # as_fn_exit
  11684. # as_fn_unset VAR
  11685. # ---------------
  11686. # Portably unset VAR.
  11687. as_fn_unset ()
  11688. {
  11689. { eval $1=; unset $1;}
  11690. }
  11691. as_unset=as_fn_unset
  11692. # as_fn_append VAR VALUE
  11693. # ----------------------
  11694. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11695. # advantage of any shell optimizations that allow amortized linear growth over
  11696. # repeated appends, instead of the typical quadratic growth present in naive
  11697. # implementations.
  11698. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11699. eval 'as_fn_append ()
  11700. {
  11701. eval $1+=\$2
  11702. }'
  11703. else
  11704. as_fn_append ()
  11705. {
  11706. eval $1=\$$1\$2
  11707. }
  11708. fi # as_fn_append
  11709. # as_fn_arith ARG...
  11710. # ------------------
  11711. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11712. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11713. # must be portable across $(()) and expr.
  11714. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11715. eval 'as_fn_arith ()
  11716. {
  11717. as_val=$(( $* ))
  11718. }'
  11719. else
  11720. as_fn_arith ()
  11721. {
  11722. as_val=`expr "$@" || test $? -eq 1`
  11723. }
  11724. fi # as_fn_arith
  11725. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11726. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11727. as_expr=expr
  11728. else
  11729. as_expr=false
  11730. fi
  11731. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11732. as_basename=basename
  11733. else
  11734. as_basename=false
  11735. fi
  11736. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11737. as_dirname=dirname
  11738. else
  11739. as_dirname=false
  11740. fi
  11741. as_me=`$as_basename -- "$0" ||
  11742. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11743. X"$0" : 'X\(//\)$' \| \
  11744. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11745. $as_echo X/"$0" |
  11746. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11747. s//\1/
  11748. q
  11749. }
  11750. /^X\/\(\/\/\)$/{
  11751. s//\1/
  11752. q
  11753. }
  11754. /^X\/\(\/\).*/{
  11755. s//\1/
  11756. q
  11757. }
  11758. s/.*/./; q'`
  11759. # Avoid depending upon Character Ranges.
  11760. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11761. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11762. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11763. as_cr_digits='0123456789'
  11764. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11765. ECHO_C= ECHO_N= ECHO_T=
  11766. case `echo -n x` in #(((((
  11767. -n*)
  11768. case `echo 'xy\c'` in
  11769. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11770. xy) ECHO_C='\c';;
  11771. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11772. ECHO_T=' ';;
  11773. esac;;
  11774. *)
  11775. ECHO_N='-n';;
  11776. esac
  11777. rm -f conf$$ conf$$.exe conf$$.file
  11778. if test -d conf$$.dir; then
  11779. rm -f conf$$.dir/conf$$.file
  11780. else
  11781. rm -f conf$$.dir
  11782. mkdir conf$$.dir 2>/dev/null
  11783. fi
  11784. if (echo >conf$$.file) 2>/dev/null; then
  11785. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11786. as_ln_s='ln -s'
  11787. # ... but there are two gotchas:
  11788. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11789. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11790. # In both cases, we have to default to `cp -pR'.
  11791. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11792. as_ln_s='cp -pR'
  11793. elif ln conf$$.file conf$$ 2>/dev/null; then
  11794. as_ln_s=ln
  11795. else
  11796. as_ln_s='cp -pR'
  11797. fi
  11798. else
  11799. as_ln_s='cp -pR'
  11800. fi
  11801. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11802. rmdir conf$$.dir 2>/dev/null
  11803. # as_fn_mkdir_p
  11804. # -------------
  11805. # Create "$as_dir" as a directory, including parents if necessary.
  11806. as_fn_mkdir_p ()
  11807. {
  11808. case $as_dir in #(
  11809. -*) as_dir=./$as_dir;;
  11810. esac
  11811. test -d "$as_dir" || eval $as_mkdir_p || {
  11812. as_dirs=
  11813. while :; do
  11814. case $as_dir in #(
  11815. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11816. *) as_qdir=$as_dir;;
  11817. esac
  11818. as_dirs="'$as_qdir' $as_dirs"
  11819. as_dir=`$as_dirname -- "$as_dir" ||
  11820. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11821. X"$as_dir" : 'X\(//\)[^/]' \| \
  11822. X"$as_dir" : 'X\(//\)$' \| \
  11823. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11824. $as_echo X"$as_dir" |
  11825. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11826. s//\1/
  11827. q
  11828. }
  11829. /^X\(\/\/\)[^/].*/{
  11830. s//\1/
  11831. q
  11832. }
  11833. /^X\(\/\/\)$/{
  11834. s//\1/
  11835. q
  11836. }
  11837. /^X\(\/\).*/{
  11838. s//\1/
  11839. q
  11840. }
  11841. s/.*/./; q'`
  11842. test -d "$as_dir" && break
  11843. done
  11844. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11845. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11846. } # as_fn_mkdir_p
  11847. if mkdir -p . 2>/dev/null; then
  11848. as_mkdir_p='mkdir -p "$as_dir"'
  11849. else
  11850. test -d ./-p && rmdir ./-p
  11851. as_mkdir_p=false
  11852. fi
  11853. # as_fn_executable_p FILE
  11854. # -----------------------
  11855. # Test if FILE is an executable regular file.
  11856. as_fn_executable_p ()
  11857. {
  11858. test -f "$1" && test -x "$1"
  11859. } # as_fn_executable_p
  11860. as_test_x='test -x'
  11861. as_executable_p=as_fn_executable_p
  11862. # Sed expression to map a string onto a valid CPP name.
  11863. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11864. # Sed expression to map a string onto a valid variable name.
  11865. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11866. exec 6>&1
  11867. ## ----------------------------------- ##
  11868. ## Main body of $CONFIG_STATUS script. ##
  11869. ## ----------------------------------- ##
  11870. _ASEOF
  11871. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11873. # Save the log message, to keep $0 and so on meaningful, and to
  11874. # report actual input values of CONFIG_FILES etc. instead of their
  11875. # values after options handling.
  11876. ac_log="
  11877. This file was extended by klish $as_me 1.6.0, which was
  11878. generated by GNU Autoconf 2.69. Invocation command line was
  11879. CONFIG_FILES = $CONFIG_FILES
  11880. CONFIG_HEADERS = $CONFIG_HEADERS
  11881. CONFIG_LINKS = $CONFIG_LINKS
  11882. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11883. $ $0 $@
  11884. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11885. "
  11886. _ACEOF
  11887. case $ac_config_files in *"
  11888. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11889. esac
  11890. case $ac_config_headers in *"
  11891. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11892. esac
  11893. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11894. # Files that config.status was made for.
  11895. config_files="$ac_config_files"
  11896. config_headers="$ac_config_headers"
  11897. config_commands="$ac_config_commands"
  11898. _ACEOF
  11899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11900. ac_cs_usage="\
  11901. \`$as_me' instantiates files and other configuration actions
  11902. from templates according to the current configuration. Unless the files
  11903. and actions are specified as TAGs, all are instantiated by default.
  11904. Usage: $0 [OPTION]... [TAG]...
  11905. -h, --help print this help, then exit
  11906. -V, --version print version number and configuration settings, then exit
  11907. --config print configuration, then exit
  11908. -q, --quiet, --silent
  11909. do not print progress messages
  11910. -d, --debug don't remove temporary files
  11911. --recheck update $as_me by reconfiguring in the same conditions
  11912. --file=FILE[:TEMPLATE]
  11913. instantiate the configuration file FILE
  11914. --header=FILE[:TEMPLATE]
  11915. instantiate the configuration header FILE
  11916. Configuration files:
  11917. $config_files
  11918. Configuration headers:
  11919. $config_headers
  11920. Configuration commands:
  11921. $config_commands
  11922. Report bugs to <serj.kalichev at gmail dot com>."
  11923. _ACEOF
  11924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11925. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11926. ac_cs_version="\\
  11927. klish config.status 1.6.0
  11928. configured by $0, generated by GNU Autoconf 2.69,
  11929. with options \\"\$ac_cs_config\\"
  11930. Copyright (C) 2012 Free Software Foundation, Inc.
  11931. This config.status script is free software; the Free Software Foundation
  11932. gives unlimited permission to copy, distribute and modify it."
  11933. ac_pwd='$ac_pwd'
  11934. srcdir='$srcdir'
  11935. INSTALL='$INSTALL'
  11936. MKDIR_P='$MKDIR_P'
  11937. AWK='$AWK'
  11938. test -n "\$AWK" || AWK=awk
  11939. _ACEOF
  11940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11941. # The default lists apply if the user does not specify any file.
  11942. ac_need_defaults=:
  11943. while test $# != 0
  11944. do
  11945. case $1 in
  11946. --*=?*)
  11947. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11948. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11949. ac_shift=:
  11950. ;;
  11951. --*=)
  11952. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11953. ac_optarg=
  11954. ac_shift=:
  11955. ;;
  11956. *)
  11957. ac_option=$1
  11958. ac_optarg=$2
  11959. ac_shift=shift
  11960. ;;
  11961. esac
  11962. case $ac_option in
  11963. # Handling of the options.
  11964. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11965. ac_cs_recheck=: ;;
  11966. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11967. $as_echo "$ac_cs_version"; exit ;;
  11968. --config | --confi | --conf | --con | --co | --c )
  11969. $as_echo "$ac_cs_config"; exit ;;
  11970. --debug | --debu | --deb | --de | --d | -d )
  11971. debug=: ;;
  11972. --file | --fil | --fi | --f )
  11973. $ac_shift
  11974. case $ac_optarg in
  11975. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11976. '') as_fn_error $? "missing file argument" ;;
  11977. esac
  11978. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11979. ac_need_defaults=false;;
  11980. --header | --heade | --head | --hea )
  11981. $ac_shift
  11982. case $ac_optarg in
  11983. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11984. esac
  11985. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11986. ac_need_defaults=false;;
  11987. --he | --h)
  11988. # Conflict between --help and --header
  11989. as_fn_error $? "ambiguous option: \`$1'
  11990. Try \`$0 --help' for more information.";;
  11991. --help | --hel | -h )
  11992. $as_echo "$ac_cs_usage"; exit ;;
  11993. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11994. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11995. ac_cs_silent=: ;;
  11996. # This is an error.
  11997. -*) as_fn_error $? "unrecognized option: \`$1'
  11998. Try \`$0 --help' for more information." ;;
  11999. *) as_fn_append ac_config_targets " $1"
  12000. ac_need_defaults=false ;;
  12001. esac
  12002. shift
  12003. done
  12004. ac_configure_extra_args=
  12005. if $ac_cs_silent; then
  12006. exec 6>/dev/null
  12007. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12008. fi
  12009. _ACEOF
  12010. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12011. if \$ac_cs_recheck; then
  12012. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12013. shift
  12014. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12015. CONFIG_SHELL='$SHELL'
  12016. export CONFIG_SHELL
  12017. exec "\$@"
  12018. fi
  12019. _ACEOF
  12020. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12021. exec 5>>config.log
  12022. {
  12023. echo
  12024. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12025. ## Running $as_me. ##
  12026. _ASBOX
  12027. $as_echo "$ac_log"
  12028. } >&5
  12029. _ACEOF
  12030. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12031. #
  12032. # INIT-COMMANDS
  12033. #
  12034. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12035. # if CDPATH is set.
  12036. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12037. sed_quote_subst='$sed_quote_subst'
  12038. double_quote_subst='$double_quote_subst'
  12039. delay_variable_subst='$delay_variable_subst'
  12040. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  12041. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12042. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12043. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12044. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12045. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12046. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12047. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12048. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12049. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12050. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12051. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12052. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12053. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12054. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12055. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12056. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12057. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12058. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12059. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12060. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12061. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12062. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12063. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12064. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12065. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12066. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12067. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12068. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12069. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12070. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12071. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12072. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12073. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12074. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12075. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12076. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12077. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12078. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12079. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12080. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12081. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12082. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12083. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12084. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12085. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12086. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12087. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12088. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12089. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12090. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12091. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12092. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12093. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12094. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12095. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12096. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12097. 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"`'
  12098. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12099. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12100. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12101. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12102. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12103. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12104. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12105. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12106. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12107. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12108. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12109. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12110. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12111. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12112. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12113. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12114. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12115. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12116. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12117. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12118. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12119. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12120. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12121. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12122. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12123. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12124. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12125. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12126. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12127. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12128. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12129. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12130. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12131. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12132. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12133. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12134. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12135. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12136. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12137. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12138. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12139. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12140. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12141. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12142. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12143. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12144. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12145. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12146. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12147. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12148. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12149. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12150. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12151. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12152. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12153. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12154. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12155. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12156. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12157. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12158. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12159. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12160. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12161. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12162. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12163. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12164. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12165. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12166. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12167. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12168. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12169. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12170. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12171. LTCC='$LTCC'
  12172. LTCFLAGS='$LTCFLAGS'
  12173. compiler='$compiler_DEFAULT'
  12174. # A function that is used when there is no print builtin or printf.
  12175. func_fallback_echo ()
  12176. {
  12177. eval 'cat <<_LTECHO_EOF
  12178. \$1
  12179. _LTECHO_EOF'
  12180. }
  12181. # Quote evaled strings.
  12182. for var in AS \
  12183. DLLTOOL \
  12184. OBJDUMP \
  12185. SHELL \
  12186. ECHO \
  12187. PATH_SEPARATOR \
  12188. SED \
  12189. GREP \
  12190. EGREP \
  12191. FGREP \
  12192. LD \
  12193. NM \
  12194. LN_S \
  12195. lt_SP2NL \
  12196. lt_NL2SP \
  12197. reload_flag \
  12198. deplibs_check_method \
  12199. file_magic_cmd \
  12200. file_magic_glob \
  12201. want_nocaseglob \
  12202. sharedlib_from_linklib_cmd \
  12203. AR \
  12204. AR_FLAGS \
  12205. archiver_list_spec \
  12206. STRIP \
  12207. RANLIB \
  12208. CC \
  12209. CFLAGS \
  12210. compiler \
  12211. lt_cv_sys_global_symbol_pipe \
  12212. lt_cv_sys_global_symbol_to_cdecl \
  12213. lt_cv_sys_global_symbol_to_c_name_address \
  12214. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12215. nm_file_list_spec \
  12216. lt_prog_compiler_no_builtin_flag \
  12217. lt_prog_compiler_pic \
  12218. lt_prog_compiler_wl \
  12219. lt_prog_compiler_static \
  12220. lt_cv_prog_compiler_c_o \
  12221. need_locks \
  12222. MANIFEST_TOOL \
  12223. DSYMUTIL \
  12224. NMEDIT \
  12225. LIPO \
  12226. OTOOL \
  12227. OTOOL64 \
  12228. shrext_cmds \
  12229. export_dynamic_flag_spec \
  12230. whole_archive_flag_spec \
  12231. compiler_needs_object \
  12232. with_gnu_ld \
  12233. allow_undefined_flag \
  12234. no_undefined_flag \
  12235. hardcode_libdir_flag_spec \
  12236. hardcode_libdir_separator \
  12237. exclude_expsyms \
  12238. include_expsyms \
  12239. file_list_spec \
  12240. variables_saved_for_relink \
  12241. libname_spec \
  12242. library_names_spec \
  12243. soname_spec \
  12244. install_override_mode \
  12245. finish_eval \
  12246. old_striplib \
  12247. striplib; do
  12248. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12249. *[\\\\\\\`\\"\\\$]*)
  12250. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12251. ;;
  12252. *)
  12253. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12254. ;;
  12255. esac
  12256. done
  12257. # Double-quote double-evaled strings.
  12258. for var in reload_cmds \
  12259. old_postinstall_cmds \
  12260. old_postuninstall_cmds \
  12261. old_archive_cmds \
  12262. extract_expsyms_cmds \
  12263. old_archive_from_new_cmds \
  12264. old_archive_from_expsyms_cmds \
  12265. archive_cmds \
  12266. archive_expsym_cmds \
  12267. module_cmds \
  12268. module_expsym_cmds \
  12269. export_symbols_cmds \
  12270. prelink_cmds \
  12271. postlink_cmds \
  12272. postinstall_cmds \
  12273. postuninstall_cmds \
  12274. finish_cmds \
  12275. sys_lib_search_path_spec \
  12276. sys_lib_dlsearch_path_spec; do
  12277. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12278. *[\\\\\\\`\\"\\\$]*)
  12279. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12280. ;;
  12281. *)
  12282. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12283. ;;
  12284. esac
  12285. done
  12286. ac_aux_dir='$ac_aux_dir'
  12287. xsi_shell='$xsi_shell'
  12288. lt_shell_append='$lt_shell_append'
  12289. # See if we are running on zsh, and set the options which allow our
  12290. # commands through without removal of \ escapes INIT.
  12291. if test -n "\${ZSH_VERSION+set}" ; then
  12292. setopt NO_GLOB_SUBST
  12293. fi
  12294. PACKAGE='$PACKAGE'
  12295. VERSION='$VERSION'
  12296. TIMESTAMP='$TIMESTAMP'
  12297. RM='$RM'
  12298. ofile='$ofile'
  12299. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12300. _ACEOF
  12301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12302. # Handling of arguments.
  12303. for ac_config_target in $ac_config_targets
  12304. do
  12305. case $ac_config_target in
  12306. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12307. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12308. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12309. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12310. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12311. esac
  12312. done
  12313. # If the user did not use the arguments to specify the items to instantiate,
  12314. # then the envvar interface is used. Set only those that are not.
  12315. # We use the long form for the default assignment because of an extremely
  12316. # bizarre bug on SunOS 4.1.3.
  12317. if $ac_need_defaults; then
  12318. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12319. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12320. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12321. fi
  12322. # Have a temporary directory for convenience. Make it in the build tree
  12323. # simply because there is no reason against having it here, and in addition,
  12324. # creating and moving files from /tmp can sometimes cause problems.
  12325. # Hook for its removal unless debugging.
  12326. # Note that there is a small window in which the directory will not be cleaned:
  12327. # after its creation but before its name has been assigned to `$tmp'.
  12328. $debug ||
  12329. {
  12330. tmp= ac_tmp=
  12331. trap 'exit_status=$?
  12332. : "${ac_tmp:=$tmp}"
  12333. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12334. ' 0
  12335. trap 'as_fn_exit 1' 1 2 13 15
  12336. }
  12337. # Create a (secure) tmp directory for tmp files.
  12338. {
  12339. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12340. test -d "$tmp"
  12341. } ||
  12342. {
  12343. tmp=./conf$$-$RANDOM
  12344. (umask 077 && mkdir "$tmp")
  12345. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12346. ac_tmp=$tmp
  12347. # Set up the scripts for CONFIG_FILES section.
  12348. # No need to generate them if there are no CONFIG_FILES.
  12349. # This happens for instance with `./config.status config.h'.
  12350. if test -n "$CONFIG_FILES"; then
  12351. ac_cr=`echo X | tr X '\015'`
  12352. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12353. # But we know of no other shell where ac_cr would be empty at this
  12354. # point, so we can use a bashism as a fallback.
  12355. if test "x$ac_cr" = x; then
  12356. eval ac_cr=\$\'\\r\'
  12357. fi
  12358. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12359. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12360. ac_cs_awk_cr='\\r'
  12361. else
  12362. ac_cs_awk_cr=$ac_cr
  12363. fi
  12364. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12365. _ACEOF
  12366. {
  12367. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12368. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12369. echo "_ACEOF"
  12370. } >conf$$subs.sh ||
  12371. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12372. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12373. ac_delim='%!_!# '
  12374. for ac_last_try in false false false false false :; do
  12375. . ./conf$$subs.sh ||
  12376. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12377. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12378. if test $ac_delim_n = $ac_delim_num; then
  12379. break
  12380. elif $ac_last_try; then
  12381. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12382. else
  12383. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12384. fi
  12385. done
  12386. rm -f conf$$subs.sh
  12387. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12388. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12389. _ACEOF
  12390. sed -n '
  12391. h
  12392. s/^/S["/; s/!.*/"]=/
  12393. p
  12394. g
  12395. s/^[^!]*!//
  12396. :repl
  12397. t repl
  12398. s/'"$ac_delim"'$//
  12399. t delim
  12400. :nl
  12401. h
  12402. s/\(.\{148\}\)..*/\1/
  12403. t more1
  12404. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12405. p
  12406. n
  12407. b repl
  12408. :more1
  12409. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12410. p
  12411. g
  12412. s/.\{148\}//
  12413. t nl
  12414. :delim
  12415. h
  12416. s/\(.\{148\}\)..*/\1/
  12417. t more2
  12418. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12419. p
  12420. b
  12421. :more2
  12422. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12423. p
  12424. g
  12425. s/.\{148\}//
  12426. t delim
  12427. ' <conf$$subs.awk | sed '
  12428. /^[^""]/{
  12429. N
  12430. s/\n//
  12431. }
  12432. ' >>$CONFIG_STATUS || ac_write_fail=1
  12433. rm -f conf$$subs.awk
  12434. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12435. _ACAWK
  12436. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12437. for (key in S) S_is_set[key] = 1
  12438. FS = ""
  12439. }
  12440. {
  12441. line = $ 0
  12442. nfields = split(line, field, "@")
  12443. substed = 0
  12444. len = length(field[1])
  12445. for (i = 2; i < nfields; i++) {
  12446. key = field[i]
  12447. keylen = length(key)
  12448. if (S_is_set[key]) {
  12449. value = S[key]
  12450. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12451. len += length(value) + length(field[++i])
  12452. substed = 1
  12453. } else
  12454. len += 1 + keylen
  12455. }
  12456. print line
  12457. }
  12458. _ACAWK
  12459. _ACEOF
  12460. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12461. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12462. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12463. else
  12464. cat
  12465. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12466. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12467. _ACEOF
  12468. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12469. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12470. # trailing colons and then remove the whole line if VPATH becomes empty
  12471. # (actually we leave an empty line to preserve line numbers).
  12472. if test "x$srcdir" = x.; then
  12473. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12474. h
  12475. s///
  12476. s/^/:/
  12477. s/[ ]*$/:/
  12478. s/:\$(srcdir):/:/g
  12479. s/:\${srcdir}:/:/g
  12480. s/:@srcdir@:/:/g
  12481. s/^:*//
  12482. s/:*$//
  12483. x
  12484. s/\(=[ ]*\).*/\1/
  12485. G
  12486. s/\n//
  12487. s/^[^=]*=[ ]*$//
  12488. }'
  12489. fi
  12490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12491. fi # test -n "$CONFIG_FILES"
  12492. # Set up the scripts for CONFIG_HEADERS section.
  12493. # No need to generate them if there are no CONFIG_HEADERS.
  12494. # This happens for instance with `./config.status Makefile'.
  12495. if test -n "$CONFIG_HEADERS"; then
  12496. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12497. BEGIN {
  12498. _ACEOF
  12499. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12500. # here-document in config.status, that substitutes the proper values into
  12501. # config.h.in to produce config.h.
  12502. # Create a delimiter string that does not exist in confdefs.h, to ease
  12503. # handling of long lines.
  12504. ac_delim='%!_!# '
  12505. for ac_last_try in false false :; do
  12506. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12507. if test -z "$ac_tt"; then
  12508. break
  12509. elif $ac_last_try; then
  12510. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12511. else
  12512. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12513. fi
  12514. done
  12515. # For the awk script, D is an array of macro values keyed by name,
  12516. # likewise P contains macro parameters if any. Preserve backslash
  12517. # newline sequences.
  12518. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12519. sed -n '
  12520. s/.\{148\}/&'"$ac_delim"'/g
  12521. t rset
  12522. :rset
  12523. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12524. t def
  12525. d
  12526. :def
  12527. s/\\$//
  12528. t bsnl
  12529. s/["\\]/\\&/g
  12530. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12531. D["\1"]=" \3"/p
  12532. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12533. d
  12534. :bsnl
  12535. s/["\\]/\\&/g
  12536. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12537. D["\1"]=" \3\\\\\\n"\\/p
  12538. t cont
  12539. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12540. t cont
  12541. d
  12542. :cont
  12543. n
  12544. s/.\{148\}/&'"$ac_delim"'/g
  12545. t clear
  12546. :clear
  12547. s/\\$//
  12548. t bsnlc
  12549. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12550. d
  12551. :bsnlc
  12552. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12553. b cont
  12554. ' <confdefs.h | sed '
  12555. s/'"$ac_delim"'/"\\\
  12556. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12557. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12558. for (key in D) D_is_set[key] = 1
  12559. FS = ""
  12560. }
  12561. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12562. line = \$ 0
  12563. split(line, arg, " ")
  12564. if (arg[1] == "#") {
  12565. defundef = arg[2]
  12566. mac1 = arg[3]
  12567. } else {
  12568. defundef = substr(arg[1], 2)
  12569. mac1 = arg[2]
  12570. }
  12571. split(mac1, mac2, "(") #)
  12572. macro = mac2[1]
  12573. prefix = substr(line, 1, index(line, defundef) - 1)
  12574. if (D_is_set[macro]) {
  12575. # Preserve the white space surrounding the "#".
  12576. print prefix "define", macro P[macro] D[macro]
  12577. next
  12578. } else {
  12579. # Replace #undef with comments. This is necessary, for example,
  12580. # in the case of _POSIX_SOURCE, which is predefined and required
  12581. # on some systems where configure will not decide to define it.
  12582. if (defundef == "undef") {
  12583. print "/*", prefix defundef, macro, "*/"
  12584. next
  12585. }
  12586. }
  12587. }
  12588. { print }
  12589. _ACAWK
  12590. _ACEOF
  12591. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12592. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12593. fi # test -n "$CONFIG_HEADERS"
  12594. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12595. shift
  12596. for ac_tag
  12597. do
  12598. case $ac_tag in
  12599. :[FHLC]) ac_mode=$ac_tag; continue;;
  12600. esac
  12601. case $ac_mode$ac_tag in
  12602. :[FHL]*:*);;
  12603. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12604. :[FH]-) ac_tag=-:-;;
  12605. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12606. esac
  12607. ac_save_IFS=$IFS
  12608. IFS=:
  12609. set x $ac_tag
  12610. IFS=$ac_save_IFS
  12611. shift
  12612. ac_file=$1
  12613. shift
  12614. case $ac_mode in
  12615. :L) ac_source=$1;;
  12616. :[FH])
  12617. ac_file_inputs=
  12618. for ac_f
  12619. do
  12620. case $ac_f in
  12621. -) ac_f="$ac_tmp/stdin";;
  12622. *) # Look for the file first in the build tree, then in the source tree
  12623. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12624. # because $ac_f cannot contain `:'.
  12625. test -f "$ac_f" ||
  12626. case $ac_f in
  12627. [\\/$]*) false;;
  12628. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12629. esac ||
  12630. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12631. esac
  12632. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12633. as_fn_append ac_file_inputs " '$ac_f'"
  12634. done
  12635. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12636. # use $as_me), people would be surprised to read:
  12637. # /* config.h. Generated by config.status. */
  12638. configure_input='Generated from '`
  12639. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12640. `' by configure.'
  12641. if test x"$ac_file" != x-; then
  12642. configure_input="$ac_file. $configure_input"
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12644. $as_echo "$as_me: creating $ac_file" >&6;}
  12645. fi
  12646. # Neutralize special characters interpreted by sed in replacement strings.
  12647. case $configure_input in #(
  12648. *\&* | *\|* | *\\* )
  12649. ac_sed_conf_input=`$as_echo "$configure_input" |
  12650. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12651. *) ac_sed_conf_input=$configure_input;;
  12652. esac
  12653. case $ac_tag in
  12654. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12655. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12656. esac
  12657. ;;
  12658. esac
  12659. ac_dir=`$as_dirname -- "$ac_file" ||
  12660. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12661. X"$ac_file" : 'X\(//\)[^/]' \| \
  12662. X"$ac_file" : 'X\(//\)$' \| \
  12663. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12664. $as_echo X"$ac_file" |
  12665. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12666. s//\1/
  12667. q
  12668. }
  12669. /^X\(\/\/\)[^/].*/{
  12670. s//\1/
  12671. q
  12672. }
  12673. /^X\(\/\/\)$/{
  12674. s//\1/
  12675. q
  12676. }
  12677. /^X\(\/\).*/{
  12678. s//\1/
  12679. q
  12680. }
  12681. s/.*/./; q'`
  12682. as_dir="$ac_dir"; as_fn_mkdir_p
  12683. ac_builddir=.
  12684. case "$ac_dir" in
  12685. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12686. *)
  12687. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12688. # A ".." for each directory in $ac_dir_suffix.
  12689. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12690. case $ac_top_builddir_sub in
  12691. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12692. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12693. esac ;;
  12694. esac
  12695. ac_abs_top_builddir=$ac_pwd
  12696. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12697. # for backward compatibility:
  12698. ac_top_builddir=$ac_top_build_prefix
  12699. case $srcdir in
  12700. .) # We are building in place.
  12701. ac_srcdir=.
  12702. ac_top_srcdir=$ac_top_builddir_sub
  12703. ac_abs_top_srcdir=$ac_pwd ;;
  12704. [\\/]* | ?:[\\/]* ) # Absolute name.
  12705. ac_srcdir=$srcdir$ac_dir_suffix;
  12706. ac_top_srcdir=$srcdir
  12707. ac_abs_top_srcdir=$srcdir ;;
  12708. *) # Relative name.
  12709. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12710. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12711. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12712. esac
  12713. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12714. case $ac_mode in
  12715. :F)
  12716. #
  12717. # CONFIG_FILE
  12718. #
  12719. case $INSTALL in
  12720. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12721. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12722. esac
  12723. ac_MKDIR_P=$MKDIR_P
  12724. case $MKDIR_P in
  12725. [\\/$]* | ?:[\\/]* ) ;;
  12726. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12727. esac
  12728. _ACEOF
  12729. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12730. # If the template does not know about datarootdir, expand it.
  12731. # FIXME: This hack should be removed a few years after 2.60.
  12732. ac_datarootdir_hack=; ac_datarootdir_seen=
  12733. ac_sed_dataroot='
  12734. /datarootdir/ {
  12735. p
  12736. q
  12737. }
  12738. /@datadir@/p
  12739. /@docdir@/p
  12740. /@infodir@/p
  12741. /@localedir@/p
  12742. /@mandir@/p'
  12743. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12744. *datarootdir*) ac_datarootdir_seen=yes;;
  12745. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12747. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12748. _ACEOF
  12749. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12750. ac_datarootdir_hack='
  12751. s&@datadir@&$datadir&g
  12752. s&@docdir@&$docdir&g
  12753. s&@infodir@&$infodir&g
  12754. s&@localedir@&$localedir&g
  12755. s&@mandir@&$mandir&g
  12756. s&\\\${datarootdir}&$datarootdir&g' ;;
  12757. esac
  12758. _ACEOF
  12759. # Neutralize VPATH when `$srcdir' = `.'.
  12760. # Shell code in configure.ac might set extrasub.
  12761. # FIXME: do we really want to maintain this feature?
  12762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12763. ac_sed_extra="$ac_vpsub
  12764. $extrasub
  12765. _ACEOF
  12766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12767. :t
  12768. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12769. s|@configure_input@|$ac_sed_conf_input|;t t
  12770. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12771. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12772. s&@srcdir@&$ac_srcdir&;t t
  12773. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12774. s&@top_srcdir@&$ac_top_srcdir&;t t
  12775. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12776. s&@builddir@&$ac_builddir&;t t
  12777. s&@abs_builddir@&$ac_abs_builddir&;t t
  12778. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12779. s&@INSTALL@&$ac_INSTALL&;t t
  12780. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12781. $ac_datarootdir_hack
  12782. "
  12783. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12784. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12785. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12786. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12787. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12788. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12790. which seems to be undefined. Please make sure it is defined" >&5
  12791. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12792. which seems to be undefined. Please make sure it is defined" >&2;}
  12793. rm -f "$ac_tmp/stdin"
  12794. case $ac_file in
  12795. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12796. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12797. esac \
  12798. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12799. ;;
  12800. :H)
  12801. #
  12802. # CONFIG_HEADER
  12803. #
  12804. if test x"$ac_file" != x-; then
  12805. {
  12806. $as_echo "/* $configure_input */" \
  12807. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12808. } >"$ac_tmp/config.h" \
  12809. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12810. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12812. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12813. else
  12814. rm -f "$ac_file"
  12815. mv "$ac_tmp/config.h" "$ac_file" \
  12816. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12817. fi
  12818. else
  12819. $as_echo "/* $configure_input */" \
  12820. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12821. || as_fn_error $? "could not create -" "$LINENO" 5
  12822. fi
  12823. # Compute "$ac_file"'s index in $config_headers.
  12824. _am_arg="$ac_file"
  12825. _am_stamp_count=1
  12826. for _am_header in $config_headers :; do
  12827. case $_am_header in
  12828. $_am_arg | $_am_arg:* )
  12829. break ;;
  12830. * )
  12831. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12832. esac
  12833. done
  12834. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12835. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12836. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12837. X"$_am_arg" : 'X\(//\)$' \| \
  12838. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12839. $as_echo X"$_am_arg" |
  12840. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12841. s//\1/
  12842. q
  12843. }
  12844. /^X\(\/\/\)[^/].*/{
  12845. s//\1/
  12846. q
  12847. }
  12848. /^X\(\/\/\)$/{
  12849. s//\1/
  12850. q
  12851. }
  12852. /^X\(\/\).*/{
  12853. s//\1/
  12854. q
  12855. }
  12856. s/.*/./; q'`/stamp-h$_am_stamp_count
  12857. ;;
  12858. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12859. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12860. ;;
  12861. esac
  12862. case $ac_file$ac_mode in
  12863. "libtool":C)
  12864. # See if we are running on zsh, and set the options which allow our
  12865. # commands through without removal of \ escapes.
  12866. if test -n "${ZSH_VERSION+set}" ; then
  12867. setopt NO_GLOB_SUBST
  12868. fi
  12869. cfgfile="${ofile}T"
  12870. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12871. $RM "$cfgfile"
  12872. cat <<_LT_EOF >> "$cfgfile"
  12873. #! $SHELL
  12874. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12875. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12876. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12877. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12878. #
  12879. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12880. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  12881. # Foundation, Inc.
  12882. # Written by Gordon Matzigkeit, 1996
  12883. #
  12884. # This file is part of GNU Libtool.
  12885. #
  12886. # GNU Libtool is free software; you can redistribute it and/or
  12887. # modify it under the terms of the GNU General Public License as
  12888. # published by the Free Software Foundation; either version 2 of
  12889. # the License, or (at your option) any later version.
  12890. #
  12891. # As a special exception to the GNU General Public License,
  12892. # if you distribute this file as part of a program or library that
  12893. # is built using GNU Libtool, you may include this file under the
  12894. # same distribution terms that you use for the rest of that program.
  12895. #
  12896. # GNU Libtool is distributed in the hope that it will be useful,
  12897. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12898. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12899. # GNU General Public License for more details.
  12900. #
  12901. # You should have received a copy of the GNU General Public License
  12902. # along with GNU Libtool; see the file COPYING. If not, a copy
  12903. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12904. # obtained by writing to the Free Software Foundation, Inc.,
  12905. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12906. # The names of the tagged configurations supported by this script.
  12907. available_tags=""
  12908. # ### BEGIN LIBTOOL CONFIG
  12909. # Assembler program.
  12910. AS=$lt_AS
  12911. # DLL creation program.
  12912. DLLTOOL=$lt_DLLTOOL
  12913. # Object dumper program.
  12914. OBJDUMP=$lt_OBJDUMP
  12915. # Which release of libtool.m4 was used?
  12916. macro_version=$macro_version
  12917. macro_revision=$macro_revision
  12918. # Whether or not to build shared libraries.
  12919. build_libtool_libs=$enable_shared
  12920. # Whether or not to build static libraries.
  12921. build_old_libs=$enable_static
  12922. # What type of objects to build.
  12923. pic_mode=$pic_mode
  12924. # Whether or not to optimize for fast installation.
  12925. fast_install=$enable_fast_install
  12926. # Shell to use when invoking shell scripts.
  12927. SHELL=$lt_SHELL
  12928. # An echo program that protects backslashes.
  12929. ECHO=$lt_ECHO
  12930. # The PATH separator for the build system.
  12931. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12932. # The host system.
  12933. host_alias=$host_alias
  12934. host=$host
  12935. host_os=$host_os
  12936. # The build system.
  12937. build_alias=$build_alias
  12938. build=$build
  12939. build_os=$build_os
  12940. # A sed program that does not truncate output.
  12941. SED=$lt_SED
  12942. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12943. Xsed="\$SED -e 1s/^X//"
  12944. # A grep program that handles long lines.
  12945. GREP=$lt_GREP
  12946. # An ERE matcher.
  12947. EGREP=$lt_EGREP
  12948. # A literal string matcher.
  12949. FGREP=$lt_FGREP
  12950. # A BSD- or MS-compatible name lister.
  12951. NM=$lt_NM
  12952. # Whether we need soft or hard links.
  12953. LN_S=$lt_LN_S
  12954. # What is the maximum length of a command?
  12955. max_cmd_len=$max_cmd_len
  12956. # Object file suffix (normally "o").
  12957. objext=$ac_objext
  12958. # Executable file suffix (normally "").
  12959. exeext=$exeext
  12960. # whether the shell understands "unset".
  12961. lt_unset=$lt_unset
  12962. # turn spaces into newlines.
  12963. SP2NL=$lt_lt_SP2NL
  12964. # turn newlines into spaces.
  12965. NL2SP=$lt_lt_NL2SP
  12966. # convert \$build file names to \$host format.
  12967. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12968. # convert \$build files to toolchain format.
  12969. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12970. # Method to check whether dependent libraries are shared objects.
  12971. deplibs_check_method=$lt_deplibs_check_method
  12972. # Command to use when deplibs_check_method = "file_magic".
  12973. file_magic_cmd=$lt_file_magic_cmd
  12974. # How to find potential files when deplibs_check_method = "file_magic".
  12975. file_magic_glob=$lt_file_magic_glob
  12976. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12977. want_nocaseglob=$lt_want_nocaseglob
  12978. # Command to associate shared and link libraries.
  12979. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12980. # The archiver.
  12981. AR=$lt_AR
  12982. # Flags to create an archive.
  12983. AR_FLAGS=$lt_AR_FLAGS
  12984. # How to feed a file listing to the archiver.
  12985. archiver_list_spec=$lt_archiver_list_spec
  12986. # A symbol stripping program.
  12987. STRIP=$lt_STRIP
  12988. # Commands used to install an old-style archive.
  12989. RANLIB=$lt_RANLIB
  12990. old_postinstall_cmds=$lt_old_postinstall_cmds
  12991. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12992. # Whether to use a lock for old archive extraction.
  12993. lock_old_archive_extraction=$lock_old_archive_extraction
  12994. # A C compiler.
  12995. LTCC=$lt_CC
  12996. # LTCC compiler flags.
  12997. LTCFLAGS=$lt_CFLAGS
  12998. # Take the output of nm and produce a listing of raw symbols and C names.
  12999. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13000. # Transform the output of nm in a proper C declaration.
  13001. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13002. # Transform the output of nm in a C name address pair.
  13003. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13004. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13005. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13006. # Specify filename containing input files for \$NM.
  13007. nm_file_list_spec=$lt_nm_file_list_spec
  13008. # The root where to search for dependent libraries,and in which our libraries should be installed.
  13009. lt_sysroot=$lt_sysroot
  13010. # The name of the directory that contains temporary libtool files.
  13011. objdir=$objdir
  13012. # Used to examine libraries when file_magic_cmd begins with "file".
  13013. MAGIC_CMD=$MAGIC_CMD
  13014. # Must we lock files when doing compilation?
  13015. need_locks=$lt_need_locks
  13016. # Manifest tool.
  13017. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13018. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13019. DSYMUTIL=$lt_DSYMUTIL
  13020. # Tool to change global to local symbols on Mac OS X.
  13021. NMEDIT=$lt_NMEDIT
  13022. # Tool to manipulate fat objects and archives on Mac OS X.
  13023. LIPO=$lt_LIPO
  13024. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13025. OTOOL=$lt_OTOOL
  13026. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13027. OTOOL64=$lt_OTOOL64
  13028. # Old archive suffix (normally "a").
  13029. libext=$libext
  13030. # Shared library suffix (normally ".so").
  13031. shrext_cmds=$lt_shrext_cmds
  13032. # The commands to extract the exported symbol list from a shared archive.
  13033. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13034. # Variables whose values should be saved in libtool wrapper scripts and
  13035. # restored at link time.
  13036. variables_saved_for_relink=$lt_variables_saved_for_relink
  13037. # Do we need the "lib" prefix for modules?
  13038. need_lib_prefix=$need_lib_prefix
  13039. # Do we need a version for libraries?
  13040. need_version=$need_version
  13041. # Library versioning type.
  13042. version_type=$version_type
  13043. # Shared library runtime path variable.
  13044. runpath_var=$runpath_var
  13045. # Shared library path variable.
  13046. shlibpath_var=$shlibpath_var
  13047. # Is shlibpath searched before the hard-coded library search path?
  13048. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13049. # Format of library name prefix.
  13050. libname_spec=$lt_libname_spec
  13051. # List of archive names. First name is the real one, the rest are links.
  13052. # The last name is the one that the linker finds with -lNAME
  13053. library_names_spec=$lt_library_names_spec
  13054. # The coded name of the library, if different from the real name.
  13055. soname_spec=$lt_soname_spec
  13056. # Permission mode override for installation of shared libraries.
  13057. install_override_mode=$lt_install_override_mode
  13058. # Command to use after installation of a shared archive.
  13059. postinstall_cmds=$lt_postinstall_cmds
  13060. # Command to use after uninstallation of a shared archive.
  13061. postuninstall_cmds=$lt_postuninstall_cmds
  13062. # Commands used to finish a libtool library installation in a directory.
  13063. finish_cmds=$lt_finish_cmds
  13064. # As "finish_cmds", except a single script fragment to be evaled but
  13065. # not shown.
  13066. finish_eval=$lt_finish_eval
  13067. # Whether we should hardcode library paths into libraries.
  13068. hardcode_into_libs=$hardcode_into_libs
  13069. # Compile-time system search path for libraries.
  13070. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13071. # Run-time system search path for libraries.
  13072. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13073. # Whether dlopen is supported.
  13074. dlopen_support=$enable_dlopen
  13075. # Whether dlopen of programs is supported.
  13076. dlopen_self=$enable_dlopen_self
  13077. # Whether dlopen of statically linked programs is supported.
  13078. dlopen_self_static=$enable_dlopen_self_static
  13079. # Commands to strip libraries.
  13080. old_striplib=$lt_old_striplib
  13081. striplib=$lt_striplib
  13082. # The linker used to build libraries.
  13083. LD=$lt_LD
  13084. # How to create reloadable object files.
  13085. reload_flag=$lt_reload_flag
  13086. reload_cmds=$lt_reload_cmds
  13087. # Commands used to build an old-style archive.
  13088. old_archive_cmds=$lt_old_archive_cmds
  13089. # A language specific compiler.
  13090. CC=$lt_compiler
  13091. # Is the compiler the GNU compiler?
  13092. with_gcc=$GCC
  13093. # Compiler flag to turn off builtin functions.
  13094. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13095. # Additional compiler flags for building library objects.
  13096. pic_flag=$lt_lt_prog_compiler_pic
  13097. # How to pass a linker flag through the compiler.
  13098. wl=$lt_lt_prog_compiler_wl
  13099. # Compiler flag to prevent dynamic linking.
  13100. link_static_flag=$lt_lt_prog_compiler_static
  13101. # Does compiler simultaneously support -c and -o options?
  13102. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13103. # Whether or not to add -lc for building shared libraries.
  13104. build_libtool_need_lc=$archive_cmds_need_lc
  13105. # Whether or not to disallow shared libs when runtime libs are static.
  13106. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13107. # Compiler flag to allow reflexive dlopens.
  13108. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13109. # Compiler flag to generate shared objects directly from archives.
  13110. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13111. # Whether the compiler copes with passing no objects directly.
  13112. compiler_needs_object=$lt_compiler_needs_object
  13113. # Create an old-style archive from a shared archive.
  13114. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13115. # Create a temporary old-style archive to link instead of a shared archive.
  13116. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13117. # Commands used to build a shared archive.
  13118. archive_cmds=$lt_archive_cmds
  13119. archive_expsym_cmds=$lt_archive_expsym_cmds
  13120. # Commands used to build a loadable module if different from building
  13121. # a shared archive.
  13122. module_cmds=$lt_module_cmds
  13123. module_expsym_cmds=$lt_module_expsym_cmds
  13124. # Whether we are building with GNU ld or not.
  13125. with_gnu_ld=$lt_with_gnu_ld
  13126. # Flag that allows shared libraries with undefined symbols to be built.
  13127. allow_undefined_flag=$lt_allow_undefined_flag
  13128. # Flag that enforces no undefined symbols.
  13129. no_undefined_flag=$lt_no_undefined_flag
  13130. # Flag to hardcode \$libdir into a binary during linking.
  13131. # This must work even if \$libdir does not exist
  13132. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13133. # Whether we need a single "-rpath" flag with a separated argument.
  13134. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13135. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13136. # DIR into the resulting binary.
  13137. hardcode_direct=$hardcode_direct
  13138. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13139. # DIR into the resulting binary and the resulting library dependency is
  13140. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13141. # library is relocated.
  13142. hardcode_direct_absolute=$hardcode_direct_absolute
  13143. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13144. # into the resulting binary.
  13145. hardcode_minus_L=$hardcode_minus_L
  13146. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13147. # into the resulting binary.
  13148. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13149. # Set to "yes" if building a shared library automatically hardcodes DIR
  13150. # into the library and all subsequent libraries and executables linked
  13151. # against it.
  13152. hardcode_automatic=$hardcode_automatic
  13153. # Set to yes if linker adds runtime paths of dependent libraries
  13154. # to runtime path list.
  13155. inherit_rpath=$inherit_rpath
  13156. # Whether libtool must link a program against all its dependency libraries.
  13157. link_all_deplibs=$link_all_deplibs
  13158. # Set to "yes" if exported symbols are required.
  13159. always_export_symbols=$always_export_symbols
  13160. # The commands to list exported symbols.
  13161. export_symbols_cmds=$lt_export_symbols_cmds
  13162. # Symbols that should not be listed in the preloaded symbols.
  13163. exclude_expsyms=$lt_exclude_expsyms
  13164. # Symbols that must always be exported.
  13165. include_expsyms=$lt_include_expsyms
  13166. # Commands necessary for linking programs (against libraries) with templates.
  13167. prelink_cmds=$lt_prelink_cmds
  13168. # Commands necessary for finishing linking programs.
  13169. postlink_cmds=$lt_postlink_cmds
  13170. # Specify filename containing input files.
  13171. file_list_spec=$lt_file_list_spec
  13172. # How to hardcode a shared library path into an executable.
  13173. hardcode_action=$hardcode_action
  13174. # ### END LIBTOOL CONFIG
  13175. _LT_EOF
  13176. case $host_os in
  13177. aix3*)
  13178. cat <<\_LT_EOF >> "$cfgfile"
  13179. # AIX sometimes has problems with the GCC collect2 program. For some
  13180. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13181. # vanish in a puff of smoke.
  13182. if test "X${COLLECT_NAMES+set}" != Xset; then
  13183. COLLECT_NAMES=
  13184. export COLLECT_NAMES
  13185. fi
  13186. _LT_EOF
  13187. ;;
  13188. esac
  13189. ltmain="$ac_aux_dir/ltmain.sh"
  13190. # We use sed instead of cat because bash on DJGPP gets confused if
  13191. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13192. # text mode, it properly converts lines to CR/LF. This bash problem
  13193. # is reportedly fixed, but why not run on old versions too?
  13194. sed '$q' "$ltmain" >> "$cfgfile" \
  13195. || (rm -f "$cfgfile"; exit 1)
  13196. if test x"$xsi_shell" = xyes; then
  13197. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  13198. func_dirname ()\
  13199. {\
  13200. \ case ${1} in\
  13201. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13202. \ * ) func_dirname_result="${3}" ;;\
  13203. \ esac\
  13204. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  13205. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13206. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13207. test 0 -eq $? || _lt_function_replace_fail=:
  13208. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  13209. func_basename ()\
  13210. {\
  13211. \ func_basename_result="${1##*/}"\
  13212. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13213. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13214. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13215. test 0 -eq $? || _lt_function_replace_fail=:
  13216. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  13217. func_dirname_and_basename ()\
  13218. {\
  13219. \ case ${1} in\
  13220. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13221. \ * ) func_dirname_result="${3}" ;;\
  13222. \ esac\
  13223. \ func_basename_result="${1##*/}"\
  13224. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13225. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13226. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13227. test 0 -eq $? || _lt_function_replace_fail=:
  13228. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  13229. func_stripname ()\
  13230. {\
  13231. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  13232. \ # positional parameters, so assign one to ordinary parameter first.\
  13233. \ func_stripname_result=${3}\
  13234. \ func_stripname_result=${func_stripname_result#"${1}"}\
  13235. \ func_stripname_result=${func_stripname_result%"${2}"}\
  13236. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  13237. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13238. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13239. test 0 -eq $? || _lt_function_replace_fail=:
  13240. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  13241. func_split_long_opt ()\
  13242. {\
  13243. \ func_split_long_opt_name=${1%%=*}\
  13244. \ func_split_long_opt_arg=${1#*=}\
  13245. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13246. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13247. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13248. test 0 -eq $? || _lt_function_replace_fail=:
  13249. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  13250. func_split_short_opt ()\
  13251. {\
  13252. \ func_split_short_opt_arg=${1#??}\
  13253. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  13254. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13255. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13256. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13257. test 0 -eq $? || _lt_function_replace_fail=:
  13258. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  13259. func_lo2o ()\
  13260. {\
  13261. \ case ${1} in\
  13262. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  13263. \ *) func_lo2o_result=${1} ;;\
  13264. \ esac\
  13265. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  13266. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13267. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13268. test 0 -eq $? || _lt_function_replace_fail=:
  13269. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  13270. func_xform ()\
  13271. {\
  13272. func_xform_result=${1%.*}.lo\
  13273. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  13274. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13275. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13276. test 0 -eq $? || _lt_function_replace_fail=:
  13277. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  13278. func_arith ()\
  13279. {\
  13280. func_arith_result=$(( $* ))\
  13281. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  13282. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13283. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13284. test 0 -eq $? || _lt_function_replace_fail=:
  13285. sed -e '/^func_len ()$/,/^} # func_len /c\
  13286. func_len ()\
  13287. {\
  13288. func_len_result=${#1}\
  13289. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  13290. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13291. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13292. test 0 -eq $? || _lt_function_replace_fail=:
  13293. fi
  13294. if test x"$lt_shell_append" = xyes; then
  13295. sed -e '/^func_append ()$/,/^} # func_append /c\
  13296. func_append ()\
  13297. {\
  13298. eval "${1}+=\\${2}"\
  13299. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  13300. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13301. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13302. test 0 -eq $? || _lt_function_replace_fail=:
  13303. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  13304. func_append_quoted ()\
  13305. {\
  13306. \ func_quote_for_eval "${2}"\
  13307. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  13308. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  13309. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13310. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13311. test 0 -eq $? || _lt_function_replace_fail=:
  13312. # Save a `func_append' function call where possible by direct use of '+='
  13313. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  13314. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13315. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13316. test 0 -eq $? || _lt_function_replace_fail=:
  13317. else
  13318. # Save a `func_append' function call even when '+=' is not available
  13319. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  13320. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13321. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13322. test 0 -eq $? || _lt_function_replace_fail=:
  13323. fi
  13324. if test x"$_lt_function_replace_fail" = x":"; then
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  13326. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  13327. fi
  13328. mv -f "$cfgfile" "$ofile" ||
  13329. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13330. chmod +x "$ofile"
  13331. ;;
  13332. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13333. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13334. # are listed without --file. Let's play safe and only enable the eval
  13335. # if we detect the quoting.
  13336. case $CONFIG_FILES in
  13337. *\'*) eval set x "$CONFIG_FILES" ;;
  13338. *) set x $CONFIG_FILES ;;
  13339. esac
  13340. shift
  13341. for mf
  13342. do
  13343. # Strip MF so we end up with the name of the file.
  13344. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13345. # Check whether this is an Automake generated Makefile or not.
  13346. # We used to match only the files named 'Makefile.in', but
  13347. # some people rename them; so instead we look at the file content.
  13348. # Grep'ing the first line is not enough: some people post-process
  13349. # each Makefile.in and add a new line on top of each file to say so.
  13350. # Grep'ing the whole file is not good either: AIX grep has a line
  13351. # limit of 2048, but all sed's we know have understand at least 4000.
  13352. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13353. dirpart=`$as_dirname -- "$mf" ||
  13354. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13355. X"$mf" : 'X\(//\)[^/]' \| \
  13356. X"$mf" : 'X\(//\)$' \| \
  13357. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13358. $as_echo X"$mf" |
  13359. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13360. s//\1/
  13361. q
  13362. }
  13363. /^X\(\/\/\)[^/].*/{
  13364. s//\1/
  13365. q
  13366. }
  13367. /^X\(\/\/\)$/{
  13368. s//\1/
  13369. q
  13370. }
  13371. /^X\(\/\).*/{
  13372. s//\1/
  13373. q
  13374. }
  13375. s/.*/./; q'`
  13376. else
  13377. continue
  13378. fi
  13379. # Extract the definition of DEPDIR, am__include, and am__quote
  13380. # from the Makefile without running 'make'.
  13381. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13382. test -z "$DEPDIR" && continue
  13383. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13384. test -z "am__include" && continue
  13385. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13386. # Find all dependency output files, they are included files with
  13387. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13388. # simplest approach to changing $(DEPDIR) to its actual value in the
  13389. # expansion.
  13390. for file in `sed -n "
  13391. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13392. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13393. # Make sure the directory exists.
  13394. test -f "$dirpart/$file" && continue
  13395. fdir=`$as_dirname -- "$file" ||
  13396. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13397. X"$file" : 'X\(//\)[^/]' \| \
  13398. X"$file" : 'X\(//\)$' \| \
  13399. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13400. $as_echo X"$file" |
  13401. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13402. s//\1/
  13403. q
  13404. }
  13405. /^X\(\/\/\)[^/].*/{
  13406. s//\1/
  13407. q
  13408. }
  13409. /^X\(\/\/\)$/{
  13410. s//\1/
  13411. q
  13412. }
  13413. /^X\(\/\).*/{
  13414. s//\1/
  13415. q
  13416. }
  13417. s/.*/./; q'`
  13418. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13419. # echo "creating $dirpart/$file"
  13420. echo '# dummy' > "$dirpart/$file"
  13421. done
  13422. done
  13423. }
  13424. ;;
  13425. esac
  13426. done # for ac_tag
  13427. as_fn_exit 0
  13428. _ACEOF
  13429. ac_clean_files=$ac_clean_files_save
  13430. test $ac_write_fail = 0 ||
  13431. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13432. # configure is writing to config.log, and then calls config.status.
  13433. # config.status does its own redirection, appending to config.log.
  13434. # Unfortunately, on DOS this fails, as config.log is still kept open
  13435. # by configure, so config.status won't be able to write to it; its
  13436. # output is simply discarded. So we exec the FD to /dev/null,
  13437. # effectively closing config.log, so it can be properly (re)opened and
  13438. # appended to by config.status. When coming back to configure, we
  13439. # need to make the FD available again.
  13440. if test "$no_create" != yes; then
  13441. ac_cs_success=:
  13442. ac_config_status_args=
  13443. test "$silent" = yes &&
  13444. ac_config_status_args="$ac_config_status_args --quiet"
  13445. exec 5>/dev/null
  13446. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13447. exec 5>>config.log
  13448. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13449. # would make configure fail if this is the last instruction.
  13450. $ac_cs_success || as_fn_exit 1
  13451. fi
  13452. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13454. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13455. fi