configure 493 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for file 5.44.
  4. #
  5. # Report bugs to <christos@astron.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
  259. $0: christos@astron.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a 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='file'
  542. PACKAGE_TARNAME='file'
  543. PACKAGE_VERSION='5.44'
  544. PACKAGE_STRING='file 5.44'
  545. PACKAGE_BUGREPORT='christos@astron.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_header_list=
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. IS_CROSS_COMPILE_FALSE
  587. IS_CROSS_COMPILE_TRUE
  588. LIBOBJS
  589. HAVE_VISIBILITY
  590. CFLAG_VISIBILITY
  591. LT_SYS_LIBRARY_PATH
  592. OTOOL64
  593. OTOOL
  594. LIPO
  595. NMEDIT
  596. DSYMUTIL
  597. MANIFEST_TOOL
  598. RANLIB
  599. ac_ct_AR
  600. AR
  601. DLLTOOL
  602. OBJDUMP
  603. NM
  604. ac_ct_DUMPBIN
  605. DUMPBIN
  606. LD
  607. FGREP
  608. SED
  609. LIBTOOL
  610. LN_S
  611. EGREP
  612. GREP
  613. CPP
  614. am__fastdepCC_FALSE
  615. am__fastdepCC_TRUE
  616. CCDEPMODE
  617. am__nodep
  618. AMDEPBACKSLASH
  619. AMDEP_FALSE
  620. AMDEP_TRUE
  621. am__include
  622. DEPDIR
  623. OBJEXT
  624. EXEEXT
  625. ac_ct_CC
  626. CPPFLAGS
  627. LDFLAGS
  628. CFLAGS
  629. CC
  630. WARNINGS
  631. FSECT5_FALSE
  632. FSECT5_TRUE
  633. fsect
  634. pkgdatadir
  635. MINGW_FALSE
  636. MINGW_TRUE
  637. MINGW
  638. host_os
  639. host_vendor
  640. host_cpu
  641. host
  642. build_os
  643. build_vendor
  644. build_cpu
  645. build
  646. AM_BACKSLASH
  647. AM_DEFAULT_VERBOSITY
  648. AM_DEFAULT_V
  649. AM_V
  650. am__untar
  651. am__tar
  652. AMTAR
  653. am__leading_dot
  654. SET_MAKE
  655. AWK
  656. mkdir_p
  657. MKDIR_P
  658. INSTALL_STRIP_PROGRAM
  659. STRIP
  660. install_sh
  661. MAKEINFO
  662. AUTOHEADER
  663. AUTOMAKE
  664. AUTOCONF
  665. ACLOCAL
  666. VERSION
  667. PACKAGE
  668. CYGPATH_W
  669. am__isrc
  670. INSTALL_DATA
  671. INSTALL_SCRIPT
  672. INSTALL_PROGRAM
  673. target_alias
  674. host_alias
  675. build_alias
  676. LIBS
  677. ECHO_T
  678. ECHO_N
  679. ECHO_C
  680. DEFS
  681. mandir
  682. localedir
  683. libdir
  684. psdir
  685. pdfdir
  686. dvidir
  687. htmldir
  688. infodir
  689. docdir
  690. oldincludedir
  691. includedir
  692. localstatedir
  693. sharedstatedir
  694. sysconfdir
  695. datadir
  696. datarootdir
  697. libexecdir
  698. sbindir
  699. bindir
  700. program_transform_name
  701. prefix
  702. exec_prefix
  703. PACKAGE_URL
  704. PACKAGE_BUGREPORT
  705. PACKAGE_STRING
  706. PACKAGE_VERSION
  707. PACKAGE_TARNAME
  708. PACKAGE_NAME
  709. PATH_SEPARATOR
  710. SHELL
  711. am__quote'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_silent_rules
  716. enable_elf
  717. enable_elf_core
  718. enable_zlib
  719. enable_bzlib
  720. enable_xzlib
  721. enable_zstdlib
  722. enable_lzlib
  723. enable_libseccomp
  724. enable_fsect_man5
  725. enable_dependency_tracking
  726. enable_static
  727. with_pic
  728. enable_shared
  729. enable_fast_install
  730. with_aix_soname
  731. with_gnu_ld
  732. with_sysroot
  733. enable_libtool_lock
  734. enable_largefile
  735. enable_warnings
  736. '
  737. ac_precious_vars='build_alias
  738. host_alias
  739. target_alias
  740. CC
  741. CFLAGS
  742. LDFLAGS
  743. LIBS
  744. CPPFLAGS
  745. CPP
  746. LT_SYS_LIBRARY_PATH'
  747. # Initialize some variables set by options.
  748. ac_init_help=
  749. ac_init_version=false
  750. ac_unrecognized_opts=
  751. ac_unrecognized_sep=
  752. # The variables have the same names as the options, with
  753. # dashes changed to underlines.
  754. cache_file=/dev/null
  755. exec_prefix=NONE
  756. no_create=
  757. no_recursion=
  758. prefix=NONE
  759. program_prefix=NONE
  760. program_suffix=NONE
  761. program_transform_name=s,x,x,
  762. silent=
  763. site=
  764. srcdir=
  765. verbose=
  766. x_includes=NONE
  767. x_libraries=NONE
  768. # Installation directory options.
  769. # These are left unexpanded so users can "make install exec_prefix=/foo"
  770. # and all the variables that are supposed to be based on exec_prefix
  771. # by default will actually change.
  772. # Use braces instead of parens because sh, perl, etc. also accept them.
  773. # (The list follows the same order as the GNU Coding Standards.)
  774. bindir='${exec_prefix}/bin'
  775. sbindir='${exec_prefix}/sbin'
  776. libexecdir='${exec_prefix}/libexec'
  777. datarootdir='${prefix}/share'
  778. datadir='${datarootdir}'
  779. sysconfdir='${prefix}/etc'
  780. sharedstatedir='${prefix}/com'
  781. localstatedir='${prefix}/var'
  782. includedir='${prefix}/include'
  783. oldincludedir='/usr/include'
  784. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  785. infodir='${datarootdir}/info'
  786. htmldir='${docdir}'
  787. dvidir='${docdir}'
  788. pdfdir='${docdir}'
  789. psdir='${docdir}'
  790. libdir='${exec_prefix}/lib'
  791. localedir='${datarootdir}/locale'
  792. mandir='${datarootdir}/man'
  793. ac_prev=
  794. ac_dashdash=
  795. for ac_option
  796. do
  797. # If the previous option needs an argument, assign it.
  798. if test -n "$ac_prev"; then
  799. eval $ac_prev=\$ac_option
  800. ac_prev=
  801. continue
  802. fi
  803. case $ac_option in
  804. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  805. *=) ac_optarg= ;;
  806. *) ac_optarg=yes ;;
  807. esac
  808. # Accept the important Cygnus configure options, so we can diagnose typos.
  809. case $ac_dashdash$ac_option in
  810. --)
  811. ac_dashdash=yes ;;
  812. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  813. ac_prev=bindir ;;
  814. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  815. bindir=$ac_optarg ;;
  816. -build | --build | --buil | --bui | --bu)
  817. ac_prev=build_alias ;;
  818. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  819. build_alias=$ac_optarg ;;
  820. -cache-file | --cache-file | --cache-fil | --cache-fi \
  821. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  822. ac_prev=cache_file ;;
  823. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  824. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  825. cache_file=$ac_optarg ;;
  826. --config-cache | -C)
  827. cache_file=config.cache ;;
  828. -datadir | --datadir | --datadi | --datad)
  829. ac_prev=datadir ;;
  830. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  831. datadir=$ac_optarg ;;
  832. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  833. | --dataroo | --dataro | --datar)
  834. ac_prev=datarootdir ;;
  835. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  836. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  837. datarootdir=$ac_optarg ;;
  838. -disable-* | --disable-*)
  839. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  840. # Reject names that are not valid shell variable names.
  841. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  842. as_fn_error $? "invalid feature name: $ac_useropt"
  843. ac_useropt_orig=$ac_useropt
  844. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  845. case $ac_user_opts in
  846. *"
  847. "enable_$ac_useropt"
  848. "*) ;;
  849. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  850. ac_unrecognized_sep=', ';;
  851. esac
  852. eval enable_$ac_useropt=no ;;
  853. -docdir | --docdir | --docdi | --doc | --do)
  854. ac_prev=docdir ;;
  855. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  856. docdir=$ac_optarg ;;
  857. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  858. ac_prev=dvidir ;;
  859. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  860. dvidir=$ac_optarg ;;
  861. -enable-* | --enable-*)
  862. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  863. # Reject names that are not valid shell variable names.
  864. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  865. as_fn_error $? "invalid feature name: $ac_useropt"
  866. ac_useropt_orig=$ac_useropt
  867. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  868. case $ac_user_opts in
  869. *"
  870. "enable_$ac_useropt"
  871. "*) ;;
  872. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  873. ac_unrecognized_sep=', ';;
  874. esac
  875. eval enable_$ac_useropt=\$ac_optarg ;;
  876. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  877. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  878. | --exec | --exe | --ex)
  879. ac_prev=exec_prefix ;;
  880. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  881. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  882. | --exec=* | --exe=* | --ex=*)
  883. exec_prefix=$ac_optarg ;;
  884. -gas | --gas | --ga | --g)
  885. # Obsolete; use --with-gas.
  886. with_gas=yes ;;
  887. -help | --help | --hel | --he | -h)
  888. ac_init_help=long ;;
  889. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  890. ac_init_help=recursive ;;
  891. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  892. ac_init_help=short ;;
  893. -host | --host | --hos | --ho)
  894. ac_prev=host_alias ;;
  895. -host=* | --host=* | --hos=* | --ho=*)
  896. host_alias=$ac_optarg ;;
  897. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  898. ac_prev=htmldir ;;
  899. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  900. | --ht=*)
  901. htmldir=$ac_optarg ;;
  902. -includedir | --includedir | --includedi | --included | --include \
  903. | --includ | --inclu | --incl | --inc)
  904. ac_prev=includedir ;;
  905. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  906. | --includ=* | --inclu=* | --incl=* | --inc=*)
  907. includedir=$ac_optarg ;;
  908. -infodir | --infodir | --infodi | --infod | --info | --inf)
  909. ac_prev=infodir ;;
  910. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  911. infodir=$ac_optarg ;;
  912. -libdir | --libdir | --libdi | --libd)
  913. ac_prev=libdir ;;
  914. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  915. libdir=$ac_optarg ;;
  916. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  917. | --libexe | --libex | --libe)
  918. ac_prev=libexecdir ;;
  919. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  920. | --libexe=* | --libex=* | --libe=*)
  921. libexecdir=$ac_optarg ;;
  922. -localedir | --localedir | --localedi | --localed | --locale)
  923. ac_prev=localedir ;;
  924. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  925. localedir=$ac_optarg ;;
  926. -localstatedir | --localstatedir | --localstatedi | --localstated \
  927. | --localstate | --localstat | --localsta | --localst | --locals)
  928. ac_prev=localstatedir ;;
  929. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  930. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  931. localstatedir=$ac_optarg ;;
  932. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  933. ac_prev=mandir ;;
  934. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  935. mandir=$ac_optarg ;;
  936. -nfp | --nfp | --nf)
  937. # Obsolete; use --without-fp.
  938. with_fp=no ;;
  939. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  940. | --no-cr | --no-c | -n)
  941. no_create=yes ;;
  942. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  943. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  944. no_recursion=yes ;;
  945. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  946. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  947. | --oldin | --oldi | --old | --ol | --o)
  948. ac_prev=oldincludedir ;;
  949. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  950. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  951. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  952. oldincludedir=$ac_optarg ;;
  953. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  954. ac_prev=prefix ;;
  955. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  956. prefix=$ac_optarg ;;
  957. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  958. | --program-pre | --program-pr | --program-p)
  959. ac_prev=program_prefix ;;
  960. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  961. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  962. program_prefix=$ac_optarg ;;
  963. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  964. | --program-suf | --program-su | --program-s)
  965. ac_prev=program_suffix ;;
  966. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  967. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  968. program_suffix=$ac_optarg ;;
  969. -program-transform-name | --program-transform-name \
  970. | --program-transform-nam | --program-transform-na \
  971. | --program-transform-n | --program-transform- \
  972. | --program-transform | --program-transfor \
  973. | --program-transfo | --program-transf \
  974. | --program-trans | --program-tran \
  975. | --progr-tra | --program-tr | --program-t)
  976. ac_prev=program_transform_name ;;
  977. -program-transform-name=* | --program-transform-name=* \
  978. | --program-transform-nam=* | --program-transform-na=* \
  979. | --program-transform-n=* | --program-transform-=* \
  980. | --program-transform=* | --program-transfor=* \
  981. | --program-transfo=* | --program-transf=* \
  982. | --program-trans=* | --program-tran=* \
  983. | --progr-tra=* | --program-tr=* | --program-t=*)
  984. program_transform_name=$ac_optarg ;;
  985. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  986. ac_prev=pdfdir ;;
  987. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  988. pdfdir=$ac_optarg ;;
  989. -psdir | --psdir | --psdi | --psd | --ps)
  990. ac_prev=psdir ;;
  991. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  992. psdir=$ac_optarg ;;
  993. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  994. | -silent | --silent | --silen | --sile | --sil)
  995. silent=yes ;;
  996. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  997. ac_prev=sbindir ;;
  998. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  999. | --sbi=* | --sb=*)
  1000. sbindir=$ac_optarg ;;
  1001. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1002. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1003. | --sharedst | --shareds | --shared | --share | --shar \
  1004. | --sha | --sh)
  1005. ac_prev=sharedstatedir ;;
  1006. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1007. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1008. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1009. | --sha=* | --sh=*)
  1010. sharedstatedir=$ac_optarg ;;
  1011. -site | --site | --sit)
  1012. ac_prev=site ;;
  1013. -site=* | --site=* | --sit=*)
  1014. site=$ac_optarg ;;
  1015. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1016. ac_prev=srcdir ;;
  1017. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1018. srcdir=$ac_optarg ;;
  1019. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1020. | --syscon | --sysco | --sysc | --sys | --sy)
  1021. ac_prev=sysconfdir ;;
  1022. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1023. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1024. sysconfdir=$ac_optarg ;;
  1025. -target | --target | --targe | --targ | --tar | --ta | --t)
  1026. ac_prev=target_alias ;;
  1027. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1028. target_alias=$ac_optarg ;;
  1029. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1030. verbose=yes ;;
  1031. -version | --version | --versio | --versi | --vers | -V)
  1032. ac_init_version=: ;;
  1033. -with-* | --with-*)
  1034. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1037. as_fn_error $? "invalid package name: $ac_useropt"
  1038. ac_useropt_orig=$ac_useropt
  1039. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1040. case $ac_user_opts in
  1041. *"
  1042. "with_$ac_useropt"
  1043. "*) ;;
  1044. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1045. ac_unrecognized_sep=', ';;
  1046. esac
  1047. eval with_$ac_useropt=\$ac_optarg ;;
  1048. -without-* | --without-*)
  1049. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1050. # Reject names that are not valid shell variable names.
  1051. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1052. as_fn_error $? "invalid package name: $ac_useropt"
  1053. ac_useropt_orig=$ac_useropt
  1054. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1055. case $ac_user_opts in
  1056. *"
  1057. "with_$ac_useropt"
  1058. "*) ;;
  1059. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1060. ac_unrecognized_sep=', ';;
  1061. esac
  1062. eval with_$ac_useropt=no ;;
  1063. --x)
  1064. # Obsolete; use --with-x.
  1065. with_x=yes ;;
  1066. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1067. | --x-incl | --x-inc | --x-in | --x-i)
  1068. ac_prev=x_includes ;;
  1069. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1070. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1071. x_includes=$ac_optarg ;;
  1072. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1073. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1074. ac_prev=x_libraries ;;
  1075. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1076. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1077. x_libraries=$ac_optarg ;;
  1078. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1079. Try \`$0 --help' for more information"
  1080. ;;
  1081. *=*)
  1082. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1083. # Reject names that are not valid shell variable names.
  1084. case $ac_envvar in #(
  1085. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1086. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1087. esac
  1088. eval $ac_envvar=\$ac_optarg
  1089. export $ac_envvar ;;
  1090. *)
  1091. # FIXME: should be removed in autoconf 3.0.
  1092. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1093. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1094. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1095. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1096. ;;
  1097. esac
  1098. done
  1099. if test -n "$ac_prev"; then
  1100. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1101. as_fn_error $? "missing argument to $ac_option"
  1102. fi
  1103. if test -n "$ac_unrecognized_opts"; then
  1104. case $enable_option_checking in
  1105. no) ;;
  1106. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1107. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1108. esac
  1109. fi
  1110. # Check all directory arguments for consistency.
  1111. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1112. datadir sysconfdir sharedstatedir localstatedir includedir \
  1113. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1114. libdir localedir mandir
  1115. do
  1116. eval ac_val=\$$ac_var
  1117. # Remove trailing slashes.
  1118. case $ac_val in
  1119. */ )
  1120. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1121. eval $ac_var=\$ac_val;;
  1122. esac
  1123. # Be sure to have absolute directory names.
  1124. case $ac_val in
  1125. [\\/$]* | ?:[\\/]* ) continue;;
  1126. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1127. esac
  1128. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1129. done
  1130. # There might be people who depend on the old broken behavior: `$host'
  1131. # used to hold the argument of --host etc.
  1132. # FIXME: To remove some day.
  1133. build=$build_alias
  1134. host=$host_alias
  1135. target=$target_alias
  1136. # FIXME: To remove some day.
  1137. if test "x$host_alias" != x; then
  1138. if test "x$build_alias" = x; then
  1139. cross_compiling=maybe
  1140. elif test "x$build_alias" != "x$host_alias"; then
  1141. cross_compiling=yes
  1142. fi
  1143. fi
  1144. ac_tool_prefix=
  1145. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1146. test "$silent" = yes && exec 6>/dev/null
  1147. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1148. ac_ls_di=`ls -di .` &&
  1149. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1150. as_fn_error $? "working directory cannot be determined"
  1151. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1152. as_fn_error $? "pwd does not report name of working directory"
  1153. # Find the source files, if location was not specified.
  1154. if test -z "$srcdir"; then
  1155. ac_srcdir_defaulted=yes
  1156. # Try the directory containing this script, then the parent directory.
  1157. ac_confdir=`$as_dirname -- "$as_myself" ||
  1158. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1159. X"$as_myself" : 'X\(//\)[^/]' \| \
  1160. X"$as_myself" : 'X\(//\)$' \| \
  1161. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1162. $as_echo X"$as_myself" |
  1163. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\/\)[^/].*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. /^X\(\/\/\)$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\).*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. s/.*/./; q'`
  1180. srcdir=$ac_confdir
  1181. if test ! -r "$srcdir/$ac_unique_file"; then
  1182. srcdir=..
  1183. fi
  1184. else
  1185. ac_srcdir_defaulted=no
  1186. fi
  1187. if test ! -r "$srcdir/$ac_unique_file"; then
  1188. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1189. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1190. fi
  1191. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1192. ac_abs_confdir=`(
  1193. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1194. pwd)`
  1195. # When building in place, set srcdir=.
  1196. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1197. srcdir=.
  1198. fi
  1199. # Remove unnecessary trailing slashes from srcdir.
  1200. # Double slashes in file names in object file debugging info
  1201. # mess up M-x gdb in Emacs.
  1202. case $srcdir in
  1203. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1204. esac
  1205. for ac_var in $ac_precious_vars; do
  1206. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_env_${ac_var}_value=\$${ac_var}
  1208. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1209. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1210. done
  1211. #
  1212. # Report the --help message.
  1213. #
  1214. if test "$ac_init_help" = "long"; then
  1215. # Omit some internal or obsolete options to make the list less imposing.
  1216. # This message is too long to be a string in the A/UX 3.1 sh.
  1217. cat <<_ACEOF
  1218. \`configure' configures file 5.44 to adapt to many kinds of systems.
  1219. Usage: $0 [OPTION]... [VAR=VALUE]...
  1220. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1221. VAR=VALUE. See below for descriptions of some of the useful variables.
  1222. Defaults for the options are specified in brackets.
  1223. Configuration:
  1224. -h, --help display this help and exit
  1225. --help=short display options specific to this package
  1226. --help=recursive display the short help of all the included packages
  1227. -V, --version display version information and exit
  1228. -q, --quiet, --silent do not print \`checking ...' messages
  1229. --cache-file=FILE cache test results in FILE [disabled]
  1230. -C, --config-cache alias for \`--cache-file=config.cache'
  1231. -n, --no-create do not create output files
  1232. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1233. Installation directories:
  1234. --prefix=PREFIX install architecture-independent files in PREFIX
  1235. [$ac_default_prefix]
  1236. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1237. [PREFIX]
  1238. By default, \`make install' will install all the files in
  1239. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1240. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1241. for instance \`--prefix=\$HOME'.
  1242. For better control, use the options below.
  1243. Fine tuning of the installation directories:
  1244. --bindir=DIR user executables [EPREFIX/bin]
  1245. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1246. --libexecdir=DIR program executables [EPREFIX/libexec]
  1247. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1248. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1249. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1250. --libdir=DIR object code libraries [EPREFIX/lib]
  1251. --includedir=DIR C header files [PREFIX/include]
  1252. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1253. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1254. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1255. --infodir=DIR info documentation [DATAROOTDIR/info]
  1256. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1257. --mandir=DIR man documentation [DATAROOTDIR/man]
  1258. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1259. --htmldir=DIR html documentation [DOCDIR]
  1260. --dvidir=DIR dvi documentation [DOCDIR]
  1261. --pdfdir=DIR pdf documentation [DOCDIR]
  1262. --psdir=DIR ps documentation [DOCDIR]
  1263. _ACEOF
  1264. cat <<\_ACEOF
  1265. Program names:
  1266. --program-prefix=PREFIX prepend PREFIX to installed program names
  1267. --program-suffix=SUFFIX append SUFFIX to installed program names
  1268. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1269. System types:
  1270. --build=BUILD configure for building on BUILD [guessed]
  1271. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1272. _ACEOF
  1273. fi
  1274. if test -n "$ac_init_help"; then
  1275. case $ac_init_help in
  1276. short | recursive ) echo "Configuration of file 5.44:";;
  1277. esac
  1278. cat <<\_ACEOF
  1279. Optional Features:
  1280. --disable-option-checking ignore unrecognized --enable/--with options
  1281. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1282. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1283. --enable-silent-rules less verbose build output (undo: "make V=1")
  1284. --disable-silent-rules verbose build output (undo: "make V=0")
  1285. --disable-elf disable builtin ELF support
  1286. --disable-elf-core disable ELF core file support
  1287. --disable-zlib disable zlib compression support [default=auto]
  1288. --disable-bzlib disable bz2lib compression support [default=auto]
  1289. --disable-xzlib disable liblzma/xz compression support
  1290. [default=auto]
  1291. --disable-zstdlib disable zstdlib compression support [default=auto]
  1292. --disable-lzlib disable liblz (lzip) compression support
  1293. [default=auto]
  1294. --disable-libseccomp disable libseccomp sandboxing [default=auto]
  1295. --enable-fsect-man5 enable file formats in man section 5
  1296. --enable-dependency-tracking
  1297. do not reject slow dependency extractors
  1298. --disable-dependency-tracking
  1299. speeds up one-time build
  1300. --enable-static[=PKGS] build static libraries [default=no]
  1301. --enable-shared[=PKGS] build shared libraries [default=yes]
  1302. --enable-fast-install[=PKGS]
  1303. optimize for fast installation [default=yes]
  1304. --disable-libtool-lock avoid locking (might break parallel builds)
  1305. --disable-largefile omit support for large files
  1306. --disable-warnings disable compiler warnings
  1307. Optional Packages:
  1308. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1309. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1310. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1311. both]
  1312. --with-aix-soname=aix|svr4|both
  1313. shared library versioning (aka "SONAME") variant to
  1314. provide on AIX, [default=aix].
  1315. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1316. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1317. compiler's sysroot if not specified).
  1318. Some influential environment variables:
  1319. CC C compiler command
  1320. CFLAGS C compiler flags
  1321. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1322. nonstandard directory <lib dir>
  1323. LIBS libraries to pass to the linker, e.g. -l<library>
  1324. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1325. you have headers in a nonstandard directory <include dir>
  1326. CPP C preprocessor
  1327. LT_SYS_LIBRARY_PATH
  1328. User-defined run-time library search path.
  1329. Use these variables to override the choices made by `configure' or to help
  1330. it to find libraries and programs with nonstandard names/locations.
  1331. Report bugs to <christos@astron.com>.
  1332. _ACEOF
  1333. ac_status=$?
  1334. fi
  1335. if test "$ac_init_help" = "recursive"; then
  1336. # If there are subdirs, report their specific --help.
  1337. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1338. test -d "$ac_dir" ||
  1339. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1340. continue
  1341. ac_builddir=.
  1342. case "$ac_dir" in
  1343. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1344. *)
  1345. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1346. # A ".." for each directory in $ac_dir_suffix.
  1347. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1348. case $ac_top_builddir_sub in
  1349. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1350. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1351. esac ;;
  1352. esac
  1353. ac_abs_top_builddir=$ac_pwd
  1354. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1355. # for backward compatibility:
  1356. ac_top_builddir=$ac_top_build_prefix
  1357. case $srcdir in
  1358. .) # We are building in place.
  1359. ac_srcdir=.
  1360. ac_top_srcdir=$ac_top_builddir_sub
  1361. ac_abs_top_srcdir=$ac_pwd ;;
  1362. [\\/]* | ?:[\\/]* ) # Absolute name.
  1363. ac_srcdir=$srcdir$ac_dir_suffix;
  1364. ac_top_srcdir=$srcdir
  1365. ac_abs_top_srcdir=$srcdir ;;
  1366. *) # Relative name.
  1367. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1368. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1369. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1370. esac
  1371. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1372. cd "$ac_dir" || { ac_status=$?; continue; }
  1373. # Check for guested configure.
  1374. if test -f "$ac_srcdir/configure.gnu"; then
  1375. echo &&
  1376. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1377. elif test -f "$ac_srcdir/configure"; then
  1378. echo &&
  1379. $SHELL "$ac_srcdir/configure" --help=recursive
  1380. else
  1381. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1382. fi || ac_status=$?
  1383. cd "$ac_pwd" || { ac_status=$?; break; }
  1384. done
  1385. fi
  1386. test -n "$ac_init_help" && exit $ac_status
  1387. if $ac_init_version; then
  1388. cat <<\_ACEOF
  1389. file configure 5.44
  1390. generated by GNU Autoconf 2.69
  1391. Copyright (C) 2012 Free Software Foundation, Inc.
  1392. This configure script is free software; the Free Software Foundation
  1393. gives unlimited permission to copy, distribute and modify it.
  1394. _ACEOF
  1395. exit
  1396. fi
  1397. ## ------------------------ ##
  1398. ## Autoconf initialization. ##
  1399. ## ------------------------ ##
  1400. # ac_fn_c_try_compile LINENO
  1401. # --------------------------
  1402. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1403. ac_fn_c_try_compile ()
  1404. {
  1405. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1406. rm -f conftest.$ac_objext
  1407. if { { ac_try="$ac_compile"
  1408. case "(($ac_try" in
  1409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1410. *) ac_try_echo=$ac_try;;
  1411. esac
  1412. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1413. $as_echo "$ac_try_echo"; } >&5
  1414. (eval "$ac_compile") 2>conftest.err
  1415. ac_status=$?
  1416. if test -s conftest.err; then
  1417. grep -v '^ *+' conftest.err >conftest.er1
  1418. cat conftest.er1 >&5
  1419. mv -f conftest.er1 conftest.err
  1420. fi
  1421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1422. test $ac_status = 0; } && {
  1423. test -z "$ac_c_werror_flag" ||
  1424. test ! -s conftest.err
  1425. } && test -s conftest.$ac_objext; then :
  1426. ac_retval=0
  1427. else
  1428. $as_echo "$as_me: failed program was:" >&5
  1429. sed 's/^/| /' conftest.$ac_ext >&5
  1430. ac_retval=1
  1431. fi
  1432. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1433. as_fn_set_status $ac_retval
  1434. } # ac_fn_c_try_compile
  1435. # ac_fn_c_try_cpp LINENO
  1436. # ----------------------
  1437. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1438. ac_fn_c_try_cpp ()
  1439. {
  1440. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1441. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. $as_echo "$ac_try_echo"; } >&5
  1448. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } > conftest.i && {
  1457. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. }; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: failed program was:" >&5
  1463. sed 's/^/| /' conftest.$ac_ext >&5
  1464. ac_retval=1
  1465. fi
  1466. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1467. as_fn_set_status $ac_retval
  1468. } # ac_fn_c_try_cpp
  1469. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1470. # -------------------------------------------------------
  1471. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1472. # the include files in INCLUDES and setting the cache variable VAR
  1473. # accordingly.
  1474. ac_fn_c_check_header_mongrel ()
  1475. {
  1476. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1477. if eval \${$3+:} false; then :
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1479. $as_echo_n "checking for $2... " >&6; }
  1480. if eval \${$3+:} false; then :
  1481. $as_echo_n "(cached) " >&6
  1482. fi
  1483. eval ac_res=\$$3
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1485. $as_echo "$ac_res" >&6; }
  1486. else
  1487. # Is the header compilable?
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1489. $as_echo_n "checking $2 usability... " >&6; }
  1490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1491. /* end confdefs.h. */
  1492. $4
  1493. #include <$2>
  1494. _ACEOF
  1495. if ac_fn_c_try_compile "$LINENO"; then :
  1496. ac_header_compiler=yes
  1497. else
  1498. ac_header_compiler=no
  1499. fi
  1500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1502. $as_echo "$ac_header_compiler" >&6; }
  1503. # Is the header present?
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1505. $as_echo_n "checking $2 presence... " >&6; }
  1506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1507. /* end confdefs.h. */
  1508. #include <$2>
  1509. _ACEOF
  1510. if ac_fn_c_try_cpp "$LINENO"; then :
  1511. ac_header_preproc=yes
  1512. else
  1513. ac_header_preproc=no
  1514. fi
  1515. rm -f conftest.err conftest.i conftest.$ac_ext
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1517. $as_echo "$ac_header_preproc" >&6; }
  1518. # So? What about this header?
  1519. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1520. yes:no: )
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1522. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1524. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1525. ;;
  1526. no:yes:* )
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1528. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1530. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1532. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1534. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1536. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1537. ( $as_echo "## ---------------------------------- ##
  1538. ## Report this to christos@astron.com ##
  1539. ## ---------------------------------- ##"
  1540. ) | sed "s/^/$as_me: WARNING: /" >&2
  1541. ;;
  1542. esac
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if eval \${$3+:} false; then :
  1546. $as_echo_n "(cached) " >&6
  1547. else
  1548. eval "$3=\$ac_header_compiler"
  1549. fi
  1550. eval ac_res=\$$3
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1552. $as_echo "$ac_res" >&6; }
  1553. fi
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. } # ac_fn_c_check_header_mongrel
  1556. # ac_fn_c_try_run LINENO
  1557. # ----------------------
  1558. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1559. # that executables *can* be run.
  1560. ac_fn_c_try_run ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. if { { ac_try="$ac_link"
  1564. case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_link") 2>&5
  1571. ac_status=$?
  1572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1574. { { case "(($ac_try" in
  1575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1576. *) ac_try_echo=$ac_try;;
  1577. esac
  1578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1579. $as_echo "$ac_try_echo"; } >&5
  1580. (eval "$ac_try") 2>&5
  1581. ac_status=$?
  1582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1583. test $ac_status = 0; }; }; then :
  1584. ac_retval=0
  1585. else
  1586. $as_echo "$as_me: program exited with status $ac_status" >&5
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=$ac_status
  1590. fi
  1591. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1592. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593. as_fn_set_status $ac_retval
  1594. } # ac_fn_c_try_run
  1595. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1596. # -------------------------------------------------------
  1597. # Tests whether HEADER exists and can be compiled using the include files in
  1598. # INCLUDES, setting the cache variable VAR accordingly.
  1599. ac_fn_c_check_header_compile ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1603. $as_echo_n "checking for $2... " >&6; }
  1604. if eval \${$3+:} false; then :
  1605. $as_echo_n "(cached) " >&6
  1606. else
  1607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1608. /* end confdefs.h. */
  1609. $4
  1610. #include <$2>
  1611. _ACEOF
  1612. if ac_fn_c_try_compile "$LINENO"; then :
  1613. eval "$3=yes"
  1614. else
  1615. eval "$3=no"
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1618. fi
  1619. eval ac_res=\$$3
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1621. $as_echo "$ac_res" >&6; }
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. } # ac_fn_c_check_header_compile
  1624. # ac_fn_c_try_link LINENO
  1625. # -----------------------
  1626. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1627. ac_fn_c_try_link ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. rm -f conftest.$ac_objext conftest$ac_exeext
  1631. if { { ac_try="$ac_link"
  1632. case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. $as_echo "$ac_try_echo"; } >&5
  1638. (eval "$ac_link") 2>conftest.err
  1639. ac_status=$?
  1640. if test -s conftest.err; then
  1641. grep -v '^ *+' conftest.err >conftest.er1
  1642. cat conftest.er1 >&5
  1643. mv -f conftest.er1 conftest.err
  1644. fi
  1645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1646. test $ac_status = 0; } && {
  1647. test -z "$ac_c_werror_flag" ||
  1648. test ! -s conftest.err
  1649. } && test -s conftest$ac_exeext && {
  1650. test "$cross_compiling" = yes ||
  1651. test -x conftest$ac_exeext
  1652. }; then :
  1653. ac_retval=0
  1654. else
  1655. $as_echo "$as_me: failed program was:" >&5
  1656. sed 's/^/| /' conftest.$ac_ext >&5
  1657. ac_retval=1
  1658. fi
  1659. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1660. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1661. # interfere with the next link command; also delete a directory that is
  1662. # left behind by Apple's compiler. We do this before executing the actions.
  1663. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. as_fn_set_status $ac_retval
  1666. } # ac_fn_c_try_link
  1667. # ac_fn_c_check_func LINENO FUNC VAR
  1668. # ----------------------------------
  1669. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1670. ac_fn_c_check_func ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1674. $as_echo_n "checking for $2... " >&6; }
  1675. if eval \${$3+:} false; then :
  1676. $as_echo_n "(cached) " >&6
  1677. else
  1678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1679. /* end confdefs.h. */
  1680. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1681. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1682. #define $2 innocuous_$2
  1683. /* System header to define __stub macros and hopefully few prototypes,
  1684. which can conflict with char $2 (); below.
  1685. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1686. <limits.h> exists even on freestanding compilers. */
  1687. #ifdef __STDC__
  1688. # include <limits.h>
  1689. #else
  1690. # include <assert.h>
  1691. #endif
  1692. #undef $2
  1693. /* Override any GCC internal prototype to avoid an error.
  1694. Use char because int might match the return type of a GCC
  1695. builtin and then its argument prototype would still apply. */
  1696. #ifdef __cplusplus
  1697. extern "C"
  1698. #endif
  1699. char $2 ();
  1700. /* The GNU C library defines this for functions which it implements
  1701. to always fail with ENOSYS. Some functions are actually named
  1702. something starting with __ and the normal name is an alias. */
  1703. #if defined __stub_$2 || defined __stub___$2
  1704. choke me
  1705. #endif
  1706. int
  1707. main ()
  1708. {
  1709. return $2 ();
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. if ac_fn_c_try_link "$LINENO"; then :
  1715. eval "$3=yes"
  1716. else
  1717. eval "$3=no"
  1718. fi
  1719. rm -f core conftest.err conftest.$ac_objext \
  1720. conftest$ac_exeext conftest.$ac_ext
  1721. fi
  1722. eval ac_res=\$$3
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1724. $as_echo "$ac_res" >&6; }
  1725. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1726. } # ac_fn_c_check_func
  1727. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1728. # -------------------------------------------
  1729. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1730. # variable VAR accordingly.
  1731. ac_fn_c_check_type ()
  1732. {
  1733. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1735. $as_echo_n "checking for $2... " >&6; }
  1736. if eval \${$3+:} false; then :
  1737. $as_echo_n "(cached) " >&6
  1738. else
  1739. eval "$3=no"
  1740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1741. /* end confdefs.h. */
  1742. $4
  1743. int
  1744. main ()
  1745. {
  1746. if (sizeof ($2))
  1747. return 0;
  1748. ;
  1749. return 0;
  1750. }
  1751. _ACEOF
  1752. if ac_fn_c_try_compile "$LINENO"; then :
  1753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1754. /* end confdefs.h. */
  1755. $4
  1756. int
  1757. main ()
  1758. {
  1759. if (sizeof (($2)))
  1760. return 0;
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_compile "$LINENO"; then :
  1766. else
  1767. eval "$3=yes"
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. fi
  1773. eval ac_res=\$$3
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. $as_echo "$ac_res" >&6; }
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. } # ac_fn_c_check_type
  1778. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1779. # ----------------------------------------------------
  1780. # Tries to find if the field MEMBER exists in type AGGR, after including
  1781. # INCLUDES, setting cache variable VAR accordingly.
  1782. ac_fn_c_check_member ()
  1783. {
  1784. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1786. $as_echo_n "checking for $2.$3... " >&6; }
  1787. if eval \${$4+:} false; then :
  1788. $as_echo_n "(cached) " >&6
  1789. else
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h. */
  1792. $5
  1793. int
  1794. main ()
  1795. {
  1796. static $2 ac_aggr;
  1797. if (ac_aggr.$3)
  1798. return 0;
  1799. ;
  1800. return 0;
  1801. }
  1802. _ACEOF
  1803. if ac_fn_c_try_compile "$LINENO"; then :
  1804. eval "$4=yes"
  1805. else
  1806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1807. /* end confdefs.h. */
  1808. $5
  1809. int
  1810. main ()
  1811. {
  1812. static $2 ac_aggr;
  1813. if (sizeof ac_aggr.$3)
  1814. return 0;
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_c_try_compile "$LINENO"; then :
  1820. eval "$4=yes"
  1821. else
  1822. eval "$4=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1827. fi
  1828. eval ac_res=\$$4
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_c_check_member
  1833. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1834. # ---------------------------------------------
  1835. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1836. # accordingly.
  1837. ac_fn_c_check_decl ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1841. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1843. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1844. if eval \${$3+:} false; then :
  1845. $as_echo_n "(cached) " >&6
  1846. else
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. $4
  1850. int
  1851. main ()
  1852. {
  1853. #ifndef $as_decl_name
  1854. #ifdef __cplusplus
  1855. (void) $as_decl_use;
  1856. #else
  1857. (void) $as_decl_name;
  1858. #endif
  1859. #endif
  1860. ;
  1861. return 0;
  1862. }
  1863. _ACEOF
  1864. if ac_fn_c_try_compile "$LINENO"; then :
  1865. eval "$3=yes"
  1866. else
  1867. eval "$3=no"
  1868. fi
  1869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1870. fi
  1871. eval ac_res=\$$3
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. $as_echo "$ac_res" >&6; }
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. } # ac_fn_c_check_decl
  1876. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1877. # ------------------------------------
  1878. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1879. # accordingly.
  1880. ac_fn_c_find_uintX_t ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1884. $as_echo_n "checking for uint$2_t... " >&6; }
  1885. if eval \${$3+:} false; then :
  1886. $as_echo_n "(cached) " >&6
  1887. else
  1888. eval "$3=no"
  1889. # Order is important - never check a type that is potentially smaller
  1890. # than half of the expected target width.
  1891. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1892. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. /* end confdefs.h. */
  1895. $ac_includes_default
  1896. int
  1897. main ()
  1898. {
  1899. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1900. test_array [0] = 0;
  1901. return test_array [0];
  1902. ;
  1903. return 0;
  1904. }
  1905. _ACEOF
  1906. if ac_fn_c_try_compile "$LINENO"; then :
  1907. case $ac_type in #(
  1908. uint$2_t) :
  1909. eval "$3=yes" ;; #(
  1910. *) :
  1911. eval "$3=\$ac_type" ;;
  1912. esac
  1913. fi
  1914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1915. if eval test \"x\$"$3"\" = x"no"; then :
  1916. else
  1917. break
  1918. fi
  1919. done
  1920. fi
  1921. eval ac_res=\$$3
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1923. $as_echo "$ac_res" >&6; }
  1924. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1925. } # ac_fn_c_find_uintX_t
  1926. # ac_fn_c_find_intX_t LINENO BITS VAR
  1927. # -----------------------------------
  1928. # Finds a signed integer type with width BITS, setting cache variable VAR
  1929. # accordingly.
  1930. ac_fn_c_find_intX_t ()
  1931. {
  1932. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1934. $as_echo_n "checking for int$2_t... " >&6; }
  1935. if eval \${$3+:} false; then :
  1936. $as_echo_n "(cached) " >&6
  1937. else
  1938. eval "$3=no"
  1939. # Order is important - never check a type that is potentially smaller
  1940. # than half of the expected target width.
  1941. for ac_type in int$2_t 'int' 'long int' \
  1942. 'long long int' 'short int' 'signed char'; do
  1943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1944. /* end confdefs.h. */
  1945. $ac_includes_default
  1946. enum { N = $2 / 2 - 1 };
  1947. int
  1948. main ()
  1949. {
  1950. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1951. test_array [0] = 0;
  1952. return test_array [0];
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_compile "$LINENO"; then :
  1958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1959. /* end confdefs.h. */
  1960. $ac_includes_default
  1961. enum { N = $2 / 2 - 1 };
  1962. int
  1963. main ()
  1964. {
  1965. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1966. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1967. test_array [0] = 0;
  1968. return test_array [0];
  1969. ;
  1970. return 0;
  1971. }
  1972. _ACEOF
  1973. if ac_fn_c_try_compile "$LINENO"; then :
  1974. else
  1975. case $ac_type in #(
  1976. int$2_t) :
  1977. eval "$3=yes" ;; #(
  1978. *) :
  1979. eval "$3=\$ac_type" ;;
  1980. esac
  1981. fi
  1982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1985. if eval test \"x\$"$3"\" = x"no"; then :
  1986. else
  1987. break
  1988. fi
  1989. done
  1990. fi
  1991. eval ac_res=\$$3
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1993. $as_echo "$ac_res" >&6; }
  1994. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1995. } # ac_fn_c_find_intX_t
  1996. cat >config.log <<_ACEOF
  1997. This file contains any messages produced by compilers while
  1998. running configure, to aid debugging if configure makes a mistake.
  1999. It was created by file $as_me 5.44, which was
  2000. generated by GNU Autoconf 2.69. Invocation command line was
  2001. $ $0 $@
  2002. _ACEOF
  2003. exec 5>>config.log
  2004. {
  2005. cat <<_ASUNAME
  2006. ## --------- ##
  2007. ## Platform. ##
  2008. ## --------- ##
  2009. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2010. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2011. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2012. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2013. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2014. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2015. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2016. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2017. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2018. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2019. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2020. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2021. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2022. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2023. _ASUNAME
  2024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2025. for as_dir in $PATH
  2026. do
  2027. IFS=$as_save_IFS
  2028. test -z "$as_dir" && as_dir=.
  2029. $as_echo "PATH: $as_dir"
  2030. done
  2031. IFS=$as_save_IFS
  2032. } >&5
  2033. cat >&5 <<_ACEOF
  2034. ## ----------- ##
  2035. ## Core tests. ##
  2036. ## ----------- ##
  2037. _ACEOF
  2038. # Keep a trace of the command line.
  2039. # Strip out --no-create and --no-recursion so they do not pile up.
  2040. # Strip out --silent because we don't want to record it for future runs.
  2041. # Also quote any args containing shell meta-characters.
  2042. # Make two passes to allow for proper duplicate-argument suppression.
  2043. ac_configure_args=
  2044. ac_configure_args0=
  2045. ac_configure_args1=
  2046. ac_must_keep_next=false
  2047. for ac_pass in 1 2
  2048. do
  2049. for ac_arg
  2050. do
  2051. case $ac_arg in
  2052. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2053. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2054. | -silent | --silent | --silen | --sile | --sil)
  2055. continue ;;
  2056. *\'*)
  2057. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2058. esac
  2059. case $ac_pass in
  2060. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2061. 2)
  2062. as_fn_append ac_configure_args1 " '$ac_arg'"
  2063. if test $ac_must_keep_next = true; then
  2064. ac_must_keep_next=false # Got value, back to normal.
  2065. else
  2066. case $ac_arg in
  2067. *=* | --config-cache | -C | -disable-* | --disable-* \
  2068. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2069. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2070. | -with-* | --with-* | -without-* | --without-* | --x)
  2071. case "$ac_configure_args0 " in
  2072. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2073. esac
  2074. ;;
  2075. -* ) ac_must_keep_next=true ;;
  2076. esac
  2077. fi
  2078. as_fn_append ac_configure_args " '$ac_arg'"
  2079. ;;
  2080. esac
  2081. done
  2082. done
  2083. { ac_configure_args0=; unset ac_configure_args0;}
  2084. { ac_configure_args1=; unset ac_configure_args1;}
  2085. # When interrupted or exit'd, cleanup temporary files, and complete
  2086. # config.log. We remove comments because anyway the quotes in there
  2087. # would cause problems or look ugly.
  2088. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2089. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2090. trap 'exit_status=$?
  2091. # Save into config.log some information that might help in debugging.
  2092. {
  2093. echo
  2094. $as_echo "## ---------------- ##
  2095. ## Cache variables. ##
  2096. ## ---------------- ##"
  2097. echo
  2098. # The following way of writing the cache mishandles newlines in values,
  2099. (
  2100. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2101. eval ac_val=\$$ac_var
  2102. case $ac_val in #(
  2103. *${as_nl}*)
  2104. case $ac_var in #(
  2105. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2106. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2107. esac
  2108. case $ac_var in #(
  2109. _ | IFS | as_nl) ;; #(
  2110. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2111. *) { eval $ac_var=; unset $ac_var;} ;;
  2112. esac ;;
  2113. esac
  2114. done
  2115. (set) 2>&1 |
  2116. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2117. *${as_nl}ac_space=\ *)
  2118. sed -n \
  2119. "s/'\''/'\''\\\\'\'''\''/g;
  2120. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2121. ;; #(
  2122. *)
  2123. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2124. ;;
  2125. esac |
  2126. sort
  2127. )
  2128. echo
  2129. $as_echo "## ----------------- ##
  2130. ## Output variables. ##
  2131. ## ----------------- ##"
  2132. echo
  2133. for ac_var in $ac_subst_vars
  2134. do
  2135. eval ac_val=\$$ac_var
  2136. case $ac_val in
  2137. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2138. esac
  2139. $as_echo "$ac_var='\''$ac_val'\''"
  2140. done | sort
  2141. echo
  2142. if test -n "$ac_subst_files"; then
  2143. $as_echo "## ------------------- ##
  2144. ## File substitutions. ##
  2145. ## ------------------- ##"
  2146. echo
  2147. for ac_var in $ac_subst_files
  2148. do
  2149. eval ac_val=\$$ac_var
  2150. case $ac_val in
  2151. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2152. esac
  2153. $as_echo "$ac_var='\''$ac_val'\''"
  2154. done | sort
  2155. echo
  2156. fi
  2157. if test -s confdefs.h; then
  2158. $as_echo "## ----------- ##
  2159. ## confdefs.h. ##
  2160. ## ----------- ##"
  2161. echo
  2162. cat confdefs.h
  2163. echo
  2164. fi
  2165. test "$ac_signal" != 0 &&
  2166. $as_echo "$as_me: caught signal $ac_signal"
  2167. $as_echo "$as_me: exit $exit_status"
  2168. } >&5
  2169. rm -f core *.core core.conftest.* &&
  2170. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2171. exit $exit_status
  2172. ' 0
  2173. for ac_signal in 1 2 13 15; do
  2174. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2175. done
  2176. ac_signal=0
  2177. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2178. rm -f -r conftest* confdefs.h
  2179. $as_echo "/* confdefs.h */" > confdefs.h
  2180. # Predefined preprocessor variables.
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_NAME "$PACKAGE_NAME"
  2183. _ACEOF
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2186. _ACEOF
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2189. _ACEOF
  2190. cat >>confdefs.h <<_ACEOF
  2191. #define PACKAGE_STRING "$PACKAGE_STRING"
  2192. _ACEOF
  2193. cat >>confdefs.h <<_ACEOF
  2194. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2195. _ACEOF
  2196. cat >>confdefs.h <<_ACEOF
  2197. #define PACKAGE_URL "$PACKAGE_URL"
  2198. _ACEOF
  2199. # Let the site file select an alternate cache file if it wants to.
  2200. # Prefer an explicitly selected file to automatically selected ones.
  2201. ac_site_file1=NONE
  2202. ac_site_file2=NONE
  2203. if test -n "$CONFIG_SITE"; then
  2204. # We do not want a PATH search for config.site.
  2205. case $CONFIG_SITE in #((
  2206. -*) ac_site_file1=./$CONFIG_SITE;;
  2207. */*) ac_site_file1=$CONFIG_SITE;;
  2208. *) ac_site_file1=./$CONFIG_SITE;;
  2209. esac
  2210. elif test "x$prefix" != xNONE; then
  2211. ac_site_file1=$prefix/share/config.site
  2212. ac_site_file2=$prefix/etc/config.site
  2213. else
  2214. ac_site_file1=$ac_default_prefix/share/config.site
  2215. ac_site_file2=$ac_default_prefix/etc/config.site
  2216. fi
  2217. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2218. do
  2219. test "x$ac_site_file" = xNONE && continue
  2220. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2222. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2223. sed 's/^/| /' "$ac_site_file" >&5
  2224. . "$ac_site_file" \
  2225. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2226. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2227. as_fn_error $? "failed to load site script $ac_site_file
  2228. See \`config.log' for more details" "$LINENO" 5; }
  2229. fi
  2230. done
  2231. if test -r "$cache_file"; then
  2232. # Some versions of bash will fail to source /dev/null (special files
  2233. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2234. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2236. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2237. case $cache_file in
  2238. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2239. *) . "./$cache_file";;
  2240. esac
  2241. fi
  2242. else
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2244. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2245. >$cache_file
  2246. fi
  2247. as_fn_append ac_header_list " stdlib.h"
  2248. as_fn_append ac_header_list " unistd.h"
  2249. as_fn_append ac_header_list " sys/param.h"
  2250. # Check that the precious variables saved in the cache have kept the same
  2251. # value.
  2252. ac_cache_corrupted=false
  2253. for ac_var in $ac_precious_vars; do
  2254. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2255. eval ac_new_set=\$ac_env_${ac_var}_set
  2256. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2257. eval ac_new_val=\$ac_env_${ac_var}_value
  2258. case $ac_old_set,$ac_new_set in
  2259. set,)
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2261. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2262. ac_cache_corrupted=: ;;
  2263. ,set)
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2265. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2266. ac_cache_corrupted=: ;;
  2267. ,);;
  2268. *)
  2269. if test "x$ac_old_val" != "x$ac_new_val"; then
  2270. # differences in whitespace do not lead to failure.
  2271. ac_old_val_w=`echo x $ac_old_val`
  2272. ac_new_val_w=`echo x $ac_new_val`
  2273. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2275. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2276. ac_cache_corrupted=:
  2277. else
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2279. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2280. eval $ac_var=\$ac_old_val
  2281. fi
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2283. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2285. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2286. fi;;
  2287. esac
  2288. # Pass precious variables to config.status.
  2289. if test "$ac_new_set" = set; then
  2290. case $ac_new_val in
  2291. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2292. *) ac_arg=$ac_var=$ac_new_val ;;
  2293. esac
  2294. case " $ac_configure_args " in
  2295. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2296. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2297. esac
  2298. fi
  2299. done
  2300. if $ac_cache_corrupted; then
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2302. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2304. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2305. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2306. fi
  2307. ## -------------------- ##
  2308. ## Main body of script. ##
  2309. ## -------------------- ##
  2310. ac_ext=c
  2311. ac_cpp='$CPP $CPPFLAGS'
  2312. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2313. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2315. am__api_version='1.16'
  2316. ac_aux_dir=
  2317. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2318. if test -f "$ac_dir/install-sh"; then
  2319. ac_aux_dir=$ac_dir
  2320. ac_install_sh="$ac_aux_dir/install-sh -c"
  2321. break
  2322. elif test -f "$ac_dir/install.sh"; then
  2323. ac_aux_dir=$ac_dir
  2324. ac_install_sh="$ac_aux_dir/install.sh -c"
  2325. break
  2326. elif test -f "$ac_dir/shtool"; then
  2327. ac_aux_dir=$ac_dir
  2328. ac_install_sh="$ac_aux_dir/shtool install -c"
  2329. break
  2330. fi
  2331. done
  2332. if test -z "$ac_aux_dir"; then
  2333. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2334. fi
  2335. # These three variables are undocumented and unsupported,
  2336. # and are intended to be withdrawn in a future Autoconf release.
  2337. # They can cause serious problems if a builder's source tree is in a directory
  2338. # whose full name contains unusual characters.
  2339. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2340. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2341. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2342. # Find a good install program. We prefer a C program (faster),
  2343. # so one script is as good as another. But avoid the broken or
  2344. # incompatible versions:
  2345. # SysV /etc/install, /usr/sbin/install
  2346. # SunOS /usr/etc/install
  2347. # IRIX /sbin/install
  2348. # AIX /bin/install
  2349. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2350. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2351. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2352. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2353. # OS/2's system install, which has a completely different semantic
  2354. # ./install, which can be erroneously created by make from ./install.sh.
  2355. # Reject install programs that cannot install multiple files.
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2357. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2358. if test -z "$INSTALL"; then
  2359. if ${ac_cv_path_install+:} false; then :
  2360. $as_echo_n "(cached) " >&6
  2361. else
  2362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2363. for as_dir in $PATH
  2364. do
  2365. IFS=$as_save_IFS
  2366. test -z "$as_dir" && as_dir=.
  2367. # Account for people who put trailing slashes in PATH elements.
  2368. case $as_dir/ in #((
  2369. ./ | .// | /[cC]/* | \
  2370. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2371. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2372. /usr/ucb/* ) ;;
  2373. *)
  2374. # OSF1 and SCO ODT 3.0 have their own names for install.
  2375. # Don't use installbsd from OSF since it installs stuff as root
  2376. # by default.
  2377. for ac_prog in ginstall scoinst install; do
  2378. for ac_exec_ext in '' $ac_executable_extensions; do
  2379. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2380. if test $ac_prog = install &&
  2381. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2382. # AIX install. It has an incompatible calling convention.
  2383. :
  2384. elif test $ac_prog = install &&
  2385. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2386. # program-specific install script used by HP pwplus--don't use.
  2387. :
  2388. else
  2389. rm -rf conftest.one conftest.two conftest.dir
  2390. echo one > conftest.one
  2391. echo two > conftest.two
  2392. mkdir conftest.dir
  2393. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2394. test -s conftest.one && test -s conftest.two &&
  2395. test -s conftest.dir/conftest.one &&
  2396. test -s conftest.dir/conftest.two
  2397. then
  2398. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2399. break 3
  2400. fi
  2401. fi
  2402. fi
  2403. done
  2404. done
  2405. ;;
  2406. esac
  2407. done
  2408. IFS=$as_save_IFS
  2409. rm -rf conftest.one conftest.two conftest.dir
  2410. fi
  2411. if test "${ac_cv_path_install+set}" = set; then
  2412. INSTALL=$ac_cv_path_install
  2413. else
  2414. # As a last resort, use the slow shell script. Don't cache a
  2415. # value for INSTALL within a source directory, because that will
  2416. # break other packages using the cache if that directory is
  2417. # removed, or if the value is a relative name.
  2418. INSTALL=$ac_install_sh
  2419. fi
  2420. fi
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2422. $as_echo "$INSTALL" >&6; }
  2423. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2424. # It thinks the first close brace ends the variable substitution.
  2425. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2426. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2427. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2429. $as_echo_n "checking whether build environment is sane... " >&6; }
  2430. # Reject unsafe characters in $srcdir or the absolute working directory
  2431. # name. Accept space and tab only in the latter.
  2432. am_lf='
  2433. '
  2434. case `pwd` in
  2435. *[\\\"\#\$\&\'\`$am_lf]*)
  2436. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2437. esac
  2438. case $srcdir in
  2439. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2440. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2441. esac
  2442. # Do 'set' in a subshell so we don't clobber the current shell's
  2443. # arguments. Must try -L first in case configure is actually a
  2444. # symlink; some systems play weird games with the mod time of symlinks
  2445. # (eg FreeBSD returns the mod time of the symlink's containing
  2446. # directory).
  2447. if (
  2448. am_has_slept=no
  2449. for am_try in 1 2; do
  2450. echo "timestamp, slept: $am_has_slept" > conftest.file
  2451. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2452. if test "$*" = "X"; then
  2453. # -L didn't work.
  2454. set X `ls -t "$srcdir/configure" conftest.file`
  2455. fi
  2456. if test "$*" != "X $srcdir/configure conftest.file" \
  2457. && test "$*" != "X conftest.file $srcdir/configure"; then
  2458. # If neither matched, then we have a broken ls. This can happen
  2459. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2460. # broken ls alias from the environment. This has actually
  2461. # happened. Such a system could not be considered "sane".
  2462. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2463. alias in your environment" "$LINENO" 5
  2464. fi
  2465. if test "$2" = conftest.file || test $am_try -eq 2; then
  2466. break
  2467. fi
  2468. # Just in case.
  2469. sleep 1
  2470. am_has_slept=yes
  2471. done
  2472. test "$2" = conftest.file
  2473. )
  2474. then
  2475. # Ok.
  2476. :
  2477. else
  2478. as_fn_error $? "newly created file is older than distributed files!
  2479. Check your system clock" "$LINENO" 5
  2480. fi
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2482. $as_echo "yes" >&6; }
  2483. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2484. # generated files are strictly newer.
  2485. am_sleep_pid=
  2486. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2487. ( sleep 1 ) &
  2488. am_sleep_pid=$!
  2489. fi
  2490. rm -f conftest.file
  2491. test "$program_prefix" != NONE &&
  2492. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2493. # Use a double $ so make ignores it.
  2494. test "$program_suffix" != NONE &&
  2495. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2496. # Double any \ or $.
  2497. # By default was `s,x,x', remove it if useless.
  2498. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2499. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2500. # Expand $ac_aux_dir to an absolute path.
  2501. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2502. if test x"${MISSING+set}" != xset; then
  2503. case $am_aux_dir in
  2504. *\ * | *\ *)
  2505. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2506. *)
  2507. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2508. esac
  2509. fi
  2510. # Use eval to expand $SHELL
  2511. if eval "$MISSING --is-lightweight"; then
  2512. am_missing_run="$MISSING "
  2513. else
  2514. am_missing_run=
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2516. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2517. fi
  2518. if test x"${install_sh+set}" != xset; then
  2519. case $am_aux_dir in
  2520. *\ * | *\ *)
  2521. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2522. *)
  2523. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2524. esac
  2525. fi
  2526. # Installed binaries are usually stripped using 'strip' when the user
  2527. # run "make install-strip". However 'strip' might not be the right
  2528. # tool to use in cross-compilation environments, therefore Automake
  2529. # will honor the 'STRIP' environment variable to overrule this program.
  2530. if test "$cross_compiling" != no; then
  2531. if test -n "$ac_tool_prefix"; then
  2532. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2533. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2535. $as_echo_n "checking for $ac_word... " >&6; }
  2536. if ${ac_cv_prog_STRIP+:} false; then :
  2537. $as_echo_n "(cached) " >&6
  2538. else
  2539. if test -n "$STRIP"; then
  2540. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2541. else
  2542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2543. for as_dir in $PATH
  2544. do
  2545. IFS=$as_save_IFS
  2546. test -z "$as_dir" && as_dir=.
  2547. for ac_exec_ext in '' $ac_executable_extensions; do
  2548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2549. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2551. break 2
  2552. fi
  2553. done
  2554. done
  2555. IFS=$as_save_IFS
  2556. fi
  2557. fi
  2558. STRIP=$ac_cv_prog_STRIP
  2559. if test -n "$STRIP"; then
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2561. $as_echo "$STRIP" >&6; }
  2562. else
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2564. $as_echo "no" >&6; }
  2565. fi
  2566. fi
  2567. if test -z "$ac_cv_prog_STRIP"; then
  2568. ac_ct_STRIP=$STRIP
  2569. # Extract the first word of "strip", so it can be a program name with args.
  2570. set dummy strip; ac_word=$2
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2572. $as_echo_n "checking for $ac_word... " >&6; }
  2573. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2574. $as_echo_n "(cached) " >&6
  2575. else
  2576. if test -n "$ac_ct_STRIP"; then
  2577. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2578. else
  2579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2580. for as_dir in $PATH
  2581. do
  2582. IFS=$as_save_IFS
  2583. test -z "$as_dir" && as_dir=.
  2584. for ac_exec_ext in '' $ac_executable_extensions; do
  2585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2586. ac_cv_prog_ac_ct_STRIP="strip"
  2587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. IFS=$as_save_IFS
  2593. fi
  2594. fi
  2595. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2596. if test -n "$ac_ct_STRIP"; then
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2598. $as_echo "$ac_ct_STRIP" >&6; }
  2599. else
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2601. $as_echo "no" >&6; }
  2602. fi
  2603. if test "x$ac_ct_STRIP" = x; then
  2604. STRIP=":"
  2605. else
  2606. case $cross_compiling:$ac_tool_warned in
  2607. yes:)
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2610. ac_tool_warned=yes ;;
  2611. esac
  2612. STRIP=$ac_ct_STRIP
  2613. fi
  2614. else
  2615. STRIP="$ac_cv_prog_STRIP"
  2616. fi
  2617. fi
  2618. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2620. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2621. if test -z "$MKDIR_P"; then
  2622. if ${ac_cv_path_mkdir+:} false; then :
  2623. $as_echo_n "(cached) " >&6
  2624. else
  2625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2626. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2627. do
  2628. IFS=$as_save_IFS
  2629. test -z "$as_dir" && as_dir=.
  2630. for ac_prog in mkdir gmkdir; do
  2631. for ac_exec_ext in '' $ac_executable_extensions; do
  2632. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2633. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2634. 'mkdir (GNU coreutils) '* | \
  2635. 'mkdir (coreutils) '* | \
  2636. 'mkdir (fileutils) '4.1*)
  2637. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2638. break 3;;
  2639. esac
  2640. done
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. test -d ./--version && rmdir ./--version
  2646. if test "${ac_cv_path_mkdir+set}" = set; then
  2647. MKDIR_P="$ac_cv_path_mkdir -p"
  2648. else
  2649. # As a last resort, use the slow shell script. Don't cache a
  2650. # value for MKDIR_P within a source directory, because that will
  2651. # break other packages using the cache if that directory is
  2652. # removed, or if the value is a relative name.
  2653. MKDIR_P="$ac_install_sh -d"
  2654. fi
  2655. fi
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2657. $as_echo "$MKDIR_P" >&6; }
  2658. for ac_prog in gawk mawk nawk awk
  2659. do
  2660. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2661. set dummy $ac_prog; ac_word=$2
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2663. $as_echo_n "checking for $ac_word... " >&6; }
  2664. if ${ac_cv_prog_AWK+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. if test -n "$AWK"; then
  2668. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2669. else
  2670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2671. for as_dir in $PATH
  2672. do
  2673. IFS=$as_save_IFS
  2674. test -z "$as_dir" && as_dir=.
  2675. for ac_exec_ext in '' $ac_executable_extensions; do
  2676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2677. ac_cv_prog_AWK="$ac_prog"
  2678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2679. break 2
  2680. fi
  2681. done
  2682. done
  2683. IFS=$as_save_IFS
  2684. fi
  2685. fi
  2686. AWK=$ac_cv_prog_AWK
  2687. if test -n "$AWK"; then
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2689. $as_echo "$AWK" >&6; }
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. fi
  2694. test -n "$AWK" && break
  2695. done
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2697. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2698. set x ${MAKE-make}
  2699. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2700. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2701. $as_echo_n "(cached) " >&6
  2702. else
  2703. cat >conftest.make <<\_ACEOF
  2704. SHELL = /bin/sh
  2705. all:
  2706. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2707. _ACEOF
  2708. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2709. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2710. *@@@%%%=?*=@@@%%%*)
  2711. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2712. *)
  2713. eval ac_cv_prog_make_${ac_make}_set=no;;
  2714. esac
  2715. rm -f conftest.make
  2716. fi
  2717. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2719. $as_echo "yes" >&6; }
  2720. SET_MAKE=
  2721. else
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2723. $as_echo "no" >&6; }
  2724. SET_MAKE="MAKE=${MAKE-make}"
  2725. fi
  2726. rm -rf .tst 2>/dev/null
  2727. mkdir .tst 2>/dev/null
  2728. if test -d .tst; then
  2729. am__leading_dot=.
  2730. else
  2731. am__leading_dot=_
  2732. fi
  2733. rmdir .tst 2>/dev/null
  2734. # Check whether --enable-silent-rules was given.
  2735. if test "${enable_silent_rules+set}" = set; then :
  2736. enableval=$enable_silent_rules;
  2737. fi
  2738. case $enable_silent_rules in # (((
  2739. yes) AM_DEFAULT_VERBOSITY=0;;
  2740. no) AM_DEFAULT_VERBOSITY=1;;
  2741. *) AM_DEFAULT_VERBOSITY=1;;
  2742. esac
  2743. am_make=${MAKE-make}
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2745. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2746. if ${am_cv_make_support_nested_variables+:} false; then :
  2747. $as_echo_n "(cached) " >&6
  2748. else
  2749. if $as_echo 'TRUE=$(BAR$(V))
  2750. BAR0=false
  2751. BAR1=true
  2752. V=1
  2753. am__doit:
  2754. @$(TRUE)
  2755. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2756. am_cv_make_support_nested_variables=yes
  2757. else
  2758. am_cv_make_support_nested_variables=no
  2759. fi
  2760. fi
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2762. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2763. if test $am_cv_make_support_nested_variables = yes; then
  2764. AM_V='$(V)'
  2765. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2766. else
  2767. AM_V=$AM_DEFAULT_VERBOSITY
  2768. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2769. fi
  2770. AM_BACKSLASH='\'
  2771. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2772. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2773. # is not polluted with repeated "-I."
  2774. am__isrc=' -I$(srcdir)'
  2775. # test to see if srcdir already configured
  2776. if test -f $srcdir/config.status; then
  2777. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2778. fi
  2779. fi
  2780. # test whether we have cygpath
  2781. if test -z "$CYGPATH_W"; then
  2782. if (cygpath --version) >/dev/null 2>/dev/null; then
  2783. CYGPATH_W='cygpath -w'
  2784. else
  2785. CYGPATH_W=echo
  2786. fi
  2787. fi
  2788. # Define the identity of the package.
  2789. PACKAGE='file'
  2790. VERSION='5.44'
  2791. cat >>confdefs.h <<_ACEOF
  2792. #define PACKAGE "$PACKAGE"
  2793. _ACEOF
  2794. cat >>confdefs.h <<_ACEOF
  2795. #define VERSION "$VERSION"
  2796. _ACEOF
  2797. # Some tools Automake needs.
  2798. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2799. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2800. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2801. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2802. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2803. # For better backward compatibility. To be removed once Automake 1.9.x
  2804. # dies out for good. For more background, see:
  2805. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2806. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2807. mkdir_p='$(MKDIR_P)'
  2808. # We need awk for the "check" target (and possibly the TAP driver). The
  2809. # system "awk" is bad on some platforms.
  2810. # Always define AMTAR for backward compatibility. Yes, it's still used
  2811. # in the wild :-( We should find a proper way to deprecate it ...
  2812. AMTAR='$${TAR-tar}'
  2813. # We'll loop over all known methods to create a tar archive until one works.
  2814. _am_tools='gnutar pax cpio none'
  2815. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2816. # POSIX will say in a future version that running "rm -f" with no argument
  2817. # is OK; and we want to be able to make that assumption in our Makefile
  2818. # recipes. So use an aggressive probe to check that the usage we want is
  2819. # actually supported "in the wild" to an acceptable degree.
  2820. # See automake bug#10828.
  2821. # To make any issue more visible, cause the running configure to be aborted
  2822. # by default if the 'rm' program in use doesn't match our expectations; the
  2823. # user can still override this though.
  2824. if rm -f && rm -fr && rm -rf; then : OK; else
  2825. cat >&2 <<'END'
  2826. Oops!
  2827. Your 'rm' program seems unable to run without file operands specified
  2828. on the command line, even when the '-f' option is present. This is contrary
  2829. to the behaviour of most rm programs out there, and not conforming with
  2830. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2831. Please tell bug-automake@gnu.org about your system, including the value
  2832. of your $PATH and any error possibly output before this message. This
  2833. can help us improve future automake versions.
  2834. END
  2835. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2836. echo 'Configuration will proceed anyway, since you have set the' >&2
  2837. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2838. echo >&2
  2839. else
  2840. cat >&2 <<'END'
  2841. Aborting the configuration process, to ensure you take notice of the issue.
  2842. You can download and install GNU coreutils to get an 'rm' implementation
  2843. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2844. If you want to complete the configuration process using your problematic
  2845. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2846. to "yes", and re-run configure.
  2847. END
  2848. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2849. fi
  2850. fi
  2851. # Check whether --enable-silent-rules was given.
  2852. if test "${enable_silent_rules+set}" = set; then :
  2853. enableval=$enable_silent_rules;
  2854. fi
  2855. case $enable_silent_rules in # (((
  2856. yes) AM_DEFAULT_VERBOSITY=0;;
  2857. no) AM_DEFAULT_VERBOSITY=1;;
  2858. *) AM_DEFAULT_VERBOSITY=0;;
  2859. esac
  2860. am_make=${MAKE-make}
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2862. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2863. if ${am_cv_make_support_nested_variables+:} false; then :
  2864. $as_echo_n "(cached) " >&6
  2865. else
  2866. if $as_echo 'TRUE=$(BAR$(V))
  2867. BAR0=false
  2868. BAR1=true
  2869. V=1
  2870. am__doit:
  2871. @$(TRUE)
  2872. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2873. am_cv_make_support_nested_variables=yes
  2874. else
  2875. am_cv_make_support_nested_variables=no
  2876. fi
  2877. fi
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2879. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2880. if test $am_cv_make_support_nested_variables = yes; then
  2881. AM_V='$(V)'
  2882. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2883. else
  2884. AM_V=$AM_DEFAULT_VERBOSITY
  2885. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2886. fi
  2887. AM_BACKSLASH='\'
  2888. ac_config_headers="$ac_config_headers config.h"
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2890. $as_echo_n "checking for builtin ELF support... " >&6; }
  2891. # Check whether --enable-elf was given.
  2892. if test "${enable_elf+set}" = set; then :
  2893. enableval=$enable_elf; if test "${enableval}" = yes; then
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2895. $as_echo "yes" >&6; }
  2896. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. else
  2902. # enable by default
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2904. $as_echo "yes" >&6; }
  2905. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2906. fi
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2908. $as_echo_n "checking for ELF core file support... " >&6; }
  2909. # Check whether --enable-elf-core was given.
  2910. if test "${enable_elf_core+set}" = set; then :
  2911. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2913. $as_echo "yes" >&6; }
  2914. $as_echo "#define ELFCORE 1" >>confdefs.h
  2915. else
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2917. $as_echo "no" >&6; }
  2918. fi
  2919. else
  2920. # enable by default
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2922. $as_echo "yes" >&6; }
  2923. $as_echo "#define ELFCORE 1" >>confdefs.h
  2924. fi
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  2926. $as_echo_n "checking for zlib support... " >&6; }
  2927. # Check whether --enable-zlib was given.
  2928. if test "${enable_zlib+set}" = set; then :
  2929. enableval=$enable_zlib;
  2930. fi
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  2932. $as_echo "$enable_zlib" >&6; }
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
  2934. $as_echo_n "checking for bzlib support... " >&6; }
  2935. # Check whether --enable-bzlib was given.
  2936. if test "${enable_bzlib+set}" = set; then :
  2937. enableval=$enable_bzlib;
  2938. fi
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
  2940. $as_echo "$enable_bzlib" >&6; }
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
  2942. $as_echo_n "checking for xzlib support... " >&6; }
  2943. # Check whether --enable-xzlib was given.
  2944. if test "${enable_xzlib+set}" = set; then :
  2945. enableval=$enable_xzlib;
  2946. fi
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
  2948. $as_echo "$enable_xzlib" >&6; }
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5
  2950. $as_echo_n "checking for zstdlib support... " >&6; }
  2951. # Check whether --enable-zstdlib was given.
  2952. if test "${enable_zstdlib+set}" = set; then :
  2953. enableval=$enable_zstdlib;
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5
  2956. $as_echo "$enable_zstdlib" >&6; }
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5
  2958. $as_echo_n "checking for lzlib support... " >&6; }
  2959. # Check whether --enable-lzlib was given.
  2960. if test "${enable_lzlib+set}" = set; then :
  2961. enableval=$enable_lzlib;
  2962. fi
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5
  2964. $as_echo "$enable_lzlib" >&6; }
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  2966. $as_echo_n "checking for libseccomp support... " >&6; }
  2967. # Check whether --enable-libseccomp was given.
  2968. if test "${enable_libseccomp+set}" = set; then :
  2969. enableval=$enable_libseccomp;
  2970. fi
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  2972. $as_echo "$enable_libseccomp" >&6; }
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2974. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2975. # Check whether --enable-fsect-man5 was given.
  2976. if test "${enable_fsect_man5+set}" = set; then :
  2977. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2979. $as_echo "yes" >&6; }
  2980. fsect=5
  2981. else
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2983. $as_echo "no" >&6; }
  2984. fsect=4
  2985. fi
  2986. else
  2987. # disable by default
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2989. $as_echo "no" >&6; }
  2990. fsect=4
  2991. fi
  2992. # Make sure we can run config.sub.
  2993. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2994. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2996. $as_echo_n "checking build system type... " >&6; }
  2997. if ${ac_cv_build+:} false; then :
  2998. $as_echo_n "(cached) " >&6
  2999. else
  3000. ac_build_alias=$build_alias
  3001. test "x$ac_build_alias" = x &&
  3002. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3003. test "x$ac_build_alias" = x &&
  3004. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3005. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3006. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3007. fi
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3009. $as_echo "$ac_cv_build" >&6; }
  3010. case $ac_cv_build in
  3011. *-*-*) ;;
  3012. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3013. esac
  3014. build=$ac_cv_build
  3015. ac_save_IFS=$IFS; IFS='-'
  3016. set x $ac_cv_build
  3017. shift
  3018. build_cpu=$1
  3019. build_vendor=$2
  3020. shift; shift
  3021. # Remember, the first character of IFS is used to create $*,
  3022. # except with old shells:
  3023. build_os=$*
  3024. IFS=$ac_save_IFS
  3025. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3027. $as_echo_n "checking host system type... " >&6; }
  3028. if ${ac_cv_host+:} false; then :
  3029. $as_echo_n "(cached) " >&6
  3030. else
  3031. if test "x$host_alias" = x; then
  3032. ac_cv_host=$ac_cv_build
  3033. else
  3034. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3035. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3036. fi
  3037. fi
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3039. $as_echo "$ac_cv_host" >&6; }
  3040. case $ac_cv_host in
  3041. *-*-*) ;;
  3042. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3043. esac
  3044. host=$ac_cv_host
  3045. ac_save_IFS=$IFS; IFS='-'
  3046. set x $ac_cv_host
  3047. shift
  3048. host_cpu=$1
  3049. host_vendor=$2
  3050. shift; shift
  3051. # Remember, the first character of IFS is used to create $*,
  3052. # except with old shells:
  3053. host_os=$*
  3054. IFS=$ac_save_IFS
  3055. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3056. case "$host_os" in
  3057. mingw32*)
  3058. MINGW=1
  3059. ;;
  3060. *)
  3061. MINGW=0
  3062. ;;
  3063. esac
  3064. if test "$MINGW" = 1; then
  3065. MINGW_TRUE=
  3066. MINGW_FALSE='#'
  3067. else
  3068. MINGW_TRUE='#'
  3069. MINGW_FALSE=
  3070. fi
  3071. pkgdatadir='$(datadir)/misc'
  3072. if test x$fsect = x5; then
  3073. FSECT5_TRUE=
  3074. FSECT5_FALSE='#'
  3075. else
  3076. FSECT5_TRUE='#'
  3077. FSECT5_FALSE=
  3078. fi
  3079. ac_ext=c
  3080. ac_cpp='$CPP $CPPFLAGS'
  3081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3084. if test -n "$ac_tool_prefix"; then
  3085. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3086. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3088. $as_echo_n "checking for $ac_word... " >&6; }
  3089. if ${ac_cv_prog_CC+:} false; then :
  3090. $as_echo_n "(cached) " >&6
  3091. else
  3092. if test -n "$CC"; then
  3093. ac_cv_prog_CC="$CC" # Let the user override the test.
  3094. else
  3095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3096. for as_dir in $PATH
  3097. do
  3098. IFS=$as_save_IFS
  3099. test -z "$as_dir" && as_dir=.
  3100. for ac_exec_ext in '' $ac_executable_extensions; do
  3101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3102. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3104. break 2
  3105. fi
  3106. done
  3107. done
  3108. IFS=$as_save_IFS
  3109. fi
  3110. fi
  3111. CC=$ac_cv_prog_CC
  3112. if test -n "$CC"; then
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3114. $as_echo "$CC" >&6; }
  3115. else
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3117. $as_echo "no" >&6; }
  3118. fi
  3119. fi
  3120. if test -z "$ac_cv_prog_CC"; then
  3121. ac_ct_CC=$CC
  3122. # Extract the first word of "gcc", so it can be a program name with args.
  3123. set dummy gcc; ac_word=$2
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3125. $as_echo_n "checking for $ac_word... " >&6; }
  3126. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3127. $as_echo_n "(cached) " >&6
  3128. else
  3129. if test -n "$ac_ct_CC"; then
  3130. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3131. else
  3132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3133. for as_dir in $PATH
  3134. do
  3135. IFS=$as_save_IFS
  3136. test -z "$as_dir" && as_dir=.
  3137. for ac_exec_ext in '' $ac_executable_extensions; do
  3138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3139. ac_cv_prog_ac_ct_CC="gcc"
  3140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3141. break 2
  3142. fi
  3143. done
  3144. done
  3145. IFS=$as_save_IFS
  3146. fi
  3147. fi
  3148. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3149. if test -n "$ac_ct_CC"; then
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3151. $as_echo "$ac_ct_CC" >&6; }
  3152. else
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3154. $as_echo "no" >&6; }
  3155. fi
  3156. if test "x$ac_ct_CC" = x; then
  3157. CC=""
  3158. else
  3159. case $cross_compiling:$ac_tool_warned in
  3160. yes:)
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3163. ac_tool_warned=yes ;;
  3164. esac
  3165. CC=$ac_ct_CC
  3166. fi
  3167. else
  3168. CC="$ac_cv_prog_CC"
  3169. fi
  3170. if test -z "$CC"; then
  3171. if test -n "$ac_tool_prefix"; then
  3172. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3173. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3175. $as_echo_n "checking for $ac_word... " >&6; }
  3176. if ${ac_cv_prog_CC+:} false; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. if test -n "$CC"; then
  3180. ac_cv_prog_CC="$CC" # Let the user override the test.
  3181. else
  3182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3183. for as_dir in $PATH
  3184. do
  3185. IFS=$as_save_IFS
  3186. test -z "$as_dir" && as_dir=.
  3187. for ac_exec_ext in '' $ac_executable_extensions; do
  3188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3189. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3191. break 2
  3192. fi
  3193. done
  3194. done
  3195. IFS=$as_save_IFS
  3196. fi
  3197. fi
  3198. CC=$ac_cv_prog_CC
  3199. if test -n "$CC"; then
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3201. $as_echo "$CC" >&6; }
  3202. else
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3204. $as_echo "no" >&6; }
  3205. fi
  3206. fi
  3207. fi
  3208. if test -z "$CC"; then
  3209. # Extract the first word of "cc", so it can be a program name with args.
  3210. set dummy cc; ac_word=$2
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3212. $as_echo_n "checking for $ac_word... " >&6; }
  3213. if ${ac_cv_prog_CC+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. if test -n "$CC"; then
  3217. ac_cv_prog_CC="$CC" # Let the user override the test.
  3218. else
  3219. ac_prog_rejected=no
  3220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3221. for as_dir in $PATH
  3222. do
  3223. IFS=$as_save_IFS
  3224. test -z "$as_dir" && as_dir=.
  3225. for ac_exec_ext in '' $ac_executable_extensions; do
  3226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3227. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3228. ac_prog_rejected=yes
  3229. continue
  3230. fi
  3231. ac_cv_prog_CC="cc"
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3233. break 2
  3234. fi
  3235. done
  3236. done
  3237. IFS=$as_save_IFS
  3238. if test $ac_prog_rejected = yes; then
  3239. # We found a bogon in the path, so make sure we never use it.
  3240. set dummy $ac_cv_prog_CC
  3241. shift
  3242. if test $# != 0; then
  3243. # We chose a different compiler from the bogus one.
  3244. # However, it has the same basename, so the bogon will be chosen
  3245. # first if we set CC to just the basename; use the full file name.
  3246. shift
  3247. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3248. fi
  3249. fi
  3250. fi
  3251. fi
  3252. CC=$ac_cv_prog_CC
  3253. if test -n "$CC"; then
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3255. $as_echo "$CC" >&6; }
  3256. else
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3258. $as_echo "no" >&6; }
  3259. fi
  3260. fi
  3261. if test -z "$CC"; then
  3262. if test -n "$ac_tool_prefix"; then
  3263. for ac_prog in cl.exe
  3264. do
  3265. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3266. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3268. $as_echo_n "checking for $ac_word... " >&6; }
  3269. if ${ac_cv_prog_CC+:} false; then :
  3270. $as_echo_n "(cached) " >&6
  3271. else
  3272. if test -n "$CC"; then
  3273. ac_cv_prog_CC="$CC" # Let the user override the test.
  3274. else
  3275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3276. for as_dir in $PATH
  3277. do
  3278. IFS=$as_save_IFS
  3279. test -z "$as_dir" && as_dir=.
  3280. for ac_exec_ext in '' $ac_executable_extensions; do
  3281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3282. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3284. break 2
  3285. fi
  3286. done
  3287. done
  3288. IFS=$as_save_IFS
  3289. fi
  3290. fi
  3291. CC=$ac_cv_prog_CC
  3292. if test -n "$CC"; then
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3294. $as_echo "$CC" >&6; }
  3295. else
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3297. $as_echo "no" >&6; }
  3298. fi
  3299. test -n "$CC" && break
  3300. done
  3301. fi
  3302. if test -z "$CC"; then
  3303. ac_ct_CC=$CC
  3304. for ac_prog in cl.exe
  3305. do
  3306. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3307. set dummy $ac_prog; ac_word=$2
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3309. $as_echo_n "checking for $ac_word... " >&6; }
  3310. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. if test -n "$ac_ct_CC"; then
  3314. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3315. else
  3316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3317. for as_dir in $PATH
  3318. do
  3319. IFS=$as_save_IFS
  3320. test -z "$as_dir" && as_dir=.
  3321. for ac_exec_ext in '' $ac_executable_extensions; do
  3322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3323. ac_cv_prog_ac_ct_CC="$ac_prog"
  3324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3325. break 2
  3326. fi
  3327. done
  3328. done
  3329. IFS=$as_save_IFS
  3330. fi
  3331. fi
  3332. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3333. if test -n "$ac_ct_CC"; then
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3335. $as_echo "$ac_ct_CC" >&6; }
  3336. else
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3338. $as_echo "no" >&6; }
  3339. fi
  3340. test -n "$ac_ct_CC" && break
  3341. done
  3342. if test "x$ac_ct_CC" = x; then
  3343. CC=""
  3344. else
  3345. case $cross_compiling:$ac_tool_warned in
  3346. yes:)
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3349. ac_tool_warned=yes ;;
  3350. esac
  3351. CC=$ac_ct_CC
  3352. fi
  3353. fi
  3354. fi
  3355. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3356. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3357. as_fn_error $? "no acceptable C compiler found in \$PATH
  3358. See \`config.log' for more details" "$LINENO" 5; }
  3359. # Provide some information about the compiler.
  3360. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3361. set X $ac_compile
  3362. ac_compiler=$2
  3363. for ac_option in --version -v -V -qversion; do
  3364. { { ac_try="$ac_compiler $ac_option >&5"
  3365. case "(($ac_try" in
  3366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3367. *) ac_try_echo=$ac_try;;
  3368. esac
  3369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3370. $as_echo "$ac_try_echo"; } >&5
  3371. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3372. ac_status=$?
  3373. if test -s conftest.err; then
  3374. sed '10a\
  3375. ... rest of stderr output deleted ...
  3376. 10q' conftest.err >conftest.er1
  3377. cat conftest.er1 >&5
  3378. fi
  3379. rm -f conftest.er1 conftest.err
  3380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3381. test $ac_status = 0; }
  3382. done
  3383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3384. /* end confdefs.h. */
  3385. int
  3386. main ()
  3387. {
  3388. ;
  3389. return 0;
  3390. }
  3391. _ACEOF
  3392. ac_clean_files_save=$ac_clean_files
  3393. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3394. # Try to create an executable without -o first, disregard a.out.
  3395. # It will help us diagnose broken compilers, and finding out an intuition
  3396. # of exeext.
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3398. $as_echo_n "checking whether the C compiler works... " >&6; }
  3399. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3400. # The possible output files:
  3401. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3402. ac_rmfiles=
  3403. for ac_file in $ac_files
  3404. do
  3405. case $ac_file in
  3406. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3407. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3408. esac
  3409. done
  3410. rm -f $ac_rmfiles
  3411. if { { ac_try="$ac_link_default"
  3412. case "(($ac_try" in
  3413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3414. *) ac_try_echo=$ac_try;;
  3415. esac
  3416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3417. $as_echo "$ac_try_echo"; } >&5
  3418. (eval "$ac_link_default") 2>&5
  3419. ac_status=$?
  3420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3421. test $ac_status = 0; }; then :
  3422. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3423. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3424. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3425. # so that the user can short-circuit this test for compilers unknown to
  3426. # Autoconf.
  3427. for ac_file in $ac_files ''
  3428. do
  3429. test -f "$ac_file" || continue
  3430. case $ac_file in
  3431. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3432. ;;
  3433. [ab].out )
  3434. # We found the default executable, but exeext='' is most
  3435. # certainly right.
  3436. break;;
  3437. *.* )
  3438. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3439. then :; else
  3440. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3441. fi
  3442. # We set ac_cv_exeext here because the later test for it is not
  3443. # safe: cross compilers may not add the suffix if given an `-o'
  3444. # argument, so we may need to know it at that point already.
  3445. # Even if this section looks crufty: it has the advantage of
  3446. # actually working.
  3447. break;;
  3448. * )
  3449. break;;
  3450. esac
  3451. done
  3452. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3453. else
  3454. ac_file=''
  3455. fi
  3456. if test -z "$ac_file"; then :
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3458. $as_echo "no" >&6; }
  3459. $as_echo "$as_me: failed program was:" >&5
  3460. sed 's/^/| /' conftest.$ac_ext >&5
  3461. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3462. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3463. as_fn_error 77 "C compiler cannot create executables
  3464. See \`config.log' for more details" "$LINENO" 5; }
  3465. else
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3467. $as_echo "yes" >&6; }
  3468. fi
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3470. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3472. $as_echo "$ac_file" >&6; }
  3473. ac_exeext=$ac_cv_exeext
  3474. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3475. ac_clean_files=$ac_clean_files_save
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3477. $as_echo_n "checking for suffix of executables... " >&6; }
  3478. if { { ac_try="$ac_link"
  3479. case "(($ac_try" in
  3480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3481. *) ac_try_echo=$ac_try;;
  3482. esac
  3483. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3484. $as_echo "$ac_try_echo"; } >&5
  3485. (eval "$ac_link") 2>&5
  3486. ac_status=$?
  3487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3488. test $ac_status = 0; }; then :
  3489. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3490. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3491. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3492. # `rm'.
  3493. for ac_file in conftest.exe conftest conftest.*; do
  3494. test -f "$ac_file" || continue
  3495. case $ac_file in
  3496. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3497. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3498. break;;
  3499. * ) break;;
  3500. esac
  3501. done
  3502. else
  3503. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3505. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3506. See \`config.log' for more details" "$LINENO" 5; }
  3507. fi
  3508. rm -f conftest conftest$ac_cv_exeext
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3510. $as_echo "$ac_cv_exeext" >&6; }
  3511. rm -f conftest.$ac_ext
  3512. EXEEXT=$ac_cv_exeext
  3513. ac_exeext=$EXEEXT
  3514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3515. /* end confdefs.h. */
  3516. #include <stdio.h>
  3517. int
  3518. main ()
  3519. {
  3520. FILE *f = fopen ("conftest.out", "w");
  3521. return ferror (f) || fclose (f) != 0;
  3522. ;
  3523. return 0;
  3524. }
  3525. _ACEOF
  3526. ac_clean_files="$ac_clean_files conftest.out"
  3527. # Check that the compiler produces executables we can run. If not, either
  3528. # the compiler is broken, or we cross compile.
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3530. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3531. if test "$cross_compiling" != yes; then
  3532. { { ac_try="$ac_link"
  3533. case "(($ac_try" in
  3534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3535. *) ac_try_echo=$ac_try;;
  3536. esac
  3537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3538. $as_echo "$ac_try_echo"; } >&5
  3539. (eval "$ac_link") 2>&5
  3540. ac_status=$?
  3541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3542. test $ac_status = 0; }
  3543. if { ac_try='./conftest$ac_cv_exeext'
  3544. { { case "(($ac_try" in
  3545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3546. *) ac_try_echo=$ac_try;;
  3547. esac
  3548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3549. $as_echo "$ac_try_echo"; } >&5
  3550. (eval "$ac_try") 2>&5
  3551. ac_status=$?
  3552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3553. test $ac_status = 0; }; }; then
  3554. cross_compiling=no
  3555. else
  3556. if test "$cross_compiling" = maybe; then
  3557. cross_compiling=yes
  3558. else
  3559. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3560. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3561. as_fn_error $? "cannot run C compiled programs.
  3562. If you meant to cross compile, use \`--host'.
  3563. See \`config.log' for more details" "$LINENO" 5; }
  3564. fi
  3565. fi
  3566. fi
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3568. $as_echo "$cross_compiling" >&6; }
  3569. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3570. ac_clean_files=$ac_clean_files_save
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3572. $as_echo_n "checking for suffix of object files... " >&6; }
  3573. if ${ac_cv_objext+:} false; then :
  3574. $as_echo_n "(cached) " >&6
  3575. else
  3576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3577. /* end confdefs.h. */
  3578. int
  3579. main ()
  3580. {
  3581. ;
  3582. return 0;
  3583. }
  3584. _ACEOF
  3585. rm -f conftest.o conftest.obj
  3586. if { { ac_try="$ac_compile"
  3587. case "(($ac_try" in
  3588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3589. *) ac_try_echo=$ac_try;;
  3590. esac
  3591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3592. $as_echo "$ac_try_echo"; } >&5
  3593. (eval "$ac_compile") 2>&5
  3594. ac_status=$?
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3596. test $ac_status = 0; }; then :
  3597. for ac_file in conftest.o conftest.obj conftest.*; do
  3598. test -f "$ac_file" || continue;
  3599. case $ac_file in
  3600. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3601. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3602. break;;
  3603. esac
  3604. done
  3605. else
  3606. $as_echo "$as_me: failed program was:" >&5
  3607. sed 's/^/| /' conftest.$ac_ext >&5
  3608. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3609. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3610. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3611. See \`config.log' for more details" "$LINENO" 5; }
  3612. fi
  3613. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3614. fi
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3616. $as_echo "$ac_cv_objext" >&6; }
  3617. OBJEXT=$ac_cv_objext
  3618. ac_objext=$OBJEXT
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3620. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3621. if ${ac_cv_c_compiler_gnu+:} false; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3625. /* end confdefs.h. */
  3626. int
  3627. main ()
  3628. {
  3629. #ifndef __GNUC__
  3630. choke me
  3631. #endif
  3632. ;
  3633. return 0;
  3634. }
  3635. _ACEOF
  3636. if ac_fn_c_try_compile "$LINENO"; then :
  3637. ac_compiler_gnu=yes
  3638. else
  3639. ac_compiler_gnu=no
  3640. fi
  3641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3642. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3643. fi
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3645. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3646. if test $ac_compiler_gnu = yes; then
  3647. GCC=yes
  3648. else
  3649. GCC=
  3650. fi
  3651. ac_test_CFLAGS=${CFLAGS+set}
  3652. ac_save_CFLAGS=$CFLAGS
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3654. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3655. if ${ac_cv_prog_cc_g+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. ac_save_c_werror_flag=$ac_c_werror_flag
  3659. ac_c_werror_flag=yes
  3660. ac_cv_prog_cc_g=no
  3661. CFLAGS="-g"
  3662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3663. /* end confdefs.h. */
  3664. int
  3665. main ()
  3666. {
  3667. ;
  3668. return 0;
  3669. }
  3670. _ACEOF
  3671. if ac_fn_c_try_compile "$LINENO"; then :
  3672. ac_cv_prog_cc_g=yes
  3673. else
  3674. CFLAGS=""
  3675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3676. /* end confdefs.h. */
  3677. int
  3678. main ()
  3679. {
  3680. ;
  3681. return 0;
  3682. }
  3683. _ACEOF
  3684. if ac_fn_c_try_compile "$LINENO"; then :
  3685. else
  3686. ac_c_werror_flag=$ac_save_c_werror_flag
  3687. CFLAGS="-g"
  3688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3689. /* end confdefs.h. */
  3690. int
  3691. main ()
  3692. {
  3693. ;
  3694. return 0;
  3695. }
  3696. _ACEOF
  3697. if ac_fn_c_try_compile "$LINENO"; then :
  3698. ac_cv_prog_cc_g=yes
  3699. fi
  3700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3701. fi
  3702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3703. fi
  3704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3705. ac_c_werror_flag=$ac_save_c_werror_flag
  3706. fi
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3708. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3709. if test "$ac_test_CFLAGS" = set; then
  3710. CFLAGS=$ac_save_CFLAGS
  3711. elif test $ac_cv_prog_cc_g = yes; then
  3712. if test "$GCC" = yes; then
  3713. CFLAGS="-g -O2"
  3714. else
  3715. CFLAGS="-g"
  3716. fi
  3717. else
  3718. if test "$GCC" = yes; then
  3719. CFLAGS="-O2"
  3720. else
  3721. CFLAGS=
  3722. fi
  3723. fi
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3725. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3726. if ${ac_cv_prog_cc_c89+:} false; then :
  3727. $as_echo_n "(cached) " >&6
  3728. else
  3729. ac_cv_prog_cc_c89=no
  3730. ac_save_CC=$CC
  3731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3732. /* end confdefs.h. */
  3733. #include <stdarg.h>
  3734. #include <stdio.h>
  3735. struct stat;
  3736. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3737. struct buf { int x; };
  3738. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3739. static char *e (p, i)
  3740. char **p;
  3741. int i;
  3742. {
  3743. return p[i];
  3744. }
  3745. static char *f (char * (*g) (char **, int), char **p, ...)
  3746. {
  3747. char *s;
  3748. va_list v;
  3749. va_start (v,p);
  3750. s = g (p, va_arg (v,int));
  3751. va_end (v);
  3752. return s;
  3753. }
  3754. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3755. function prototypes and stuff, but not '\xHH' hex character constants.
  3756. These don't provoke an error unfortunately, instead are silently treated
  3757. as 'x'. The following induces an error, until -std is added to get
  3758. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3759. array size at least. It's necessary to write '\x00'==0 to get something
  3760. that's true only with -std. */
  3761. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3762. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3763. inside strings and character constants. */
  3764. #define FOO(x) 'x'
  3765. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3766. int test (int i, double x);
  3767. struct s1 {int (*f) (int a);};
  3768. struct s2 {int (*f) (double a);};
  3769. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3770. int argc;
  3771. char **argv;
  3772. int
  3773. main ()
  3774. {
  3775. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3776. ;
  3777. return 0;
  3778. }
  3779. _ACEOF
  3780. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3781. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3782. do
  3783. CC="$ac_save_CC $ac_arg"
  3784. if ac_fn_c_try_compile "$LINENO"; then :
  3785. ac_cv_prog_cc_c89=$ac_arg
  3786. fi
  3787. rm -f core conftest.err conftest.$ac_objext
  3788. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3789. done
  3790. rm -f conftest.$ac_ext
  3791. CC=$ac_save_CC
  3792. fi
  3793. # AC_CACHE_VAL
  3794. case "x$ac_cv_prog_cc_c89" in
  3795. x)
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3797. $as_echo "none needed" >&6; } ;;
  3798. xno)
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3800. $as_echo "unsupported" >&6; } ;;
  3801. *)
  3802. CC="$CC $ac_cv_prog_cc_c89"
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3804. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3805. esac
  3806. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3807. fi
  3808. ac_ext=c
  3809. ac_cpp='$CPP $CPPFLAGS'
  3810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3813. ac_ext=c
  3814. ac_cpp='$CPP $CPPFLAGS'
  3815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3819. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3820. if ${am_cv_prog_cc_c_o+:} false; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. int
  3826. main ()
  3827. {
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. # Make sure it works both with $CC and with simple cc.
  3833. # Following AC_PROG_CC_C_O, we do the test twice because some
  3834. # compilers refuse to overwrite an existing .o file with -o,
  3835. # though they will create one.
  3836. am_cv_prog_cc_c_o=yes
  3837. for am_i in 1 2; do
  3838. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3839. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3840. ac_status=$?
  3841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3842. (exit $ac_status); } \
  3843. && test -f conftest2.$ac_objext; then
  3844. : OK
  3845. else
  3846. am_cv_prog_cc_c_o=no
  3847. break
  3848. fi
  3849. done
  3850. rm -f core conftest*
  3851. unset am_i
  3852. fi
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3854. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3855. if test "$am_cv_prog_cc_c_o" != yes; then
  3856. # Losing compiler, so override with the script.
  3857. # FIXME: It is wrong to rewrite CC.
  3858. # But if we don't then we get into trouble of one sort or another.
  3859. # A longer-term fix would be to have automake use am__CC in this case,
  3860. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3861. CC="$am_aux_dir/compile $CC"
  3862. fi
  3863. ac_ext=c
  3864. ac_cpp='$CPP $CPPFLAGS'
  3865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3868. DEPDIR="${am__leading_dot}deps"
  3869. ac_config_commands="$ac_config_commands depfiles"
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3871. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3872. cat > confinc.mk << 'END'
  3873. am__doit:
  3874. @echo this is the am__doit target >confinc.out
  3875. .PHONY: am__doit
  3876. END
  3877. am__include="#"
  3878. am__quote=
  3879. # BSD make does it like this.
  3880. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3881. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3882. echo 'include confinc.mk # ignored' > confmf.GNU
  3883. _am_result=no
  3884. for s in GNU BSD; do
  3885. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3886. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3887. ac_status=$?
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); }
  3890. case $?:`cat confinc.out 2>/dev/null` in #(
  3891. '0:this is the am__doit target') :
  3892. case $s in #(
  3893. BSD) :
  3894. am__include='.include' am__quote='"' ;; #(
  3895. *) :
  3896. am__include='include' am__quote='' ;;
  3897. esac ;; #(
  3898. *) :
  3899. ;;
  3900. esac
  3901. if test "$am__include" != "#"; then
  3902. _am_result="yes ($s style)"
  3903. break
  3904. fi
  3905. done
  3906. rm -f confinc.* confmf.*
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3908. $as_echo "${_am_result}" >&6; }
  3909. # Check whether --enable-dependency-tracking was given.
  3910. if test "${enable_dependency_tracking+set}" = set; then :
  3911. enableval=$enable_dependency_tracking;
  3912. fi
  3913. if test "x$enable_dependency_tracking" != xno; then
  3914. am_depcomp="$ac_aux_dir/depcomp"
  3915. AMDEPBACKSLASH='\'
  3916. am__nodep='_no'
  3917. fi
  3918. if test "x$enable_dependency_tracking" != xno; then
  3919. AMDEP_TRUE=
  3920. AMDEP_FALSE='#'
  3921. else
  3922. AMDEP_TRUE='#'
  3923. AMDEP_FALSE=
  3924. fi
  3925. depcc="$CC" am_compiler_list=
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3927. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3928. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3932. # We make a subdir and do the tests there. Otherwise we can end up
  3933. # making bogus files that we don't know about and never remove. For
  3934. # instance it was reported that on HP-UX the gcc test will end up
  3935. # making a dummy file named 'D' -- because '-MD' means "put the output
  3936. # in D".
  3937. rm -rf conftest.dir
  3938. mkdir conftest.dir
  3939. # Copy depcomp to subdir because otherwise we won't find it if we're
  3940. # using a relative directory.
  3941. cp "$am_depcomp" conftest.dir
  3942. cd conftest.dir
  3943. # We will build objects and dependencies in a subdirectory because
  3944. # it helps to detect inapplicable dependency modes. For instance
  3945. # both Tru64's cc and ICC support -MD to output dependencies as a
  3946. # side effect of compilation, but ICC will put the dependencies in
  3947. # the current directory while Tru64 will put them in the object
  3948. # directory.
  3949. mkdir sub
  3950. am_cv_CC_dependencies_compiler_type=none
  3951. if test "$am_compiler_list" = ""; then
  3952. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3953. fi
  3954. am__universal=false
  3955. case " $depcc " in #(
  3956. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3957. esac
  3958. for depmode in $am_compiler_list; do
  3959. # Setup a source with many dependencies, because some compilers
  3960. # like to wrap large dependency lists on column 80 (with \), and
  3961. # we should not choose a depcomp mode which is confused by this.
  3962. #
  3963. # We need to recreate these files for each test, as the compiler may
  3964. # overwrite some of them when testing with obscure command lines.
  3965. # This happens at least with the AIX C compiler.
  3966. : > sub/conftest.c
  3967. for i in 1 2 3 4 5 6; do
  3968. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3969. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3970. # Solaris 10 /bin/sh.
  3971. echo '/* dummy */' > sub/conftst$i.h
  3972. done
  3973. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3974. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3975. # mode. It turns out that the SunPro C++ compiler does not properly
  3976. # handle '-M -o', and we need to detect this. Also, some Intel
  3977. # versions had trouble with output in subdirs.
  3978. am__obj=sub/conftest.${OBJEXT-o}
  3979. am__minus_obj="-o $am__obj"
  3980. case $depmode in
  3981. gcc)
  3982. # This depmode causes a compiler race in universal mode.
  3983. test "$am__universal" = false || continue
  3984. ;;
  3985. nosideeffect)
  3986. # After this tag, mechanisms are not by side-effect, so they'll
  3987. # only be used when explicitly requested.
  3988. if test "x$enable_dependency_tracking" = xyes; then
  3989. continue
  3990. else
  3991. break
  3992. fi
  3993. ;;
  3994. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3995. # This compiler won't grok '-c -o', but also, the minuso test has
  3996. # not run yet. These depmodes are late enough in the game, and
  3997. # so weak that their functioning should not be impacted.
  3998. am__obj=conftest.${OBJEXT-o}
  3999. am__minus_obj=
  4000. ;;
  4001. none) break ;;
  4002. esac
  4003. if depmode=$depmode \
  4004. source=sub/conftest.c object=$am__obj \
  4005. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4006. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4007. >/dev/null 2>conftest.err &&
  4008. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4009. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4010. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4011. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4012. # icc doesn't choke on unknown options, it will just issue warnings
  4013. # or remarks (even with -Werror). So we grep stderr for any message
  4014. # that says an option was ignored or not supported.
  4015. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4016. # icc: Command line warning: ignoring option '-M'; no argument required
  4017. # The diagnosis changed in icc 8.0:
  4018. # icc: Command line remark: option '-MP' not supported
  4019. if (grep 'ignoring option' conftest.err ||
  4020. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4021. am_cv_CC_dependencies_compiler_type=$depmode
  4022. break
  4023. fi
  4024. fi
  4025. done
  4026. cd ..
  4027. rm -rf conftest.dir
  4028. else
  4029. am_cv_CC_dependencies_compiler_type=none
  4030. fi
  4031. fi
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4033. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4034. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4035. if
  4036. test "x$enable_dependency_tracking" != xno \
  4037. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4038. am__fastdepCC_TRUE=
  4039. am__fastdepCC_FALSE='#'
  4040. else
  4041. am__fastdepCC_TRUE='#'
  4042. am__fastdepCC_FALSE=
  4043. fi
  4044. ac_ext=c
  4045. ac_cpp='$CPP $CPPFLAGS'
  4046. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4047. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4048. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4050. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4051. # On Suns, sometimes $CPP names a directory.
  4052. if test -n "$CPP" && test -d "$CPP"; then
  4053. CPP=
  4054. fi
  4055. if test -z "$CPP"; then
  4056. if ${ac_cv_prog_CPP+:} false; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. # Double quotes because CPP needs to be expanded
  4060. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4061. do
  4062. ac_preproc_ok=false
  4063. for ac_c_preproc_warn_flag in '' yes
  4064. do
  4065. # Use a header file that comes with gcc, so configuring glibc
  4066. # with a fresh cross-compiler works.
  4067. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4068. # <limits.h> exists even on freestanding compilers.
  4069. # On the NeXT, cc -E runs the code through the compiler's parser,
  4070. # not just through cpp. "Syntax error" is here to catch this case.
  4071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4072. /* end confdefs.h. */
  4073. #ifdef __STDC__
  4074. # include <limits.h>
  4075. #else
  4076. # include <assert.h>
  4077. #endif
  4078. Syntax error
  4079. _ACEOF
  4080. if ac_fn_c_try_cpp "$LINENO"; then :
  4081. else
  4082. # Broken: fails on valid input.
  4083. continue
  4084. fi
  4085. rm -f conftest.err conftest.i conftest.$ac_ext
  4086. # OK, works on sane cases. Now check whether nonexistent headers
  4087. # can be detected and how.
  4088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4089. /* end confdefs.h. */
  4090. #include <ac_nonexistent.h>
  4091. _ACEOF
  4092. if ac_fn_c_try_cpp "$LINENO"; then :
  4093. # Broken: success on invalid input.
  4094. continue
  4095. else
  4096. # Passes both tests.
  4097. ac_preproc_ok=:
  4098. break
  4099. fi
  4100. rm -f conftest.err conftest.i conftest.$ac_ext
  4101. done
  4102. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4103. rm -f conftest.i conftest.err conftest.$ac_ext
  4104. if $ac_preproc_ok; then :
  4105. break
  4106. fi
  4107. done
  4108. ac_cv_prog_CPP=$CPP
  4109. fi
  4110. CPP=$ac_cv_prog_CPP
  4111. else
  4112. ac_cv_prog_CPP=$CPP
  4113. fi
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4115. $as_echo "$CPP" >&6; }
  4116. ac_preproc_ok=false
  4117. for ac_c_preproc_warn_flag in '' yes
  4118. do
  4119. # Use a header file that comes with gcc, so configuring glibc
  4120. # with a fresh cross-compiler works.
  4121. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4122. # <limits.h> exists even on freestanding compilers.
  4123. # On the NeXT, cc -E runs the code through the compiler's parser,
  4124. # not just through cpp. "Syntax error" is here to catch this case.
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. #ifdef __STDC__
  4128. # include <limits.h>
  4129. #else
  4130. # include <assert.h>
  4131. #endif
  4132. Syntax error
  4133. _ACEOF
  4134. if ac_fn_c_try_cpp "$LINENO"; then :
  4135. else
  4136. # Broken: fails on valid input.
  4137. continue
  4138. fi
  4139. rm -f conftest.err conftest.i conftest.$ac_ext
  4140. # OK, works on sane cases. Now check whether nonexistent headers
  4141. # can be detected and how.
  4142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4143. /* end confdefs.h. */
  4144. #include <ac_nonexistent.h>
  4145. _ACEOF
  4146. if ac_fn_c_try_cpp "$LINENO"; then :
  4147. # Broken: success on invalid input.
  4148. continue
  4149. else
  4150. # Passes both tests.
  4151. ac_preproc_ok=:
  4152. break
  4153. fi
  4154. rm -f conftest.err conftest.i conftest.$ac_ext
  4155. done
  4156. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4157. rm -f conftest.i conftest.err conftest.$ac_ext
  4158. if $ac_preproc_ok; then :
  4159. else
  4160. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4161. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4162. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4163. See \`config.log' for more details" "$LINENO" 5; }
  4164. fi
  4165. ac_ext=c
  4166. ac_cpp='$CPP $CPPFLAGS'
  4167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4171. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4172. if ${ac_cv_path_GREP+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. if test -z "$GREP"; then
  4176. ac_path_GREP_found=false
  4177. # Loop through the user's path and test for each of PROGNAME-LIST
  4178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4179. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4180. do
  4181. IFS=$as_save_IFS
  4182. test -z "$as_dir" && as_dir=.
  4183. for ac_prog in grep ggrep; do
  4184. for ac_exec_ext in '' $ac_executable_extensions; do
  4185. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4186. as_fn_executable_p "$ac_path_GREP" || continue
  4187. # Check for GNU ac_path_GREP and select it if it is found.
  4188. # Check for GNU $ac_path_GREP
  4189. case `"$ac_path_GREP" --version 2>&1` in
  4190. *GNU*)
  4191. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4192. *)
  4193. ac_count=0
  4194. $as_echo_n 0123456789 >"conftest.in"
  4195. while :
  4196. do
  4197. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4198. mv "conftest.tmp" "conftest.in"
  4199. cp "conftest.in" "conftest.nl"
  4200. $as_echo 'GREP' >> "conftest.nl"
  4201. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4202. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4203. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4204. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4205. # Best one so far, save it but keep looking for a better one
  4206. ac_cv_path_GREP="$ac_path_GREP"
  4207. ac_path_GREP_max=$ac_count
  4208. fi
  4209. # 10*(2^10) chars as input seems more than enough
  4210. test $ac_count -gt 10 && break
  4211. done
  4212. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4213. esac
  4214. $ac_path_GREP_found && break 3
  4215. done
  4216. done
  4217. done
  4218. IFS=$as_save_IFS
  4219. if test -z "$ac_cv_path_GREP"; then
  4220. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4221. fi
  4222. else
  4223. ac_cv_path_GREP=$GREP
  4224. fi
  4225. fi
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4227. $as_echo "$ac_cv_path_GREP" >&6; }
  4228. GREP="$ac_cv_path_GREP"
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4230. $as_echo_n "checking for egrep... " >&6; }
  4231. if ${ac_cv_path_EGREP+:} false; then :
  4232. $as_echo_n "(cached) " >&6
  4233. else
  4234. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4235. then ac_cv_path_EGREP="$GREP -E"
  4236. else
  4237. if test -z "$EGREP"; then
  4238. ac_path_EGREP_found=false
  4239. # Loop through the user's path and test for each of PROGNAME-LIST
  4240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4241. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4242. do
  4243. IFS=$as_save_IFS
  4244. test -z "$as_dir" && as_dir=.
  4245. for ac_prog in egrep; do
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4248. as_fn_executable_p "$ac_path_EGREP" || continue
  4249. # Check for GNU ac_path_EGREP and select it if it is found.
  4250. # Check for GNU $ac_path_EGREP
  4251. case `"$ac_path_EGREP" --version 2>&1` in
  4252. *GNU*)
  4253. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4254. *)
  4255. ac_count=0
  4256. $as_echo_n 0123456789 >"conftest.in"
  4257. while :
  4258. do
  4259. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4260. mv "conftest.tmp" "conftest.in"
  4261. cp "conftest.in" "conftest.nl"
  4262. $as_echo 'EGREP' >> "conftest.nl"
  4263. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4264. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4265. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4266. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4267. # Best one so far, save it but keep looking for a better one
  4268. ac_cv_path_EGREP="$ac_path_EGREP"
  4269. ac_path_EGREP_max=$ac_count
  4270. fi
  4271. # 10*(2^10) chars as input seems more than enough
  4272. test $ac_count -gt 10 && break
  4273. done
  4274. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4275. esac
  4276. $ac_path_EGREP_found && break 3
  4277. done
  4278. done
  4279. done
  4280. IFS=$as_save_IFS
  4281. if test -z "$ac_cv_path_EGREP"; then
  4282. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4283. fi
  4284. else
  4285. ac_cv_path_EGREP=$EGREP
  4286. fi
  4287. fi
  4288. fi
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4290. $as_echo "$ac_cv_path_EGREP" >&6; }
  4291. EGREP="$ac_cv_path_EGREP"
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4293. $as_echo_n "checking for ANSI C header files... " >&6; }
  4294. if ${ac_cv_header_stdc+:} false; then :
  4295. $as_echo_n "(cached) " >&6
  4296. else
  4297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4298. /* end confdefs.h. */
  4299. #include <stdlib.h>
  4300. #include <stdarg.h>
  4301. #include <string.h>
  4302. #include <float.h>
  4303. int
  4304. main ()
  4305. {
  4306. ;
  4307. return 0;
  4308. }
  4309. _ACEOF
  4310. if ac_fn_c_try_compile "$LINENO"; then :
  4311. ac_cv_header_stdc=yes
  4312. else
  4313. ac_cv_header_stdc=no
  4314. fi
  4315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4316. if test $ac_cv_header_stdc = yes; then
  4317. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4319. /* end confdefs.h. */
  4320. #include <string.h>
  4321. _ACEOF
  4322. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4323. $EGREP "memchr" >/dev/null 2>&1; then :
  4324. else
  4325. ac_cv_header_stdc=no
  4326. fi
  4327. rm -f conftest*
  4328. fi
  4329. if test $ac_cv_header_stdc = yes; then
  4330. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4332. /* end confdefs.h. */
  4333. #include <stdlib.h>
  4334. _ACEOF
  4335. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4336. $EGREP "free" >/dev/null 2>&1; then :
  4337. else
  4338. ac_cv_header_stdc=no
  4339. fi
  4340. rm -f conftest*
  4341. fi
  4342. if test $ac_cv_header_stdc = yes; then
  4343. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4344. if test "$cross_compiling" = yes; then :
  4345. :
  4346. else
  4347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4348. /* end confdefs.h. */
  4349. #include <ctype.h>
  4350. #include <stdlib.h>
  4351. #if ((' ' & 0x0FF) == 0x020)
  4352. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4353. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4354. #else
  4355. # define ISLOWER(c) \
  4356. (('a' <= (c) && (c) <= 'i') \
  4357. || ('j' <= (c) && (c) <= 'r') \
  4358. || ('s' <= (c) && (c) <= 'z'))
  4359. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4360. #endif
  4361. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4362. int
  4363. main ()
  4364. {
  4365. int i;
  4366. for (i = 0; i < 256; i++)
  4367. if (XOR (islower (i), ISLOWER (i))
  4368. || toupper (i) != TOUPPER (i))
  4369. return 2;
  4370. return 0;
  4371. }
  4372. _ACEOF
  4373. if ac_fn_c_try_run "$LINENO"; then :
  4374. else
  4375. ac_cv_header_stdc=no
  4376. fi
  4377. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4378. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4379. fi
  4380. fi
  4381. fi
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4383. $as_echo "$ac_cv_header_stdc" >&6; }
  4384. if test $ac_cv_header_stdc = yes; then
  4385. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4386. fi
  4387. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4388. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4389. inttypes.h stdint.h unistd.h
  4390. do :
  4391. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4392. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4393. "
  4394. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4395. cat >>confdefs.h <<_ACEOF
  4396. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4397. _ACEOF
  4398. fi
  4399. done
  4400. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4401. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4402. MINIX=yes
  4403. else
  4404. MINIX=
  4405. fi
  4406. if test "$MINIX" = yes; then
  4407. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4408. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4409. $as_echo "#define _MINIX 1" >>confdefs.h
  4410. fi
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4412. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4413. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4414. $as_echo_n "(cached) " >&6
  4415. else
  4416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4417. /* end confdefs.h. */
  4418. # define __EXTENSIONS__ 1
  4419. $ac_includes_default
  4420. int
  4421. main ()
  4422. {
  4423. ;
  4424. return 0;
  4425. }
  4426. _ACEOF
  4427. if ac_fn_c_try_compile "$LINENO"; then :
  4428. ac_cv_safe_to_define___extensions__=yes
  4429. else
  4430. ac_cv_safe_to_define___extensions__=no
  4431. fi
  4432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4433. fi
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4435. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4436. test $ac_cv_safe_to_define___extensions__ = yes &&
  4437. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4438. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4439. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4440. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4441. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4443. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4444. if ${ac_cv_c_bigendian+:} false; then :
  4445. $as_echo_n "(cached) " >&6
  4446. else
  4447. ac_cv_c_bigendian=unknown
  4448. # See if we're dealing with a universal compiler.
  4449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4450. /* end confdefs.h. */
  4451. #ifndef __APPLE_CC__
  4452. not a universal capable compiler
  4453. #endif
  4454. typedef int dummy;
  4455. _ACEOF
  4456. if ac_fn_c_try_compile "$LINENO"; then :
  4457. # Check for potential -arch flags. It is not universal unless
  4458. # there are at least two -arch flags with different values.
  4459. ac_arch=
  4460. ac_prev=
  4461. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4462. if test -n "$ac_prev"; then
  4463. case $ac_word in
  4464. i?86 | x86_64 | ppc | ppc64)
  4465. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4466. ac_arch=$ac_word
  4467. else
  4468. ac_cv_c_bigendian=universal
  4469. break
  4470. fi
  4471. ;;
  4472. esac
  4473. ac_prev=
  4474. elif test "x$ac_word" = "x-arch"; then
  4475. ac_prev=arch
  4476. fi
  4477. done
  4478. fi
  4479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4480. if test $ac_cv_c_bigendian = unknown; then
  4481. # See if sys/param.h defines the BYTE_ORDER macro.
  4482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4483. /* end confdefs.h. */
  4484. #include <sys/types.h>
  4485. #include <sys/param.h>
  4486. int
  4487. main ()
  4488. {
  4489. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4490. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4491. && LITTLE_ENDIAN)
  4492. bogus endian macros
  4493. #endif
  4494. ;
  4495. return 0;
  4496. }
  4497. _ACEOF
  4498. if ac_fn_c_try_compile "$LINENO"; then :
  4499. # It does; now see whether it defined to BIG_ENDIAN or not.
  4500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4501. /* end confdefs.h. */
  4502. #include <sys/types.h>
  4503. #include <sys/param.h>
  4504. int
  4505. main ()
  4506. {
  4507. #if BYTE_ORDER != BIG_ENDIAN
  4508. not big endian
  4509. #endif
  4510. ;
  4511. return 0;
  4512. }
  4513. _ACEOF
  4514. if ac_fn_c_try_compile "$LINENO"; then :
  4515. ac_cv_c_bigendian=yes
  4516. else
  4517. ac_cv_c_bigendian=no
  4518. fi
  4519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4520. fi
  4521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4522. fi
  4523. if test $ac_cv_c_bigendian = unknown; then
  4524. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4526. /* end confdefs.h. */
  4527. #include <limits.h>
  4528. int
  4529. main ()
  4530. {
  4531. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4532. bogus endian macros
  4533. #endif
  4534. ;
  4535. return 0;
  4536. }
  4537. _ACEOF
  4538. if ac_fn_c_try_compile "$LINENO"; then :
  4539. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4541. /* end confdefs.h. */
  4542. #include <limits.h>
  4543. int
  4544. main ()
  4545. {
  4546. #ifndef _BIG_ENDIAN
  4547. not big endian
  4548. #endif
  4549. ;
  4550. return 0;
  4551. }
  4552. _ACEOF
  4553. if ac_fn_c_try_compile "$LINENO"; then :
  4554. ac_cv_c_bigendian=yes
  4555. else
  4556. ac_cv_c_bigendian=no
  4557. fi
  4558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4559. fi
  4560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4561. fi
  4562. if test $ac_cv_c_bigendian = unknown; then
  4563. # Compile a test program.
  4564. if test "$cross_compiling" = yes; then :
  4565. # Try to guess by grepping values from an object file.
  4566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4567. /* end confdefs.h. */
  4568. short int ascii_mm[] =
  4569. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4570. short int ascii_ii[] =
  4571. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4572. int use_ascii (int i) {
  4573. return ascii_mm[i] + ascii_ii[i];
  4574. }
  4575. short int ebcdic_ii[] =
  4576. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4577. short int ebcdic_mm[] =
  4578. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4579. int use_ebcdic (int i) {
  4580. return ebcdic_mm[i] + ebcdic_ii[i];
  4581. }
  4582. extern int foo;
  4583. int
  4584. main ()
  4585. {
  4586. return use_ascii (foo) == use_ebcdic (foo);
  4587. ;
  4588. return 0;
  4589. }
  4590. _ACEOF
  4591. if ac_fn_c_try_compile "$LINENO"; then :
  4592. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4593. ac_cv_c_bigendian=yes
  4594. fi
  4595. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4596. if test "$ac_cv_c_bigendian" = unknown; then
  4597. ac_cv_c_bigendian=no
  4598. else
  4599. # finding both strings is unlikely to happen, but who knows?
  4600. ac_cv_c_bigendian=unknown
  4601. fi
  4602. fi
  4603. fi
  4604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4605. else
  4606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4607. /* end confdefs.h. */
  4608. $ac_includes_default
  4609. int
  4610. main ()
  4611. {
  4612. /* Are we little or big endian? From Harbison&Steele. */
  4613. union
  4614. {
  4615. long int l;
  4616. char c[sizeof (long int)];
  4617. } u;
  4618. u.l = 1;
  4619. return u.c[sizeof (long int) - 1] == 1;
  4620. ;
  4621. return 0;
  4622. }
  4623. _ACEOF
  4624. if ac_fn_c_try_run "$LINENO"; then :
  4625. ac_cv_c_bigendian=no
  4626. else
  4627. ac_cv_c_bigendian=yes
  4628. fi
  4629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4630. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4631. fi
  4632. fi
  4633. fi
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4635. $as_echo "$ac_cv_c_bigendian" >&6; }
  4636. case $ac_cv_c_bigendian in #(
  4637. yes)
  4638. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4639. ;; #(
  4640. no)
  4641. ;; #(
  4642. universal)
  4643. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4644. ;; #(
  4645. *)
  4646. as_fn_error $? "unknown endianness
  4647. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4648. esac
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4650. $as_echo_n "checking whether ln -s works... " >&6; }
  4651. LN_S=$as_ln_s
  4652. if test "$LN_S" = "ln -s"; then
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4654. $as_echo "yes" >&6; }
  4655. else
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4657. $as_echo "no, using $LN_S" >&6; }
  4658. fi
  4659. case `pwd` in
  4660. *\ * | *\ *)
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4662. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4663. esac
  4664. macro_version='2.4.6'
  4665. macro_revision='2.4.6'
  4666. ltmain=$ac_aux_dir/ltmain.sh
  4667. # Backslashify metacharacters that are still active within
  4668. # double-quoted strings.
  4669. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4670. # Same as above, but do not quote variable references.
  4671. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4672. # Sed substitution to delay expansion of an escaped shell variable in a
  4673. # double_quote_subst'ed string.
  4674. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4675. # Sed substitution to delay expansion of an escaped single quote.
  4676. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4677. # Sed substitution to avoid accidental globbing in evaled expressions
  4678. no_glob_subst='s/\*/\\\*/g'
  4679. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4680. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4681. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4683. $as_echo_n "checking how to print strings... " >&6; }
  4684. # Test print first, because it will be a builtin if present.
  4685. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4686. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4687. ECHO='print -r --'
  4688. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4689. ECHO='printf %s\n'
  4690. else
  4691. # Use this function as a fallback that always works.
  4692. func_fallback_echo ()
  4693. {
  4694. eval 'cat <<_LTECHO_EOF
  4695. $1
  4696. _LTECHO_EOF'
  4697. }
  4698. ECHO='func_fallback_echo'
  4699. fi
  4700. # func_echo_all arg...
  4701. # Invoke $ECHO with all args, space-separated.
  4702. func_echo_all ()
  4703. {
  4704. $ECHO ""
  4705. }
  4706. case $ECHO in
  4707. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4708. $as_echo "printf" >&6; } ;;
  4709. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4710. $as_echo "print -r" >&6; } ;;
  4711. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4712. $as_echo "cat" >&6; } ;;
  4713. esac
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4715. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4716. if ${ac_cv_path_SED+:} false; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4720. for ac_i in 1 2 3 4 5 6 7; do
  4721. ac_script="$ac_script$as_nl$ac_script"
  4722. done
  4723. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4724. { ac_script=; unset ac_script;}
  4725. if test -z "$SED"; then
  4726. ac_path_SED_found=false
  4727. # Loop through the user's path and test for each of PROGNAME-LIST
  4728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4729. for as_dir in $PATH
  4730. do
  4731. IFS=$as_save_IFS
  4732. test -z "$as_dir" && as_dir=.
  4733. for ac_prog in sed gsed; do
  4734. for ac_exec_ext in '' $ac_executable_extensions; do
  4735. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4736. as_fn_executable_p "$ac_path_SED" || continue
  4737. # Check for GNU ac_path_SED and select it if it is found.
  4738. # Check for GNU $ac_path_SED
  4739. case `"$ac_path_SED" --version 2>&1` in
  4740. *GNU*)
  4741. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4742. *)
  4743. ac_count=0
  4744. $as_echo_n 0123456789 >"conftest.in"
  4745. while :
  4746. do
  4747. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4748. mv "conftest.tmp" "conftest.in"
  4749. cp "conftest.in" "conftest.nl"
  4750. $as_echo '' >> "conftest.nl"
  4751. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4752. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4753. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4754. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4755. # Best one so far, save it but keep looking for a better one
  4756. ac_cv_path_SED="$ac_path_SED"
  4757. ac_path_SED_max=$ac_count
  4758. fi
  4759. # 10*(2^10) chars as input seems more than enough
  4760. test $ac_count -gt 10 && break
  4761. done
  4762. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4763. esac
  4764. $ac_path_SED_found && break 3
  4765. done
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. if test -z "$ac_cv_path_SED"; then
  4770. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4771. fi
  4772. else
  4773. ac_cv_path_SED=$SED
  4774. fi
  4775. fi
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4777. $as_echo "$ac_cv_path_SED" >&6; }
  4778. SED="$ac_cv_path_SED"
  4779. rm -f conftest.sed
  4780. test -z "$SED" && SED=sed
  4781. Xsed="$SED -e 1s/^X//"
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4783. $as_echo_n "checking for fgrep... " >&6; }
  4784. if ${ac_cv_path_FGREP+:} false; then :
  4785. $as_echo_n "(cached) " >&6
  4786. else
  4787. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4788. then ac_cv_path_FGREP="$GREP -F"
  4789. else
  4790. if test -z "$FGREP"; then
  4791. ac_path_FGREP_found=false
  4792. # Loop through the user's path and test for each of PROGNAME-LIST
  4793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4794. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4795. do
  4796. IFS=$as_save_IFS
  4797. test -z "$as_dir" && as_dir=.
  4798. for ac_prog in fgrep; do
  4799. for ac_exec_ext in '' $ac_executable_extensions; do
  4800. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4801. as_fn_executable_p "$ac_path_FGREP" || continue
  4802. # Check for GNU ac_path_FGREP and select it if it is found.
  4803. # Check for GNU $ac_path_FGREP
  4804. case `"$ac_path_FGREP" --version 2>&1` in
  4805. *GNU*)
  4806. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4807. *)
  4808. ac_count=0
  4809. $as_echo_n 0123456789 >"conftest.in"
  4810. while :
  4811. do
  4812. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4813. mv "conftest.tmp" "conftest.in"
  4814. cp "conftest.in" "conftest.nl"
  4815. $as_echo 'FGREP' >> "conftest.nl"
  4816. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4817. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4818. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4819. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4820. # Best one so far, save it but keep looking for a better one
  4821. ac_cv_path_FGREP="$ac_path_FGREP"
  4822. ac_path_FGREP_max=$ac_count
  4823. fi
  4824. # 10*(2^10) chars as input seems more than enough
  4825. test $ac_count -gt 10 && break
  4826. done
  4827. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4828. esac
  4829. $ac_path_FGREP_found && break 3
  4830. done
  4831. done
  4832. done
  4833. IFS=$as_save_IFS
  4834. if test -z "$ac_cv_path_FGREP"; then
  4835. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4836. fi
  4837. else
  4838. ac_cv_path_FGREP=$FGREP
  4839. fi
  4840. fi
  4841. fi
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4843. $as_echo "$ac_cv_path_FGREP" >&6; }
  4844. FGREP="$ac_cv_path_FGREP"
  4845. test -z "$GREP" && GREP=grep
  4846. # Check whether --with-gnu-ld was given.
  4847. if test "${with_gnu_ld+set}" = set; then :
  4848. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4849. else
  4850. with_gnu_ld=no
  4851. fi
  4852. ac_prog=ld
  4853. if test yes = "$GCC"; then
  4854. # Check if gcc -print-prog-name=ld gives a path.
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4856. $as_echo_n "checking for ld used by $CC... " >&6; }
  4857. case $host in
  4858. *-*-mingw*)
  4859. # gcc leaves a trailing carriage return, which upsets mingw
  4860. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4861. *)
  4862. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4863. esac
  4864. case $ac_prog in
  4865. # Accept absolute paths.
  4866. [\\/]* | ?:[\\/]*)
  4867. re_direlt='/[^/][^/]*/\.\./'
  4868. # Canonicalize the pathname of ld
  4869. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4870. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4871. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4872. done
  4873. test -z "$LD" && LD=$ac_prog
  4874. ;;
  4875. "")
  4876. # If it fails, then pretend we aren't using GCC.
  4877. ac_prog=ld
  4878. ;;
  4879. *)
  4880. # If it is relative, then search for the first ld in PATH.
  4881. with_gnu_ld=unknown
  4882. ;;
  4883. esac
  4884. elif test yes = "$with_gnu_ld"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4886. $as_echo_n "checking for GNU ld... " >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4889. $as_echo_n "checking for non-GNU ld... " >&6; }
  4890. fi
  4891. if ${lt_cv_path_LD+:} false; then :
  4892. $as_echo_n "(cached) " >&6
  4893. else
  4894. if test -z "$LD"; then
  4895. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4896. for ac_dir in $PATH; do
  4897. IFS=$lt_save_ifs
  4898. test -z "$ac_dir" && ac_dir=.
  4899. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4900. lt_cv_path_LD=$ac_dir/$ac_prog
  4901. # Check to see if the program is GNU ld. I'd rather use --version,
  4902. # but apparently some variants of GNU ld only accept -v.
  4903. # Break only if it was the GNU/non-GNU ld that we prefer.
  4904. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4905. *GNU* | *'with BFD'*)
  4906. test no != "$with_gnu_ld" && break
  4907. ;;
  4908. *)
  4909. test yes != "$with_gnu_ld" && break
  4910. ;;
  4911. esac
  4912. fi
  4913. done
  4914. IFS=$lt_save_ifs
  4915. else
  4916. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4917. fi
  4918. fi
  4919. LD=$lt_cv_path_LD
  4920. if test -n "$LD"; then
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4922. $as_echo "$LD" >&6; }
  4923. else
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4925. $as_echo "no" >&6; }
  4926. fi
  4927. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4929. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4930. if ${lt_cv_prog_gnu_ld+:} false; then :
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4934. case `$LD -v 2>&1 </dev/null` in
  4935. *GNU* | *'with BFD'*)
  4936. lt_cv_prog_gnu_ld=yes
  4937. ;;
  4938. *)
  4939. lt_cv_prog_gnu_ld=no
  4940. ;;
  4941. esac
  4942. fi
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4944. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4945. with_gnu_ld=$lt_cv_prog_gnu_ld
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4947. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4948. if ${lt_cv_path_NM+:} false; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$NM"; then
  4952. # Let the user override the test.
  4953. lt_cv_path_NM=$NM
  4954. else
  4955. lt_nm_to_check=${ac_tool_prefix}nm
  4956. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4957. lt_nm_to_check="$lt_nm_to_check nm"
  4958. fi
  4959. for lt_tmp_nm in $lt_nm_to_check; do
  4960. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4961. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4962. IFS=$lt_save_ifs
  4963. test -z "$ac_dir" && ac_dir=.
  4964. tmp_nm=$ac_dir/$lt_tmp_nm
  4965. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4966. # Check to see if the nm accepts a BSD-compat flag.
  4967. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4968. # nm: unknown option "B" ignored
  4969. # Tru64's nm complains that /dev/null is an invalid object file
  4970. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4971. case $build_os in
  4972. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4973. *) lt_bad_file=/dev/null ;;
  4974. esac
  4975. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4976. *$lt_bad_file* | *'Invalid file or object type'*)
  4977. lt_cv_path_NM="$tmp_nm -B"
  4978. break 2
  4979. ;;
  4980. *)
  4981. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4982. */dev/null*)
  4983. lt_cv_path_NM="$tmp_nm -p"
  4984. break 2
  4985. ;;
  4986. *)
  4987. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4988. continue # so that we can try to find one that supports BSD flags
  4989. ;;
  4990. esac
  4991. ;;
  4992. esac
  4993. fi
  4994. done
  4995. IFS=$lt_save_ifs
  4996. done
  4997. : ${lt_cv_path_NM=no}
  4998. fi
  4999. fi
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5001. $as_echo "$lt_cv_path_NM" >&6; }
  5002. if test no != "$lt_cv_path_NM"; then
  5003. NM=$lt_cv_path_NM
  5004. else
  5005. # Didn't find any BSD compatible name lister, look for dumpbin.
  5006. if test -n "$DUMPBIN"; then :
  5007. # Let the user override the test.
  5008. else
  5009. if test -n "$ac_tool_prefix"; then
  5010. for ac_prog in dumpbin "link -dump"
  5011. do
  5012. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5013. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5015. $as_echo_n "checking for $ac_word... " >&6; }
  5016. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. if test -n "$DUMPBIN"; then
  5020. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5021. else
  5022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5023. for as_dir in $PATH
  5024. do
  5025. IFS=$as_save_IFS
  5026. test -z "$as_dir" && as_dir=.
  5027. for ac_exec_ext in '' $ac_executable_extensions; do
  5028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5029. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5031. break 2
  5032. fi
  5033. done
  5034. done
  5035. IFS=$as_save_IFS
  5036. fi
  5037. fi
  5038. DUMPBIN=$ac_cv_prog_DUMPBIN
  5039. if test -n "$DUMPBIN"; then
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5041. $as_echo "$DUMPBIN" >&6; }
  5042. else
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5044. $as_echo "no" >&6; }
  5045. fi
  5046. test -n "$DUMPBIN" && break
  5047. done
  5048. fi
  5049. if test -z "$DUMPBIN"; then
  5050. ac_ct_DUMPBIN=$DUMPBIN
  5051. for ac_prog in dumpbin "link -dump"
  5052. do
  5053. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5054. set dummy $ac_prog; ac_word=$2
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5056. $as_echo_n "checking for $ac_word... " >&6; }
  5057. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. if test -n "$ac_ct_DUMPBIN"; then
  5061. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5062. else
  5063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5064. for as_dir in $PATH
  5065. do
  5066. IFS=$as_save_IFS
  5067. test -z "$as_dir" && as_dir=.
  5068. for ac_exec_ext in '' $ac_executable_extensions; do
  5069. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5070. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5072. break 2
  5073. fi
  5074. done
  5075. done
  5076. IFS=$as_save_IFS
  5077. fi
  5078. fi
  5079. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5080. if test -n "$ac_ct_DUMPBIN"; then
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5082. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5083. else
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5085. $as_echo "no" >&6; }
  5086. fi
  5087. test -n "$ac_ct_DUMPBIN" && break
  5088. done
  5089. if test "x$ac_ct_DUMPBIN" = x; then
  5090. DUMPBIN=":"
  5091. else
  5092. case $cross_compiling:$ac_tool_warned in
  5093. yes:)
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5095. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5096. ac_tool_warned=yes ;;
  5097. esac
  5098. DUMPBIN=$ac_ct_DUMPBIN
  5099. fi
  5100. fi
  5101. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5102. *COFF*)
  5103. DUMPBIN="$DUMPBIN -symbols -headers"
  5104. ;;
  5105. *)
  5106. DUMPBIN=:
  5107. ;;
  5108. esac
  5109. fi
  5110. if test : != "$DUMPBIN"; then
  5111. NM=$DUMPBIN
  5112. fi
  5113. fi
  5114. test -z "$NM" && NM=nm
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5116. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5117. if ${lt_cv_nm_interface+:} false; then :
  5118. $as_echo_n "(cached) " >&6
  5119. else
  5120. lt_cv_nm_interface="BSD nm"
  5121. echo "int some_variable = 0;" > conftest.$ac_ext
  5122. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5123. (eval "$ac_compile" 2>conftest.err)
  5124. cat conftest.err >&5
  5125. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5126. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5127. cat conftest.err >&5
  5128. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5129. cat conftest.out >&5
  5130. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5131. lt_cv_nm_interface="MS dumpbin"
  5132. fi
  5133. rm -f conftest*
  5134. fi
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5136. $as_echo "$lt_cv_nm_interface" >&6; }
  5137. # find the maximum length of command line arguments
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5139. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5140. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5141. $as_echo_n "(cached) " >&6
  5142. else
  5143. i=0
  5144. teststring=ABCD
  5145. case $build_os in
  5146. msdosdjgpp*)
  5147. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5148. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5149. # during glob expansion). Even if it were fixed, the result of this
  5150. # check would be larger than it should be.
  5151. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5152. ;;
  5153. gnu*)
  5154. # Under GNU Hurd, this test is not required because there is
  5155. # no limit to the length of command line arguments.
  5156. # Libtool will interpret -1 as no limit whatsoever
  5157. lt_cv_sys_max_cmd_len=-1;
  5158. ;;
  5159. cygwin* | mingw* | cegcc*)
  5160. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5161. # about 5 minutes as the teststring grows exponentially.
  5162. # Worse, since 9x/ME are not pre-emptively multitasking,
  5163. # you end up with a "frozen" computer, even though with patience
  5164. # the test eventually succeeds (with a max line length of 256k).
  5165. # Instead, let's just punt: use the minimum linelength reported by
  5166. # all of the supported platforms: 8192 (on NT/2K/XP).
  5167. lt_cv_sys_max_cmd_len=8192;
  5168. ;;
  5169. mint*)
  5170. # On MiNT this can take a long time and run out of memory.
  5171. lt_cv_sys_max_cmd_len=8192;
  5172. ;;
  5173. amigaos*)
  5174. # On AmigaOS with pdksh, this test takes hours, literally.
  5175. # So we just punt and use a minimum line length of 8192.
  5176. lt_cv_sys_max_cmd_len=8192;
  5177. ;;
  5178. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5179. # This has been around since 386BSD, at least. Likely further.
  5180. if test -x /sbin/sysctl; then
  5181. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5182. elif test -x /usr/sbin/sysctl; then
  5183. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5184. else
  5185. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5186. fi
  5187. # And add a safety zone
  5188. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5189. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5190. ;;
  5191. interix*)
  5192. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5193. lt_cv_sys_max_cmd_len=196608
  5194. ;;
  5195. os2*)
  5196. # The test takes a long time on OS/2.
  5197. lt_cv_sys_max_cmd_len=8192
  5198. ;;
  5199. osf*)
  5200. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5201. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5202. # nice to cause kernel panics so lets avoid the loop below.
  5203. # First set a reasonable default.
  5204. lt_cv_sys_max_cmd_len=16384
  5205. #
  5206. if test -x /sbin/sysconfig; then
  5207. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5208. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5209. esac
  5210. fi
  5211. ;;
  5212. sco3.2v5*)
  5213. lt_cv_sys_max_cmd_len=102400
  5214. ;;
  5215. sysv5* | sco5v6* | sysv4.2uw2*)
  5216. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5217. if test -n "$kargmax"; then
  5218. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5219. else
  5220. lt_cv_sys_max_cmd_len=32768
  5221. fi
  5222. ;;
  5223. *)
  5224. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5225. if test -n "$lt_cv_sys_max_cmd_len" && \
  5226. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5227. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5228. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5229. else
  5230. # Make teststring a little bigger before we do anything with it.
  5231. # a 1K string should be a reasonable start.
  5232. for i in 1 2 3 4 5 6 7 8; do
  5233. teststring=$teststring$teststring
  5234. done
  5235. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5236. # If test is not a shell built-in, we'll probably end up computing a
  5237. # maximum length that is only half of the actual maximum length, but
  5238. # we can't tell.
  5239. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5240. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5241. test 17 != "$i" # 1/2 MB should be enough
  5242. do
  5243. i=`expr $i + 1`
  5244. teststring=$teststring$teststring
  5245. done
  5246. # Only check the string length outside the loop.
  5247. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5248. teststring=
  5249. # Add a significant safety factor because C++ compilers can tack on
  5250. # massive amounts of additional arguments before passing them to the
  5251. # linker. It appears as though 1/2 is a usable value.
  5252. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5253. fi
  5254. ;;
  5255. esac
  5256. fi
  5257. if test -n "$lt_cv_sys_max_cmd_len"; then
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5259. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5260. else
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5262. $as_echo "none" >&6; }
  5263. fi
  5264. max_cmd_len=$lt_cv_sys_max_cmd_len
  5265. : ${CP="cp -f"}
  5266. : ${MV="mv -f"}
  5267. : ${RM="rm -f"}
  5268. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5269. lt_unset=unset
  5270. else
  5271. lt_unset=false
  5272. fi
  5273. # test EBCDIC or ASCII
  5274. case `echo X|tr X '\101'` in
  5275. A) # ASCII based system
  5276. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5277. lt_SP2NL='tr \040 \012'
  5278. lt_NL2SP='tr \015\012 \040\040'
  5279. ;;
  5280. *) # EBCDIC based system
  5281. lt_SP2NL='tr \100 \n'
  5282. lt_NL2SP='tr \r\n \100\100'
  5283. ;;
  5284. esac
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5286. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5287. if ${lt_cv_to_host_file_cmd+:} false; then :
  5288. $as_echo_n "(cached) " >&6
  5289. else
  5290. case $host in
  5291. *-*-mingw* )
  5292. case $build in
  5293. *-*-mingw* ) # actually msys
  5294. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5295. ;;
  5296. *-*-cygwin* )
  5297. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5298. ;;
  5299. * ) # otherwise, assume *nix
  5300. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5301. ;;
  5302. esac
  5303. ;;
  5304. *-*-cygwin* )
  5305. case $build in
  5306. *-*-mingw* ) # actually msys
  5307. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5308. ;;
  5309. *-*-cygwin* )
  5310. lt_cv_to_host_file_cmd=func_convert_file_noop
  5311. ;;
  5312. * ) # otherwise, assume *nix
  5313. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5314. ;;
  5315. esac
  5316. ;;
  5317. * ) # unhandled hosts (and "normal" native builds)
  5318. lt_cv_to_host_file_cmd=func_convert_file_noop
  5319. ;;
  5320. esac
  5321. fi
  5322. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5324. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5326. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5327. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5328. $as_echo_n "(cached) " >&6
  5329. else
  5330. #assume ordinary cross tools, or native build.
  5331. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5332. case $host in
  5333. *-*-mingw* )
  5334. case $build in
  5335. *-*-mingw* ) # actually msys
  5336. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5337. ;;
  5338. esac
  5339. ;;
  5340. esac
  5341. fi
  5342. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5344. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5346. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5347. if ${lt_cv_ld_reload_flag+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. lt_cv_ld_reload_flag='-r'
  5351. fi
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5353. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5354. reload_flag=$lt_cv_ld_reload_flag
  5355. case $reload_flag in
  5356. "" | " "*) ;;
  5357. *) reload_flag=" $reload_flag" ;;
  5358. esac
  5359. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5360. case $host_os in
  5361. cygwin* | mingw* | pw32* | cegcc*)
  5362. if test yes != "$GCC"; then
  5363. reload_cmds=false
  5364. fi
  5365. ;;
  5366. darwin*)
  5367. if test yes = "$GCC"; then
  5368. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5369. else
  5370. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5371. fi
  5372. ;;
  5373. esac
  5374. if test -n "$ac_tool_prefix"; then
  5375. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5376. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5378. $as_echo_n "checking for $ac_word... " >&6; }
  5379. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5380. $as_echo_n "(cached) " >&6
  5381. else
  5382. if test -n "$OBJDUMP"; then
  5383. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5384. else
  5385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5386. for as_dir in $PATH
  5387. do
  5388. IFS=$as_save_IFS
  5389. test -z "$as_dir" && as_dir=.
  5390. for ac_exec_ext in '' $ac_executable_extensions; do
  5391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5392. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5394. break 2
  5395. fi
  5396. done
  5397. done
  5398. IFS=$as_save_IFS
  5399. fi
  5400. fi
  5401. OBJDUMP=$ac_cv_prog_OBJDUMP
  5402. if test -n "$OBJDUMP"; then
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5404. $as_echo "$OBJDUMP" >&6; }
  5405. else
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5407. $as_echo "no" >&6; }
  5408. fi
  5409. fi
  5410. if test -z "$ac_cv_prog_OBJDUMP"; then
  5411. ac_ct_OBJDUMP=$OBJDUMP
  5412. # Extract the first word of "objdump", so it can be a program name with args.
  5413. set dummy objdump; ac_word=$2
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5415. $as_echo_n "checking for $ac_word... " >&6; }
  5416. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5417. $as_echo_n "(cached) " >&6
  5418. else
  5419. if test -n "$ac_ct_OBJDUMP"; then
  5420. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5421. else
  5422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5423. for as_dir in $PATH
  5424. do
  5425. IFS=$as_save_IFS
  5426. test -z "$as_dir" && as_dir=.
  5427. for ac_exec_ext in '' $ac_executable_extensions; do
  5428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5429. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5431. break 2
  5432. fi
  5433. done
  5434. done
  5435. IFS=$as_save_IFS
  5436. fi
  5437. fi
  5438. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5439. if test -n "$ac_ct_OBJDUMP"; then
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5441. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5442. else
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5444. $as_echo "no" >&6; }
  5445. fi
  5446. if test "x$ac_ct_OBJDUMP" = x; then
  5447. OBJDUMP="false"
  5448. else
  5449. case $cross_compiling:$ac_tool_warned in
  5450. yes:)
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5452. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5453. ac_tool_warned=yes ;;
  5454. esac
  5455. OBJDUMP=$ac_ct_OBJDUMP
  5456. fi
  5457. else
  5458. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5459. fi
  5460. test -z "$OBJDUMP" && OBJDUMP=objdump
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5462. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5463. if ${lt_cv_deplibs_check_method+:} false; then :
  5464. $as_echo_n "(cached) " >&6
  5465. else
  5466. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5467. lt_cv_file_magic_test_file=
  5468. lt_cv_deplibs_check_method='unknown'
  5469. # Need to set the preceding variable on all platforms that support
  5470. # interlibrary dependencies.
  5471. # 'none' -- dependencies not supported.
  5472. # 'unknown' -- same as none, but documents that we really don't know.
  5473. # 'pass_all' -- all dependencies passed with no checks.
  5474. # 'test_compile' -- check by making test program.
  5475. # 'file_magic [[regex]]' -- check by looking for files in library path
  5476. # that responds to the $file_magic_cmd with a given extended regex.
  5477. # If you have 'file' or equivalent on your system and you're not sure
  5478. # whether 'pass_all' will *always* work, you probably want this one.
  5479. case $host_os in
  5480. aix[4-9]*)
  5481. lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. beos*)
  5484. lt_cv_deplibs_check_method=pass_all
  5485. ;;
  5486. bsdi[45]*)
  5487. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5488. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5489. lt_cv_file_magic_test_file=/shlib/libc.so
  5490. ;;
  5491. cygwin*)
  5492. # func_win32_libid is a shell function defined in ltmain.sh
  5493. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5494. lt_cv_file_magic_cmd='func_win32_libid'
  5495. ;;
  5496. mingw* | pw32*)
  5497. # Base MSYS/MinGW do not provide the 'file' command needed by
  5498. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5499. # unless we find 'file', for example because we are cross-compiling.
  5500. if ( file / ) >/dev/null 2>&1; then
  5501. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5502. lt_cv_file_magic_cmd='func_win32_libid'
  5503. else
  5504. # Keep this pattern in sync with the one in func_win32_libid.
  5505. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5506. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5507. fi
  5508. ;;
  5509. cegcc*)
  5510. # use the weaker test based on 'objdump'. See mingw*.
  5511. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5512. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5513. ;;
  5514. darwin* | rhapsody*)
  5515. lt_cv_deplibs_check_method=pass_all
  5516. ;;
  5517. freebsd* | dragonfly*)
  5518. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5519. case $host_cpu in
  5520. i*86 )
  5521. # Not sure whether the presence of OpenBSD here was a mistake.
  5522. # Let's accept both of them until this is cleared up.
  5523. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5524. lt_cv_file_magic_cmd=/usr/bin/file
  5525. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5526. ;;
  5527. esac
  5528. else
  5529. lt_cv_deplibs_check_method=pass_all
  5530. fi
  5531. ;;
  5532. haiku*)
  5533. lt_cv_deplibs_check_method=pass_all
  5534. ;;
  5535. hpux10.20* | hpux11*)
  5536. lt_cv_file_magic_cmd=/usr/bin/file
  5537. case $host_cpu in
  5538. ia64*)
  5539. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5540. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5541. ;;
  5542. hppa*64*)
  5543. 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]'
  5544. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5545. ;;
  5546. *)
  5547. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5548. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5549. ;;
  5550. esac
  5551. ;;
  5552. interix[3-9]*)
  5553. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5554. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5555. ;;
  5556. irix5* | irix6* | nonstopux*)
  5557. case $LD in
  5558. *-32|*"-32 ") libmagic=32-bit;;
  5559. *-n32|*"-n32 ") libmagic=N32;;
  5560. *-64|*"-64 ") libmagic=64-bit;;
  5561. *) libmagic=never-match;;
  5562. esac
  5563. lt_cv_deplibs_check_method=pass_all
  5564. ;;
  5565. # This must be glibc/ELF.
  5566. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5567. lt_cv_deplibs_check_method=pass_all
  5568. ;;
  5569. netbsd*)
  5570. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5571. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5572. else
  5573. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5574. fi
  5575. ;;
  5576. newos6*)
  5577. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5578. lt_cv_file_magic_cmd=/usr/bin/file
  5579. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5580. ;;
  5581. *nto* | *qnx*)
  5582. lt_cv_deplibs_check_method=pass_all
  5583. ;;
  5584. openbsd* | bitrig*)
  5585. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5586. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5587. else
  5588. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5589. fi
  5590. ;;
  5591. osf3* | osf4* | osf5*)
  5592. lt_cv_deplibs_check_method=pass_all
  5593. ;;
  5594. rdos*)
  5595. lt_cv_deplibs_check_method=pass_all
  5596. ;;
  5597. solaris*)
  5598. lt_cv_deplibs_check_method=pass_all
  5599. ;;
  5600. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5601. lt_cv_deplibs_check_method=pass_all
  5602. ;;
  5603. sysv4 | sysv4.3*)
  5604. case $host_vendor in
  5605. motorola)
  5606. 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]'
  5607. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5608. ;;
  5609. ncr)
  5610. lt_cv_deplibs_check_method=pass_all
  5611. ;;
  5612. sequent)
  5613. lt_cv_file_magic_cmd='/bin/file'
  5614. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5615. ;;
  5616. sni)
  5617. lt_cv_file_magic_cmd='/bin/file'
  5618. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5619. lt_cv_file_magic_test_file=/lib/libc.so
  5620. ;;
  5621. siemens)
  5622. lt_cv_deplibs_check_method=pass_all
  5623. ;;
  5624. pc)
  5625. lt_cv_deplibs_check_method=pass_all
  5626. ;;
  5627. esac
  5628. ;;
  5629. tpf*)
  5630. lt_cv_deplibs_check_method=pass_all
  5631. ;;
  5632. os2*)
  5633. lt_cv_deplibs_check_method=pass_all
  5634. ;;
  5635. esac
  5636. fi
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5638. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5639. file_magic_glob=
  5640. want_nocaseglob=no
  5641. if test "$build" = "$host"; then
  5642. case $host_os in
  5643. mingw* | pw32*)
  5644. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5645. want_nocaseglob=yes
  5646. else
  5647. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5648. fi
  5649. ;;
  5650. esac
  5651. fi
  5652. file_magic_cmd=$lt_cv_file_magic_cmd
  5653. deplibs_check_method=$lt_cv_deplibs_check_method
  5654. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5655. if test -n "$ac_tool_prefix"; then
  5656. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5657. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. $as_echo_n "checking for $ac_word... " >&6; }
  5660. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. if test -n "$DLLTOOL"; then
  5664. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5665. else
  5666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5667. for as_dir in $PATH
  5668. do
  5669. IFS=$as_save_IFS
  5670. test -z "$as_dir" && as_dir=.
  5671. for ac_exec_ext in '' $ac_executable_extensions; do
  5672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5673. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5675. break 2
  5676. fi
  5677. done
  5678. done
  5679. IFS=$as_save_IFS
  5680. fi
  5681. fi
  5682. DLLTOOL=$ac_cv_prog_DLLTOOL
  5683. if test -n "$DLLTOOL"; then
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5685. $as_echo "$DLLTOOL" >&6; }
  5686. else
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5688. $as_echo "no" >&6; }
  5689. fi
  5690. fi
  5691. if test -z "$ac_cv_prog_DLLTOOL"; then
  5692. ac_ct_DLLTOOL=$DLLTOOL
  5693. # Extract the first word of "dlltool", so it can be a program name with args.
  5694. set dummy dlltool; ac_word=$2
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5696. $as_echo_n "checking for $ac_word... " >&6; }
  5697. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. if test -n "$ac_ct_DLLTOOL"; then
  5701. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5702. else
  5703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704. for as_dir in $PATH
  5705. do
  5706. IFS=$as_save_IFS
  5707. test -z "$as_dir" && as_dir=.
  5708. for ac_exec_ext in '' $ac_executable_extensions; do
  5709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5710. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5712. break 2
  5713. fi
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. fi
  5719. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5720. if test -n "$ac_ct_DLLTOOL"; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5722. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5723. else
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5725. $as_echo "no" >&6; }
  5726. fi
  5727. if test "x$ac_ct_DLLTOOL" = x; then
  5728. DLLTOOL="false"
  5729. else
  5730. case $cross_compiling:$ac_tool_warned in
  5731. yes:)
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5734. ac_tool_warned=yes ;;
  5735. esac
  5736. DLLTOOL=$ac_ct_DLLTOOL
  5737. fi
  5738. else
  5739. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5740. fi
  5741. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5743. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5744. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5748. case $host_os in
  5749. cygwin* | mingw* | pw32* | cegcc*)
  5750. # two different shell functions defined in ltmain.sh;
  5751. # decide which one to use based on capabilities of $DLLTOOL
  5752. case `$DLLTOOL --help 2>&1` in
  5753. *--identify-strict*)
  5754. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5755. ;;
  5756. *)
  5757. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5758. ;;
  5759. esac
  5760. ;;
  5761. *)
  5762. # fallback: assume linklib IS sharedlib
  5763. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5764. ;;
  5765. esac
  5766. fi
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5768. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5769. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5770. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5771. if test -n "$ac_tool_prefix"; then
  5772. for ac_prog in ar
  5773. do
  5774. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5775. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5777. $as_echo_n "checking for $ac_word... " >&6; }
  5778. if ${ac_cv_prog_AR+:} false; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. if test -n "$AR"; then
  5782. ac_cv_prog_AR="$AR" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. test -z "$as_dir" && as_dir=.
  5789. for ac_exec_ext in '' $ac_executable_extensions; do
  5790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5791. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5793. break 2
  5794. fi
  5795. done
  5796. done
  5797. IFS=$as_save_IFS
  5798. fi
  5799. fi
  5800. AR=$ac_cv_prog_AR
  5801. if test -n "$AR"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5803. $as_echo "$AR" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. test -n "$AR" && break
  5809. done
  5810. fi
  5811. if test -z "$AR"; then
  5812. ac_ct_AR=$AR
  5813. for ac_prog in ar
  5814. do
  5815. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5816. set dummy $ac_prog; ac_word=$2
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. $as_echo_n "checking for $ac_word... " >&6; }
  5819. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. if test -n "$ac_ct_AR"; then
  5823. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. test -z "$as_dir" && as_dir=.
  5830. for ac_exec_ext in '' $ac_executable_extensions; do
  5831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5832. ac_cv_prog_ac_ct_AR="$ac_prog"
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5834. break 2
  5835. fi
  5836. done
  5837. done
  5838. IFS=$as_save_IFS
  5839. fi
  5840. fi
  5841. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5842. if test -n "$ac_ct_AR"; then
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5844. $as_echo "$ac_ct_AR" >&6; }
  5845. else
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5847. $as_echo "no" >&6; }
  5848. fi
  5849. test -n "$ac_ct_AR" && break
  5850. done
  5851. if test "x$ac_ct_AR" = x; then
  5852. AR="false"
  5853. else
  5854. case $cross_compiling:$ac_tool_warned in
  5855. yes:)
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5858. ac_tool_warned=yes ;;
  5859. esac
  5860. AR=$ac_ct_AR
  5861. fi
  5862. fi
  5863. : ${AR=ar}
  5864. : ${AR_FLAGS=cru}
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5866. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5867. if ${lt_cv_ar_at_file+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. lt_cv_ar_at_file=no
  5871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5872. /* end confdefs.h. */
  5873. int
  5874. main ()
  5875. {
  5876. ;
  5877. return 0;
  5878. }
  5879. _ACEOF
  5880. if ac_fn_c_try_compile "$LINENO"; then :
  5881. echo conftest.$ac_objext > conftest.lst
  5882. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5883. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5884. (eval $lt_ar_try) 2>&5
  5885. ac_status=$?
  5886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5887. test $ac_status = 0; }
  5888. if test 0 -eq "$ac_status"; then
  5889. # Ensure the archiver fails upon bogus file names.
  5890. rm -f conftest.$ac_objext libconftest.a
  5891. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5892. (eval $lt_ar_try) 2>&5
  5893. ac_status=$?
  5894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5895. test $ac_status = 0; }
  5896. if test 0 -ne "$ac_status"; then
  5897. lt_cv_ar_at_file=@
  5898. fi
  5899. fi
  5900. rm -f conftest.* libconftest.a
  5901. fi
  5902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5903. fi
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5905. $as_echo "$lt_cv_ar_at_file" >&6; }
  5906. if test no = "$lt_cv_ar_at_file"; then
  5907. archiver_list_spec=
  5908. else
  5909. archiver_list_spec=$lt_cv_ar_at_file
  5910. fi
  5911. if test -n "$ac_tool_prefix"; then
  5912. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5913. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if ${ac_cv_prog_STRIP+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$STRIP"; then
  5920. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5929. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. STRIP=$ac_cv_prog_STRIP
  5939. if test -n "$STRIP"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5941. $as_echo "$STRIP" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. fi
  5947. if test -z "$ac_cv_prog_STRIP"; then
  5948. ac_ct_STRIP=$STRIP
  5949. # Extract the first word of "strip", so it can be a program name with args.
  5950. set dummy strip; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$ac_ct_STRIP"; then
  5957. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5966. ac_cv_prog_ac_ct_STRIP="strip"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5976. if test -n "$ac_ct_STRIP"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5978. $as_echo "$ac_ct_STRIP" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. if test "x$ac_ct_STRIP" = x; then
  5984. STRIP=":"
  5985. else
  5986. case $cross_compiling:$ac_tool_warned in
  5987. yes:)
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5990. ac_tool_warned=yes ;;
  5991. esac
  5992. STRIP=$ac_ct_STRIP
  5993. fi
  5994. else
  5995. STRIP="$ac_cv_prog_STRIP"
  5996. fi
  5997. test -z "$STRIP" && STRIP=:
  5998. if test -n "$ac_tool_prefix"; then
  5999. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6000. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6002. $as_echo_n "checking for $ac_word... " >&6; }
  6003. if ${ac_cv_prog_RANLIB+:} false; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. if test -n "$RANLIB"; then
  6007. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6008. else
  6009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6010. for as_dir in $PATH
  6011. do
  6012. IFS=$as_save_IFS
  6013. test -z "$as_dir" && as_dir=.
  6014. for ac_exec_ext in '' $ac_executable_extensions; do
  6015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6016. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6018. break 2
  6019. fi
  6020. done
  6021. done
  6022. IFS=$as_save_IFS
  6023. fi
  6024. fi
  6025. RANLIB=$ac_cv_prog_RANLIB
  6026. if test -n "$RANLIB"; then
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6028. $as_echo "$RANLIB" >&6; }
  6029. else
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6031. $as_echo "no" >&6; }
  6032. fi
  6033. fi
  6034. if test -z "$ac_cv_prog_RANLIB"; then
  6035. ac_ct_RANLIB=$RANLIB
  6036. # Extract the first word of "ranlib", so it can be a program name with args.
  6037. set dummy ranlib; ac_word=$2
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$ac_ct_RANLIB"; then
  6044. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6053. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6063. if test -n "$ac_ct_RANLIB"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6065. $as_echo "$ac_ct_RANLIB" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. if test "x$ac_ct_RANLIB" = x; then
  6071. RANLIB=":"
  6072. else
  6073. case $cross_compiling:$ac_tool_warned in
  6074. yes:)
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6077. ac_tool_warned=yes ;;
  6078. esac
  6079. RANLIB=$ac_ct_RANLIB
  6080. fi
  6081. else
  6082. RANLIB="$ac_cv_prog_RANLIB"
  6083. fi
  6084. test -z "$RANLIB" && RANLIB=:
  6085. # Determine commands to create old-style static archives.
  6086. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6087. old_postinstall_cmds='chmod 644 $oldlib'
  6088. old_postuninstall_cmds=
  6089. if test -n "$RANLIB"; then
  6090. case $host_os in
  6091. bitrig* | openbsd*)
  6092. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6093. ;;
  6094. *)
  6095. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6096. ;;
  6097. esac
  6098. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6099. fi
  6100. case $host_os in
  6101. darwin*)
  6102. lock_old_archive_extraction=yes ;;
  6103. *)
  6104. lock_old_archive_extraction=no ;;
  6105. esac
  6106. # If no C compiler was specified, use CC.
  6107. LTCC=${LTCC-"$CC"}
  6108. # If no C compiler flags were specified, use CFLAGS.
  6109. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6110. # Allow CC to be a program name with arguments.
  6111. compiler=$CC
  6112. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6114. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6115. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. # These are sane defaults that work on at least a few old systems.
  6119. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6120. # Character class describing NM global symbol codes.
  6121. symcode='[BCDEGRST]'
  6122. # Regexp to match symbols that can be accessed directly from C.
  6123. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6124. # Define system-specific variables.
  6125. case $host_os in
  6126. aix*)
  6127. symcode='[BCDT]'
  6128. ;;
  6129. cygwin* | mingw* | pw32* | cegcc*)
  6130. symcode='[ABCDGISTW]'
  6131. ;;
  6132. hpux*)
  6133. if test ia64 = "$host_cpu"; then
  6134. symcode='[ABCDEGRST]'
  6135. fi
  6136. ;;
  6137. irix* | nonstopux*)
  6138. symcode='[BCDEGRST]'
  6139. ;;
  6140. osf*)
  6141. symcode='[BCDEGQRST]'
  6142. ;;
  6143. solaris*)
  6144. symcode='[BDRT]'
  6145. ;;
  6146. sco3.2v5*)
  6147. symcode='[DT]'
  6148. ;;
  6149. sysv4.2uw2*)
  6150. symcode='[DT]'
  6151. ;;
  6152. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6153. symcode='[ABDT]'
  6154. ;;
  6155. sysv4)
  6156. symcode='[DFNSTU]'
  6157. ;;
  6158. esac
  6159. # If we're using GNU nm, then use its standard symbol codes.
  6160. case `$NM -V 2>&1` in
  6161. *GNU* | *'with BFD'*)
  6162. symcode='[ABCDGIRSTW]' ;;
  6163. esac
  6164. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6165. # Gets list of data symbols to import.
  6166. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6167. # Adjust the below global symbol transforms to fixup imported variables.
  6168. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6169. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6170. lt_c_name_lib_hook="\
  6171. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6172. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6173. else
  6174. # Disable hooks by default.
  6175. lt_cv_sys_global_symbol_to_import=
  6176. lt_cdecl_hook=
  6177. lt_c_name_hook=
  6178. lt_c_name_lib_hook=
  6179. fi
  6180. # Transform an extracted symbol line into a proper C declaration.
  6181. # Some systems (esp. on ia64) link data and code symbols differently,
  6182. # so use this general approach.
  6183. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6184. $lt_cdecl_hook\
  6185. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6186. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6187. # Transform an extracted symbol line into symbol name and symbol address
  6188. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6189. $lt_c_name_hook\
  6190. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6191. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6192. # Transform an extracted symbol line into symbol name with lib prefix and
  6193. # symbol address.
  6194. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6195. $lt_c_name_lib_hook\
  6196. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6197. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6198. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6199. # Handle CRLF in mingw tool chain
  6200. opt_cr=
  6201. case $build_os in
  6202. mingw*)
  6203. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6204. ;;
  6205. esac
  6206. # Try without a prefix underscore, then with it.
  6207. for ac_symprfx in "" "_"; do
  6208. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6209. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6210. # Write the raw and C identifiers.
  6211. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6212. # Fake it for dumpbin and say T for any non-static function,
  6213. # D for any global variable and I for any imported variable.
  6214. # Also find C++ and __fastcall symbols from MSVC++,
  6215. # which start with @ or ?.
  6216. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6217. " {last_section=section; section=\$ 3};"\
  6218. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6219. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6220. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6221. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6222. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6223. " \$ 0!~/External *\|/{next};"\
  6224. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6225. " {if(hide[section]) next};"\
  6226. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6227. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6228. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6229. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6230. " ' prfx=^$ac_symprfx"
  6231. else
  6232. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6233. fi
  6234. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6235. # Check to see that the pipe works correctly.
  6236. pipe_works=no
  6237. rm -f conftest*
  6238. cat > conftest.$ac_ext <<_LT_EOF
  6239. #ifdef __cplusplus
  6240. extern "C" {
  6241. #endif
  6242. char nm_test_var;
  6243. void nm_test_func(void);
  6244. void nm_test_func(void){}
  6245. #ifdef __cplusplus
  6246. }
  6247. #endif
  6248. int main(){nm_test_var='a';nm_test_func();return(0);}
  6249. _LT_EOF
  6250. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6251. (eval $ac_compile) 2>&5
  6252. ac_status=$?
  6253. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6254. test $ac_status = 0; }; then
  6255. # Now try to grab the symbols.
  6256. nlist=conftest.nm
  6257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6258. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6259. ac_status=$?
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6261. test $ac_status = 0; } && test -s "$nlist"; then
  6262. # Try sorting and uniquifying the output.
  6263. if sort "$nlist" | uniq > "$nlist"T; then
  6264. mv -f "$nlist"T "$nlist"
  6265. else
  6266. rm -f "$nlist"T
  6267. fi
  6268. # Make sure that we snagged all the symbols we need.
  6269. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6270. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6271. cat <<_LT_EOF > conftest.$ac_ext
  6272. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6273. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6274. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6275. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6276. # define LT_DLSYM_CONST
  6277. #elif defined __osf__
  6278. /* This system does not cope well with relocations in const data. */
  6279. # define LT_DLSYM_CONST
  6280. #else
  6281. # define LT_DLSYM_CONST const
  6282. #endif
  6283. #ifdef __cplusplus
  6284. extern "C" {
  6285. #endif
  6286. _LT_EOF
  6287. # Now generate the symbol file.
  6288. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6289. cat <<_LT_EOF >> conftest.$ac_ext
  6290. /* The mapping between symbol names and symbols. */
  6291. LT_DLSYM_CONST struct {
  6292. const char *name;
  6293. void *address;
  6294. }
  6295. lt__PROGRAM__LTX_preloaded_symbols[] =
  6296. {
  6297. { "@PROGRAM@", (void *) 0 },
  6298. _LT_EOF
  6299. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6300. cat <<\_LT_EOF >> conftest.$ac_ext
  6301. {0, (void *) 0}
  6302. };
  6303. /* This works around a problem in FreeBSD linker */
  6304. #ifdef FREEBSD_WORKAROUND
  6305. static const void *lt_preloaded_setup() {
  6306. return lt__PROGRAM__LTX_preloaded_symbols;
  6307. }
  6308. #endif
  6309. #ifdef __cplusplus
  6310. }
  6311. #endif
  6312. _LT_EOF
  6313. # Now try linking the two files.
  6314. mv conftest.$ac_objext conftstm.$ac_objext
  6315. lt_globsym_save_LIBS=$LIBS
  6316. lt_globsym_save_CFLAGS=$CFLAGS
  6317. LIBS=conftstm.$ac_objext
  6318. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6320. (eval $ac_link) 2>&5
  6321. ac_status=$?
  6322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6323. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6324. pipe_works=yes
  6325. fi
  6326. LIBS=$lt_globsym_save_LIBS
  6327. CFLAGS=$lt_globsym_save_CFLAGS
  6328. else
  6329. echo "cannot find nm_test_func in $nlist" >&5
  6330. fi
  6331. else
  6332. echo "cannot find nm_test_var in $nlist" >&5
  6333. fi
  6334. else
  6335. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6336. fi
  6337. else
  6338. echo "$progname: failed program was:" >&5
  6339. cat conftest.$ac_ext >&5
  6340. fi
  6341. rm -rf conftest* conftst*
  6342. # Do not use the global_symbol_pipe unless it works.
  6343. if test yes = "$pipe_works"; then
  6344. break
  6345. else
  6346. lt_cv_sys_global_symbol_pipe=
  6347. fi
  6348. done
  6349. fi
  6350. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6351. lt_cv_sys_global_symbol_to_cdecl=
  6352. fi
  6353. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6355. $as_echo "failed" >&6; }
  6356. else
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6358. $as_echo "ok" >&6; }
  6359. fi
  6360. # Response file support.
  6361. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6362. nm_file_list_spec='@'
  6363. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6364. nm_file_list_spec='@'
  6365. fi
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6367. $as_echo_n "checking for sysroot... " >&6; }
  6368. # Check whether --with-sysroot was given.
  6369. if test "${with_sysroot+set}" = set; then :
  6370. withval=$with_sysroot;
  6371. else
  6372. with_sysroot=no
  6373. fi
  6374. lt_sysroot=
  6375. case $with_sysroot in #(
  6376. yes)
  6377. if test yes = "$GCC"; then
  6378. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6379. fi
  6380. ;; #(
  6381. /*)
  6382. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6383. ;; #(
  6384. no|'')
  6385. ;; #(
  6386. *)
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6388. $as_echo "$with_sysroot" >&6; }
  6389. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6390. ;;
  6391. esac
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6393. $as_echo "${lt_sysroot:-no}" >&6; }
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6395. $as_echo_n "checking for a working dd... " >&6; }
  6396. if ${ac_cv_path_lt_DD+:} false; then :
  6397. $as_echo_n "(cached) " >&6
  6398. else
  6399. printf 0123456789abcdef0123456789abcdef >conftest.i
  6400. cat conftest.i conftest.i >conftest2.i
  6401. : ${lt_DD:=$DD}
  6402. if test -z "$lt_DD"; then
  6403. ac_path_lt_DD_found=false
  6404. # Loop through the user's path and test for each of PROGNAME-LIST
  6405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6406. for as_dir in $PATH
  6407. do
  6408. IFS=$as_save_IFS
  6409. test -z "$as_dir" && as_dir=.
  6410. for ac_prog in dd; do
  6411. for ac_exec_ext in '' $ac_executable_extensions; do
  6412. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6413. as_fn_executable_p "$ac_path_lt_DD" || continue
  6414. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6415. cmp -s conftest.i conftest.out \
  6416. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6417. fi
  6418. $ac_path_lt_DD_found && break 3
  6419. done
  6420. done
  6421. done
  6422. IFS=$as_save_IFS
  6423. if test -z "$ac_cv_path_lt_DD"; then
  6424. :
  6425. fi
  6426. else
  6427. ac_cv_path_lt_DD=$lt_DD
  6428. fi
  6429. rm -f conftest.i conftest2.i conftest.out
  6430. fi
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6432. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6434. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6435. if ${lt_cv_truncate_bin+:} false; then :
  6436. $as_echo_n "(cached) " >&6
  6437. else
  6438. printf 0123456789abcdef0123456789abcdef >conftest.i
  6439. cat conftest.i conftest.i >conftest2.i
  6440. lt_cv_truncate_bin=
  6441. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6442. cmp -s conftest.i conftest.out \
  6443. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6444. fi
  6445. rm -f conftest.i conftest2.i conftest.out
  6446. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6447. fi
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6449. $as_echo "$lt_cv_truncate_bin" >&6; }
  6450. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6451. func_cc_basename ()
  6452. {
  6453. for cc_temp in $*""; do
  6454. case $cc_temp in
  6455. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6456. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6457. \-*) ;;
  6458. *) break;;
  6459. esac
  6460. done
  6461. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6462. }
  6463. # Check whether --enable-libtool-lock was given.
  6464. if test "${enable_libtool_lock+set}" = set; then :
  6465. enableval=$enable_libtool_lock;
  6466. fi
  6467. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6468. # Some flags need to be propagated to the compiler or linker for good
  6469. # libtool support.
  6470. case $host in
  6471. ia64-*-hpux*)
  6472. # Find out what ABI is being produced by ac_compile, and set mode
  6473. # options accordingly.
  6474. echo 'int i;' > conftest.$ac_ext
  6475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6476. (eval $ac_compile) 2>&5
  6477. ac_status=$?
  6478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6479. test $ac_status = 0; }; then
  6480. case `/usr/bin/file conftest.$ac_objext` in
  6481. *ELF-32*)
  6482. HPUX_IA64_MODE=32
  6483. ;;
  6484. *ELF-64*)
  6485. HPUX_IA64_MODE=64
  6486. ;;
  6487. esac
  6488. fi
  6489. rm -rf conftest*
  6490. ;;
  6491. *-*-irix6*)
  6492. # Find out what ABI is being produced by ac_compile, and set linker
  6493. # options accordingly.
  6494. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6496. (eval $ac_compile) 2>&5
  6497. ac_status=$?
  6498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6499. test $ac_status = 0; }; then
  6500. if test yes = "$lt_cv_prog_gnu_ld"; then
  6501. case `/usr/bin/file conftest.$ac_objext` in
  6502. *32-bit*)
  6503. LD="${LD-ld} -melf32bsmip"
  6504. ;;
  6505. *N32*)
  6506. LD="${LD-ld} -melf32bmipn32"
  6507. ;;
  6508. *64-bit*)
  6509. LD="${LD-ld} -melf64bmip"
  6510. ;;
  6511. esac
  6512. else
  6513. case `/usr/bin/file conftest.$ac_objext` in
  6514. *32-bit*)
  6515. LD="${LD-ld} -32"
  6516. ;;
  6517. *N32*)
  6518. LD="${LD-ld} -n32"
  6519. ;;
  6520. *64-bit*)
  6521. LD="${LD-ld} -64"
  6522. ;;
  6523. esac
  6524. fi
  6525. fi
  6526. rm -rf conftest*
  6527. ;;
  6528. mips64*-*linux*)
  6529. # Find out what ABI is being produced by ac_compile, and set linker
  6530. # options accordingly.
  6531. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6533. (eval $ac_compile) 2>&5
  6534. ac_status=$?
  6535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6536. test $ac_status = 0; }; then
  6537. emul=elf
  6538. case `/usr/bin/file conftest.$ac_objext` in
  6539. *32-bit*)
  6540. emul="${emul}32"
  6541. ;;
  6542. *64-bit*)
  6543. emul="${emul}64"
  6544. ;;
  6545. esac
  6546. case `/usr/bin/file conftest.$ac_objext` in
  6547. *MSB*)
  6548. emul="${emul}btsmip"
  6549. ;;
  6550. *LSB*)
  6551. emul="${emul}ltsmip"
  6552. ;;
  6553. esac
  6554. case `/usr/bin/file conftest.$ac_objext` in
  6555. *N32*)
  6556. emul="${emul}n32"
  6557. ;;
  6558. esac
  6559. LD="${LD-ld} -m $emul"
  6560. fi
  6561. rm -rf conftest*
  6562. ;;
  6563. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6564. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6565. # Find out what ABI is being produced by ac_compile, and set linker
  6566. # options accordingly. Note that the listed cases only cover the
  6567. # situations where additional linker options are needed (such as when
  6568. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6569. # vice versa); the common cases where no linker options are needed do
  6570. # not appear in the list.
  6571. echo 'int i;' > conftest.$ac_ext
  6572. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6573. (eval $ac_compile) 2>&5
  6574. ac_status=$?
  6575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6576. test $ac_status = 0; }; then
  6577. case `/usr/bin/file conftest.o` in
  6578. *32-bit*)
  6579. case $host in
  6580. x86_64-*kfreebsd*-gnu)
  6581. LD="${LD-ld} -m elf_i386_fbsd"
  6582. ;;
  6583. x86_64-*linux*)
  6584. case `/usr/bin/file conftest.o` in
  6585. *x86-64*)
  6586. LD="${LD-ld} -m elf32_x86_64"
  6587. ;;
  6588. *)
  6589. LD="${LD-ld} -m elf_i386"
  6590. ;;
  6591. esac
  6592. ;;
  6593. powerpc64le-*linux*)
  6594. LD="${LD-ld} -m elf32lppclinux"
  6595. ;;
  6596. powerpc64-*linux*)
  6597. LD="${LD-ld} -m elf32ppclinux"
  6598. ;;
  6599. s390x-*linux*)
  6600. LD="${LD-ld} -m elf_s390"
  6601. ;;
  6602. sparc64-*linux*)
  6603. LD="${LD-ld} -m elf32_sparc"
  6604. ;;
  6605. esac
  6606. ;;
  6607. *64-bit*)
  6608. case $host in
  6609. x86_64-*kfreebsd*-gnu)
  6610. LD="${LD-ld} -m elf_x86_64_fbsd"
  6611. ;;
  6612. x86_64-*linux*)
  6613. LD="${LD-ld} -m elf_x86_64"
  6614. ;;
  6615. powerpcle-*linux*)
  6616. LD="${LD-ld} -m elf64lppc"
  6617. ;;
  6618. powerpc-*linux*)
  6619. LD="${LD-ld} -m elf64ppc"
  6620. ;;
  6621. s390*-*linux*|s390*-*tpf*)
  6622. LD="${LD-ld} -m elf64_s390"
  6623. ;;
  6624. sparc*-*linux*)
  6625. LD="${LD-ld} -m elf64_sparc"
  6626. ;;
  6627. esac
  6628. ;;
  6629. esac
  6630. fi
  6631. rm -rf conftest*
  6632. ;;
  6633. *-*-sco3.2v5*)
  6634. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6635. SAVE_CFLAGS=$CFLAGS
  6636. CFLAGS="$CFLAGS -belf"
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6638. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6639. if ${lt_cv_cc_needs_belf+:} false; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. ac_ext=c
  6643. ac_cpp='$CPP $CPPFLAGS'
  6644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6648. /* end confdefs.h. */
  6649. int
  6650. main ()
  6651. {
  6652. ;
  6653. return 0;
  6654. }
  6655. _ACEOF
  6656. if ac_fn_c_try_link "$LINENO"; then :
  6657. lt_cv_cc_needs_belf=yes
  6658. else
  6659. lt_cv_cc_needs_belf=no
  6660. fi
  6661. rm -f core conftest.err conftest.$ac_objext \
  6662. conftest$ac_exeext conftest.$ac_ext
  6663. ac_ext=c
  6664. ac_cpp='$CPP $CPPFLAGS'
  6665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6668. fi
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6670. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6671. if test yes != "$lt_cv_cc_needs_belf"; then
  6672. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6673. CFLAGS=$SAVE_CFLAGS
  6674. fi
  6675. ;;
  6676. *-*solaris*)
  6677. # Find out what ABI is being produced by ac_compile, and set linker
  6678. # options accordingly.
  6679. echo 'int i;' > conftest.$ac_ext
  6680. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6681. (eval $ac_compile) 2>&5
  6682. ac_status=$?
  6683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6684. test $ac_status = 0; }; then
  6685. case `/usr/bin/file conftest.o` in
  6686. *64-bit*)
  6687. case $lt_cv_prog_gnu_ld in
  6688. yes*)
  6689. case $host in
  6690. i?86-*-solaris*|x86_64-*-solaris*)
  6691. LD="${LD-ld} -m elf_x86_64"
  6692. ;;
  6693. sparc*-*-solaris*)
  6694. LD="${LD-ld} -m elf64_sparc"
  6695. ;;
  6696. esac
  6697. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6698. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6699. LD=${LD-ld}_sol2
  6700. fi
  6701. ;;
  6702. *)
  6703. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6704. LD="${LD-ld} -64"
  6705. fi
  6706. ;;
  6707. esac
  6708. ;;
  6709. esac
  6710. fi
  6711. rm -rf conftest*
  6712. ;;
  6713. esac
  6714. need_locks=$enable_libtool_lock
  6715. if test -n "$ac_tool_prefix"; then
  6716. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6717. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6719. $as_echo_n "checking for $ac_word... " >&6; }
  6720. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. if test -n "$MANIFEST_TOOL"; then
  6724. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6725. else
  6726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6727. for as_dir in $PATH
  6728. do
  6729. IFS=$as_save_IFS
  6730. test -z "$as_dir" && as_dir=.
  6731. for ac_exec_ext in '' $ac_executable_extensions; do
  6732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6733. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6735. break 2
  6736. fi
  6737. done
  6738. done
  6739. IFS=$as_save_IFS
  6740. fi
  6741. fi
  6742. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6743. if test -n "$MANIFEST_TOOL"; then
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6745. $as_echo "$MANIFEST_TOOL" >&6; }
  6746. else
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6748. $as_echo "no" >&6; }
  6749. fi
  6750. fi
  6751. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6752. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6753. # Extract the first word of "mt", so it can be a program name with args.
  6754. set dummy mt; ac_word=$2
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6756. $as_echo_n "checking for $ac_word... " >&6; }
  6757. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6758. $as_echo_n "(cached) " >&6
  6759. else
  6760. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6761. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6762. else
  6763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6764. for as_dir in $PATH
  6765. do
  6766. IFS=$as_save_IFS
  6767. test -z "$as_dir" && as_dir=.
  6768. for ac_exec_ext in '' $ac_executable_extensions; do
  6769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6770. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6772. break 2
  6773. fi
  6774. done
  6775. done
  6776. IFS=$as_save_IFS
  6777. fi
  6778. fi
  6779. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6780. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6782. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6783. else
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6785. $as_echo "no" >&6; }
  6786. fi
  6787. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6788. MANIFEST_TOOL=":"
  6789. else
  6790. case $cross_compiling:$ac_tool_warned in
  6791. yes:)
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6793. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6794. ac_tool_warned=yes ;;
  6795. esac
  6796. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6797. fi
  6798. else
  6799. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6800. fi
  6801. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6803. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6804. if ${lt_cv_path_mainfest_tool+:} false; then :
  6805. $as_echo_n "(cached) " >&6
  6806. else
  6807. lt_cv_path_mainfest_tool=no
  6808. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6809. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6810. cat conftest.err >&5
  6811. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6812. lt_cv_path_mainfest_tool=yes
  6813. fi
  6814. rm -f conftest*
  6815. fi
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6817. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6818. if test yes != "$lt_cv_path_mainfest_tool"; then
  6819. MANIFEST_TOOL=:
  6820. fi
  6821. case $host_os in
  6822. rhapsody* | darwin*)
  6823. if test -n "$ac_tool_prefix"; then
  6824. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6825. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6827. $as_echo_n "checking for $ac_word... " >&6; }
  6828. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. if test -n "$DSYMUTIL"; then
  6832. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6833. else
  6834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6835. for as_dir in $PATH
  6836. do
  6837. IFS=$as_save_IFS
  6838. test -z "$as_dir" && as_dir=.
  6839. for ac_exec_ext in '' $ac_executable_extensions; do
  6840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6841. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6843. break 2
  6844. fi
  6845. done
  6846. done
  6847. IFS=$as_save_IFS
  6848. fi
  6849. fi
  6850. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6851. if test -n "$DSYMUTIL"; then
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6853. $as_echo "$DSYMUTIL" >&6; }
  6854. else
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6856. $as_echo "no" >&6; }
  6857. fi
  6858. fi
  6859. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6860. ac_ct_DSYMUTIL=$DSYMUTIL
  6861. # Extract the first word of "dsymutil", so it can be a program name with args.
  6862. set dummy dsymutil; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$ac_ct_DSYMUTIL"; then
  6869. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6878. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6888. if test -n "$ac_ct_DSYMUTIL"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6890. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. if test "x$ac_ct_DSYMUTIL" = x; then
  6896. DSYMUTIL=":"
  6897. else
  6898. case $cross_compiling:$ac_tool_warned in
  6899. yes:)
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6902. ac_tool_warned=yes ;;
  6903. esac
  6904. DSYMUTIL=$ac_ct_DSYMUTIL
  6905. fi
  6906. else
  6907. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6908. fi
  6909. if test -n "$ac_tool_prefix"; then
  6910. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6911. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6913. $as_echo_n "checking for $ac_word... " >&6; }
  6914. if ${ac_cv_prog_NMEDIT+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. if test -n "$NMEDIT"; then
  6918. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6919. else
  6920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6921. for as_dir in $PATH
  6922. do
  6923. IFS=$as_save_IFS
  6924. test -z "$as_dir" && as_dir=.
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6927. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6929. break 2
  6930. fi
  6931. done
  6932. done
  6933. IFS=$as_save_IFS
  6934. fi
  6935. fi
  6936. NMEDIT=$ac_cv_prog_NMEDIT
  6937. if test -n "$NMEDIT"; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6939. $as_echo "$NMEDIT" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. $as_echo "no" >&6; }
  6943. fi
  6944. fi
  6945. if test -z "$ac_cv_prog_NMEDIT"; then
  6946. ac_ct_NMEDIT=$NMEDIT
  6947. # Extract the first word of "nmedit", so it can be a program name with args.
  6948. set dummy nmedit; ac_word=$2
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6950. $as_echo_n "checking for $ac_word... " >&6; }
  6951. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. if test -n "$ac_ct_NMEDIT"; then
  6955. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. test -z "$as_dir" && as_dir=.
  6962. for ac_exec_ext in '' $ac_executable_extensions; do
  6963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6964. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6966. break 2
  6967. fi
  6968. done
  6969. done
  6970. IFS=$as_save_IFS
  6971. fi
  6972. fi
  6973. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6974. if test -n "$ac_ct_NMEDIT"; then
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6976. $as_echo "$ac_ct_NMEDIT" >&6; }
  6977. else
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. $as_echo "no" >&6; }
  6980. fi
  6981. if test "x$ac_ct_NMEDIT" = x; then
  6982. NMEDIT=":"
  6983. else
  6984. case $cross_compiling:$ac_tool_warned in
  6985. yes:)
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6988. ac_tool_warned=yes ;;
  6989. esac
  6990. NMEDIT=$ac_ct_NMEDIT
  6991. fi
  6992. else
  6993. NMEDIT="$ac_cv_prog_NMEDIT"
  6994. fi
  6995. if test -n "$ac_tool_prefix"; then
  6996. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6997. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6999. $as_echo_n "checking for $ac_word... " >&6; }
  7000. if ${ac_cv_prog_LIPO+:} false; then :
  7001. $as_echo_n "(cached) " >&6
  7002. else
  7003. if test -n "$LIPO"; then
  7004. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7005. else
  7006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7007. for as_dir in $PATH
  7008. do
  7009. IFS=$as_save_IFS
  7010. test -z "$as_dir" && as_dir=.
  7011. for ac_exec_ext in '' $ac_executable_extensions; do
  7012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7013. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7015. break 2
  7016. fi
  7017. done
  7018. done
  7019. IFS=$as_save_IFS
  7020. fi
  7021. fi
  7022. LIPO=$ac_cv_prog_LIPO
  7023. if test -n "$LIPO"; then
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7025. $as_echo "$LIPO" >&6; }
  7026. else
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7028. $as_echo "no" >&6; }
  7029. fi
  7030. fi
  7031. if test -z "$ac_cv_prog_LIPO"; then
  7032. ac_ct_LIPO=$LIPO
  7033. # Extract the first word of "lipo", so it can be a program name with args.
  7034. set dummy lipo; ac_word=$2
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7036. $as_echo_n "checking for $ac_word... " >&6; }
  7037. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7038. $as_echo_n "(cached) " >&6
  7039. else
  7040. if test -n "$ac_ct_LIPO"; then
  7041. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7042. else
  7043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7044. for as_dir in $PATH
  7045. do
  7046. IFS=$as_save_IFS
  7047. test -z "$as_dir" && as_dir=.
  7048. for ac_exec_ext in '' $ac_executable_extensions; do
  7049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7050. ac_cv_prog_ac_ct_LIPO="lipo"
  7051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7052. break 2
  7053. fi
  7054. done
  7055. done
  7056. IFS=$as_save_IFS
  7057. fi
  7058. fi
  7059. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7060. if test -n "$ac_ct_LIPO"; then
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7062. $as_echo "$ac_ct_LIPO" >&6; }
  7063. else
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7065. $as_echo "no" >&6; }
  7066. fi
  7067. if test "x$ac_ct_LIPO" = x; then
  7068. LIPO=":"
  7069. else
  7070. case $cross_compiling:$ac_tool_warned in
  7071. yes:)
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7073. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7074. ac_tool_warned=yes ;;
  7075. esac
  7076. LIPO=$ac_ct_LIPO
  7077. fi
  7078. else
  7079. LIPO="$ac_cv_prog_LIPO"
  7080. fi
  7081. if test -n "$ac_tool_prefix"; then
  7082. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7083. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7085. $as_echo_n "checking for $ac_word... " >&6; }
  7086. if ${ac_cv_prog_OTOOL+:} false; then :
  7087. $as_echo_n "(cached) " >&6
  7088. else
  7089. if test -n "$OTOOL"; then
  7090. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7091. else
  7092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7093. for as_dir in $PATH
  7094. do
  7095. IFS=$as_save_IFS
  7096. test -z "$as_dir" && as_dir=.
  7097. for ac_exec_ext in '' $ac_executable_extensions; do
  7098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7099. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7101. break 2
  7102. fi
  7103. done
  7104. done
  7105. IFS=$as_save_IFS
  7106. fi
  7107. fi
  7108. OTOOL=$ac_cv_prog_OTOOL
  7109. if test -n "$OTOOL"; then
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7111. $as_echo "$OTOOL" >&6; }
  7112. else
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7114. $as_echo "no" >&6; }
  7115. fi
  7116. fi
  7117. if test -z "$ac_cv_prog_OTOOL"; then
  7118. ac_ct_OTOOL=$OTOOL
  7119. # Extract the first word of "otool", so it can be a program name with args.
  7120. set dummy otool; ac_word=$2
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7122. $as_echo_n "checking for $ac_word... " >&6; }
  7123. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7124. $as_echo_n "(cached) " >&6
  7125. else
  7126. if test -n "$ac_ct_OTOOL"; then
  7127. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7128. else
  7129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7130. for as_dir in $PATH
  7131. do
  7132. IFS=$as_save_IFS
  7133. test -z "$as_dir" && as_dir=.
  7134. for ac_exec_ext in '' $ac_executable_extensions; do
  7135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7136. ac_cv_prog_ac_ct_OTOOL="otool"
  7137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7138. break 2
  7139. fi
  7140. done
  7141. done
  7142. IFS=$as_save_IFS
  7143. fi
  7144. fi
  7145. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7146. if test -n "$ac_ct_OTOOL"; then
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7148. $as_echo "$ac_ct_OTOOL" >&6; }
  7149. else
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7151. $as_echo "no" >&6; }
  7152. fi
  7153. if test "x$ac_ct_OTOOL" = x; then
  7154. OTOOL=":"
  7155. else
  7156. case $cross_compiling:$ac_tool_warned in
  7157. yes:)
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7160. ac_tool_warned=yes ;;
  7161. esac
  7162. OTOOL=$ac_ct_OTOOL
  7163. fi
  7164. else
  7165. OTOOL="$ac_cv_prog_OTOOL"
  7166. fi
  7167. if test -n "$ac_tool_prefix"; then
  7168. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7169. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7171. $as_echo_n "checking for $ac_word... " >&6; }
  7172. if ${ac_cv_prog_OTOOL64+:} false; then :
  7173. $as_echo_n "(cached) " >&6
  7174. else
  7175. if test -n "$OTOOL64"; then
  7176. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7177. else
  7178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7179. for as_dir in $PATH
  7180. do
  7181. IFS=$as_save_IFS
  7182. test -z "$as_dir" && as_dir=.
  7183. for ac_exec_ext in '' $ac_executable_extensions; do
  7184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7185. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7187. break 2
  7188. fi
  7189. done
  7190. done
  7191. IFS=$as_save_IFS
  7192. fi
  7193. fi
  7194. OTOOL64=$ac_cv_prog_OTOOL64
  7195. if test -n "$OTOOL64"; then
  7196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7197. $as_echo "$OTOOL64" >&6; }
  7198. else
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7200. $as_echo "no" >&6; }
  7201. fi
  7202. fi
  7203. if test -z "$ac_cv_prog_OTOOL64"; then
  7204. ac_ct_OTOOL64=$OTOOL64
  7205. # Extract the first word of "otool64", so it can be a program name with args.
  7206. set dummy otool64; ac_word=$2
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7208. $as_echo_n "checking for $ac_word... " >&6; }
  7209. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7210. $as_echo_n "(cached) " >&6
  7211. else
  7212. if test -n "$ac_ct_OTOOL64"; then
  7213. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7214. else
  7215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7216. for as_dir in $PATH
  7217. do
  7218. IFS=$as_save_IFS
  7219. test -z "$as_dir" && as_dir=.
  7220. for ac_exec_ext in '' $ac_executable_extensions; do
  7221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7222. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7224. break 2
  7225. fi
  7226. done
  7227. done
  7228. IFS=$as_save_IFS
  7229. fi
  7230. fi
  7231. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7232. if test -n "$ac_ct_OTOOL64"; then
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7234. $as_echo "$ac_ct_OTOOL64" >&6; }
  7235. else
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7237. $as_echo "no" >&6; }
  7238. fi
  7239. if test "x$ac_ct_OTOOL64" = x; then
  7240. OTOOL64=":"
  7241. else
  7242. case $cross_compiling:$ac_tool_warned in
  7243. yes:)
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7246. ac_tool_warned=yes ;;
  7247. esac
  7248. OTOOL64=$ac_ct_OTOOL64
  7249. fi
  7250. else
  7251. OTOOL64="$ac_cv_prog_OTOOL64"
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7254. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7255. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7256. $as_echo_n "(cached) " >&6
  7257. else
  7258. lt_cv_apple_cc_single_mod=no
  7259. if test -z "$LT_MULTI_MODULE"; then
  7260. # By default we will add the -single_module flag. You can override
  7261. # by either setting the environment variable LT_MULTI_MODULE
  7262. # non-empty at configure time, or by adding -multi_module to the
  7263. # link flags.
  7264. rm -rf libconftest.dylib*
  7265. echo "int foo(void){return 1;}" > conftest.c
  7266. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7267. -dynamiclib -Wl,-single_module conftest.c" >&5
  7268. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7269. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7270. _lt_result=$?
  7271. # If there is a non-empty error log, and "single_module"
  7272. # appears in it, assume the flag caused a linker warning
  7273. if test -s conftest.err && $GREP single_module conftest.err; then
  7274. cat conftest.err >&5
  7275. # Otherwise, if the output was created with a 0 exit code from
  7276. # the compiler, it worked.
  7277. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7278. lt_cv_apple_cc_single_mod=yes
  7279. else
  7280. cat conftest.err >&5
  7281. fi
  7282. rm -rf libconftest.dylib*
  7283. rm -f conftest.*
  7284. fi
  7285. fi
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7287. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7289. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7290. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7291. $as_echo_n "(cached) " >&6
  7292. else
  7293. lt_cv_ld_exported_symbols_list=no
  7294. save_LDFLAGS=$LDFLAGS
  7295. echo "_main" > conftest.sym
  7296. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7298. /* end confdefs.h. */
  7299. int
  7300. main ()
  7301. {
  7302. ;
  7303. return 0;
  7304. }
  7305. _ACEOF
  7306. if ac_fn_c_try_link "$LINENO"; then :
  7307. lt_cv_ld_exported_symbols_list=yes
  7308. else
  7309. lt_cv_ld_exported_symbols_list=no
  7310. fi
  7311. rm -f core conftest.err conftest.$ac_objext \
  7312. conftest$ac_exeext conftest.$ac_ext
  7313. LDFLAGS=$save_LDFLAGS
  7314. fi
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7316. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7318. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7319. if ${lt_cv_ld_force_load+:} false; then :
  7320. $as_echo_n "(cached) " >&6
  7321. else
  7322. lt_cv_ld_force_load=no
  7323. cat > conftest.c << _LT_EOF
  7324. int forced_loaded() { return 2;}
  7325. _LT_EOF
  7326. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7327. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7328. echo "$AR cru libconftest.a conftest.o" >&5
  7329. $AR cru libconftest.a conftest.o 2>&5
  7330. echo "$RANLIB libconftest.a" >&5
  7331. $RANLIB libconftest.a 2>&5
  7332. cat > conftest.c << _LT_EOF
  7333. int main() { return 0;}
  7334. _LT_EOF
  7335. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7336. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7337. _lt_result=$?
  7338. if test -s conftest.err && $GREP force_load conftest.err; then
  7339. cat conftest.err >&5
  7340. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7341. lt_cv_ld_force_load=yes
  7342. else
  7343. cat conftest.err >&5
  7344. fi
  7345. rm -f conftest.err libconftest.a conftest conftest.c
  7346. rm -rf conftest.dSYM
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7349. $as_echo "$lt_cv_ld_force_load" >&6; }
  7350. case $host_os in
  7351. rhapsody* | darwin1.[012])
  7352. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7353. darwin1.*)
  7354. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7355. darwin*) # darwin 5.x on
  7356. # if running on 10.5 or later, the deployment target defaults
  7357. # to the OS version, if on x86, and 10.4, the deployment
  7358. # target defaults to 10.4. Don't you love it?
  7359. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7360. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7361. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7362. 10.[012][,.]*)
  7363. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7364. 10.*)
  7365. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7366. esac
  7367. ;;
  7368. esac
  7369. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7370. _lt_dar_single_mod='$single_module'
  7371. fi
  7372. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7373. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7374. else
  7375. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7376. fi
  7377. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7378. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7379. else
  7380. _lt_dsymutil=
  7381. fi
  7382. ;;
  7383. esac
  7384. # func_munge_path_list VARIABLE PATH
  7385. # -----------------------------------
  7386. # VARIABLE is name of variable containing _space_ separated list of
  7387. # directories to be munged by the contents of PATH, which is string
  7388. # having a format:
  7389. # "DIR[:DIR]:"
  7390. # string "DIR[ DIR]" will be prepended to VARIABLE
  7391. # ":DIR[:DIR]"
  7392. # string "DIR[ DIR]" will be appended to VARIABLE
  7393. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7394. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7395. # "DIRA[ DIRA]" will be appended to VARIABLE
  7396. # "DIR[:DIR]"
  7397. # VARIABLE will be replaced by "DIR[ DIR]"
  7398. func_munge_path_list ()
  7399. {
  7400. case x$2 in
  7401. x)
  7402. ;;
  7403. *:)
  7404. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7405. ;;
  7406. x:*)
  7407. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7408. ;;
  7409. *::*)
  7410. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7411. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7412. ;;
  7413. *)
  7414. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7415. ;;
  7416. esac
  7417. }
  7418. for ac_header in dlfcn.h
  7419. do :
  7420. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7421. "
  7422. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7423. cat >>confdefs.h <<_ACEOF
  7424. #define HAVE_DLFCN_H 1
  7425. _ACEOF
  7426. fi
  7427. done
  7428. # Set options
  7429. # Check whether --enable-static was given.
  7430. if test "${enable_static+set}" = set; then :
  7431. enableval=$enable_static; p=${PACKAGE-default}
  7432. case $enableval in
  7433. yes) enable_static=yes ;;
  7434. no) enable_static=no ;;
  7435. *)
  7436. enable_static=no
  7437. # Look at the argument we got. We use all the common list separators.
  7438. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7439. for pkg in $enableval; do
  7440. IFS=$lt_save_ifs
  7441. if test "X$pkg" = "X$p"; then
  7442. enable_static=yes
  7443. fi
  7444. done
  7445. IFS=$lt_save_ifs
  7446. ;;
  7447. esac
  7448. else
  7449. enable_static=no
  7450. fi
  7451. # Check whether --with-pic was given.
  7452. if test "${with_pic+set}" = set; then :
  7453. withval=$with_pic; lt_p=${PACKAGE-default}
  7454. case $withval in
  7455. yes|no) pic_mode=$withval ;;
  7456. *)
  7457. pic_mode=default
  7458. # Look at the argument we got. We use all the common list separators.
  7459. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7460. for lt_pkg in $withval; do
  7461. IFS=$lt_save_ifs
  7462. if test "X$lt_pkg" = "X$lt_p"; then
  7463. pic_mode=yes
  7464. fi
  7465. done
  7466. IFS=$lt_save_ifs
  7467. ;;
  7468. esac
  7469. else
  7470. pic_mode=yes
  7471. fi
  7472. enable_dlopen=no
  7473. enable_win32_dll=no
  7474. # Check whether --enable-shared was given.
  7475. if test "${enable_shared+set}" = set; then :
  7476. enableval=$enable_shared; p=${PACKAGE-default}
  7477. case $enableval in
  7478. yes) enable_shared=yes ;;
  7479. no) enable_shared=no ;;
  7480. *)
  7481. enable_shared=no
  7482. # Look at the argument we got. We use all the common list separators.
  7483. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7484. for pkg in $enableval; do
  7485. IFS=$lt_save_ifs
  7486. if test "X$pkg" = "X$p"; then
  7487. enable_shared=yes
  7488. fi
  7489. done
  7490. IFS=$lt_save_ifs
  7491. ;;
  7492. esac
  7493. else
  7494. enable_shared=yes
  7495. fi
  7496. # Check whether --enable-fast-install was given.
  7497. if test "${enable_fast_install+set}" = set; then :
  7498. enableval=$enable_fast_install; p=${PACKAGE-default}
  7499. case $enableval in
  7500. yes) enable_fast_install=yes ;;
  7501. no) enable_fast_install=no ;;
  7502. *)
  7503. enable_fast_install=no
  7504. # Look at the argument we got. We use all the common list separators.
  7505. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7506. for pkg in $enableval; do
  7507. IFS=$lt_save_ifs
  7508. if test "X$pkg" = "X$p"; then
  7509. enable_fast_install=yes
  7510. fi
  7511. done
  7512. IFS=$lt_save_ifs
  7513. ;;
  7514. esac
  7515. else
  7516. enable_fast_install=yes
  7517. fi
  7518. shared_archive_member_spec=
  7519. case $host,$enable_shared in
  7520. power*-*-aix[5-9]*,yes)
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7522. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7523. # Check whether --with-aix-soname was given.
  7524. if test "${with_aix_soname+set}" = set; then :
  7525. withval=$with_aix_soname; case $withval in
  7526. aix|svr4|both)
  7527. ;;
  7528. *)
  7529. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7530. ;;
  7531. esac
  7532. lt_cv_with_aix_soname=$with_aix_soname
  7533. else
  7534. if ${lt_cv_with_aix_soname+:} false; then :
  7535. $as_echo_n "(cached) " >&6
  7536. else
  7537. lt_cv_with_aix_soname=aix
  7538. fi
  7539. with_aix_soname=$lt_cv_with_aix_soname
  7540. fi
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7542. $as_echo "$with_aix_soname" >&6; }
  7543. if test aix != "$with_aix_soname"; then
  7544. # For the AIX way of multilib, we name the shared archive member
  7545. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7546. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7547. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7548. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7549. if test 64 = "${OBJECT_MODE-32}"; then
  7550. shared_archive_member_spec=shr_64
  7551. else
  7552. shared_archive_member_spec=shr
  7553. fi
  7554. fi
  7555. ;;
  7556. *)
  7557. with_aix_soname=aix
  7558. ;;
  7559. esac
  7560. # This can be used to rebuild libtool when needed
  7561. LIBTOOL_DEPS=$ltmain
  7562. # Always use our own libtool.
  7563. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7564. test -z "$LN_S" && LN_S="ln -s"
  7565. if test -n "${ZSH_VERSION+set}"; then
  7566. setopt NO_GLOB_SUBST
  7567. fi
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7569. $as_echo_n "checking for objdir... " >&6; }
  7570. if ${lt_cv_objdir+:} false; then :
  7571. $as_echo_n "(cached) " >&6
  7572. else
  7573. rm -f .libs 2>/dev/null
  7574. mkdir .libs 2>/dev/null
  7575. if test -d .libs; then
  7576. lt_cv_objdir=.libs
  7577. else
  7578. # MS-DOS does not allow filenames that begin with a dot.
  7579. lt_cv_objdir=_libs
  7580. fi
  7581. rmdir .libs 2>/dev/null
  7582. fi
  7583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7584. $as_echo "$lt_cv_objdir" >&6; }
  7585. objdir=$lt_cv_objdir
  7586. cat >>confdefs.h <<_ACEOF
  7587. #define LT_OBJDIR "$lt_cv_objdir/"
  7588. _ACEOF
  7589. case $host_os in
  7590. aix3*)
  7591. # AIX sometimes has problems with the GCC collect2 program. For some
  7592. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7593. # vanish in a puff of smoke.
  7594. if test set != "${COLLECT_NAMES+set}"; then
  7595. COLLECT_NAMES=
  7596. export COLLECT_NAMES
  7597. fi
  7598. ;;
  7599. esac
  7600. # Global variables:
  7601. ofile=libtool
  7602. can_build_shared=yes
  7603. # All known linkers require a '.a' archive for static linking (except MSVC,
  7604. # which needs '.lib').
  7605. libext=a
  7606. with_gnu_ld=$lt_cv_prog_gnu_ld
  7607. old_CC=$CC
  7608. old_CFLAGS=$CFLAGS
  7609. # Set sane defaults for various variables
  7610. test -z "$CC" && CC=cc
  7611. test -z "$LTCC" && LTCC=$CC
  7612. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7613. test -z "$LD" && LD=ld
  7614. test -z "$ac_objext" && ac_objext=o
  7615. func_cc_basename $compiler
  7616. cc_basename=$func_cc_basename_result
  7617. # Only perform the check for file, if the check method requires it
  7618. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7619. case $deplibs_check_method in
  7620. file_magic*)
  7621. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7623. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7624. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7625. $as_echo_n "(cached) " >&6
  7626. else
  7627. case $MAGIC_CMD in
  7628. [\\/*] | ?:[\\/]*)
  7629. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7630. ;;
  7631. *)
  7632. lt_save_MAGIC_CMD=$MAGIC_CMD
  7633. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7634. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7635. for ac_dir in $ac_dummy; do
  7636. IFS=$lt_save_ifs
  7637. test -z "$ac_dir" && ac_dir=.
  7638. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7639. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7640. if test -n "$file_magic_test_file"; then
  7641. case $deplibs_check_method in
  7642. "file_magic "*)
  7643. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7644. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7645. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7646. $EGREP "$file_magic_regex" > /dev/null; then
  7647. :
  7648. else
  7649. cat <<_LT_EOF 1>&2
  7650. *** Warning: the command libtool uses to detect shared libraries,
  7651. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7652. *** The result is that libtool may fail to recognize shared libraries
  7653. *** as such. This will affect the creation of libtool libraries that
  7654. *** depend on shared libraries, but programs linked with such libtool
  7655. *** libraries will work regardless of this problem. Nevertheless, you
  7656. *** may want to report the problem to your system manager and/or to
  7657. *** bug-libtool@gnu.org
  7658. _LT_EOF
  7659. fi ;;
  7660. esac
  7661. fi
  7662. break
  7663. fi
  7664. done
  7665. IFS=$lt_save_ifs
  7666. MAGIC_CMD=$lt_save_MAGIC_CMD
  7667. ;;
  7668. esac
  7669. fi
  7670. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7671. if test -n "$MAGIC_CMD"; then
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7673. $as_echo "$MAGIC_CMD" >&6; }
  7674. else
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7676. $as_echo "no" >&6; }
  7677. fi
  7678. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7679. if test -n "$ac_tool_prefix"; then
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7681. $as_echo_n "checking for file... " >&6; }
  7682. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7683. $as_echo_n "(cached) " >&6
  7684. else
  7685. case $MAGIC_CMD in
  7686. [\\/*] | ?:[\\/]*)
  7687. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7688. ;;
  7689. *)
  7690. lt_save_MAGIC_CMD=$MAGIC_CMD
  7691. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7692. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7693. for ac_dir in $ac_dummy; do
  7694. IFS=$lt_save_ifs
  7695. test -z "$ac_dir" && ac_dir=.
  7696. if test -f "$ac_dir/file"; then
  7697. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7698. if test -n "$file_magic_test_file"; then
  7699. case $deplibs_check_method in
  7700. "file_magic "*)
  7701. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7702. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7703. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7704. $EGREP "$file_magic_regex" > /dev/null; then
  7705. :
  7706. else
  7707. cat <<_LT_EOF 1>&2
  7708. *** Warning: the command libtool uses to detect shared libraries,
  7709. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7710. *** The result is that libtool may fail to recognize shared libraries
  7711. *** as such. This will affect the creation of libtool libraries that
  7712. *** depend on shared libraries, but programs linked with such libtool
  7713. *** libraries will work regardless of this problem. Nevertheless, you
  7714. *** may want to report the problem to your system manager and/or to
  7715. *** bug-libtool@gnu.org
  7716. _LT_EOF
  7717. fi ;;
  7718. esac
  7719. fi
  7720. break
  7721. fi
  7722. done
  7723. IFS=$lt_save_ifs
  7724. MAGIC_CMD=$lt_save_MAGIC_CMD
  7725. ;;
  7726. esac
  7727. fi
  7728. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7729. if test -n "$MAGIC_CMD"; then
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7731. $as_echo "$MAGIC_CMD" >&6; }
  7732. else
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7734. $as_echo "no" >&6; }
  7735. fi
  7736. else
  7737. MAGIC_CMD=:
  7738. fi
  7739. fi
  7740. fi
  7741. ;;
  7742. esac
  7743. # Use C for the default configuration in the libtool script
  7744. lt_save_CC=$CC
  7745. ac_ext=c
  7746. ac_cpp='$CPP $CPPFLAGS'
  7747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7750. # Source file extension for C test sources.
  7751. ac_ext=c
  7752. # Object file extension for compiled C test sources.
  7753. objext=o
  7754. objext=$objext
  7755. # Code to be used in simple compile tests
  7756. lt_simple_compile_test_code="int some_variable = 0;"
  7757. # Code to be used in simple link tests
  7758. lt_simple_link_test_code='int main(){return(0);}'
  7759. # If no C compiler was specified, use CC.
  7760. LTCC=${LTCC-"$CC"}
  7761. # If no C compiler flags were specified, use CFLAGS.
  7762. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7763. # Allow CC to be a program name with arguments.
  7764. compiler=$CC
  7765. # Save the default compiler, since it gets overwritten when the other
  7766. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7767. compiler_DEFAULT=$CC
  7768. # save warnings/boilerplate of simple test code
  7769. ac_outfile=conftest.$ac_objext
  7770. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7771. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7772. _lt_compiler_boilerplate=`cat conftest.err`
  7773. $RM conftest*
  7774. ac_outfile=conftest.$ac_objext
  7775. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7776. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7777. _lt_linker_boilerplate=`cat conftest.err`
  7778. $RM -r conftest*
  7779. ## CAVEAT EMPTOR:
  7780. ## There is no encapsulation within the following macros, do not change
  7781. ## the running order or otherwise move them around unless you know exactly
  7782. ## what you are doing...
  7783. if test -n "$compiler"; then
  7784. lt_prog_compiler_no_builtin_flag=
  7785. if test yes = "$GCC"; then
  7786. case $cc_basename in
  7787. nvcc*)
  7788. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7789. *)
  7790. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7791. esac
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7793. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7794. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7795. $as_echo_n "(cached) " >&6
  7796. else
  7797. lt_cv_prog_compiler_rtti_exceptions=no
  7798. ac_outfile=conftest.$ac_objext
  7799. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7800. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7801. # Insert the option either (1) after the last *FLAGS variable, or
  7802. # (2) before a word containing "conftest.", or (3) at the end.
  7803. # Note that $ac_compile itself does not contain backslashes and begins
  7804. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7805. # The option is referenced via a variable to avoid confusing sed.
  7806. lt_compile=`echo "$ac_compile" | $SED \
  7807. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7808. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7809. -e 's:$: $lt_compiler_flag:'`
  7810. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7811. (eval "$lt_compile" 2>conftest.err)
  7812. ac_status=$?
  7813. cat conftest.err >&5
  7814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7815. if (exit $ac_status) && test -s "$ac_outfile"; then
  7816. # The compiler can only warn and ignore the option if not recognized
  7817. # So say no if there are warnings other than the usual output.
  7818. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7819. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7820. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7821. lt_cv_prog_compiler_rtti_exceptions=yes
  7822. fi
  7823. fi
  7824. $RM conftest*
  7825. fi
  7826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7827. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7828. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7829. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7830. else
  7831. :
  7832. fi
  7833. fi
  7834. lt_prog_compiler_wl=
  7835. lt_prog_compiler_pic=
  7836. lt_prog_compiler_static=
  7837. if test yes = "$GCC"; then
  7838. lt_prog_compiler_wl='-Wl,'
  7839. lt_prog_compiler_static='-static'
  7840. case $host_os in
  7841. aix*)
  7842. # All AIX code is PIC.
  7843. if test ia64 = "$host_cpu"; then
  7844. # AIX 5 now supports IA64 processor
  7845. lt_prog_compiler_static='-Bstatic'
  7846. fi
  7847. lt_prog_compiler_pic='-fPIC'
  7848. ;;
  7849. amigaos*)
  7850. case $host_cpu in
  7851. powerpc)
  7852. # see comment about AmigaOS4 .so support
  7853. lt_prog_compiler_pic='-fPIC'
  7854. ;;
  7855. m68k)
  7856. # FIXME: we need at least 68020 code to build shared libraries, but
  7857. # adding the '-m68020' flag to GCC prevents building anything better,
  7858. # like '-m68040'.
  7859. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7860. ;;
  7861. esac
  7862. ;;
  7863. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7864. # PIC is the default for these OSes.
  7865. ;;
  7866. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7867. # This hack is so that the source file can tell whether it is being
  7868. # built for inclusion in a dll (and should export symbols for example).
  7869. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7870. # (--disable-auto-import) libraries
  7871. lt_prog_compiler_pic='-DDLL_EXPORT'
  7872. case $host_os in
  7873. os2*)
  7874. lt_prog_compiler_static='$wl-static'
  7875. ;;
  7876. esac
  7877. ;;
  7878. darwin* | rhapsody*)
  7879. # PIC is the default on this platform
  7880. # Common symbols not allowed in MH_DYLIB files
  7881. lt_prog_compiler_pic='-fno-common'
  7882. ;;
  7883. haiku*)
  7884. # PIC is the default for Haiku.
  7885. # The "-static" flag exists, but is broken.
  7886. lt_prog_compiler_static=
  7887. ;;
  7888. hpux*)
  7889. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7890. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7891. # sets the default TLS model and affects inlining.
  7892. case $host_cpu in
  7893. hppa*64*)
  7894. # +Z the default
  7895. ;;
  7896. *)
  7897. lt_prog_compiler_pic='-fPIC'
  7898. ;;
  7899. esac
  7900. ;;
  7901. interix[3-9]*)
  7902. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7903. # Instead, we relocate shared libraries at runtime.
  7904. ;;
  7905. msdosdjgpp*)
  7906. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7907. # on systems that don't support them.
  7908. lt_prog_compiler_can_build_shared=no
  7909. enable_shared=no
  7910. ;;
  7911. *nto* | *qnx*)
  7912. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7913. # it will coredump.
  7914. lt_prog_compiler_pic='-fPIC -shared'
  7915. ;;
  7916. sysv4*MP*)
  7917. if test -d /usr/nec; then
  7918. lt_prog_compiler_pic=-Kconform_pic
  7919. fi
  7920. ;;
  7921. *)
  7922. lt_prog_compiler_pic='-fPIC'
  7923. ;;
  7924. esac
  7925. case $cc_basename in
  7926. nvcc*) # Cuda Compiler Driver 2.2
  7927. lt_prog_compiler_wl='-Xlinker '
  7928. if test -n "$lt_prog_compiler_pic"; then
  7929. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7930. fi
  7931. ;;
  7932. esac
  7933. else
  7934. # PORTME Check for flag to pass linker flags through the system compiler.
  7935. case $host_os in
  7936. aix*)
  7937. lt_prog_compiler_wl='-Wl,'
  7938. if test ia64 = "$host_cpu"; then
  7939. # AIX 5 now supports IA64 processor
  7940. lt_prog_compiler_static='-Bstatic'
  7941. else
  7942. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7943. fi
  7944. ;;
  7945. darwin* | rhapsody*)
  7946. # PIC is the default on this platform
  7947. # Common symbols not allowed in MH_DYLIB files
  7948. lt_prog_compiler_pic='-fno-common'
  7949. case $cc_basename in
  7950. nagfor*)
  7951. # NAG Fortran compiler
  7952. lt_prog_compiler_wl='-Wl,-Wl,,'
  7953. lt_prog_compiler_pic='-PIC'
  7954. lt_prog_compiler_static='-Bstatic'
  7955. ;;
  7956. esac
  7957. ;;
  7958. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7959. # This hack is so that the source file can tell whether it is being
  7960. # built for inclusion in a dll (and should export symbols for example).
  7961. lt_prog_compiler_pic='-DDLL_EXPORT'
  7962. case $host_os in
  7963. os2*)
  7964. lt_prog_compiler_static='$wl-static'
  7965. ;;
  7966. esac
  7967. ;;
  7968. hpux9* | hpux10* | hpux11*)
  7969. lt_prog_compiler_wl='-Wl,'
  7970. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7971. # not for PA HP-UX.
  7972. case $host_cpu in
  7973. hppa*64*|ia64*)
  7974. # +Z the default
  7975. ;;
  7976. *)
  7977. lt_prog_compiler_pic='+Z'
  7978. ;;
  7979. esac
  7980. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7981. lt_prog_compiler_static='$wl-a ${wl}archive'
  7982. ;;
  7983. irix5* | irix6* | nonstopux*)
  7984. lt_prog_compiler_wl='-Wl,'
  7985. # PIC (with -KPIC) is the default.
  7986. lt_prog_compiler_static='-non_shared'
  7987. ;;
  7988. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7989. case $cc_basename in
  7990. # old Intel for x86_64, which still supported -KPIC.
  7991. ecc*)
  7992. lt_prog_compiler_wl='-Wl,'
  7993. lt_prog_compiler_pic='-KPIC'
  7994. lt_prog_compiler_static='-static'
  7995. ;;
  7996. # icc used to be incompatible with GCC.
  7997. # ICC 10 doesn't accept -KPIC any more.
  7998. icc* | ifort*)
  7999. lt_prog_compiler_wl='-Wl,'
  8000. lt_prog_compiler_pic='-fPIC'
  8001. lt_prog_compiler_static='-static'
  8002. ;;
  8003. # Lahey Fortran 8.1.
  8004. lf95*)
  8005. lt_prog_compiler_wl='-Wl,'
  8006. lt_prog_compiler_pic='--shared'
  8007. lt_prog_compiler_static='--static'
  8008. ;;
  8009. nagfor*)
  8010. # NAG Fortran compiler
  8011. lt_prog_compiler_wl='-Wl,-Wl,,'
  8012. lt_prog_compiler_pic='-PIC'
  8013. lt_prog_compiler_static='-Bstatic'
  8014. ;;
  8015. tcc*)
  8016. # Fabrice Bellard et al's Tiny C Compiler
  8017. lt_prog_compiler_wl='-Wl,'
  8018. lt_prog_compiler_pic='-fPIC'
  8019. lt_prog_compiler_static='-static'
  8020. ;;
  8021. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8022. # Portland Group compilers (*not* the Pentium gcc compiler,
  8023. # which looks to be a dead project)
  8024. lt_prog_compiler_wl='-Wl,'
  8025. lt_prog_compiler_pic='-fpic'
  8026. lt_prog_compiler_static='-Bstatic'
  8027. ;;
  8028. ccc*)
  8029. lt_prog_compiler_wl='-Wl,'
  8030. # All Alpha code is PIC.
  8031. lt_prog_compiler_static='-non_shared'
  8032. ;;
  8033. xl* | bgxl* | bgf* | mpixl*)
  8034. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8035. lt_prog_compiler_wl='-Wl,'
  8036. lt_prog_compiler_pic='-qpic'
  8037. lt_prog_compiler_static='-qstaticlink'
  8038. ;;
  8039. *)
  8040. case `$CC -V 2>&1 | sed 5q` in
  8041. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8042. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8043. lt_prog_compiler_pic='-KPIC'
  8044. lt_prog_compiler_static='-Bstatic'
  8045. lt_prog_compiler_wl=''
  8046. ;;
  8047. *Sun\ F* | *Sun*Fortran*)
  8048. lt_prog_compiler_pic='-KPIC'
  8049. lt_prog_compiler_static='-Bstatic'
  8050. lt_prog_compiler_wl='-Qoption ld '
  8051. ;;
  8052. *Sun\ C*)
  8053. # Sun C 5.9
  8054. lt_prog_compiler_pic='-KPIC'
  8055. lt_prog_compiler_static='-Bstatic'
  8056. lt_prog_compiler_wl='-Wl,'
  8057. ;;
  8058. *Intel*\ [CF]*Compiler*)
  8059. lt_prog_compiler_wl='-Wl,'
  8060. lt_prog_compiler_pic='-fPIC'
  8061. lt_prog_compiler_static='-static'
  8062. ;;
  8063. *Portland\ Group*)
  8064. lt_prog_compiler_wl='-Wl,'
  8065. lt_prog_compiler_pic='-fpic'
  8066. lt_prog_compiler_static='-Bstatic'
  8067. ;;
  8068. esac
  8069. ;;
  8070. esac
  8071. ;;
  8072. newsos6)
  8073. lt_prog_compiler_pic='-KPIC'
  8074. lt_prog_compiler_static='-Bstatic'
  8075. ;;
  8076. *nto* | *qnx*)
  8077. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8078. # it will coredump.
  8079. lt_prog_compiler_pic='-fPIC -shared'
  8080. ;;
  8081. osf3* | osf4* | osf5*)
  8082. lt_prog_compiler_wl='-Wl,'
  8083. # All OSF/1 code is PIC.
  8084. lt_prog_compiler_static='-non_shared'
  8085. ;;
  8086. rdos*)
  8087. lt_prog_compiler_static='-non_shared'
  8088. ;;
  8089. solaris*)
  8090. lt_prog_compiler_pic='-KPIC'
  8091. lt_prog_compiler_static='-Bstatic'
  8092. case $cc_basename in
  8093. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8094. lt_prog_compiler_wl='-Qoption ld ';;
  8095. *)
  8096. lt_prog_compiler_wl='-Wl,';;
  8097. esac
  8098. ;;
  8099. sunos4*)
  8100. lt_prog_compiler_wl='-Qoption ld '
  8101. lt_prog_compiler_pic='-PIC'
  8102. lt_prog_compiler_static='-Bstatic'
  8103. ;;
  8104. sysv4 | sysv4.2uw2* | sysv4.3*)
  8105. lt_prog_compiler_wl='-Wl,'
  8106. lt_prog_compiler_pic='-KPIC'
  8107. lt_prog_compiler_static='-Bstatic'
  8108. ;;
  8109. sysv4*MP*)
  8110. if test -d /usr/nec; then
  8111. lt_prog_compiler_pic='-Kconform_pic'
  8112. lt_prog_compiler_static='-Bstatic'
  8113. fi
  8114. ;;
  8115. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8116. lt_prog_compiler_wl='-Wl,'
  8117. lt_prog_compiler_pic='-KPIC'
  8118. lt_prog_compiler_static='-Bstatic'
  8119. ;;
  8120. unicos*)
  8121. lt_prog_compiler_wl='-Wl,'
  8122. lt_prog_compiler_can_build_shared=no
  8123. ;;
  8124. uts4*)
  8125. lt_prog_compiler_pic='-pic'
  8126. lt_prog_compiler_static='-Bstatic'
  8127. ;;
  8128. *)
  8129. lt_prog_compiler_can_build_shared=no
  8130. ;;
  8131. esac
  8132. fi
  8133. case $host_os in
  8134. # For platforms that do not support PIC, -DPIC is meaningless:
  8135. *djgpp*)
  8136. lt_prog_compiler_pic=
  8137. ;;
  8138. *)
  8139. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8140. ;;
  8141. esac
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8143. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8144. if ${lt_cv_prog_compiler_pic+:} false; then :
  8145. $as_echo_n "(cached) " >&6
  8146. else
  8147. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8148. fi
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8150. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8151. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8152. #
  8153. # Check to make sure the PIC flag actually works.
  8154. #
  8155. if test -n "$lt_prog_compiler_pic"; then
  8156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8157. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8158. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8159. $as_echo_n "(cached) " >&6
  8160. else
  8161. lt_cv_prog_compiler_pic_works=no
  8162. ac_outfile=conftest.$ac_objext
  8163. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8164. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8165. # Insert the option either (1) after the last *FLAGS variable, or
  8166. # (2) before a word containing "conftest.", or (3) at the end.
  8167. # Note that $ac_compile itself does not contain backslashes and begins
  8168. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8169. # The option is referenced via a variable to avoid confusing sed.
  8170. lt_compile=`echo "$ac_compile" | $SED \
  8171. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8172. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8173. -e 's:$: $lt_compiler_flag:'`
  8174. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8175. (eval "$lt_compile" 2>conftest.err)
  8176. ac_status=$?
  8177. cat conftest.err >&5
  8178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8179. if (exit $ac_status) && test -s "$ac_outfile"; then
  8180. # The compiler can only warn and ignore the option if not recognized
  8181. # So say no if there are warnings other than the usual output.
  8182. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8183. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8184. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8185. lt_cv_prog_compiler_pic_works=yes
  8186. fi
  8187. fi
  8188. $RM conftest*
  8189. fi
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8191. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8192. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8193. case $lt_prog_compiler_pic in
  8194. "" | " "*) ;;
  8195. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8196. esac
  8197. else
  8198. lt_prog_compiler_pic=
  8199. lt_prog_compiler_can_build_shared=no
  8200. fi
  8201. fi
  8202. #
  8203. # Check to make sure the static flag actually works.
  8204. #
  8205. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8207. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8208. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8209. $as_echo_n "(cached) " >&6
  8210. else
  8211. lt_cv_prog_compiler_static_works=no
  8212. save_LDFLAGS=$LDFLAGS
  8213. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8214. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8215. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8216. # The linker can only warn and ignore the option if not recognized
  8217. # So say no if there are warnings
  8218. if test -s conftest.err; then
  8219. # Append any errors to the config.log.
  8220. cat conftest.err 1>&5
  8221. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8222. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8223. if diff conftest.exp conftest.er2 >/dev/null; then
  8224. lt_cv_prog_compiler_static_works=yes
  8225. fi
  8226. else
  8227. lt_cv_prog_compiler_static_works=yes
  8228. fi
  8229. fi
  8230. $RM -r conftest*
  8231. LDFLAGS=$save_LDFLAGS
  8232. fi
  8233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8234. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8235. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8236. :
  8237. else
  8238. lt_prog_compiler_static=
  8239. fi
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8241. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8242. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8243. $as_echo_n "(cached) " >&6
  8244. else
  8245. lt_cv_prog_compiler_c_o=no
  8246. $RM -r conftest 2>/dev/null
  8247. mkdir conftest
  8248. cd conftest
  8249. mkdir out
  8250. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8251. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8252. # Insert the option either (1) after the last *FLAGS variable, or
  8253. # (2) before a word containing "conftest.", or (3) at the end.
  8254. # Note that $ac_compile itself does not contain backslashes and begins
  8255. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8256. lt_compile=`echo "$ac_compile" | $SED \
  8257. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8258. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8259. -e 's:$: $lt_compiler_flag:'`
  8260. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8261. (eval "$lt_compile" 2>out/conftest.err)
  8262. ac_status=$?
  8263. cat out/conftest.err >&5
  8264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8265. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8266. then
  8267. # The compiler can only warn and ignore the option if not recognized
  8268. # So say no if there are warnings
  8269. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8270. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8271. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8272. lt_cv_prog_compiler_c_o=yes
  8273. fi
  8274. fi
  8275. chmod u+w . 2>&5
  8276. $RM conftest*
  8277. # SGI C++ compiler will create directory out/ii_files/ for
  8278. # template instantiation
  8279. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8280. $RM out/* && rmdir out
  8281. cd ..
  8282. $RM -r conftest
  8283. $RM conftest*
  8284. fi
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8286. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8288. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8289. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8290. $as_echo_n "(cached) " >&6
  8291. else
  8292. lt_cv_prog_compiler_c_o=no
  8293. $RM -r conftest 2>/dev/null
  8294. mkdir conftest
  8295. cd conftest
  8296. mkdir out
  8297. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8298. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8299. # Insert the option either (1) after the last *FLAGS variable, or
  8300. # (2) before a word containing "conftest.", or (3) at the end.
  8301. # Note that $ac_compile itself does not contain backslashes and begins
  8302. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8303. lt_compile=`echo "$ac_compile" | $SED \
  8304. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8305. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8306. -e 's:$: $lt_compiler_flag:'`
  8307. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8308. (eval "$lt_compile" 2>out/conftest.err)
  8309. ac_status=$?
  8310. cat out/conftest.err >&5
  8311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8312. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8313. then
  8314. # The compiler can only warn and ignore the option if not recognized
  8315. # So say no if there are warnings
  8316. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8317. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8318. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8319. lt_cv_prog_compiler_c_o=yes
  8320. fi
  8321. fi
  8322. chmod u+w . 2>&5
  8323. $RM conftest*
  8324. # SGI C++ compiler will create directory out/ii_files/ for
  8325. # template instantiation
  8326. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8327. $RM out/* && rmdir out
  8328. cd ..
  8329. $RM -r conftest
  8330. $RM conftest*
  8331. fi
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8333. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8334. hard_links=nottested
  8335. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8336. # do not overwrite the value of need_locks provided by the user
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8338. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8339. hard_links=yes
  8340. $RM conftest*
  8341. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8342. touch conftest.a
  8343. ln conftest.a conftest.b 2>&5 || hard_links=no
  8344. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8346. $as_echo "$hard_links" >&6; }
  8347. if test no = "$hard_links"; then
  8348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8349. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8350. need_locks=warn
  8351. fi
  8352. else
  8353. need_locks=no
  8354. fi
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8356. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8357. runpath_var=
  8358. allow_undefined_flag=
  8359. always_export_symbols=no
  8360. archive_cmds=
  8361. archive_expsym_cmds=
  8362. compiler_needs_object=no
  8363. enable_shared_with_static_runtimes=no
  8364. export_dynamic_flag_spec=
  8365. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8366. hardcode_automatic=no
  8367. hardcode_direct=no
  8368. hardcode_direct_absolute=no
  8369. hardcode_libdir_flag_spec=
  8370. hardcode_libdir_separator=
  8371. hardcode_minus_L=no
  8372. hardcode_shlibpath_var=unsupported
  8373. inherit_rpath=no
  8374. link_all_deplibs=unknown
  8375. module_cmds=
  8376. module_expsym_cmds=
  8377. old_archive_from_new_cmds=
  8378. old_archive_from_expsyms_cmds=
  8379. thread_safe_flag_spec=
  8380. whole_archive_flag_spec=
  8381. # include_expsyms should be a list of space-separated symbols to be *always*
  8382. # included in the symbol list
  8383. include_expsyms=
  8384. # exclude_expsyms can be an extended regexp of symbols to exclude
  8385. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8386. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8387. # as well as any symbol that contains 'd'.
  8388. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8389. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8390. # platforms (ab)use it in PIC code, but their linkers get confused if
  8391. # the symbol is explicitly referenced. Since portable code cannot
  8392. # rely on this symbol name, it's probably fine to never include it in
  8393. # preloaded symbol tables.
  8394. # Exclude shared library initialization/finalization symbols.
  8395. extract_expsyms_cmds=
  8396. case $host_os in
  8397. cygwin* | mingw* | pw32* | cegcc*)
  8398. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8399. # When not using gcc, we currently assume that we are using
  8400. # Microsoft Visual C++.
  8401. if test yes != "$GCC"; then
  8402. with_gnu_ld=no
  8403. fi
  8404. ;;
  8405. interix*)
  8406. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8407. with_gnu_ld=yes
  8408. ;;
  8409. openbsd* | bitrig*)
  8410. with_gnu_ld=no
  8411. ;;
  8412. esac
  8413. ld_shlibs=yes
  8414. # On some targets, GNU ld is compatible enough with the native linker
  8415. # that we're better off using the native interface for both.
  8416. lt_use_gnu_ld_interface=no
  8417. if test yes = "$with_gnu_ld"; then
  8418. case $host_os in
  8419. aix*)
  8420. # The AIX port of GNU ld has always aspired to compatibility
  8421. # with the native linker. However, as the warning in the GNU ld
  8422. # block says, versions before 2.19.5* couldn't really create working
  8423. # shared libraries, regardless of the interface used.
  8424. case `$LD -v 2>&1` in
  8425. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8426. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8427. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8428. *)
  8429. lt_use_gnu_ld_interface=yes
  8430. ;;
  8431. esac
  8432. ;;
  8433. *)
  8434. lt_use_gnu_ld_interface=yes
  8435. ;;
  8436. esac
  8437. fi
  8438. if test yes = "$lt_use_gnu_ld_interface"; then
  8439. # If archive_cmds runs LD, not CC, wlarc should be empty
  8440. wlarc='$wl'
  8441. # Set some defaults for GNU ld with shared library support. These
  8442. # are reset later if shared libraries are not supported. Putting them
  8443. # here allows them to be overridden if necessary.
  8444. runpath_var=LD_RUN_PATH
  8445. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8446. export_dynamic_flag_spec='$wl--export-dynamic'
  8447. # ancient GNU ld didn't support --whole-archive et. al.
  8448. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8449. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8450. else
  8451. whole_archive_flag_spec=
  8452. fi
  8453. supports_anon_versioning=no
  8454. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8455. *GNU\ gold*) supports_anon_versioning=yes ;;
  8456. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8457. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8458. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8459. *\ 2.11.*) ;; # other 2.11 versions
  8460. *) supports_anon_versioning=yes ;;
  8461. esac
  8462. # See if GNU ld supports shared libraries.
  8463. case $host_os in
  8464. aix[3-9]*)
  8465. # On AIX/PPC, the GNU linker is very broken
  8466. if test ia64 != "$host_cpu"; then
  8467. ld_shlibs=no
  8468. cat <<_LT_EOF 1>&2
  8469. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8470. *** to be unable to reliably create shared libraries on AIX.
  8471. *** Therefore, libtool is disabling shared libraries support. If you
  8472. *** really care for shared libraries, you may want to install binutils
  8473. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8474. *** You will then need to restart the configuration process.
  8475. _LT_EOF
  8476. fi
  8477. ;;
  8478. amigaos*)
  8479. case $host_cpu in
  8480. powerpc)
  8481. # see comment about AmigaOS4 .so support
  8482. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8483. archive_expsym_cmds=''
  8484. ;;
  8485. m68k)
  8486. 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)'
  8487. hardcode_libdir_flag_spec='-L$libdir'
  8488. hardcode_minus_L=yes
  8489. ;;
  8490. esac
  8491. ;;
  8492. beos*)
  8493. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8494. allow_undefined_flag=unsupported
  8495. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8496. # support --undefined. This deserves some investigation. FIXME
  8497. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8498. else
  8499. ld_shlibs=no
  8500. fi
  8501. ;;
  8502. cygwin* | mingw* | pw32* | cegcc*)
  8503. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8504. # as there is no search path for DLLs.
  8505. hardcode_libdir_flag_spec='-L$libdir'
  8506. export_dynamic_flag_spec='$wl--export-all-symbols'
  8507. allow_undefined_flag=unsupported
  8508. always_export_symbols=no
  8509. enable_shared_with_static_runtimes=yes
  8510. 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'
  8511. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8512. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8513. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8514. # If the export-symbols file already is a .def file, use it as
  8515. # is; otherwise, prepend EXPORTS...
  8516. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8517. cp $export_symbols $output_objdir/$soname.def;
  8518. else
  8519. echo EXPORTS > $output_objdir/$soname.def;
  8520. cat $export_symbols >> $output_objdir/$soname.def;
  8521. fi~
  8522. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8523. else
  8524. ld_shlibs=no
  8525. fi
  8526. ;;
  8527. haiku*)
  8528. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8529. link_all_deplibs=yes
  8530. ;;
  8531. os2*)
  8532. hardcode_libdir_flag_spec='-L$libdir'
  8533. hardcode_minus_L=yes
  8534. allow_undefined_flag=unsupported
  8535. shrext_cmds=.dll
  8536. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8537. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8538. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8539. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8540. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8541. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8542. emximp -o $lib $output_objdir/$libname.def'
  8543. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8544. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8545. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8546. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8547. prefix_cmds="$SED"~
  8548. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8549. prefix_cmds="$prefix_cmds -e 1d";
  8550. fi~
  8551. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8552. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8553. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8554. emximp -o $lib $output_objdir/$libname.def'
  8555. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8556. enable_shared_with_static_runtimes=yes
  8557. ;;
  8558. interix[3-9]*)
  8559. hardcode_direct=no
  8560. hardcode_shlibpath_var=no
  8561. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8562. export_dynamic_flag_spec='$wl-E'
  8563. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8564. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8565. # default) and relocated if they conflict, which is a slow very memory
  8566. # consuming and fragmenting process. To avoid this, we pick a random,
  8567. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8568. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8569. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8570. 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'
  8571. ;;
  8572. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8573. tmp_diet=no
  8574. if test linux-dietlibc = "$host_os"; then
  8575. case $cc_basename in
  8576. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8577. esac
  8578. fi
  8579. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8580. && test no = "$tmp_diet"
  8581. then
  8582. tmp_addflag=' $pic_flag'
  8583. tmp_sharedflag='-shared'
  8584. case $cc_basename,$host_cpu in
  8585. pgcc*) # Portland Group C compiler
  8586. 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'
  8587. tmp_addflag=' $pic_flag'
  8588. ;;
  8589. pgf77* | pgf90* | pgf95* | pgfortran*)
  8590. # Portland Group f77 and f90 compilers
  8591. 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'
  8592. tmp_addflag=' $pic_flag -Mnomain' ;;
  8593. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8594. tmp_addflag=' -i_dynamic' ;;
  8595. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8596. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8597. ifc* | ifort*) # Intel Fortran compiler
  8598. tmp_addflag=' -nofor_main' ;;
  8599. lf95*) # Lahey Fortran 8.1
  8600. whole_archive_flag_spec=
  8601. tmp_sharedflag='--shared' ;;
  8602. nagfor*) # NAGFOR 5.3
  8603. tmp_sharedflag='-Wl,-shared' ;;
  8604. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8605. tmp_sharedflag='-qmkshrobj'
  8606. tmp_addflag= ;;
  8607. nvcc*) # Cuda Compiler Driver 2.2
  8608. 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'
  8609. compiler_needs_object=yes
  8610. ;;
  8611. esac
  8612. case `$CC -V 2>&1 | sed 5q` in
  8613. *Sun\ C*) # Sun C 5.9
  8614. 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'
  8615. compiler_needs_object=yes
  8616. tmp_sharedflag='-G' ;;
  8617. *Sun\ F*) # Sun Fortran 8.3
  8618. tmp_sharedflag='-G' ;;
  8619. esac
  8620. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8621. if test yes = "$supports_anon_versioning"; then
  8622. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8623. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8624. echo "local: *; };" >> $output_objdir/$libname.ver~
  8625. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8626. fi
  8627. case $cc_basename in
  8628. tcc*)
  8629. export_dynamic_flag_spec='-rdynamic'
  8630. ;;
  8631. xlf* | bgf* | bgxlf* | mpixlf*)
  8632. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8633. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8634. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8635. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8636. if test yes = "$supports_anon_versioning"; then
  8637. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8638. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8639. echo "local: *; };" >> $output_objdir/$libname.ver~
  8640. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8641. fi
  8642. ;;
  8643. esac
  8644. else
  8645. ld_shlibs=no
  8646. fi
  8647. ;;
  8648. netbsd*)
  8649. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8650. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8651. wlarc=
  8652. else
  8653. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8654. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8655. fi
  8656. ;;
  8657. solaris*)
  8658. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8659. ld_shlibs=no
  8660. cat <<_LT_EOF 1>&2
  8661. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8662. *** create shared libraries on Solaris systems. Therefore, libtool
  8663. *** is disabling shared libraries support. We urge you to upgrade GNU
  8664. *** binutils to release 2.9.1 or newer. Another option is to modify
  8665. *** your PATH or compiler configuration so that the native linker is
  8666. *** used, and then restart.
  8667. _LT_EOF
  8668. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8669. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8670. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8671. else
  8672. ld_shlibs=no
  8673. fi
  8674. ;;
  8675. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8676. case `$LD -v 2>&1` in
  8677. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8678. ld_shlibs=no
  8679. cat <<_LT_EOF 1>&2
  8680. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8681. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8682. *** is disabling shared libraries support. We urge you to upgrade GNU
  8683. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8684. *** your PATH or compiler configuration so that the native linker is
  8685. *** used, and then restart.
  8686. _LT_EOF
  8687. ;;
  8688. *)
  8689. # For security reasons, it is highly recommended that you always
  8690. # use absolute paths for naming shared libraries, and exclude the
  8691. # DT_RUNPATH tag from executables and libraries. But doing so
  8692. # requires that you compile everything twice, which is a pain.
  8693. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8694. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8696. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8697. else
  8698. ld_shlibs=no
  8699. fi
  8700. ;;
  8701. esac
  8702. ;;
  8703. sunos4*)
  8704. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8705. wlarc=
  8706. hardcode_direct=yes
  8707. hardcode_shlibpath_var=no
  8708. ;;
  8709. *)
  8710. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8711. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8712. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8713. else
  8714. ld_shlibs=no
  8715. fi
  8716. ;;
  8717. esac
  8718. if test no = "$ld_shlibs"; then
  8719. runpath_var=
  8720. hardcode_libdir_flag_spec=
  8721. export_dynamic_flag_spec=
  8722. whole_archive_flag_spec=
  8723. fi
  8724. else
  8725. # PORTME fill in a description of your system's linker (not GNU ld)
  8726. case $host_os in
  8727. aix3*)
  8728. allow_undefined_flag=unsupported
  8729. always_export_symbols=yes
  8730. 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'
  8731. # Note: this linker hardcodes the directories in LIBPATH if there
  8732. # are no directories specified by -L.
  8733. hardcode_minus_L=yes
  8734. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8735. # Neither direct hardcoding nor static linking is supported with a
  8736. # broken collect2.
  8737. hardcode_direct=unsupported
  8738. fi
  8739. ;;
  8740. aix[4-9]*)
  8741. if test ia64 = "$host_cpu"; then
  8742. # On IA64, the linker does run time linking by default, so we don't
  8743. # have to do anything special.
  8744. aix_use_runtimelinking=no
  8745. exp_sym_flag='-Bexport'
  8746. no_entry_flag=
  8747. else
  8748. # If we're using GNU nm, then we don't want the "-C" option.
  8749. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8750. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8751. # weak defined symbols like other global defined symbols, whereas
  8752. # GNU nm marks them as "W".
  8753. # While the 'weak' keyword is ignored in the Export File, we need
  8754. # it in the Import File for the 'aix-soname' feature, so we have
  8755. # to replace the "-B" option with "-P" for AIX nm.
  8756. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8757. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8758. else
  8759. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8760. fi
  8761. aix_use_runtimelinking=no
  8762. # Test if we are trying to use run time linking or normal
  8763. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8764. # have runtime linking enabled, and use it for executables.
  8765. # For shared libraries, we enable/disable runtime linking
  8766. # depending on the kind of the shared library created -
  8767. # when "with_aix_soname,aix_use_runtimelinking" is:
  8768. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8769. # "aix,yes" lib.so shared, rtl:yes, for executables
  8770. # lib.a static archive
  8771. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8772. # lib.a(lib.so.V) shared, rtl:no, for executables
  8773. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8774. # lib.a(lib.so.V) shared, rtl:no
  8775. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8776. # lib.a static archive
  8777. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8778. for ld_flag in $LDFLAGS; do
  8779. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8780. aix_use_runtimelinking=yes
  8781. break
  8782. fi
  8783. done
  8784. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8785. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8786. # so we don't have lib.a shared libs to link our executables.
  8787. # We have to force runtime linking in this case.
  8788. aix_use_runtimelinking=yes
  8789. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8790. fi
  8791. ;;
  8792. esac
  8793. exp_sym_flag='-bexport'
  8794. no_entry_flag='-bnoentry'
  8795. fi
  8796. # When large executables or shared objects are built, AIX ld can
  8797. # have problems creating the table of contents. If linking a library
  8798. # or program results in "error TOC overflow" add -mminimal-toc to
  8799. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8800. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8801. archive_cmds=''
  8802. hardcode_direct=yes
  8803. hardcode_direct_absolute=yes
  8804. hardcode_libdir_separator=':'
  8805. link_all_deplibs=yes
  8806. file_list_spec='$wl-f,'
  8807. case $with_aix_soname,$aix_use_runtimelinking in
  8808. aix,*) ;; # traditional, no import file
  8809. svr4,* | *,yes) # use import file
  8810. # The Import File defines what to hardcode.
  8811. hardcode_direct=no
  8812. hardcode_direct_absolute=no
  8813. ;;
  8814. esac
  8815. if test yes = "$GCC"; then
  8816. case $host_os in aix4.[012]|aix4.[012].*)
  8817. # We only want to do this on AIX 4.2 and lower, the check
  8818. # below for broken collect2 doesn't work under 4.3+
  8819. collect2name=`$CC -print-prog-name=collect2`
  8820. if test -f "$collect2name" &&
  8821. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8822. then
  8823. # We have reworked collect2
  8824. :
  8825. else
  8826. # We have old collect2
  8827. hardcode_direct=unsupported
  8828. # It fails to find uninstalled libraries when the uninstalled
  8829. # path is not listed in the libpath. Setting hardcode_minus_L
  8830. # to unsupported forces relinking
  8831. hardcode_minus_L=yes
  8832. hardcode_libdir_flag_spec='-L$libdir'
  8833. hardcode_libdir_separator=
  8834. fi
  8835. ;;
  8836. esac
  8837. shared_flag='-shared'
  8838. if test yes = "$aix_use_runtimelinking"; then
  8839. shared_flag="$shared_flag "'$wl-G'
  8840. fi
  8841. # Need to ensure runtime linking is disabled for the traditional
  8842. # shared library, or the linker may eventually find shared libraries
  8843. # /with/ Import File - we do not want to mix them.
  8844. shared_flag_aix='-shared'
  8845. shared_flag_svr4='-shared $wl-G'
  8846. else
  8847. # not using gcc
  8848. if test ia64 = "$host_cpu"; then
  8849. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8850. # chokes on -Wl,-G. The following line is correct:
  8851. shared_flag='-G'
  8852. else
  8853. if test yes = "$aix_use_runtimelinking"; then
  8854. shared_flag='$wl-G'
  8855. else
  8856. shared_flag='$wl-bM:SRE'
  8857. fi
  8858. shared_flag_aix='$wl-bM:SRE'
  8859. shared_flag_svr4='$wl-G'
  8860. fi
  8861. fi
  8862. export_dynamic_flag_spec='$wl-bexpall'
  8863. # It seems that -bexpall does not export symbols beginning with
  8864. # underscore (_), so it is better to generate a list of symbols to export.
  8865. always_export_symbols=yes
  8866. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8867. # Warning - without using the other runtime loading flags (-brtl),
  8868. # -berok will link without error, but may produce a broken library.
  8869. allow_undefined_flag='-berok'
  8870. # Determine the default libpath from the value encoded in an
  8871. # empty executable.
  8872. if test set = "${lt_cv_aix_libpath+set}"; then
  8873. aix_libpath=$lt_cv_aix_libpath
  8874. else
  8875. if ${lt_cv_aix_libpath_+:} false; then :
  8876. $as_echo_n "(cached) " >&6
  8877. else
  8878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8879. /* end confdefs.h. */
  8880. int
  8881. main ()
  8882. {
  8883. ;
  8884. return 0;
  8885. }
  8886. _ACEOF
  8887. if ac_fn_c_try_link "$LINENO"; then :
  8888. lt_aix_libpath_sed='
  8889. /Import File Strings/,/^$/ {
  8890. /^0/ {
  8891. s/^0 *\([^ ]*\) *$/\1/
  8892. p
  8893. }
  8894. }'
  8895. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8896. # Check for a 64-bit object if we didn't find anything.
  8897. if test -z "$lt_cv_aix_libpath_"; then
  8898. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8899. fi
  8900. fi
  8901. rm -f core conftest.err conftest.$ac_objext \
  8902. conftest$ac_exeext conftest.$ac_ext
  8903. if test -z "$lt_cv_aix_libpath_"; then
  8904. lt_cv_aix_libpath_=/usr/lib:/lib
  8905. fi
  8906. fi
  8907. aix_libpath=$lt_cv_aix_libpath_
  8908. fi
  8909. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8910. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8911. else
  8912. if test ia64 = "$host_cpu"; then
  8913. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8914. allow_undefined_flag="-z nodefs"
  8915. 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"
  8916. else
  8917. # Determine the default libpath from the value encoded in an
  8918. # empty executable.
  8919. if test set = "${lt_cv_aix_libpath+set}"; then
  8920. aix_libpath=$lt_cv_aix_libpath
  8921. else
  8922. if ${lt_cv_aix_libpath_+:} false; then :
  8923. $as_echo_n "(cached) " >&6
  8924. else
  8925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8926. /* end confdefs.h. */
  8927. int
  8928. main ()
  8929. {
  8930. ;
  8931. return 0;
  8932. }
  8933. _ACEOF
  8934. if ac_fn_c_try_link "$LINENO"; then :
  8935. lt_aix_libpath_sed='
  8936. /Import File Strings/,/^$/ {
  8937. /^0/ {
  8938. s/^0 *\([^ ]*\) *$/\1/
  8939. p
  8940. }
  8941. }'
  8942. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8943. # Check for a 64-bit object if we didn't find anything.
  8944. if test -z "$lt_cv_aix_libpath_"; then
  8945. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8946. fi
  8947. fi
  8948. rm -f core conftest.err conftest.$ac_objext \
  8949. conftest$ac_exeext conftest.$ac_ext
  8950. if test -z "$lt_cv_aix_libpath_"; then
  8951. lt_cv_aix_libpath_=/usr/lib:/lib
  8952. fi
  8953. fi
  8954. aix_libpath=$lt_cv_aix_libpath_
  8955. fi
  8956. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8957. # Warning - without using the other run time loading flags,
  8958. # -berok will link without error, but may produce a broken library.
  8959. no_undefined_flag=' $wl-bernotok'
  8960. allow_undefined_flag=' $wl-berok'
  8961. if test yes = "$with_gnu_ld"; then
  8962. # We only use this code for GNU lds that support --whole-archive.
  8963. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8964. else
  8965. # Exported symbols can be pulled into shared objects from archives
  8966. whole_archive_flag_spec='$convenience'
  8967. fi
  8968. archive_cmds_need_lc=yes
  8969. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8970. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8971. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8972. if test svr4 != "$with_aix_soname"; then
  8973. # This is similar to how AIX traditionally builds its shared libraries.
  8974. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8975. fi
  8976. if test aix != "$with_aix_soname"; then
  8977. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8978. else
  8979. # used by -dlpreopen to get the symbols
  8980. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8981. fi
  8982. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8983. fi
  8984. fi
  8985. ;;
  8986. amigaos*)
  8987. case $host_cpu in
  8988. powerpc)
  8989. # see comment about AmigaOS4 .so support
  8990. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8991. archive_expsym_cmds=''
  8992. ;;
  8993. m68k)
  8994. 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)'
  8995. hardcode_libdir_flag_spec='-L$libdir'
  8996. hardcode_minus_L=yes
  8997. ;;
  8998. esac
  8999. ;;
  9000. bsdi[45]*)
  9001. export_dynamic_flag_spec=-rdynamic
  9002. ;;
  9003. cygwin* | mingw* | pw32* | cegcc*)
  9004. # When not using gcc, we currently assume that we are using
  9005. # Microsoft Visual C++.
  9006. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9007. # no search path for DLLs.
  9008. case $cc_basename in
  9009. cl*)
  9010. # Native MSVC
  9011. hardcode_libdir_flag_spec=' '
  9012. allow_undefined_flag=unsupported
  9013. always_export_symbols=yes
  9014. file_list_spec='@'
  9015. # Tell ltmain to make .lib files, not .a files.
  9016. libext=lib
  9017. # Tell ltmain to make .dll files, not .so files.
  9018. shrext_cmds=.dll
  9019. # FIXME: Setting linknames here is a bad hack.
  9020. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9021. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9022. cp "$export_symbols" "$output_objdir/$soname.def";
  9023. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9024. else
  9025. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9026. fi~
  9027. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9028. linknames='
  9029. # The linker will not automatically build a static lib if we build a DLL.
  9030. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9031. enable_shared_with_static_runtimes=yes
  9032. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9034. # Don't use ranlib
  9035. old_postinstall_cmds='chmod 644 $oldlib'
  9036. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9037. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9038. case $lt_outputfile in
  9039. *.exe|*.EXE) ;;
  9040. *)
  9041. lt_outputfile=$lt_outputfile.exe
  9042. lt_tool_outputfile=$lt_tool_outputfile.exe
  9043. ;;
  9044. esac~
  9045. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9046. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9047. $RM "$lt_outputfile.manifest";
  9048. fi'
  9049. ;;
  9050. *)
  9051. # Assume MSVC wrapper
  9052. hardcode_libdir_flag_spec=' '
  9053. allow_undefined_flag=unsupported
  9054. # Tell ltmain to make .lib files, not .a files.
  9055. libext=lib
  9056. # Tell ltmain to make .dll files, not .so files.
  9057. shrext_cmds=.dll
  9058. # FIXME: Setting linknames here is a bad hack.
  9059. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9060. # The linker will automatically build a .lib file if we build a DLL.
  9061. old_archive_from_new_cmds='true'
  9062. # FIXME: Should let the user specify the lib program.
  9063. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9064. enable_shared_with_static_runtimes=yes
  9065. ;;
  9066. esac
  9067. ;;
  9068. darwin* | rhapsody*)
  9069. archive_cmds_need_lc=no
  9070. hardcode_direct=no
  9071. hardcode_automatic=yes
  9072. hardcode_shlibpath_var=unsupported
  9073. if test yes = "$lt_cv_ld_force_load"; then
  9074. 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\"`'
  9075. else
  9076. whole_archive_flag_spec=''
  9077. fi
  9078. link_all_deplibs=yes
  9079. allow_undefined_flag=$_lt_dar_allow_undefined
  9080. case $cc_basename in
  9081. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9082. *) _lt_dar_can_shared=$GCC ;;
  9083. esac
  9084. if test yes = "$_lt_dar_can_shared"; then
  9085. output_verbose_link_cmd=func_echo_all
  9086. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9087. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9088. 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"
  9089. 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"
  9090. else
  9091. ld_shlibs=no
  9092. fi
  9093. ;;
  9094. dgux*)
  9095. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9096. hardcode_libdir_flag_spec='-L$libdir'
  9097. hardcode_shlibpath_var=no
  9098. ;;
  9099. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9100. # support. Future versions do this automatically, but an explicit c++rt0.o
  9101. # does not break anything, and helps significantly (at the cost of a little
  9102. # extra space).
  9103. freebsd2.2*)
  9104. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9105. hardcode_libdir_flag_spec='-R$libdir'
  9106. hardcode_direct=yes
  9107. hardcode_shlibpath_var=no
  9108. ;;
  9109. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9110. freebsd2.*)
  9111. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9112. hardcode_direct=yes
  9113. hardcode_minus_L=yes
  9114. hardcode_shlibpath_var=no
  9115. ;;
  9116. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9117. freebsd* | dragonfly*)
  9118. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9119. hardcode_libdir_flag_spec='-R$libdir'
  9120. hardcode_direct=yes
  9121. hardcode_shlibpath_var=no
  9122. ;;
  9123. hpux9*)
  9124. if test yes = "$GCC"; then
  9125. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9126. else
  9127. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9128. fi
  9129. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9130. hardcode_libdir_separator=:
  9131. hardcode_direct=yes
  9132. # hardcode_minus_L: Not really in the search PATH,
  9133. # but as the default location of the library.
  9134. hardcode_minus_L=yes
  9135. export_dynamic_flag_spec='$wl-E'
  9136. ;;
  9137. hpux10*)
  9138. if test yes,no = "$GCC,$with_gnu_ld"; then
  9139. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9140. else
  9141. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9142. fi
  9143. if test no = "$with_gnu_ld"; then
  9144. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9145. hardcode_libdir_separator=:
  9146. hardcode_direct=yes
  9147. hardcode_direct_absolute=yes
  9148. export_dynamic_flag_spec='$wl-E'
  9149. # hardcode_minus_L: Not really in the search PATH,
  9150. # but as the default location of the library.
  9151. hardcode_minus_L=yes
  9152. fi
  9153. ;;
  9154. hpux11*)
  9155. if test yes,no = "$GCC,$with_gnu_ld"; then
  9156. case $host_cpu in
  9157. hppa*64*)
  9158. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9159. ;;
  9160. ia64*)
  9161. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9162. ;;
  9163. *)
  9164. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9165. ;;
  9166. esac
  9167. else
  9168. case $host_cpu in
  9169. hppa*64*)
  9170. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9171. ;;
  9172. ia64*)
  9173. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9174. ;;
  9175. *)
  9176. # Older versions of the 11.00 compiler do not understand -b yet
  9177. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9179. $as_echo_n "checking if $CC understands -b... " >&6; }
  9180. if ${lt_cv_prog_compiler__b+:} false; then :
  9181. $as_echo_n "(cached) " >&6
  9182. else
  9183. lt_cv_prog_compiler__b=no
  9184. save_LDFLAGS=$LDFLAGS
  9185. LDFLAGS="$LDFLAGS -b"
  9186. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9187. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9188. # The linker can only warn and ignore the option if not recognized
  9189. # So say no if there are warnings
  9190. if test -s conftest.err; then
  9191. # Append any errors to the config.log.
  9192. cat conftest.err 1>&5
  9193. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9194. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9195. if diff conftest.exp conftest.er2 >/dev/null; then
  9196. lt_cv_prog_compiler__b=yes
  9197. fi
  9198. else
  9199. lt_cv_prog_compiler__b=yes
  9200. fi
  9201. fi
  9202. $RM -r conftest*
  9203. LDFLAGS=$save_LDFLAGS
  9204. fi
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9206. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9207. if test yes = "$lt_cv_prog_compiler__b"; then
  9208. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9209. else
  9210. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9211. fi
  9212. ;;
  9213. esac
  9214. fi
  9215. if test no = "$with_gnu_ld"; then
  9216. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9217. hardcode_libdir_separator=:
  9218. case $host_cpu in
  9219. hppa*64*|ia64*)
  9220. hardcode_direct=no
  9221. hardcode_shlibpath_var=no
  9222. ;;
  9223. *)
  9224. hardcode_direct=yes
  9225. hardcode_direct_absolute=yes
  9226. export_dynamic_flag_spec='$wl-E'
  9227. # hardcode_minus_L: Not really in the search PATH,
  9228. # but as the default location of the library.
  9229. hardcode_minus_L=yes
  9230. ;;
  9231. esac
  9232. fi
  9233. ;;
  9234. irix5* | irix6* | nonstopux*)
  9235. if test yes = "$GCC"; then
  9236. 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'
  9237. # Try to use the -exported_symbol ld option, if it does not
  9238. # work, assume that -exports_file does not work either and
  9239. # implicitly export all symbols.
  9240. # This should be the same for all languages, so no per-tag cache variable.
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9242. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9243. if ${lt_cv_irix_exported_symbol+:} false; then :
  9244. $as_echo_n "(cached) " >&6
  9245. else
  9246. save_LDFLAGS=$LDFLAGS
  9247. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9249. /* end confdefs.h. */
  9250. int foo (void) { return 0; }
  9251. _ACEOF
  9252. if ac_fn_c_try_link "$LINENO"; then :
  9253. lt_cv_irix_exported_symbol=yes
  9254. else
  9255. lt_cv_irix_exported_symbol=no
  9256. fi
  9257. rm -f core conftest.err conftest.$ac_objext \
  9258. conftest$ac_exeext conftest.$ac_ext
  9259. LDFLAGS=$save_LDFLAGS
  9260. fi
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9262. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9263. if test yes = "$lt_cv_irix_exported_symbol"; then
  9264. 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'
  9265. fi
  9266. else
  9267. 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'
  9268. 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'
  9269. fi
  9270. archive_cmds_need_lc='no'
  9271. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9272. hardcode_libdir_separator=:
  9273. inherit_rpath=yes
  9274. link_all_deplibs=yes
  9275. ;;
  9276. linux*)
  9277. case $cc_basename in
  9278. tcc*)
  9279. # Fabrice Bellard et al's Tiny C Compiler
  9280. ld_shlibs=yes
  9281. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9282. ;;
  9283. esac
  9284. ;;
  9285. netbsd*)
  9286. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9287. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9288. else
  9289. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9290. fi
  9291. hardcode_libdir_flag_spec='-R$libdir'
  9292. hardcode_direct=yes
  9293. hardcode_shlibpath_var=no
  9294. ;;
  9295. newsos6)
  9296. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9297. hardcode_direct=yes
  9298. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9299. hardcode_libdir_separator=:
  9300. hardcode_shlibpath_var=no
  9301. ;;
  9302. *nto* | *qnx*)
  9303. ;;
  9304. openbsd* | bitrig*)
  9305. if test -f /usr/libexec/ld.so; then
  9306. hardcode_direct=yes
  9307. hardcode_shlibpath_var=no
  9308. hardcode_direct_absolute=yes
  9309. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9310. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9311. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9312. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9313. export_dynamic_flag_spec='$wl-E'
  9314. else
  9315. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9316. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9317. fi
  9318. else
  9319. ld_shlibs=no
  9320. fi
  9321. ;;
  9322. os2*)
  9323. hardcode_libdir_flag_spec='-L$libdir'
  9324. hardcode_minus_L=yes
  9325. allow_undefined_flag=unsupported
  9326. shrext_cmds=.dll
  9327. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9328. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9329. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9330. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9331. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9332. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9333. emximp -o $lib $output_objdir/$libname.def'
  9334. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9335. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9336. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9337. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9338. prefix_cmds="$SED"~
  9339. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9340. prefix_cmds="$prefix_cmds -e 1d";
  9341. fi~
  9342. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9343. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9344. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9345. emximp -o $lib $output_objdir/$libname.def'
  9346. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9347. enable_shared_with_static_runtimes=yes
  9348. ;;
  9349. osf3*)
  9350. if test yes = "$GCC"; then
  9351. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9352. 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'
  9353. else
  9354. allow_undefined_flag=' -expect_unresolved \*'
  9355. 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'
  9356. fi
  9357. archive_cmds_need_lc='no'
  9358. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9359. hardcode_libdir_separator=:
  9360. ;;
  9361. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9362. if test yes = "$GCC"; then
  9363. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9364. 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'
  9365. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9366. else
  9367. allow_undefined_flag=' -expect_unresolved \*'
  9368. 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'
  9369. 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~
  9370. $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'
  9371. # Both c and cxx compiler support -rpath directly
  9372. hardcode_libdir_flag_spec='-rpath $libdir'
  9373. fi
  9374. archive_cmds_need_lc='no'
  9375. hardcode_libdir_separator=:
  9376. ;;
  9377. solaris*)
  9378. no_undefined_flag=' -z defs'
  9379. if test yes = "$GCC"; then
  9380. wlarc='$wl'
  9381. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9382. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9383. $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'
  9384. else
  9385. case `$CC -V 2>&1` in
  9386. *"Compilers 5.0"*)
  9387. wlarc=''
  9388. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9389. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9390. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9391. ;;
  9392. *)
  9393. wlarc='$wl'
  9394. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9395. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9396. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9397. ;;
  9398. esac
  9399. fi
  9400. hardcode_libdir_flag_spec='-R$libdir'
  9401. hardcode_shlibpath_var=no
  9402. case $host_os in
  9403. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9404. *)
  9405. # The compiler driver will combine and reorder linker options,
  9406. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9407. # but is careful enough not to reorder.
  9408. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9409. if test yes = "$GCC"; then
  9410. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9411. else
  9412. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9413. fi
  9414. ;;
  9415. esac
  9416. link_all_deplibs=yes
  9417. ;;
  9418. sunos4*)
  9419. if test sequent = "$host_vendor"; then
  9420. # Use $CC to link under sequent, because it throws in some extra .o
  9421. # files that make .init and .fini sections work.
  9422. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9423. else
  9424. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9425. fi
  9426. hardcode_libdir_flag_spec='-L$libdir'
  9427. hardcode_direct=yes
  9428. hardcode_minus_L=yes
  9429. hardcode_shlibpath_var=no
  9430. ;;
  9431. sysv4)
  9432. case $host_vendor in
  9433. sni)
  9434. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9435. hardcode_direct=yes # is this really true???
  9436. ;;
  9437. siemens)
  9438. ## LD is ld it makes a PLAMLIB
  9439. ## CC just makes a GrossModule.
  9440. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9441. reload_cmds='$CC -r -o $output$reload_objs'
  9442. hardcode_direct=no
  9443. ;;
  9444. motorola)
  9445. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9446. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9447. ;;
  9448. esac
  9449. runpath_var='LD_RUN_PATH'
  9450. hardcode_shlibpath_var=no
  9451. ;;
  9452. sysv4.3*)
  9453. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9454. hardcode_shlibpath_var=no
  9455. export_dynamic_flag_spec='-Bexport'
  9456. ;;
  9457. sysv4*MP*)
  9458. if test -d /usr/nec; then
  9459. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9460. hardcode_shlibpath_var=no
  9461. runpath_var=LD_RUN_PATH
  9462. hardcode_runpath_var=yes
  9463. ld_shlibs=yes
  9464. fi
  9465. ;;
  9466. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9467. no_undefined_flag='$wl-z,text'
  9468. archive_cmds_need_lc=no
  9469. hardcode_shlibpath_var=no
  9470. runpath_var='LD_RUN_PATH'
  9471. if test yes = "$GCC"; then
  9472. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9473. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9474. else
  9475. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9476. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9477. fi
  9478. ;;
  9479. sysv5* | sco3.2v5* | sco5v6*)
  9480. # Note: We CANNOT use -z defs as we might desire, because we do not
  9481. # link with -lc, and that would cause any symbols used from libc to
  9482. # always be unresolved, which means just about no library would
  9483. # ever link correctly. If we're not using GNU ld we use -z text
  9484. # though, which does catch some bad symbols but isn't as heavy-handed
  9485. # as -z defs.
  9486. no_undefined_flag='$wl-z,text'
  9487. allow_undefined_flag='$wl-z,nodefs'
  9488. archive_cmds_need_lc=no
  9489. hardcode_shlibpath_var=no
  9490. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9491. hardcode_libdir_separator=':'
  9492. link_all_deplibs=yes
  9493. export_dynamic_flag_spec='$wl-Bexport'
  9494. runpath_var='LD_RUN_PATH'
  9495. if test yes = "$GCC"; then
  9496. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9497. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9498. else
  9499. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9500. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9501. fi
  9502. ;;
  9503. uts4*)
  9504. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9505. hardcode_libdir_flag_spec='-L$libdir'
  9506. hardcode_shlibpath_var=no
  9507. ;;
  9508. *)
  9509. ld_shlibs=no
  9510. ;;
  9511. esac
  9512. if test sni = "$host_vendor"; then
  9513. case $host in
  9514. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9515. export_dynamic_flag_spec='$wl-Blargedynsym'
  9516. ;;
  9517. esac
  9518. fi
  9519. fi
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9521. $as_echo "$ld_shlibs" >&6; }
  9522. test no = "$ld_shlibs" && can_build_shared=no
  9523. with_gnu_ld=$with_gnu_ld
  9524. #
  9525. # Do we need to explicitly link libc?
  9526. #
  9527. case "x$archive_cmds_need_lc" in
  9528. x|xyes)
  9529. # Assume -lc should be added
  9530. archive_cmds_need_lc=yes
  9531. if test yes,yes = "$GCC,$enable_shared"; then
  9532. case $archive_cmds in
  9533. *'~'*)
  9534. # FIXME: we may have to deal with multi-command sequences.
  9535. ;;
  9536. '$CC '*)
  9537. # Test whether the compiler implicitly links with -lc since on some
  9538. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9539. # to ld, don't add -lc before -lgcc.
  9540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9541. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9542. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9543. $as_echo_n "(cached) " >&6
  9544. else
  9545. $RM conftest*
  9546. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9547. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9548. (eval $ac_compile) 2>&5
  9549. ac_status=$?
  9550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9551. test $ac_status = 0; } 2>conftest.err; then
  9552. soname=conftest
  9553. lib=conftest
  9554. libobjs=conftest.$ac_objext
  9555. deplibs=
  9556. wl=$lt_prog_compiler_wl
  9557. pic_flag=$lt_prog_compiler_pic
  9558. compiler_flags=-v
  9559. linker_flags=-v
  9560. verstring=
  9561. output_objdir=.
  9562. libname=conftest
  9563. lt_save_allow_undefined_flag=$allow_undefined_flag
  9564. allow_undefined_flag=
  9565. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9566. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9567. ac_status=$?
  9568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9569. test $ac_status = 0; }
  9570. then
  9571. lt_cv_archive_cmds_need_lc=no
  9572. else
  9573. lt_cv_archive_cmds_need_lc=yes
  9574. fi
  9575. allow_undefined_flag=$lt_save_allow_undefined_flag
  9576. else
  9577. cat conftest.err 1>&5
  9578. fi
  9579. $RM conftest*
  9580. fi
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9582. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9583. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9584. ;;
  9585. esac
  9586. fi
  9587. ;;
  9588. esac
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9590. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9591. if test yes = "$GCC"; then
  9592. case $host_os in
  9593. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9594. *) lt_awk_arg='/^libraries:/' ;;
  9595. esac
  9596. case $host_os in
  9597. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9598. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9599. esac
  9600. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9601. case $lt_search_path_spec in
  9602. *\;*)
  9603. # if the path contains ";" then we assume it to be the separator
  9604. # otherwise default to the standard path separator (i.e. ":") - it is
  9605. # assumed that no part of a normal pathname contains ";" but that should
  9606. # okay in the real world where ";" in dirpaths is itself problematic.
  9607. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9608. ;;
  9609. *)
  9610. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9611. ;;
  9612. esac
  9613. # Ok, now we have the path, separated by spaces, we can step through it
  9614. # and add multilib dir if necessary...
  9615. lt_tmp_lt_search_path_spec=
  9616. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9617. # ...but if some path component already ends with the multilib dir we assume
  9618. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9619. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9620. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9621. lt_multi_os_dir=
  9622. ;;
  9623. esac
  9624. for lt_sys_path in $lt_search_path_spec; do
  9625. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9626. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9627. elif test -n "$lt_multi_os_dir"; then
  9628. test -d "$lt_sys_path" && \
  9629. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9630. fi
  9631. done
  9632. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9633. BEGIN {RS = " "; FS = "/|\n";} {
  9634. lt_foo = "";
  9635. lt_count = 0;
  9636. for (lt_i = NF; lt_i > 0; lt_i--) {
  9637. if ($lt_i != "" && $lt_i != ".") {
  9638. if ($lt_i == "..") {
  9639. lt_count++;
  9640. } else {
  9641. if (lt_count == 0) {
  9642. lt_foo = "/" $lt_i lt_foo;
  9643. } else {
  9644. lt_count--;
  9645. }
  9646. }
  9647. }
  9648. }
  9649. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9650. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9651. }'`
  9652. # AWK program above erroneously prepends '/' to C:/dos/paths
  9653. # for these hosts.
  9654. case $host_os in
  9655. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9656. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9657. esac
  9658. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9659. else
  9660. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9661. fi
  9662. library_names_spec=
  9663. libname_spec='lib$name'
  9664. soname_spec=
  9665. shrext_cmds=.so
  9666. postinstall_cmds=
  9667. postuninstall_cmds=
  9668. finish_cmds=
  9669. finish_eval=
  9670. shlibpath_var=
  9671. shlibpath_overrides_runpath=unknown
  9672. version_type=none
  9673. dynamic_linker="$host_os ld.so"
  9674. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9675. need_lib_prefix=unknown
  9676. hardcode_into_libs=no
  9677. # when you set need_version to no, make sure it does not cause -set_version
  9678. # flags to be left without arguments
  9679. need_version=unknown
  9680. case $host_os in
  9681. aix3*)
  9682. version_type=linux # correct to gnu/linux during the next big refactor
  9683. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9684. shlibpath_var=LIBPATH
  9685. # AIX 3 has no versioning support, so we append a major version to the name.
  9686. soname_spec='$libname$release$shared_ext$major'
  9687. ;;
  9688. aix[4-9]*)
  9689. version_type=linux # correct to gnu/linux during the next big refactor
  9690. need_lib_prefix=no
  9691. need_version=no
  9692. hardcode_into_libs=yes
  9693. if test ia64 = "$host_cpu"; then
  9694. # AIX 5 supports IA64
  9695. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9696. shlibpath_var=LD_LIBRARY_PATH
  9697. else
  9698. # With GCC up to 2.95.x, collect2 would create an import file
  9699. # for dependence libraries. The import file would start with
  9700. # the line '#! .'. This would cause the generated library to
  9701. # depend on '.', always an invalid library. This was fixed in
  9702. # development snapshots of GCC prior to 3.0.
  9703. case $host_os in
  9704. aix4 | aix4.[01] | aix4.[01].*)
  9705. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9706. echo ' yes '
  9707. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9708. :
  9709. else
  9710. can_build_shared=no
  9711. fi
  9712. ;;
  9713. esac
  9714. # Using Import Files as archive members, it is possible to support
  9715. # filename-based versioning of shared library archives on AIX. While
  9716. # this would work for both with and without runtime linking, it will
  9717. # prevent static linking of such archives. So we do filename-based
  9718. # shared library versioning with .so extension only, which is used
  9719. # when both runtime linking and shared linking is enabled.
  9720. # Unfortunately, runtime linking may impact performance, so we do
  9721. # not want this to be the default eventually. Also, we use the
  9722. # versioned .so libs for executables only if there is the -brtl
  9723. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9724. # To allow for filename-based versioning support, we need to create
  9725. # libNAME.so.V as an archive file, containing:
  9726. # *) an Import File, referring to the versioned filename of the
  9727. # archive as well as the shared archive member, telling the
  9728. # bitwidth (32 or 64) of that shared object, and providing the
  9729. # list of exported symbols of that shared object, eventually
  9730. # decorated with the 'weak' keyword
  9731. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9732. # it being seen by the linker.
  9733. # At run time we better use the real file rather than another symlink,
  9734. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9735. case $with_aix_soname,$aix_use_runtimelinking in
  9736. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9737. # soname into executable. Probably we can add versioning support to
  9738. # collect2, so additional links can be useful in future.
  9739. aix,yes) # traditional libtool
  9740. dynamic_linker='AIX unversionable lib.so'
  9741. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9742. # instead of lib<name>.a to let people know that these are not
  9743. # typical AIX shared libraries.
  9744. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9745. ;;
  9746. aix,no) # traditional AIX only
  9747. dynamic_linker='AIX lib.a(lib.so.V)'
  9748. # We preserve .a as extension for shared libraries through AIX4.2
  9749. # and later when we are not doing run time linking.
  9750. library_names_spec='$libname$release.a $libname.a'
  9751. soname_spec='$libname$release$shared_ext$major'
  9752. ;;
  9753. svr4,*) # full svr4 only
  9754. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9755. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9756. # We do not specify a path in Import Files, so LIBPATH fires.
  9757. shlibpath_overrides_runpath=yes
  9758. ;;
  9759. *,yes) # both, prefer svr4
  9760. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9761. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9762. # unpreferred sharedlib libNAME.a needs extra handling
  9763. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9764. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9765. # We do not specify a path in Import Files, so LIBPATH fires.
  9766. shlibpath_overrides_runpath=yes
  9767. ;;
  9768. *,no) # both, prefer aix
  9769. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9770. library_names_spec='$libname$release.a $libname.a'
  9771. soname_spec='$libname$release$shared_ext$major'
  9772. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9773. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9774. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9775. ;;
  9776. esac
  9777. shlibpath_var=LIBPATH
  9778. fi
  9779. ;;
  9780. amigaos*)
  9781. case $host_cpu in
  9782. powerpc)
  9783. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9784. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9786. ;;
  9787. m68k)
  9788. library_names_spec='$libname.ixlibrary $libname.a'
  9789. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9790. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9791. ;;
  9792. esac
  9793. ;;
  9794. beos*)
  9795. library_names_spec='$libname$shared_ext'
  9796. dynamic_linker="$host_os ld.so"
  9797. shlibpath_var=LIBRARY_PATH
  9798. ;;
  9799. bsdi[45]*)
  9800. version_type=linux # correct to gnu/linux during the next big refactor
  9801. need_version=no
  9802. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9803. soname_spec='$libname$release$shared_ext$major'
  9804. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9805. shlibpath_var=LD_LIBRARY_PATH
  9806. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9807. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9808. # the default ld.so.conf also contains /usr/contrib/lib and
  9809. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9810. # libtool to hard-code these into programs
  9811. ;;
  9812. cygwin* | mingw* | pw32* | cegcc*)
  9813. version_type=windows
  9814. shrext_cmds=.dll
  9815. need_version=no
  9816. need_lib_prefix=no
  9817. case $GCC,$cc_basename in
  9818. yes,*)
  9819. # gcc
  9820. library_names_spec='$libname.dll.a'
  9821. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9822. postinstall_cmds='base_file=`basename \$file`~
  9823. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9824. dldir=$destdir/`dirname \$dlpath`~
  9825. test -d \$dldir || mkdir -p \$dldir~
  9826. $install_prog $dir/$dlname \$dldir/$dlname~
  9827. chmod a+x \$dldir/$dlname~
  9828. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9829. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9830. fi'
  9831. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9832. dlpath=$dir/\$dldll~
  9833. $RM \$dlpath'
  9834. shlibpath_overrides_runpath=yes
  9835. case $host_os in
  9836. cygwin*)
  9837. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9838. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9839. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9840. ;;
  9841. mingw* | cegcc*)
  9842. # MinGW DLLs use traditional 'lib' prefix
  9843. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9844. ;;
  9845. pw32*)
  9846. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9847. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9848. ;;
  9849. esac
  9850. dynamic_linker='Win32 ld.exe'
  9851. ;;
  9852. *,cl*)
  9853. # Native MSVC
  9854. libname_spec='$name'
  9855. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9856. library_names_spec='$libname.dll.lib'
  9857. case $build_os in
  9858. mingw*)
  9859. sys_lib_search_path_spec=
  9860. lt_save_ifs=$IFS
  9861. IFS=';'
  9862. for lt_path in $LIB
  9863. do
  9864. IFS=$lt_save_ifs
  9865. # Let DOS variable expansion print the short 8.3 style file name.
  9866. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9867. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9868. done
  9869. IFS=$lt_save_ifs
  9870. # Convert to MSYS style.
  9871. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9872. ;;
  9873. cygwin*)
  9874. # Convert to unix form, then to dos form, then back to unix form
  9875. # but this time dos style (no spaces!) so that the unix form looks
  9876. # like /cygdrive/c/PROGRA~1:/cygdr...
  9877. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9878. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9879. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9880. ;;
  9881. *)
  9882. sys_lib_search_path_spec=$LIB
  9883. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9884. # It is most probably a Windows format PATH.
  9885. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9886. else
  9887. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9888. fi
  9889. # FIXME: find the short name or the path components, as spaces are
  9890. # common. (e.g. "Program Files" -> "PROGRA~1")
  9891. ;;
  9892. esac
  9893. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9894. postinstall_cmds='base_file=`basename \$file`~
  9895. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9896. dldir=$destdir/`dirname \$dlpath`~
  9897. test -d \$dldir || mkdir -p \$dldir~
  9898. $install_prog $dir/$dlname \$dldir/$dlname'
  9899. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9900. dlpath=$dir/\$dldll~
  9901. $RM \$dlpath'
  9902. shlibpath_overrides_runpath=yes
  9903. dynamic_linker='Win32 link.exe'
  9904. ;;
  9905. *)
  9906. # Assume MSVC wrapper
  9907. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9908. dynamic_linker='Win32 ld.exe'
  9909. ;;
  9910. esac
  9911. # FIXME: first we should search . and the directory the executable is in
  9912. shlibpath_var=PATH
  9913. ;;
  9914. darwin* | rhapsody*)
  9915. dynamic_linker="$host_os dyld"
  9916. version_type=darwin
  9917. need_lib_prefix=no
  9918. need_version=no
  9919. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9920. soname_spec='$libname$release$major$shared_ext'
  9921. shlibpath_overrides_runpath=yes
  9922. shlibpath_var=DYLD_LIBRARY_PATH
  9923. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9924. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9925. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9926. ;;
  9927. dgux*)
  9928. version_type=linux # correct to gnu/linux during the next big refactor
  9929. need_lib_prefix=no
  9930. need_version=no
  9931. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9932. soname_spec='$libname$release$shared_ext$major'
  9933. shlibpath_var=LD_LIBRARY_PATH
  9934. ;;
  9935. freebsd* | dragonfly*)
  9936. # DragonFly does not have aout. When/if they implement a new
  9937. # versioning mechanism, adjust this.
  9938. if test -x /usr/bin/objformat; then
  9939. objformat=`/usr/bin/objformat`
  9940. else
  9941. case $host_os in
  9942. freebsd[23].*) objformat=aout ;;
  9943. *) objformat=elf ;;
  9944. esac
  9945. fi
  9946. version_type=freebsd-$objformat
  9947. case $version_type in
  9948. freebsd-elf*)
  9949. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9950. soname_spec='$libname$release$shared_ext$major'
  9951. need_version=no
  9952. need_lib_prefix=no
  9953. ;;
  9954. freebsd-*)
  9955. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9956. need_version=yes
  9957. ;;
  9958. esac
  9959. shlibpath_var=LD_LIBRARY_PATH
  9960. case $host_os in
  9961. freebsd2.*)
  9962. shlibpath_overrides_runpath=yes
  9963. ;;
  9964. freebsd3.[01]* | freebsdelf3.[01]*)
  9965. shlibpath_overrides_runpath=yes
  9966. hardcode_into_libs=yes
  9967. ;;
  9968. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9969. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9970. shlibpath_overrides_runpath=no
  9971. hardcode_into_libs=yes
  9972. ;;
  9973. *) # from 4.6 on, and DragonFly
  9974. shlibpath_overrides_runpath=yes
  9975. hardcode_into_libs=yes
  9976. ;;
  9977. esac
  9978. ;;
  9979. haiku*)
  9980. version_type=linux # correct to gnu/linux during the next big refactor
  9981. need_lib_prefix=no
  9982. need_version=no
  9983. dynamic_linker="$host_os runtime_loader"
  9984. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9985. soname_spec='$libname$release$shared_ext$major'
  9986. shlibpath_var=LIBRARY_PATH
  9987. shlibpath_overrides_runpath=no
  9988. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9989. hardcode_into_libs=yes
  9990. ;;
  9991. hpux9* | hpux10* | hpux11*)
  9992. # Give a soname corresponding to the major version so that dld.sl refuses to
  9993. # link against other versions.
  9994. version_type=sunos
  9995. need_lib_prefix=no
  9996. need_version=no
  9997. case $host_cpu in
  9998. ia64*)
  9999. shrext_cmds='.so'
  10000. hardcode_into_libs=yes
  10001. dynamic_linker="$host_os dld.so"
  10002. shlibpath_var=LD_LIBRARY_PATH
  10003. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10005. soname_spec='$libname$release$shared_ext$major'
  10006. if test 32 = "$HPUX_IA64_MODE"; then
  10007. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10008. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10009. else
  10010. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10011. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10012. fi
  10013. ;;
  10014. hppa*64*)
  10015. shrext_cmds='.sl'
  10016. hardcode_into_libs=yes
  10017. dynamic_linker="$host_os dld.sl"
  10018. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10019. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10021. soname_spec='$libname$release$shared_ext$major'
  10022. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10023. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10024. ;;
  10025. *)
  10026. shrext_cmds='.sl'
  10027. dynamic_linker="$host_os dld.sl"
  10028. shlibpath_var=SHLIB_PATH
  10029. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10031. soname_spec='$libname$release$shared_ext$major'
  10032. ;;
  10033. esac
  10034. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10035. postinstall_cmds='chmod 555 $lib'
  10036. # or fails outright, so override atomically:
  10037. install_override_mode=555
  10038. ;;
  10039. interix[3-9]*)
  10040. version_type=linux # correct to gnu/linux during the next big refactor
  10041. need_lib_prefix=no
  10042. need_version=no
  10043. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10044. soname_spec='$libname$release$shared_ext$major'
  10045. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10046. shlibpath_var=LD_LIBRARY_PATH
  10047. shlibpath_overrides_runpath=no
  10048. hardcode_into_libs=yes
  10049. ;;
  10050. irix5* | irix6* | nonstopux*)
  10051. case $host_os in
  10052. nonstopux*) version_type=nonstopux ;;
  10053. *)
  10054. if test yes = "$lt_cv_prog_gnu_ld"; then
  10055. version_type=linux # correct to gnu/linux during the next big refactor
  10056. else
  10057. version_type=irix
  10058. fi ;;
  10059. esac
  10060. need_lib_prefix=no
  10061. need_version=no
  10062. soname_spec='$libname$release$shared_ext$major'
  10063. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10064. case $host_os in
  10065. irix5* | nonstopux*)
  10066. libsuff= shlibsuff=
  10067. ;;
  10068. *)
  10069. case $LD in # libtool.m4 will add one of these switches to LD
  10070. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10071. libsuff= shlibsuff= libmagic=32-bit;;
  10072. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10073. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10074. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10075. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10076. *) libsuff= shlibsuff= libmagic=never-match;;
  10077. esac
  10078. ;;
  10079. esac
  10080. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10081. shlibpath_overrides_runpath=no
  10082. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10083. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10084. hardcode_into_libs=yes
  10085. ;;
  10086. # No shared lib support for Linux oldld, aout, or coff.
  10087. linux*oldld* | linux*aout* | linux*coff*)
  10088. dynamic_linker=no
  10089. ;;
  10090. linux*android*)
  10091. version_type=none # Android doesn't support versioned libraries.
  10092. need_lib_prefix=no
  10093. need_version=no
  10094. library_names_spec='$libname$release$shared_ext'
  10095. soname_spec='$libname$release$shared_ext'
  10096. finish_cmds=
  10097. shlibpath_var=LD_LIBRARY_PATH
  10098. shlibpath_overrides_runpath=yes
  10099. # This implies no fast_install, which is unacceptable.
  10100. # Some rework will be needed to allow for fast_install
  10101. # before this can be enabled.
  10102. hardcode_into_libs=yes
  10103. dynamic_linker='Android linker'
  10104. # Don't embed -rpath directories since the linker doesn't support them.
  10105. hardcode_libdir_flag_spec='-L$libdir'
  10106. ;;
  10107. # This must be glibc/ELF.
  10108. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10109. version_type=linux # correct to gnu/linux during the next big refactor
  10110. need_lib_prefix=no
  10111. need_version=no
  10112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10113. soname_spec='$libname$release$shared_ext$major'
  10114. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. shlibpath_overrides_runpath=no
  10117. # Some binutils ld are patched to set DT_RUNPATH
  10118. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10119. $as_echo_n "(cached) " >&6
  10120. else
  10121. lt_cv_shlibpath_overrides_runpath=no
  10122. save_LDFLAGS=$LDFLAGS
  10123. save_libdir=$libdir
  10124. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10125. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10127. /* end confdefs.h. */
  10128. int
  10129. main ()
  10130. {
  10131. ;
  10132. return 0;
  10133. }
  10134. _ACEOF
  10135. if ac_fn_c_try_link "$LINENO"; then :
  10136. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10137. lt_cv_shlibpath_overrides_runpath=yes
  10138. fi
  10139. fi
  10140. rm -f core conftest.err conftest.$ac_objext \
  10141. conftest$ac_exeext conftest.$ac_ext
  10142. LDFLAGS=$save_LDFLAGS
  10143. libdir=$save_libdir
  10144. fi
  10145. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10146. # This implies no fast_install, which is unacceptable.
  10147. # Some rework will be needed to allow for fast_install
  10148. # before this can be enabled.
  10149. hardcode_into_libs=yes
  10150. # Ideally, we could use ldconfig to report *all* directores which are
  10151. # searched for libraries, however this is still not possible. Aside from not
  10152. # being certain /sbin/ldconfig is available, command
  10153. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10154. # even though it is searched at run-time. Try to do the best guess by
  10155. # appending ld.so.conf contents (and includes) to the search path.
  10156. if test -f /etc/ld.so.conf; then
  10157. 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' ' '`
  10158. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10159. fi
  10160. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10161. # powerpc, because MkLinux only supported shared libraries with the
  10162. # GNU dynamic linker. Since this was broken with cross compilers,
  10163. # most powerpc-linux boxes support dynamic linking these days and
  10164. # people can always --disable-shared, the test was removed, and we
  10165. # assume the GNU/Linux dynamic linker is in use.
  10166. dynamic_linker='GNU/Linux ld.so'
  10167. ;;
  10168. netbsd*)
  10169. version_type=sunos
  10170. need_lib_prefix=no
  10171. need_version=no
  10172. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10173. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10174. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10175. dynamic_linker='NetBSD (a.out) ld.so'
  10176. else
  10177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10178. soname_spec='$libname$release$shared_ext$major'
  10179. dynamic_linker='NetBSD ld.elf_so'
  10180. fi
  10181. shlibpath_var=LD_LIBRARY_PATH
  10182. shlibpath_overrides_runpath=yes
  10183. hardcode_into_libs=yes
  10184. ;;
  10185. newsos6)
  10186. version_type=linux # correct to gnu/linux during the next big refactor
  10187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10188. shlibpath_var=LD_LIBRARY_PATH
  10189. shlibpath_overrides_runpath=yes
  10190. ;;
  10191. *nto* | *qnx*)
  10192. version_type=qnx
  10193. need_lib_prefix=no
  10194. need_version=no
  10195. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10196. soname_spec='$libname$release$shared_ext$major'
  10197. shlibpath_var=LD_LIBRARY_PATH
  10198. shlibpath_overrides_runpath=no
  10199. hardcode_into_libs=yes
  10200. dynamic_linker='ldqnx.so'
  10201. ;;
  10202. openbsd* | bitrig*)
  10203. version_type=sunos
  10204. sys_lib_dlsearch_path_spec=/usr/lib
  10205. need_lib_prefix=no
  10206. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10207. need_version=no
  10208. else
  10209. need_version=yes
  10210. fi
  10211. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10212. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10213. shlibpath_var=LD_LIBRARY_PATH
  10214. shlibpath_overrides_runpath=yes
  10215. ;;
  10216. os2*)
  10217. libname_spec='$name'
  10218. version_type=windows
  10219. shrext_cmds=.dll
  10220. need_version=no
  10221. need_lib_prefix=no
  10222. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10223. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10224. v=$($ECHO $release$versuffix | tr -d .-);
  10225. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10226. $ECHO $n$v`$shared_ext'
  10227. library_names_spec='${libname}_dll.$libext'
  10228. dynamic_linker='OS/2 ld.exe'
  10229. shlibpath_var=BEGINLIBPATH
  10230. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10231. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10232. postinstall_cmds='base_file=`basename \$file`~
  10233. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10234. dldir=$destdir/`dirname \$dlpath`~
  10235. test -d \$dldir || mkdir -p \$dldir~
  10236. $install_prog $dir/$dlname \$dldir/$dlname~
  10237. chmod a+x \$dldir/$dlname~
  10238. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10239. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10240. fi'
  10241. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10242. dlpath=$dir/\$dldll~
  10243. $RM \$dlpath'
  10244. ;;
  10245. osf3* | osf4* | osf5*)
  10246. version_type=osf
  10247. need_lib_prefix=no
  10248. need_version=no
  10249. soname_spec='$libname$release$shared_ext$major'
  10250. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10251. shlibpath_var=LD_LIBRARY_PATH
  10252. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10253. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10254. ;;
  10255. rdos*)
  10256. dynamic_linker=no
  10257. ;;
  10258. solaris*)
  10259. version_type=linux # correct to gnu/linux during the next big refactor
  10260. need_lib_prefix=no
  10261. need_version=no
  10262. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10263. soname_spec='$libname$release$shared_ext$major'
  10264. shlibpath_var=LD_LIBRARY_PATH
  10265. shlibpath_overrides_runpath=yes
  10266. hardcode_into_libs=yes
  10267. # ldd complains unless libraries are executable
  10268. postinstall_cmds='chmod +x $lib'
  10269. ;;
  10270. sunos4*)
  10271. version_type=sunos
  10272. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10273. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10274. shlibpath_var=LD_LIBRARY_PATH
  10275. shlibpath_overrides_runpath=yes
  10276. if test yes = "$with_gnu_ld"; then
  10277. need_lib_prefix=no
  10278. fi
  10279. need_version=yes
  10280. ;;
  10281. sysv4 | sysv4.3*)
  10282. version_type=linux # correct to gnu/linux during the next big refactor
  10283. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10284. soname_spec='$libname$release$shared_ext$major'
  10285. shlibpath_var=LD_LIBRARY_PATH
  10286. case $host_vendor in
  10287. sni)
  10288. shlibpath_overrides_runpath=no
  10289. need_lib_prefix=no
  10290. runpath_var=LD_RUN_PATH
  10291. ;;
  10292. siemens)
  10293. need_lib_prefix=no
  10294. ;;
  10295. motorola)
  10296. need_lib_prefix=no
  10297. need_version=no
  10298. shlibpath_overrides_runpath=no
  10299. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10300. ;;
  10301. esac
  10302. ;;
  10303. sysv4*MP*)
  10304. if test -d /usr/nec; then
  10305. version_type=linux # correct to gnu/linux during the next big refactor
  10306. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10307. soname_spec='$libname$shared_ext.$major'
  10308. shlibpath_var=LD_LIBRARY_PATH
  10309. fi
  10310. ;;
  10311. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10312. version_type=sco
  10313. need_lib_prefix=no
  10314. need_version=no
  10315. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10316. soname_spec='$libname$release$shared_ext$major'
  10317. shlibpath_var=LD_LIBRARY_PATH
  10318. shlibpath_overrides_runpath=yes
  10319. hardcode_into_libs=yes
  10320. if test yes = "$with_gnu_ld"; then
  10321. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10322. else
  10323. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10324. case $host_os in
  10325. sco3.2v5*)
  10326. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10327. ;;
  10328. esac
  10329. fi
  10330. sys_lib_dlsearch_path_spec='/usr/lib'
  10331. ;;
  10332. tpf*)
  10333. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10334. version_type=linux # correct to gnu/linux during the next big refactor
  10335. need_lib_prefix=no
  10336. need_version=no
  10337. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10338. shlibpath_var=LD_LIBRARY_PATH
  10339. shlibpath_overrides_runpath=no
  10340. hardcode_into_libs=yes
  10341. ;;
  10342. uts4*)
  10343. version_type=linux # correct to gnu/linux during the next big refactor
  10344. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10345. soname_spec='$libname$release$shared_ext$major'
  10346. shlibpath_var=LD_LIBRARY_PATH
  10347. ;;
  10348. *)
  10349. dynamic_linker=no
  10350. ;;
  10351. esac
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10353. $as_echo "$dynamic_linker" >&6; }
  10354. test no = "$dynamic_linker" && can_build_shared=no
  10355. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10356. if test yes = "$GCC"; then
  10357. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10358. fi
  10359. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10360. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10361. fi
  10362. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10363. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10364. fi
  10365. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10366. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10367. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10368. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10369. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10370. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10372. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10373. hardcode_action=
  10374. if test -n "$hardcode_libdir_flag_spec" ||
  10375. test -n "$runpath_var" ||
  10376. test yes = "$hardcode_automatic"; then
  10377. # We can hardcode non-existent directories.
  10378. if test no != "$hardcode_direct" &&
  10379. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10380. # have to relink, otherwise we might link with an installed library
  10381. # when we should be linking with a yet-to-be-installed one
  10382. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10383. test no != "$hardcode_minus_L"; then
  10384. # Linking always hardcodes the temporary library directory.
  10385. hardcode_action=relink
  10386. else
  10387. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10388. hardcode_action=immediate
  10389. fi
  10390. else
  10391. # We cannot hardcode anything, or else we can only hardcode existing
  10392. # directories.
  10393. hardcode_action=unsupported
  10394. fi
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10396. $as_echo "$hardcode_action" >&6; }
  10397. if test relink = "$hardcode_action" ||
  10398. test yes = "$inherit_rpath"; then
  10399. # Fast installation is not supported
  10400. enable_fast_install=no
  10401. elif test yes = "$shlibpath_overrides_runpath" ||
  10402. test no = "$enable_shared"; then
  10403. # Fast installation is not necessary
  10404. enable_fast_install=needless
  10405. fi
  10406. if test yes != "$enable_dlopen"; then
  10407. enable_dlopen=unknown
  10408. enable_dlopen_self=unknown
  10409. enable_dlopen_self_static=unknown
  10410. else
  10411. lt_cv_dlopen=no
  10412. lt_cv_dlopen_libs=
  10413. case $host_os in
  10414. beos*)
  10415. lt_cv_dlopen=load_add_on
  10416. lt_cv_dlopen_libs=
  10417. lt_cv_dlopen_self=yes
  10418. ;;
  10419. mingw* | pw32* | cegcc*)
  10420. lt_cv_dlopen=LoadLibrary
  10421. lt_cv_dlopen_libs=
  10422. ;;
  10423. cygwin*)
  10424. lt_cv_dlopen=dlopen
  10425. lt_cv_dlopen_libs=
  10426. ;;
  10427. darwin*)
  10428. # if libdl is installed we need to link against it
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10430. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10431. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10432. $as_echo_n "(cached) " >&6
  10433. else
  10434. ac_check_lib_save_LIBS=$LIBS
  10435. LIBS="-ldl $LIBS"
  10436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10437. /* end confdefs.h. */
  10438. /* Override any GCC internal prototype to avoid an error.
  10439. Use char because int might match the return type of a GCC
  10440. builtin and then its argument prototype would still apply. */
  10441. #ifdef __cplusplus
  10442. extern "C"
  10443. #endif
  10444. char dlopen ();
  10445. int
  10446. main ()
  10447. {
  10448. return dlopen ();
  10449. ;
  10450. return 0;
  10451. }
  10452. _ACEOF
  10453. if ac_fn_c_try_link "$LINENO"; then :
  10454. ac_cv_lib_dl_dlopen=yes
  10455. else
  10456. ac_cv_lib_dl_dlopen=no
  10457. fi
  10458. rm -f core conftest.err conftest.$ac_objext \
  10459. conftest$ac_exeext conftest.$ac_ext
  10460. LIBS=$ac_check_lib_save_LIBS
  10461. fi
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10463. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10464. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10465. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10466. else
  10467. lt_cv_dlopen=dyld
  10468. lt_cv_dlopen_libs=
  10469. lt_cv_dlopen_self=yes
  10470. fi
  10471. ;;
  10472. tpf*)
  10473. # Don't try to run any link tests for TPF. We know it's impossible
  10474. # because TPF is a cross-compiler, and we know how we open DSOs.
  10475. lt_cv_dlopen=dlopen
  10476. lt_cv_dlopen_libs=
  10477. lt_cv_dlopen_self=no
  10478. ;;
  10479. *)
  10480. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10481. if test "x$ac_cv_func_shl_load" = xyes; then :
  10482. lt_cv_dlopen=shl_load
  10483. else
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10485. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10486. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10487. $as_echo_n "(cached) " >&6
  10488. else
  10489. ac_check_lib_save_LIBS=$LIBS
  10490. LIBS="-ldld $LIBS"
  10491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10492. /* end confdefs.h. */
  10493. /* Override any GCC internal prototype to avoid an error.
  10494. Use char because int might match the return type of a GCC
  10495. builtin and then its argument prototype would still apply. */
  10496. #ifdef __cplusplus
  10497. extern "C"
  10498. #endif
  10499. char shl_load ();
  10500. int
  10501. main ()
  10502. {
  10503. return shl_load ();
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. if ac_fn_c_try_link "$LINENO"; then :
  10509. ac_cv_lib_dld_shl_load=yes
  10510. else
  10511. ac_cv_lib_dld_shl_load=no
  10512. fi
  10513. rm -f core conftest.err conftest.$ac_objext \
  10514. conftest$ac_exeext conftest.$ac_ext
  10515. LIBS=$ac_check_lib_save_LIBS
  10516. fi
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10518. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10519. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10520. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10521. else
  10522. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10523. if test "x$ac_cv_func_dlopen" = xyes; then :
  10524. lt_cv_dlopen=dlopen
  10525. else
  10526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10527. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10528. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10529. $as_echo_n "(cached) " >&6
  10530. else
  10531. ac_check_lib_save_LIBS=$LIBS
  10532. LIBS="-ldl $LIBS"
  10533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10534. /* end confdefs.h. */
  10535. /* Override any GCC internal prototype to avoid an error.
  10536. Use char because int might match the return type of a GCC
  10537. builtin and then its argument prototype would still apply. */
  10538. #ifdef __cplusplus
  10539. extern "C"
  10540. #endif
  10541. char dlopen ();
  10542. int
  10543. main ()
  10544. {
  10545. return dlopen ();
  10546. ;
  10547. return 0;
  10548. }
  10549. _ACEOF
  10550. if ac_fn_c_try_link "$LINENO"; then :
  10551. ac_cv_lib_dl_dlopen=yes
  10552. else
  10553. ac_cv_lib_dl_dlopen=no
  10554. fi
  10555. rm -f core conftest.err conftest.$ac_objext \
  10556. conftest$ac_exeext conftest.$ac_ext
  10557. LIBS=$ac_check_lib_save_LIBS
  10558. fi
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10560. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10561. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10562. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10563. else
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10565. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10566. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10567. $as_echo_n "(cached) " >&6
  10568. else
  10569. ac_check_lib_save_LIBS=$LIBS
  10570. LIBS="-lsvld $LIBS"
  10571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10572. /* end confdefs.h. */
  10573. /* Override any GCC internal prototype to avoid an error.
  10574. Use char because int might match the return type of a GCC
  10575. builtin and then its argument prototype would still apply. */
  10576. #ifdef __cplusplus
  10577. extern "C"
  10578. #endif
  10579. char dlopen ();
  10580. int
  10581. main ()
  10582. {
  10583. return dlopen ();
  10584. ;
  10585. return 0;
  10586. }
  10587. _ACEOF
  10588. if ac_fn_c_try_link "$LINENO"; then :
  10589. ac_cv_lib_svld_dlopen=yes
  10590. else
  10591. ac_cv_lib_svld_dlopen=no
  10592. fi
  10593. rm -f core conftest.err conftest.$ac_objext \
  10594. conftest$ac_exeext conftest.$ac_ext
  10595. LIBS=$ac_check_lib_save_LIBS
  10596. fi
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10598. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10599. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10600. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10601. else
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10603. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10604. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10605. $as_echo_n "(cached) " >&6
  10606. else
  10607. ac_check_lib_save_LIBS=$LIBS
  10608. LIBS="-ldld $LIBS"
  10609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10610. /* end confdefs.h. */
  10611. /* Override any GCC internal prototype to avoid an error.
  10612. Use char because int might match the return type of a GCC
  10613. builtin and then its argument prototype would still apply. */
  10614. #ifdef __cplusplus
  10615. extern "C"
  10616. #endif
  10617. char dld_link ();
  10618. int
  10619. main ()
  10620. {
  10621. return dld_link ();
  10622. ;
  10623. return 0;
  10624. }
  10625. _ACEOF
  10626. if ac_fn_c_try_link "$LINENO"; then :
  10627. ac_cv_lib_dld_dld_link=yes
  10628. else
  10629. ac_cv_lib_dld_dld_link=no
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext \
  10632. conftest$ac_exeext conftest.$ac_ext
  10633. LIBS=$ac_check_lib_save_LIBS
  10634. fi
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10636. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10637. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10638. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10639. fi
  10640. fi
  10641. fi
  10642. fi
  10643. fi
  10644. fi
  10645. ;;
  10646. esac
  10647. if test no = "$lt_cv_dlopen"; then
  10648. enable_dlopen=no
  10649. else
  10650. enable_dlopen=yes
  10651. fi
  10652. case $lt_cv_dlopen in
  10653. dlopen)
  10654. save_CPPFLAGS=$CPPFLAGS
  10655. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10656. save_LDFLAGS=$LDFLAGS
  10657. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10658. save_LIBS=$LIBS
  10659. LIBS="$lt_cv_dlopen_libs $LIBS"
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10661. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10662. if ${lt_cv_dlopen_self+:} false; then :
  10663. $as_echo_n "(cached) " >&6
  10664. else
  10665. if test yes = "$cross_compiling"; then :
  10666. lt_cv_dlopen_self=cross
  10667. else
  10668. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10669. lt_status=$lt_dlunknown
  10670. cat > conftest.$ac_ext <<_LT_EOF
  10671. #line $LINENO "configure"
  10672. #include "confdefs.h"
  10673. #if HAVE_DLFCN_H
  10674. #include <dlfcn.h>
  10675. #endif
  10676. #include <stdio.h>
  10677. #ifdef RTLD_GLOBAL
  10678. # define LT_DLGLOBAL RTLD_GLOBAL
  10679. #else
  10680. # ifdef DL_GLOBAL
  10681. # define LT_DLGLOBAL DL_GLOBAL
  10682. # else
  10683. # define LT_DLGLOBAL 0
  10684. # endif
  10685. #endif
  10686. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10687. find out it does not work in some platform. */
  10688. #ifndef LT_DLLAZY_OR_NOW
  10689. # ifdef RTLD_LAZY
  10690. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10691. # else
  10692. # ifdef DL_LAZY
  10693. # define LT_DLLAZY_OR_NOW DL_LAZY
  10694. # else
  10695. # ifdef RTLD_NOW
  10696. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10697. # else
  10698. # ifdef DL_NOW
  10699. # define LT_DLLAZY_OR_NOW DL_NOW
  10700. # else
  10701. # define LT_DLLAZY_OR_NOW 0
  10702. # endif
  10703. # endif
  10704. # endif
  10705. # endif
  10706. #endif
  10707. /* When -fvisibility=hidden is used, assume the code has been annotated
  10708. correspondingly for the symbols needed. */
  10709. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10710. int fnord () __attribute__((visibility("default")));
  10711. #endif
  10712. int fnord () { return 42; }
  10713. int main ()
  10714. {
  10715. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10716. int status = $lt_dlunknown;
  10717. if (self)
  10718. {
  10719. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10720. else
  10721. {
  10722. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10723. else puts (dlerror ());
  10724. }
  10725. /* dlclose (self); */
  10726. }
  10727. else
  10728. puts (dlerror ());
  10729. return status;
  10730. }
  10731. _LT_EOF
  10732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10733. (eval $ac_link) 2>&5
  10734. ac_status=$?
  10735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10736. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10737. (./conftest; exit; ) >&5 2>/dev/null
  10738. lt_status=$?
  10739. case x$lt_status in
  10740. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10741. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10742. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10743. esac
  10744. else :
  10745. # compilation failed
  10746. lt_cv_dlopen_self=no
  10747. fi
  10748. fi
  10749. rm -fr conftest*
  10750. fi
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10752. $as_echo "$lt_cv_dlopen_self" >&6; }
  10753. if test yes = "$lt_cv_dlopen_self"; then
  10754. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10756. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10757. if ${lt_cv_dlopen_self_static+:} false; then :
  10758. $as_echo_n "(cached) " >&6
  10759. else
  10760. if test yes = "$cross_compiling"; then :
  10761. lt_cv_dlopen_self_static=cross
  10762. else
  10763. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10764. lt_status=$lt_dlunknown
  10765. cat > conftest.$ac_ext <<_LT_EOF
  10766. #line $LINENO "configure"
  10767. #include "confdefs.h"
  10768. #if HAVE_DLFCN_H
  10769. #include <dlfcn.h>
  10770. #endif
  10771. #include <stdio.h>
  10772. #ifdef RTLD_GLOBAL
  10773. # define LT_DLGLOBAL RTLD_GLOBAL
  10774. #else
  10775. # ifdef DL_GLOBAL
  10776. # define LT_DLGLOBAL DL_GLOBAL
  10777. # else
  10778. # define LT_DLGLOBAL 0
  10779. # endif
  10780. #endif
  10781. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10782. find out it does not work in some platform. */
  10783. #ifndef LT_DLLAZY_OR_NOW
  10784. # ifdef RTLD_LAZY
  10785. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10786. # else
  10787. # ifdef DL_LAZY
  10788. # define LT_DLLAZY_OR_NOW DL_LAZY
  10789. # else
  10790. # ifdef RTLD_NOW
  10791. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10792. # else
  10793. # ifdef DL_NOW
  10794. # define LT_DLLAZY_OR_NOW DL_NOW
  10795. # else
  10796. # define LT_DLLAZY_OR_NOW 0
  10797. # endif
  10798. # endif
  10799. # endif
  10800. # endif
  10801. #endif
  10802. /* When -fvisibility=hidden is used, assume the code has been annotated
  10803. correspondingly for the symbols needed. */
  10804. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10805. int fnord () __attribute__((visibility("default")));
  10806. #endif
  10807. int fnord () { return 42; }
  10808. int main ()
  10809. {
  10810. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10811. int status = $lt_dlunknown;
  10812. if (self)
  10813. {
  10814. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10815. else
  10816. {
  10817. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10818. else puts (dlerror ());
  10819. }
  10820. /* dlclose (self); */
  10821. }
  10822. else
  10823. puts (dlerror ());
  10824. return status;
  10825. }
  10826. _LT_EOF
  10827. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10828. (eval $ac_link) 2>&5
  10829. ac_status=$?
  10830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10831. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10832. (./conftest; exit; ) >&5 2>/dev/null
  10833. lt_status=$?
  10834. case x$lt_status in
  10835. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10836. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10837. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10838. esac
  10839. else :
  10840. # compilation failed
  10841. lt_cv_dlopen_self_static=no
  10842. fi
  10843. fi
  10844. rm -fr conftest*
  10845. fi
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10847. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10848. fi
  10849. CPPFLAGS=$save_CPPFLAGS
  10850. LDFLAGS=$save_LDFLAGS
  10851. LIBS=$save_LIBS
  10852. ;;
  10853. esac
  10854. case $lt_cv_dlopen_self in
  10855. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10856. *) enable_dlopen_self=unknown ;;
  10857. esac
  10858. case $lt_cv_dlopen_self_static in
  10859. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10860. *) enable_dlopen_self_static=unknown ;;
  10861. esac
  10862. fi
  10863. striplib=
  10864. old_striplib=
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10866. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10867. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10868. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10869. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10871. $as_echo "yes" >&6; }
  10872. else
  10873. # FIXME - insert some real tests, host_os isn't really good enough
  10874. case $host_os in
  10875. darwin*)
  10876. if test -n "$STRIP"; then
  10877. striplib="$STRIP -x"
  10878. old_striplib="$STRIP -S"
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10880. $as_echo "yes" >&6; }
  10881. else
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10883. $as_echo "no" >&6; }
  10884. fi
  10885. ;;
  10886. *)
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10888. $as_echo "no" >&6; }
  10889. ;;
  10890. esac
  10891. fi
  10892. # Report what library types will actually be built
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10894. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10896. $as_echo "$can_build_shared" >&6; }
  10897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10898. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10899. test no = "$can_build_shared" && enable_shared=no
  10900. # On AIX, shared libraries and static libraries use the same namespace, and
  10901. # are all built from PIC.
  10902. case $host_os in
  10903. aix3*)
  10904. test yes = "$enable_shared" && enable_static=no
  10905. if test -n "$RANLIB"; then
  10906. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10907. postinstall_cmds='$RANLIB $lib'
  10908. fi
  10909. ;;
  10910. aix[4-9]*)
  10911. if test ia64 != "$host_cpu"; then
  10912. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10913. yes,aix,yes) ;; # shared object as lib.so file only
  10914. yes,svr4,*) ;; # shared object as lib.so archive member only
  10915. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10916. esac
  10917. fi
  10918. ;;
  10919. esac
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10921. $as_echo "$enable_shared" >&6; }
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10923. $as_echo_n "checking whether to build static libraries... " >&6; }
  10924. # Make sure either enable_shared or enable_static is yes.
  10925. test yes = "$enable_shared" || enable_static=yes
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10927. $as_echo "$enable_static" >&6; }
  10928. fi
  10929. ac_ext=c
  10930. ac_cpp='$CPP $CPPFLAGS'
  10931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10934. CC=$lt_save_CC
  10935. ac_config_commands="$ac_config_commands libtool"
  10936. # Only expand once:
  10937. CFLAG_VISIBILITY=
  10938. HAVE_VISIBILITY=0
  10939. if test -n "$GCC"; then
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  10941. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  10942. if ${gl_cv_cc_vis_werror+:} false; then :
  10943. $as_echo_n "(cached) " >&6
  10944. else
  10945. gl_save_CFLAGS="$CFLAGS"
  10946. CFLAGS="$CFLAGS -Werror"
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. int
  10950. main ()
  10951. {
  10952. ;
  10953. return 0;
  10954. }
  10955. _ACEOF
  10956. if ac_fn_c_try_compile "$LINENO"; then :
  10957. gl_cv_cc_vis_werror=yes
  10958. else
  10959. gl_cv_cc_vis_werror=no
  10960. fi
  10961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10962. CFLAGS="$gl_save_CFLAGS"
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  10965. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  10967. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10968. if ${gl_cv_cc_visibility+:} false; then :
  10969. $as_echo_n "(cached) " >&6
  10970. else
  10971. gl_save_CFLAGS="$CFLAGS"
  10972. CFLAGS="$CFLAGS -fvisibility=hidden"
  10973. if test $gl_cv_cc_vis_werror = yes; then
  10974. CFLAGS="$CFLAGS -Werror"
  10975. fi
  10976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10977. /* end confdefs.h. */
  10978. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10979. extern __attribute__((__visibility__("default"))) int exportedvar;
  10980. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10981. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10982. void dummyfunc (void) {}
  10983. int
  10984. main ()
  10985. {
  10986. ;
  10987. return 0;
  10988. }
  10989. _ACEOF
  10990. if ac_fn_c_try_compile "$LINENO"; then :
  10991. gl_cv_cc_visibility=yes
  10992. else
  10993. gl_cv_cc_visibility=no
  10994. fi
  10995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10996. CFLAGS="$gl_save_CFLAGS"
  10997. fi
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  10999. $as_echo "$gl_cv_cc_visibility" >&6; }
  11000. if test $gl_cv_cc_visibility = yes; then
  11001. CFLAG_VISIBILITY="-fvisibility=hidden"
  11002. HAVE_VISIBILITY=1
  11003. fi
  11004. fi
  11005. cat >>confdefs.h <<_ACEOF
  11006. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  11007. _ACEOF
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  11009. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  11010. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  11011. $as_echo_n "(cached) " >&6
  11012. else
  11013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11014. /* end confdefs.h. */
  11015. #include <sys/types.h>
  11016. int
  11017. main ()
  11018. {
  11019. return makedev(0, 0);
  11020. ;
  11021. return 0;
  11022. }
  11023. _ACEOF
  11024. if ac_fn_c_try_link "$LINENO"; then :
  11025. ac_cv_header_sys_types_h_makedev=yes
  11026. else
  11027. ac_cv_header_sys_types_h_makedev=no
  11028. fi
  11029. rm -f core conftest.err conftest.$ac_objext \
  11030. conftest$ac_exeext conftest.$ac_ext
  11031. fi
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  11033. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  11034. if test $ac_cv_header_sys_types_h_makedev = no; then
  11035. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  11036. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  11037. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  11038. fi
  11039. if test $ac_cv_header_sys_mkdev_h = no; then
  11040. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11041. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  11042. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  11043. fi
  11044. fi
  11045. fi
  11046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11047. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11048. if ${ac_cv_header_sys_wait_h+:} false; then :
  11049. $as_echo_n "(cached) " >&6
  11050. else
  11051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11052. /* end confdefs.h. */
  11053. #include <sys/types.h>
  11054. #include <sys/wait.h>
  11055. #ifndef WEXITSTATUS
  11056. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11057. #endif
  11058. #ifndef WIFEXITED
  11059. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11060. #endif
  11061. int
  11062. main ()
  11063. {
  11064. int s;
  11065. wait (&s);
  11066. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11067. ;
  11068. return 0;
  11069. }
  11070. _ACEOF
  11071. if ac_fn_c_try_compile "$LINENO"; then :
  11072. ac_cv_header_sys_wait_h=yes
  11073. else
  11074. ac_cv_header_sys_wait_h=no
  11075. fi
  11076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11077. fi
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11079. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11080. if test $ac_cv_header_sys_wait_h = yes; then
  11081. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11082. fi
  11083. for ac_header in stdint.h fcntl.h inttypes.h unistd.h byteswap.h
  11084. do :
  11085. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11086. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11087. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11088. cat >>confdefs.h <<_ACEOF
  11089. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11090. _ACEOF
  11091. fi
  11092. done
  11093. for ac_header in spawn.h utime.h wchar.h wctype.h
  11094. do :
  11095. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11096. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11097. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11098. cat >>confdefs.h <<_ACEOF
  11099. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11100. _ACEOF
  11101. fi
  11102. done
  11103. for ac_header in getopt.h err.h xlocale.h
  11104. do :
  11105. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11106. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11107. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11108. cat >>confdefs.h <<_ACEOF
  11109. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11110. _ACEOF
  11111. fi
  11112. done
  11113. for ac_header in sys/bswap.h sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h sys/ioctl.h
  11114. do :
  11115. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11116. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11117. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11118. cat >>confdefs.h <<_ACEOF
  11119. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11120. _ACEOF
  11121. fi
  11122. done
  11123. if test "$enable_zlib" != "no"; then
  11124. for ac_header in zlib.h
  11125. do :
  11126. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  11127. if test "x$ac_cv_header_zlib_h" = xyes; then :
  11128. cat >>confdefs.h <<_ACEOF
  11129. #define HAVE_ZLIB_H 1
  11130. _ACEOF
  11131. fi
  11132. done
  11133. fi
  11134. if test "$enable_bzlib" != "no"; then
  11135. for ac_header in bzlib.h
  11136. do :
  11137. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  11138. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  11139. cat >>confdefs.h <<_ACEOF
  11140. #define HAVE_BZLIB_H 1
  11141. _ACEOF
  11142. fi
  11143. done
  11144. fi
  11145. if test "$enable_xzlib" != "no"; then
  11146. for ac_header in lzma.h
  11147. do :
  11148. ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  11149. if test "x$ac_cv_header_lzma_h" = xyes; then :
  11150. cat >>confdefs.h <<_ACEOF
  11151. #define HAVE_LZMA_H 1
  11152. _ACEOF
  11153. fi
  11154. done
  11155. fi
  11156. if test "$enable_zstdlib" != "no"; then
  11157. for ac_header in zstd.h zstd_errors.h
  11158. do :
  11159. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11160. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11161. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11162. cat >>confdefs.h <<_ACEOF
  11163. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11164. _ACEOF
  11165. fi
  11166. done
  11167. fi
  11168. if test "$enable_lzlib" != "no"; then
  11169. for ac_header in lzlib.h
  11170. do :
  11171. ac_fn_c_check_header_mongrel "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default"
  11172. if test "x$ac_cv_header_lzlib_h" = xyes; then :
  11173. cat >>confdefs.h <<_ACEOF
  11174. #define HAVE_LZLIB_H 1
  11175. _ACEOF
  11176. fi
  11177. done
  11178. fi
  11179. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
  11180. "
  11181. if test "x$ac_cv_type_sig_t" = xyes; then :
  11182. $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
  11183. fi
  11184. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11185. if test "x$ac_cv_type_off_t" = xyes; then :
  11186. else
  11187. cat >>confdefs.h <<_ACEOF
  11188. #define off_t long int
  11189. _ACEOF
  11190. fi
  11191. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11192. if test "x$ac_cv_type_size_t" = xyes; then :
  11193. else
  11194. cat >>confdefs.h <<_ACEOF
  11195. #define size_t unsigned int
  11196. _ACEOF
  11197. fi
  11198. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11199. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  11200. cat >>confdefs.h <<_ACEOF
  11201. #define HAVE_STRUCT_STAT_ST_RDEV 1
  11202. _ACEOF
  11203. fi
  11204. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11205. "
  11206. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11207. cat >>confdefs.h <<_ACEOF
  11208. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  11209. _ACEOF
  11210. fi
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11212. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11213. if ${ac_cv_struct_tm+:} false; then :
  11214. $as_echo_n "(cached) " >&6
  11215. else
  11216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11217. /* end confdefs.h. */
  11218. #include <sys/types.h>
  11219. #include <time.h>
  11220. int
  11221. main ()
  11222. {
  11223. struct tm tm;
  11224. int *p = &tm.tm_sec;
  11225. return !p;
  11226. ;
  11227. return 0;
  11228. }
  11229. _ACEOF
  11230. if ac_fn_c_try_compile "$LINENO"; then :
  11231. ac_cv_struct_tm=time.h
  11232. else
  11233. ac_cv_struct_tm=sys/time.h
  11234. fi
  11235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11236. fi
  11237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11238. $as_echo "$ac_cv_struct_tm" >&6; }
  11239. if test $ac_cv_struct_tm = sys/time.h; then
  11240. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11241. fi
  11242. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11243. #include <$ac_cv_struct_tm>
  11244. "
  11245. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  11246. cat >>confdefs.h <<_ACEOF
  11247. #define HAVE_STRUCT_TM_TM_ZONE 1
  11248. _ACEOF
  11249. fi
  11250. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11251. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11252. else
  11253. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11254. "
  11255. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11256. ac_have_decl=1
  11257. else
  11258. ac_have_decl=0
  11259. fi
  11260. cat >>confdefs.h <<_ACEOF
  11261. #define HAVE_DECL_TZNAME $ac_have_decl
  11262. _ACEOF
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11264. $as_echo_n "checking for tzname... " >&6; }
  11265. if ${ac_cv_var_tzname+:} false; then :
  11266. $as_echo_n "(cached) " >&6
  11267. else
  11268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11269. /* end confdefs.h. */
  11270. #include <time.h>
  11271. #if !HAVE_DECL_TZNAME
  11272. extern char *tzname[];
  11273. #endif
  11274. int
  11275. main ()
  11276. {
  11277. return tzname[0][0];
  11278. ;
  11279. return 0;
  11280. }
  11281. _ACEOF
  11282. if ac_fn_c_try_link "$LINENO"; then :
  11283. ac_cv_var_tzname=yes
  11284. else
  11285. ac_cv_var_tzname=no
  11286. fi
  11287. rm -f core conftest.err conftest.$ac_objext \
  11288. conftest$ac_exeext conftest.$ac_ext
  11289. fi
  11290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11291. $as_echo "$ac_cv_var_tzname" >&6; }
  11292. if test $ac_cv_var_tzname = yes; then
  11293. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11294. fi
  11295. fi
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11297. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  11298. if ${ac_cv_struct_tm_zone+:} false; then :
  11299. $as_echo_n "(cached) " >&6
  11300. else
  11301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11302. /* end confdefs.h. */
  11303. #include <sys/types.h>
  11304. #include <$ac_cv_struct_tm>
  11305. int
  11306. main ()
  11307. {
  11308. struct tm tm; tm.tm_zone;
  11309. ;
  11310. return 0;
  11311. }
  11312. _ACEOF
  11313. if ac_fn_c_try_compile "$LINENO"; then :
  11314. ac_cv_struct_tm_zone=yes
  11315. else
  11316. ac_cv_struct_tm_zone=no
  11317. fi
  11318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11319. fi
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11321. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  11322. if test "$ac_cv_struct_tm_zone" = yes; then
  11323. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11324. fi
  11325. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11326. # consider it declared and we won't give our own extern.
  11327. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11328. "
  11329. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11330. ac_have_decl=1
  11331. else
  11332. ac_have_decl=0
  11333. fi
  11334. cat >>confdefs.h <<_ACEOF
  11335. #define HAVE_DECL_TZNAME $ac_have_decl
  11336. _ACEOF
  11337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11338. $as_echo_n "checking for tzname... " >&6; }
  11339. if ${ac_cv_var_tzname+:} false; then :
  11340. $as_echo_n "(cached) " >&6
  11341. else
  11342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11343. /* end confdefs.h. */
  11344. #include <time.h>
  11345. int
  11346. main ()
  11347. {
  11348. #if !HAVE_DECL_TZNAME
  11349. extern char *tzname[];
  11350. #endif
  11351. return tzname[0][0];
  11352. ;
  11353. return 0;
  11354. }
  11355. _ACEOF
  11356. if ac_fn_c_try_link "$LINENO"; then :
  11357. ac_cv_var_tzname=yes
  11358. else
  11359. ac_cv_var_tzname=no
  11360. fi
  11361. rm -f core conftest.err conftest.$ac_objext \
  11362. conftest$ac_exeext conftest.$ac_ext
  11363. fi
  11364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11365. $as_echo "$ac_cv_var_tzname" >&6; }
  11366. if test $ac_cv_var_tzname = yes; then
  11367. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11368. fi
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11370. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  11371. if ${ac_cv_struct_tm_isdst+:} false; then :
  11372. $as_echo_n "(cached) " >&6
  11373. else
  11374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11375. /* end confdefs.h. */
  11376. #include <sys/types.h>
  11377. #include <$ac_cv_struct_tm>
  11378. int
  11379. main ()
  11380. {
  11381. struct tm tm; tm.tm_isdst;
  11382. ;
  11383. return 0;
  11384. }
  11385. _ACEOF
  11386. if ac_fn_c_try_compile "$LINENO"; then :
  11387. ac_cv_struct_tm_isdst=yes
  11388. else
  11389. ac_cv_struct_tm_isdst=no
  11390. fi
  11391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11392. fi
  11393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  11394. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  11395. if test "$ac_cv_struct_tm_isdst" = yes; then
  11396. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  11397. fi
  11398. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  11399. #include <stdlib.h>
  11400. "
  11401. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  11402. ac_have_decl=1
  11403. else
  11404. ac_have_decl=0
  11405. fi
  11406. cat >>confdefs.h <<_ACEOF
  11407. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  11408. _ACEOF
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  11410. $as_echo_n "checking for daylight... " >&6; }
  11411. if ${ac_cv_var_daylight+:} false; then :
  11412. $as_echo_n "(cached) " >&6
  11413. else
  11414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11415. /* end confdefs.h. */
  11416. #include <time.h>
  11417. #include <stdlib.h>
  11418. int
  11419. main ()
  11420. {
  11421. #if !HAVE_DECL_DAYLIGHT
  11422. extern int daylight;
  11423. #endif
  11424. daylight = atoi("1");
  11425. ;
  11426. return 0;
  11427. }
  11428. _ACEOF
  11429. if ac_fn_c_try_link "$LINENO"; then :
  11430. ac_cv_var_daylight=yes
  11431. else
  11432. ac_cv_var_daylight=no
  11433. fi
  11434. rm -f core conftest.err conftest.$ac_objext \
  11435. conftest$ac_exeext conftest.$ac_ext
  11436. fi
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  11438. $as_echo "$ac_cv_var_daylight" >&6; }
  11439. if test $ac_cv_var_daylight = yes; then
  11440. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  11441. fi
  11442. # Check whether --enable-largefile was given.
  11443. if test "${enable_largefile+set}" = set; then :
  11444. enableval=$enable_largefile;
  11445. fi
  11446. if test "$enable_largefile" != no; then
  11447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11448. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11449. if ${ac_cv_sys_largefile_CC+:} false; then :
  11450. $as_echo_n "(cached) " >&6
  11451. else
  11452. ac_cv_sys_largefile_CC=no
  11453. if test "$GCC" != yes; then
  11454. ac_save_CC=$CC
  11455. while :; do
  11456. # IRIX 6.2 and later do not support large files by default,
  11457. # so use the C compiler's -n32 option if that helps.
  11458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11459. /* end confdefs.h. */
  11460. #include <sys/types.h>
  11461. /* Check that off_t can represent 2**63 - 1 correctly.
  11462. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11463. since some C++ compilers masquerading as C compilers
  11464. incorrectly reject 9223372036854775807. */
  11465. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11466. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11467. && LARGE_OFF_T % 2147483647 == 1)
  11468. ? 1 : -1];
  11469. int
  11470. main ()
  11471. {
  11472. ;
  11473. return 0;
  11474. }
  11475. _ACEOF
  11476. if ac_fn_c_try_compile "$LINENO"; then :
  11477. break
  11478. fi
  11479. rm -f core conftest.err conftest.$ac_objext
  11480. CC="$CC -n32"
  11481. if ac_fn_c_try_compile "$LINENO"; then :
  11482. ac_cv_sys_largefile_CC=' -n32'; break
  11483. fi
  11484. rm -f core conftest.err conftest.$ac_objext
  11485. break
  11486. done
  11487. CC=$ac_save_CC
  11488. rm -f conftest.$ac_ext
  11489. fi
  11490. fi
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11492. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11493. if test "$ac_cv_sys_largefile_CC" != no; then
  11494. CC=$CC$ac_cv_sys_largefile_CC
  11495. fi
  11496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11497. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11498. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11499. $as_echo_n "(cached) " >&6
  11500. else
  11501. while :; do
  11502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11503. /* end confdefs.h. */
  11504. #include <sys/types.h>
  11505. /* Check that off_t can represent 2**63 - 1 correctly.
  11506. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11507. since some C++ compilers masquerading as C compilers
  11508. incorrectly reject 9223372036854775807. */
  11509. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11510. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11511. && LARGE_OFF_T % 2147483647 == 1)
  11512. ? 1 : -1];
  11513. int
  11514. main ()
  11515. {
  11516. ;
  11517. return 0;
  11518. }
  11519. _ACEOF
  11520. if ac_fn_c_try_compile "$LINENO"; then :
  11521. ac_cv_sys_file_offset_bits=no; break
  11522. fi
  11523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11525. /* end confdefs.h. */
  11526. #define _FILE_OFFSET_BITS 64
  11527. #include <sys/types.h>
  11528. /* Check that off_t can represent 2**63 - 1 correctly.
  11529. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11530. since some C++ compilers masquerading as C compilers
  11531. incorrectly reject 9223372036854775807. */
  11532. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11533. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11534. && LARGE_OFF_T % 2147483647 == 1)
  11535. ? 1 : -1];
  11536. int
  11537. main ()
  11538. {
  11539. ;
  11540. return 0;
  11541. }
  11542. _ACEOF
  11543. if ac_fn_c_try_compile "$LINENO"; then :
  11544. ac_cv_sys_file_offset_bits=64; break
  11545. fi
  11546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11547. ac_cv_sys_file_offset_bits=unknown
  11548. break
  11549. done
  11550. fi
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11552. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11553. case $ac_cv_sys_file_offset_bits in #(
  11554. no | unknown) ;;
  11555. *)
  11556. cat >>confdefs.h <<_ACEOF
  11557. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11558. _ACEOF
  11559. ;;
  11560. esac
  11561. rm -rf conftest*
  11562. if test $ac_cv_sys_file_offset_bits = unknown; then
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11564. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11565. if ${ac_cv_sys_large_files+:} false; then :
  11566. $as_echo_n "(cached) " >&6
  11567. else
  11568. while :; do
  11569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11570. /* end confdefs.h. */
  11571. #include <sys/types.h>
  11572. /* Check that off_t can represent 2**63 - 1 correctly.
  11573. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11574. since some C++ compilers masquerading as C compilers
  11575. incorrectly reject 9223372036854775807. */
  11576. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11577. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11578. && LARGE_OFF_T % 2147483647 == 1)
  11579. ? 1 : -1];
  11580. int
  11581. main ()
  11582. {
  11583. ;
  11584. return 0;
  11585. }
  11586. _ACEOF
  11587. if ac_fn_c_try_compile "$LINENO"; then :
  11588. ac_cv_sys_large_files=no; break
  11589. fi
  11590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11592. /* end confdefs.h. */
  11593. #define _LARGE_FILES 1
  11594. #include <sys/types.h>
  11595. /* Check that off_t can represent 2**63 - 1 correctly.
  11596. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11597. since some C++ compilers masquerading as C compilers
  11598. incorrectly reject 9223372036854775807. */
  11599. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11600. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11601. && LARGE_OFF_T % 2147483647 == 1)
  11602. ? 1 : -1];
  11603. int
  11604. main ()
  11605. {
  11606. ;
  11607. return 0;
  11608. }
  11609. _ACEOF
  11610. if ac_fn_c_try_compile "$LINENO"; then :
  11611. ac_cv_sys_large_files=1; break
  11612. fi
  11613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11614. ac_cv_sys_large_files=unknown
  11615. break
  11616. done
  11617. fi
  11618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11619. $as_echo "$ac_cv_sys_large_files" >&6; }
  11620. case $ac_cv_sys_large_files in #(
  11621. no | unknown) ;;
  11622. *)
  11623. cat >>confdefs.h <<_ACEOF
  11624. #define _LARGE_FILES $ac_cv_sys_large_files
  11625. _ACEOF
  11626. ;;
  11627. esac
  11628. rm -rf conftest*
  11629. fi
  11630. fi
  11631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11632. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11633. if ${ac_cv_sys_largefile_source+:} false; then :
  11634. $as_echo_n "(cached) " >&6
  11635. else
  11636. while :; do
  11637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11638. /* end confdefs.h. */
  11639. #include <sys/types.h> /* for off_t */
  11640. #include <stdio.h>
  11641. int
  11642. main ()
  11643. {
  11644. int (*fp) (FILE *, off_t, int) = fseeko;
  11645. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11646. ;
  11647. return 0;
  11648. }
  11649. _ACEOF
  11650. if ac_fn_c_try_link "$LINENO"; then :
  11651. ac_cv_sys_largefile_source=no; break
  11652. fi
  11653. rm -f core conftest.err conftest.$ac_objext \
  11654. conftest$ac_exeext conftest.$ac_ext
  11655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11656. /* end confdefs.h. */
  11657. #define _LARGEFILE_SOURCE 1
  11658. #include <sys/types.h> /* for off_t */
  11659. #include <stdio.h>
  11660. int
  11661. main ()
  11662. {
  11663. int (*fp) (FILE *, off_t, int) = fseeko;
  11664. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11665. ;
  11666. return 0;
  11667. }
  11668. _ACEOF
  11669. if ac_fn_c_try_link "$LINENO"; then :
  11670. ac_cv_sys_largefile_source=1; break
  11671. fi
  11672. rm -f core conftest.err conftest.$ac_objext \
  11673. conftest$ac_exeext conftest.$ac_ext
  11674. ac_cv_sys_largefile_source=unknown
  11675. break
  11676. done
  11677. fi
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11679. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11680. case $ac_cv_sys_largefile_source in #(
  11681. no | unknown) ;;
  11682. *)
  11683. cat >>confdefs.h <<_ACEOF
  11684. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11685. _ACEOF
  11686. ;;
  11687. esac
  11688. rm -rf conftest*
  11689. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11690. # in glibc 2.1.3, but that breaks too many other things.
  11691. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11692. if test $ac_cv_sys_largefile_source != unknown; then
  11693. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  11694. fi
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11696. $as_echo_n "checking for mbstate_t... " >&6; }
  11697. if ${ac_cv_type_mbstate_t+:} false; then :
  11698. $as_echo_n "(cached) " >&6
  11699. else
  11700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11701. /* end confdefs.h. */
  11702. $ac_includes_default
  11703. # include <wchar.h>
  11704. int
  11705. main ()
  11706. {
  11707. mbstate_t x; return sizeof x;
  11708. ;
  11709. return 0;
  11710. }
  11711. _ACEOF
  11712. if ac_fn_c_try_compile "$LINENO"; then :
  11713. ac_cv_type_mbstate_t=yes
  11714. else
  11715. ac_cv_type_mbstate_t=no
  11716. fi
  11717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11718. fi
  11719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  11720. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  11721. if test $ac_cv_type_mbstate_t = yes; then
  11722. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11723. else
  11724. $as_echo "#define mbstate_t int" >>confdefs.h
  11725. fi
  11726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  11727. $as_echo_n "checking for struct option in getopt... " >&6; }
  11728. if ${ac_cv_struct_option_getopt_h+:} false; then :
  11729. $as_echo_n "(cached) " >&6
  11730. else
  11731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11732. /* end confdefs.h. */
  11733. #include <getopt.h>
  11734. int
  11735. main ()
  11736. {
  11737. struct option op; op.name;
  11738. ;
  11739. return 0;
  11740. }
  11741. _ACEOF
  11742. if ac_fn_c_try_compile "$LINENO"; then :
  11743. ac_cv_struct_option_getopt_h=yes
  11744. else
  11745. ac_cv_struct_option_getopt_h=no
  11746. fi
  11747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11748. fi
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  11750. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  11751. if test "$ac_cv_struct_option_getopt_h" = yes; then
  11752. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  11753. fi
  11754. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11755. if test "x$ac_cv_type_pid_t" = xyes; then :
  11756. else
  11757. cat >>confdefs.h <<_ACEOF
  11758. #define pid_t int
  11759. _ACEOF
  11760. fi
  11761. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  11762. case $ac_cv_c_uint8_t in #(
  11763. no|yes) ;; #(
  11764. *)
  11765. $as_echo "#define _UINT8_T 1" >>confdefs.h
  11766. cat >>confdefs.h <<_ACEOF
  11767. #define uint8_t $ac_cv_c_uint8_t
  11768. _ACEOF
  11769. ;;
  11770. esac
  11771. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  11772. case $ac_cv_c_uint16_t in #(
  11773. no|yes) ;; #(
  11774. *)
  11775. cat >>confdefs.h <<_ACEOF
  11776. #define uint16_t $ac_cv_c_uint16_t
  11777. _ACEOF
  11778. ;;
  11779. esac
  11780. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  11781. case $ac_cv_c_uint32_t in #(
  11782. no|yes) ;; #(
  11783. *)
  11784. $as_echo "#define _UINT32_T 1" >>confdefs.h
  11785. cat >>confdefs.h <<_ACEOF
  11786. #define uint32_t $ac_cv_c_uint32_t
  11787. _ACEOF
  11788. ;;
  11789. esac
  11790. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  11791. case $ac_cv_c_int32_t in #(
  11792. no|yes) ;; #(
  11793. *)
  11794. cat >>confdefs.h <<_ACEOF
  11795. #define int32_t $ac_cv_c_int32_t
  11796. _ACEOF
  11797. ;;
  11798. esac
  11799. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  11800. case $ac_cv_c_uint64_t in #(
  11801. no|yes) ;; #(
  11802. *)
  11803. $as_echo "#define _UINT64_T 1" >>confdefs.h
  11804. cat >>confdefs.h <<_ACEOF
  11805. #define uint64_t $ac_cv_c_uint64_t
  11806. _ACEOF
  11807. ;;
  11808. esac
  11809. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  11810. case $ac_cv_c_int64_t in #(
  11811. no|yes) ;; #(
  11812. *)
  11813. cat >>confdefs.h <<_ACEOF
  11814. #define int64_t $ac_cv_c_int64_t
  11815. _ACEOF
  11816. ;;
  11817. esac
  11818. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  11819. if test "x$ac_cv_type_intptr_t" = xyes; then :
  11820. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  11821. else
  11822. for ac_type in 'int' 'long int' 'long long int'; do
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. $ac_includes_default
  11826. int
  11827. main ()
  11828. {
  11829. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11830. test_array [0] = 0;
  11831. return test_array [0];
  11832. ;
  11833. return 0;
  11834. }
  11835. _ACEOF
  11836. if ac_fn_c_try_compile "$LINENO"; then :
  11837. cat >>confdefs.h <<_ACEOF
  11838. #define intptr_t $ac_type
  11839. _ACEOF
  11840. ac_type=
  11841. fi
  11842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11843. test -z "$ac_type" && break
  11844. done
  11845. fi
  11846. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  11847. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11848. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  11849. else
  11850. for ac_type in 'unsigned int' 'unsigned long int' \
  11851. 'unsigned long long int'; do
  11852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11853. /* end confdefs.h. */
  11854. $ac_includes_default
  11855. int
  11856. main ()
  11857. {
  11858. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11859. test_array [0] = 0;
  11860. return test_array [0];
  11861. ;
  11862. return 0;
  11863. }
  11864. _ACEOF
  11865. if ac_fn_c_try_compile "$LINENO"; then :
  11866. cat >>confdefs.h <<_ACEOF
  11867. #define uintptr_t $ac_type
  11868. _ACEOF
  11869. ac_type=
  11870. fi
  11871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11872. test -z "$ac_type" && break
  11873. done
  11874. fi
  11875. for ac_header in $ac_header_list
  11876. do :
  11877. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11878. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11879. "
  11880. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11881. cat >>confdefs.h <<_ACEOF
  11882. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11883. _ACEOF
  11884. fi
  11885. done
  11886. for ac_func in getpagesize
  11887. do :
  11888. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11889. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11890. cat >>confdefs.h <<_ACEOF
  11891. #define HAVE_GETPAGESIZE 1
  11892. _ACEOF
  11893. fi
  11894. done
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11896. $as_echo_n "checking for working mmap... " >&6; }
  11897. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11898. $as_echo_n "(cached) " >&6
  11899. else
  11900. if test "$cross_compiling" = yes; then :
  11901. ac_cv_func_mmap_fixed_mapped=no
  11902. else
  11903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11904. /* end confdefs.h. */
  11905. $ac_includes_default
  11906. /* malloc might have been renamed as rpl_malloc. */
  11907. #undef malloc
  11908. /* Thanks to Mike Haertel and Jim Avera for this test.
  11909. Here is a matrix of mmap possibilities:
  11910. mmap private not fixed
  11911. mmap private fixed at somewhere currently unmapped
  11912. mmap private fixed at somewhere already mapped
  11913. mmap shared not fixed
  11914. mmap shared fixed at somewhere currently unmapped
  11915. mmap shared fixed at somewhere already mapped
  11916. For private mappings, we should verify that changes cannot be read()
  11917. back from the file, nor mmap's back from the file at a different
  11918. address. (There have been systems where private was not correctly
  11919. implemented like the infamous i386 svr4.0, and systems where the
  11920. VM page cache was not coherent with the file system buffer cache
  11921. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11922. For shared mappings, we should conversely verify that changes get
  11923. propagated back to all the places they're supposed to be.
  11924. Grep wants private fixed already mapped.
  11925. The main things grep needs to know about mmap are:
  11926. * does it exist and is it safe to write into the mmap'd area
  11927. * how to use it (BSD variants) */
  11928. #include <fcntl.h>
  11929. #include <sys/mman.h>
  11930. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11931. char *malloc ();
  11932. #endif
  11933. /* This mess was copied from the GNU getpagesize.h. */
  11934. #ifndef HAVE_GETPAGESIZE
  11935. # ifdef _SC_PAGESIZE
  11936. # define getpagesize() sysconf(_SC_PAGESIZE)
  11937. # else /* no _SC_PAGESIZE */
  11938. # ifdef HAVE_SYS_PARAM_H
  11939. # include <sys/param.h>
  11940. # ifdef EXEC_PAGESIZE
  11941. # define getpagesize() EXEC_PAGESIZE
  11942. # else /* no EXEC_PAGESIZE */
  11943. # ifdef NBPG
  11944. # define getpagesize() NBPG * CLSIZE
  11945. # ifndef CLSIZE
  11946. # define CLSIZE 1
  11947. # endif /* no CLSIZE */
  11948. # else /* no NBPG */
  11949. # ifdef NBPC
  11950. # define getpagesize() NBPC
  11951. # else /* no NBPC */
  11952. # ifdef PAGESIZE
  11953. # define getpagesize() PAGESIZE
  11954. # endif /* PAGESIZE */
  11955. # endif /* no NBPC */
  11956. # endif /* no NBPG */
  11957. # endif /* no EXEC_PAGESIZE */
  11958. # else /* no HAVE_SYS_PARAM_H */
  11959. # define getpagesize() 8192 /* punt totally */
  11960. # endif /* no HAVE_SYS_PARAM_H */
  11961. # endif /* no _SC_PAGESIZE */
  11962. #endif /* no HAVE_GETPAGESIZE */
  11963. int
  11964. main ()
  11965. {
  11966. char *data, *data2, *data3;
  11967. const char *cdata2;
  11968. int i, pagesize;
  11969. int fd, fd2;
  11970. pagesize = getpagesize ();
  11971. /* First, make a file with some known garbage in it. */
  11972. data = (char *) malloc (pagesize);
  11973. if (!data)
  11974. return 1;
  11975. for (i = 0; i < pagesize; ++i)
  11976. *(data + i) = rand ();
  11977. umask (0);
  11978. fd = creat ("conftest.mmap", 0600);
  11979. if (fd < 0)
  11980. return 2;
  11981. if (write (fd, data, pagesize) != pagesize)
  11982. return 3;
  11983. close (fd);
  11984. /* Next, check that the tail of a page is zero-filled. File must have
  11985. non-zero length, otherwise we risk SIGBUS for entire page. */
  11986. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11987. if (fd2 < 0)
  11988. return 4;
  11989. cdata2 = "";
  11990. if (write (fd2, cdata2, 1) != 1)
  11991. return 5;
  11992. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11993. if (data2 == MAP_FAILED)
  11994. return 6;
  11995. for (i = 0; i < pagesize; ++i)
  11996. if (*(data2 + i))
  11997. return 7;
  11998. close (fd2);
  11999. if (munmap (data2, pagesize))
  12000. return 8;
  12001. /* Next, try to mmap the file at a fixed address which already has
  12002. something else allocated at it. If we can, also make sure that
  12003. we see the same garbage. */
  12004. fd = open ("conftest.mmap", O_RDWR);
  12005. if (fd < 0)
  12006. return 9;
  12007. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12008. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12009. return 10;
  12010. for (i = 0; i < pagesize; ++i)
  12011. if (*(data + i) != *(data2 + i))
  12012. return 11;
  12013. /* Finally, make sure that changes to the mapped area do not
  12014. percolate back to the file as seen by read(). (This is a bug on
  12015. some variants of i386 svr4.0.) */
  12016. for (i = 0; i < pagesize; ++i)
  12017. *(data2 + i) = *(data2 + i) + 1;
  12018. data3 = (char *) malloc (pagesize);
  12019. if (!data3)
  12020. return 12;
  12021. if (read (fd, data3, pagesize) != pagesize)
  12022. return 13;
  12023. for (i = 0; i < pagesize; ++i)
  12024. if (*(data + i) != *(data3 + i))
  12025. return 14;
  12026. close (fd);
  12027. return 0;
  12028. }
  12029. _ACEOF
  12030. if ac_fn_c_try_run "$LINENO"; then :
  12031. ac_cv_func_mmap_fixed_mapped=yes
  12032. else
  12033. ac_cv_func_mmap_fixed_mapped=no
  12034. fi
  12035. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12036. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12037. fi
  12038. fi
  12039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12040. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12041. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12042. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12043. fi
  12044. rm -f conftest.mmap conftest.txt
  12045. for ac_header in vfork.h
  12046. do :
  12047. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12048. if test "x$ac_cv_header_vfork_h" = xyes; then :
  12049. cat >>confdefs.h <<_ACEOF
  12050. #define HAVE_VFORK_H 1
  12051. _ACEOF
  12052. fi
  12053. done
  12054. for ac_func in fork vfork
  12055. do :
  12056. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12057. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12058. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12059. cat >>confdefs.h <<_ACEOF
  12060. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12061. _ACEOF
  12062. fi
  12063. done
  12064. if test "x$ac_cv_func_fork" = xyes; then
  12065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12066. $as_echo_n "checking for working fork... " >&6; }
  12067. if ${ac_cv_func_fork_works+:} false; then :
  12068. $as_echo_n "(cached) " >&6
  12069. else
  12070. if test "$cross_compiling" = yes; then :
  12071. ac_cv_func_fork_works=cross
  12072. else
  12073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12074. /* end confdefs.h. */
  12075. $ac_includes_default
  12076. int
  12077. main ()
  12078. {
  12079. /* By Ruediger Kuhlmann. */
  12080. return fork () < 0;
  12081. ;
  12082. return 0;
  12083. }
  12084. _ACEOF
  12085. if ac_fn_c_try_run "$LINENO"; then :
  12086. ac_cv_func_fork_works=yes
  12087. else
  12088. ac_cv_func_fork_works=no
  12089. fi
  12090. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12091. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12092. fi
  12093. fi
  12094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12095. $as_echo "$ac_cv_func_fork_works" >&6; }
  12096. else
  12097. ac_cv_func_fork_works=$ac_cv_func_fork
  12098. fi
  12099. if test "x$ac_cv_func_fork_works" = xcross; then
  12100. case $host in
  12101. *-*-amigaos* | *-*-msdosdjgpp*)
  12102. # Override, as these systems have only a dummy fork() stub
  12103. ac_cv_func_fork_works=no
  12104. ;;
  12105. *)
  12106. ac_cv_func_fork_works=yes
  12107. ;;
  12108. esac
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12110. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12111. fi
  12112. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12113. if test "x$ac_cv_func_vfork" = xyes; then
  12114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12115. $as_echo_n "checking for working vfork... " >&6; }
  12116. if ${ac_cv_func_vfork_works+:} false; then :
  12117. $as_echo_n "(cached) " >&6
  12118. else
  12119. if test "$cross_compiling" = yes; then :
  12120. ac_cv_func_vfork_works=cross
  12121. else
  12122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12123. /* end confdefs.h. */
  12124. /* Thanks to Paul Eggert for this test. */
  12125. $ac_includes_default
  12126. #include <sys/wait.h>
  12127. #ifdef HAVE_VFORK_H
  12128. # include <vfork.h>
  12129. #endif
  12130. /* On some sparc systems, changes by the child to local and incoming
  12131. argument registers are propagated back to the parent. The compiler
  12132. is told about this with #include <vfork.h>, but some compilers
  12133. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12134. static variable whose address is put into a register that is
  12135. clobbered by the vfork. */
  12136. static void
  12137. #ifdef __cplusplus
  12138. sparc_address_test (int arg)
  12139. # else
  12140. sparc_address_test (arg) int arg;
  12141. #endif
  12142. {
  12143. static pid_t child;
  12144. if (!child) {
  12145. child = vfork ();
  12146. if (child < 0) {
  12147. perror ("vfork");
  12148. _exit(2);
  12149. }
  12150. if (!child) {
  12151. arg = getpid();
  12152. write(-1, "", 0);
  12153. _exit (arg);
  12154. }
  12155. }
  12156. }
  12157. int
  12158. main ()
  12159. {
  12160. pid_t parent = getpid ();
  12161. pid_t child;
  12162. sparc_address_test (0);
  12163. child = vfork ();
  12164. if (child == 0) {
  12165. /* Here is another test for sparc vfork register problems. This
  12166. test uses lots of local variables, at least as many local
  12167. variables as main has allocated so far including compiler
  12168. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12169. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12170. reuse the register of parent for one of the local variables,
  12171. since it will think that parent can't possibly be used any more
  12172. in this routine. Assigning to the local variable will thus
  12173. munge parent in the parent process. */
  12174. pid_t
  12175. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12176. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12177. /* Convince the compiler that p..p7 are live; otherwise, it might
  12178. use the same hardware register for all 8 local variables. */
  12179. if (p != p1 || p != p2 || p != p3 || p != p4
  12180. || p != p5 || p != p6 || p != p7)
  12181. _exit(1);
  12182. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12183. from child file descriptors. If the child closes a descriptor
  12184. before it execs or exits, this munges the parent's descriptor
  12185. as well. Test for this by closing stdout in the child. */
  12186. _exit(close(fileno(stdout)) != 0);
  12187. } else {
  12188. int status;
  12189. struct stat st;
  12190. while (wait(&status) != child)
  12191. ;
  12192. return (
  12193. /* Was there some problem with vforking? */
  12194. child < 0
  12195. /* Did the child fail? (This shouldn't happen.) */
  12196. || status
  12197. /* Did the vfork/compiler bug occur? */
  12198. || parent != getpid()
  12199. /* Did the file descriptor bug occur? */
  12200. || fstat(fileno(stdout), &st) != 0
  12201. );
  12202. }
  12203. }
  12204. _ACEOF
  12205. if ac_fn_c_try_run "$LINENO"; then :
  12206. ac_cv_func_vfork_works=yes
  12207. else
  12208. ac_cv_func_vfork_works=no
  12209. fi
  12210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12212. fi
  12213. fi
  12214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12215. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12216. fi;
  12217. if test "x$ac_cv_func_fork_works" = xcross; then
  12218. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12220. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12221. fi
  12222. if test "x$ac_cv_func_vfork_works" = xyes; then
  12223. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12224. else
  12225. $as_echo "#define vfork fork" >>confdefs.h
  12226. fi
  12227. if test "x$ac_cv_func_fork_works" = xyes; then
  12228. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12229. fi
  12230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12231. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12232. if ${ac_cv_func_mbrtowc+:} false; then :
  12233. $as_echo_n "(cached) " >&6
  12234. else
  12235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12236. /* end confdefs.h. */
  12237. #include <wchar.h>
  12238. int
  12239. main ()
  12240. {
  12241. wchar_t wc;
  12242. char const s[] = "";
  12243. size_t n = 1;
  12244. mbstate_t state;
  12245. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12246. ;
  12247. return 0;
  12248. }
  12249. _ACEOF
  12250. if ac_fn_c_try_link "$LINENO"; then :
  12251. ac_cv_func_mbrtowc=yes
  12252. else
  12253. ac_cv_func_mbrtowc=no
  12254. fi
  12255. rm -f core conftest.err conftest.$ac_objext \
  12256. conftest$ac_exeext conftest.$ac_ext
  12257. fi
  12258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12259. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  12260. if test $ac_cv_func_mbrtowc = yes; then
  12261. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  12262. fi
  12263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12264. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  12265. # Check whether --enable-warnings was given.
  12266. if test "${enable_warnings+set}" = set; then :
  12267. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12269. $as_echo "no" >&6; }
  12270. WARNINGS=
  12271. else
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12273. $as_echo "yes" >&6; }
  12274. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12275. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12276. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12277. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12278. fi
  12279. else
  12280. if test "$GCC" = yes; then
  12281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12282. $as_echo "yes" >&6; }
  12283. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12284. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12285. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12286. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12287. else
  12288. WARNINGS=
  12289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12290. $as_echo "no" >&6; }
  12291. fi
  12292. fi
  12293. for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem pipe2 posix_spawnp
  12294. do :
  12295. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12296. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12297. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12298. cat >>confdefs.h <<_ACEOF
  12299. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12300. _ACEOF
  12301. fi
  12302. done
  12303. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  12304. if test "x$ac_cv_func_getopt_long" = xyes; then :
  12305. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  12306. else
  12307. case " $LIBOBJS " in
  12308. *" getopt_long.$ac_objext "* ) ;;
  12309. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  12310. ;;
  12311. esac
  12312. fi
  12313. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  12314. if test "x$ac_cv_func_asprintf" = xyes; then :
  12315. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  12316. else
  12317. case " $LIBOBJS " in
  12318. *" asprintf.$ac_objext "* ) ;;
  12319. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  12320. ;;
  12321. esac
  12322. fi
  12323. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  12324. if test "x$ac_cv_func_vasprintf" = xyes; then :
  12325. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  12326. else
  12327. case " $LIBOBJS " in
  12328. *" vasprintf.$ac_objext "* ) ;;
  12329. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  12330. ;;
  12331. esac
  12332. fi
  12333. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  12334. if test "x$ac_cv_func_strlcpy" = xyes; then :
  12335. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  12336. else
  12337. case " $LIBOBJS " in
  12338. *" strlcpy.$ac_objext "* ) ;;
  12339. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  12340. ;;
  12341. esac
  12342. fi
  12343. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  12344. if test "x$ac_cv_func_strlcat" = xyes; then :
  12345. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  12346. else
  12347. case " $LIBOBJS " in
  12348. *" strlcat.$ac_objext "* ) ;;
  12349. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  12350. ;;
  12351. esac
  12352. fi
  12353. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  12354. if test "x$ac_cv_func_getline" = xyes; then :
  12355. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  12356. else
  12357. case " $LIBOBJS " in
  12358. *" getline.$ac_objext "* ) ;;
  12359. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  12360. ;;
  12361. esac
  12362. fi
  12363. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  12364. if test "x$ac_cv_func_ctime_r" = xyes; then :
  12365. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  12366. else
  12367. case " $LIBOBJS " in
  12368. *" ctime_r.$ac_objext "* ) ;;
  12369. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  12370. ;;
  12371. esac
  12372. fi
  12373. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12374. if test "x$ac_cv_func_asctime_r" = xyes; then :
  12375. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  12376. else
  12377. case " $LIBOBJS " in
  12378. *" asctime_r.$ac_objext "* ) ;;
  12379. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  12380. ;;
  12381. esac
  12382. fi
  12383. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12384. if test "x$ac_cv_func_localtime_r" = xyes; then :
  12385. $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  12386. else
  12387. case " $LIBOBJS " in
  12388. *" localtime_r.$ac_objext "* ) ;;
  12389. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  12390. ;;
  12391. esac
  12392. fi
  12393. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  12394. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  12395. $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
  12396. else
  12397. case " $LIBOBJS " in
  12398. *" gmtime_r.$ac_objext "* ) ;;
  12399. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  12400. ;;
  12401. esac
  12402. fi
  12403. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  12404. if test "x$ac_cv_func_pread" = xyes; then :
  12405. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  12406. else
  12407. case " $LIBOBJS " in
  12408. *" pread.$ac_objext "* ) ;;
  12409. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  12410. ;;
  12411. esac
  12412. fi
  12413. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  12414. if test "x$ac_cv_func_strcasestr" = xyes; then :
  12415. $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
  12416. else
  12417. case " $LIBOBJS " in
  12418. *" strcasestr.$ac_objext "* ) ;;
  12419. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  12420. ;;
  12421. esac
  12422. fi
  12423. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  12424. if test "x$ac_cv_func_fmtcheck" = xyes; then :
  12425. $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
  12426. else
  12427. case " $LIBOBJS " in
  12428. *" fmtcheck.$ac_objext "* ) ;;
  12429. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  12430. ;;
  12431. esac
  12432. fi
  12433. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  12434. if test "x$ac_cv_func_dprintf" = xyes; then :
  12435. $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
  12436. else
  12437. case " $LIBOBJS " in
  12438. *" dprintf.$ac_objext "* ) ;;
  12439. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  12440. ;;
  12441. esac
  12442. fi
  12443. if test "$enable_zlib" != "no"; then
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12445. $as_echo_n "checking for gzopen in -lz... " >&6; }
  12446. if ${ac_cv_lib_z_gzopen+:} false; then :
  12447. $as_echo_n "(cached) " >&6
  12448. else
  12449. ac_check_lib_save_LIBS=$LIBS
  12450. LIBS="-lz $LIBS"
  12451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12452. /* end confdefs.h. */
  12453. /* Override any GCC internal prototype to avoid an error.
  12454. Use char because int might match the return type of a GCC
  12455. builtin and then its argument prototype would still apply. */
  12456. #ifdef __cplusplus
  12457. extern "C"
  12458. #endif
  12459. char gzopen ();
  12460. int
  12461. main ()
  12462. {
  12463. return gzopen ();
  12464. ;
  12465. return 0;
  12466. }
  12467. _ACEOF
  12468. if ac_fn_c_try_link "$LINENO"; then :
  12469. ac_cv_lib_z_gzopen=yes
  12470. else
  12471. ac_cv_lib_z_gzopen=no
  12472. fi
  12473. rm -f core conftest.err conftest.$ac_objext \
  12474. conftest$ac_exeext conftest.$ac_ext
  12475. LIBS=$ac_check_lib_save_LIBS
  12476. fi
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12478. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  12479. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  12480. cat >>confdefs.h <<_ACEOF
  12481. #define HAVE_LIBZ 1
  12482. _ACEOF
  12483. LIBS="-lz $LIBS"
  12484. fi
  12485. fi
  12486. if test "$enable_bzlib" != "no"; then
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
  12488. $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
  12489. if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
  12490. $as_echo_n "(cached) " >&6
  12491. else
  12492. ac_check_lib_save_LIBS=$LIBS
  12493. LIBS="-lbz2 $LIBS"
  12494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12495. /* end confdefs.h. */
  12496. /* Override any GCC internal prototype to avoid an error.
  12497. Use char because int might match the return type of a GCC
  12498. builtin and then its argument prototype would still apply. */
  12499. #ifdef __cplusplus
  12500. extern "C"
  12501. #endif
  12502. char BZ2_bzCompressInit ();
  12503. int
  12504. main ()
  12505. {
  12506. return BZ2_bzCompressInit ();
  12507. ;
  12508. return 0;
  12509. }
  12510. _ACEOF
  12511. if ac_fn_c_try_link "$LINENO"; then :
  12512. ac_cv_lib_bz2_BZ2_bzCompressInit=yes
  12513. else
  12514. ac_cv_lib_bz2_BZ2_bzCompressInit=no
  12515. fi
  12516. rm -f core conftest.err conftest.$ac_objext \
  12517. conftest$ac_exeext conftest.$ac_ext
  12518. LIBS=$ac_check_lib_save_LIBS
  12519. fi
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
  12521. $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
  12522. if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
  12523. cat >>confdefs.h <<_ACEOF
  12524. #define HAVE_LIBBZ2 1
  12525. _ACEOF
  12526. LIBS="-lbz2 $LIBS"
  12527. fi
  12528. fi
  12529. if test "$enable_xzlib" != "no"; then
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
  12531. $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
  12532. if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
  12533. $as_echo_n "(cached) " >&6
  12534. else
  12535. ac_check_lib_save_LIBS=$LIBS
  12536. LIBS="-llzma $LIBS"
  12537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12538. /* end confdefs.h. */
  12539. /* Override any GCC internal prototype to avoid an error.
  12540. Use char because int might match the return type of a GCC
  12541. builtin and then its argument prototype would still apply. */
  12542. #ifdef __cplusplus
  12543. extern "C"
  12544. #endif
  12545. char lzma_stream_decoder ();
  12546. int
  12547. main ()
  12548. {
  12549. return lzma_stream_decoder ();
  12550. ;
  12551. return 0;
  12552. }
  12553. _ACEOF
  12554. if ac_fn_c_try_link "$LINENO"; then :
  12555. ac_cv_lib_lzma_lzma_stream_decoder=yes
  12556. else
  12557. ac_cv_lib_lzma_lzma_stream_decoder=no
  12558. fi
  12559. rm -f core conftest.err conftest.$ac_objext \
  12560. conftest$ac_exeext conftest.$ac_ext
  12561. LIBS=$ac_check_lib_save_LIBS
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
  12564. $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
  12565. if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
  12566. cat >>confdefs.h <<_ACEOF
  12567. #define HAVE_LIBLZMA 1
  12568. _ACEOF
  12569. LIBS="-llzma $LIBS"
  12570. fi
  12571. fi
  12572. if test "$enable_zstdlib" != "no"; then
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
  12574. $as_echo_n "checking for ZSTD_createDStream in -lzstd... " >&6; }
  12575. if ${ac_cv_lib_zstd_ZSTD_createDStream+:} false; then :
  12576. $as_echo_n "(cached) " >&6
  12577. else
  12578. ac_check_lib_save_LIBS=$LIBS
  12579. LIBS="-lzstd $LIBS"
  12580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12581. /* end confdefs.h. */
  12582. /* Override any GCC internal prototype to avoid an error.
  12583. Use char because int might match the return type of a GCC
  12584. builtin and then its argument prototype would still apply. */
  12585. #ifdef __cplusplus
  12586. extern "C"
  12587. #endif
  12588. char ZSTD_createDStream ();
  12589. int
  12590. main ()
  12591. {
  12592. return ZSTD_createDStream ();
  12593. ;
  12594. return 0;
  12595. }
  12596. _ACEOF
  12597. if ac_fn_c_try_link "$LINENO"; then :
  12598. ac_cv_lib_zstd_ZSTD_createDStream=yes
  12599. else
  12600. ac_cv_lib_zstd_ZSTD_createDStream=no
  12601. fi
  12602. rm -f core conftest.err conftest.$ac_objext \
  12603. conftest$ac_exeext conftest.$ac_ext
  12604. LIBS=$ac_check_lib_save_LIBS
  12605. fi
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
  12607. $as_echo "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
  12608. if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes; then :
  12609. cat >>confdefs.h <<_ACEOF
  12610. #define HAVE_LIBZSTD 1
  12611. _ACEOF
  12612. LIBS="-lzstd $LIBS"
  12613. fi
  12614. fi
  12615. if test "$enable_lzlib" != "no"; then
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5
  12617. $as_echo_n "checking for LZ_decompress_open in -llz... " >&6; }
  12618. if ${ac_cv_lib_lz_LZ_decompress_open+:} false; then :
  12619. $as_echo_n "(cached) " >&6
  12620. else
  12621. ac_check_lib_save_LIBS=$LIBS
  12622. LIBS="-llz $LIBS"
  12623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12624. /* end confdefs.h. */
  12625. /* Override any GCC internal prototype to avoid an error.
  12626. Use char because int might match the return type of a GCC
  12627. builtin and then its argument prototype would still apply. */
  12628. #ifdef __cplusplus
  12629. extern "C"
  12630. #endif
  12631. char LZ_decompress_open ();
  12632. int
  12633. main ()
  12634. {
  12635. return LZ_decompress_open ();
  12636. ;
  12637. return 0;
  12638. }
  12639. _ACEOF
  12640. if ac_fn_c_try_link "$LINENO"; then :
  12641. ac_cv_lib_lz_LZ_decompress_open=yes
  12642. else
  12643. ac_cv_lib_lz_LZ_decompress_open=no
  12644. fi
  12645. rm -f core conftest.err conftest.$ac_objext \
  12646. conftest$ac_exeext conftest.$ac_ext
  12647. LIBS=$ac_check_lib_save_LIBS
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5
  12650. $as_echo "$ac_cv_lib_lz_LZ_decompress_open" >&6; }
  12651. if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes; then :
  12652. cat >>confdefs.h <<_ACEOF
  12653. #define HAVE_LIBLZ 1
  12654. _ACEOF
  12655. LIBS="-llz $LIBS"
  12656. fi
  12657. fi
  12658. if test "$enable_libseccomp" != "no"; then
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  12660. $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
  12661. if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
  12662. $as_echo_n "(cached) " >&6
  12663. else
  12664. ac_check_lib_save_LIBS=$LIBS
  12665. LIBS="-lseccomp $LIBS"
  12666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12667. /* end confdefs.h. */
  12668. /* Override any GCC internal prototype to avoid an error.
  12669. Use char because int might match the return type of a GCC
  12670. builtin and then its argument prototype would still apply. */
  12671. #ifdef __cplusplus
  12672. extern "C"
  12673. #endif
  12674. char seccomp_init ();
  12675. int
  12676. main ()
  12677. {
  12678. return seccomp_init ();
  12679. ;
  12680. return 0;
  12681. }
  12682. _ACEOF
  12683. if ac_fn_c_try_link "$LINENO"; then :
  12684. ac_cv_lib_seccomp_seccomp_init=yes
  12685. else
  12686. ac_cv_lib_seccomp_seccomp_init=no
  12687. fi
  12688. rm -f core conftest.err conftest.$ac_objext \
  12689. conftest$ac_exeext conftest.$ac_ext
  12690. LIBS=$ac_check_lib_save_LIBS
  12691. fi
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  12693. $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  12694. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
  12695. cat >>confdefs.h <<_ACEOF
  12696. #define HAVE_LIBSECCOMP 1
  12697. _ACEOF
  12698. LIBS="-lseccomp $LIBS"
  12699. fi
  12700. fi
  12701. if test "$MINGW" = 1; then
  12702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  12703. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  12704. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  12705. $as_echo_n "(cached) " >&6
  12706. else
  12707. ac_check_lib_save_LIBS=$LIBS
  12708. LIBS="-lgnurx $LIBS"
  12709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12710. /* end confdefs.h. */
  12711. /* Override any GCC internal prototype to avoid an error.
  12712. Use char because int might match the return type of a GCC
  12713. builtin and then its argument prototype would still apply. */
  12714. #ifdef __cplusplus
  12715. extern "C"
  12716. #endif
  12717. char regexec ();
  12718. int
  12719. main ()
  12720. {
  12721. return regexec ();
  12722. ;
  12723. return 0;
  12724. }
  12725. _ACEOF
  12726. if ac_fn_c_try_link "$LINENO"; then :
  12727. ac_cv_lib_gnurx_regexec=yes
  12728. else
  12729. ac_cv_lib_gnurx_regexec=no
  12730. fi
  12731. rm -f core conftest.err conftest.$ac_objext \
  12732. conftest$ac_exeext conftest.$ac_ext
  12733. LIBS=$ac_check_lib_save_LIBS
  12734. fi
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  12736. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  12737. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  12738. cat >>confdefs.h <<_ACEOF
  12739. #define HAVE_LIBGNURX 1
  12740. _ACEOF
  12741. LIBS="-lgnurx $LIBS"
  12742. else
  12743. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  12744. fi
  12745. fi
  12746. if test "$cross_compiling" = yes; then
  12747. IS_CROSS_COMPILE_TRUE=
  12748. IS_CROSS_COMPILE_FALSE='#'
  12749. else
  12750. IS_CROSS_COMPILE_TRUE='#'
  12751. IS_CROSS_COMPILE_FALSE=
  12752. fi
  12753. if test "$enable_zlib" = "yes"; then
  12754. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  12755. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  12756. fi
  12757. fi
  12758. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  12759. $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
  12760. fi
  12761. if test "$enable_bzlib" = "yes"; then
  12762. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
  12763. as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
  12764. fi
  12765. fi
  12766. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
  12767. $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
  12768. fi
  12769. if test "$enable_xzlib" = "yes"; then
  12770. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
  12771. as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
  12772. fi
  12773. fi
  12774. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
  12775. $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
  12776. fi
  12777. if test "$enable_zstdlib" = "yes"; then
  12778. if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then
  12779. as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5
  12780. fi
  12781. fi
  12782. if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then
  12783. $as_echo "#define ZSTDLIBSUPPORT 1" >>confdefs.h
  12784. fi
  12785. if test "$enable_lzlib" = "yes"; then
  12786. if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then
  12787. as_fn_error $? "lzlib support requested but not found" "$LINENO" 5
  12788. fi
  12789. fi
  12790. if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then
  12791. $as_echo "#define LZLIBSUPPORT 1" >>confdefs.h
  12792. fi
  12793. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
  12794. cat >confcache <<\_ACEOF
  12795. # This file is a shell script that caches the results of configure
  12796. # tests run on this system so they can be shared between configure
  12797. # scripts and configure runs, see configure's option --config-cache.
  12798. # It is not useful on other systems. If it contains results you don't
  12799. # want to keep, you may remove or edit it.
  12800. #
  12801. # config.status only pays attention to the cache file if you give it
  12802. # the --recheck option to rerun configure.
  12803. #
  12804. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12805. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12806. # following values.
  12807. _ACEOF
  12808. # The following way of writing the cache mishandles newlines in values,
  12809. # but we know of no workaround that is simple, portable, and efficient.
  12810. # So, we kill variables containing newlines.
  12811. # Ultrix sh set writes to stderr and can't be redirected directly,
  12812. # and sets the high bit in the cache file unless we assign to the vars.
  12813. (
  12814. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12815. eval ac_val=\$$ac_var
  12816. case $ac_val in #(
  12817. *${as_nl}*)
  12818. case $ac_var in #(
  12819. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12820. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12821. esac
  12822. case $ac_var in #(
  12823. _ | IFS | as_nl) ;; #(
  12824. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12825. *) { eval $ac_var=; unset $ac_var;} ;;
  12826. esac ;;
  12827. esac
  12828. done
  12829. (set) 2>&1 |
  12830. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12831. *${as_nl}ac_space=\ *)
  12832. # `set' does not quote correctly, so add quotes: double-quote
  12833. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12834. sed -n \
  12835. "s/'/'\\\\''/g;
  12836. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12837. ;; #(
  12838. *)
  12839. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12840. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12841. ;;
  12842. esac |
  12843. sort
  12844. ) |
  12845. sed '
  12846. /^ac_cv_env_/b end
  12847. t clear
  12848. :clear
  12849. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12850. t end
  12851. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12852. :end' >>confcache
  12853. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12854. if test -w "$cache_file"; then
  12855. if test "x$cache_file" != "x/dev/null"; then
  12856. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12857. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12858. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12859. cat confcache >"$cache_file"
  12860. else
  12861. case $cache_file in #(
  12862. */* | ?:*)
  12863. mv -f confcache "$cache_file"$$ &&
  12864. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12865. *)
  12866. mv -f confcache "$cache_file" ;;
  12867. esac
  12868. fi
  12869. fi
  12870. else
  12871. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12872. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12873. fi
  12874. fi
  12875. rm -f confcache
  12876. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12877. # Let make expand exec_prefix.
  12878. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12879. DEFS=-DHAVE_CONFIG_H
  12880. ac_libobjs=
  12881. ac_ltlibobjs=
  12882. U=
  12883. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12884. # 1. Remove the extension, and $U if already installed.
  12885. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12886. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12887. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12888. # will be set to the directory where LIBOBJS objects are built.
  12889. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12890. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12891. done
  12892. LIBOBJS=$ac_libobjs
  12893. LTLIBOBJS=$ac_ltlibobjs
  12894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12895. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12896. if test -n "$am_sleep_pid"; then
  12897. # Hide warnings about reused PIDs.
  12898. wait $am_sleep_pid 2>/dev/null
  12899. fi
  12900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12901. $as_echo "done" >&6; }
  12902. if test -n "$EXEEXT"; then
  12903. am__EXEEXT_TRUE=
  12904. am__EXEEXT_FALSE='#'
  12905. else
  12906. am__EXEEXT_TRUE='#'
  12907. am__EXEEXT_FALSE=
  12908. fi
  12909. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  12910. as_fn_error $? "conditional \"MINGW\" was never defined.
  12911. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12912. fi
  12913. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  12914. as_fn_error $? "conditional \"FSECT5\" was never defined.
  12915. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12916. fi
  12917. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12918. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12919. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12920. fi
  12921. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12922. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12923. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12924. fi
  12925. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  12926. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  12927. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12928. fi
  12929. : "${CONFIG_STATUS=./config.status}"
  12930. ac_write_fail=0
  12931. ac_clean_files_save=$ac_clean_files
  12932. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12934. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12935. as_write_fail=0
  12936. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12937. #! $SHELL
  12938. # Generated by $as_me.
  12939. # Run this file to recreate the current configuration.
  12940. # Compiler output produced by configure, useful for debugging
  12941. # configure, is in config.log if it exists.
  12942. debug=false
  12943. ac_cs_recheck=false
  12944. ac_cs_silent=false
  12945. SHELL=\${CONFIG_SHELL-$SHELL}
  12946. export SHELL
  12947. _ASEOF
  12948. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12949. ## -------------------- ##
  12950. ## M4sh Initialization. ##
  12951. ## -------------------- ##
  12952. # Be more Bourne compatible
  12953. DUALCASE=1; export DUALCASE # for MKS sh
  12954. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12955. emulate sh
  12956. NULLCMD=:
  12957. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12958. # is contrary to our usage. Disable this feature.
  12959. alias -g '${1+"$@"}'='"$@"'
  12960. setopt NO_GLOB_SUBST
  12961. else
  12962. case `(set -o) 2>/dev/null` in #(
  12963. *posix*) :
  12964. set -o posix ;; #(
  12965. *) :
  12966. ;;
  12967. esac
  12968. fi
  12969. as_nl='
  12970. '
  12971. export as_nl
  12972. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12973. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12974. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12975. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12976. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12977. # but without wasting forks for bash or zsh.
  12978. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12979. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12980. as_echo='print -r --'
  12981. as_echo_n='print -rn --'
  12982. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12983. as_echo='printf %s\n'
  12984. as_echo_n='printf %s'
  12985. else
  12986. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12987. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12988. as_echo_n='/usr/ucb/echo -n'
  12989. else
  12990. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12991. as_echo_n_body='eval
  12992. arg=$1;
  12993. case $arg in #(
  12994. *"$as_nl"*)
  12995. expr "X$arg" : "X\\(.*\\)$as_nl";
  12996. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12997. esac;
  12998. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12999. '
  13000. export as_echo_n_body
  13001. as_echo_n='sh -c $as_echo_n_body as_echo'
  13002. fi
  13003. export as_echo_body
  13004. as_echo='sh -c $as_echo_body as_echo'
  13005. fi
  13006. # The user is always right.
  13007. if test "${PATH_SEPARATOR+set}" != set; then
  13008. PATH_SEPARATOR=:
  13009. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13010. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13011. PATH_SEPARATOR=';'
  13012. }
  13013. fi
  13014. # IFS
  13015. # We need space, tab and new line, in precisely that order. Quoting is
  13016. # there to prevent editors from complaining about space-tab.
  13017. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13018. # splitting by setting IFS to empty value.)
  13019. IFS=" "" $as_nl"
  13020. # Find who we are. Look in the path if we contain no directory separator.
  13021. as_myself=
  13022. case $0 in #((
  13023. *[\\/]* ) as_myself=$0 ;;
  13024. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13025. for as_dir in $PATH
  13026. do
  13027. IFS=$as_save_IFS
  13028. test -z "$as_dir" && as_dir=.
  13029. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13030. done
  13031. IFS=$as_save_IFS
  13032. ;;
  13033. esac
  13034. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13035. # in which case we are not to be found in the path.
  13036. if test "x$as_myself" = x; then
  13037. as_myself=$0
  13038. fi
  13039. if test ! -f "$as_myself"; then
  13040. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13041. exit 1
  13042. fi
  13043. # Unset variables that we do not need and which cause bugs (e.g. in
  13044. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13045. # suppresses any "Segmentation fault" message there. '((' could
  13046. # trigger a bug in pdksh 5.2.14.
  13047. for as_var in BASH_ENV ENV MAIL MAILPATH
  13048. do eval test x\${$as_var+set} = xset \
  13049. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13050. done
  13051. PS1='$ '
  13052. PS2='> '
  13053. PS4='+ '
  13054. # NLS nuisances.
  13055. LC_ALL=C
  13056. export LC_ALL
  13057. LANGUAGE=C
  13058. export LANGUAGE
  13059. # CDPATH.
  13060. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13061. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13062. # ----------------------------------------
  13063. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13064. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13065. # script with STATUS, using 1 if that was 0.
  13066. as_fn_error ()
  13067. {
  13068. as_status=$1; test $as_status -eq 0 && as_status=1
  13069. if test "$4"; then
  13070. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13071. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13072. fi
  13073. $as_echo "$as_me: error: $2" >&2
  13074. as_fn_exit $as_status
  13075. } # as_fn_error
  13076. # as_fn_set_status STATUS
  13077. # -----------------------
  13078. # Set $? to STATUS, without forking.
  13079. as_fn_set_status ()
  13080. {
  13081. return $1
  13082. } # as_fn_set_status
  13083. # as_fn_exit STATUS
  13084. # -----------------
  13085. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13086. as_fn_exit ()
  13087. {
  13088. set +e
  13089. as_fn_set_status $1
  13090. exit $1
  13091. } # as_fn_exit
  13092. # as_fn_unset VAR
  13093. # ---------------
  13094. # Portably unset VAR.
  13095. as_fn_unset ()
  13096. {
  13097. { eval $1=; unset $1;}
  13098. }
  13099. as_unset=as_fn_unset
  13100. # as_fn_append VAR VALUE
  13101. # ----------------------
  13102. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13103. # advantage of any shell optimizations that allow amortized linear growth over
  13104. # repeated appends, instead of the typical quadratic growth present in naive
  13105. # implementations.
  13106. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13107. eval 'as_fn_append ()
  13108. {
  13109. eval $1+=\$2
  13110. }'
  13111. else
  13112. as_fn_append ()
  13113. {
  13114. eval $1=\$$1\$2
  13115. }
  13116. fi # as_fn_append
  13117. # as_fn_arith ARG...
  13118. # ------------------
  13119. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13120. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13121. # must be portable across $(()) and expr.
  13122. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13123. eval 'as_fn_arith ()
  13124. {
  13125. as_val=$(( $* ))
  13126. }'
  13127. else
  13128. as_fn_arith ()
  13129. {
  13130. as_val=`expr "$@" || test $? -eq 1`
  13131. }
  13132. fi # as_fn_arith
  13133. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13134. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13135. as_expr=expr
  13136. else
  13137. as_expr=false
  13138. fi
  13139. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13140. as_basename=basename
  13141. else
  13142. as_basename=false
  13143. fi
  13144. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13145. as_dirname=dirname
  13146. else
  13147. as_dirname=false
  13148. fi
  13149. as_me=`$as_basename -- "$0" ||
  13150. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13151. X"$0" : 'X\(//\)$' \| \
  13152. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13153. $as_echo X/"$0" |
  13154. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13155. s//\1/
  13156. q
  13157. }
  13158. /^X\/\(\/\/\)$/{
  13159. s//\1/
  13160. q
  13161. }
  13162. /^X\/\(\/\).*/{
  13163. s//\1/
  13164. q
  13165. }
  13166. s/.*/./; q'`
  13167. # Avoid depending upon Character Ranges.
  13168. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13169. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13170. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13171. as_cr_digits='0123456789'
  13172. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13173. ECHO_C= ECHO_N= ECHO_T=
  13174. case `echo -n x` in #(((((
  13175. -n*)
  13176. case `echo 'xy\c'` in
  13177. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13178. xy) ECHO_C='\c';;
  13179. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13180. ECHO_T=' ';;
  13181. esac;;
  13182. *)
  13183. ECHO_N='-n';;
  13184. esac
  13185. rm -f conf$$ conf$$.exe conf$$.file
  13186. if test -d conf$$.dir; then
  13187. rm -f conf$$.dir/conf$$.file
  13188. else
  13189. rm -f conf$$.dir
  13190. mkdir conf$$.dir 2>/dev/null
  13191. fi
  13192. if (echo >conf$$.file) 2>/dev/null; then
  13193. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13194. as_ln_s='ln -s'
  13195. # ... but there are two gotchas:
  13196. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13197. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13198. # In both cases, we have to default to `cp -pR'.
  13199. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13200. as_ln_s='cp -pR'
  13201. elif ln conf$$.file conf$$ 2>/dev/null; then
  13202. as_ln_s=ln
  13203. else
  13204. as_ln_s='cp -pR'
  13205. fi
  13206. else
  13207. as_ln_s='cp -pR'
  13208. fi
  13209. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13210. rmdir conf$$.dir 2>/dev/null
  13211. # as_fn_mkdir_p
  13212. # -------------
  13213. # Create "$as_dir" as a directory, including parents if necessary.
  13214. as_fn_mkdir_p ()
  13215. {
  13216. case $as_dir in #(
  13217. -*) as_dir=./$as_dir;;
  13218. esac
  13219. test -d "$as_dir" || eval $as_mkdir_p || {
  13220. as_dirs=
  13221. while :; do
  13222. case $as_dir in #(
  13223. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13224. *) as_qdir=$as_dir;;
  13225. esac
  13226. as_dirs="'$as_qdir' $as_dirs"
  13227. as_dir=`$as_dirname -- "$as_dir" ||
  13228. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13229. X"$as_dir" : 'X\(//\)[^/]' \| \
  13230. X"$as_dir" : 'X\(//\)$' \| \
  13231. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13232. $as_echo X"$as_dir" |
  13233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13234. s//\1/
  13235. q
  13236. }
  13237. /^X\(\/\/\)[^/].*/{
  13238. s//\1/
  13239. q
  13240. }
  13241. /^X\(\/\/\)$/{
  13242. s//\1/
  13243. q
  13244. }
  13245. /^X\(\/\).*/{
  13246. s//\1/
  13247. q
  13248. }
  13249. s/.*/./; q'`
  13250. test -d "$as_dir" && break
  13251. done
  13252. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13253. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13254. } # as_fn_mkdir_p
  13255. if mkdir -p . 2>/dev/null; then
  13256. as_mkdir_p='mkdir -p "$as_dir"'
  13257. else
  13258. test -d ./-p && rmdir ./-p
  13259. as_mkdir_p=false
  13260. fi
  13261. # as_fn_executable_p FILE
  13262. # -----------------------
  13263. # Test if FILE is an executable regular file.
  13264. as_fn_executable_p ()
  13265. {
  13266. test -f "$1" && test -x "$1"
  13267. } # as_fn_executable_p
  13268. as_test_x='test -x'
  13269. as_executable_p=as_fn_executable_p
  13270. # Sed expression to map a string onto a valid CPP name.
  13271. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13272. # Sed expression to map a string onto a valid variable name.
  13273. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13274. exec 6>&1
  13275. ## ----------------------------------- ##
  13276. ## Main body of $CONFIG_STATUS script. ##
  13277. ## ----------------------------------- ##
  13278. _ASEOF
  13279. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13281. # Save the log message, to keep $0 and so on meaningful, and to
  13282. # report actual input values of CONFIG_FILES etc. instead of their
  13283. # values after options handling.
  13284. ac_log="
  13285. This file was extended by file $as_me 5.44, which was
  13286. generated by GNU Autoconf 2.69. Invocation command line was
  13287. CONFIG_FILES = $CONFIG_FILES
  13288. CONFIG_HEADERS = $CONFIG_HEADERS
  13289. CONFIG_LINKS = $CONFIG_LINKS
  13290. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13291. $ $0 $@
  13292. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13293. "
  13294. _ACEOF
  13295. case $ac_config_files in *"
  13296. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13297. esac
  13298. case $ac_config_headers in *"
  13299. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13300. esac
  13301. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13302. # Files that config.status was made for.
  13303. config_files="$ac_config_files"
  13304. config_headers="$ac_config_headers"
  13305. config_commands="$ac_config_commands"
  13306. _ACEOF
  13307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13308. ac_cs_usage="\
  13309. \`$as_me' instantiates files and other configuration actions
  13310. from templates according to the current configuration. Unless the files
  13311. and actions are specified as TAGs, all are instantiated by default.
  13312. Usage: $0 [OPTION]... [TAG]...
  13313. -h, --help print this help, then exit
  13314. -V, --version print version number and configuration settings, then exit
  13315. --config print configuration, then exit
  13316. -q, --quiet, --silent
  13317. do not print progress messages
  13318. -d, --debug don't remove temporary files
  13319. --recheck update $as_me by reconfiguring in the same conditions
  13320. --file=FILE[:TEMPLATE]
  13321. instantiate the configuration file FILE
  13322. --header=FILE[:TEMPLATE]
  13323. instantiate the configuration header FILE
  13324. Configuration files:
  13325. $config_files
  13326. Configuration headers:
  13327. $config_headers
  13328. Configuration commands:
  13329. $config_commands
  13330. Report bugs to <christos@astron.com>."
  13331. _ACEOF
  13332. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13333. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13334. ac_cs_version="\\
  13335. file config.status 5.44
  13336. configured by $0, generated by GNU Autoconf 2.69,
  13337. with options \\"\$ac_cs_config\\"
  13338. Copyright (C) 2012 Free Software Foundation, Inc.
  13339. This config.status script is free software; the Free Software Foundation
  13340. gives unlimited permission to copy, distribute and modify it."
  13341. ac_pwd='$ac_pwd'
  13342. srcdir='$srcdir'
  13343. INSTALL='$INSTALL'
  13344. MKDIR_P='$MKDIR_P'
  13345. AWK='$AWK'
  13346. test -n "\$AWK" || AWK=awk
  13347. _ACEOF
  13348. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13349. # The default lists apply if the user does not specify any file.
  13350. ac_need_defaults=:
  13351. while test $# != 0
  13352. do
  13353. case $1 in
  13354. --*=?*)
  13355. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13356. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13357. ac_shift=:
  13358. ;;
  13359. --*=)
  13360. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13361. ac_optarg=
  13362. ac_shift=:
  13363. ;;
  13364. *)
  13365. ac_option=$1
  13366. ac_optarg=$2
  13367. ac_shift=shift
  13368. ;;
  13369. esac
  13370. case $ac_option in
  13371. # Handling of the options.
  13372. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13373. ac_cs_recheck=: ;;
  13374. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13375. $as_echo "$ac_cs_version"; exit ;;
  13376. --config | --confi | --conf | --con | --co | --c )
  13377. $as_echo "$ac_cs_config"; exit ;;
  13378. --debug | --debu | --deb | --de | --d | -d )
  13379. debug=: ;;
  13380. --file | --fil | --fi | --f )
  13381. $ac_shift
  13382. case $ac_optarg in
  13383. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13384. '') as_fn_error $? "missing file argument" ;;
  13385. esac
  13386. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13387. ac_need_defaults=false;;
  13388. --header | --heade | --head | --hea )
  13389. $ac_shift
  13390. case $ac_optarg in
  13391. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13392. esac
  13393. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13394. ac_need_defaults=false;;
  13395. --he | --h)
  13396. # Conflict between --help and --header
  13397. as_fn_error $? "ambiguous option: \`$1'
  13398. Try \`$0 --help' for more information.";;
  13399. --help | --hel | -h )
  13400. $as_echo "$ac_cs_usage"; exit ;;
  13401. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13402. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13403. ac_cs_silent=: ;;
  13404. # This is an error.
  13405. -*) as_fn_error $? "unrecognized option: \`$1'
  13406. Try \`$0 --help' for more information." ;;
  13407. *) as_fn_append ac_config_targets " $1"
  13408. ac_need_defaults=false ;;
  13409. esac
  13410. shift
  13411. done
  13412. ac_configure_extra_args=
  13413. if $ac_cs_silent; then
  13414. exec 6>/dev/null
  13415. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13416. fi
  13417. _ACEOF
  13418. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13419. if \$ac_cs_recheck; then
  13420. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13421. shift
  13422. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13423. CONFIG_SHELL='$SHELL'
  13424. export CONFIG_SHELL
  13425. exec "\$@"
  13426. fi
  13427. _ACEOF
  13428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13429. exec 5>>config.log
  13430. {
  13431. echo
  13432. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13433. ## Running $as_me. ##
  13434. _ASBOX
  13435. $as_echo "$ac_log"
  13436. } >&5
  13437. _ACEOF
  13438. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13439. #
  13440. # INIT-COMMANDS
  13441. #
  13442. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  13443. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13444. # if CDPATH is set.
  13445. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13446. sed_quote_subst='$sed_quote_subst'
  13447. double_quote_subst='$double_quote_subst'
  13448. delay_variable_subst='$delay_variable_subst'
  13449. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13450. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13451. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13452. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13453. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13454. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13455. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13456. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13457. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13458. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13459. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13460. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13461. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13462. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13463. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13464. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13465. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13466. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13467. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13468. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13469. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13470. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13471. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13472. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13473. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13474. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13475. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13476. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13477. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13478. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13479. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13480. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13481. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13482. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13483. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13484. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13485. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13486. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13487. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13488. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13489. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13490. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13491. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13492. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13493. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13494. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13495. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13496. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13497. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13498. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13499. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13500. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13501. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13502. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13503. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13504. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13505. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13506. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13507. 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"`'
  13508. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13509. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13510. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13511. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13512. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13513. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13514. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13515. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13516. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13517. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13518. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13519. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13520. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13521. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13522. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13523. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13524. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13525. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13526. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13527. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13528. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13529. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13530. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13531. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13532. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13533. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13534. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13535. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13536. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13537. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13538. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13539. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13540. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13541. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13542. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13543. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13544. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13545. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13546. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13547. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13548. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13549. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13550. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13551. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13552. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13553. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13554. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13555. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13556. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13557. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13558. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13559. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13560. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13561. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13562. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13563. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13564. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13565. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13566. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13567. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13568. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13569. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13570. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13571. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13572. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13573. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13574. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13575. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13576. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13577. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13578. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13579. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13580. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13581. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13582. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13583. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13584. LTCC='$LTCC'
  13585. LTCFLAGS='$LTCFLAGS'
  13586. compiler='$compiler_DEFAULT'
  13587. # A function that is used when there is no print builtin or printf.
  13588. func_fallback_echo ()
  13589. {
  13590. eval 'cat <<_LTECHO_EOF
  13591. \$1
  13592. _LTECHO_EOF'
  13593. }
  13594. # Quote evaled strings.
  13595. for var in SHELL \
  13596. ECHO \
  13597. PATH_SEPARATOR \
  13598. SED \
  13599. GREP \
  13600. EGREP \
  13601. FGREP \
  13602. LD \
  13603. NM \
  13604. LN_S \
  13605. lt_SP2NL \
  13606. lt_NL2SP \
  13607. reload_flag \
  13608. OBJDUMP \
  13609. deplibs_check_method \
  13610. file_magic_cmd \
  13611. file_magic_glob \
  13612. want_nocaseglob \
  13613. DLLTOOL \
  13614. sharedlib_from_linklib_cmd \
  13615. AR \
  13616. AR_FLAGS \
  13617. archiver_list_spec \
  13618. STRIP \
  13619. RANLIB \
  13620. CC \
  13621. CFLAGS \
  13622. compiler \
  13623. lt_cv_sys_global_symbol_pipe \
  13624. lt_cv_sys_global_symbol_to_cdecl \
  13625. lt_cv_sys_global_symbol_to_import \
  13626. lt_cv_sys_global_symbol_to_c_name_address \
  13627. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13628. lt_cv_nm_interface \
  13629. nm_file_list_spec \
  13630. lt_cv_truncate_bin \
  13631. lt_prog_compiler_no_builtin_flag \
  13632. lt_prog_compiler_pic \
  13633. lt_prog_compiler_wl \
  13634. lt_prog_compiler_static \
  13635. lt_cv_prog_compiler_c_o \
  13636. need_locks \
  13637. MANIFEST_TOOL \
  13638. DSYMUTIL \
  13639. NMEDIT \
  13640. LIPO \
  13641. OTOOL \
  13642. OTOOL64 \
  13643. shrext_cmds \
  13644. export_dynamic_flag_spec \
  13645. whole_archive_flag_spec \
  13646. compiler_needs_object \
  13647. with_gnu_ld \
  13648. allow_undefined_flag \
  13649. no_undefined_flag \
  13650. hardcode_libdir_flag_spec \
  13651. hardcode_libdir_separator \
  13652. exclude_expsyms \
  13653. include_expsyms \
  13654. file_list_spec \
  13655. variables_saved_for_relink \
  13656. libname_spec \
  13657. library_names_spec \
  13658. soname_spec \
  13659. install_override_mode \
  13660. finish_eval \
  13661. old_striplib \
  13662. striplib; do
  13663. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13664. *[\\\\\\\`\\"\\\$]*)
  13665. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13666. ;;
  13667. *)
  13668. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13669. ;;
  13670. esac
  13671. done
  13672. # Double-quote double-evaled strings.
  13673. for var in reload_cmds \
  13674. old_postinstall_cmds \
  13675. old_postuninstall_cmds \
  13676. old_archive_cmds \
  13677. extract_expsyms_cmds \
  13678. old_archive_from_new_cmds \
  13679. old_archive_from_expsyms_cmds \
  13680. archive_cmds \
  13681. archive_expsym_cmds \
  13682. module_cmds \
  13683. module_expsym_cmds \
  13684. export_symbols_cmds \
  13685. prelink_cmds \
  13686. postlink_cmds \
  13687. postinstall_cmds \
  13688. postuninstall_cmds \
  13689. finish_cmds \
  13690. sys_lib_search_path_spec \
  13691. configure_time_dlsearch_path \
  13692. configure_time_lt_sys_library_path; do
  13693. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13694. *[\\\\\\\`\\"\\\$]*)
  13695. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13696. ;;
  13697. *)
  13698. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13699. ;;
  13700. esac
  13701. done
  13702. ac_aux_dir='$ac_aux_dir'
  13703. # See if we are running on zsh, and set the options that allow our
  13704. # commands through without removal of \ escapes INIT.
  13705. if test -n "\${ZSH_VERSION+set}"; then
  13706. setopt NO_GLOB_SUBST
  13707. fi
  13708. PACKAGE='$PACKAGE'
  13709. VERSION='$VERSION'
  13710. RM='$RM'
  13711. ofile='$ofile'
  13712. _ACEOF
  13713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13714. # Handling of arguments.
  13715. for ac_config_target in $ac_config_targets
  13716. do
  13717. case $ac_config_target in
  13718. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13719. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13720. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13721. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13722. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13723. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  13724. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  13725. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13726. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  13727. "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
  13728. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13729. esac
  13730. done
  13731. # If the user did not use the arguments to specify the items to instantiate,
  13732. # then the envvar interface is used. Set only those that are not.
  13733. # We use the long form for the default assignment because of an extremely
  13734. # bizarre bug on SunOS 4.1.3.
  13735. if $ac_need_defaults; then
  13736. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13737. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13738. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13739. fi
  13740. # Have a temporary directory for convenience. Make it in the build tree
  13741. # simply because there is no reason against having it here, and in addition,
  13742. # creating and moving files from /tmp can sometimes cause problems.
  13743. # Hook for its removal unless debugging.
  13744. # Note that there is a small window in which the directory will not be cleaned:
  13745. # after its creation but before its name has been assigned to `$tmp'.
  13746. $debug ||
  13747. {
  13748. tmp= ac_tmp=
  13749. trap 'exit_status=$?
  13750. : "${ac_tmp:=$tmp}"
  13751. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13752. ' 0
  13753. trap 'as_fn_exit 1' 1 2 13 15
  13754. }
  13755. # Create a (secure) tmp directory for tmp files.
  13756. {
  13757. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13758. test -d "$tmp"
  13759. } ||
  13760. {
  13761. tmp=./conf$$-$RANDOM
  13762. (umask 077 && mkdir "$tmp")
  13763. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13764. ac_tmp=$tmp
  13765. # Set up the scripts for CONFIG_FILES section.
  13766. # No need to generate them if there are no CONFIG_FILES.
  13767. # This happens for instance with `./config.status config.h'.
  13768. if test -n "$CONFIG_FILES"; then
  13769. ac_cr=`echo X | tr X '\015'`
  13770. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13771. # But we know of no other shell where ac_cr would be empty at this
  13772. # point, so we can use a bashism as a fallback.
  13773. if test "x$ac_cr" = x; then
  13774. eval ac_cr=\$\'\\r\'
  13775. fi
  13776. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13777. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13778. ac_cs_awk_cr='\\r'
  13779. else
  13780. ac_cs_awk_cr=$ac_cr
  13781. fi
  13782. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13783. _ACEOF
  13784. {
  13785. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13786. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13787. echo "_ACEOF"
  13788. } >conf$$subs.sh ||
  13789. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13790. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13791. ac_delim='%!_!# '
  13792. for ac_last_try in false false false false false :; do
  13793. . ./conf$$subs.sh ||
  13794. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13795. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13796. if test $ac_delim_n = $ac_delim_num; then
  13797. break
  13798. elif $ac_last_try; then
  13799. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13800. else
  13801. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13802. fi
  13803. done
  13804. rm -f conf$$subs.sh
  13805. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13806. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13807. _ACEOF
  13808. sed -n '
  13809. h
  13810. s/^/S["/; s/!.*/"]=/
  13811. p
  13812. g
  13813. s/^[^!]*!//
  13814. :repl
  13815. t repl
  13816. s/'"$ac_delim"'$//
  13817. t delim
  13818. :nl
  13819. h
  13820. s/\(.\{148\}\)..*/\1/
  13821. t more1
  13822. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13823. p
  13824. n
  13825. b repl
  13826. :more1
  13827. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13828. p
  13829. g
  13830. s/.\{148\}//
  13831. t nl
  13832. :delim
  13833. h
  13834. s/\(.\{148\}\)..*/\1/
  13835. t more2
  13836. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13837. p
  13838. b
  13839. :more2
  13840. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13841. p
  13842. g
  13843. s/.\{148\}//
  13844. t delim
  13845. ' <conf$$subs.awk | sed '
  13846. /^[^""]/{
  13847. N
  13848. s/\n//
  13849. }
  13850. ' >>$CONFIG_STATUS || ac_write_fail=1
  13851. rm -f conf$$subs.awk
  13852. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13853. _ACAWK
  13854. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13855. for (key in S) S_is_set[key] = 1
  13856. FS = ""
  13857. }
  13858. {
  13859. line = $ 0
  13860. nfields = split(line, field, "@")
  13861. substed = 0
  13862. len = length(field[1])
  13863. for (i = 2; i < nfields; i++) {
  13864. key = field[i]
  13865. keylen = length(key)
  13866. if (S_is_set[key]) {
  13867. value = S[key]
  13868. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13869. len += length(value) + length(field[++i])
  13870. substed = 1
  13871. } else
  13872. len += 1 + keylen
  13873. }
  13874. print line
  13875. }
  13876. _ACAWK
  13877. _ACEOF
  13878. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13879. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13880. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13881. else
  13882. cat
  13883. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13884. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13885. _ACEOF
  13886. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13887. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13888. # trailing colons and then remove the whole line if VPATH becomes empty
  13889. # (actually we leave an empty line to preserve line numbers).
  13890. if test "x$srcdir" = x.; then
  13891. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13892. h
  13893. s///
  13894. s/^/:/
  13895. s/[ ]*$/:/
  13896. s/:\$(srcdir):/:/g
  13897. s/:\${srcdir}:/:/g
  13898. s/:@srcdir@:/:/g
  13899. s/^:*//
  13900. s/:*$//
  13901. x
  13902. s/\(=[ ]*\).*/\1/
  13903. G
  13904. s/\n//
  13905. s/^[^=]*=[ ]*$//
  13906. }'
  13907. fi
  13908. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13909. fi # test -n "$CONFIG_FILES"
  13910. # Set up the scripts for CONFIG_HEADERS section.
  13911. # No need to generate them if there are no CONFIG_HEADERS.
  13912. # This happens for instance with `./config.status Makefile'.
  13913. if test -n "$CONFIG_HEADERS"; then
  13914. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13915. BEGIN {
  13916. _ACEOF
  13917. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13918. # here-document in config.status, that substitutes the proper values into
  13919. # config.h.in to produce config.h.
  13920. # Create a delimiter string that does not exist in confdefs.h, to ease
  13921. # handling of long lines.
  13922. ac_delim='%!_!# '
  13923. for ac_last_try in false false :; do
  13924. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13925. if test -z "$ac_tt"; then
  13926. break
  13927. elif $ac_last_try; then
  13928. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13929. else
  13930. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13931. fi
  13932. done
  13933. # For the awk script, D is an array of macro values keyed by name,
  13934. # likewise P contains macro parameters if any. Preserve backslash
  13935. # newline sequences.
  13936. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13937. sed -n '
  13938. s/.\{148\}/&'"$ac_delim"'/g
  13939. t rset
  13940. :rset
  13941. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13942. t def
  13943. d
  13944. :def
  13945. s/\\$//
  13946. t bsnl
  13947. s/["\\]/\\&/g
  13948. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13949. D["\1"]=" \3"/p
  13950. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13951. d
  13952. :bsnl
  13953. s/["\\]/\\&/g
  13954. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13955. D["\1"]=" \3\\\\\\n"\\/p
  13956. t cont
  13957. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13958. t cont
  13959. d
  13960. :cont
  13961. n
  13962. s/.\{148\}/&'"$ac_delim"'/g
  13963. t clear
  13964. :clear
  13965. s/\\$//
  13966. t bsnlc
  13967. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13968. d
  13969. :bsnlc
  13970. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13971. b cont
  13972. ' <confdefs.h | sed '
  13973. s/'"$ac_delim"'/"\\\
  13974. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13975. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13976. for (key in D) D_is_set[key] = 1
  13977. FS = ""
  13978. }
  13979. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13980. line = \$ 0
  13981. split(line, arg, " ")
  13982. if (arg[1] == "#") {
  13983. defundef = arg[2]
  13984. mac1 = arg[3]
  13985. } else {
  13986. defundef = substr(arg[1], 2)
  13987. mac1 = arg[2]
  13988. }
  13989. split(mac1, mac2, "(") #)
  13990. macro = mac2[1]
  13991. prefix = substr(line, 1, index(line, defundef) - 1)
  13992. if (D_is_set[macro]) {
  13993. # Preserve the white space surrounding the "#".
  13994. print prefix "define", macro P[macro] D[macro]
  13995. next
  13996. } else {
  13997. # Replace #undef with comments. This is necessary, for example,
  13998. # in the case of _POSIX_SOURCE, which is predefined and required
  13999. # on some systems where configure will not decide to define it.
  14000. if (defundef == "undef") {
  14001. print "/*", prefix defundef, macro, "*/"
  14002. next
  14003. }
  14004. }
  14005. }
  14006. { print }
  14007. _ACAWK
  14008. _ACEOF
  14009. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14010. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14011. fi # test -n "$CONFIG_HEADERS"
  14012. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14013. shift
  14014. for ac_tag
  14015. do
  14016. case $ac_tag in
  14017. :[FHLC]) ac_mode=$ac_tag; continue;;
  14018. esac
  14019. case $ac_mode$ac_tag in
  14020. :[FHL]*:*);;
  14021. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14022. :[FH]-) ac_tag=-:-;;
  14023. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14024. esac
  14025. ac_save_IFS=$IFS
  14026. IFS=:
  14027. set x $ac_tag
  14028. IFS=$ac_save_IFS
  14029. shift
  14030. ac_file=$1
  14031. shift
  14032. case $ac_mode in
  14033. :L) ac_source=$1;;
  14034. :[FH])
  14035. ac_file_inputs=
  14036. for ac_f
  14037. do
  14038. case $ac_f in
  14039. -) ac_f="$ac_tmp/stdin";;
  14040. *) # Look for the file first in the build tree, then in the source tree
  14041. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14042. # because $ac_f cannot contain `:'.
  14043. test -f "$ac_f" ||
  14044. case $ac_f in
  14045. [\\/$]*) false;;
  14046. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14047. esac ||
  14048. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14049. esac
  14050. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14051. as_fn_append ac_file_inputs " '$ac_f'"
  14052. done
  14053. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14054. # use $as_me), people would be surprised to read:
  14055. # /* config.h. Generated by config.status. */
  14056. configure_input='Generated from '`
  14057. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14058. `' by configure.'
  14059. if test x"$ac_file" != x-; then
  14060. configure_input="$ac_file. $configure_input"
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14062. $as_echo "$as_me: creating $ac_file" >&6;}
  14063. fi
  14064. # Neutralize special characters interpreted by sed in replacement strings.
  14065. case $configure_input in #(
  14066. *\&* | *\|* | *\\* )
  14067. ac_sed_conf_input=`$as_echo "$configure_input" |
  14068. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14069. *) ac_sed_conf_input=$configure_input;;
  14070. esac
  14071. case $ac_tag in
  14072. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14073. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14074. esac
  14075. ;;
  14076. esac
  14077. ac_dir=`$as_dirname -- "$ac_file" ||
  14078. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14079. X"$ac_file" : 'X\(//\)[^/]' \| \
  14080. X"$ac_file" : 'X\(//\)$' \| \
  14081. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14082. $as_echo X"$ac_file" |
  14083. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14084. s//\1/
  14085. q
  14086. }
  14087. /^X\(\/\/\)[^/].*/{
  14088. s//\1/
  14089. q
  14090. }
  14091. /^X\(\/\/\)$/{
  14092. s//\1/
  14093. q
  14094. }
  14095. /^X\(\/\).*/{
  14096. s//\1/
  14097. q
  14098. }
  14099. s/.*/./; q'`
  14100. as_dir="$ac_dir"; as_fn_mkdir_p
  14101. ac_builddir=.
  14102. case "$ac_dir" in
  14103. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14104. *)
  14105. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14106. # A ".." for each directory in $ac_dir_suffix.
  14107. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14108. case $ac_top_builddir_sub in
  14109. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14110. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14111. esac ;;
  14112. esac
  14113. ac_abs_top_builddir=$ac_pwd
  14114. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14115. # for backward compatibility:
  14116. ac_top_builddir=$ac_top_build_prefix
  14117. case $srcdir in
  14118. .) # We are building in place.
  14119. ac_srcdir=.
  14120. ac_top_srcdir=$ac_top_builddir_sub
  14121. ac_abs_top_srcdir=$ac_pwd ;;
  14122. [\\/]* | ?:[\\/]* ) # Absolute name.
  14123. ac_srcdir=$srcdir$ac_dir_suffix;
  14124. ac_top_srcdir=$srcdir
  14125. ac_abs_top_srcdir=$srcdir ;;
  14126. *) # Relative name.
  14127. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14128. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14129. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14130. esac
  14131. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14132. case $ac_mode in
  14133. :F)
  14134. #
  14135. # CONFIG_FILE
  14136. #
  14137. case $INSTALL in
  14138. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14139. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14140. esac
  14141. ac_MKDIR_P=$MKDIR_P
  14142. case $MKDIR_P in
  14143. [\\/$]* | ?:[\\/]* ) ;;
  14144. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14145. esac
  14146. _ACEOF
  14147. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14148. # If the template does not know about datarootdir, expand it.
  14149. # FIXME: This hack should be removed a few years after 2.60.
  14150. ac_datarootdir_hack=; ac_datarootdir_seen=
  14151. ac_sed_dataroot='
  14152. /datarootdir/ {
  14153. p
  14154. q
  14155. }
  14156. /@datadir@/p
  14157. /@docdir@/p
  14158. /@infodir@/p
  14159. /@localedir@/p
  14160. /@mandir@/p'
  14161. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14162. *datarootdir*) ac_datarootdir_seen=yes;;
  14163. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14165. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14166. _ACEOF
  14167. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14168. ac_datarootdir_hack='
  14169. s&@datadir@&$datadir&g
  14170. s&@docdir@&$docdir&g
  14171. s&@infodir@&$infodir&g
  14172. s&@localedir@&$localedir&g
  14173. s&@mandir@&$mandir&g
  14174. s&\\\${datarootdir}&$datarootdir&g' ;;
  14175. esac
  14176. _ACEOF
  14177. # Neutralize VPATH when `$srcdir' = `.'.
  14178. # Shell code in configure.ac might set extrasub.
  14179. # FIXME: do we really want to maintain this feature?
  14180. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14181. ac_sed_extra="$ac_vpsub
  14182. $extrasub
  14183. _ACEOF
  14184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14185. :t
  14186. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14187. s|@configure_input@|$ac_sed_conf_input|;t t
  14188. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14189. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14190. s&@srcdir@&$ac_srcdir&;t t
  14191. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14192. s&@top_srcdir@&$ac_top_srcdir&;t t
  14193. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14194. s&@builddir@&$ac_builddir&;t t
  14195. s&@abs_builddir@&$ac_abs_builddir&;t t
  14196. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14197. s&@INSTALL@&$ac_INSTALL&;t t
  14198. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14199. $ac_datarootdir_hack
  14200. "
  14201. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14202. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14203. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14204. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14205. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14206. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14208. which seems to be undefined. Please make sure it is defined" >&5
  14209. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14210. which seems to be undefined. Please make sure it is defined" >&2;}
  14211. rm -f "$ac_tmp/stdin"
  14212. case $ac_file in
  14213. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14214. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14215. esac \
  14216. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14217. ;;
  14218. :H)
  14219. #
  14220. # CONFIG_HEADER
  14221. #
  14222. if test x"$ac_file" != x-; then
  14223. {
  14224. $as_echo "/* $configure_input */" \
  14225. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14226. } >"$ac_tmp/config.h" \
  14227. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14228. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14230. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14231. else
  14232. rm -f "$ac_file"
  14233. mv "$ac_tmp/config.h" "$ac_file" \
  14234. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14235. fi
  14236. else
  14237. $as_echo "/* $configure_input */" \
  14238. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14239. || as_fn_error $? "could not create -" "$LINENO" 5
  14240. fi
  14241. # Compute "$ac_file"'s index in $config_headers.
  14242. _am_arg="$ac_file"
  14243. _am_stamp_count=1
  14244. for _am_header in $config_headers :; do
  14245. case $_am_header in
  14246. $_am_arg | $_am_arg:* )
  14247. break ;;
  14248. * )
  14249. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14250. esac
  14251. done
  14252. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14253. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14254. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14255. X"$_am_arg" : 'X\(//\)$' \| \
  14256. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14257. $as_echo X"$_am_arg" |
  14258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14259. s//\1/
  14260. q
  14261. }
  14262. /^X\(\/\/\)[^/].*/{
  14263. s//\1/
  14264. q
  14265. }
  14266. /^X\(\/\/\)$/{
  14267. s//\1/
  14268. q
  14269. }
  14270. /^X\(\/\).*/{
  14271. s//\1/
  14272. q
  14273. }
  14274. s/.*/./; q'`/stamp-h$_am_stamp_count
  14275. ;;
  14276. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14277. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14278. ;;
  14279. esac
  14280. case $ac_file$ac_mode in
  14281. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14282. # Older Autoconf quotes --file arguments for eval, but not when files
  14283. # are listed without --file. Let's play safe and only enable the eval
  14284. # if we detect the quoting.
  14285. # TODO: see whether this extra hack can be removed once we start
  14286. # requiring Autoconf 2.70 or later.
  14287. case $CONFIG_FILES in #(
  14288. *\'*) :
  14289. eval set x "$CONFIG_FILES" ;; #(
  14290. *) :
  14291. set x $CONFIG_FILES ;; #(
  14292. *) :
  14293. ;;
  14294. esac
  14295. shift
  14296. # Used to flag and report bootstrapping failures.
  14297. am_rc=0
  14298. for am_mf
  14299. do
  14300. # Strip MF so we end up with the name of the file.
  14301. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  14302. # Check whether this is an Automake generated Makefile which includes
  14303. # dependency-tracking related rules and includes.
  14304. # Grep'ing the whole file directly is not great: AIX grep has a line
  14305. # limit of 2048, but all sed's we know have understand at least 4000.
  14306. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14307. || continue
  14308. am_dirpart=`$as_dirname -- "$am_mf" ||
  14309. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14310. X"$am_mf" : 'X\(//\)[^/]' \| \
  14311. X"$am_mf" : 'X\(//\)$' \| \
  14312. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14313. $as_echo X"$am_mf" |
  14314. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14315. s//\1/
  14316. q
  14317. }
  14318. /^X\(\/\/\)[^/].*/{
  14319. s//\1/
  14320. q
  14321. }
  14322. /^X\(\/\/\)$/{
  14323. s//\1/
  14324. q
  14325. }
  14326. /^X\(\/\).*/{
  14327. s//\1/
  14328. q
  14329. }
  14330. s/.*/./; q'`
  14331. am_filepart=`$as_basename -- "$am_mf" ||
  14332. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14333. X"$am_mf" : 'X\(//\)$' \| \
  14334. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14335. $as_echo X/"$am_mf" |
  14336. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14337. s//\1/
  14338. q
  14339. }
  14340. /^X\/\(\/\/\)$/{
  14341. s//\1/
  14342. q
  14343. }
  14344. /^X\/\(\/\).*/{
  14345. s//\1/
  14346. q
  14347. }
  14348. s/.*/./; q'`
  14349. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14350. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14351. | $MAKE -f - am--depfiles" >&5
  14352. (cd "$am_dirpart" \
  14353. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14354. | $MAKE -f - am--depfiles) >&5 2>&5
  14355. ac_status=$?
  14356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14357. (exit $ac_status); } || am_rc=$?
  14358. done
  14359. if test $am_rc -ne 0; then
  14360. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14361. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14362. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14363. for automatic dependency tracking. Try re-running configure with the
  14364. '--disable-dependency-tracking' option to at least be able to build
  14365. the package (albeit without support for automatic dependency tracking).
  14366. See \`config.log' for more details" "$LINENO" 5; }
  14367. fi
  14368. { am_dirpart=; unset am_dirpart;}
  14369. { am_filepart=; unset am_filepart;}
  14370. { am_mf=; unset am_mf;}
  14371. { am_rc=; unset am_rc;}
  14372. rm -f conftest-deps.mk
  14373. }
  14374. ;;
  14375. "libtool":C)
  14376. # See if we are running on zsh, and set the options that allow our
  14377. # commands through without removal of \ escapes.
  14378. if test -n "${ZSH_VERSION+set}"; then
  14379. setopt NO_GLOB_SUBST
  14380. fi
  14381. cfgfile=${ofile}T
  14382. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14383. $RM "$cfgfile"
  14384. cat <<_LT_EOF >> "$cfgfile"
  14385. #! $SHELL
  14386. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14387. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14388. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14389. # Provide generalized library-building support services.
  14390. # Written by Gordon Matzigkeit, 1996
  14391. # Copyright (C) 2014 Free Software Foundation, Inc.
  14392. # This is free software; see the source for copying conditions. There is NO
  14393. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14394. # GNU Libtool is free software; you can redistribute it and/or modify
  14395. # it under the terms of the GNU General Public License as published by
  14396. # the Free Software Foundation; either version 2 of of the License, or
  14397. # (at your option) any later version.
  14398. #
  14399. # As a special exception to the GNU General Public License, if you
  14400. # distribute this file as part of a program or library that is built
  14401. # using GNU Libtool, you may include this file under the same
  14402. # distribution terms that you use for the rest of that program.
  14403. #
  14404. # GNU Libtool is distributed in the hope that it will be useful, but
  14405. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14406. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14407. # GNU General Public License for more details.
  14408. #
  14409. # You should have received a copy of the GNU General Public License
  14410. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14411. # The names of the tagged configurations supported by this script.
  14412. available_tags=''
  14413. # Configured defaults for sys_lib_dlsearch_path munging.
  14414. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14415. # ### BEGIN LIBTOOL CONFIG
  14416. # Which release of libtool.m4 was used?
  14417. macro_version=$macro_version
  14418. macro_revision=$macro_revision
  14419. # Whether or not to build static libraries.
  14420. build_old_libs=$enable_static
  14421. # What type of objects to build.
  14422. pic_mode=$pic_mode
  14423. # Whether or not to build shared libraries.
  14424. build_libtool_libs=$enable_shared
  14425. # Whether or not to optimize for fast installation.
  14426. fast_install=$enable_fast_install
  14427. # Shared archive member basename,for filename based shared library versioning on AIX.
  14428. shared_archive_member_spec=$shared_archive_member_spec
  14429. # Shell to use when invoking shell scripts.
  14430. SHELL=$lt_SHELL
  14431. # An echo program that protects backslashes.
  14432. ECHO=$lt_ECHO
  14433. # The PATH separator for the build system.
  14434. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14435. # The host system.
  14436. host_alias=$host_alias
  14437. host=$host
  14438. host_os=$host_os
  14439. # The build system.
  14440. build_alias=$build_alias
  14441. build=$build
  14442. build_os=$build_os
  14443. # A sed program that does not truncate output.
  14444. SED=$lt_SED
  14445. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14446. Xsed="\$SED -e 1s/^X//"
  14447. # A grep program that handles long lines.
  14448. GREP=$lt_GREP
  14449. # An ERE matcher.
  14450. EGREP=$lt_EGREP
  14451. # A literal string matcher.
  14452. FGREP=$lt_FGREP
  14453. # A BSD- or MS-compatible name lister.
  14454. NM=$lt_NM
  14455. # Whether we need soft or hard links.
  14456. LN_S=$lt_LN_S
  14457. # What is the maximum length of a command?
  14458. max_cmd_len=$max_cmd_len
  14459. # Object file suffix (normally "o").
  14460. objext=$ac_objext
  14461. # Executable file suffix (normally "").
  14462. exeext=$exeext
  14463. # whether the shell understands "unset".
  14464. lt_unset=$lt_unset
  14465. # turn spaces into newlines.
  14466. SP2NL=$lt_lt_SP2NL
  14467. # turn newlines into spaces.
  14468. NL2SP=$lt_lt_NL2SP
  14469. # convert \$build file names to \$host format.
  14470. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14471. # convert \$build files to toolchain format.
  14472. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14473. # An object symbol dumper.
  14474. OBJDUMP=$lt_OBJDUMP
  14475. # Method to check whether dependent libraries are shared objects.
  14476. deplibs_check_method=$lt_deplibs_check_method
  14477. # Command to use when deplibs_check_method = "file_magic".
  14478. file_magic_cmd=$lt_file_magic_cmd
  14479. # How to find potential files when deplibs_check_method = "file_magic".
  14480. file_magic_glob=$lt_file_magic_glob
  14481. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14482. want_nocaseglob=$lt_want_nocaseglob
  14483. # DLL creation program.
  14484. DLLTOOL=$lt_DLLTOOL
  14485. # Command to associate shared and link libraries.
  14486. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14487. # The archiver.
  14488. AR=$lt_AR
  14489. # Flags to create an archive.
  14490. AR_FLAGS=$lt_AR_FLAGS
  14491. # How to feed a file listing to the archiver.
  14492. archiver_list_spec=$lt_archiver_list_spec
  14493. # A symbol stripping program.
  14494. STRIP=$lt_STRIP
  14495. # Commands used to install an old-style archive.
  14496. RANLIB=$lt_RANLIB
  14497. old_postinstall_cmds=$lt_old_postinstall_cmds
  14498. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14499. # Whether to use a lock for old archive extraction.
  14500. lock_old_archive_extraction=$lock_old_archive_extraction
  14501. # A C compiler.
  14502. LTCC=$lt_CC
  14503. # LTCC compiler flags.
  14504. LTCFLAGS=$lt_CFLAGS
  14505. # Take the output of nm and produce a listing of raw symbols and C names.
  14506. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14507. # Transform the output of nm in a proper C declaration.
  14508. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14509. # Transform the output of nm into a list of symbols to manually relocate.
  14510. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14511. # Transform the output of nm in a C name address pair.
  14512. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14513. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14514. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14515. # The name lister interface.
  14516. nm_interface=$lt_lt_cv_nm_interface
  14517. # Specify filename containing input files for \$NM.
  14518. nm_file_list_spec=$lt_nm_file_list_spec
  14519. # The root where to search for dependent libraries,and where our libraries should be installed.
  14520. lt_sysroot=$lt_sysroot
  14521. # Command to truncate a binary pipe.
  14522. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14523. # The name of the directory that contains temporary libtool files.
  14524. objdir=$objdir
  14525. # Used to examine libraries when file_magic_cmd begins with "file".
  14526. MAGIC_CMD=$MAGIC_CMD
  14527. # Must we lock files when doing compilation?
  14528. need_locks=$lt_need_locks
  14529. # Manifest tool.
  14530. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14531. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14532. DSYMUTIL=$lt_DSYMUTIL
  14533. # Tool to change global to local symbols on Mac OS X.
  14534. NMEDIT=$lt_NMEDIT
  14535. # Tool to manipulate fat objects and archives on Mac OS X.
  14536. LIPO=$lt_LIPO
  14537. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14538. OTOOL=$lt_OTOOL
  14539. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14540. OTOOL64=$lt_OTOOL64
  14541. # Old archive suffix (normally "a").
  14542. libext=$libext
  14543. # Shared library suffix (normally ".so").
  14544. shrext_cmds=$lt_shrext_cmds
  14545. # The commands to extract the exported symbol list from a shared archive.
  14546. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14547. # Variables whose values should be saved in libtool wrapper scripts and
  14548. # restored at link time.
  14549. variables_saved_for_relink=$lt_variables_saved_for_relink
  14550. # Do we need the "lib" prefix for modules?
  14551. need_lib_prefix=$need_lib_prefix
  14552. # Do we need a version for libraries?
  14553. need_version=$need_version
  14554. # Library versioning type.
  14555. version_type=$version_type
  14556. # Shared library runtime path variable.
  14557. runpath_var=$runpath_var
  14558. # Shared library path variable.
  14559. shlibpath_var=$shlibpath_var
  14560. # Is shlibpath searched before the hard-coded library search path?
  14561. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14562. # Format of library name prefix.
  14563. libname_spec=$lt_libname_spec
  14564. # List of archive names. First name is the real one, the rest are links.
  14565. # The last name is the one that the linker finds with -lNAME
  14566. library_names_spec=$lt_library_names_spec
  14567. # The coded name of the library, if different from the real name.
  14568. soname_spec=$lt_soname_spec
  14569. # Permission mode override for installation of shared libraries.
  14570. install_override_mode=$lt_install_override_mode
  14571. # Command to use after installation of a shared archive.
  14572. postinstall_cmds=$lt_postinstall_cmds
  14573. # Command to use after uninstallation of a shared archive.
  14574. postuninstall_cmds=$lt_postuninstall_cmds
  14575. # Commands used to finish a libtool library installation in a directory.
  14576. finish_cmds=$lt_finish_cmds
  14577. # As "finish_cmds", except a single script fragment to be evaled but
  14578. # not shown.
  14579. finish_eval=$lt_finish_eval
  14580. # Whether we should hardcode library paths into libraries.
  14581. hardcode_into_libs=$hardcode_into_libs
  14582. # Compile-time system search path for libraries.
  14583. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14584. # Detected run-time system search path for libraries.
  14585. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14586. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14587. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14588. # Whether dlopen is supported.
  14589. dlopen_support=$enable_dlopen
  14590. # Whether dlopen of programs is supported.
  14591. dlopen_self=$enable_dlopen_self
  14592. # Whether dlopen of statically linked programs is supported.
  14593. dlopen_self_static=$enable_dlopen_self_static
  14594. # Commands to strip libraries.
  14595. old_striplib=$lt_old_striplib
  14596. striplib=$lt_striplib
  14597. # The linker used to build libraries.
  14598. LD=$lt_LD
  14599. # How to create reloadable object files.
  14600. reload_flag=$lt_reload_flag
  14601. reload_cmds=$lt_reload_cmds
  14602. # Commands used to build an old-style archive.
  14603. old_archive_cmds=$lt_old_archive_cmds
  14604. # A language specific compiler.
  14605. CC=$lt_compiler
  14606. # Is the compiler the GNU compiler?
  14607. with_gcc=$GCC
  14608. # Compiler flag to turn off builtin functions.
  14609. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14610. # Additional compiler flags for building library objects.
  14611. pic_flag=$lt_lt_prog_compiler_pic
  14612. # How to pass a linker flag through the compiler.
  14613. wl=$lt_lt_prog_compiler_wl
  14614. # Compiler flag to prevent dynamic linking.
  14615. link_static_flag=$lt_lt_prog_compiler_static
  14616. # Does compiler simultaneously support -c and -o options?
  14617. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14618. # Whether or not to add -lc for building shared libraries.
  14619. build_libtool_need_lc=$archive_cmds_need_lc
  14620. # Whether or not to disallow shared libs when runtime libs are static.
  14621. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14622. # Compiler flag to allow reflexive dlopens.
  14623. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14624. # Compiler flag to generate shared objects directly from archives.
  14625. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14626. # Whether the compiler copes with passing no objects directly.
  14627. compiler_needs_object=$lt_compiler_needs_object
  14628. # Create an old-style archive from a shared archive.
  14629. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14630. # Create a temporary old-style archive to link instead of a shared archive.
  14631. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14632. # Commands used to build a shared archive.
  14633. archive_cmds=$lt_archive_cmds
  14634. archive_expsym_cmds=$lt_archive_expsym_cmds
  14635. # Commands used to build a loadable module if different from building
  14636. # a shared archive.
  14637. module_cmds=$lt_module_cmds
  14638. module_expsym_cmds=$lt_module_expsym_cmds
  14639. # Whether we are building with GNU ld or not.
  14640. with_gnu_ld=$lt_with_gnu_ld
  14641. # Flag that allows shared libraries with undefined symbols to be built.
  14642. allow_undefined_flag=$lt_allow_undefined_flag
  14643. # Flag that enforces no undefined symbols.
  14644. no_undefined_flag=$lt_no_undefined_flag
  14645. # Flag to hardcode \$libdir into a binary during linking.
  14646. # This must work even if \$libdir does not exist
  14647. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14648. # Whether we need a single "-rpath" flag with a separated argument.
  14649. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14650. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14651. # DIR into the resulting binary.
  14652. hardcode_direct=$hardcode_direct
  14653. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14654. # DIR into the resulting binary and the resulting library dependency is
  14655. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14656. # library is relocated.
  14657. hardcode_direct_absolute=$hardcode_direct_absolute
  14658. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14659. # into the resulting binary.
  14660. hardcode_minus_L=$hardcode_minus_L
  14661. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14662. # into the resulting binary.
  14663. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14664. # Set to "yes" if building a shared library automatically hardcodes DIR
  14665. # into the library and all subsequent libraries and executables linked
  14666. # against it.
  14667. hardcode_automatic=$hardcode_automatic
  14668. # Set to yes if linker adds runtime paths of dependent libraries
  14669. # to runtime path list.
  14670. inherit_rpath=$inherit_rpath
  14671. # Whether libtool must link a program against all its dependency libraries.
  14672. link_all_deplibs=$link_all_deplibs
  14673. # Set to "yes" if exported symbols are required.
  14674. always_export_symbols=$always_export_symbols
  14675. # The commands to list exported symbols.
  14676. export_symbols_cmds=$lt_export_symbols_cmds
  14677. # Symbols that should not be listed in the preloaded symbols.
  14678. exclude_expsyms=$lt_exclude_expsyms
  14679. # Symbols that must always be exported.
  14680. include_expsyms=$lt_include_expsyms
  14681. # Commands necessary for linking programs (against libraries) with templates.
  14682. prelink_cmds=$lt_prelink_cmds
  14683. # Commands necessary for finishing linking programs.
  14684. postlink_cmds=$lt_postlink_cmds
  14685. # Specify filename containing input files.
  14686. file_list_spec=$lt_file_list_spec
  14687. # How to hardcode a shared library path into an executable.
  14688. hardcode_action=$hardcode_action
  14689. # ### END LIBTOOL CONFIG
  14690. _LT_EOF
  14691. cat <<'_LT_EOF' >> "$cfgfile"
  14692. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14693. # func_munge_path_list VARIABLE PATH
  14694. # -----------------------------------
  14695. # VARIABLE is name of variable containing _space_ separated list of
  14696. # directories to be munged by the contents of PATH, which is string
  14697. # having a format:
  14698. # "DIR[:DIR]:"
  14699. # string "DIR[ DIR]" will be prepended to VARIABLE
  14700. # ":DIR[:DIR]"
  14701. # string "DIR[ DIR]" will be appended to VARIABLE
  14702. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14703. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14704. # "DIRA[ DIRA]" will be appended to VARIABLE
  14705. # "DIR[:DIR]"
  14706. # VARIABLE will be replaced by "DIR[ DIR]"
  14707. func_munge_path_list ()
  14708. {
  14709. case x$2 in
  14710. x)
  14711. ;;
  14712. *:)
  14713. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14714. ;;
  14715. x:*)
  14716. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14717. ;;
  14718. *::*)
  14719. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14720. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14721. ;;
  14722. *)
  14723. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14724. ;;
  14725. esac
  14726. }
  14727. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14728. func_cc_basename ()
  14729. {
  14730. for cc_temp in $*""; do
  14731. case $cc_temp in
  14732. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14733. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14734. \-*) ;;
  14735. *) break;;
  14736. esac
  14737. done
  14738. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14739. }
  14740. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14741. _LT_EOF
  14742. case $host_os in
  14743. aix3*)
  14744. cat <<\_LT_EOF >> "$cfgfile"
  14745. # AIX sometimes has problems with the GCC collect2 program. For some
  14746. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14747. # vanish in a puff of smoke.
  14748. if test set != "${COLLECT_NAMES+set}"; then
  14749. COLLECT_NAMES=
  14750. export COLLECT_NAMES
  14751. fi
  14752. _LT_EOF
  14753. ;;
  14754. esac
  14755. ltmain=$ac_aux_dir/ltmain.sh
  14756. # We use sed instead of cat because bash on DJGPP gets confused if
  14757. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14758. # text mode, it properly converts lines to CR/LF. This bash problem
  14759. # is reportedly fixed, but why not run on old versions too?
  14760. sed '$q' "$ltmain" >> "$cfgfile" \
  14761. || (rm -f "$cfgfile"; exit 1)
  14762. mv -f "$cfgfile" "$ofile" ||
  14763. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14764. chmod +x "$ofile"
  14765. ;;
  14766. esac
  14767. done # for ac_tag
  14768. as_fn_exit 0
  14769. _ACEOF
  14770. ac_clean_files=$ac_clean_files_save
  14771. test $ac_write_fail = 0 ||
  14772. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14773. # configure is writing to config.log, and then calls config.status.
  14774. # config.status does its own redirection, appending to config.log.
  14775. # Unfortunately, on DOS this fails, as config.log is still kept open
  14776. # by configure, so config.status won't be able to write to it; its
  14777. # output is simply discarded. So we exec the FD to /dev/null,
  14778. # effectively closing config.log, so it can be properly (re)opened and
  14779. # appended to by config.status. When coming back to configure, we
  14780. # need to make the FD available again.
  14781. if test "$no_create" != yes; then
  14782. ac_cs_success=:
  14783. ac_config_status_args=
  14784. test "$silent" = yes &&
  14785. ac_config_status_args="$ac_config_status_args --quiet"
  14786. exec 5>/dev/null
  14787. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14788. exec 5>>config.log
  14789. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14790. # would make configure fail if this is the last instruction.
  14791. $ac_cs_success || as_fn_exit 1
  14792. fi
  14793. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14795. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14796. fi