configure 509 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for file 5.43.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else $as_nop
  219. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi
  224. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  256. $0: christos@astron.com about your system, including any
  257. $0: error possibly output before this message. Then install
  258. $0: a modern shell, or manually run the script under such a
  259. $0: shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_nop
  298. # ---------
  299. # Do nothing but, unlike ":", preserve the value of $?.
  300. as_fn_nop ()
  301. {
  302. return $?
  303. }
  304. as_nop=as_fn_nop
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. printf "%s\n" X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  363. then :
  364. eval 'as_fn_append ()
  365. {
  366. eval $1+=\$2
  367. }'
  368. else $as_nop
  369. as_fn_append ()
  370. {
  371. eval $1=\$$1\$2
  372. }
  373. fi # as_fn_append
  374. # as_fn_arith ARG...
  375. # ------------------
  376. # Perform arithmetic evaluation on the ARGs, and store the result in the
  377. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. # must be portable across $(()) and expr.
  379. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  380. then :
  381. eval 'as_fn_arith ()
  382. {
  383. as_val=$(( $* ))
  384. }'
  385. else $as_nop
  386. as_fn_arith ()
  387. {
  388. as_val=`expr "$@" || test $? -eq 1`
  389. }
  390. fi # as_fn_arith
  391. # as_fn_nop
  392. # ---------
  393. # Do nothing but, unlike ":", preserve the value of $?.
  394. as_fn_nop ()
  395. {
  396. return $?
  397. }
  398. as_nop=as_fn_nop
  399. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  400. # ----------------------------------------
  401. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  402. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  403. # script with STATUS, using 1 if that was 0.
  404. as_fn_error ()
  405. {
  406. as_status=$1; test $as_status -eq 0 && as_status=1
  407. if test "$4"; then
  408. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  410. fi
  411. printf "%s\n" "$as_me: error: $2" >&2
  412. as_fn_exit $as_status
  413. } # as_fn_error
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  421. as_basename=basename
  422. else
  423. as_basename=false
  424. fi
  425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  426. as_dirname=dirname
  427. else
  428. as_dirname=false
  429. fi
  430. as_me=`$as_basename -- "$0" ||
  431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  432. X"$0" : 'X\(//\)$' \| \
  433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  434. printf "%s\n" X/"$0" |
  435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  436. s//\1/
  437. q
  438. }
  439. /^X\/\(\/\/\)$/{
  440. s//\1/
  441. q
  442. }
  443. /^X\/\(\/\).*/{
  444. s//\1/
  445. q
  446. }
  447. s/.*/./; q'`
  448. # Avoid depending upon Character Ranges.
  449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  452. as_cr_digits='0123456789'
  453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  454. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  455. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  456. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  457. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  458. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  459. sed -n '
  460. p
  461. /[$]LINENO/=
  462. ' <$as_myself |
  463. sed '
  464. s/[$]LINENO.*/&-/
  465. t lineno
  466. b
  467. :lineno
  468. N
  469. :loop
  470. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  471. t loop
  472. s/-\n.*//
  473. ' >$as_me.lineno &&
  474. chmod +x "$as_me.lineno" ||
  475. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  476. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  477. # already done that, so ensure we don't try to do so again and fall
  478. # in an infinite loop. This has already happened in practice.
  479. _as_can_reexec=no; export _as_can_reexec
  480. # Don't try to exec as it changes $[0], causing all sort of problems
  481. # (the dirname of $[0] is not the place where we might find the
  482. # original and so on. Autoconf is especially sensitive to this).
  483. . "./$as_me.lineno"
  484. # Exit status is that of the last command.
  485. exit
  486. }
  487. # Determine whether it's possible to make 'echo' print without a newline.
  488. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  489. # for compatibility with existing Makefiles.
  490. ECHO_C= ECHO_N= ECHO_T=
  491. case `echo -n x` in #(((((
  492. -n*)
  493. case `echo 'xy\c'` in
  494. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  495. xy) ECHO_C='\c';;
  496. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  497. ECHO_T=' ';;
  498. esac;;
  499. *)
  500. ECHO_N='-n';;
  501. esac
  502. # For backward compatibility with old third-party macros, we provide
  503. # the shell variables $as_echo and $as_echo_n. New code should use
  504. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  505. as_echo='printf %s\n'
  506. as_echo_n='printf %s'
  507. rm -f conf$$ conf$$.exe conf$$.file
  508. if test -d conf$$.dir; then
  509. rm -f conf$$.dir/conf$$.file
  510. else
  511. rm -f conf$$.dir
  512. mkdir conf$$.dir 2>/dev/null
  513. fi
  514. if (echo >conf$$.file) 2>/dev/null; then
  515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s='ln -s'
  517. # ... but there are two gotchas:
  518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  520. # In both cases, we have to default to `cp -pR'.
  521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  522. as_ln_s='cp -pR'
  523. elif ln conf$$.file conf$$ 2>/dev/null; then
  524. as_ln_s=ln
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. else
  529. as_ln_s='cp -pR'
  530. fi
  531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  532. rmdir conf$$.dir 2>/dev/null
  533. if mkdir -p . 2>/dev/null; then
  534. as_mkdir_p='mkdir -p "$as_dir"'
  535. else
  536. test -d ./-p && rmdir ./-p
  537. as_mkdir_p=false
  538. fi
  539. as_test_x='test -x'
  540. as_executable_p=as_fn_executable_p
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543. # Sed expression to map a string onto a valid variable name.
  544. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  545. SHELL=${CONFIG_SHELL-/bin/sh}
  546. test -n "$DJDIR" || exec 7<&0 </dev/null
  547. exec 6>&1
  548. # Name of the host.
  549. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  550. # so uname gets run too.
  551. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  552. #
  553. # Initializations.
  554. #
  555. ac_default_prefix=/usr/local
  556. ac_clean_files=
  557. ac_config_libobj_dir=.
  558. LIBOBJS=
  559. cross_compiling=no
  560. subdirs=
  561. MFLAGS=
  562. MAKEFLAGS=
  563. # Identity of this package.
  564. PACKAGE_NAME='file'
  565. PACKAGE_TARNAME='file'
  566. PACKAGE_VERSION='5.43'
  567. PACKAGE_STRING='file 5.43'
  568. PACKAGE_BUGREPORT='christos@astron.com'
  569. PACKAGE_URL=''
  570. # Factoring default headers for most tests.
  571. ac_includes_default="\
  572. #include <stddef.h>
  573. #ifdef HAVE_STDIO_H
  574. # include <stdio.h>
  575. #endif
  576. #ifdef HAVE_STDLIB_H
  577. # include <stdlib.h>
  578. #endif
  579. #ifdef HAVE_STRING_H
  580. # include <string.h>
  581. #endif
  582. #ifdef HAVE_INTTYPES_H
  583. # include <inttypes.h>
  584. #endif
  585. #ifdef HAVE_STDINT_H
  586. # include <stdint.h>
  587. #endif
  588. #ifdef HAVE_STRINGS_H
  589. # include <strings.h>
  590. #endif
  591. #ifdef HAVE_SYS_TYPES_H
  592. # include <sys/types.h>
  593. #endif
  594. #ifdef HAVE_SYS_STAT_H
  595. # include <sys/stat.h>
  596. #endif
  597. #ifdef HAVE_UNISTD_H
  598. # include <unistd.h>
  599. #endif"
  600. ac_header_c_list=
  601. ac_func_c_list=
  602. ac_subst_vars='am__EXEEXT_FALSE
  603. am__EXEEXT_TRUE
  604. LTLIBOBJS
  605. IS_CROSS_COMPILE_FALSE
  606. IS_CROSS_COMPILE_TRUE
  607. LIBOBJS
  608. HAVE_VISIBILITY
  609. CFLAG_VISIBILITY
  610. LT_SYS_LIBRARY_PATH
  611. OTOOL64
  612. OTOOL
  613. LIPO
  614. NMEDIT
  615. DSYMUTIL
  616. MANIFEST_TOOL
  617. RANLIB
  618. ac_ct_AR
  619. AR
  620. DLLTOOL
  621. OBJDUMP
  622. NM
  623. ac_ct_DUMPBIN
  624. DUMPBIN
  625. LD
  626. FGREP
  627. EGREP
  628. GREP
  629. SED
  630. LIBTOOL
  631. LN_S
  632. am__fastdepCC_FALSE
  633. am__fastdepCC_TRUE
  634. CCDEPMODE
  635. am__nodep
  636. AMDEPBACKSLASH
  637. AMDEP_FALSE
  638. AMDEP_TRUE
  639. am__include
  640. DEPDIR
  641. OBJEXT
  642. EXEEXT
  643. ac_ct_CC
  644. CPPFLAGS
  645. LDFLAGS
  646. CFLAGS
  647. CC
  648. WARNINGS
  649. FSECT5_FALSE
  650. FSECT5_TRUE
  651. fsect
  652. pkgdatadir
  653. MINGW_FALSE
  654. MINGW_TRUE
  655. MINGW
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. AM_BACKSLASH
  665. AM_DEFAULT_VERBOSITY
  666. AM_DEFAULT_V
  667. AM_V
  668. CSCOPE
  669. ETAGS
  670. CTAGS
  671. am__untar
  672. am__tar
  673. AMTAR
  674. am__leading_dot
  675. SET_MAKE
  676. AWK
  677. mkdir_p
  678. MKDIR_P
  679. INSTALL_STRIP_PROGRAM
  680. STRIP
  681. install_sh
  682. MAKEINFO
  683. AUTOHEADER
  684. AUTOMAKE
  685. AUTOCONF
  686. ACLOCAL
  687. VERSION
  688. PACKAGE
  689. CYGPATH_W
  690. am__isrc
  691. INSTALL_DATA
  692. INSTALL_SCRIPT
  693. INSTALL_PROGRAM
  694. target_alias
  695. host_alias
  696. build_alias
  697. LIBS
  698. ECHO_T
  699. ECHO_N
  700. ECHO_C
  701. DEFS
  702. mandir
  703. localedir
  704. libdir
  705. psdir
  706. pdfdir
  707. dvidir
  708. htmldir
  709. infodir
  710. docdir
  711. oldincludedir
  712. includedir
  713. runstatedir
  714. localstatedir
  715. sharedstatedir
  716. sysconfdir
  717. datadir
  718. datarootdir
  719. libexecdir
  720. sbindir
  721. bindir
  722. program_transform_name
  723. prefix
  724. exec_prefix
  725. PACKAGE_URL
  726. PACKAGE_BUGREPORT
  727. PACKAGE_STRING
  728. PACKAGE_VERSION
  729. PACKAGE_TARNAME
  730. PACKAGE_NAME
  731. PATH_SEPARATOR
  732. SHELL
  733. am__quote'
  734. ac_subst_files=''
  735. ac_user_opts='
  736. enable_option_checking
  737. enable_silent_rules
  738. enable_elf
  739. enable_elf_core
  740. enable_zlib
  741. enable_bzlib
  742. enable_xzlib
  743. enable_libseccomp
  744. enable_fsect_man5
  745. enable_dependency_tracking
  746. enable_static
  747. with_pic
  748. enable_shared
  749. enable_fast_install
  750. with_aix_soname
  751. with_gnu_ld
  752. with_sysroot
  753. enable_libtool_lock
  754. enable_largefile
  755. enable_warnings
  756. '
  757. ac_precious_vars='build_alias
  758. host_alias
  759. target_alias
  760. CC
  761. CFLAGS
  762. LDFLAGS
  763. LIBS
  764. CPPFLAGS
  765. LT_SYS_LIBRARY_PATH'
  766. # Initialize some variables set by options.
  767. ac_init_help=
  768. ac_init_version=false
  769. ac_unrecognized_opts=
  770. ac_unrecognized_sep=
  771. # The variables have the same names as the options, with
  772. # dashes changed to underlines.
  773. cache_file=/dev/null
  774. exec_prefix=NONE
  775. no_create=
  776. no_recursion=
  777. prefix=NONE
  778. program_prefix=NONE
  779. program_suffix=NONE
  780. program_transform_name=s,x,x,
  781. silent=
  782. site=
  783. srcdir=
  784. verbose=
  785. x_includes=NONE
  786. x_libraries=NONE
  787. # Installation directory options.
  788. # These are left unexpanded so users can "make install exec_prefix=/foo"
  789. # and all the variables that are supposed to be based on exec_prefix
  790. # by default will actually change.
  791. # Use braces instead of parens because sh, perl, etc. also accept them.
  792. # (The list follows the same order as the GNU Coding Standards.)
  793. bindir='${exec_prefix}/bin'
  794. sbindir='${exec_prefix}/sbin'
  795. libexecdir='${exec_prefix}/libexec'
  796. datarootdir='${prefix}/share'
  797. datadir='${datarootdir}'
  798. sysconfdir='${prefix}/etc'
  799. sharedstatedir='${prefix}/com'
  800. localstatedir='${prefix}/var'
  801. runstatedir='${localstatedir}/run'
  802. includedir='${prefix}/include'
  803. oldincludedir='/usr/include'
  804. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  805. infodir='${datarootdir}/info'
  806. htmldir='${docdir}'
  807. dvidir='${docdir}'
  808. pdfdir='${docdir}'
  809. psdir='${docdir}'
  810. libdir='${exec_prefix}/lib'
  811. localedir='${datarootdir}/locale'
  812. mandir='${datarootdir}/man'
  813. ac_prev=
  814. ac_dashdash=
  815. for ac_option
  816. do
  817. # If the previous option needs an argument, assign it.
  818. if test -n "$ac_prev"; then
  819. eval $ac_prev=\$ac_option
  820. ac_prev=
  821. continue
  822. fi
  823. case $ac_option in
  824. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  825. *=) ac_optarg= ;;
  826. *) ac_optarg=yes ;;
  827. esac
  828. case $ac_dashdash$ac_option in
  829. --)
  830. ac_dashdash=yes ;;
  831. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  832. ac_prev=bindir ;;
  833. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  834. bindir=$ac_optarg ;;
  835. -build | --build | --buil | --bui | --bu)
  836. ac_prev=build_alias ;;
  837. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  838. build_alias=$ac_optarg ;;
  839. -cache-file | --cache-file | --cache-fil | --cache-fi \
  840. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  841. ac_prev=cache_file ;;
  842. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  843. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  844. cache_file=$ac_optarg ;;
  845. --config-cache | -C)
  846. cache_file=config.cache ;;
  847. -datadir | --datadir | --datadi | --datad)
  848. ac_prev=datadir ;;
  849. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  850. datadir=$ac_optarg ;;
  851. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  852. | --dataroo | --dataro | --datar)
  853. ac_prev=datarootdir ;;
  854. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  855. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  856. datarootdir=$ac_optarg ;;
  857. -disable-* | --disable-*)
  858. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  859. # Reject names that are not valid shell variable names.
  860. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  861. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  862. ac_useropt_orig=$ac_useropt
  863. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  864. case $ac_user_opts in
  865. *"
  866. "enable_$ac_useropt"
  867. "*) ;;
  868. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  869. ac_unrecognized_sep=', ';;
  870. esac
  871. eval enable_$ac_useropt=no ;;
  872. -docdir | --docdir | --docdi | --doc | --do)
  873. ac_prev=docdir ;;
  874. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  875. docdir=$ac_optarg ;;
  876. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  877. ac_prev=dvidir ;;
  878. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  879. dvidir=$ac_optarg ;;
  880. -enable-* | --enable-*)
  881. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  882. # Reject names that are not valid shell variable names.
  883. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  884. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  885. ac_useropt_orig=$ac_useropt
  886. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  887. case $ac_user_opts in
  888. *"
  889. "enable_$ac_useropt"
  890. "*) ;;
  891. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  892. ac_unrecognized_sep=', ';;
  893. esac
  894. eval enable_$ac_useropt=\$ac_optarg ;;
  895. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  896. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  897. | --exec | --exe | --ex)
  898. ac_prev=exec_prefix ;;
  899. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  900. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  901. | --exec=* | --exe=* | --ex=*)
  902. exec_prefix=$ac_optarg ;;
  903. -gas | --gas | --ga | --g)
  904. # Obsolete; use --with-gas.
  905. with_gas=yes ;;
  906. -help | --help | --hel | --he | -h)
  907. ac_init_help=long ;;
  908. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  909. ac_init_help=recursive ;;
  910. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  911. ac_init_help=short ;;
  912. -host | --host | --hos | --ho)
  913. ac_prev=host_alias ;;
  914. -host=* | --host=* | --hos=* | --ho=*)
  915. host_alias=$ac_optarg ;;
  916. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  917. ac_prev=htmldir ;;
  918. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  919. | --ht=*)
  920. htmldir=$ac_optarg ;;
  921. -includedir | --includedir | --includedi | --included | --include \
  922. | --includ | --inclu | --incl | --inc)
  923. ac_prev=includedir ;;
  924. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  925. | --includ=* | --inclu=* | --incl=* | --inc=*)
  926. includedir=$ac_optarg ;;
  927. -infodir | --infodir | --infodi | --infod | --info | --inf)
  928. ac_prev=infodir ;;
  929. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  930. infodir=$ac_optarg ;;
  931. -libdir | --libdir | --libdi | --libd)
  932. ac_prev=libdir ;;
  933. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  934. libdir=$ac_optarg ;;
  935. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  936. | --libexe | --libex | --libe)
  937. ac_prev=libexecdir ;;
  938. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  939. | --libexe=* | --libex=* | --libe=*)
  940. libexecdir=$ac_optarg ;;
  941. -localedir | --localedir | --localedi | --localed | --locale)
  942. ac_prev=localedir ;;
  943. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  944. localedir=$ac_optarg ;;
  945. -localstatedir | --localstatedir | --localstatedi | --localstated \
  946. | --localstate | --localstat | --localsta | --localst | --locals)
  947. ac_prev=localstatedir ;;
  948. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  949. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  950. localstatedir=$ac_optarg ;;
  951. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  952. ac_prev=mandir ;;
  953. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  954. mandir=$ac_optarg ;;
  955. -nfp | --nfp | --nf)
  956. # Obsolete; use --without-fp.
  957. with_fp=no ;;
  958. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  959. | --no-cr | --no-c | -n)
  960. no_create=yes ;;
  961. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  962. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  963. no_recursion=yes ;;
  964. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  965. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  966. | --oldin | --oldi | --old | --ol | --o)
  967. ac_prev=oldincludedir ;;
  968. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  969. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  970. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  971. oldincludedir=$ac_optarg ;;
  972. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  973. ac_prev=prefix ;;
  974. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  975. prefix=$ac_optarg ;;
  976. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  977. | --program-pre | --program-pr | --program-p)
  978. ac_prev=program_prefix ;;
  979. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  980. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  981. program_prefix=$ac_optarg ;;
  982. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  983. | --program-suf | --program-su | --program-s)
  984. ac_prev=program_suffix ;;
  985. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  986. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  987. program_suffix=$ac_optarg ;;
  988. -program-transform-name | --program-transform-name \
  989. | --program-transform-nam | --program-transform-na \
  990. | --program-transform-n | --program-transform- \
  991. | --program-transform | --program-transfor \
  992. | --program-transfo | --program-transf \
  993. | --program-trans | --program-tran \
  994. | --progr-tra | --program-tr | --program-t)
  995. ac_prev=program_transform_name ;;
  996. -program-transform-name=* | --program-transform-name=* \
  997. | --program-transform-nam=* | --program-transform-na=* \
  998. | --program-transform-n=* | --program-transform-=* \
  999. | --program-transform=* | --program-transfor=* \
  1000. | --program-transfo=* | --program-transf=* \
  1001. | --program-trans=* | --program-tran=* \
  1002. | --progr-tra=* | --program-tr=* | --program-t=*)
  1003. program_transform_name=$ac_optarg ;;
  1004. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1005. ac_prev=pdfdir ;;
  1006. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1007. pdfdir=$ac_optarg ;;
  1008. -psdir | --psdir | --psdi | --psd | --ps)
  1009. ac_prev=psdir ;;
  1010. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1011. psdir=$ac_optarg ;;
  1012. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1013. | -silent | --silent | --silen | --sile | --sil)
  1014. silent=yes ;;
  1015. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1016. | --runstate | --runstat | --runsta | --runst | --runs \
  1017. | --run | --ru | --r)
  1018. ac_prev=runstatedir ;;
  1019. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1020. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1021. | --run=* | --ru=* | --r=*)
  1022. runstatedir=$ac_optarg ;;
  1023. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1024. ac_prev=sbindir ;;
  1025. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1026. | --sbi=* | --sb=*)
  1027. sbindir=$ac_optarg ;;
  1028. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1029. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1030. | --sharedst | --shareds | --shared | --share | --shar \
  1031. | --sha | --sh)
  1032. ac_prev=sharedstatedir ;;
  1033. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1034. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1035. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1036. | --sha=* | --sh=*)
  1037. sharedstatedir=$ac_optarg ;;
  1038. -site | --site | --sit)
  1039. ac_prev=site ;;
  1040. -site=* | --site=* | --sit=*)
  1041. site=$ac_optarg ;;
  1042. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1043. ac_prev=srcdir ;;
  1044. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1045. srcdir=$ac_optarg ;;
  1046. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1047. | --syscon | --sysco | --sysc | --sys | --sy)
  1048. ac_prev=sysconfdir ;;
  1049. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1050. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1051. sysconfdir=$ac_optarg ;;
  1052. -target | --target | --targe | --targ | --tar | --ta | --t)
  1053. ac_prev=target_alias ;;
  1054. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1055. target_alias=$ac_optarg ;;
  1056. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1057. verbose=yes ;;
  1058. -version | --version | --versio | --versi | --vers | -V)
  1059. ac_init_version=: ;;
  1060. -with-* | --with-*)
  1061. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1062. # Reject names that are not valid shell variable names.
  1063. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1064. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1065. ac_useropt_orig=$ac_useropt
  1066. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1067. case $ac_user_opts in
  1068. *"
  1069. "with_$ac_useropt"
  1070. "*) ;;
  1071. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1072. ac_unrecognized_sep=', ';;
  1073. esac
  1074. eval with_$ac_useropt=\$ac_optarg ;;
  1075. -without-* | --without-*)
  1076. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1077. # Reject names that are not valid shell variable names.
  1078. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1079. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1080. ac_useropt_orig=$ac_useropt
  1081. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1082. case $ac_user_opts in
  1083. *"
  1084. "with_$ac_useropt"
  1085. "*) ;;
  1086. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1087. ac_unrecognized_sep=', ';;
  1088. esac
  1089. eval with_$ac_useropt=no ;;
  1090. --x)
  1091. # Obsolete; use --with-x.
  1092. with_x=yes ;;
  1093. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1094. | --x-incl | --x-inc | --x-in | --x-i)
  1095. ac_prev=x_includes ;;
  1096. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1097. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1098. x_includes=$ac_optarg ;;
  1099. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1100. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1101. ac_prev=x_libraries ;;
  1102. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1103. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1104. x_libraries=$ac_optarg ;;
  1105. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1106. Try \`$0 --help' for more information"
  1107. ;;
  1108. *=*)
  1109. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1110. # Reject names that are not valid shell variable names.
  1111. case $ac_envvar in #(
  1112. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1113. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1114. esac
  1115. eval $ac_envvar=\$ac_optarg
  1116. export $ac_envvar ;;
  1117. *)
  1118. # FIXME: should be removed in autoconf 3.0.
  1119. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1120. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1121. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1122. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1123. ;;
  1124. esac
  1125. done
  1126. if test -n "$ac_prev"; then
  1127. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1128. as_fn_error $? "missing argument to $ac_option"
  1129. fi
  1130. if test -n "$ac_unrecognized_opts"; then
  1131. case $enable_option_checking in
  1132. no) ;;
  1133. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1134. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1135. esac
  1136. fi
  1137. # Check all directory arguments for consistency.
  1138. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1139. datadir sysconfdir sharedstatedir localstatedir includedir \
  1140. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1141. libdir localedir mandir runstatedir
  1142. do
  1143. eval ac_val=\$$ac_var
  1144. # Remove trailing slashes.
  1145. case $ac_val in
  1146. */ )
  1147. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1148. eval $ac_var=\$ac_val;;
  1149. esac
  1150. # Be sure to have absolute directory names.
  1151. case $ac_val in
  1152. [\\/$]* | ?:[\\/]* ) continue;;
  1153. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1154. esac
  1155. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1156. done
  1157. # There might be people who depend on the old broken behavior: `$host'
  1158. # used to hold the argument of --host etc.
  1159. # FIXME: To remove some day.
  1160. build=$build_alias
  1161. host=$host_alias
  1162. target=$target_alias
  1163. # FIXME: To remove some day.
  1164. if test "x$host_alias" != x; then
  1165. if test "x$build_alias" = x; then
  1166. cross_compiling=maybe
  1167. elif test "x$build_alias" != "x$host_alias"; then
  1168. cross_compiling=yes
  1169. fi
  1170. fi
  1171. ac_tool_prefix=
  1172. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1173. test "$silent" = yes && exec 6>/dev/null
  1174. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1175. ac_ls_di=`ls -di .` &&
  1176. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1177. as_fn_error $? "working directory cannot be determined"
  1178. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1179. as_fn_error $? "pwd does not report name of working directory"
  1180. # Find the source files, if location was not specified.
  1181. if test -z "$srcdir"; then
  1182. ac_srcdir_defaulted=yes
  1183. # Try the directory containing this script, then the parent directory.
  1184. ac_confdir=`$as_dirname -- "$as_myself" ||
  1185. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1186. X"$as_myself" : 'X\(//\)[^/]' \| \
  1187. X"$as_myself" : 'X\(//\)$' \| \
  1188. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1189. printf "%s\n" X"$as_myself" |
  1190. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1191. s//\1/
  1192. q
  1193. }
  1194. /^X\(\/\/\)[^/].*/{
  1195. s//\1/
  1196. q
  1197. }
  1198. /^X\(\/\/\)$/{
  1199. s//\1/
  1200. q
  1201. }
  1202. /^X\(\/\).*/{
  1203. s//\1/
  1204. q
  1205. }
  1206. s/.*/./; q'`
  1207. srcdir=$ac_confdir
  1208. if test ! -r "$srcdir/$ac_unique_file"; then
  1209. srcdir=..
  1210. fi
  1211. else
  1212. ac_srcdir_defaulted=no
  1213. fi
  1214. if test ! -r "$srcdir/$ac_unique_file"; then
  1215. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1216. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1217. fi
  1218. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1219. ac_abs_confdir=`(
  1220. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1221. pwd)`
  1222. # When building in place, set srcdir=.
  1223. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1224. srcdir=.
  1225. fi
  1226. # Remove unnecessary trailing slashes from srcdir.
  1227. # Double slashes in file names in object file debugging info
  1228. # mess up M-x gdb in Emacs.
  1229. case $srcdir in
  1230. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1231. esac
  1232. for ac_var in $ac_precious_vars; do
  1233. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1234. eval ac_env_${ac_var}_value=\$${ac_var}
  1235. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1236. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1237. done
  1238. #
  1239. # Report the --help message.
  1240. #
  1241. if test "$ac_init_help" = "long"; then
  1242. # Omit some internal or obsolete options to make the list less imposing.
  1243. # This message is too long to be a string in the A/UX 3.1 sh.
  1244. cat <<_ACEOF
  1245. \`configure' configures file 5.43 to adapt to many kinds of systems.
  1246. Usage: $0 [OPTION]... [VAR=VALUE]...
  1247. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1248. VAR=VALUE. See below for descriptions of some of the useful variables.
  1249. Defaults for the options are specified in brackets.
  1250. Configuration:
  1251. -h, --help display this help and exit
  1252. --help=short display options specific to this package
  1253. --help=recursive display the short help of all the included packages
  1254. -V, --version display version information and exit
  1255. -q, --quiet, --silent do not print \`checking ...' messages
  1256. --cache-file=FILE cache test results in FILE [disabled]
  1257. -C, --config-cache alias for \`--cache-file=config.cache'
  1258. -n, --no-create do not create output files
  1259. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1260. Installation directories:
  1261. --prefix=PREFIX install architecture-independent files in PREFIX
  1262. [$ac_default_prefix]
  1263. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1264. [PREFIX]
  1265. By default, \`make install' will install all the files in
  1266. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1267. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1268. for instance \`--prefix=\$HOME'.
  1269. For better control, use the options below.
  1270. Fine tuning of the installation directories:
  1271. --bindir=DIR user executables [EPREFIX/bin]
  1272. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1273. --libexecdir=DIR program executables [EPREFIX/libexec]
  1274. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1275. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1276. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1277. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1278. --libdir=DIR object code libraries [EPREFIX/lib]
  1279. --includedir=DIR C header files [PREFIX/include]
  1280. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1281. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1282. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1283. --infodir=DIR info documentation [DATAROOTDIR/info]
  1284. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1285. --mandir=DIR man documentation [DATAROOTDIR/man]
  1286. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1287. --htmldir=DIR html documentation [DOCDIR]
  1288. --dvidir=DIR dvi documentation [DOCDIR]
  1289. --pdfdir=DIR pdf documentation [DOCDIR]
  1290. --psdir=DIR ps documentation [DOCDIR]
  1291. _ACEOF
  1292. cat <<\_ACEOF
  1293. Program names:
  1294. --program-prefix=PREFIX prepend PREFIX to installed program names
  1295. --program-suffix=SUFFIX append SUFFIX to installed program names
  1296. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1297. System types:
  1298. --build=BUILD configure for building on BUILD [guessed]
  1299. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1300. _ACEOF
  1301. fi
  1302. if test -n "$ac_init_help"; then
  1303. case $ac_init_help in
  1304. short | recursive ) echo "Configuration of file 5.43:";;
  1305. esac
  1306. cat <<\_ACEOF
  1307. Optional Features:
  1308. --disable-option-checking ignore unrecognized --enable/--with options
  1309. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1310. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1311. --enable-silent-rules less verbose build output (undo: "make V=1")
  1312. --disable-silent-rules verbose build output (undo: "make V=0")
  1313. --disable-elf disable builtin ELF support
  1314. --disable-elf-core disable ELF core file support
  1315. --disable-zlib disable zlib compression support [default=auto]
  1316. --disable-bzlib disable bz2lib compression support [default=auto]
  1317. --disable-xzlib disable liblzma/xz compression support
  1318. [default=auto]
  1319. --disable-libseccomp disable libseccomp sandboxing [default=auto]
  1320. --enable-fsect-man5 enable file formats in man section 5
  1321. --enable-dependency-tracking
  1322. do not reject slow dependency extractors
  1323. --disable-dependency-tracking
  1324. speeds up one-time build
  1325. --enable-static[=PKGS] build static libraries [default=no]
  1326. --enable-shared[=PKGS] build shared libraries [default=yes]
  1327. --enable-fast-install[=PKGS]
  1328. optimize for fast installation [default=yes]
  1329. --disable-libtool-lock avoid locking (might break parallel builds)
  1330. --disable-largefile omit support for large files
  1331. --disable-warnings disable compiler warnings
  1332. Optional Packages:
  1333. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1334. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1335. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1336. both]
  1337. --with-aix-soname=aix|svr4|both
  1338. shared library versioning (aka "SONAME") variant to
  1339. provide on AIX, [default=aix].
  1340. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1341. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1342. compiler's sysroot if not specified).
  1343. Some influential environment variables:
  1344. CC C compiler command
  1345. CFLAGS C compiler flags
  1346. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1347. nonstandard directory <lib dir>
  1348. LIBS libraries to pass to the linker, e.g. -l<library>
  1349. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1350. you have headers in a nonstandard directory <include dir>
  1351. LT_SYS_LIBRARY_PATH
  1352. User-defined run-time library search path.
  1353. Use these variables to override the choices made by `configure' or to help
  1354. it to find libraries and programs with nonstandard names/locations.
  1355. Report bugs to <christos@astron.com>.
  1356. _ACEOF
  1357. ac_status=$?
  1358. fi
  1359. if test "$ac_init_help" = "recursive"; then
  1360. # If there are subdirs, report their specific --help.
  1361. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1362. test -d "$ac_dir" ||
  1363. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1364. continue
  1365. ac_builddir=.
  1366. case "$ac_dir" in
  1367. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1368. *)
  1369. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1370. # A ".." for each directory in $ac_dir_suffix.
  1371. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1372. case $ac_top_builddir_sub in
  1373. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1374. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1375. esac ;;
  1376. esac
  1377. ac_abs_top_builddir=$ac_pwd
  1378. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1379. # for backward compatibility:
  1380. ac_top_builddir=$ac_top_build_prefix
  1381. case $srcdir in
  1382. .) # We are building in place.
  1383. ac_srcdir=.
  1384. ac_top_srcdir=$ac_top_builddir_sub
  1385. ac_abs_top_srcdir=$ac_pwd ;;
  1386. [\\/]* | ?:[\\/]* ) # Absolute name.
  1387. ac_srcdir=$srcdir$ac_dir_suffix;
  1388. ac_top_srcdir=$srcdir
  1389. ac_abs_top_srcdir=$srcdir ;;
  1390. *) # Relative name.
  1391. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1392. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1393. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1394. esac
  1395. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1396. cd "$ac_dir" || { ac_status=$?; continue; }
  1397. # Check for configure.gnu first; this name is used for a wrapper for
  1398. # Metaconfig's "Configure" on case-insensitive file systems.
  1399. if test -f "$ac_srcdir/configure.gnu"; then
  1400. echo &&
  1401. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1402. elif test -f "$ac_srcdir/configure"; then
  1403. echo &&
  1404. $SHELL "$ac_srcdir/configure" --help=recursive
  1405. else
  1406. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1407. fi || ac_status=$?
  1408. cd "$ac_pwd" || { ac_status=$?; break; }
  1409. done
  1410. fi
  1411. test -n "$ac_init_help" && exit $ac_status
  1412. if $ac_init_version; then
  1413. cat <<\_ACEOF
  1414. file configure 5.43
  1415. generated by GNU Autoconf 2.71
  1416. Copyright (C) 2021 Free Software Foundation, Inc.
  1417. This configure script is free software; the Free Software Foundation
  1418. gives unlimited permission to copy, distribute and modify it.
  1419. _ACEOF
  1420. exit
  1421. fi
  1422. ## ------------------------ ##
  1423. ## Autoconf initialization. ##
  1424. ## ------------------------ ##
  1425. # ac_fn_c_try_compile LINENO
  1426. # --------------------------
  1427. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_compile ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. rm -f conftest.$ac_objext conftest.beam
  1432. if { { ac_try="$ac_compile"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. printf "%s\n" "$ac_try_echo"; } >&5
  1439. (eval "$ac_compile") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && {
  1448. test -z "$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. } && test -s conftest.$ac_objext
  1451. then :
  1452. ac_retval=0
  1453. else $as_nop
  1454. printf "%s\n" "$as_me: failed program was:" >&5
  1455. sed 's/^/| /' conftest.$ac_ext >&5
  1456. ac_retval=1
  1457. fi
  1458. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1459. as_fn_set_status $ac_retval
  1460. } # ac_fn_c_try_compile
  1461. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1462. # -------------------------------------------------------
  1463. # Tests whether HEADER exists and can be compiled using the include files in
  1464. # INCLUDES, setting the cache variable VAR accordingly.
  1465. ac_fn_c_check_header_compile ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1469. printf %s "checking for $2... " >&6; }
  1470. if eval test \${$3+y}
  1471. then :
  1472. printf %s "(cached) " >&6
  1473. else $as_nop
  1474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1475. /* end confdefs.h. */
  1476. $4
  1477. #include <$2>
  1478. _ACEOF
  1479. if ac_fn_c_try_compile "$LINENO"
  1480. then :
  1481. eval "$3=yes"
  1482. else $as_nop
  1483. eval "$3=no"
  1484. fi
  1485. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1486. fi
  1487. eval ac_res=\$$3
  1488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1489. printf "%s\n" "$ac_res" >&6; }
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. } # ac_fn_c_check_header_compile
  1492. # ac_fn_c_try_run LINENO
  1493. # ----------------------
  1494. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1495. # executables *can* be run.
  1496. ac_fn_c_try_run ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. if { { ac_try="$ac_link"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. printf "%s\n" "$ac_try_echo"; } >&5
  1506. (eval "$ac_link") 2>&5
  1507. ac_status=$?
  1508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1509. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1510. { { case "(($ac_try" in
  1511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1512. *) ac_try_echo=$ac_try;;
  1513. esac
  1514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1515. printf "%s\n" "$ac_try_echo"; } >&5
  1516. (eval "$ac_try") 2>&5
  1517. ac_status=$?
  1518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; }; }
  1520. then :
  1521. ac_retval=0
  1522. else $as_nop
  1523. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1524. printf "%s\n" "$as_me: failed program was:" >&5
  1525. sed 's/^/| /' conftest.$ac_ext >&5
  1526. ac_retval=$ac_status
  1527. fi
  1528. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1529. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1530. as_fn_set_status $ac_retval
  1531. } # ac_fn_c_try_run
  1532. # ac_fn_c_try_link LINENO
  1533. # -----------------------
  1534. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1535. ac_fn_c_try_link ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1539. if { { ac_try="$ac_link"
  1540. case "(($ac_try" in
  1541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1542. *) ac_try_echo=$ac_try;;
  1543. esac
  1544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1545. printf "%s\n" "$ac_try_echo"; } >&5
  1546. (eval "$ac_link") 2>conftest.err
  1547. ac_status=$?
  1548. if test -s conftest.err; then
  1549. grep -v '^ *+' conftest.err >conftest.er1
  1550. cat conftest.er1 >&5
  1551. mv -f conftest.er1 conftest.err
  1552. fi
  1553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1554. test $ac_status = 0; } && {
  1555. test -z "$ac_c_werror_flag" ||
  1556. test ! -s conftest.err
  1557. } && test -s conftest$ac_exeext && {
  1558. test "$cross_compiling" = yes ||
  1559. test -x conftest$ac_exeext
  1560. }
  1561. then :
  1562. ac_retval=0
  1563. else $as_nop
  1564. printf "%s\n" "$as_me: failed program was:" >&5
  1565. sed 's/^/| /' conftest.$ac_ext >&5
  1566. ac_retval=1
  1567. fi
  1568. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1569. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1570. # interfere with the next link command; also delete a directory that is
  1571. # left behind by Apple's compiler. We do this before executing the actions.
  1572. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1573. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1574. as_fn_set_status $ac_retval
  1575. } # ac_fn_c_try_link
  1576. # ac_fn_c_check_func LINENO FUNC VAR
  1577. # ----------------------------------
  1578. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1579. ac_fn_c_check_func ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1583. printf %s "checking for $2... " >&6; }
  1584. if eval test \${$3+y}
  1585. then :
  1586. printf %s "(cached) " >&6
  1587. else $as_nop
  1588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end confdefs.h. */
  1590. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1591. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1592. #define $2 innocuous_$2
  1593. /* System header to define __stub macros and hopefully few prototypes,
  1594. which can conflict with char $2 (); below. */
  1595. #include <limits.h>
  1596. #undef $2
  1597. /* Override any GCC internal prototype to avoid an error.
  1598. Use char because int might match the return type of a GCC
  1599. builtin and then its argument prototype would still apply. */
  1600. #ifdef __cplusplus
  1601. extern "C"
  1602. #endif
  1603. char $2 ();
  1604. /* The GNU C library defines this for functions which it implements
  1605. to always fail with ENOSYS. Some functions are actually named
  1606. something starting with __ and the normal name is an alias. */
  1607. #if defined __stub_$2 || defined __stub___$2
  1608. choke me
  1609. #endif
  1610. int
  1611. main (void)
  1612. {
  1613. return $2 ();
  1614. ;
  1615. return 0;
  1616. }
  1617. _ACEOF
  1618. if ac_fn_c_try_link "$LINENO"
  1619. then :
  1620. eval "$3=yes"
  1621. else $as_nop
  1622. eval "$3=no"
  1623. fi
  1624. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1625. conftest$ac_exeext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. printf "%s\n" "$ac_res" >&6; }
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_func
  1632. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1633. # -------------------------------------------
  1634. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1635. # variable VAR accordingly.
  1636. ac_fn_c_check_type ()
  1637. {
  1638. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1640. printf %s "checking for $2... " >&6; }
  1641. if eval test \${$3+y}
  1642. then :
  1643. printf %s "(cached) " >&6
  1644. else $as_nop
  1645. eval "$3=no"
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. int
  1650. main (void)
  1651. {
  1652. if (sizeof ($2))
  1653. return 0;
  1654. ;
  1655. return 0;
  1656. }
  1657. _ACEOF
  1658. if ac_fn_c_try_compile "$LINENO"
  1659. then :
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. $4
  1663. int
  1664. main (void)
  1665. {
  1666. if (sizeof (($2)))
  1667. return 0;
  1668. ;
  1669. return 0;
  1670. }
  1671. _ACEOF
  1672. if ac_fn_c_try_compile "$LINENO"
  1673. then :
  1674. else $as_nop
  1675. eval "$3=yes"
  1676. fi
  1677. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1678. fi
  1679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1680. fi
  1681. eval ac_res=\$$3
  1682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1683. printf "%s\n" "$ac_res" >&6; }
  1684. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1685. } # ac_fn_c_check_type
  1686. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1687. # ----------------------------------------------------
  1688. # Tries to find if the field MEMBER exists in type AGGR, after including
  1689. # INCLUDES, setting cache variable VAR accordingly.
  1690. ac_fn_c_check_member ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1694. printf %s "checking for $2.$3... " >&6; }
  1695. if eval test \${$4+y}
  1696. then :
  1697. printf %s "(cached) " >&6
  1698. else $as_nop
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. $5
  1702. int
  1703. main (void)
  1704. {
  1705. static $2 ac_aggr;
  1706. if (ac_aggr.$3)
  1707. return 0;
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_compile "$LINENO"
  1713. then :
  1714. eval "$4=yes"
  1715. else $as_nop
  1716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1717. /* end confdefs.h. */
  1718. $5
  1719. int
  1720. main (void)
  1721. {
  1722. static $2 ac_aggr;
  1723. if (sizeof ac_aggr.$3)
  1724. return 0;
  1725. ;
  1726. return 0;
  1727. }
  1728. _ACEOF
  1729. if ac_fn_c_try_compile "$LINENO"
  1730. then :
  1731. eval "$4=yes"
  1732. else $as_nop
  1733. eval "$4=no"
  1734. fi
  1735. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1736. fi
  1737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1738. fi
  1739. eval ac_res=\$$4
  1740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1741. printf "%s\n" "$ac_res" >&6; }
  1742. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1743. } # ac_fn_c_check_member
  1744. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1745. # ------------------------------------------------------------------
  1746. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1747. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1748. ac_fn_check_decl ()
  1749. {
  1750. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1751. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1753. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1754. if eval test \${$3+y}
  1755. then :
  1756. printf %s "(cached) " >&6
  1757. else $as_nop
  1758. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1759. eval ac_save_FLAGS=\$$6
  1760. as_fn_append $6 " $5"
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. $4
  1764. int
  1765. main (void)
  1766. {
  1767. #ifndef $as_decl_name
  1768. #ifdef __cplusplus
  1769. (void) $as_decl_use;
  1770. #else
  1771. (void) $as_decl_name;
  1772. #endif
  1773. #endif
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_c_try_compile "$LINENO"
  1779. then :
  1780. eval "$3=yes"
  1781. else $as_nop
  1782. eval "$3=no"
  1783. fi
  1784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1785. eval $6=\$ac_save_FLAGS
  1786. fi
  1787. eval ac_res=\$$3
  1788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1789. printf "%s\n" "$ac_res" >&6; }
  1790. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1791. } # ac_fn_check_decl
  1792. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1793. # ------------------------------------
  1794. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1795. # accordingly.
  1796. ac_fn_c_find_uintX_t ()
  1797. {
  1798. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1800. printf %s "checking for uint$2_t... " >&6; }
  1801. if eval test \${$3+y}
  1802. then :
  1803. printf %s "(cached) " >&6
  1804. else $as_nop
  1805. eval "$3=no"
  1806. # Order is important - never check a type that is potentially smaller
  1807. # than half of the expected target width.
  1808. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1809. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1811. /* end confdefs.h. */
  1812. $ac_includes_default
  1813. int
  1814. main (void)
  1815. {
  1816. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1817. test_array [0] = 0;
  1818. return test_array [0];
  1819. ;
  1820. return 0;
  1821. }
  1822. _ACEOF
  1823. if ac_fn_c_try_compile "$LINENO"
  1824. then :
  1825. case $ac_type in #(
  1826. uint$2_t) :
  1827. eval "$3=yes" ;; #(
  1828. *) :
  1829. eval "$3=\$ac_type" ;;
  1830. esac
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1833. if eval test \"x\$"$3"\" = x"no"
  1834. then :
  1835. else $as_nop
  1836. break
  1837. fi
  1838. done
  1839. fi
  1840. eval ac_res=\$$3
  1841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1842. printf "%s\n" "$ac_res" >&6; }
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. } # ac_fn_c_find_uintX_t
  1845. # ac_fn_c_find_intX_t LINENO BITS VAR
  1846. # -----------------------------------
  1847. # Finds a signed integer type with width BITS, setting cache variable VAR
  1848. # accordingly.
  1849. ac_fn_c_find_intX_t ()
  1850. {
  1851. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1853. printf %s "checking for int$2_t... " >&6; }
  1854. if eval test \${$3+y}
  1855. then :
  1856. printf %s "(cached) " >&6
  1857. else $as_nop
  1858. eval "$3=no"
  1859. # Order is important - never check a type that is potentially smaller
  1860. # than half of the expected target width.
  1861. for ac_type in int$2_t 'int' 'long int' \
  1862. 'long long int' 'short int' 'signed char'; do
  1863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1864. /* end confdefs.h. */
  1865. $ac_includes_default
  1866. enum { N = $2 / 2 - 1 };
  1867. int
  1868. main (void)
  1869. {
  1870. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1871. test_array [0] = 0;
  1872. return test_array [0];
  1873. ;
  1874. return 0;
  1875. }
  1876. _ACEOF
  1877. if ac_fn_c_try_compile "$LINENO"
  1878. then :
  1879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1880. /* end confdefs.h. */
  1881. $ac_includes_default
  1882. enum { N = $2 / 2 - 1 };
  1883. int
  1884. main (void)
  1885. {
  1886. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1887. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1888. test_array [0] = 0;
  1889. return test_array [0];
  1890. ;
  1891. return 0;
  1892. }
  1893. _ACEOF
  1894. if ac_fn_c_try_compile "$LINENO"
  1895. then :
  1896. else $as_nop
  1897. case $ac_type in #(
  1898. int$2_t) :
  1899. eval "$3=yes" ;; #(
  1900. *) :
  1901. eval "$3=\$ac_type" ;;
  1902. esac
  1903. fi
  1904. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1905. fi
  1906. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1907. if eval test \"x\$"$3"\" = x"no"
  1908. then :
  1909. else $as_nop
  1910. break
  1911. fi
  1912. done
  1913. fi
  1914. eval ac_res=\$$3
  1915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1916. printf "%s\n" "$ac_res" >&6; }
  1917. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1918. } # ac_fn_c_find_intX_t
  1919. ac_configure_args_raw=
  1920. for ac_arg
  1921. do
  1922. case $ac_arg in
  1923. *\'*)
  1924. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1925. esac
  1926. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1927. done
  1928. case $ac_configure_args_raw in
  1929. *$as_nl*)
  1930. ac_safe_unquote= ;;
  1931. *)
  1932. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1933. ac_unsafe_a="$ac_unsafe_z#~"
  1934. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1935. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1936. esac
  1937. cat >config.log <<_ACEOF
  1938. This file contains any messages produced by compilers while
  1939. running configure, to aid debugging if configure makes a mistake.
  1940. It was created by file $as_me 5.43, which was
  1941. generated by GNU Autoconf 2.71. Invocation command line was
  1942. $ $0$ac_configure_args_raw
  1943. _ACEOF
  1944. exec 5>>config.log
  1945. {
  1946. cat <<_ASUNAME
  1947. ## --------- ##
  1948. ## Platform. ##
  1949. ## --------- ##
  1950. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1951. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1952. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1953. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1954. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1955. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1956. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1957. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1958. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1959. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1960. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1961. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1962. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1963. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1964. _ASUNAME
  1965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1966. for as_dir in $PATH
  1967. do
  1968. IFS=$as_save_IFS
  1969. case $as_dir in #(((
  1970. '') as_dir=./ ;;
  1971. */) ;;
  1972. *) as_dir=$as_dir/ ;;
  1973. esac
  1974. printf "%s\n" "PATH: $as_dir"
  1975. done
  1976. IFS=$as_save_IFS
  1977. } >&5
  1978. cat >&5 <<_ACEOF
  1979. ## ----------- ##
  1980. ## Core tests. ##
  1981. ## ----------- ##
  1982. _ACEOF
  1983. # Keep a trace of the command line.
  1984. # Strip out --no-create and --no-recursion so they do not pile up.
  1985. # Strip out --silent because we don't want to record it for future runs.
  1986. # Also quote any args containing shell meta-characters.
  1987. # Make two passes to allow for proper duplicate-argument suppression.
  1988. ac_configure_args=
  1989. ac_configure_args0=
  1990. ac_configure_args1=
  1991. ac_must_keep_next=false
  1992. for ac_pass in 1 2
  1993. do
  1994. for ac_arg
  1995. do
  1996. case $ac_arg in
  1997. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1998. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1999. | -silent | --silent | --silen | --sile | --sil)
  2000. continue ;;
  2001. *\'*)
  2002. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2003. esac
  2004. case $ac_pass in
  2005. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2006. 2)
  2007. as_fn_append ac_configure_args1 " '$ac_arg'"
  2008. if test $ac_must_keep_next = true; then
  2009. ac_must_keep_next=false # Got value, back to normal.
  2010. else
  2011. case $ac_arg in
  2012. *=* | --config-cache | -C | -disable-* | --disable-* \
  2013. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2014. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2015. | -with-* | --with-* | -without-* | --without-* | --x)
  2016. case "$ac_configure_args0 " in
  2017. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2018. esac
  2019. ;;
  2020. -* ) ac_must_keep_next=true ;;
  2021. esac
  2022. fi
  2023. as_fn_append ac_configure_args " '$ac_arg'"
  2024. ;;
  2025. esac
  2026. done
  2027. done
  2028. { ac_configure_args0=; unset ac_configure_args0;}
  2029. { ac_configure_args1=; unset ac_configure_args1;}
  2030. # When interrupted or exit'd, cleanup temporary files, and complete
  2031. # config.log. We remove comments because anyway the quotes in there
  2032. # would cause problems or look ugly.
  2033. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2034. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2035. trap 'exit_status=$?
  2036. # Sanitize IFS.
  2037. IFS=" "" $as_nl"
  2038. # Save into config.log some information that might help in debugging.
  2039. {
  2040. echo
  2041. printf "%s\n" "## ---------------- ##
  2042. ## Cache variables. ##
  2043. ## ---------------- ##"
  2044. echo
  2045. # The following way of writing the cache mishandles newlines in values,
  2046. (
  2047. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2048. eval ac_val=\$$ac_var
  2049. case $ac_val in #(
  2050. *${as_nl}*)
  2051. case $ac_var in #(
  2052. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2053. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2054. esac
  2055. case $ac_var in #(
  2056. _ | IFS | as_nl) ;; #(
  2057. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2058. *) { eval $ac_var=; unset $ac_var;} ;;
  2059. esac ;;
  2060. esac
  2061. done
  2062. (set) 2>&1 |
  2063. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2064. *${as_nl}ac_space=\ *)
  2065. sed -n \
  2066. "s/'\''/'\''\\\\'\'''\''/g;
  2067. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2068. ;; #(
  2069. *)
  2070. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2071. ;;
  2072. esac |
  2073. sort
  2074. )
  2075. echo
  2076. printf "%s\n" "## ----------------- ##
  2077. ## Output variables. ##
  2078. ## ----------------- ##"
  2079. echo
  2080. for ac_var in $ac_subst_vars
  2081. do
  2082. eval ac_val=\$$ac_var
  2083. case $ac_val in
  2084. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2085. esac
  2086. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2087. done | sort
  2088. echo
  2089. if test -n "$ac_subst_files"; then
  2090. printf "%s\n" "## ------------------- ##
  2091. ## File substitutions. ##
  2092. ## ------------------- ##"
  2093. echo
  2094. for ac_var in $ac_subst_files
  2095. do
  2096. eval ac_val=\$$ac_var
  2097. case $ac_val in
  2098. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2099. esac
  2100. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2101. done | sort
  2102. echo
  2103. fi
  2104. if test -s confdefs.h; then
  2105. printf "%s\n" "## ----------- ##
  2106. ## confdefs.h. ##
  2107. ## ----------- ##"
  2108. echo
  2109. cat confdefs.h
  2110. echo
  2111. fi
  2112. test "$ac_signal" != 0 &&
  2113. printf "%s\n" "$as_me: caught signal $ac_signal"
  2114. printf "%s\n" "$as_me: exit $exit_status"
  2115. } >&5
  2116. rm -f core *.core core.conftest.* &&
  2117. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2118. exit $exit_status
  2119. ' 0
  2120. for ac_signal in 1 2 13 15; do
  2121. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2122. done
  2123. ac_signal=0
  2124. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2125. rm -f -r conftest* confdefs.h
  2126. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2127. # Predefined preprocessor variables.
  2128. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2129. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2130. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2131. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2132. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2133. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2134. # Let the site file select an alternate cache file if it wants to.
  2135. # Prefer an explicitly selected file to automatically selected ones.
  2136. if test -n "$CONFIG_SITE"; then
  2137. ac_site_files="$CONFIG_SITE"
  2138. elif test "x$prefix" != xNONE; then
  2139. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2140. else
  2141. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2142. fi
  2143. for ac_site_file in $ac_site_files
  2144. do
  2145. case $ac_site_file in #(
  2146. */*) :
  2147. ;; #(
  2148. *) :
  2149. ac_site_file=./$ac_site_file ;;
  2150. esac
  2151. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2153. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2154. sed 's/^/| /' "$ac_site_file" >&5
  2155. . "$ac_site_file" \
  2156. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2157. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2158. as_fn_error $? "failed to load site script $ac_site_file
  2159. See \`config.log' for more details" "$LINENO" 5; }
  2160. fi
  2161. done
  2162. if test -r "$cache_file"; then
  2163. # Some versions of bash will fail to source /dev/null (special files
  2164. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2165. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2167. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2168. case $cache_file in
  2169. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2170. *) . "./$cache_file";;
  2171. esac
  2172. fi
  2173. else
  2174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2175. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2176. >$cache_file
  2177. fi
  2178. # Test code for whether the C compiler supports C89 (global declarations)
  2179. ac_c_conftest_c89_globals='
  2180. /* Does the compiler advertise C89 conformance?
  2181. Do not test the value of __STDC__, because some compilers set it to 0
  2182. while being otherwise adequately conformant. */
  2183. #if !defined __STDC__
  2184. # error "Compiler does not advertise C89 conformance"
  2185. #endif
  2186. #include <stddef.h>
  2187. #include <stdarg.h>
  2188. struct stat;
  2189. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2190. struct buf { int x; };
  2191. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2192. static char *e (p, i)
  2193. char **p;
  2194. int i;
  2195. {
  2196. return p[i];
  2197. }
  2198. static char *f (char * (*g) (char **, int), char **p, ...)
  2199. {
  2200. char *s;
  2201. va_list v;
  2202. va_start (v,p);
  2203. s = g (p, va_arg (v,int));
  2204. va_end (v);
  2205. return s;
  2206. }
  2207. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2208. function prototypes and stuff, but not \xHH hex character constants.
  2209. These do not provoke an error unfortunately, instead are silently treated
  2210. as an "x". The following induces an error, until -std is added to get
  2211. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2212. array size at least. It is necessary to write \x00 == 0 to get something
  2213. that is true only with -std. */
  2214. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2215. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2216. inside strings and character constants. */
  2217. #define FOO(x) '\''x'\''
  2218. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2219. int test (int i, double x);
  2220. struct s1 {int (*f) (int a);};
  2221. struct s2 {int (*f) (double a);};
  2222. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2223. int, int);'
  2224. # Test code for whether the C compiler supports C89 (body of main).
  2225. ac_c_conftest_c89_main='
  2226. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2227. '
  2228. # Test code for whether the C compiler supports C99 (global declarations)
  2229. ac_c_conftest_c99_globals='
  2230. // Does the compiler advertise C99 conformance?
  2231. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2232. # error "Compiler does not advertise C99 conformance"
  2233. #endif
  2234. #include <stdbool.h>
  2235. extern int puts (const char *);
  2236. extern int printf (const char *, ...);
  2237. extern int dprintf (int, const char *, ...);
  2238. extern void *malloc (size_t);
  2239. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2240. // dprintf is used instead of fprintf to avoid needing to declare
  2241. // FILE and stderr.
  2242. #define debug(...) dprintf (2, __VA_ARGS__)
  2243. #define showlist(...) puts (#__VA_ARGS__)
  2244. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2245. static void
  2246. test_varargs_macros (void)
  2247. {
  2248. int x = 1234;
  2249. int y = 5678;
  2250. debug ("Flag");
  2251. debug ("X = %d\n", x);
  2252. showlist (The first, second, and third items.);
  2253. report (x>y, "x is %d but y is %d", x, y);
  2254. }
  2255. // Check long long types.
  2256. #define BIG64 18446744073709551615ull
  2257. #define BIG32 4294967295ul
  2258. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2259. #if !BIG_OK
  2260. #error "your preprocessor is broken"
  2261. #endif
  2262. #if BIG_OK
  2263. #else
  2264. #error "your preprocessor is broken"
  2265. #endif
  2266. static long long int bignum = -9223372036854775807LL;
  2267. static unsigned long long int ubignum = BIG64;
  2268. struct incomplete_array
  2269. {
  2270. int datasize;
  2271. double data[];
  2272. };
  2273. struct named_init {
  2274. int number;
  2275. const wchar_t *name;
  2276. double average;
  2277. };
  2278. typedef const char *ccp;
  2279. static inline int
  2280. test_restrict (ccp restrict text)
  2281. {
  2282. // See if C++-style comments work.
  2283. // Iterate through items via the restricted pointer.
  2284. // Also check for declarations in for loops.
  2285. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2286. continue;
  2287. return 0;
  2288. }
  2289. // Check varargs and va_copy.
  2290. static bool
  2291. test_varargs (const char *format, ...)
  2292. {
  2293. va_list args;
  2294. va_start (args, format);
  2295. va_list args_copy;
  2296. va_copy (args_copy, args);
  2297. const char *str = "";
  2298. int number = 0;
  2299. float fnumber = 0;
  2300. while (*format)
  2301. {
  2302. switch (*format++)
  2303. {
  2304. case '\''s'\'': // string
  2305. str = va_arg (args_copy, const char *);
  2306. break;
  2307. case '\''d'\'': // int
  2308. number = va_arg (args_copy, int);
  2309. break;
  2310. case '\''f'\'': // float
  2311. fnumber = va_arg (args_copy, double);
  2312. break;
  2313. default:
  2314. break;
  2315. }
  2316. }
  2317. va_end (args_copy);
  2318. va_end (args);
  2319. return *str && number && fnumber;
  2320. }
  2321. '
  2322. # Test code for whether the C compiler supports C99 (body of main).
  2323. ac_c_conftest_c99_main='
  2324. // Check bool.
  2325. _Bool success = false;
  2326. success |= (argc != 0);
  2327. // Check restrict.
  2328. if (test_restrict ("String literal") == 0)
  2329. success = true;
  2330. char *restrict newvar = "Another string";
  2331. // Check varargs.
  2332. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2333. test_varargs_macros ();
  2334. // Check flexible array members.
  2335. struct incomplete_array *ia =
  2336. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2337. ia->datasize = 10;
  2338. for (int i = 0; i < ia->datasize; ++i)
  2339. ia->data[i] = i * 1.234;
  2340. // Check named initializers.
  2341. struct named_init ni = {
  2342. .number = 34,
  2343. .name = L"Test wide string",
  2344. .average = 543.34343,
  2345. };
  2346. ni.number = 58;
  2347. int dynamic_array[ni.number];
  2348. dynamic_array[0] = argv[0][0];
  2349. dynamic_array[ni.number - 1] = 543;
  2350. // work around unused variable warnings
  2351. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2352. || dynamic_array[ni.number - 1] != 543);
  2353. '
  2354. # Test code for whether the C compiler supports C11 (global declarations)
  2355. ac_c_conftest_c11_globals='
  2356. // Does the compiler advertise C11 conformance?
  2357. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2358. # error "Compiler does not advertise C11 conformance"
  2359. #endif
  2360. // Check _Alignas.
  2361. char _Alignas (double) aligned_as_double;
  2362. char _Alignas (0) no_special_alignment;
  2363. extern char aligned_as_int;
  2364. char _Alignas (0) _Alignas (int) aligned_as_int;
  2365. // Check _Alignof.
  2366. enum
  2367. {
  2368. int_alignment = _Alignof (int),
  2369. int_array_alignment = _Alignof (int[100]),
  2370. char_alignment = _Alignof (char)
  2371. };
  2372. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2373. // Check _Noreturn.
  2374. int _Noreturn does_not_return (void) { for (;;) continue; }
  2375. // Check _Static_assert.
  2376. struct test_static_assert
  2377. {
  2378. int x;
  2379. _Static_assert (sizeof (int) <= sizeof (long int),
  2380. "_Static_assert does not work in struct");
  2381. long int y;
  2382. };
  2383. // Check UTF-8 literals.
  2384. #define u8 syntax error!
  2385. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2386. // Check duplicate typedefs.
  2387. typedef long *long_ptr;
  2388. typedef long int *long_ptr;
  2389. typedef long_ptr long_ptr;
  2390. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2391. struct anonymous
  2392. {
  2393. union {
  2394. struct { int i; int j; };
  2395. struct { int k; long int l; } w;
  2396. };
  2397. int m;
  2398. } v1;
  2399. '
  2400. # Test code for whether the C compiler supports C11 (body of main).
  2401. ac_c_conftest_c11_main='
  2402. _Static_assert ((offsetof (struct anonymous, i)
  2403. == offsetof (struct anonymous, w.k)),
  2404. "Anonymous union alignment botch");
  2405. v1.i = 2;
  2406. v1.w.k = 5;
  2407. ok |= v1.i != 5;
  2408. '
  2409. # Test code for whether the C compiler supports C11 (complete).
  2410. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2411. ${ac_c_conftest_c99_globals}
  2412. ${ac_c_conftest_c11_globals}
  2413. int
  2414. main (int argc, char **argv)
  2415. {
  2416. int ok = 0;
  2417. ${ac_c_conftest_c89_main}
  2418. ${ac_c_conftest_c99_main}
  2419. ${ac_c_conftest_c11_main}
  2420. return ok;
  2421. }
  2422. "
  2423. # Test code for whether the C compiler supports C99 (complete).
  2424. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2425. ${ac_c_conftest_c99_globals}
  2426. int
  2427. main (int argc, char **argv)
  2428. {
  2429. int ok = 0;
  2430. ${ac_c_conftest_c89_main}
  2431. ${ac_c_conftest_c99_main}
  2432. return ok;
  2433. }
  2434. "
  2435. # Test code for whether the C compiler supports C89 (complete).
  2436. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2437. int
  2438. main (int argc, char **argv)
  2439. {
  2440. int ok = 0;
  2441. ${ac_c_conftest_c89_main}
  2442. return ok;
  2443. }
  2444. "
  2445. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2446. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2447. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2448. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2449. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2450. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2451. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2452. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2453. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2454. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2455. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2456. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2457. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  2458. as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
  2459. as_fn_append ac_func_c_list " fork HAVE_FORK"
  2460. as_fn_append ac_func_c_list " vfork HAVE_VFORK"
  2461. # Auxiliary files required by this configure script.
  2462. ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
  2463. # Locations in which to look for auxiliary files.
  2464. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2465. # Search for a directory containing all of the required auxiliary files,
  2466. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2467. # If we don't find one directory that contains all the files we need,
  2468. # we report the set of missing files from the *first* directory in
  2469. # $ac_aux_dir_candidates and give up.
  2470. ac_missing_aux_files=""
  2471. ac_first_candidate=:
  2472. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. as_found=false
  2475. for as_dir in $ac_aux_dir_candidates
  2476. do
  2477. IFS=$as_save_IFS
  2478. case $as_dir in #(((
  2479. '') as_dir=./ ;;
  2480. */) ;;
  2481. *) as_dir=$as_dir/ ;;
  2482. esac
  2483. as_found=:
  2484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2485. ac_aux_dir_found=yes
  2486. ac_install_sh=
  2487. for ac_aux in $ac_aux_files
  2488. do
  2489. # As a special case, if "install-sh" is required, that requirement
  2490. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2491. # and $ac_install_sh is set appropriately for whichever one is found.
  2492. if test x"$ac_aux" = x"install-sh"
  2493. then
  2494. if test -f "${as_dir}install-sh"; then
  2495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2496. ac_install_sh="${as_dir}install-sh -c"
  2497. elif test -f "${as_dir}install.sh"; then
  2498. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2499. ac_install_sh="${as_dir}install.sh -c"
  2500. elif test -f "${as_dir}shtool"; then
  2501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2502. ac_install_sh="${as_dir}shtool install -c"
  2503. else
  2504. ac_aux_dir_found=no
  2505. if $ac_first_candidate; then
  2506. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2507. else
  2508. break
  2509. fi
  2510. fi
  2511. else
  2512. if test -f "${as_dir}${ac_aux}"; then
  2513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2514. else
  2515. ac_aux_dir_found=no
  2516. if $ac_first_candidate; then
  2517. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2518. else
  2519. break
  2520. fi
  2521. fi
  2522. fi
  2523. done
  2524. if test "$ac_aux_dir_found" = yes; then
  2525. ac_aux_dir="$as_dir"
  2526. break
  2527. fi
  2528. ac_first_candidate=false
  2529. as_found=false
  2530. done
  2531. IFS=$as_save_IFS
  2532. if $as_found
  2533. then :
  2534. else $as_nop
  2535. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2536. fi
  2537. # These three variables are undocumented and unsupported,
  2538. # and are intended to be withdrawn in a future Autoconf release.
  2539. # They can cause serious problems if a builder's source tree is in a directory
  2540. # whose full name contains unusual characters.
  2541. if test -f "${ac_aux_dir}config.guess"; then
  2542. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2543. fi
  2544. if test -f "${ac_aux_dir}config.sub"; then
  2545. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2546. fi
  2547. if test -f "$ac_aux_dir/configure"; then
  2548. ac_configure="$SHELL ${ac_aux_dir}configure"
  2549. fi
  2550. # Check that the precious variables saved in the cache have kept the same
  2551. # value.
  2552. ac_cache_corrupted=false
  2553. for ac_var in $ac_precious_vars; do
  2554. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2555. eval ac_new_set=\$ac_env_${ac_var}_set
  2556. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2557. eval ac_new_val=\$ac_env_${ac_var}_value
  2558. case $ac_old_set,$ac_new_set in
  2559. set,)
  2560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2561. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2562. ac_cache_corrupted=: ;;
  2563. ,set)
  2564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2565. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2566. ac_cache_corrupted=: ;;
  2567. ,);;
  2568. *)
  2569. if test "x$ac_old_val" != "x$ac_new_val"; then
  2570. # differences in whitespace do not lead to failure.
  2571. ac_old_val_w=`echo x $ac_old_val`
  2572. ac_new_val_w=`echo x $ac_new_val`
  2573. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2575. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2576. ac_cache_corrupted=:
  2577. else
  2578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2579. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2580. eval $ac_var=\$ac_old_val
  2581. fi
  2582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2583. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2585. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2586. fi;;
  2587. esac
  2588. # Pass precious variables to config.status.
  2589. if test "$ac_new_set" = set; then
  2590. case $ac_new_val in
  2591. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2592. *) ac_arg=$ac_var=$ac_new_val ;;
  2593. esac
  2594. case " $ac_configure_args " in
  2595. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2596. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2597. esac
  2598. fi
  2599. done
  2600. if $ac_cache_corrupted; then
  2601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2602. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2604. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2605. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2606. and start over" "$LINENO" 5
  2607. fi
  2608. ## -------------------- ##
  2609. ## Main body of script. ##
  2610. ## -------------------- ##
  2611. ac_ext=c
  2612. ac_cpp='$CPP $CPPFLAGS'
  2613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2616. am__api_version='1.16'
  2617. # Find a good install program. We prefer a C program (faster),
  2618. # so one script is as good as another. But avoid the broken or
  2619. # incompatible versions:
  2620. # SysV /etc/install, /usr/sbin/install
  2621. # SunOS /usr/etc/install
  2622. # IRIX /sbin/install
  2623. # AIX /bin/install
  2624. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2625. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2626. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2627. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2628. # OS/2's system install, which has a completely different semantic
  2629. # ./install, which can be erroneously created by make from ./install.sh.
  2630. # Reject install programs that cannot install multiple files.
  2631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2632. printf %s "checking for a BSD-compatible install... " >&6; }
  2633. if test -z "$INSTALL"; then
  2634. if test ${ac_cv_path_install+y}
  2635. then :
  2636. printf %s "(cached) " >&6
  2637. else $as_nop
  2638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2639. for as_dir in $PATH
  2640. do
  2641. IFS=$as_save_IFS
  2642. case $as_dir in #(((
  2643. '') as_dir=./ ;;
  2644. */) ;;
  2645. *) as_dir=$as_dir/ ;;
  2646. esac
  2647. # Account for fact that we put trailing slashes in our PATH walk.
  2648. case $as_dir in #((
  2649. ./ | /[cC]/* | \
  2650. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2651. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2652. /usr/ucb/* ) ;;
  2653. *)
  2654. # OSF1 and SCO ODT 3.0 have their own names for install.
  2655. # Don't use installbsd from OSF since it installs stuff as root
  2656. # by default.
  2657. for ac_prog in ginstall scoinst install; do
  2658. for ac_exec_ext in '' $ac_executable_extensions; do
  2659. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2660. if test $ac_prog = install &&
  2661. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2662. # AIX install. It has an incompatible calling convention.
  2663. :
  2664. elif test $ac_prog = install &&
  2665. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2666. # program-specific install script used by HP pwplus--don't use.
  2667. :
  2668. else
  2669. rm -rf conftest.one conftest.two conftest.dir
  2670. echo one > conftest.one
  2671. echo two > conftest.two
  2672. mkdir conftest.dir
  2673. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2674. test -s conftest.one && test -s conftest.two &&
  2675. test -s conftest.dir/conftest.one &&
  2676. test -s conftest.dir/conftest.two
  2677. then
  2678. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2679. break 3
  2680. fi
  2681. fi
  2682. fi
  2683. done
  2684. done
  2685. ;;
  2686. esac
  2687. done
  2688. IFS=$as_save_IFS
  2689. rm -rf conftest.one conftest.two conftest.dir
  2690. fi
  2691. if test ${ac_cv_path_install+y}; then
  2692. INSTALL=$ac_cv_path_install
  2693. else
  2694. # As a last resort, use the slow shell script. Don't cache a
  2695. # value for INSTALL within a source directory, because that will
  2696. # break other packages using the cache if that directory is
  2697. # removed, or if the value is a relative name.
  2698. INSTALL=$ac_install_sh
  2699. fi
  2700. fi
  2701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2702. printf "%s\n" "$INSTALL" >&6; }
  2703. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2704. # It thinks the first close brace ends the variable substitution.
  2705. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2706. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2707. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2709. printf %s "checking whether build environment is sane... " >&6; }
  2710. # Reject unsafe characters in $srcdir or the absolute working directory
  2711. # name. Accept space and tab only in the latter.
  2712. am_lf='
  2713. '
  2714. case `pwd` in
  2715. *[\\\"\#\$\&\'\`$am_lf]*)
  2716. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2717. esac
  2718. case $srcdir in
  2719. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2720. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2721. esac
  2722. # Do 'set' in a subshell so we don't clobber the current shell's
  2723. # arguments. Must try -L first in case configure is actually a
  2724. # symlink; some systems play weird games with the mod time of symlinks
  2725. # (eg FreeBSD returns the mod time of the symlink's containing
  2726. # directory).
  2727. if (
  2728. am_has_slept=no
  2729. for am_try in 1 2; do
  2730. echo "timestamp, slept: $am_has_slept" > conftest.file
  2731. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2732. if test "$*" = "X"; then
  2733. # -L didn't work.
  2734. set X `ls -t "$srcdir/configure" conftest.file`
  2735. fi
  2736. if test "$*" != "X $srcdir/configure conftest.file" \
  2737. && test "$*" != "X conftest.file $srcdir/configure"; then
  2738. # If neither matched, then we have a broken ls. This can happen
  2739. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2740. # broken ls alias from the environment. This has actually
  2741. # happened. Such a system could not be considered "sane".
  2742. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2743. alias in your environment" "$LINENO" 5
  2744. fi
  2745. if test "$2" = conftest.file || test $am_try -eq 2; then
  2746. break
  2747. fi
  2748. # Just in case.
  2749. sleep 1
  2750. am_has_slept=yes
  2751. done
  2752. test "$2" = conftest.file
  2753. )
  2754. then
  2755. # Ok.
  2756. :
  2757. else
  2758. as_fn_error $? "newly created file is older than distributed files!
  2759. Check your system clock" "$LINENO" 5
  2760. fi
  2761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2762. printf "%s\n" "yes" >&6; }
  2763. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2764. # generated files are strictly newer.
  2765. am_sleep_pid=
  2766. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2767. ( sleep 1 ) &
  2768. am_sleep_pid=$!
  2769. fi
  2770. rm -f conftest.file
  2771. test "$program_prefix" != NONE &&
  2772. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2773. # Use a double $ so make ignores it.
  2774. test "$program_suffix" != NONE &&
  2775. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2776. # Double any \ or $.
  2777. # By default was `s,x,x', remove it if useless.
  2778. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2779. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2780. # Expand $ac_aux_dir to an absolute path.
  2781. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2782. if test x"${MISSING+set}" != xset; then
  2783. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2784. fi
  2785. # Use eval to expand $SHELL
  2786. if eval "$MISSING --is-lightweight"; then
  2787. am_missing_run="$MISSING "
  2788. else
  2789. am_missing_run=
  2790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2791. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2792. fi
  2793. if test x"${install_sh+set}" != xset; then
  2794. case $am_aux_dir in
  2795. *\ * | *\ *)
  2796. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2797. *)
  2798. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2799. esac
  2800. fi
  2801. # Installed binaries are usually stripped using 'strip' when the user
  2802. # run "make install-strip". However 'strip' might not be the right
  2803. # tool to use in cross-compilation environments, therefore Automake
  2804. # will honor the 'STRIP' environment variable to overrule this program.
  2805. if test "$cross_compiling" != no; then
  2806. if test -n "$ac_tool_prefix"; then
  2807. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2808. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2810. printf %s "checking for $ac_word... " >&6; }
  2811. if test ${ac_cv_prog_STRIP+y}
  2812. then :
  2813. printf %s "(cached) " >&6
  2814. else $as_nop
  2815. if test -n "$STRIP"; then
  2816. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. case $as_dir in #(((
  2823. '') as_dir=./ ;;
  2824. */) ;;
  2825. *) as_dir=$as_dir/ ;;
  2826. esac
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2829. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. fi
  2837. fi
  2838. STRIP=$ac_cv_prog_STRIP
  2839. if test -n "$STRIP"; then
  2840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2841. printf "%s\n" "$STRIP" >&6; }
  2842. else
  2843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. printf "%s\n" "no" >&6; }
  2845. fi
  2846. fi
  2847. if test -z "$ac_cv_prog_STRIP"; then
  2848. ac_ct_STRIP=$STRIP
  2849. # Extract the first word of "strip", so it can be a program name with args.
  2850. set dummy strip; ac_word=$2
  2851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. printf %s "checking for $ac_word... " >&6; }
  2853. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2854. then :
  2855. printf %s "(cached) " >&6
  2856. else $as_nop
  2857. if test -n "$ac_ct_STRIP"; then
  2858. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2859. else
  2860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2861. for as_dir in $PATH
  2862. do
  2863. IFS=$as_save_IFS
  2864. case $as_dir in #(((
  2865. '') as_dir=./ ;;
  2866. */) ;;
  2867. *) as_dir=$as_dir/ ;;
  2868. esac
  2869. for ac_exec_ext in '' $ac_executable_extensions; do
  2870. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2871. ac_cv_prog_ac_ct_STRIP="strip"
  2872. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2873. break 2
  2874. fi
  2875. done
  2876. done
  2877. IFS=$as_save_IFS
  2878. fi
  2879. fi
  2880. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2881. if test -n "$ac_ct_STRIP"; then
  2882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2883. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2884. else
  2885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2886. printf "%s\n" "no" >&6; }
  2887. fi
  2888. if test "x$ac_ct_STRIP" = x; then
  2889. STRIP=":"
  2890. else
  2891. case $cross_compiling:$ac_tool_warned in
  2892. yes:)
  2893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2894. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2895. ac_tool_warned=yes ;;
  2896. esac
  2897. STRIP=$ac_ct_STRIP
  2898. fi
  2899. else
  2900. STRIP="$ac_cv_prog_STRIP"
  2901. fi
  2902. fi
  2903. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2905. printf %s "checking for a race-free mkdir -p... " >&6; }
  2906. if test -z "$MKDIR_P"; then
  2907. if test ${ac_cv_path_mkdir+y}
  2908. then :
  2909. printf %s "(cached) " >&6
  2910. else $as_nop
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2913. do
  2914. IFS=$as_save_IFS
  2915. case $as_dir in #(((
  2916. '') as_dir=./ ;;
  2917. */) ;;
  2918. *) as_dir=$as_dir/ ;;
  2919. esac
  2920. for ac_prog in mkdir gmkdir; do
  2921. for ac_exec_ext in '' $ac_executable_extensions; do
  2922. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2923. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2924. 'mkdir ('*'coreutils) '* | \
  2925. 'BusyBox '* | \
  2926. 'mkdir (fileutils) '4.1*)
  2927. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2928. break 3;;
  2929. esac
  2930. done
  2931. done
  2932. done
  2933. IFS=$as_save_IFS
  2934. fi
  2935. test -d ./--version && rmdir ./--version
  2936. if test ${ac_cv_path_mkdir+y}; then
  2937. MKDIR_P="$ac_cv_path_mkdir -p"
  2938. else
  2939. # As a last resort, use the slow shell script. Don't cache a
  2940. # value for MKDIR_P within a source directory, because that will
  2941. # break other packages using the cache if that directory is
  2942. # removed, or if the value is a relative name.
  2943. MKDIR_P="$ac_install_sh -d"
  2944. fi
  2945. fi
  2946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2947. printf "%s\n" "$MKDIR_P" >&6; }
  2948. for ac_prog in gawk mawk nawk awk
  2949. do
  2950. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2951. set dummy $ac_prog; ac_word=$2
  2952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2953. printf %s "checking for $ac_word... " >&6; }
  2954. if test ${ac_cv_prog_AWK+y}
  2955. then :
  2956. printf %s "(cached) " >&6
  2957. else $as_nop
  2958. if test -n "$AWK"; then
  2959. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2960. else
  2961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2962. for as_dir in $PATH
  2963. do
  2964. IFS=$as_save_IFS
  2965. case $as_dir in #(((
  2966. '') as_dir=./ ;;
  2967. */) ;;
  2968. *) as_dir=$as_dir/ ;;
  2969. esac
  2970. for ac_exec_ext in '' $ac_executable_extensions; do
  2971. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2972. ac_cv_prog_AWK="$ac_prog"
  2973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2974. break 2
  2975. fi
  2976. done
  2977. done
  2978. IFS=$as_save_IFS
  2979. fi
  2980. fi
  2981. AWK=$ac_cv_prog_AWK
  2982. if test -n "$AWK"; then
  2983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2984. printf "%s\n" "$AWK" >&6; }
  2985. else
  2986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2987. printf "%s\n" "no" >&6; }
  2988. fi
  2989. test -n "$AWK" && break
  2990. done
  2991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2992. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2993. set x ${MAKE-make}
  2994. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2995. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  2996. then :
  2997. printf %s "(cached) " >&6
  2998. else $as_nop
  2999. cat >conftest.make <<\_ACEOF
  3000. SHELL = /bin/sh
  3001. all:
  3002. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3003. _ACEOF
  3004. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3005. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3006. *@@@%%%=?*=@@@%%%*)
  3007. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3008. *)
  3009. eval ac_cv_prog_make_${ac_make}_set=no;;
  3010. esac
  3011. rm -f conftest.make
  3012. fi
  3013. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3015. printf "%s\n" "yes" >&6; }
  3016. SET_MAKE=
  3017. else
  3018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3019. printf "%s\n" "no" >&6; }
  3020. SET_MAKE="MAKE=${MAKE-make}"
  3021. fi
  3022. rm -rf .tst 2>/dev/null
  3023. mkdir .tst 2>/dev/null
  3024. if test -d .tst; then
  3025. am__leading_dot=.
  3026. else
  3027. am__leading_dot=_
  3028. fi
  3029. rmdir .tst 2>/dev/null
  3030. # Check whether --enable-silent-rules was given.
  3031. if test ${enable_silent_rules+y}
  3032. then :
  3033. enableval=$enable_silent_rules;
  3034. fi
  3035. case $enable_silent_rules in # (((
  3036. yes) AM_DEFAULT_VERBOSITY=0;;
  3037. no) AM_DEFAULT_VERBOSITY=1;;
  3038. *) AM_DEFAULT_VERBOSITY=1;;
  3039. esac
  3040. am_make=${MAKE-make}
  3041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3042. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3043. if test ${am_cv_make_support_nested_variables+y}
  3044. then :
  3045. printf %s "(cached) " >&6
  3046. else $as_nop
  3047. if printf "%s\n" 'TRUE=$(BAR$(V))
  3048. BAR0=false
  3049. BAR1=true
  3050. V=1
  3051. am__doit:
  3052. @$(TRUE)
  3053. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3054. am_cv_make_support_nested_variables=yes
  3055. else
  3056. am_cv_make_support_nested_variables=no
  3057. fi
  3058. fi
  3059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3060. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3061. if test $am_cv_make_support_nested_variables = yes; then
  3062. AM_V='$(V)'
  3063. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3064. else
  3065. AM_V=$AM_DEFAULT_VERBOSITY
  3066. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3067. fi
  3068. AM_BACKSLASH='\'
  3069. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3070. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3071. # is not polluted with repeated "-I."
  3072. am__isrc=' -I$(srcdir)'
  3073. # test to see if srcdir already configured
  3074. if test -f $srcdir/config.status; then
  3075. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3076. fi
  3077. fi
  3078. # test whether we have cygpath
  3079. if test -z "$CYGPATH_W"; then
  3080. if (cygpath --version) >/dev/null 2>/dev/null; then
  3081. CYGPATH_W='cygpath -w'
  3082. else
  3083. CYGPATH_W=echo
  3084. fi
  3085. fi
  3086. # Define the identity of the package.
  3087. PACKAGE='file'
  3088. VERSION='5.43'
  3089. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3090. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3091. # Some tools Automake needs.
  3092. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3093. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3094. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3095. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3096. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3097. # For better backward compatibility. To be removed once Automake 1.9.x
  3098. # dies out for good. For more background, see:
  3099. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3100. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3101. mkdir_p='$(MKDIR_P)'
  3102. # We need awk for the "check" target (and possibly the TAP driver). The
  3103. # system "awk" is bad on some platforms.
  3104. # Always define AMTAR for backward compatibility. Yes, it's still used
  3105. # in the wild :-( We should find a proper way to deprecate it ...
  3106. AMTAR='$${TAR-tar}'
  3107. # We'll loop over all known methods to create a tar archive until one works.
  3108. _am_tools='gnutar pax cpio none'
  3109. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3110. # Variables for tags utilities; see am/tags.am
  3111. if test -z "$CTAGS"; then
  3112. CTAGS=ctags
  3113. fi
  3114. if test -z "$ETAGS"; then
  3115. ETAGS=etags
  3116. fi
  3117. if test -z "$CSCOPE"; then
  3118. CSCOPE=cscope
  3119. fi
  3120. # POSIX will say in a future version that running "rm -f" with no argument
  3121. # is OK; and we want to be able to make that assumption in our Makefile
  3122. # recipes. So use an aggressive probe to check that the usage we want is
  3123. # actually supported "in the wild" to an acceptable degree.
  3124. # See automake bug#10828.
  3125. # To make any issue more visible, cause the running configure to be aborted
  3126. # by default if the 'rm' program in use doesn't match our expectations; the
  3127. # user can still override this though.
  3128. if rm -f && rm -fr && rm -rf; then : OK; else
  3129. cat >&2 <<'END'
  3130. Oops!
  3131. Your 'rm' program seems unable to run without file operands specified
  3132. on the command line, even when the '-f' option is present. This is contrary
  3133. to the behaviour of most rm programs out there, and not conforming with
  3134. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3135. Please tell bug-automake@gnu.org about your system, including the value
  3136. of your $PATH and any error possibly output before this message. This
  3137. can help us improve future automake versions.
  3138. END
  3139. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3140. echo 'Configuration will proceed anyway, since you have set the' >&2
  3141. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3142. echo >&2
  3143. else
  3144. cat >&2 <<'END'
  3145. Aborting the configuration process, to ensure you take notice of the issue.
  3146. You can download and install GNU coreutils to get an 'rm' implementation
  3147. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3148. If you want to complete the configuration process using your problematic
  3149. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3150. to "yes", and re-run configure.
  3151. END
  3152. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3153. fi
  3154. fi
  3155. # Check whether --enable-silent-rules was given.
  3156. if test ${enable_silent_rules+y}
  3157. then :
  3158. enableval=$enable_silent_rules;
  3159. fi
  3160. case $enable_silent_rules in # (((
  3161. yes) AM_DEFAULT_VERBOSITY=0;;
  3162. no) AM_DEFAULT_VERBOSITY=1;;
  3163. *) AM_DEFAULT_VERBOSITY=0;;
  3164. esac
  3165. am_make=${MAKE-make}
  3166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3167. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3168. if test ${am_cv_make_support_nested_variables+y}
  3169. then :
  3170. printf %s "(cached) " >&6
  3171. else $as_nop
  3172. if printf "%s\n" 'TRUE=$(BAR$(V))
  3173. BAR0=false
  3174. BAR1=true
  3175. V=1
  3176. am__doit:
  3177. @$(TRUE)
  3178. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3179. am_cv_make_support_nested_variables=yes
  3180. else
  3181. am_cv_make_support_nested_variables=no
  3182. fi
  3183. fi
  3184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3185. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3186. if test $am_cv_make_support_nested_variables = yes; then
  3187. AM_V='$(V)'
  3188. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3189. else
  3190. AM_V=$AM_DEFAULT_VERBOSITY
  3191. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3192. fi
  3193. AM_BACKSLASH='\'
  3194. ac_config_headers="$ac_config_headers config.h"
  3195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  3196. printf %s "checking for builtin ELF support... " >&6; }
  3197. # Check whether --enable-elf was given.
  3198. if test ${enable_elf+y}
  3199. then :
  3200. enableval=$enable_elf; if test "${enableval}" = yes; then
  3201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3202. printf "%s\n" "yes" >&6; }
  3203. printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
  3204. else
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3206. printf "%s\n" "no" >&6; }
  3207. fi
  3208. else $as_nop
  3209. # enable by default
  3210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3211. printf "%s\n" "yes" >&6; }
  3212. printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
  3213. fi
  3214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  3215. printf %s "checking for ELF core file support... " >&6; }
  3216. # Check whether --enable-elf-core was given.
  3217. if test ${enable_elf_core+y}
  3218. then :
  3219. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  3220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3221. printf "%s\n" "yes" >&6; }
  3222. printf "%s\n" "#define ELFCORE 1" >>confdefs.h
  3223. else
  3224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3225. printf "%s\n" "no" >&6; }
  3226. fi
  3227. else $as_nop
  3228. # enable by default
  3229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3230. printf "%s\n" "yes" >&6; }
  3231. printf "%s\n" "#define ELFCORE 1" >>confdefs.h
  3232. fi
  3233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  3234. printf %s "checking for zlib support... " >&6; }
  3235. # Check whether --enable-zlib was given.
  3236. if test ${enable_zlib+y}
  3237. then :
  3238. enableval=$enable_zlib;
  3239. fi
  3240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  3241. printf "%s\n" "$enable_zlib" >&6; }
  3242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
  3243. printf %s "checking for bzlib support... " >&6; }
  3244. # Check whether --enable-bzlib was given.
  3245. if test ${enable_bzlib+y}
  3246. then :
  3247. enableval=$enable_bzlib;
  3248. fi
  3249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
  3250. printf "%s\n" "$enable_bzlib" >&6; }
  3251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
  3252. printf %s "checking for xzlib support... " >&6; }
  3253. # Check whether --enable-xzlib was given.
  3254. if test ${enable_xzlib+y}
  3255. then :
  3256. enableval=$enable_xzlib;
  3257. fi
  3258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
  3259. printf "%s\n" "$enable_xzlib" >&6; }
  3260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  3261. printf %s "checking for libseccomp support... " >&6; }
  3262. # Check whether --enable-libseccomp was given.
  3263. if test ${enable_libseccomp+y}
  3264. then :
  3265. enableval=$enable_libseccomp;
  3266. fi
  3267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  3268. printf "%s\n" "$enable_libseccomp" >&6; }
  3269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  3270. printf %s "checking for file formats in man section 5... " >&6; }
  3271. # Check whether --enable-fsect-man5 was given.
  3272. if test ${enable_fsect_man5+y}
  3273. then :
  3274. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  3275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3276. printf "%s\n" "yes" >&6; }
  3277. fsect=5
  3278. else
  3279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3280. printf "%s\n" "no" >&6; }
  3281. fsect=4
  3282. fi
  3283. else $as_nop
  3284. # disable by default
  3285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3286. printf "%s\n" "no" >&6; }
  3287. fsect=4
  3288. fi
  3289. # Make sure we can run config.sub.
  3290. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3291. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3293. printf %s "checking build system type... " >&6; }
  3294. if test ${ac_cv_build+y}
  3295. then :
  3296. printf %s "(cached) " >&6
  3297. else $as_nop
  3298. ac_build_alias=$build_alias
  3299. test "x$ac_build_alias" = x &&
  3300. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3301. test "x$ac_build_alias" = x &&
  3302. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3303. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3304. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3305. fi
  3306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3307. printf "%s\n" "$ac_cv_build" >&6; }
  3308. case $ac_cv_build in
  3309. *-*-*) ;;
  3310. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3311. esac
  3312. build=$ac_cv_build
  3313. ac_save_IFS=$IFS; IFS='-'
  3314. set x $ac_cv_build
  3315. shift
  3316. build_cpu=$1
  3317. build_vendor=$2
  3318. shift; shift
  3319. # Remember, the first character of IFS is used to create $*,
  3320. # except with old shells:
  3321. build_os=$*
  3322. IFS=$ac_save_IFS
  3323. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3325. printf %s "checking host system type... " >&6; }
  3326. if test ${ac_cv_host+y}
  3327. then :
  3328. printf %s "(cached) " >&6
  3329. else $as_nop
  3330. if test "x$host_alias" = x; then
  3331. ac_cv_host=$ac_cv_build
  3332. else
  3333. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3334. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3335. fi
  3336. fi
  3337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3338. printf "%s\n" "$ac_cv_host" >&6; }
  3339. case $ac_cv_host in
  3340. *-*-*) ;;
  3341. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3342. esac
  3343. host=$ac_cv_host
  3344. ac_save_IFS=$IFS; IFS='-'
  3345. set x $ac_cv_host
  3346. shift
  3347. host_cpu=$1
  3348. host_vendor=$2
  3349. shift; shift
  3350. # Remember, the first character of IFS is used to create $*,
  3351. # except with old shells:
  3352. host_os=$*
  3353. IFS=$ac_save_IFS
  3354. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3355. case "$host_os" in
  3356. mingw32*)
  3357. MINGW=1
  3358. ;;
  3359. *)
  3360. MINGW=0
  3361. ;;
  3362. esac
  3363. if test "$MINGW" = 1; then
  3364. MINGW_TRUE=
  3365. MINGW_FALSE='#'
  3366. else
  3367. MINGW_TRUE='#'
  3368. MINGW_FALSE=
  3369. fi
  3370. pkgdatadir='$(datadir)/misc'
  3371. if test x$fsect = x5; then
  3372. FSECT5_TRUE=
  3373. FSECT5_FALSE='#'
  3374. else
  3375. FSECT5_TRUE='#'
  3376. FSECT5_FALSE=
  3377. fi
  3378. ac_ext=c
  3379. ac_cpp='$CPP $CPPFLAGS'
  3380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3383. if test -n "$ac_tool_prefix"; then
  3384. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3385. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3387. printf %s "checking for $ac_word... " >&6; }
  3388. if test ${ac_cv_prog_CC+y}
  3389. then :
  3390. printf %s "(cached) " >&6
  3391. else $as_nop
  3392. if test -n "$CC"; then
  3393. ac_cv_prog_CC="$CC" # Let the user override the test.
  3394. else
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH
  3397. do
  3398. IFS=$as_save_IFS
  3399. case $as_dir in #(((
  3400. '') as_dir=./ ;;
  3401. */) ;;
  3402. *) as_dir=$as_dir/ ;;
  3403. esac
  3404. for ac_exec_ext in '' $ac_executable_extensions; do
  3405. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3406. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3408. break 2
  3409. fi
  3410. done
  3411. done
  3412. IFS=$as_save_IFS
  3413. fi
  3414. fi
  3415. CC=$ac_cv_prog_CC
  3416. if test -n "$CC"; then
  3417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3418. printf "%s\n" "$CC" >&6; }
  3419. else
  3420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3421. printf "%s\n" "no" >&6; }
  3422. fi
  3423. fi
  3424. if test -z "$ac_cv_prog_CC"; then
  3425. ac_ct_CC=$CC
  3426. # Extract the first word of "gcc", so it can be a program name with args.
  3427. set dummy gcc; ac_word=$2
  3428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3429. printf %s "checking for $ac_word... " >&6; }
  3430. if test ${ac_cv_prog_ac_ct_CC+y}
  3431. then :
  3432. printf %s "(cached) " >&6
  3433. else $as_nop
  3434. if test -n "$ac_ct_CC"; then
  3435. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3436. else
  3437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3438. for as_dir in $PATH
  3439. do
  3440. IFS=$as_save_IFS
  3441. case $as_dir in #(((
  3442. '') as_dir=./ ;;
  3443. */) ;;
  3444. *) as_dir=$as_dir/ ;;
  3445. esac
  3446. for ac_exec_ext in '' $ac_executable_extensions; do
  3447. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3448. ac_cv_prog_ac_ct_CC="gcc"
  3449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3450. break 2
  3451. fi
  3452. done
  3453. done
  3454. IFS=$as_save_IFS
  3455. fi
  3456. fi
  3457. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3458. if test -n "$ac_ct_CC"; then
  3459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3460. printf "%s\n" "$ac_ct_CC" >&6; }
  3461. else
  3462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3463. printf "%s\n" "no" >&6; }
  3464. fi
  3465. if test "x$ac_ct_CC" = x; then
  3466. CC=""
  3467. else
  3468. case $cross_compiling:$ac_tool_warned in
  3469. yes:)
  3470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3471. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3472. ac_tool_warned=yes ;;
  3473. esac
  3474. CC=$ac_ct_CC
  3475. fi
  3476. else
  3477. CC="$ac_cv_prog_CC"
  3478. fi
  3479. if test -z "$CC"; then
  3480. if test -n "$ac_tool_prefix"; then
  3481. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3482. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3484. printf %s "checking for $ac_word... " >&6; }
  3485. if test ${ac_cv_prog_CC+y}
  3486. then :
  3487. printf %s "(cached) " >&6
  3488. else $as_nop
  3489. if test -n "$CC"; then
  3490. ac_cv_prog_CC="$CC" # Let the user override the test.
  3491. else
  3492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3493. for as_dir in $PATH
  3494. do
  3495. IFS=$as_save_IFS
  3496. case $as_dir in #(((
  3497. '') as_dir=./ ;;
  3498. */) ;;
  3499. *) as_dir=$as_dir/ ;;
  3500. esac
  3501. for ac_exec_ext in '' $ac_executable_extensions; do
  3502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3503. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3505. break 2
  3506. fi
  3507. done
  3508. done
  3509. IFS=$as_save_IFS
  3510. fi
  3511. fi
  3512. CC=$ac_cv_prog_CC
  3513. if test -n "$CC"; then
  3514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3515. printf "%s\n" "$CC" >&6; }
  3516. else
  3517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3518. printf "%s\n" "no" >&6; }
  3519. fi
  3520. fi
  3521. fi
  3522. if test -z "$CC"; then
  3523. # Extract the first word of "cc", so it can be a program name with args.
  3524. set dummy cc; ac_word=$2
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3526. printf %s "checking for $ac_word... " >&6; }
  3527. if test ${ac_cv_prog_CC+y}
  3528. then :
  3529. printf %s "(cached) " >&6
  3530. else $as_nop
  3531. if test -n "$CC"; then
  3532. ac_cv_prog_CC="$CC" # Let the user override the test.
  3533. else
  3534. ac_prog_rejected=no
  3535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3536. for as_dir in $PATH
  3537. do
  3538. IFS=$as_save_IFS
  3539. case $as_dir in #(((
  3540. '') as_dir=./ ;;
  3541. */) ;;
  3542. *) as_dir=$as_dir/ ;;
  3543. esac
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3546. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3547. ac_prog_rejected=yes
  3548. continue
  3549. fi
  3550. ac_cv_prog_CC="cc"
  3551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3552. break 2
  3553. fi
  3554. done
  3555. done
  3556. IFS=$as_save_IFS
  3557. if test $ac_prog_rejected = yes; then
  3558. # We found a bogon in the path, so make sure we never use it.
  3559. set dummy $ac_cv_prog_CC
  3560. shift
  3561. if test $# != 0; then
  3562. # We chose a different compiler from the bogus one.
  3563. # However, it has the same basename, so the bogon will be chosen
  3564. # first if we set CC to just the basename; use the full file name.
  3565. shift
  3566. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3567. fi
  3568. fi
  3569. fi
  3570. fi
  3571. CC=$ac_cv_prog_CC
  3572. if test -n "$CC"; then
  3573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3574. printf "%s\n" "$CC" >&6; }
  3575. else
  3576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3577. printf "%s\n" "no" >&6; }
  3578. fi
  3579. fi
  3580. if test -z "$CC"; then
  3581. if test -n "$ac_tool_prefix"; then
  3582. for ac_prog in cl.exe
  3583. do
  3584. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3585. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3587. printf %s "checking for $ac_word... " >&6; }
  3588. if test ${ac_cv_prog_CC+y}
  3589. then :
  3590. printf %s "(cached) " >&6
  3591. else $as_nop
  3592. if test -n "$CC"; then
  3593. ac_cv_prog_CC="$CC" # Let the user override the test.
  3594. else
  3595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3596. for as_dir in $PATH
  3597. do
  3598. IFS=$as_save_IFS
  3599. case $as_dir in #(((
  3600. '') as_dir=./ ;;
  3601. */) ;;
  3602. *) as_dir=$as_dir/ ;;
  3603. esac
  3604. for ac_exec_ext in '' $ac_executable_extensions; do
  3605. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3606. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3607. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3608. break 2
  3609. fi
  3610. done
  3611. done
  3612. IFS=$as_save_IFS
  3613. fi
  3614. fi
  3615. CC=$ac_cv_prog_CC
  3616. if test -n "$CC"; then
  3617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3618. printf "%s\n" "$CC" >&6; }
  3619. else
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3621. printf "%s\n" "no" >&6; }
  3622. fi
  3623. test -n "$CC" && break
  3624. done
  3625. fi
  3626. if test -z "$CC"; then
  3627. ac_ct_CC=$CC
  3628. for ac_prog in cl.exe
  3629. do
  3630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3631. set dummy $ac_prog; ac_word=$2
  3632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3633. printf %s "checking for $ac_word... " >&6; }
  3634. if test ${ac_cv_prog_ac_ct_CC+y}
  3635. then :
  3636. printf %s "(cached) " >&6
  3637. else $as_nop
  3638. if test -n "$ac_ct_CC"; then
  3639. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3640. else
  3641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3642. for as_dir in $PATH
  3643. do
  3644. IFS=$as_save_IFS
  3645. case $as_dir in #(((
  3646. '') as_dir=./ ;;
  3647. */) ;;
  3648. *) as_dir=$as_dir/ ;;
  3649. esac
  3650. for ac_exec_ext in '' $ac_executable_extensions; do
  3651. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3652. ac_cv_prog_ac_ct_CC="$ac_prog"
  3653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3654. break 2
  3655. fi
  3656. done
  3657. done
  3658. IFS=$as_save_IFS
  3659. fi
  3660. fi
  3661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3662. if test -n "$ac_ct_CC"; then
  3663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3664. printf "%s\n" "$ac_ct_CC" >&6; }
  3665. else
  3666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3667. printf "%s\n" "no" >&6; }
  3668. fi
  3669. test -n "$ac_ct_CC" && break
  3670. done
  3671. if test "x$ac_ct_CC" = x; then
  3672. CC=""
  3673. else
  3674. case $cross_compiling:$ac_tool_warned in
  3675. yes:)
  3676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3677. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3678. ac_tool_warned=yes ;;
  3679. esac
  3680. CC=$ac_ct_CC
  3681. fi
  3682. fi
  3683. fi
  3684. if test -z "$CC"; then
  3685. if test -n "$ac_tool_prefix"; then
  3686. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3687. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3689. printf %s "checking for $ac_word... " >&6; }
  3690. if test ${ac_cv_prog_CC+y}
  3691. then :
  3692. printf %s "(cached) " >&6
  3693. else $as_nop
  3694. if test -n "$CC"; then
  3695. ac_cv_prog_CC="$CC" # Let the user override the test.
  3696. else
  3697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3698. for as_dir in $PATH
  3699. do
  3700. IFS=$as_save_IFS
  3701. case $as_dir in #(((
  3702. '') as_dir=./ ;;
  3703. */) ;;
  3704. *) as_dir=$as_dir/ ;;
  3705. esac
  3706. for ac_exec_ext in '' $ac_executable_extensions; do
  3707. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3708. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3709. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3710. break 2
  3711. fi
  3712. done
  3713. done
  3714. IFS=$as_save_IFS
  3715. fi
  3716. fi
  3717. CC=$ac_cv_prog_CC
  3718. if test -n "$CC"; then
  3719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3720. printf "%s\n" "$CC" >&6; }
  3721. else
  3722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3723. printf "%s\n" "no" >&6; }
  3724. fi
  3725. fi
  3726. if test -z "$ac_cv_prog_CC"; then
  3727. ac_ct_CC=$CC
  3728. # Extract the first word of "clang", so it can be a program name with args.
  3729. set dummy clang; ac_word=$2
  3730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3731. printf %s "checking for $ac_word... " >&6; }
  3732. if test ${ac_cv_prog_ac_ct_CC+y}
  3733. then :
  3734. printf %s "(cached) " >&6
  3735. else $as_nop
  3736. if test -n "$ac_ct_CC"; then
  3737. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3738. else
  3739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740. for as_dir in $PATH
  3741. do
  3742. IFS=$as_save_IFS
  3743. case $as_dir in #(((
  3744. '') as_dir=./ ;;
  3745. */) ;;
  3746. *) as_dir=$as_dir/ ;;
  3747. esac
  3748. for ac_exec_ext in '' $ac_executable_extensions; do
  3749. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3750. ac_cv_prog_ac_ct_CC="clang"
  3751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3752. break 2
  3753. fi
  3754. done
  3755. done
  3756. IFS=$as_save_IFS
  3757. fi
  3758. fi
  3759. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3760. if test -n "$ac_ct_CC"; then
  3761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3762. printf "%s\n" "$ac_ct_CC" >&6; }
  3763. else
  3764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3765. printf "%s\n" "no" >&6; }
  3766. fi
  3767. if test "x$ac_ct_CC" = x; then
  3768. CC=""
  3769. else
  3770. case $cross_compiling:$ac_tool_warned in
  3771. yes:)
  3772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3773. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3774. ac_tool_warned=yes ;;
  3775. esac
  3776. CC=$ac_ct_CC
  3777. fi
  3778. else
  3779. CC="$ac_cv_prog_CC"
  3780. fi
  3781. fi
  3782. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3783. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3784. as_fn_error $? "no acceptable C compiler found in \$PATH
  3785. See \`config.log' for more details" "$LINENO" 5; }
  3786. # Provide some information about the compiler.
  3787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3788. set X $ac_compile
  3789. ac_compiler=$2
  3790. for ac_option in --version -v -V -qversion -version; do
  3791. { { ac_try="$ac_compiler $ac_option >&5"
  3792. case "(($ac_try" in
  3793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3794. *) ac_try_echo=$ac_try;;
  3795. esac
  3796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3797. printf "%s\n" "$ac_try_echo"; } >&5
  3798. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3799. ac_status=$?
  3800. if test -s conftest.err; then
  3801. sed '10a\
  3802. ... rest of stderr output deleted ...
  3803. 10q' conftest.err >conftest.er1
  3804. cat conftest.er1 >&5
  3805. fi
  3806. rm -f conftest.er1 conftest.err
  3807. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3808. test $ac_status = 0; }
  3809. done
  3810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3811. /* end confdefs.h. */
  3812. int
  3813. main (void)
  3814. {
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. ac_clean_files_save=$ac_clean_files
  3820. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3821. # Try to create an executable without -o first, disregard a.out.
  3822. # It will help us diagnose broken compilers, and finding out an intuition
  3823. # of exeext.
  3824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3825. printf %s "checking whether the C compiler works... " >&6; }
  3826. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3827. # The possible output files:
  3828. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3829. ac_rmfiles=
  3830. for ac_file in $ac_files
  3831. do
  3832. case $ac_file in
  3833. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3834. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3835. esac
  3836. done
  3837. rm -f $ac_rmfiles
  3838. if { { ac_try="$ac_link_default"
  3839. case "(($ac_try" in
  3840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3841. *) ac_try_echo=$ac_try;;
  3842. esac
  3843. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3844. printf "%s\n" "$ac_try_echo"; } >&5
  3845. (eval "$ac_link_default") 2>&5
  3846. ac_status=$?
  3847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3848. test $ac_status = 0; }
  3849. then :
  3850. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3851. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3852. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3853. # so that the user can short-circuit this test for compilers unknown to
  3854. # Autoconf.
  3855. for ac_file in $ac_files ''
  3856. do
  3857. test -f "$ac_file" || continue
  3858. case $ac_file in
  3859. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3860. ;;
  3861. [ab].out )
  3862. # We found the default executable, but exeext='' is most
  3863. # certainly right.
  3864. break;;
  3865. *.* )
  3866. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3867. then :; else
  3868. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3869. fi
  3870. # We set ac_cv_exeext here because the later test for it is not
  3871. # safe: cross compilers may not add the suffix if given an `-o'
  3872. # argument, so we may need to know it at that point already.
  3873. # Even if this section looks crufty: it has the advantage of
  3874. # actually working.
  3875. break;;
  3876. * )
  3877. break;;
  3878. esac
  3879. done
  3880. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3881. else $as_nop
  3882. ac_file=''
  3883. fi
  3884. if test -z "$ac_file"
  3885. then :
  3886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3887. printf "%s\n" "no" >&6; }
  3888. printf "%s\n" "$as_me: failed program was:" >&5
  3889. sed 's/^/| /' conftest.$ac_ext >&5
  3890. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3891. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3892. as_fn_error 77 "C compiler cannot create executables
  3893. See \`config.log' for more details" "$LINENO" 5; }
  3894. else $as_nop
  3895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3896. printf "%s\n" "yes" >&6; }
  3897. fi
  3898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3899. printf %s "checking for C compiler default output file name... " >&6; }
  3900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3901. printf "%s\n" "$ac_file" >&6; }
  3902. ac_exeext=$ac_cv_exeext
  3903. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3904. ac_clean_files=$ac_clean_files_save
  3905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3906. printf %s "checking for suffix of executables... " >&6; }
  3907. if { { ac_try="$ac_link"
  3908. case "(($ac_try" in
  3909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3910. *) ac_try_echo=$ac_try;;
  3911. esac
  3912. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3913. printf "%s\n" "$ac_try_echo"; } >&5
  3914. (eval "$ac_link") 2>&5
  3915. ac_status=$?
  3916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3917. test $ac_status = 0; }
  3918. then :
  3919. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3920. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3921. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3922. # `rm'.
  3923. for ac_file in conftest.exe conftest conftest.*; do
  3924. test -f "$ac_file" || continue
  3925. case $ac_file in
  3926. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3927. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3928. break;;
  3929. * ) break;;
  3930. esac
  3931. done
  3932. else $as_nop
  3933. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3934. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3935. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3936. See \`config.log' for more details" "$LINENO" 5; }
  3937. fi
  3938. rm -f conftest conftest$ac_cv_exeext
  3939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3940. printf "%s\n" "$ac_cv_exeext" >&6; }
  3941. rm -f conftest.$ac_ext
  3942. EXEEXT=$ac_cv_exeext
  3943. ac_exeext=$EXEEXT
  3944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3945. /* end confdefs.h. */
  3946. #include <stdio.h>
  3947. int
  3948. main (void)
  3949. {
  3950. FILE *f = fopen ("conftest.out", "w");
  3951. return ferror (f) || fclose (f) != 0;
  3952. ;
  3953. return 0;
  3954. }
  3955. _ACEOF
  3956. ac_clean_files="$ac_clean_files conftest.out"
  3957. # Check that the compiler produces executables we can run. If not, either
  3958. # the compiler is broken, or we cross compile.
  3959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3960. printf %s "checking whether we are cross compiling... " >&6; }
  3961. if test "$cross_compiling" != yes; then
  3962. { { ac_try="$ac_link"
  3963. case "(($ac_try" in
  3964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3965. *) ac_try_echo=$ac_try;;
  3966. esac
  3967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3968. printf "%s\n" "$ac_try_echo"; } >&5
  3969. (eval "$ac_link") 2>&5
  3970. ac_status=$?
  3971. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3972. test $ac_status = 0; }
  3973. if { ac_try='./conftest$ac_cv_exeext'
  3974. { { case "(($ac_try" in
  3975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3976. *) ac_try_echo=$ac_try;;
  3977. esac
  3978. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3979. printf "%s\n" "$ac_try_echo"; } >&5
  3980. (eval "$ac_try") 2>&5
  3981. ac_status=$?
  3982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3983. test $ac_status = 0; }; }; then
  3984. cross_compiling=no
  3985. else
  3986. if test "$cross_compiling" = maybe; then
  3987. cross_compiling=yes
  3988. else
  3989. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3990. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3991. as_fn_error 77 "cannot run C compiled programs.
  3992. If you meant to cross compile, use \`--host'.
  3993. See \`config.log' for more details" "$LINENO" 5; }
  3994. fi
  3995. fi
  3996. fi
  3997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3998. printf "%s\n" "$cross_compiling" >&6; }
  3999. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4000. ac_clean_files=$ac_clean_files_save
  4001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4002. printf %s "checking for suffix of object files... " >&6; }
  4003. if test ${ac_cv_objext+y}
  4004. then :
  4005. printf %s "(cached) " >&6
  4006. else $as_nop
  4007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4008. /* end confdefs.h. */
  4009. int
  4010. main (void)
  4011. {
  4012. ;
  4013. return 0;
  4014. }
  4015. _ACEOF
  4016. rm -f conftest.o conftest.obj
  4017. if { { ac_try="$ac_compile"
  4018. case "(($ac_try" in
  4019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4020. *) ac_try_echo=$ac_try;;
  4021. esac
  4022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4023. printf "%s\n" "$ac_try_echo"; } >&5
  4024. (eval "$ac_compile") 2>&5
  4025. ac_status=$?
  4026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4027. test $ac_status = 0; }
  4028. then :
  4029. for ac_file in conftest.o conftest.obj conftest.*; do
  4030. test -f "$ac_file" || continue;
  4031. case $ac_file in
  4032. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4033. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4034. break;;
  4035. esac
  4036. done
  4037. else $as_nop
  4038. printf "%s\n" "$as_me: failed program was:" >&5
  4039. sed 's/^/| /' conftest.$ac_ext >&5
  4040. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4041. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4042. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4043. See \`config.log' for more details" "$LINENO" 5; }
  4044. fi
  4045. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4046. fi
  4047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4048. printf "%s\n" "$ac_cv_objext" >&6; }
  4049. OBJEXT=$ac_cv_objext
  4050. ac_objext=$OBJEXT
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4052. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4053. if test ${ac_cv_c_compiler_gnu+y}
  4054. then :
  4055. printf %s "(cached) " >&6
  4056. else $as_nop
  4057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4058. /* end confdefs.h. */
  4059. int
  4060. main (void)
  4061. {
  4062. #ifndef __GNUC__
  4063. choke me
  4064. #endif
  4065. ;
  4066. return 0;
  4067. }
  4068. _ACEOF
  4069. if ac_fn_c_try_compile "$LINENO"
  4070. then :
  4071. ac_compiler_gnu=yes
  4072. else $as_nop
  4073. ac_compiler_gnu=no
  4074. fi
  4075. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4076. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4077. fi
  4078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4079. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4081. if test $ac_compiler_gnu = yes; then
  4082. GCC=yes
  4083. else
  4084. GCC=
  4085. fi
  4086. ac_test_CFLAGS=${CFLAGS+y}
  4087. ac_save_CFLAGS=$CFLAGS
  4088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4089. printf %s "checking whether $CC accepts -g... " >&6; }
  4090. if test ${ac_cv_prog_cc_g+y}
  4091. then :
  4092. printf %s "(cached) " >&6
  4093. else $as_nop
  4094. ac_save_c_werror_flag=$ac_c_werror_flag
  4095. ac_c_werror_flag=yes
  4096. ac_cv_prog_cc_g=no
  4097. CFLAGS="-g"
  4098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4099. /* end confdefs.h. */
  4100. int
  4101. main (void)
  4102. {
  4103. ;
  4104. return 0;
  4105. }
  4106. _ACEOF
  4107. if ac_fn_c_try_compile "$LINENO"
  4108. then :
  4109. ac_cv_prog_cc_g=yes
  4110. else $as_nop
  4111. CFLAGS=""
  4112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4113. /* end confdefs.h. */
  4114. int
  4115. main (void)
  4116. {
  4117. ;
  4118. return 0;
  4119. }
  4120. _ACEOF
  4121. if ac_fn_c_try_compile "$LINENO"
  4122. then :
  4123. else $as_nop
  4124. ac_c_werror_flag=$ac_save_c_werror_flag
  4125. CFLAGS="-g"
  4126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4127. /* end confdefs.h. */
  4128. int
  4129. main (void)
  4130. {
  4131. ;
  4132. return 0;
  4133. }
  4134. _ACEOF
  4135. if ac_fn_c_try_compile "$LINENO"
  4136. then :
  4137. ac_cv_prog_cc_g=yes
  4138. fi
  4139. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4140. fi
  4141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4142. fi
  4143. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4144. ac_c_werror_flag=$ac_save_c_werror_flag
  4145. fi
  4146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4147. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4148. if test $ac_test_CFLAGS; then
  4149. CFLAGS=$ac_save_CFLAGS
  4150. elif test $ac_cv_prog_cc_g = yes; then
  4151. if test "$GCC" = yes; then
  4152. CFLAGS="-g -O2"
  4153. else
  4154. CFLAGS="-g"
  4155. fi
  4156. else
  4157. if test "$GCC" = yes; then
  4158. CFLAGS="-O2"
  4159. else
  4160. CFLAGS=
  4161. fi
  4162. fi
  4163. ac_prog_cc_stdc=no
  4164. if test x$ac_prog_cc_stdc = xno
  4165. then :
  4166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4167. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4168. if test ${ac_cv_prog_cc_c11+y}
  4169. then :
  4170. printf %s "(cached) " >&6
  4171. else $as_nop
  4172. ac_cv_prog_cc_c11=no
  4173. ac_save_CC=$CC
  4174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4175. /* end confdefs.h. */
  4176. $ac_c_conftest_c11_program
  4177. _ACEOF
  4178. for ac_arg in '' -std=gnu11
  4179. do
  4180. CC="$ac_save_CC $ac_arg"
  4181. if ac_fn_c_try_compile "$LINENO"
  4182. then :
  4183. ac_cv_prog_cc_c11=$ac_arg
  4184. fi
  4185. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4186. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4187. done
  4188. rm -f conftest.$ac_ext
  4189. CC=$ac_save_CC
  4190. fi
  4191. if test "x$ac_cv_prog_cc_c11" = xno
  4192. then :
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4194. printf "%s\n" "unsupported" >&6; }
  4195. else $as_nop
  4196. if test "x$ac_cv_prog_cc_c11" = x
  4197. then :
  4198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4199. printf "%s\n" "none needed" >&6; }
  4200. else $as_nop
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4202. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4203. CC="$CC $ac_cv_prog_cc_c11"
  4204. fi
  4205. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4206. ac_prog_cc_stdc=c11
  4207. fi
  4208. fi
  4209. if test x$ac_prog_cc_stdc = xno
  4210. then :
  4211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4212. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4213. if test ${ac_cv_prog_cc_c99+y}
  4214. then :
  4215. printf %s "(cached) " >&6
  4216. else $as_nop
  4217. ac_cv_prog_cc_c99=no
  4218. ac_save_CC=$CC
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. $ac_c_conftest_c99_program
  4222. _ACEOF
  4223. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4224. do
  4225. CC="$ac_save_CC $ac_arg"
  4226. if ac_fn_c_try_compile "$LINENO"
  4227. then :
  4228. ac_cv_prog_cc_c99=$ac_arg
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4231. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4232. done
  4233. rm -f conftest.$ac_ext
  4234. CC=$ac_save_CC
  4235. fi
  4236. if test "x$ac_cv_prog_cc_c99" = xno
  4237. then :
  4238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4239. printf "%s\n" "unsupported" >&6; }
  4240. else $as_nop
  4241. if test "x$ac_cv_prog_cc_c99" = x
  4242. then :
  4243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4244. printf "%s\n" "none needed" >&6; }
  4245. else $as_nop
  4246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4247. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4248. CC="$CC $ac_cv_prog_cc_c99"
  4249. fi
  4250. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4251. ac_prog_cc_stdc=c99
  4252. fi
  4253. fi
  4254. if test x$ac_prog_cc_stdc = xno
  4255. then :
  4256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4257. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4258. if test ${ac_cv_prog_cc_c89+y}
  4259. then :
  4260. printf %s "(cached) " >&6
  4261. else $as_nop
  4262. ac_cv_prog_cc_c89=no
  4263. ac_save_CC=$CC
  4264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4265. /* end confdefs.h. */
  4266. $ac_c_conftest_c89_program
  4267. _ACEOF
  4268. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4269. do
  4270. CC="$ac_save_CC $ac_arg"
  4271. if ac_fn_c_try_compile "$LINENO"
  4272. then :
  4273. ac_cv_prog_cc_c89=$ac_arg
  4274. fi
  4275. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4276. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4277. done
  4278. rm -f conftest.$ac_ext
  4279. CC=$ac_save_CC
  4280. fi
  4281. if test "x$ac_cv_prog_cc_c89" = xno
  4282. then :
  4283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4284. printf "%s\n" "unsupported" >&6; }
  4285. else $as_nop
  4286. if test "x$ac_cv_prog_cc_c89" = x
  4287. then :
  4288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4289. printf "%s\n" "none needed" >&6; }
  4290. else $as_nop
  4291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4292. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4293. CC="$CC $ac_cv_prog_cc_c89"
  4294. fi
  4295. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4296. ac_prog_cc_stdc=c89
  4297. fi
  4298. fi
  4299. ac_ext=c
  4300. ac_cpp='$CPP $CPPFLAGS'
  4301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4304. ac_ext=c
  4305. ac_cpp='$CPP $CPPFLAGS'
  4306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4310. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4311. if test ${am_cv_prog_cc_c_o+y}
  4312. then :
  4313. printf %s "(cached) " >&6
  4314. else $as_nop
  4315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4316. /* end confdefs.h. */
  4317. int
  4318. main (void)
  4319. {
  4320. ;
  4321. return 0;
  4322. }
  4323. _ACEOF
  4324. # Make sure it works both with $CC and with simple cc.
  4325. # Following AC_PROG_CC_C_O, we do the test twice because some
  4326. # compilers refuse to overwrite an existing .o file with -o,
  4327. # though they will create one.
  4328. am_cv_prog_cc_c_o=yes
  4329. for am_i in 1 2; do
  4330. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4331. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4332. ac_status=$?
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); } \
  4335. && test -f conftest2.$ac_objext; then
  4336. : OK
  4337. else
  4338. am_cv_prog_cc_c_o=no
  4339. break
  4340. fi
  4341. done
  4342. rm -f core conftest*
  4343. unset am_i
  4344. fi
  4345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4346. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4347. if test "$am_cv_prog_cc_c_o" != yes; then
  4348. # Losing compiler, so override with the script.
  4349. # FIXME: It is wrong to rewrite CC.
  4350. # But if we don't then we get into trouble of one sort or another.
  4351. # A longer-term fix would be to have automake use am__CC in this case,
  4352. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4353. CC="$am_aux_dir/compile $CC"
  4354. fi
  4355. ac_ext=c
  4356. ac_cpp='$CPP $CPPFLAGS'
  4357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4360. DEPDIR="${am__leading_dot}deps"
  4361. ac_config_commands="$ac_config_commands depfiles"
  4362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4363. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4364. cat > confinc.mk << 'END'
  4365. am__doit:
  4366. @echo this is the am__doit target >confinc.out
  4367. .PHONY: am__doit
  4368. END
  4369. am__include="#"
  4370. am__quote=
  4371. # BSD make does it like this.
  4372. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4373. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4374. echo 'include confinc.mk # ignored' > confmf.GNU
  4375. _am_result=no
  4376. for s in GNU BSD; do
  4377. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4378. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4379. ac_status=$?
  4380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4381. (exit $ac_status); }
  4382. case $?:`cat confinc.out 2>/dev/null` in #(
  4383. '0:this is the am__doit target') :
  4384. case $s in #(
  4385. BSD) :
  4386. am__include='.include' am__quote='"' ;; #(
  4387. *) :
  4388. am__include='include' am__quote='' ;;
  4389. esac ;; #(
  4390. *) :
  4391. ;;
  4392. esac
  4393. if test "$am__include" != "#"; then
  4394. _am_result="yes ($s style)"
  4395. break
  4396. fi
  4397. done
  4398. rm -f confinc.* confmf.*
  4399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4400. printf "%s\n" "${_am_result}" >&6; }
  4401. # Check whether --enable-dependency-tracking was given.
  4402. if test ${enable_dependency_tracking+y}
  4403. then :
  4404. enableval=$enable_dependency_tracking;
  4405. fi
  4406. if test "x$enable_dependency_tracking" != xno; then
  4407. am_depcomp="$ac_aux_dir/depcomp"
  4408. AMDEPBACKSLASH='\'
  4409. am__nodep='_no'
  4410. fi
  4411. if test "x$enable_dependency_tracking" != xno; then
  4412. AMDEP_TRUE=
  4413. AMDEP_FALSE='#'
  4414. else
  4415. AMDEP_TRUE='#'
  4416. AMDEP_FALSE=
  4417. fi
  4418. depcc="$CC" am_compiler_list=
  4419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4420. printf %s "checking dependency style of $depcc... " >&6; }
  4421. if test ${am_cv_CC_dependencies_compiler_type+y}
  4422. then :
  4423. printf %s "(cached) " >&6
  4424. else $as_nop
  4425. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4426. # We make a subdir and do the tests there. Otherwise we can end up
  4427. # making bogus files that we don't know about and never remove. For
  4428. # instance it was reported that on HP-UX the gcc test will end up
  4429. # making a dummy file named 'D' -- because '-MD' means "put the output
  4430. # in D".
  4431. rm -rf conftest.dir
  4432. mkdir conftest.dir
  4433. # Copy depcomp to subdir because otherwise we won't find it if we're
  4434. # using a relative directory.
  4435. cp "$am_depcomp" conftest.dir
  4436. cd conftest.dir
  4437. # We will build objects and dependencies in a subdirectory because
  4438. # it helps to detect inapplicable dependency modes. For instance
  4439. # both Tru64's cc and ICC support -MD to output dependencies as a
  4440. # side effect of compilation, but ICC will put the dependencies in
  4441. # the current directory while Tru64 will put them in the object
  4442. # directory.
  4443. mkdir sub
  4444. am_cv_CC_dependencies_compiler_type=none
  4445. if test "$am_compiler_list" = ""; then
  4446. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4447. fi
  4448. am__universal=false
  4449. case " $depcc " in #(
  4450. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4451. esac
  4452. for depmode in $am_compiler_list; do
  4453. # Setup a source with many dependencies, because some compilers
  4454. # like to wrap large dependency lists on column 80 (with \), and
  4455. # we should not choose a depcomp mode which is confused by this.
  4456. #
  4457. # We need to recreate these files for each test, as the compiler may
  4458. # overwrite some of them when testing with obscure command lines.
  4459. # This happens at least with the AIX C compiler.
  4460. : > sub/conftest.c
  4461. for i in 1 2 3 4 5 6; do
  4462. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4463. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4464. # Solaris 10 /bin/sh.
  4465. echo '/* dummy */' > sub/conftst$i.h
  4466. done
  4467. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4468. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4469. # mode. It turns out that the SunPro C++ compiler does not properly
  4470. # handle '-M -o', and we need to detect this. Also, some Intel
  4471. # versions had trouble with output in subdirs.
  4472. am__obj=sub/conftest.${OBJEXT-o}
  4473. am__minus_obj="-o $am__obj"
  4474. case $depmode in
  4475. gcc)
  4476. # This depmode causes a compiler race in universal mode.
  4477. test "$am__universal" = false || continue
  4478. ;;
  4479. nosideeffect)
  4480. # After this tag, mechanisms are not by side-effect, so they'll
  4481. # only be used when explicitly requested.
  4482. if test "x$enable_dependency_tracking" = xyes; then
  4483. continue
  4484. else
  4485. break
  4486. fi
  4487. ;;
  4488. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4489. # This compiler won't grok '-c -o', but also, the minuso test has
  4490. # not run yet. These depmodes are late enough in the game, and
  4491. # so weak that their functioning should not be impacted.
  4492. am__obj=conftest.${OBJEXT-o}
  4493. am__minus_obj=
  4494. ;;
  4495. none) break ;;
  4496. esac
  4497. if depmode=$depmode \
  4498. source=sub/conftest.c object=$am__obj \
  4499. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4500. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4501. >/dev/null 2>conftest.err &&
  4502. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4503. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4504. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4505. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4506. # icc doesn't choke on unknown options, it will just issue warnings
  4507. # or remarks (even with -Werror). So we grep stderr for any message
  4508. # that says an option was ignored or not supported.
  4509. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4510. # icc: Command line warning: ignoring option '-M'; no argument required
  4511. # The diagnosis changed in icc 8.0:
  4512. # icc: Command line remark: option '-MP' not supported
  4513. if (grep 'ignoring option' conftest.err ||
  4514. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4515. am_cv_CC_dependencies_compiler_type=$depmode
  4516. break
  4517. fi
  4518. fi
  4519. done
  4520. cd ..
  4521. rm -rf conftest.dir
  4522. else
  4523. am_cv_CC_dependencies_compiler_type=none
  4524. fi
  4525. fi
  4526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4527. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4528. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4529. if
  4530. test "x$enable_dependency_tracking" != xno \
  4531. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4532. am__fastdepCC_TRUE=
  4533. am__fastdepCC_FALSE='#'
  4534. else
  4535. am__fastdepCC_TRUE='#'
  4536. am__fastdepCC_FALSE=
  4537. fi
  4538. ac_header= ac_cache=
  4539. for ac_item in $ac_header_c_list
  4540. do
  4541. if test $ac_cache; then
  4542. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4543. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4544. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4545. fi
  4546. ac_header= ac_cache=
  4547. elif test $ac_header; then
  4548. ac_cache=$ac_item
  4549. else
  4550. ac_header=$ac_item
  4551. fi
  4552. done
  4553. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4554. then :
  4555. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4556. fi
  4557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4558. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4559. if test ${ac_cv_safe_to_define___extensions__+y}
  4560. then :
  4561. printf %s "(cached) " >&6
  4562. else $as_nop
  4563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4564. /* end confdefs.h. */
  4565. # define __EXTENSIONS__ 1
  4566. $ac_includes_default
  4567. int
  4568. main (void)
  4569. {
  4570. ;
  4571. return 0;
  4572. }
  4573. _ACEOF
  4574. if ac_fn_c_try_compile "$LINENO"
  4575. then :
  4576. ac_cv_safe_to_define___extensions__=yes
  4577. else $as_nop
  4578. ac_cv_safe_to_define___extensions__=no
  4579. fi
  4580. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4581. fi
  4582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4583. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  4584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4585. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  4586. if test ${ac_cv_should_define__xopen_source+y}
  4587. then :
  4588. printf %s "(cached) " >&6
  4589. else $as_nop
  4590. ac_cv_should_define__xopen_source=no
  4591. if test $ac_cv_header_wchar_h = yes
  4592. then :
  4593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4594. /* end confdefs.h. */
  4595. #include <wchar.h>
  4596. mbstate_t x;
  4597. int
  4598. main (void)
  4599. {
  4600. ;
  4601. return 0;
  4602. }
  4603. _ACEOF
  4604. if ac_fn_c_try_compile "$LINENO"
  4605. then :
  4606. else $as_nop
  4607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4608. /* end confdefs.h. */
  4609. #define _XOPEN_SOURCE 500
  4610. #include <wchar.h>
  4611. mbstate_t x;
  4612. int
  4613. main (void)
  4614. {
  4615. ;
  4616. return 0;
  4617. }
  4618. _ACEOF
  4619. if ac_fn_c_try_compile "$LINENO"
  4620. then :
  4621. ac_cv_should_define__xopen_source=yes
  4622. fi
  4623. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4624. fi
  4625. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4626. fi
  4627. fi
  4628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  4629. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  4630. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  4631. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  4632. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  4633. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  4634. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  4635. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  4636. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4637. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  4638. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  4639. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  4640. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  4641. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  4642. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  4643. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  4644. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  4645. if test $ac_cv_header_minix_config_h = yes
  4646. then :
  4647. MINIX=yes
  4648. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  4649. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  4650. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4651. else $as_nop
  4652. MINIX=
  4653. fi
  4654. if test $ac_cv_safe_to_define___extensions__ = yes
  4655. then :
  4656. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  4657. fi
  4658. if test $ac_cv_should_define__xopen_source = yes
  4659. then :
  4660. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  4661. fi
  4662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4663. printf %s "checking whether byte ordering is bigendian... " >&6; }
  4664. if test ${ac_cv_c_bigendian+y}
  4665. then :
  4666. printf %s "(cached) " >&6
  4667. else $as_nop
  4668. ac_cv_c_bigendian=unknown
  4669. # See if we're dealing with a universal compiler.
  4670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4671. /* end confdefs.h. */
  4672. #ifndef __APPLE_CC__
  4673. not a universal capable compiler
  4674. #endif
  4675. typedef int dummy;
  4676. _ACEOF
  4677. if ac_fn_c_try_compile "$LINENO"
  4678. then :
  4679. # Check for potential -arch flags. It is not universal unless
  4680. # there are at least two -arch flags with different values.
  4681. ac_arch=
  4682. ac_prev=
  4683. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4684. if test -n "$ac_prev"; then
  4685. case $ac_word in
  4686. i?86 | x86_64 | ppc | ppc64)
  4687. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4688. ac_arch=$ac_word
  4689. else
  4690. ac_cv_c_bigendian=universal
  4691. break
  4692. fi
  4693. ;;
  4694. esac
  4695. ac_prev=
  4696. elif test "x$ac_word" = "x-arch"; then
  4697. ac_prev=arch
  4698. fi
  4699. done
  4700. fi
  4701. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4702. if test $ac_cv_c_bigendian = unknown; then
  4703. # See if sys/param.h defines the BYTE_ORDER macro.
  4704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4705. /* end confdefs.h. */
  4706. #include <sys/types.h>
  4707. #include <sys/param.h>
  4708. int
  4709. main (void)
  4710. {
  4711. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4712. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4713. && LITTLE_ENDIAN)
  4714. bogus endian macros
  4715. #endif
  4716. ;
  4717. return 0;
  4718. }
  4719. _ACEOF
  4720. if ac_fn_c_try_compile "$LINENO"
  4721. then :
  4722. # It does; now see whether it defined to BIG_ENDIAN or not.
  4723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4724. /* end confdefs.h. */
  4725. #include <sys/types.h>
  4726. #include <sys/param.h>
  4727. int
  4728. main (void)
  4729. {
  4730. #if BYTE_ORDER != BIG_ENDIAN
  4731. not big endian
  4732. #endif
  4733. ;
  4734. return 0;
  4735. }
  4736. _ACEOF
  4737. if ac_fn_c_try_compile "$LINENO"
  4738. then :
  4739. ac_cv_c_bigendian=yes
  4740. else $as_nop
  4741. ac_cv_c_bigendian=no
  4742. fi
  4743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4744. fi
  4745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4746. fi
  4747. if test $ac_cv_c_bigendian = unknown; then
  4748. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4750. /* end confdefs.h. */
  4751. #include <limits.h>
  4752. int
  4753. main (void)
  4754. {
  4755. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4756. bogus endian macros
  4757. #endif
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. if ac_fn_c_try_compile "$LINENO"
  4763. then :
  4764. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4766. /* end confdefs.h. */
  4767. #include <limits.h>
  4768. int
  4769. main (void)
  4770. {
  4771. #ifndef _BIG_ENDIAN
  4772. not big endian
  4773. #endif
  4774. ;
  4775. return 0;
  4776. }
  4777. _ACEOF
  4778. if ac_fn_c_try_compile "$LINENO"
  4779. then :
  4780. ac_cv_c_bigendian=yes
  4781. else $as_nop
  4782. ac_cv_c_bigendian=no
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4785. fi
  4786. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4787. fi
  4788. if test $ac_cv_c_bigendian = unknown; then
  4789. # Compile a test program.
  4790. if test "$cross_compiling" = yes
  4791. then :
  4792. # Try to guess by grepping values from an object file.
  4793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4794. /* end confdefs.h. */
  4795. unsigned short int ascii_mm[] =
  4796. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4797. unsigned short int ascii_ii[] =
  4798. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4799. int use_ascii (int i) {
  4800. return ascii_mm[i] + ascii_ii[i];
  4801. }
  4802. unsigned short int ebcdic_ii[] =
  4803. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4804. unsigned short int ebcdic_mm[] =
  4805. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4806. int use_ebcdic (int i) {
  4807. return ebcdic_mm[i] + ebcdic_ii[i];
  4808. }
  4809. extern int foo;
  4810. int
  4811. main (void)
  4812. {
  4813. return use_ascii (foo) == use_ebcdic (foo);
  4814. ;
  4815. return 0;
  4816. }
  4817. _ACEOF
  4818. if ac_fn_c_try_compile "$LINENO"
  4819. then :
  4820. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4821. ac_cv_c_bigendian=yes
  4822. fi
  4823. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4824. if test "$ac_cv_c_bigendian" = unknown; then
  4825. ac_cv_c_bigendian=no
  4826. else
  4827. # finding both strings is unlikely to happen, but who knows?
  4828. ac_cv_c_bigendian=unknown
  4829. fi
  4830. fi
  4831. fi
  4832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4833. else $as_nop
  4834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4835. /* end confdefs.h. */
  4836. $ac_includes_default
  4837. int
  4838. main (void)
  4839. {
  4840. /* Are we little or big endian? From Harbison&Steele. */
  4841. union
  4842. {
  4843. long int l;
  4844. char c[sizeof (long int)];
  4845. } u;
  4846. u.l = 1;
  4847. return u.c[sizeof (long int) - 1] == 1;
  4848. ;
  4849. return 0;
  4850. }
  4851. _ACEOF
  4852. if ac_fn_c_try_run "$LINENO"
  4853. then :
  4854. ac_cv_c_bigendian=no
  4855. else $as_nop
  4856. ac_cv_c_bigendian=yes
  4857. fi
  4858. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4859. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4860. fi
  4861. fi
  4862. fi
  4863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4864. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  4865. case $ac_cv_c_bigendian in #(
  4866. yes)
  4867. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4868. ;; #(
  4869. no)
  4870. ;; #(
  4871. universal)
  4872. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4873. ;; #(
  4874. *)
  4875. as_fn_error $? "unknown endianness
  4876. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4877. esac
  4878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4879. printf %s "checking whether ln -s works... " >&6; }
  4880. LN_S=$as_ln_s
  4881. if test "$LN_S" = "ln -s"; then
  4882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4883. printf "%s\n" "yes" >&6; }
  4884. else
  4885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4886. printf "%s\n" "no, using $LN_S" >&6; }
  4887. fi
  4888. case `pwd` in
  4889. *\ * | *\ *)
  4890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4891. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4892. esac
  4893. macro_version='2.4.6'
  4894. macro_revision='2.4.6'
  4895. ltmain=$ac_aux_dir/ltmain.sh
  4896. # Backslashify metacharacters that are still active within
  4897. # double-quoted strings.
  4898. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4899. # Same as above, but do not quote variable references.
  4900. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4901. # Sed substitution to delay expansion of an escaped shell variable in a
  4902. # double_quote_subst'ed string.
  4903. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4904. # Sed substitution to delay expansion of an escaped single quote.
  4905. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4906. # Sed substitution to avoid accidental globbing in evaled expressions
  4907. no_glob_subst='s/\*/\\\*/g'
  4908. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4909. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4910. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4912. printf %s "checking how to print strings... " >&6; }
  4913. # Test print first, because it will be a builtin if present.
  4914. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4915. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4916. ECHO='print -r --'
  4917. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4918. ECHO='printf %s\n'
  4919. else
  4920. # Use this function as a fallback that always works.
  4921. func_fallback_echo ()
  4922. {
  4923. eval 'cat <<_LTECHO_EOF
  4924. $1
  4925. _LTECHO_EOF'
  4926. }
  4927. ECHO='func_fallback_echo'
  4928. fi
  4929. # func_echo_all arg...
  4930. # Invoke $ECHO with all args, space-separated.
  4931. func_echo_all ()
  4932. {
  4933. $ECHO ""
  4934. }
  4935. case $ECHO in
  4936. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4937. printf "%s\n" "printf" >&6; } ;;
  4938. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4939. printf "%s\n" "print -r" >&6; } ;;
  4940. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4941. printf "%s\n" "cat" >&6; } ;;
  4942. esac
  4943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4944. printf %s "checking for a sed that does not truncate output... " >&6; }
  4945. if test ${ac_cv_path_SED+y}
  4946. then :
  4947. printf %s "(cached) " >&6
  4948. else $as_nop
  4949. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4950. for ac_i in 1 2 3 4 5 6 7; do
  4951. ac_script="$ac_script$as_nl$ac_script"
  4952. done
  4953. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4954. { ac_script=; unset ac_script;}
  4955. if test -z "$SED"; then
  4956. ac_path_SED_found=false
  4957. # Loop through the user's path and test for each of PROGNAME-LIST
  4958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4959. for as_dir in $PATH
  4960. do
  4961. IFS=$as_save_IFS
  4962. case $as_dir in #(((
  4963. '') as_dir=./ ;;
  4964. */) ;;
  4965. *) as_dir=$as_dir/ ;;
  4966. esac
  4967. for ac_prog in sed gsed
  4968. do
  4969. for ac_exec_ext in '' $ac_executable_extensions; do
  4970. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4971. as_fn_executable_p "$ac_path_SED" || continue
  4972. # Check for GNU ac_path_SED and select it if it is found.
  4973. # Check for GNU $ac_path_SED
  4974. case `"$ac_path_SED" --version 2>&1` in
  4975. *GNU*)
  4976. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4977. *)
  4978. ac_count=0
  4979. printf %s 0123456789 >"conftest.in"
  4980. while :
  4981. do
  4982. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4983. mv "conftest.tmp" "conftest.in"
  4984. cp "conftest.in" "conftest.nl"
  4985. printf "%s\n" '' >> "conftest.nl"
  4986. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4987. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4988. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4989. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4990. # Best one so far, save it but keep looking for a better one
  4991. ac_cv_path_SED="$ac_path_SED"
  4992. ac_path_SED_max=$ac_count
  4993. fi
  4994. # 10*(2^10) chars as input seems more than enough
  4995. test $ac_count -gt 10 && break
  4996. done
  4997. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4998. esac
  4999. $ac_path_SED_found && break 3
  5000. done
  5001. done
  5002. done
  5003. IFS=$as_save_IFS
  5004. if test -z "$ac_cv_path_SED"; then
  5005. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5006. fi
  5007. else
  5008. ac_cv_path_SED=$SED
  5009. fi
  5010. fi
  5011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5012. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5013. SED="$ac_cv_path_SED"
  5014. rm -f conftest.sed
  5015. test -z "$SED" && SED=sed
  5016. Xsed="$SED -e 1s/^X//"
  5017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5018. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5019. if test ${ac_cv_path_GREP+y}
  5020. then :
  5021. printf %s "(cached) " >&6
  5022. else $as_nop
  5023. if test -z "$GREP"; then
  5024. ac_path_GREP_found=false
  5025. # Loop through the user's path and test for each of PROGNAME-LIST
  5026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5027. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5028. do
  5029. IFS=$as_save_IFS
  5030. case $as_dir in #(((
  5031. '') as_dir=./ ;;
  5032. */) ;;
  5033. *) as_dir=$as_dir/ ;;
  5034. esac
  5035. for ac_prog in grep ggrep
  5036. do
  5037. for ac_exec_ext in '' $ac_executable_extensions; do
  5038. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5039. as_fn_executable_p "$ac_path_GREP" || continue
  5040. # Check for GNU ac_path_GREP and select it if it is found.
  5041. # Check for GNU $ac_path_GREP
  5042. case `"$ac_path_GREP" --version 2>&1` in
  5043. *GNU*)
  5044. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5045. *)
  5046. ac_count=0
  5047. printf %s 0123456789 >"conftest.in"
  5048. while :
  5049. do
  5050. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5051. mv "conftest.tmp" "conftest.in"
  5052. cp "conftest.in" "conftest.nl"
  5053. printf "%s\n" 'GREP' >> "conftest.nl"
  5054. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5055. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5056. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5057. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5058. # Best one so far, save it but keep looking for a better one
  5059. ac_cv_path_GREP="$ac_path_GREP"
  5060. ac_path_GREP_max=$ac_count
  5061. fi
  5062. # 10*(2^10) chars as input seems more than enough
  5063. test $ac_count -gt 10 && break
  5064. done
  5065. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5066. esac
  5067. $ac_path_GREP_found && break 3
  5068. done
  5069. done
  5070. done
  5071. IFS=$as_save_IFS
  5072. if test -z "$ac_cv_path_GREP"; then
  5073. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5074. fi
  5075. else
  5076. ac_cv_path_GREP=$GREP
  5077. fi
  5078. fi
  5079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5080. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5081. GREP="$ac_cv_path_GREP"
  5082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5083. printf %s "checking for egrep... " >&6; }
  5084. if test ${ac_cv_path_EGREP+y}
  5085. then :
  5086. printf %s "(cached) " >&6
  5087. else $as_nop
  5088. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5089. then ac_cv_path_EGREP="$GREP -E"
  5090. else
  5091. if test -z "$EGREP"; then
  5092. ac_path_EGREP_found=false
  5093. # Loop through the user's path and test for each of PROGNAME-LIST
  5094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5095. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5096. do
  5097. IFS=$as_save_IFS
  5098. case $as_dir in #(((
  5099. '') as_dir=./ ;;
  5100. */) ;;
  5101. *) as_dir=$as_dir/ ;;
  5102. esac
  5103. for ac_prog in egrep
  5104. do
  5105. for ac_exec_ext in '' $ac_executable_extensions; do
  5106. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5107. as_fn_executable_p "$ac_path_EGREP" || continue
  5108. # Check for GNU ac_path_EGREP and select it if it is found.
  5109. # Check for GNU $ac_path_EGREP
  5110. case `"$ac_path_EGREP" --version 2>&1` in
  5111. *GNU*)
  5112. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5113. *)
  5114. ac_count=0
  5115. printf %s 0123456789 >"conftest.in"
  5116. while :
  5117. do
  5118. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5119. mv "conftest.tmp" "conftest.in"
  5120. cp "conftest.in" "conftest.nl"
  5121. printf "%s\n" 'EGREP' >> "conftest.nl"
  5122. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5123. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5124. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5125. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5126. # Best one so far, save it but keep looking for a better one
  5127. ac_cv_path_EGREP="$ac_path_EGREP"
  5128. ac_path_EGREP_max=$ac_count
  5129. fi
  5130. # 10*(2^10) chars as input seems more than enough
  5131. test $ac_count -gt 10 && break
  5132. done
  5133. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5134. esac
  5135. $ac_path_EGREP_found && break 3
  5136. done
  5137. done
  5138. done
  5139. IFS=$as_save_IFS
  5140. if test -z "$ac_cv_path_EGREP"; then
  5141. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5142. fi
  5143. else
  5144. ac_cv_path_EGREP=$EGREP
  5145. fi
  5146. fi
  5147. fi
  5148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5149. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5150. EGREP="$ac_cv_path_EGREP"
  5151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5152. printf %s "checking for fgrep... " >&6; }
  5153. if test ${ac_cv_path_FGREP+y}
  5154. then :
  5155. printf %s "(cached) " >&6
  5156. else $as_nop
  5157. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5158. then ac_cv_path_FGREP="$GREP -F"
  5159. else
  5160. if test -z "$FGREP"; then
  5161. ac_path_FGREP_found=false
  5162. # Loop through the user's path and test for each of PROGNAME-LIST
  5163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5164. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5165. do
  5166. IFS=$as_save_IFS
  5167. case $as_dir in #(((
  5168. '') as_dir=./ ;;
  5169. */) ;;
  5170. *) as_dir=$as_dir/ ;;
  5171. esac
  5172. for ac_prog in fgrep
  5173. do
  5174. for ac_exec_ext in '' $ac_executable_extensions; do
  5175. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5176. as_fn_executable_p "$ac_path_FGREP" || continue
  5177. # Check for GNU ac_path_FGREP and select it if it is found.
  5178. # Check for GNU $ac_path_FGREP
  5179. case `"$ac_path_FGREP" --version 2>&1` in
  5180. *GNU*)
  5181. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5182. *)
  5183. ac_count=0
  5184. printf %s 0123456789 >"conftest.in"
  5185. while :
  5186. do
  5187. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5188. mv "conftest.tmp" "conftest.in"
  5189. cp "conftest.in" "conftest.nl"
  5190. printf "%s\n" 'FGREP' >> "conftest.nl"
  5191. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5192. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5193. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5194. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5195. # Best one so far, save it but keep looking for a better one
  5196. ac_cv_path_FGREP="$ac_path_FGREP"
  5197. ac_path_FGREP_max=$ac_count
  5198. fi
  5199. # 10*(2^10) chars as input seems more than enough
  5200. test $ac_count -gt 10 && break
  5201. done
  5202. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5203. esac
  5204. $ac_path_FGREP_found && break 3
  5205. done
  5206. done
  5207. done
  5208. IFS=$as_save_IFS
  5209. if test -z "$ac_cv_path_FGREP"; then
  5210. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5211. fi
  5212. else
  5213. ac_cv_path_FGREP=$FGREP
  5214. fi
  5215. fi
  5216. fi
  5217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5218. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5219. FGREP="$ac_cv_path_FGREP"
  5220. test -z "$GREP" && GREP=grep
  5221. # Check whether --with-gnu-ld was given.
  5222. if test ${with_gnu_ld+y}
  5223. then :
  5224. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5225. else $as_nop
  5226. with_gnu_ld=no
  5227. fi
  5228. ac_prog=ld
  5229. if test yes = "$GCC"; then
  5230. # Check if gcc -print-prog-name=ld gives a path.
  5231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5232. printf %s "checking for ld used by $CC... " >&6; }
  5233. case $host in
  5234. *-*-mingw*)
  5235. # gcc leaves a trailing carriage return, which upsets mingw
  5236. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5237. *)
  5238. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5239. esac
  5240. case $ac_prog in
  5241. # Accept absolute paths.
  5242. [\\/]* | ?:[\\/]*)
  5243. re_direlt='/[^/][^/]*/\.\./'
  5244. # Canonicalize the pathname of ld
  5245. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5246. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5247. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5248. done
  5249. test -z "$LD" && LD=$ac_prog
  5250. ;;
  5251. "")
  5252. # If it fails, then pretend we aren't using GCC.
  5253. ac_prog=ld
  5254. ;;
  5255. *)
  5256. # If it is relative, then search for the first ld in PATH.
  5257. with_gnu_ld=unknown
  5258. ;;
  5259. esac
  5260. elif test yes = "$with_gnu_ld"; then
  5261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5262. printf %s "checking for GNU ld... " >&6; }
  5263. else
  5264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5265. printf %s "checking for non-GNU ld... " >&6; }
  5266. fi
  5267. if test ${lt_cv_path_LD+y}
  5268. then :
  5269. printf %s "(cached) " >&6
  5270. else $as_nop
  5271. if test -z "$LD"; then
  5272. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5273. for ac_dir in $PATH; do
  5274. IFS=$lt_save_ifs
  5275. test -z "$ac_dir" && ac_dir=.
  5276. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5277. lt_cv_path_LD=$ac_dir/$ac_prog
  5278. # Check to see if the program is GNU ld. I'd rather use --version,
  5279. # but apparently some variants of GNU ld only accept -v.
  5280. # Break only if it was the GNU/non-GNU ld that we prefer.
  5281. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5282. *GNU* | *'with BFD'*)
  5283. test no != "$with_gnu_ld" && break
  5284. ;;
  5285. *)
  5286. test yes != "$with_gnu_ld" && break
  5287. ;;
  5288. esac
  5289. fi
  5290. done
  5291. IFS=$lt_save_ifs
  5292. else
  5293. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5294. fi
  5295. fi
  5296. LD=$lt_cv_path_LD
  5297. if test -n "$LD"; then
  5298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5299. printf "%s\n" "$LD" >&6; }
  5300. else
  5301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5302. printf "%s\n" "no" >&6; }
  5303. fi
  5304. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5306. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5307. if test ${lt_cv_prog_gnu_ld+y}
  5308. then :
  5309. printf %s "(cached) " >&6
  5310. else $as_nop
  5311. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5312. case `$LD -v 2>&1 </dev/null` in
  5313. *GNU* | *'with BFD'*)
  5314. lt_cv_prog_gnu_ld=yes
  5315. ;;
  5316. *)
  5317. lt_cv_prog_gnu_ld=no
  5318. ;;
  5319. esac
  5320. fi
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5322. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5323. with_gnu_ld=$lt_cv_prog_gnu_ld
  5324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5325. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5326. if test ${lt_cv_path_NM+y}
  5327. then :
  5328. printf %s "(cached) " >&6
  5329. else $as_nop
  5330. if test -n "$NM"; then
  5331. # Let the user override the test.
  5332. lt_cv_path_NM=$NM
  5333. else
  5334. lt_nm_to_check=${ac_tool_prefix}nm
  5335. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5336. lt_nm_to_check="$lt_nm_to_check nm"
  5337. fi
  5338. for lt_tmp_nm in $lt_nm_to_check; do
  5339. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5340. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5341. IFS=$lt_save_ifs
  5342. test -z "$ac_dir" && ac_dir=.
  5343. tmp_nm=$ac_dir/$lt_tmp_nm
  5344. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5345. # Check to see if the nm accepts a BSD-compat flag.
  5346. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5347. # nm: unknown option "B" ignored
  5348. # Tru64's nm complains that /dev/null is an invalid object file
  5349. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5350. case $build_os in
  5351. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5352. *) lt_bad_file=/dev/null ;;
  5353. esac
  5354. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5355. *$lt_bad_file* | *'Invalid file or object type'*)
  5356. lt_cv_path_NM="$tmp_nm -B"
  5357. break 2
  5358. ;;
  5359. *)
  5360. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5361. */dev/null*)
  5362. lt_cv_path_NM="$tmp_nm -p"
  5363. break 2
  5364. ;;
  5365. *)
  5366. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5367. continue # so that we can try to find one that supports BSD flags
  5368. ;;
  5369. esac
  5370. ;;
  5371. esac
  5372. fi
  5373. done
  5374. IFS=$lt_save_ifs
  5375. done
  5376. : ${lt_cv_path_NM=no}
  5377. fi
  5378. fi
  5379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5380. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5381. if test no != "$lt_cv_path_NM"; then
  5382. NM=$lt_cv_path_NM
  5383. else
  5384. # Didn't find any BSD compatible name lister, look for dumpbin.
  5385. if test -n "$DUMPBIN"; then :
  5386. # Let the user override the test.
  5387. else
  5388. if test -n "$ac_tool_prefix"; then
  5389. for ac_prog in dumpbin "link -dump"
  5390. do
  5391. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5392. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5394. printf %s "checking for $ac_word... " >&6; }
  5395. if test ${ac_cv_prog_DUMPBIN+y}
  5396. then :
  5397. printf %s "(cached) " >&6
  5398. else $as_nop
  5399. if test -n "$DUMPBIN"; then
  5400. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5401. else
  5402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5403. for as_dir in $PATH
  5404. do
  5405. IFS=$as_save_IFS
  5406. case $as_dir in #(((
  5407. '') as_dir=./ ;;
  5408. */) ;;
  5409. *) as_dir=$as_dir/ ;;
  5410. esac
  5411. for ac_exec_ext in '' $ac_executable_extensions; do
  5412. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5413. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5414. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5415. break 2
  5416. fi
  5417. done
  5418. done
  5419. IFS=$as_save_IFS
  5420. fi
  5421. fi
  5422. DUMPBIN=$ac_cv_prog_DUMPBIN
  5423. if test -n "$DUMPBIN"; then
  5424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5425. printf "%s\n" "$DUMPBIN" >&6; }
  5426. else
  5427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5428. printf "%s\n" "no" >&6; }
  5429. fi
  5430. test -n "$DUMPBIN" && break
  5431. done
  5432. fi
  5433. if test -z "$DUMPBIN"; then
  5434. ac_ct_DUMPBIN=$DUMPBIN
  5435. for ac_prog in dumpbin "link -dump"
  5436. do
  5437. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5438. set dummy $ac_prog; ac_word=$2
  5439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5440. printf %s "checking for $ac_word... " >&6; }
  5441. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5442. then :
  5443. printf %s "(cached) " >&6
  5444. else $as_nop
  5445. if test -n "$ac_ct_DUMPBIN"; then
  5446. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5447. else
  5448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5449. for as_dir in $PATH
  5450. do
  5451. IFS=$as_save_IFS
  5452. case $as_dir in #(((
  5453. '') as_dir=./ ;;
  5454. */) ;;
  5455. *) as_dir=$as_dir/ ;;
  5456. esac
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5459. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5469. if test -n "$ac_ct_DUMPBIN"; then
  5470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5471. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5472. else
  5473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. printf "%s\n" "no" >&6; }
  5475. fi
  5476. test -n "$ac_ct_DUMPBIN" && break
  5477. done
  5478. if test "x$ac_ct_DUMPBIN" = x; then
  5479. DUMPBIN=":"
  5480. else
  5481. case $cross_compiling:$ac_tool_warned in
  5482. yes:)
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5484. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5485. ac_tool_warned=yes ;;
  5486. esac
  5487. DUMPBIN=$ac_ct_DUMPBIN
  5488. fi
  5489. fi
  5490. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5491. *COFF*)
  5492. DUMPBIN="$DUMPBIN -symbols -headers"
  5493. ;;
  5494. *)
  5495. DUMPBIN=:
  5496. ;;
  5497. esac
  5498. fi
  5499. if test : != "$DUMPBIN"; then
  5500. NM=$DUMPBIN
  5501. fi
  5502. fi
  5503. test -z "$NM" && NM=nm
  5504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5505. printf %s "checking the name lister ($NM) interface... " >&6; }
  5506. if test ${lt_cv_nm_interface+y}
  5507. then :
  5508. printf %s "(cached) " >&6
  5509. else $as_nop
  5510. lt_cv_nm_interface="BSD nm"
  5511. echo "int some_variable = 0;" > conftest.$ac_ext
  5512. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5513. (eval "$ac_compile" 2>conftest.err)
  5514. cat conftest.err >&5
  5515. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5516. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5517. cat conftest.err >&5
  5518. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5519. cat conftest.out >&5
  5520. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5521. lt_cv_nm_interface="MS dumpbin"
  5522. fi
  5523. rm -f conftest*
  5524. fi
  5525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5526. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5527. # find the maximum length of command line arguments
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5529. printf %s "checking the maximum length of command line arguments... " >&6; }
  5530. if test ${lt_cv_sys_max_cmd_len+y}
  5531. then :
  5532. printf %s "(cached) " >&6
  5533. else $as_nop
  5534. i=0
  5535. teststring=ABCD
  5536. case $build_os in
  5537. msdosdjgpp*)
  5538. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5539. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5540. # during glob expansion). Even if it were fixed, the result of this
  5541. # check would be larger than it should be.
  5542. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5543. ;;
  5544. gnu*)
  5545. # Under GNU Hurd, this test is not required because there is
  5546. # no limit to the length of command line arguments.
  5547. # Libtool will interpret -1 as no limit whatsoever
  5548. lt_cv_sys_max_cmd_len=-1;
  5549. ;;
  5550. cygwin* | mingw* | cegcc*)
  5551. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5552. # about 5 minutes as the teststring grows exponentially.
  5553. # Worse, since 9x/ME are not pre-emptively multitasking,
  5554. # you end up with a "frozen" computer, even though with patience
  5555. # the test eventually succeeds (with a max line length of 256k).
  5556. # Instead, let's just punt: use the minimum linelength reported by
  5557. # all of the supported platforms: 8192 (on NT/2K/XP).
  5558. lt_cv_sys_max_cmd_len=8192;
  5559. ;;
  5560. mint*)
  5561. # On MiNT this can take a long time and run out of memory.
  5562. lt_cv_sys_max_cmd_len=8192;
  5563. ;;
  5564. amigaos*)
  5565. # On AmigaOS with pdksh, this test takes hours, literally.
  5566. # So we just punt and use a minimum line length of 8192.
  5567. lt_cv_sys_max_cmd_len=8192;
  5568. ;;
  5569. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5570. # This has been around since 386BSD, at least. Likely further.
  5571. if test -x /sbin/sysctl; then
  5572. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5573. elif test -x /usr/sbin/sysctl; then
  5574. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5575. else
  5576. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5577. fi
  5578. # And add a safety zone
  5579. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5580. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5581. ;;
  5582. interix*)
  5583. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5584. lt_cv_sys_max_cmd_len=196608
  5585. ;;
  5586. os2*)
  5587. # The test takes a long time on OS/2.
  5588. lt_cv_sys_max_cmd_len=8192
  5589. ;;
  5590. osf*)
  5591. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5592. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5593. # nice to cause kernel panics so lets avoid the loop below.
  5594. # First set a reasonable default.
  5595. lt_cv_sys_max_cmd_len=16384
  5596. #
  5597. if test -x /sbin/sysconfig; then
  5598. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5599. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5600. esac
  5601. fi
  5602. ;;
  5603. sco3.2v5*)
  5604. lt_cv_sys_max_cmd_len=102400
  5605. ;;
  5606. sysv5* | sco5v6* | sysv4.2uw2*)
  5607. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5608. if test -n "$kargmax"; then
  5609. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5610. else
  5611. lt_cv_sys_max_cmd_len=32768
  5612. fi
  5613. ;;
  5614. *)
  5615. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5616. if test -n "$lt_cv_sys_max_cmd_len" && \
  5617. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5618. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5619. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5620. else
  5621. # Make teststring a little bigger before we do anything with it.
  5622. # a 1K string should be a reasonable start.
  5623. for i in 1 2 3 4 5 6 7 8; do
  5624. teststring=$teststring$teststring
  5625. done
  5626. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5627. # If test is not a shell built-in, we'll probably end up computing a
  5628. # maximum length that is only half of the actual maximum length, but
  5629. # we can't tell.
  5630. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5631. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5632. test 17 != "$i" # 1/2 MB should be enough
  5633. do
  5634. i=`expr $i + 1`
  5635. teststring=$teststring$teststring
  5636. done
  5637. # Only check the string length outside the loop.
  5638. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5639. teststring=
  5640. # Add a significant safety factor because C++ compilers can tack on
  5641. # massive amounts of additional arguments before passing them to the
  5642. # linker. It appears as though 1/2 is a usable value.
  5643. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5644. fi
  5645. ;;
  5646. esac
  5647. fi
  5648. if test -n "$lt_cv_sys_max_cmd_len"; then
  5649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5650. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5651. else
  5652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5653. printf "%s\n" "none" >&6; }
  5654. fi
  5655. max_cmd_len=$lt_cv_sys_max_cmd_len
  5656. : ${CP="cp -f"}
  5657. : ${MV="mv -f"}
  5658. : ${RM="rm -f"}
  5659. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5660. lt_unset=unset
  5661. else
  5662. lt_unset=false
  5663. fi
  5664. # test EBCDIC or ASCII
  5665. case `echo X|tr X '\101'` in
  5666. A) # ASCII based system
  5667. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5668. lt_SP2NL='tr \040 \012'
  5669. lt_NL2SP='tr \015\012 \040\040'
  5670. ;;
  5671. *) # EBCDIC based system
  5672. lt_SP2NL='tr \100 \n'
  5673. lt_NL2SP='tr \r\n \100\100'
  5674. ;;
  5675. esac
  5676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5677. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5678. if test ${lt_cv_to_host_file_cmd+y}
  5679. then :
  5680. printf %s "(cached) " >&6
  5681. else $as_nop
  5682. case $host in
  5683. *-*-mingw* )
  5684. case $build in
  5685. *-*-mingw* ) # actually msys
  5686. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5687. ;;
  5688. *-*-cygwin* )
  5689. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5690. ;;
  5691. * ) # otherwise, assume *nix
  5692. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5693. ;;
  5694. esac
  5695. ;;
  5696. *-*-cygwin* )
  5697. case $build in
  5698. *-*-mingw* ) # actually msys
  5699. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5700. ;;
  5701. *-*-cygwin* )
  5702. lt_cv_to_host_file_cmd=func_convert_file_noop
  5703. ;;
  5704. * ) # otherwise, assume *nix
  5705. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5706. ;;
  5707. esac
  5708. ;;
  5709. * ) # unhandled hosts (and "normal" native builds)
  5710. lt_cv_to_host_file_cmd=func_convert_file_noop
  5711. ;;
  5712. esac
  5713. fi
  5714. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5716. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5718. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5719. if test ${lt_cv_to_tool_file_cmd+y}
  5720. then :
  5721. printf %s "(cached) " >&6
  5722. else $as_nop
  5723. #assume ordinary cross tools, or native build.
  5724. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5725. case $host in
  5726. *-*-mingw* )
  5727. case $build in
  5728. *-*-mingw* ) # actually msys
  5729. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5730. ;;
  5731. esac
  5732. ;;
  5733. esac
  5734. fi
  5735. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5737. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5739. printf %s "checking for $LD option to reload object files... " >&6; }
  5740. if test ${lt_cv_ld_reload_flag+y}
  5741. then :
  5742. printf %s "(cached) " >&6
  5743. else $as_nop
  5744. lt_cv_ld_reload_flag='-r'
  5745. fi
  5746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5747. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5748. reload_flag=$lt_cv_ld_reload_flag
  5749. case $reload_flag in
  5750. "" | " "*) ;;
  5751. *) reload_flag=" $reload_flag" ;;
  5752. esac
  5753. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5754. case $host_os in
  5755. cygwin* | mingw* | pw32* | cegcc*)
  5756. if test yes != "$GCC"; then
  5757. reload_cmds=false
  5758. fi
  5759. ;;
  5760. darwin*)
  5761. if test yes = "$GCC"; then
  5762. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5763. else
  5764. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5765. fi
  5766. ;;
  5767. esac
  5768. if test -n "$ac_tool_prefix"; then
  5769. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5770. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. printf %s "checking for $ac_word... " >&6; }
  5773. if test ${ac_cv_prog_OBJDUMP+y}
  5774. then :
  5775. printf %s "(cached) " >&6
  5776. else $as_nop
  5777. if test -n "$OBJDUMP"; then
  5778. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5779. else
  5780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5781. for as_dir in $PATH
  5782. do
  5783. IFS=$as_save_IFS
  5784. case $as_dir in #(((
  5785. '') as_dir=./ ;;
  5786. */) ;;
  5787. *) as_dir=$as_dir/ ;;
  5788. esac
  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_OBJDUMP="${ac_tool_prefix}objdump"
  5792. printf "%s\n" "$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. OBJDUMP=$ac_cv_prog_OBJDUMP
  5801. if test -n "$OBJDUMP"; then
  5802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5803. printf "%s\n" "$OBJDUMP" >&6; }
  5804. else
  5805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. printf "%s\n" "no" >&6; }
  5807. fi
  5808. fi
  5809. if test -z "$ac_cv_prog_OBJDUMP"; then
  5810. ac_ct_OBJDUMP=$OBJDUMP
  5811. # Extract the first word of "objdump", so it can be a program name with args.
  5812. set dummy objdump; ac_word=$2
  5813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5814. printf %s "checking for $ac_word... " >&6; }
  5815. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5816. then :
  5817. printf %s "(cached) " >&6
  5818. else $as_nop
  5819. if test -n "$ac_ct_OBJDUMP"; then
  5820. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5821. else
  5822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5823. for as_dir in $PATH
  5824. do
  5825. IFS=$as_save_IFS
  5826. case $as_dir in #(((
  5827. '') as_dir=./ ;;
  5828. */) ;;
  5829. *) as_dir=$as_dir/ ;;
  5830. esac
  5831. for ac_exec_ext in '' $ac_executable_extensions; do
  5832. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5833. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5834. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5835. break 2
  5836. fi
  5837. done
  5838. done
  5839. IFS=$as_save_IFS
  5840. fi
  5841. fi
  5842. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5843. if test -n "$ac_ct_OBJDUMP"; then
  5844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5845. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5846. else
  5847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5848. printf "%s\n" "no" >&6; }
  5849. fi
  5850. if test "x$ac_ct_OBJDUMP" = x; then
  5851. OBJDUMP="false"
  5852. else
  5853. case $cross_compiling:$ac_tool_warned in
  5854. yes:)
  5855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5856. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5857. ac_tool_warned=yes ;;
  5858. esac
  5859. OBJDUMP=$ac_ct_OBJDUMP
  5860. fi
  5861. else
  5862. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5863. fi
  5864. test -z "$OBJDUMP" && OBJDUMP=objdump
  5865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5866. printf %s "checking how to recognize dependent libraries... " >&6; }
  5867. if test ${lt_cv_deplibs_check_method+y}
  5868. then :
  5869. printf %s "(cached) " >&6
  5870. else $as_nop
  5871. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5872. lt_cv_file_magic_test_file=
  5873. lt_cv_deplibs_check_method='unknown'
  5874. # Need to set the preceding variable on all platforms that support
  5875. # interlibrary dependencies.
  5876. # 'none' -- dependencies not supported.
  5877. # 'unknown' -- same as none, but documents that we really don't know.
  5878. # 'pass_all' -- all dependencies passed with no checks.
  5879. # 'test_compile' -- check by making test program.
  5880. # 'file_magic [[regex]]' -- check by looking for files in library path
  5881. # that responds to the $file_magic_cmd with a given extended regex.
  5882. # If you have 'file' or equivalent on your system and you're not sure
  5883. # whether 'pass_all' will *always* work, you probably want this one.
  5884. case $host_os in
  5885. aix[4-9]*)
  5886. lt_cv_deplibs_check_method=pass_all
  5887. ;;
  5888. beos*)
  5889. lt_cv_deplibs_check_method=pass_all
  5890. ;;
  5891. bsdi[45]*)
  5892. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5893. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5894. lt_cv_file_magic_test_file=/shlib/libc.so
  5895. ;;
  5896. cygwin*)
  5897. # func_win32_libid is a shell function defined in ltmain.sh
  5898. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5899. lt_cv_file_magic_cmd='func_win32_libid'
  5900. ;;
  5901. mingw* | pw32*)
  5902. # Base MSYS/MinGW do not provide the 'file' command needed by
  5903. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5904. # unless we find 'file', for example because we are cross-compiling.
  5905. if ( file / ) >/dev/null 2>&1; then
  5906. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5907. lt_cv_file_magic_cmd='func_win32_libid'
  5908. else
  5909. # Keep this pattern in sync with the one in func_win32_libid.
  5910. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5911. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5912. fi
  5913. ;;
  5914. cegcc*)
  5915. # use the weaker test based on 'objdump'. See mingw*.
  5916. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5917. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5918. ;;
  5919. darwin* | rhapsody*)
  5920. lt_cv_deplibs_check_method=pass_all
  5921. ;;
  5922. freebsd* | dragonfly*)
  5923. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5924. case $host_cpu in
  5925. i*86 )
  5926. # Not sure whether the presence of OpenBSD here was a mistake.
  5927. # Let's accept both of them until this is cleared up.
  5928. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5929. lt_cv_file_magic_cmd=/usr/bin/file
  5930. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5931. ;;
  5932. esac
  5933. else
  5934. lt_cv_deplibs_check_method=pass_all
  5935. fi
  5936. ;;
  5937. haiku*)
  5938. lt_cv_deplibs_check_method=pass_all
  5939. ;;
  5940. hpux10.20* | hpux11*)
  5941. lt_cv_file_magic_cmd=/usr/bin/file
  5942. case $host_cpu in
  5943. ia64*)
  5944. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5945. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5946. ;;
  5947. hppa*64*)
  5948. 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]'
  5949. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5950. ;;
  5951. *)
  5952. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5953. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5954. ;;
  5955. esac
  5956. ;;
  5957. interix[3-9]*)
  5958. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5959. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5960. ;;
  5961. irix5* | irix6* | nonstopux*)
  5962. case $LD in
  5963. *-32|*"-32 ") libmagic=32-bit;;
  5964. *-n32|*"-n32 ") libmagic=N32;;
  5965. *-64|*"-64 ") libmagic=64-bit;;
  5966. *) libmagic=never-match;;
  5967. esac
  5968. lt_cv_deplibs_check_method=pass_all
  5969. ;;
  5970. # This must be glibc/ELF.
  5971. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5972. lt_cv_deplibs_check_method=pass_all
  5973. ;;
  5974. netbsd*)
  5975. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5976. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5977. else
  5978. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5979. fi
  5980. ;;
  5981. newos6*)
  5982. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5983. lt_cv_file_magic_cmd=/usr/bin/file
  5984. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5985. ;;
  5986. *nto* | *qnx*)
  5987. lt_cv_deplibs_check_method=pass_all
  5988. ;;
  5989. openbsd* | bitrig*)
  5990. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5991. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5992. else
  5993. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5994. fi
  5995. ;;
  5996. osf3* | osf4* | osf5*)
  5997. lt_cv_deplibs_check_method=pass_all
  5998. ;;
  5999. rdos*)
  6000. lt_cv_deplibs_check_method=pass_all
  6001. ;;
  6002. solaris*)
  6003. lt_cv_deplibs_check_method=pass_all
  6004. ;;
  6005. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6006. lt_cv_deplibs_check_method=pass_all
  6007. ;;
  6008. sysv4 | sysv4.3*)
  6009. case $host_vendor in
  6010. motorola)
  6011. 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]'
  6012. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6013. ;;
  6014. ncr)
  6015. lt_cv_deplibs_check_method=pass_all
  6016. ;;
  6017. sequent)
  6018. lt_cv_file_magic_cmd='/bin/file'
  6019. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6020. ;;
  6021. sni)
  6022. lt_cv_file_magic_cmd='/bin/file'
  6023. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6024. lt_cv_file_magic_test_file=/lib/libc.so
  6025. ;;
  6026. siemens)
  6027. lt_cv_deplibs_check_method=pass_all
  6028. ;;
  6029. pc)
  6030. lt_cv_deplibs_check_method=pass_all
  6031. ;;
  6032. esac
  6033. ;;
  6034. tpf*)
  6035. lt_cv_deplibs_check_method=pass_all
  6036. ;;
  6037. os2*)
  6038. lt_cv_deplibs_check_method=pass_all
  6039. ;;
  6040. esac
  6041. fi
  6042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6043. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6044. file_magic_glob=
  6045. want_nocaseglob=no
  6046. if test "$build" = "$host"; then
  6047. case $host_os in
  6048. mingw* | pw32*)
  6049. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6050. want_nocaseglob=yes
  6051. else
  6052. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6053. fi
  6054. ;;
  6055. esac
  6056. fi
  6057. file_magic_cmd=$lt_cv_file_magic_cmd
  6058. deplibs_check_method=$lt_cv_deplibs_check_method
  6059. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6060. if test -n "$ac_tool_prefix"; then
  6061. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6062. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6064. printf %s "checking for $ac_word... " >&6; }
  6065. if test ${ac_cv_prog_DLLTOOL+y}
  6066. then :
  6067. printf %s "(cached) " >&6
  6068. else $as_nop
  6069. if test -n "$DLLTOOL"; then
  6070. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6071. else
  6072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6073. for as_dir in $PATH
  6074. do
  6075. IFS=$as_save_IFS
  6076. case $as_dir in #(((
  6077. '') as_dir=./ ;;
  6078. */) ;;
  6079. *) as_dir=$as_dir/ ;;
  6080. esac
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6083. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6084. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. fi
  6091. fi
  6092. DLLTOOL=$ac_cv_prog_DLLTOOL
  6093. if test -n "$DLLTOOL"; then
  6094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6095. printf "%s\n" "$DLLTOOL" >&6; }
  6096. else
  6097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098. printf "%s\n" "no" >&6; }
  6099. fi
  6100. fi
  6101. if test -z "$ac_cv_prog_DLLTOOL"; then
  6102. ac_ct_DLLTOOL=$DLLTOOL
  6103. # Extract the first word of "dlltool", so it can be a program name with args.
  6104. set dummy dlltool; ac_word=$2
  6105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6106. printf %s "checking for $ac_word... " >&6; }
  6107. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6108. then :
  6109. printf %s "(cached) " >&6
  6110. else $as_nop
  6111. if test -n "$ac_ct_DLLTOOL"; then
  6112. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6113. else
  6114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6115. for as_dir in $PATH
  6116. do
  6117. IFS=$as_save_IFS
  6118. case $as_dir in #(((
  6119. '') as_dir=./ ;;
  6120. */) ;;
  6121. *) as_dir=$as_dir/ ;;
  6122. esac
  6123. for ac_exec_ext in '' $ac_executable_extensions; do
  6124. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6125. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6127. break 2
  6128. fi
  6129. done
  6130. done
  6131. IFS=$as_save_IFS
  6132. fi
  6133. fi
  6134. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6135. if test -n "$ac_ct_DLLTOOL"; then
  6136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6137. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6138. else
  6139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. printf "%s\n" "no" >&6; }
  6141. fi
  6142. if test "x$ac_ct_DLLTOOL" = x; then
  6143. DLLTOOL="false"
  6144. else
  6145. case $cross_compiling:$ac_tool_warned in
  6146. yes:)
  6147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6148. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6149. ac_tool_warned=yes ;;
  6150. esac
  6151. DLLTOOL=$ac_ct_DLLTOOL
  6152. fi
  6153. else
  6154. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6155. fi
  6156. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6158. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6159. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6160. then :
  6161. printf %s "(cached) " >&6
  6162. else $as_nop
  6163. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6164. case $host_os in
  6165. cygwin* | mingw* | pw32* | cegcc*)
  6166. # two different shell functions defined in ltmain.sh;
  6167. # decide which one to use based on capabilities of $DLLTOOL
  6168. case `$DLLTOOL --help 2>&1` in
  6169. *--identify-strict*)
  6170. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6171. ;;
  6172. *)
  6173. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6174. ;;
  6175. esac
  6176. ;;
  6177. *)
  6178. # fallback: assume linklib IS sharedlib
  6179. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6180. ;;
  6181. esac
  6182. fi
  6183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6184. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6185. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6186. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6187. if test -n "$ac_tool_prefix"; then
  6188. for ac_prog in ar
  6189. do
  6190. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6191. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6193. printf %s "checking for $ac_word... " >&6; }
  6194. if test ${ac_cv_prog_AR+y}
  6195. then :
  6196. printf %s "(cached) " >&6
  6197. else $as_nop
  6198. if test -n "$AR"; then
  6199. ac_cv_prog_AR="$AR" # Let the user override the test.
  6200. else
  6201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6202. for as_dir in $PATH
  6203. do
  6204. IFS=$as_save_IFS
  6205. case $as_dir in #(((
  6206. '') as_dir=./ ;;
  6207. */) ;;
  6208. *) as_dir=$as_dir/ ;;
  6209. esac
  6210. for ac_exec_ext in '' $ac_executable_extensions; do
  6211. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6212. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6214. break 2
  6215. fi
  6216. done
  6217. done
  6218. IFS=$as_save_IFS
  6219. fi
  6220. fi
  6221. AR=$ac_cv_prog_AR
  6222. if test -n "$AR"; then
  6223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6224. printf "%s\n" "$AR" >&6; }
  6225. else
  6226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6227. printf "%s\n" "no" >&6; }
  6228. fi
  6229. test -n "$AR" && break
  6230. done
  6231. fi
  6232. if test -z "$AR"; then
  6233. ac_ct_AR=$AR
  6234. for ac_prog in ar
  6235. do
  6236. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6237. set dummy $ac_prog; ac_word=$2
  6238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6239. printf %s "checking for $ac_word... " >&6; }
  6240. if test ${ac_cv_prog_ac_ct_AR+y}
  6241. then :
  6242. printf %s "(cached) " >&6
  6243. else $as_nop
  6244. if test -n "$ac_ct_AR"; then
  6245. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6246. else
  6247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6248. for as_dir in $PATH
  6249. do
  6250. IFS=$as_save_IFS
  6251. case $as_dir in #(((
  6252. '') as_dir=./ ;;
  6253. */) ;;
  6254. *) as_dir=$as_dir/ ;;
  6255. esac
  6256. for ac_exec_ext in '' $ac_executable_extensions; do
  6257. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6258. ac_cv_prog_ac_ct_AR="$ac_prog"
  6259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6260. break 2
  6261. fi
  6262. done
  6263. done
  6264. IFS=$as_save_IFS
  6265. fi
  6266. fi
  6267. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6268. if test -n "$ac_ct_AR"; then
  6269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6270. printf "%s\n" "$ac_ct_AR" >&6; }
  6271. else
  6272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6273. printf "%s\n" "no" >&6; }
  6274. fi
  6275. test -n "$ac_ct_AR" && break
  6276. done
  6277. if test "x$ac_ct_AR" = x; then
  6278. AR="false"
  6279. else
  6280. case $cross_compiling:$ac_tool_warned in
  6281. yes:)
  6282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6283. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6284. ac_tool_warned=yes ;;
  6285. esac
  6286. AR=$ac_ct_AR
  6287. fi
  6288. fi
  6289. : ${AR=ar}
  6290. : ${AR_FLAGS=cru}
  6291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6292. printf %s "checking for archiver @FILE support... " >&6; }
  6293. if test ${lt_cv_ar_at_file+y}
  6294. then :
  6295. printf %s "(cached) " >&6
  6296. else $as_nop
  6297. lt_cv_ar_at_file=no
  6298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6299. /* end confdefs.h. */
  6300. int
  6301. main (void)
  6302. {
  6303. ;
  6304. return 0;
  6305. }
  6306. _ACEOF
  6307. if ac_fn_c_try_compile "$LINENO"
  6308. then :
  6309. echo conftest.$ac_objext > conftest.lst
  6310. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6311. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6312. (eval $lt_ar_try) 2>&5
  6313. ac_status=$?
  6314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6315. test $ac_status = 0; }
  6316. if test 0 -eq "$ac_status"; then
  6317. # Ensure the archiver fails upon bogus file names.
  6318. rm -f conftest.$ac_objext libconftest.a
  6319. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6320. (eval $lt_ar_try) 2>&5
  6321. ac_status=$?
  6322. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6323. test $ac_status = 0; }
  6324. if test 0 -ne "$ac_status"; then
  6325. lt_cv_ar_at_file=@
  6326. fi
  6327. fi
  6328. rm -f conftest.* libconftest.a
  6329. fi
  6330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6331. fi
  6332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6333. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6334. if test no = "$lt_cv_ar_at_file"; then
  6335. archiver_list_spec=
  6336. else
  6337. archiver_list_spec=$lt_cv_ar_at_file
  6338. fi
  6339. if test -n "$ac_tool_prefix"; then
  6340. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6341. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6343. printf %s "checking for $ac_word... " >&6; }
  6344. if test ${ac_cv_prog_STRIP+y}
  6345. then :
  6346. printf %s "(cached) " >&6
  6347. else $as_nop
  6348. if test -n "$STRIP"; then
  6349. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6350. else
  6351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6352. for as_dir in $PATH
  6353. do
  6354. IFS=$as_save_IFS
  6355. case $as_dir in #(((
  6356. '') as_dir=./ ;;
  6357. */) ;;
  6358. *) as_dir=$as_dir/ ;;
  6359. esac
  6360. for ac_exec_ext in '' $ac_executable_extensions; do
  6361. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6362. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6364. break 2
  6365. fi
  6366. done
  6367. done
  6368. IFS=$as_save_IFS
  6369. fi
  6370. fi
  6371. STRIP=$ac_cv_prog_STRIP
  6372. if test -n "$STRIP"; then
  6373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6374. printf "%s\n" "$STRIP" >&6; }
  6375. else
  6376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6377. printf "%s\n" "no" >&6; }
  6378. fi
  6379. fi
  6380. if test -z "$ac_cv_prog_STRIP"; then
  6381. ac_ct_STRIP=$STRIP
  6382. # Extract the first word of "strip", so it can be a program name with args.
  6383. set dummy strip; ac_word=$2
  6384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6385. printf %s "checking for $ac_word... " >&6; }
  6386. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6387. then :
  6388. printf %s "(cached) " >&6
  6389. else $as_nop
  6390. if test -n "$ac_ct_STRIP"; then
  6391. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6392. else
  6393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6394. for as_dir in $PATH
  6395. do
  6396. IFS=$as_save_IFS
  6397. case $as_dir in #(((
  6398. '') as_dir=./ ;;
  6399. */) ;;
  6400. *) as_dir=$as_dir/ ;;
  6401. esac
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_ac_ct_STRIP="strip"
  6405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6414. if test -n "$ac_ct_STRIP"; then
  6415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6416. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6417. else
  6418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. printf "%s\n" "no" >&6; }
  6420. fi
  6421. if test "x$ac_ct_STRIP" = x; then
  6422. STRIP=":"
  6423. else
  6424. case $cross_compiling:$ac_tool_warned in
  6425. yes:)
  6426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6427. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6428. ac_tool_warned=yes ;;
  6429. esac
  6430. STRIP=$ac_ct_STRIP
  6431. fi
  6432. else
  6433. STRIP="$ac_cv_prog_STRIP"
  6434. fi
  6435. test -z "$STRIP" && STRIP=:
  6436. if test -n "$ac_tool_prefix"; then
  6437. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6438. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6440. printf %s "checking for $ac_word... " >&6; }
  6441. if test ${ac_cv_prog_RANLIB+y}
  6442. then :
  6443. printf %s "(cached) " >&6
  6444. else $as_nop
  6445. if test -n "$RANLIB"; then
  6446. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6447. else
  6448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6449. for as_dir in $PATH
  6450. do
  6451. IFS=$as_save_IFS
  6452. case $as_dir in #(((
  6453. '') as_dir=./ ;;
  6454. */) ;;
  6455. *) as_dir=$as_dir/ ;;
  6456. esac
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6459. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. fi
  6467. fi
  6468. RANLIB=$ac_cv_prog_RANLIB
  6469. if test -n "$RANLIB"; then
  6470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6471. printf "%s\n" "$RANLIB" >&6; }
  6472. else
  6473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6474. printf "%s\n" "no" >&6; }
  6475. fi
  6476. fi
  6477. if test -z "$ac_cv_prog_RANLIB"; then
  6478. ac_ct_RANLIB=$RANLIB
  6479. # Extract the first word of "ranlib", so it can be a program name with args.
  6480. set dummy ranlib; ac_word=$2
  6481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6482. printf %s "checking for $ac_word... " >&6; }
  6483. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6484. then :
  6485. printf %s "(cached) " >&6
  6486. else $as_nop
  6487. if test -n "$ac_ct_RANLIB"; then
  6488. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6489. else
  6490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6491. for as_dir in $PATH
  6492. do
  6493. IFS=$as_save_IFS
  6494. case $as_dir in #(((
  6495. '') as_dir=./ ;;
  6496. */) ;;
  6497. *) as_dir=$as_dir/ ;;
  6498. esac
  6499. for ac_exec_ext in '' $ac_executable_extensions; do
  6500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6501. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6503. break 2
  6504. fi
  6505. done
  6506. done
  6507. IFS=$as_save_IFS
  6508. fi
  6509. fi
  6510. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6511. if test -n "$ac_ct_RANLIB"; then
  6512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6513. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6514. else
  6515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6516. printf "%s\n" "no" >&6; }
  6517. fi
  6518. if test "x$ac_ct_RANLIB" = x; then
  6519. RANLIB=":"
  6520. else
  6521. case $cross_compiling:$ac_tool_warned in
  6522. yes:)
  6523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6524. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6525. ac_tool_warned=yes ;;
  6526. esac
  6527. RANLIB=$ac_ct_RANLIB
  6528. fi
  6529. else
  6530. RANLIB="$ac_cv_prog_RANLIB"
  6531. fi
  6532. test -z "$RANLIB" && RANLIB=:
  6533. # Determine commands to create old-style static archives.
  6534. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6535. old_postinstall_cmds='chmod 644 $oldlib'
  6536. old_postuninstall_cmds=
  6537. if test -n "$RANLIB"; then
  6538. case $host_os in
  6539. bitrig* | openbsd*)
  6540. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6541. ;;
  6542. *)
  6543. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6544. ;;
  6545. esac
  6546. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6547. fi
  6548. case $host_os in
  6549. darwin*)
  6550. lock_old_archive_extraction=yes ;;
  6551. *)
  6552. lock_old_archive_extraction=no ;;
  6553. esac
  6554. # If no C compiler was specified, use CC.
  6555. LTCC=${LTCC-"$CC"}
  6556. # If no C compiler flags were specified, use CFLAGS.
  6557. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6558. # Allow CC to be a program name with arguments.
  6559. compiler=$CC
  6560. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6562. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6563. if test ${lt_cv_sys_global_symbol_pipe+y}
  6564. then :
  6565. printf %s "(cached) " >&6
  6566. else $as_nop
  6567. # These are sane defaults that work on at least a few old systems.
  6568. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6569. # Character class describing NM global symbol codes.
  6570. symcode='[BCDEGRST]'
  6571. # Regexp to match symbols that can be accessed directly from C.
  6572. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6573. # Define system-specific variables.
  6574. case $host_os in
  6575. aix*)
  6576. symcode='[BCDT]'
  6577. ;;
  6578. cygwin* | mingw* | pw32* | cegcc*)
  6579. symcode='[ABCDGISTW]'
  6580. ;;
  6581. hpux*)
  6582. if test ia64 = "$host_cpu"; then
  6583. symcode='[ABCDEGRST]'
  6584. fi
  6585. ;;
  6586. irix* | nonstopux*)
  6587. symcode='[BCDEGRST]'
  6588. ;;
  6589. osf*)
  6590. symcode='[BCDEGQRST]'
  6591. ;;
  6592. solaris*)
  6593. symcode='[BDRT]'
  6594. ;;
  6595. sco3.2v5*)
  6596. symcode='[DT]'
  6597. ;;
  6598. sysv4.2uw2*)
  6599. symcode='[DT]'
  6600. ;;
  6601. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6602. symcode='[ABDT]'
  6603. ;;
  6604. sysv4)
  6605. symcode='[DFNSTU]'
  6606. ;;
  6607. esac
  6608. # If we're using GNU nm, then use its standard symbol codes.
  6609. case `$NM -V 2>&1` in
  6610. *GNU* | *'with BFD'*)
  6611. symcode='[ABCDGIRSTW]' ;;
  6612. esac
  6613. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6614. # Gets list of data symbols to import.
  6615. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6616. # Adjust the below global symbol transforms to fixup imported variables.
  6617. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6618. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6619. lt_c_name_lib_hook="\
  6620. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6621. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6622. else
  6623. # Disable hooks by default.
  6624. lt_cv_sys_global_symbol_to_import=
  6625. lt_cdecl_hook=
  6626. lt_c_name_hook=
  6627. lt_c_name_lib_hook=
  6628. fi
  6629. # Transform an extracted symbol line into a proper C declaration.
  6630. # Some systems (esp. on ia64) link data and code symbols differently,
  6631. # so use this general approach.
  6632. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6633. $lt_cdecl_hook\
  6634. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6635. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6636. # Transform an extracted symbol line into symbol name and symbol address
  6637. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6638. $lt_c_name_hook\
  6639. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6640. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6641. # Transform an extracted symbol line into symbol name with lib prefix and
  6642. # symbol address.
  6643. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6644. $lt_c_name_lib_hook\
  6645. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6646. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6647. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6648. # Handle CRLF in mingw tool chain
  6649. opt_cr=
  6650. case $build_os in
  6651. mingw*)
  6652. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6653. ;;
  6654. esac
  6655. # Try without a prefix underscore, then with it.
  6656. for ac_symprfx in "" "_"; do
  6657. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6658. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6659. # Write the raw and C identifiers.
  6660. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6661. # Fake it for dumpbin and say T for any non-static function,
  6662. # D for any global variable and I for any imported variable.
  6663. # Also find C++ and __fastcall symbols from MSVC++,
  6664. # which start with @ or ?.
  6665. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6666. " {last_section=section; section=\$ 3};"\
  6667. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6668. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6669. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6670. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6671. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6672. " \$ 0!~/External *\|/{next};"\
  6673. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6674. " {if(hide[section]) next};"\
  6675. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6676. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6677. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6678. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6679. " ' prfx=^$ac_symprfx"
  6680. else
  6681. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6682. fi
  6683. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6684. # Check to see that the pipe works correctly.
  6685. pipe_works=no
  6686. rm -f conftest*
  6687. cat > conftest.$ac_ext <<_LT_EOF
  6688. #ifdef __cplusplus
  6689. extern "C" {
  6690. #endif
  6691. char nm_test_var;
  6692. void nm_test_func(void);
  6693. void nm_test_func(void){}
  6694. #ifdef __cplusplus
  6695. }
  6696. #endif
  6697. int main(){nm_test_var='a';nm_test_func();return(0);}
  6698. _LT_EOF
  6699. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6700. (eval $ac_compile) 2>&5
  6701. ac_status=$?
  6702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6703. test $ac_status = 0; }; then
  6704. # Now try to grab the symbols.
  6705. nlist=conftest.nm
  6706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6707. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6708. ac_status=$?
  6709. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6710. test $ac_status = 0; } && test -s "$nlist"; then
  6711. # Try sorting and uniquifying the output.
  6712. if sort "$nlist" | uniq > "$nlist"T; then
  6713. mv -f "$nlist"T "$nlist"
  6714. else
  6715. rm -f "$nlist"T
  6716. fi
  6717. # Make sure that we snagged all the symbols we need.
  6718. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6719. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6720. cat <<_LT_EOF > conftest.$ac_ext
  6721. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6722. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6723. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6724. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6725. # define LT_DLSYM_CONST
  6726. #elif defined __osf__
  6727. /* This system does not cope well with relocations in const data. */
  6728. # define LT_DLSYM_CONST
  6729. #else
  6730. # define LT_DLSYM_CONST const
  6731. #endif
  6732. #ifdef __cplusplus
  6733. extern "C" {
  6734. #endif
  6735. _LT_EOF
  6736. # Now generate the symbol file.
  6737. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6738. cat <<_LT_EOF >> conftest.$ac_ext
  6739. /* The mapping between symbol names and symbols. */
  6740. LT_DLSYM_CONST struct {
  6741. const char *name;
  6742. void *address;
  6743. }
  6744. lt__PROGRAM__LTX_preloaded_symbols[] =
  6745. {
  6746. { "@PROGRAM@", (void *) 0 },
  6747. _LT_EOF
  6748. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6749. cat <<\_LT_EOF >> conftest.$ac_ext
  6750. {0, (void *) 0}
  6751. };
  6752. /* This works around a problem in FreeBSD linker */
  6753. #ifdef FREEBSD_WORKAROUND
  6754. static const void *lt_preloaded_setup() {
  6755. return lt__PROGRAM__LTX_preloaded_symbols;
  6756. }
  6757. #endif
  6758. #ifdef __cplusplus
  6759. }
  6760. #endif
  6761. _LT_EOF
  6762. # Now try linking the two files.
  6763. mv conftest.$ac_objext conftstm.$ac_objext
  6764. lt_globsym_save_LIBS=$LIBS
  6765. lt_globsym_save_CFLAGS=$CFLAGS
  6766. LIBS=conftstm.$ac_objext
  6767. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6768. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6769. (eval $ac_link) 2>&5
  6770. ac_status=$?
  6771. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6772. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6773. pipe_works=yes
  6774. fi
  6775. LIBS=$lt_globsym_save_LIBS
  6776. CFLAGS=$lt_globsym_save_CFLAGS
  6777. else
  6778. echo "cannot find nm_test_func in $nlist" >&5
  6779. fi
  6780. else
  6781. echo "cannot find nm_test_var in $nlist" >&5
  6782. fi
  6783. else
  6784. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6785. fi
  6786. else
  6787. echo "$progname: failed program was:" >&5
  6788. cat conftest.$ac_ext >&5
  6789. fi
  6790. rm -rf conftest* conftst*
  6791. # Do not use the global_symbol_pipe unless it works.
  6792. if test yes = "$pipe_works"; then
  6793. break
  6794. else
  6795. lt_cv_sys_global_symbol_pipe=
  6796. fi
  6797. done
  6798. fi
  6799. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6800. lt_cv_sys_global_symbol_to_cdecl=
  6801. fi
  6802. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6804. printf "%s\n" "failed" >&6; }
  6805. else
  6806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6807. printf "%s\n" "ok" >&6; }
  6808. fi
  6809. # Response file support.
  6810. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6811. nm_file_list_spec='@'
  6812. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6813. nm_file_list_spec='@'
  6814. fi
  6815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6816. printf %s "checking for sysroot... " >&6; }
  6817. # Check whether --with-sysroot was given.
  6818. if test ${with_sysroot+y}
  6819. then :
  6820. withval=$with_sysroot;
  6821. else $as_nop
  6822. with_sysroot=no
  6823. fi
  6824. lt_sysroot=
  6825. case $with_sysroot in #(
  6826. yes)
  6827. if test yes = "$GCC"; then
  6828. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6829. fi
  6830. ;; #(
  6831. /*)
  6832. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6833. ;; #(
  6834. no|'')
  6835. ;; #(
  6836. *)
  6837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6838. printf "%s\n" "$with_sysroot" >&6; }
  6839. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6840. ;;
  6841. esac
  6842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6843. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6845. printf %s "checking for a working dd... " >&6; }
  6846. if test ${ac_cv_path_lt_DD+y}
  6847. then :
  6848. printf %s "(cached) " >&6
  6849. else $as_nop
  6850. printf 0123456789abcdef0123456789abcdef >conftest.i
  6851. cat conftest.i conftest.i >conftest2.i
  6852. : ${lt_DD:=$DD}
  6853. if test -z "$lt_DD"; then
  6854. ac_path_lt_DD_found=false
  6855. # Loop through the user's path and test for each of PROGNAME-LIST
  6856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6857. for as_dir in $PATH
  6858. do
  6859. IFS=$as_save_IFS
  6860. case $as_dir in #(((
  6861. '') as_dir=./ ;;
  6862. */) ;;
  6863. *) as_dir=$as_dir/ ;;
  6864. esac
  6865. for ac_prog in dd
  6866. do
  6867. for ac_exec_ext in '' $ac_executable_extensions; do
  6868. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6869. as_fn_executable_p "$ac_path_lt_DD" || continue
  6870. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6871. cmp -s conftest.i conftest.out \
  6872. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6873. fi
  6874. $ac_path_lt_DD_found && break 3
  6875. done
  6876. done
  6877. done
  6878. IFS=$as_save_IFS
  6879. if test -z "$ac_cv_path_lt_DD"; then
  6880. :
  6881. fi
  6882. else
  6883. ac_cv_path_lt_DD=$lt_DD
  6884. fi
  6885. rm -f conftest.i conftest2.i conftest.out
  6886. fi
  6887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6888. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6890. printf %s "checking how to truncate binary pipes... " >&6; }
  6891. if test ${lt_cv_truncate_bin+y}
  6892. then :
  6893. printf %s "(cached) " >&6
  6894. else $as_nop
  6895. printf 0123456789abcdef0123456789abcdef >conftest.i
  6896. cat conftest.i conftest.i >conftest2.i
  6897. lt_cv_truncate_bin=
  6898. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6899. cmp -s conftest.i conftest.out \
  6900. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6901. fi
  6902. rm -f conftest.i conftest2.i conftest.out
  6903. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6904. fi
  6905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6906. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6907. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6908. func_cc_basename ()
  6909. {
  6910. for cc_temp in $*""; do
  6911. case $cc_temp in
  6912. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6913. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6914. \-*) ;;
  6915. *) break;;
  6916. esac
  6917. done
  6918. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6919. }
  6920. # Check whether --enable-libtool-lock was given.
  6921. if test ${enable_libtool_lock+y}
  6922. then :
  6923. enableval=$enable_libtool_lock;
  6924. fi
  6925. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6926. # Some flags need to be propagated to the compiler or linker for good
  6927. # libtool support.
  6928. case $host in
  6929. ia64-*-hpux*)
  6930. # Find out what ABI is being produced by ac_compile, and set mode
  6931. # options accordingly.
  6932. echo 'int i;' > conftest.$ac_ext
  6933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6934. (eval $ac_compile) 2>&5
  6935. ac_status=$?
  6936. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6937. test $ac_status = 0; }; then
  6938. case `/usr/bin/file conftest.$ac_objext` in
  6939. *ELF-32*)
  6940. HPUX_IA64_MODE=32
  6941. ;;
  6942. *ELF-64*)
  6943. HPUX_IA64_MODE=64
  6944. ;;
  6945. esac
  6946. fi
  6947. rm -rf conftest*
  6948. ;;
  6949. *-*-irix6*)
  6950. # Find out what ABI is being produced by ac_compile, and set linker
  6951. # options accordingly.
  6952. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6953. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6954. (eval $ac_compile) 2>&5
  6955. ac_status=$?
  6956. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6957. test $ac_status = 0; }; then
  6958. if test yes = "$lt_cv_prog_gnu_ld"; then
  6959. case `/usr/bin/file conftest.$ac_objext` in
  6960. *32-bit*)
  6961. LD="${LD-ld} -melf32bsmip"
  6962. ;;
  6963. *N32*)
  6964. LD="${LD-ld} -melf32bmipn32"
  6965. ;;
  6966. *64-bit*)
  6967. LD="${LD-ld} -melf64bmip"
  6968. ;;
  6969. esac
  6970. else
  6971. case `/usr/bin/file conftest.$ac_objext` in
  6972. *32-bit*)
  6973. LD="${LD-ld} -32"
  6974. ;;
  6975. *N32*)
  6976. LD="${LD-ld} -n32"
  6977. ;;
  6978. *64-bit*)
  6979. LD="${LD-ld} -64"
  6980. ;;
  6981. esac
  6982. fi
  6983. fi
  6984. rm -rf conftest*
  6985. ;;
  6986. mips64*-*linux*)
  6987. # Find out what ABI is being produced by ac_compile, and set linker
  6988. # options accordingly.
  6989. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6990. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6991. (eval $ac_compile) 2>&5
  6992. ac_status=$?
  6993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6994. test $ac_status = 0; }; then
  6995. emul=elf
  6996. case `/usr/bin/file conftest.$ac_objext` in
  6997. *32-bit*)
  6998. emul="${emul}32"
  6999. ;;
  7000. *64-bit*)
  7001. emul="${emul}64"
  7002. ;;
  7003. esac
  7004. case `/usr/bin/file conftest.$ac_objext` in
  7005. *MSB*)
  7006. emul="${emul}btsmip"
  7007. ;;
  7008. *LSB*)
  7009. emul="${emul}ltsmip"
  7010. ;;
  7011. esac
  7012. case `/usr/bin/file conftest.$ac_objext` in
  7013. *N32*)
  7014. emul="${emul}n32"
  7015. ;;
  7016. esac
  7017. LD="${LD-ld} -m $emul"
  7018. fi
  7019. rm -rf conftest*
  7020. ;;
  7021. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7022. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7023. # Find out what ABI is being produced by ac_compile, and set linker
  7024. # options accordingly. Note that the listed cases only cover the
  7025. # situations where additional linker options are needed (such as when
  7026. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7027. # vice versa); the common cases where no linker options are needed do
  7028. # not appear in the list.
  7029. echo 'int i;' > conftest.$ac_ext
  7030. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7031. (eval $ac_compile) 2>&5
  7032. ac_status=$?
  7033. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7034. test $ac_status = 0; }; then
  7035. case `/usr/bin/file conftest.o` in
  7036. *32-bit*)
  7037. case $host in
  7038. x86_64-*kfreebsd*-gnu)
  7039. LD="${LD-ld} -m elf_i386_fbsd"
  7040. ;;
  7041. x86_64-*linux*)
  7042. case `/usr/bin/file conftest.o` in
  7043. *x86-64*)
  7044. LD="${LD-ld} -m elf32_x86_64"
  7045. ;;
  7046. *)
  7047. LD="${LD-ld} -m elf_i386"
  7048. ;;
  7049. esac
  7050. ;;
  7051. powerpc64le-*linux*)
  7052. LD="${LD-ld} -m elf32lppclinux"
  7053. ;;
  7054. powerpc64-*linux*)
  7055. LD="${LD-ld} -m elf32ppclinux"
  7056. ;;
  7057. s390x-*linux*)
  7058. LD="${LD-ld} -m elf_s390"
  7059. ;;
  7060. sparc64-*linux*)
  7061. LD="${LD-ld} -m elf32_sparc"
  7062. ;;
  7063. esac
  7064. ;;
  7065. *64-bit*)
  7066. case $host in
  7067. x86_64-*kfreebsd*-gnu)
  7068. LD="${LD-ld} -m elf_x86_64_fbsd"
  7069. ;;
  7070. x86_64-*linux*)
  7071. LD="${LD-ld} -m elf_x86_64"
  7072. ;;
  7073. powerpcle-*linux*)
  7074. LD="${LD-ld} -m elf64lppc"
  7075. ;;
  7076. powerpc-*linux*)
  7077. LD="${LD-ld} -m elf64ppc"
  7078. ;;
  7079. s390*-*linux*|s390*-*tpf*)
  7080. LD="${LD-ld} -m elf64_s390"
  7081. ;;
  7082. sparc*-*linux*)
  7083. LD="${LD-ld} -m elf64_sparc"
  7084. ;;
  7085. esac
  7086. ;;
  7087. esac
  7088. fi
  7089. rm -rf conftest*
  7090. ;;
  7091. *-*-sco3.2v5*)
  7092. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7093. SAVE_CFLAGS=$CFLAGS
  7094. CFLAGS="$CFLAGS -belf"
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7096. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7097. if test ${lt_cv_cc_needs_belf+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. ac_ext=c
  7102. ac_cpp='$CPP $CPPFLAGS'
  7103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7107. /* end confdefs.h. */
  7108. int
  7109. main (void)
  7110. {
  7111. ;
  7112. return 0;
  7113. }
  7114. _ACEOF
  7115. if ac_fn_c_try_link "$LINENO"
  7116. then :
  7117. lt_cv_cc_needs_belf=yes
  7118. else $as_nop
  7119. lt_cv_cc_needs_belf=no
  7120. fi
  7121. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7122. conftest$ac_exeext conftest.$ac_ext
  7123. ac_ext=c
  7124. ac_cpp='$CPP $CPPFLAGS'
  7125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7128. fi
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7130. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7131. if test yes != "$lt_cv_cc_needs_belf"; then
  7132. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7133. CFLAGS=$SAVE_CFLAGS
  7134. fi
  7135. ;;
  7136. *-*solaris*)
  7137. # Find out what ABI is being produced by ac_compile, and set linker
  7138. # options accordingly.
  7139. echo 'int i;' > conftest.$ac_ext
  7140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7141. (eval $ac_compile) 2>&5
  7142. ac_status=$?
  7143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7144. test $ac_status = 0; }; then
  7145. case `/usr/bin/file conftest.o` in
  7146. *64-bit*)
  7147. case $lt_cv_prog_gnu_ld in
  7148. yes*)
  7149. case $host in
  7150. i?86-*-solaris*|x86_64-*-solaris*)
  7151. LD="${LD-ld} -m elf_x86_64"
  7152. ;;
  7153. sparc*-*-solaris*)
  7154. LD="${LD-ld} -m elf64_sparc"
  7155. ;;
  7156. esac
  7157. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7158. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7159. LD=${LD-ld}_sol2
  7160. fi
  7161. ;;
  7162. *)
  7163. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7164. LD="${LD-ld} -64"
  7165. fi
  7166. ;;
  7167. esac
  7168. ;;
  7169. esac
  7170. fi
  7171. rm -rf conftest*
  7172. ;;
  7173. esac
  7174. need_locks=$enable_libtool_lock
  7175. if test -n "$ac_tool_prefix"; then
  7176. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7177. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7179. printf %s "checking for $ac_word... " >&6; }
  7180. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7181. then :
  7182. printf %s "(cached) " >&6
  7183. else $as_nop
  7184. if test -n "$MANIFEST_TOOL"; then
  7185. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7186. else
  7187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7188. for as_dir in $PATH
  7189. do
  7190. IFS=$as_save_IFS
  7191. case $as_dir in #(((
  7192. '') as_dir=./ ;;
  7193. */) ;;
  7194. *) as_dir=$as_dir/ ;;
  7195. esac
  7196. for ac_exec_ext in '' $ac_executable_extensions; do
  7197. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7198. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7199. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7200. break 2
  7201. fi
  7202. done
  7203. done
  7204. IFS=$as_save_IFS
  7205. fi
  7206. fi
  7207. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7208. if test -n "$MANIFEST_TOOL"; then
  7209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7210. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7211. else
  7212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7213. printf "%s\n" "no" >&6; }
  7214. fi
  7215. fi
  7216. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7217. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7218. # Extract the first word of "mt", so it can be a program name with args.
  7219. set dummy mt; ac_word=$2
  7220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7221. printf %s "checking for $ac_word... " >&6; }
  7222. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7223. then :
  7224. printf %s "(cached) " >&6
  7225. else $as_nop
  7226. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7227. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7228. else
  7229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7230. for as_dir in $PATH
  7231. do
  7232. IFS=$as_save_IFS
  7233. case $as_dir in #(((
  7234. '') as_dir=./ ;;
  7235. */) ;;
  7236. *) as_dir=$as_dir/ ;;
  7237. esac
  7238. for ac_exec_ext in '' $ac_executable_extensions; do
  7239. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7240. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7241. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7242. break 2
  7243. fi
  7244. done
  7245. done
  7246. IFS=$as_save_IFS
  7247. fi
  7248. fi
  7249. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7250. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7252. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7253. else
  7254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7255. printf "%s\n" "no" >&6; }
  7256. fi
  7257. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7258. MANIFEST_TOOL=":"
  7259. else
  7260. case $cross_compiling:$ac_tool_warned in
  7261. yes:)
  7262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7263. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7264. ac_tool_warned=yes ;;
  7265. esac
  7266. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7267. fi
  7268. else
  7269. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7270. fi
  7271. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7273. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7274. if test ${lt_cv_path_mainfest_tool+y}
  7275. then :
  7276. printf %s "(cached) " >&6
  7277. else $as_nop
  7278. lt_cv_path_mainfest_tool=no
  7279. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7280. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7281. cat conftest.err >&5
  7282. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7283. lt_cv_path_mainfest_tool=yes
  7284. fi
  7285. rm -f conftest*
  7286. fi
  7287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7288. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7289. if test yes != "$lt_cv_path_mainfest_tool"; then
  7290. MANIFEST_TOOL=:
  7291. fi
  7292. case $host_os in
  7293. rhapsody* | darwin*)
  7294. if test -n "$ac_tool_prefix"; then
  7295. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7296. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7298. printf %s "checking for $ac_word... " >&6; }
  7299. if test ${ac_cv_prog_DSYMUTIL+y}
  7300. then :
  7301. printf %s "(cached) " >&6
  7302. else $as_nop
  7303. if test -n "$DSYMUTIL"; then
  7304. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7305. else
  7306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7307. for as_dir in $PATH
  7308. do
  7309. IFS=$as_save_IFS
  7310. case $as_dir in #(((
  7311. '') as_dir=./ ;;
  7312. */) ;;
  7313. *) as_dir=$as_dir/ ;;
  7314. esac
  7315. for ac_exec_ext in '' $ac_executable_extensions; do
  7316. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7317. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7318. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7319. break 2
  7320. fi
  7321. done
  7322. done
  7323. IFS=$as_save_IFS
  7324. fi
  7325. fi
  7326. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7327. if test -n "$DSYMUTIL"; then
  7328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7329. printf "%s\n" "$DSYMUTIL" >&6; }
  7330. else
  7331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7332. printf "%s\n" "no" >&6; }
  7333. fi
  7334. fi
  7335. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7336. ac_ct_DSYMUTIL=$DSYMUTIL
  7337. # Extract the first word of "dsymutil", so it can be a program name with args.
  7338. set dummy dsymutil; ac_word=$2
  7339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7340. printf %s "checking for $ac_word... " >&6; }
  7341. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7342. then :
  7343. printf %s "(cached) " >&6
  7344. else $as_nop
  7345. if test -n "$ac_ct_DSYMUTIL"; then
  7346. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7347. else
  7348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7349. for as_dir in $PATH
  7350. do
  7351. IFS=$as_save_IFS
  7352. case $as_dir in #(((
  7353. '') as_dir=./ ;;
  7354. */) ;;
  7355. *) as_dir=$as_dir/ ;;
  7356. esac
  7357. for ac_exec_ext in '' $ac_executable_extensions; do
  7358. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7359. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7360. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7361. break 2
  7362. fi
  7363. done
  7364. done
  7365. IFS=$as_save_IFS
  7366. fi
  7367. fi
  7368. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7369. if test -n "$ac_ct_DSYMUTIL"; then
  7370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7371. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7372. else
  7373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7374. printf "%s\n" "no" >&6; }
  7375. fi
  7376. if test "x$ac_ct_DSYMUTIL" = x; then
  7377. DSYMUTIL=":"
  7378. else
  7379. case $cross_compiling:$ac_tool_warned in
  7380. yes:)
  7381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7382. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7383. ac_tool_warned=yes ;;
  7384. esac
  7385. DSYMUTIL=$ac_ct_DSYMUTIL
  7386. fi
  7387. else
  7388. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7389. fi
  7390. if test -n "$ac_tool_prefix"; then
  7391. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7392. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7394. printf %s "checking for $ac_word... " >&6; }
  7395. if test ${ac_cv_prog_NMEDIT+y}
  7396. then :
  7397. printf %s "(cached) " >&6
  7398. else $as_nop
  7399. if test -n "$NMEDIT"; then
  7400. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7401. else
  7402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7403. for as_dir in $PATH
  7404. do
  7405. IFS=$as_save_IFS
  7406. case $as_dir in #(((
  7407. '') as_dir=./ ;;
  7408. */) ;;
  7409. *) as_dir=$as_dir/ ;;
  7410. esac
  7411. for ac_exec_ext in '' $ac_executable_extensions; do
  7412. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7413. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7414. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7415. break 2
  7416. fi
  7417. done
  7418. done
  7419. IFS=$as_save_IFS
  7420. fi
  7421. fi
  7422. NMEDIT=$ac_cv_prog_NMEDIT
  7423. if test -n "$NMEDIT"; then
  7424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7425. printf "%s\n" "$NMEDIT" >&6; }
  7426. else
  7427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7428. printf "%s\n" "no" >&6; }
  7429. fi
  7430. fi
  7431. if test -z "$ac_cv_prog_NMEDIT"; then
  7432. ac_ct_NMEDIT=$NMEDIT
  7433. # Extract the first word of "nmedit", so it can be a program name with args.
  7434. set dummy nmedit; ac_word=$2
  7435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7436. printf %s "checking for $ac_word... " >&6; }
  7437. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7438. then :
  7439. printf %s "(cached) " >&6
  7440. else $as_nop
  7441. if test -n "$ac_ct_NMEDIT"; then
  7442. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7443. else
  7444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7445. for as_dir in $PATH
  7446. do
  7447. IFS=$as_save_IFS
  7448. case $as_dir in #(((
  7449. '') as_dir=./ ;;
  7450. */) ;;
  7451. *) as_dir=$as_dir/ ;;
  7452. esac
  7453. for ac_exec_ext in '' $ac_executable_extensions; do
  7454. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7455. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7457. break 2
  7458. fi
  7459. done
  7460. done
  7461. IFS=$as_save_IFS
  7462. fi
  7463. fi
  7464. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7465. if test -n "$ac_ct_NMEDIT"; then
  7466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7467. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7468. else
  7469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7470. printf "%s\n" "no" >&6; }
  7471. fi
  7472. if test "x$ac_ct_NMEDIT" = x; then
  7473. NMEDIT=":"
  7474. else
  7475. case $cross_compiling:$ac_tool_warned in
  7476. yes:)
  7477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7478. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7479. ac_tool_warned=yes ;;
  7480. esac
  7481. NMEDIT=$ac_ct_NMEDIT
  7482. fi
  7483. else
  7484. NMEDIT="$ac_cv_prog_NMEDIT"
  7485. fi
  7486. if test -n "$ac_tool_prefix"; then
  7487. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7488. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7490. printf %s "checking for $ac_word... " >&6; }
  7491. if test ${ac_cv_prog_LIPO+y}
  7492. then :
  7493. printf %s "(cached) " >&6
  7494. else $as_nop
  7495. if test -n "$LIPO"; then
  7496. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7497. else
  7498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7499. for as_dir in $PATH
  7500. do
  7501. IFS=$as_save_IFS
  7502. case $as_dir in #(((
  7503. '') as_dir=./ ;;
  7504. */) ;;
  7505. *) as_dir=$as_dir/ ;;
  7506. esac
  7507. for ac_exec_ext in '' $ac_executable_extensions; do
  7508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7509. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7511. break 2
  7512. fi
  7513. done
  7514. done
  7515. IFS=$as_save_IFS
  7516. fi
  7517. fi
  7518. LIPO=$ac_cv_prog_LIPO
  7519. if test -n "$LIPO"; then
  7520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7521. printf "%s\n" "$LIPO" >&6; }
  7522. else
  7523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7524. printf "%s\n" "no" >&6; }
  7525. fi
  7526. fi
  7527. if test -z "$ac_cv_prog_LIPO"; then
  7528. ac_ct_LIPO=$LIPO
  7529. # Extract the first word of "lipo", so it can be a program name with args.
  7530. set dummy lipo; ac_word=$2
  7531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7532. printf %s "checking for $ac_word... " >&6; }
  7533. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7534. then :
  7535. printf %s "(cached) " >&6
  7536. else $as_nop
  7537. if test -n "$ac_ct_LIPO"; then
  7538. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7539. else
  7540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7541. for as_dir in $PATH
  7542. do
  7543. IFS=$as_save_IFS
  7544. case $as_dir in #(((
  7545. '') as_dir=./ ;;
  7546. */) ;;
  7547. *) as_dir=$as_dir/ ;;
  7548. esac
  7549. for ac_exec_ext in '' $ac_executable_extensions; do
  7550. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7551. ac_cv_prog_ac_ct_LIPO="lipo"
  7552. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7553. break 2
  7554. fi
  7555. done
  7556. done
  7557. IFS=$as_save_IFS
  7558. fi
  7559. fi
  7560. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7561. if test -n "$ac_ct_LIPO"; then
  7562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7563. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7564. else
  7565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7566. printf "%s\n" "no" >&6; }
  7567. fi
  7568. if test "x$ac_ct_LIPO" = x; then
  7569. LIPO=":"
  7570. else
  7571. case $cross_compiling:$ac_tool_warned in
  7572. yes:)
  7573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7574. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7575. ac_tool_warned=yes ;;
  7576. esac
  7577. LIPO=$ac_ct_LIPO
  7578. fi
  7579. else
  7580. LIPO="$ac_cv_prog_LIPO"
  7581. fi
  7582. if test -n "$ac_tool_prefix"; then
  7583. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7584. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7586. printf %s "checking for $ac_word... " >&6; }
  7587. if test ${ac_cv_prog_OTOOL+y}
  7588. then :
  7589. printf %s "(cached) " >&6
  7590. else $as_nop
  7591. if test -n "$OTOOL"; then
  7592. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7593. else
  7594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7595. for as_dir in $PATH
  7596. do
  7597. IFS=$as_save_IFS
  7598. case $as_dir in #(((
  7599. '') as_dir=./ ;;
  7600. */) ;;
  7601. *) as_dir=$as_dir/ ;;
  7602. esac
  7603. for ac_exec_ext in '' $ac_executable_extensions; do
  7604. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7605. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7607. break 2
  7608. fi
  7609. done
  7610. done
  7611. IFS=$as_save_IFS
  7612. fi
  7613. fi
  7614. OTOOL=$ac_cv_prog_OTOOL
  7615. if test -n "$OTOOL"; then
  7616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7617. printf "%s\n" "$OTOOL" >&6; }
  7618. else
  7619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7620. printf "%s\n" "no" >&6; }
  7621. fi
  7622. fi
  7623. if test -z "$ac_cv_prog_OTOOL"; then
  7624. ac_ct_OTOOL=$OTOOL
  7625. # Extract the first word of "otool", so it can be a program name with args.
  7626. set dummy otool; ac_word=$2
  7627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7628. printf %s "checking for $ac_word... " >&6; }
  7629. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7630. then :
  7631. printf %s "(cached) " >&6
  7632. else $as_nop
  7633. if test -n "$ac_ct_OTOOL"; then
  7634. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7635. else
  7636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7637. for as_dir in $PATH
  7638. do
  7639. IFS=$as_save_IFS
  7640. case $as_dir in #(((
  7641. '') as_dir=./ ;;
  7642. */) ;;
  7643. *) as_dir=$as_dir/ ;;
  7644. esac
  7645. for ac_exec_ext in '' $ac_executable_extensions; do
  7646. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7647. ac_cv_prog_ac_ct_OTOOL="otool"
  7648. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7649. break 2
  7650. fi
  7651. done
  7652. done
  7653. IFS=$as_save_IFS
  7654. fi
  7655. fi
  7656. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7657. if test -n "$ac_ct_OTOOL"; then
  7658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7659. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7660. else
  7661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7662. printf "%s\n" "no" >&6; }
  7663. fi
  7664. if test "x$ac_ct_OTOOL" = x; then
  7665. OTOOL=":"
  7666. else
  7667. case $cross_compiling:$ac_tool_warned in
  7668. yes:)
  7669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7670. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7671. ac_tool_warned=yes ;;
  7672. esac
  7673. OTOOL=$ac_ct_OTOOL
  7674. fi
  7675. else
  7676. OTOOL="$ac_cv_prog_OTOOL"
  7677. fi
  7678. if test -n "$ac_tool_prefix"; then
  7679. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7680. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7682. printf %s "checking for $ac_word... " >&6; }
  7683. if test ${ac_cv_prog_OTOOL64+y}
  7684. then :
  7685. printf %s "(cached) " >&6
  7686. else $as_nop
  7687. if test -n "$OTOOL64"; then
  7688. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7689. else
  7690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7691. for as_dir in $PATH
  7692. do
  7693. IFS=$as_save_IFS
  7694. case $as_dir in #(((
  7695. '') as_dir=./ ;;
  7696. */) ;;
  7697. *) as_dir=$as_dir/ ;;
  7698. esac
  7699. for ac_exec_ext in '' $ac_executable_extensions; do
  7700. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7701. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7703. break 2
  7704. fi
  7705. done
  7706. done
  7707. IFS=$as_save_IFS
  7708. fi
  7709. fi
  7710. OTOOL64=$ac_cv_prog_OTOOL64
  7711. if test -n "$OTOOL64"; then
  7712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7713. printf "%s\n" "$OTOOL64" >&6; }
  7714. else
  7715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7716. printf "%s\n" "no" >&6; }
  7717. fi
  7718. fi
  7719. if test -z "$ac_cv_prog_OTOOL64"; then
  7720. ac_ct_OTOOL64=$OTOOL64
  7721. # Extract the first word of "otool64", so it can be a program name with args.
  7722. set dummy otool64; ac_word=$2
  7723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7724. printf %s "checking for $ac_word... " >&6; }
  7725. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7726. then :
  7727. printf %s "(cached) " >&6
  7728. else $as_nop
  7729. if test -n "$ac_ct_OTOOL64"; then
  7730. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7731. else
  7732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7733. for as_dir in $PATH
  7734. do
  7735. IFS=$as_save_IFS
  7736. case $as_dir in #(((
  7737. '') as_dir=./ ;;
  7738. */) ;;
  7739. *) as_dir=$as_dir/ ;;
  7740. esac
  7741. for ac_exec_ext in '' $ac_executable_extensions; do
  7742. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7743. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7745. break 2
  7746. fi
  7747. done
  7748. done
  7749. IFS=$as_save_IFS
  7750. fi
  7751. fi
  7752. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7753. if test -n "$ac_ct_OTOOL64"; then
  7754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7755. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7756. else
  7757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7758. printf "%s\n" "no" >&6; }
  7759. fi
  7760. if test "x$ac_ct_OTOOL64" = x; then
  7761. OTOOL64=":"
  7762. else
  7763. case $cross_compiling:$ac_tool_warned in
  7764. yes:)
  7765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7766. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7767. ac_tool_warned=yes ;;
  7768. esac
  7769. OTOOL64=$ac_ct_OTOOL64
  7770. fi
  7771. else
  7772. OTOOL64="$ac_cv_prog_OTOOL64"
  7773. fi
  7774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7775. printf %s "checking for -single_module linker flag... " >&6; }
  7776. if test ${lt_cv_apple_cc_single_mod+y}
  7777. then :
  7778. printf %s "(cached) " >&6
  7779. else $as_nop
  7780. lt_cv_apple_cc_single_mod=no
  7781. if test -z "$LT_MULTI_MODULE"; then
  7782. # By default we will add the -single_module flag. You can override
  7783. # by either setting the environment variable LT_MULTI_MODULE
  7784. # non-empty at configure time, or by adding -multi_module to the
  7785. # link flags.
  7786. rm -rf libconftest.dylib*
  7787. echo "int foo(void){return 1;}" > conftest.c
  7788. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7789. -dynamiclib -Wl,-single_module conftest.c" >&5
  7790. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7791. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7792. _lt_result=$?
  7793. # If there is a non-empty error log, and "single_module"
  7794. # appears in it, assume the flag caused a linker warning
  7795. if test -s conftest.err && $GREP single_module conftest.err; then
  7796. cat conftest.err >&5
  7797. # Otherwise, if the output was created with a 0 exit code from
  7798. # the compiler, it worked.
  7799. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7800. lt_cv_apple_cc_single_mod=yes
  7801. else
  7802. cat conftest.err >&5
  7803. fi
  7804. rm -rf libconftest.dylib*
  7805. rm -f conftest.*
  7806. fi
  7807. fi
  7808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7809. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7811. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7812. if test ${lt_cv_ld_exported_symbols_list+y}
  7813. then :
  7814. printf %s "(cached) " >&6
  7815. else $as_nop
  7816. lt_cv_ld_exported_symbols_list=no
  7817. save_LDFLAGS=$LDFLAGS
  7818. echo "_main" > conftest.sym
  7819. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7821. /* end confdefs.h. */
  7822. int
  7823. main (void)
  7824. {
  7825. ;
  7826. return 0;
  7827. }
  7828. _ACEOF
  7829. if ac_fn_c_try_link "$LINENO"
  7830. then :
  7831. lt_cv_ld_exported_symbols_list=yes
  7832. else $as_nop
  7833. lt_cv_ld_exported_symbols_list=no
  7834. fi
  7835. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7836. conftest$ac_exeext conftest.$ac_ext
  7837. LDFLAGS=$save_LDFLAGS
  7838. fi
  7839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7840. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7842. printf %s "checking for -force_load linker flag... " >&6; }
  7843. if test ${lt_cv_ld_force_load+y}
  7844. then :
  7845. printf %s "(cached) " >&6
  7846. else $as_nop
  7847. lt_cv_ld_force_load=no
  7848. cat > conftest.c << _LT_EOF
  7849. int forced_loaded() { return 2;}
  7850. _LT_EOF
  7851. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7852. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7853. echo "$AR cru libconftest.a conftest.o" >&5
  7854. $AR cru libconftest.a conftest.o 2>&5
  7855. echo "$RANLIB libconftest.a" >&5
  7856. $RANLIB libconftest.a 2>&5
  7857. cat > conftest.c << _LT_EOF
  7858. int main() { return 0;}
  7859. _LT_EOF
  7860. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7861. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7862. _lt_result=$?
  7863. if test -s conftest.err && $GREP force_load conftest.err; then
  7864. cat conftest.err >&5
  7865. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7866. lt_cv_ld_force_load=yes
  7867. else
  7868. cat conftest.err >&5
  7869. fi
  7870. rm -f conftest.err libconftest.a conftest conftest.c
  7871. rm -rf conftest.dSYM
  7872. fi
  7873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7874. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7875. case $host_os in
  7876. rhapsody* | darwin1.[012])
  7877. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7878. darwin1.*)
  7879. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7880. darwin*) # darwin 5.x on
  7881. # if running on 10.5 or later, the deployment target defaults
  7882. # to the OS version, if on x86, and 10.4, the deployment
  7883. # target defaults to 10.4. Don't you love it?
  7884. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7885. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7886. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7887. 10.[012][,.]*)
  7888. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7889. 10.*)
  7890. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7891. esac
  7892. ;;
  7893. esac
  7894. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7895. _lt_dar_single_mod='$single_module'
  7896. fi
  7897. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7898. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7899. else
  7900. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7901. fi
  7902. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7903. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7904. else
  7905. _lt_dsymutil=
  7906. fi
  7907. ;;
  7908. esac
  7909. # func_munge_path_list VARIABLE PATH
  7910. # -----------------------------------
  7911. # VARIABLE is name of variable containing _space_ separated list of
  7912. # directories to be munged by the contents of PATH, which is string
  7913. # having a format:
  7914. # "DIR[:DIR]:"
  7915. # string "DIR[ DIR]" will be prepended to VARIABLE
  7916. # ":DIR[:DIR]"
  7917. # string "DIR[ DIR]" will be appended to VARIABLE
  7918. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7919. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7920. # "DIRA[ DIRA]" will be appended to VARIABLE
  7921. # "DIR[:DIR]"
  7922. # VARIABLE will be replaced by "DIR[ DIR]"
  7923. func_munge_path_list ()
  7924. {
  7925. case x$2 in
  7926. x)
  7927. ;;
  7928. *:)
  7929. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7930. ;;
  7931. x:*)
  7932. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7933. ;;
  7934. *::*)
  7935. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7936. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7937. ;;
  7938. *)
  7939. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7940. ;;
  7941. esac
  7942. }
  7943. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7944. "
  7945. if test "x$ac_cv_header_dlfcn_h" = xyes
  7946. then :
  7947. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7948. fi
  7949. # Set options
  7950. # Check whether --enable-static was given.
  7951. if test ${enable_static+y}
  7952. then :
  7953. enableval=$enable_static; p=${PACKAGE-default}
  7954. case $enableval in
  7955. yes) enable_static=yes ;;
  7956. no) enable_static=no ;;
  7957. *)
  7958. enable_static=no
  7959. # Look at the argument we got. We use all the common list separators.
  7960. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7961. for pkg in $enableval; do
  7962. IFS=$lt_save_ifs
  7963. if test "X$pkg" = "X$p"; then
  7964. enable_static=yes
  7965. fi
  7966. done
  7967. IFS=$lt_save_ifs
  7968. ;;
  7969. esac
  7970. else $as_nop
  7971. enable_static=no
  7972. fi
  7973. # Check whether --with-pic was given.
  7974. if test ${with_pic+y}
  7975. then :
  7976. withval=$with_pic; lt_p=${PACKAGE-default}
  7977. case $withval in
  7978. yes|no) pic_mode=$withval ;;
  7979. *)
  7980. pic_mode=default
  7981. # Look at the argument we got. We use all the common list separators.
  7982. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7983. for lt_pkg in $withval; do
  7984. IFS=$lt_save_ifs
  7985. if test "X$lt_pkg" = "X$lt_p"; then
  7986. pic_mode=yes
  7987. fi
  7988. done
  7989. IFS=$lt_save_ifs
  7990. ;;
  7991. esac
  7992. else $as_nop
  7993. pic_mode=yes
  7994. fi
  7995. enable_dlopen=no
  7996. enable_win32_dll=no
  7997. # Check whether --enable-shared was given.
  7998. if test ${enable_shared+y}
  7999. then :
  8000. enableval=$enable_shared; p=${PACKAGE-default}
  8001. case $enableval in
  8002. yes) enable_shared=yes ;;
  8003. no) enable_shared=no ;;
  8004. *)
  8005. enable_shared=no
  8006. # Look at the argument we got. We use all the common list separators.
  8007. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8008. for pkg in $enableval; do
  8009. IFS=$lt_save_ifs
  8010. if test "X$pkg" = "X$p"; then
  8011. enable_shared=yes
  8012. fi
  8013. done
  8014. IFS=$lt_save_ifs
  8015. ;;
  8016. esac
  8017. else $as_nop
  8018. enable_shared=yes
  8019. fi
  8020. # Check whether --enable-fast-install was given.
  8021. if test ${enable_fast_install+y}
  8022. then :
  8023. enableval=$enable_fast_install; p=${PACKAGE-default}
  8024. case $enableval in
  8025. yes) enable_fast_install=yes ;;
  8026. no) enable_fast_install=no ;;
  8027. *)
  8028. enable_fast_install=no
  8029. # Look at the argument we got. We use all the common list separators.
  8030. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8031. for pkg in $enableval; do
  8032. IFS=$lt_save_ifs
  8033. if test "X$pkg" = "X$p"; then
  8034. enable_fast_install=yes
  8035. fi
  8036. done
  8037. IFS=$lt_save_ifs
  8038. ;;
  8039. esac
  8040. else $as_nop
  8041. enable_fast_install=yes
  8042. fi
  8043. shared_archive_member_spec=
  8044. case $host,$enable_shared in
  8045. power*-*-aix[5-9]*,yes)
  8046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8047. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8048. # Check whether --with-aix-soname was given.
  8049. if test ${with_aix_soname+y}
  8050. then :
  8051. withval=$with_aix_soname; case $withval in
  8052. aix|svr4|both)
  8053. ;;
  8054. *)
  8055. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8056. ;;
  8057. esac
  8058. lt_cv_with_aix_soname=$with_aix_soname
  8059. else $as_nop
  8060. if test ${lt_cv_with_aix_soname+y}
  8061. then :
  8062. printf %s "(cached) " >&6
  8063. else $as_nop
  8064. lt_cv_with_aix_soname=aix
  8065. fi
  8066. with_aix_soname=$lt_cv_with_aix_soname
  8067. fi
  8068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8069. printf "%s\n" "$with_aix_soname" >&6; }
  8070. if test aix != "$with_aix_soname"; then
  8071. # For the AIX way of multilib, we name the shared archive member
  8072. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8073. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8074. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8075. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8076. if test 64 = "${OBJECT_MODE-32}"; then
  8077. shared_archive_member_spec=shr_64
  8078. else
  8079. shared_archive_member_spec=shr
  8080. fi
  8081. fi
  8082. ;;
  8083. *)
  8084. with_aix_soname=aix
  8085. ;;
  8086. esac
  8087. # This can be used to rebuild libtool when needed
  8088. LIBTOOL_DEPS=$ltmain
  8089. # Always use our own libtool.
  8090. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8091. test -z "$LN_S" && LN_S="ln -s"
  8092. if test -n "${ZSH_VERSION+set}"; then
  8093. setopt NO_GLOB_SUBST
  8094. fi
  8095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8096. printf %s "checking for objdir... " >&6; }
  8097. if test ${lt_cv_objdir+y}
  8098. then :
  8099. printf %s "(cached) " >&6
  8100. else $as_nop
  8101. rm -f .libs 2>/dev/null
  8102. mkdir .libs 2>/dev/null
  8103. if test -d .libs; then
  8104. lt_cv_objdir=.libs
  8105. else
  8106. # MS-DOS does not allow filenames that begin with a dot.
  8107. lt_cv_objdir=_libs
  8108. fi
  8109. rmdir .libs 2>/dev/null
  8110. fi
  8111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8112. printf "%s\n" "$lt_cv_objdir" >&6; }
  8113. objdir=$lt_cv_objdir
  8114. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8115. case $host_os in
  8116. aix3*)
  8117. # AIX sometimes has problems with the GCC collect2 program. For some
  8118. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8119. # vanish in a puff of smoke.
  8120. if test set != "${COLLECT_NAMES+set}"; then
  8121. COLLECT_NAMES=
  8122. export COLLECT_NAMES
  8123. fi
  8124. ;;
  8125. esac
  8126. # Global variables:
  8127. ofile=libtool
  8128. can_build_shared=yes
  8129. # All known linkers require a '.a' archive for static linking (except MSVC,
  8130. # which needs '.lib').
  8131. libext=a
  8132. with_gnu_ld=$lt_cv_prog_gnu_ld
  8133. old_CC=$CC
  8134. old_CFLAGS=$CFLAGS
  8135. # Set sane defaults for various variables
  8136. test -z "$CC" && CC=cc
  8137. test -z "$LTCC" && LTCC=$CC
  8138. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8139. test -z "$LD" && LD=ld
  8140. test -z "$ac_objext" && ac_objext=o
  8141. func_cc_basename $compiler
  8142. cc_basename=$func_cc_basename_result
  8143. # Only perform the check for file, if the check method requires it
  8144. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8145. case $deplibs_check_method in
  8146. file_magic*)
  8147. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8149. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8150. if test ${lt_cv_path_MAGIC_CMD+y}
  8151. then :
  8152. printf %s "(cached) " >&6
  8153. else $as_nop
  8154. case $MAGIC_CMD in
  8155. [\\/*] | ?:[\\/]*)
  8156. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8157. ;;
  8158. *)
  8159. lt_save_MAGIC_CMD=$MAGIC_CMD
  8160. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8161. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8162. for ac_dir in $ac_dummy; do
  8163. IFS=$lt_save_ifs
  8164. test -z "$ac_dir" && ac_dir=.
  8165. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8166. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8167. if test -n "$file_magic_test_file"; then
  8168. case $deplibs_check_method in
  8169. "file_magic "*)
  8170. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8171. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8172. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8173. $EGREP "$file_magic_regex" > /dev/null; then
  8174. :
  8175. else
  8176. cat <<_LT_EOF 1>&2
  8177. *** Warning: the command libtool uses to detect shared libraries,
  8178. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8179. *** The result is that libtool may fail to recognize shared libraries
  8180. *** as such. This will affect the creation of libtool libraries that
  8181. *** depend on shared libraries, but programs linked with such libtool
  8182. *** libraries will work regardless of this problem. Nevertheless, you
  8183. *** may want to report the problem to your system manager and/or to
  8184. *** bug-libtool@gnu.org
  8185. _LT_EOF
  8186. fi ;;
  8187. esac
  8188. fi
  8189. break
  8190. fi
  8191. done
  8192. IFS=$lt_save_ifs
  8193. MAGIC_CMD=$lt_save_MAGIC_CMD
  8194. ;;
  8195. esac
  8196. fi
  8197. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8198. if test -n "$MAGIC_CMD"; then
  8199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8200. printf "%s\n" "$MAGIC_CMD" >&6; }
  8201. else
  8202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8203. printf "%s\n" "no" >&6; }
  8204. fi
  8205. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8206. if test -n "$ac_tool_prefix"; then
  8207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8208. printf %s "checking for file... " >&6; }
  8209. if test ${lt_cv_path_MAGIC_CMD+y}
  8210. then :
  8211. printf %s "(cached) " >&6
  8212. else $as_nop
  8213. case $MAGIC_CMD in
  8214. [\\/*] | ?:[\\/]*)
  8215. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8216. ;;
  8217. *)
  8218. lt_save_MAGIC_CMD=$MAGIC_CMD
  8219. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8220. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8221. for ac_dir in $ac_dummy; do
  8222. IFS=$lt_save_ifs
  8223. test -z "$ac_dir" && ac_dir=.
  8224. if test -f "$ac_dir/file"; then
  8225. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8226. if test -n "$file_magic_test_file"; then
  8227. case $deplibs_check_method in
  8228. "file_magic "*)
  8229. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8230. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8231. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8232. $EGREP "$file_magic_regex" > /dev/null; then
  8233. :
  8234. else
  8235. cat <<_LT_EOF 1>&2
  8236. *** Warning: the command libtool uses to detect shared libraries,
  8237. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8238. *** The result is that libtool may fail to recognize shared libraries
  8239. *** as such. This will affect the creation of libtool libraries that
  8240. *** depend on shared libraries, but programs linked with such libtool
  8241. *** libraries will work regardless of this problem. Nevertheless, you
  8242. *** may want to report the problem to your system manager and/or to
  8243. *** bug-libtool@gnu.org
  8244. _LT_EOF
  8245. fi ;;
  8246. esac
  8247. fi
  8248. break
  8249. fi
  8250. done
  8251. IFS=$lt_save_ifs
  8252. MAGIC_CMD=$lt_save_MAGIC_CMD
  8253. ;;
  8254. esac
  8255. fi
  8256. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8257. if test -n "$MAGIC_CMD"; then
  8258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8259. printf "%s\n" "$MAGIC_CMD" >&6; }
  8260. else
  8261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8262. printf "%s\n" "no" >&6; }
  8263. fi
  8264. else
  8265. MAGIC_CMD=:
  8266. fi
  8267. fi
  8268. fi
  8269. ;;
  8270. esac
  8271. # Use C for the default configuration in the libtool script
  8272. lt_save_CC=$CC
  8273. ac_ext=c
  8274. ac_cpp='$CPP $CPPFLAGS'
  8275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8278. # Source file extension for C test sources.
  8279. ac_ext=c
  8280. # Object file extension for compiled C test sources.
  8281. objext=o
  8282. objext=$objext
  8283. # Code to be used in simple compile tests
  8284. lt_simple_compile_test_code="int some_variable = 0;"
  8285. # Code to be used in simple link tests
  8286. lt_simple_link_test_code='int main(){return(0);}'
  8287. # If no C compiler was specified, use CC.
  8288. LTCC=${LTCC-"$CC"}
  8289. # If no C compiler flags were specified, use CFLAGS.
  8290. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8291. # Allow CC to be a program name with arguments.
  8292. compiler=$CC
  8293. # Save the default compiler, since it gets overwritten when the other
  8294. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8295. compiler_DEFAULT=$CC
  8296. # save warnings/boilerplate of simple test code
  8297. ac_outfile=conftest.$ac_objext
  8298. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8299. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8300. _lt_compiler_boilerplate=`cat conftest.err`
  8301. $RM conftest*
  8302. ac_outfile=conftest.$ac_objext
  8303. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8304. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8305. _lt_linker_boilerplate=`cat conftest.err`
  8306. $RM -r conftest*
  8307. ## CAVEAT EMPTOR:
  8308. ## There is no encapsulation within the following macros, do not change
  8309. ## the running order or otherwise move them around unless you know exactly
  8310. ## what you are doing...
  8311. if test -n "$compiler"; then
  8312. lt_prog_compiler_no_builtin_flag=
  8313. if test yes = "$GCC"; then
  8314. case $cc_basename in
  8315. nvcc*)
  8316. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8317. *)
  8318. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8319. esac
  8320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8321. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8322. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8323. then :
  8324. printf %s "(cached) " >&6
  8325. else $as_nop
  8326. lt_cv_prog_compiler_rtti_exceptions=no
  8327. ac_outfile=conftest.$ac_objext
  8328. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8329. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8330. # Insert the option either (1) after the last *FLAGS variable, or
  8331. # (2) before a word containing "conftest.", or (3) at the end.
  8332. # Note that $ac_compile itself does not contain backslashes and begins
  8333. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8334. # The option is referenced via a variable to avoid confusing sed.
  8335. lt_compile=`echo "$ac_compile" | $SED \
  8336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8338. -e 's:$: $lt_compiler_flag:'`
  8339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8340. (eval "$lt_compile" 2>conftest.err)
  8341. ac_status=$?
  8342. cat conftest.err >&5
  8343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8344. if (exit $ac_status) && test -s "$ac_outfile"; then
  8345. # The compiler can only warn and ignore the option if not recognized
  8346. # So say no if there are warnings other than the usual output.
  8347. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8348. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8349. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8350. lt_cv_prog_compiler_rtti_exceptions=yes
  8351. fi
  8352. fi
  8353. $RM conftest*
  8354. fi
  8355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8356. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8357. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8358. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8359. else
  8360. :
  8361. fi
  8362. fi
  8363. lt_prog_compiler_wl=
  8364. lt_prog_compiler_pic=
  8365. lt_prog_compiler_static=
  8366. if test yes = "$GCC"; then
  8367. lt_prog_compiler_wl='-Wl,'
  8368. lt_prog_compiler_static='-static'
  8369. case $host_os in
  8370. aix*)
  8371. # All AIX code is PIC.
  8372. if test ia64 = "$host_cpu"; then
  8373. # AIX 5 now supports IA64 processor
  8374. lt_prog_compiler_static='-Bstatic'
  8375. fi
  8376. lt_prog_compiler_pic='-fPIC'
  8377. ;;
  8378. amigaos*)
  8379. case $host_cpu in
  8380. powerpc)
  8381. # see comment about AmigaOS4 .so support
  8382. lt_prog_compiler_pic='-fPIC'
  8383. ;;
  8384. m68k)
  8385. # FIXME: we need at least 68020 code to build shared libraries, but
  8386. # adding the '-m68020' flag to GCC prevents building anything better,
  8387. # like '-m68040'.
  8388. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8389. ;;
  8390. esac
  8391. ;;
  8392. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8393. # PIC is the default for these OSes.
  8394. ;;
  8395. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8396. # This hack is so that the source file can tell whether it is being
  8397. # built for inclusion in a dll (and should export symbols for example).
  8398. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8399. # (--disable-auto-import) libraries
  8400. lt_prog_compiler_pic='-DDLL_EXPORT'
  8401. case $host_os in
  8402. os2*)
  8403. lt_prog_compiler_static='$wl-static'
  8404. ;;
  8405. esac
  8406. ;;
  8407. darwin* | rhapsody*)
  8408. # PIC is the default on this platform
  8409. # Common symbols not allowed in MH_DYLIB files
  8410. lt_prog_compiler_pic='-fno-common'
  8411. ;;
  8412. haiku*)
  8413. # PIC is the default for Haiku.
  8414. # The "-static" flag exists, but is broken.
  8415. lt_prog_compiler_static=
  8416. ;;
  8417. hpux*)
  8418. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8419. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8420. # sets the default TLS model and affects inlining.
  8421. case $host_cpu in
  8422. hppa*64*)
  8423. # +Z the default
  8424. ;;
  8425. *)
  8426. lt_prog_compiler_pic='-fPIC'
  8427. ;;
  8428. esac
  8429. ;;
  8430. interix[3-9]*)
  8431. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8432. # Instead, we relocate shared libraries at runtime.
  8433. ;;
  8434. msdosdjgpp*)
  8435. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8436. # on systems that don't support them.
  8437. lt_prog_compiler_can_build_shared=no
  8438. enable_shared=no
  8439. ;;
  8440. *nto* | *qnx*)
  8441. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8442. # it will coredump.
  8443. lt_prog_compiler_pic='-fPIC -shared'
  8444. ;;
  8445. sysv4*MP*)
  8446. if test -d /usr/nec; then
  8447. lt_prog_compiler_pic=-Kconform_pic
  8448. fi
  8449. ;;
  8450. *)
  8451. lt_prog_compiler_pic='-fPIC'
  8452. ;;
  8453. esac
  8454. case $cc_basename in
  8455. nvcc*) # Cuda Compiler Driver 2.2
  8456. lt_prog_compiler_wl='-Xlinker '
  8457. if test -n "$lt_prog_compiler_pic"; then
  8458. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8459. fi
  8460. ;;
  8461. esac
  8462. else
  8463. # PORTME Check for flag to pass linker flags through the system compiler.
  8464. case $host_os in
  8465. aix*)
  8466. lt_prog_compiler_wl='-Wl,'
  8467. if test ia64 = "$host_cpu"; then
  8468. # AIX 5 now supports IA64 processor
  8469. lt_prog_compiler_static='-Bstatic'
  8470. else
  8471. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8472. fi
  8473. ;;
  8474. darwin* | rhapsody*)
  8475. # PIC is the default on this platform
  8476. # Common symbols not allowed in MH_DYLIB files
  8477. lt_prog_compiler_pic='-fno-common'
  8478. case $cc_basename in
  8479. nagfor*)
  8480. # NAG Fortran compiler
  8481. lt_prog_compiler_wl='-Wl,-Wl,,'
  8482. lt_prog_compiler_pic='-PIC'
  8483. lt_prog_compiler_static='-Bstatic'
  8484. ;;
  8485. esac
  8486. ;;
  8487. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8488. # This hack is so that the source file can tell whether it is being
  8489. # built for inclusion in a dll (and should export symbols for example).
  8490. lt_prog_compiler_pic='-DDLL_EXPORT'
  8491. case $host_os in
  8492. os2*)
  8493. lt_prog_compiler_static='$wl-static'
  8494. ;;
  8495. esac
  8496. ;;
  8497. hpux9* | hpux10* | hpux11*)
  8498. lt_prog_compiler_wl='-Wl,'
  8499. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8500. # not for PA HP-UX.
  8501. case $host_cpu in
  8502. hppa*64*|ia64*)
  8503. # +Z the default
  8504. ;;
  8505. *)
  8506. lt_prog_compiler_pic='+Z'
  8507. ;;
  8508. esac
  8509. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8510. lt_prog_compiler_static='$wl-a ${wl}archive'
  8511. ;;
  8512. irix5* | irix6* | nonstopux*)
  8513. lt_prog_compiler_wl='-Wl,'
  8514. # PIC (with -KPIC) is the default.
  8515. lt_prog_compiler_static='-non_shared'
  8516. ;;
  8517. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8518. case $cc_basename in
  8519. # old Intel for x86_64, which still supported -KPIC.
  8520. ecc*)
  8521. lt_prog_compiler_wl='-Wl,'
  8522. lt_prog_compiler_pic='-KPIC'
  8523. lt_prog_compiler_static='-static'
  8524. ;;
  8525. # icc used to be incompatible with GCC.
  8526. # ICC 10 doesn't accept -KPIC any more.
  8527. icc* | ifort*)
  8528. lt_prog_compiler_wl='-Wl,'
  8529. lt_prog_compiler_pic='-fPIC'
  8530. lt_prog_compiler_static='-static'
  8531. ;;
  8532. # Lahey Fortran 8.1.
  8533. lf95*)
  8534. lt_prog_compiler_wl='-Wl,'
  8535. lt_prog_compiler_pic='--shared'
  8536. lt_prog_compiler_static='--static'
  8537. ;;
  8538. nagfor*)
  8539. # NAG Fortran compiler
  8540. lt_prog_compiler_wl='-Wl,-Wl,,'
  8541. lt_prog_compiler_pic='-PIC'
  8542. lt_prog_compiler_static='-Bstatic'
  8543. ;;
  8544. tcc*)
  8545. # Fabrice Bellard et al's Tiny C Compiler
  8546. lt_prog_compiler_wl='-Wl,'
  8547. lt_prog_compiler_pic='-fPIC'
  8548. lt_prog_compiler_static='-static'
  8549. ;;
  8550. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8551. # Portland Group compilers (*not* the Pentium gcc compiler,
  8552. # which looks to be a dead project)
  8553. lt_prog_compiler_wl='-Wl,'
  8554. lt_prog_compiler_pic='-fpic'
  8555. lt_prog_compiler_static='-Bstatic'
  8556. ;;
  8557. ccc*)
  8558. lt_prog_compiler_wl='-Wl,'
  8559. # All Alpha code is PIC.
  8560. lt_prog_compiler_static='-non_shared'
  8561. ;;
  8562. xl* | bgxl* | bgf* | mpixl*)
  8563. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8564. lt_prog_compiler_wl='-Wl,'
  8565. lt_prog_compiler_pic='-qpic'
  8566. lt_prog_compiler_static='-qstaticlink'
  8567. ;;
  8568. *)
  8569. case `$CC -V 2>&1 | sed 5q` in
  8570. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8571. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8572. lt_prog_compiler_pic='-KPIC'
  8573. lt_prog_compiler_static='-Bstatic'
  8574. lt_prog_compiler_wl=''
  8575. ;;
  8576. *Sun\ F* | *Sun*Fortran*)
  8577. lt_prog_compiler_pic='-KPIC'
  8578. lt_prog_compiler_static='-Bstatic'
  8579. lt_prog_compiler_wl='-Qoption ld '
  8580. ;;
  8581. *Sun\ C*)
  8582. # Sun C 5.9
  8583. lt_prog_compiler_pic='-KPIC'
  8584. lt_prog_compiler_static='-Bstatic'
  8585. lt_prog_compiler_wl='-Wl,'
  8586. ;;
  8587. *Intel*\ [CF]*Compiler*)
  8588. lt_prog_compiler_wl='-Wl,'
  8589. lt_prog_compiler_pic='-fPIC'
  8590. lt_prog_compiler_static='-static'
  8591. ;;
  8592. *Portland\ Group*)
  8593. lt_prog_compiler_wl='-Wl,'
  8594. lt_prog_compiler_pic='-fpic'
  8595. lt_prog_compiler_static='-Bstatic'
  8596. ;;
  8597. esac
  8598. ;;
  8599. esac
  8600. ;;
  8601. newsos6)
  8602. lt_prog_compiler_pic='-KPIC'
  8603. lt_prog_compiler_static='-Bstatic'
  8604. ;;
  8605. *nto* | *qnx*)
  8606. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8607. # it will coredump.
  8608. lt_prog_compiler_pic='-fPIC -shared'
  8609. ;;
  8610. osf3* | osf4* | osf5*)
  8611. lt_prog_compiler_wl='-Wl,'
  8612. # All OSF/1 code is PIC.
  8613. lt_prog_compiler_static='-non_shared'
  8614. ;;
  8615. rdos*)
  8616. lt_prog_compiler_static='-non_shared'
  8617. ;;
  8618. solaris*)
  8619. lt_prog_compiler_pic='-KPIC'
  8620. lt_prog_compiler_static='-Bstatic'
  8621. case $cc_basename in
  8622. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8623. lt_prog_compiler_wl='-Qoption ld ';;
  8624. *)
  8625. lt_prog_compiler_wl='-Wl,';;
  8626. esac
  8627. ;;
  8628. sunos4*)
  8629. lt_prog_compiler_wl='-Qoption ld '
  8630. lt_prog_compiler_pic='-PIC'
  8631. lt_prog_compiler_static='-Bstatic'
  8632. ;;
  8633. sysv4 | sysv4.2uw2* | sysv4.3*)
  8634. lt_prog_compiler_wl='-Wl,'
  8635. lt_prog_compiler_pic='-KPIC'
  8636. lt_prog_compiler_static='-Bstatic'
  8637. ;;
  8638. sysv4*MP*)
  8639. if test -d /usr/nec; then
  8640. lt_prog_compiler_pic='-Kconform_pic'
  8641. lt_prog_compiler_static='-Bstatic'
  8642. fi
  8643. ;;
  8644. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8645. lt_prog_compiler_wl='-Wl,'
  8646. lt_prog_compiler_pic='-KPIC'
  8647. lt_prog_compiler_static='-Bstatic'
  8648. ;;
  8649. unicos*)
  8650. lt_prog_compiler_wl='-Wl,'
  8651. lt_prog_compiler_can_build_shared=no
  8652. ;;
  8653. uts4*)
  8654. lt_prog_compiler_pic='-pic'
  8655. lt_prog_compiler_static='-Bstatic'
  8656. ;;
  8657. *)
  8658. lt_prog_compiler_can_build_shared=no
  8659. ;;
  8660. esac
  8661. fi
  8662. case $host_os in
  8663. # For platforms that do not support PIC, -DPIC is meaningless:
  8664. *djgpp*)
  8665. lt_prog_compiler_pic=
  8666. ;;
  8667. *)
  8668. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8669. ;;
  8670. esac
  8671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8672. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8673. if test ${lt_cv_prog_compiler_pic+y}
  8674. then :
  8675. printf %s "(cached) " >&6
  8676. else $as_nop
  8677. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8678. fi
  8679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8680. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8681. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8682. #
  8683. # Check to make sure the PIC flag actually works.
  8684. #
  8685. if test -n "$lt_prog_compiler_pic"; then
  8686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8687. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8688. if test ${lt_cv_prog_compiler_pic_works+y}
  8689. then :
  8690. printf %s "(cached) " >&6
  8691. else $as_nop
  8692. lt_cv_prog_compiler_pic_works=no
  8693. ac_outfile=conftest.$ac_objext
  8694. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8695. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8696. # Insert the option either (1) after the last *FLAGS variable, or
  8697. # (2) before a word containing "conftest.", or (3) at the end.
  8698. # Note that $ac_compile itself does not contain backslashes and begins
  8699. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8700. # The option is referenced via a variable to avoid confusing sed.
  8701. lt_compile=`echo "$ac_compile" | $SED \
  8702. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8703. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8704. -e 's:$: $lt_compiler_flag:'`
  8705. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8706. (eval "$lt_compile" 2>conftest.err)
  8707. ac_status=$?
  8708. cat conftest.err >&5
  8709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8710. if (exit $ac_status) && test -s "$ac_outfile"; then
  8711. # The compiler can only warn and ignore the option if not recognized
  8712. # So say no if there are warnings other than the usual output.
  8713. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8714. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8715. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8716. lt_cv_prog_compiler_pic_works=yes
  8717. fi
  8718. fi
  8719. $RM conftest*
  8720. fi
  8721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8722. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8723. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8724. case $lt_prog_compiler_pic in
  8725. "" | " "*) ;;
  8726. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8727. esac
  8728. else
  8729. lt_prog_compiler_pic=
  8730. lt_prog_compiler_can_build_shared=no
  8731. fi
  8732. fi
  8733. #
  8734. # Check to make sure the static flag actually works.
  8735. #
  8736. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8738. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8739. if test ${lt_cv_prog_compiler_static_works+y}
  8740. then :
  8741. printf %s "(cached) " >&6
  8742. else $as_nop
  8743. lt_cv_prog_compiler_static_works=no
  8744. save_LDFLAGS=$LDFLAGS
  8745. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8746. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8747. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8748. # The linker can only warn and ignore the option if not recognized
  8749. # So say no if there are warnings
  8750. if test -s conftest.err; then
  8751. # Append any errors to the config.log.
  8752. cat conftest.err 1>&5
  8753. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8754. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8755. if diff conftest.exp conftest.er2 >/dev/null; then
  8756. lt_cv_prog_compiler_static_works=yes
  8757. fi
  8758. else
  8759. lt_cv_prog_compiler_static_works=yes
  8760. fi
  8761. fi
  8762. $RM -r conftest*
  8763. LDFLAGS=$save_LDFLAGS
  8764. fi
  8765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8766. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8767. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8768. :
  8769. else
  8770. lt_prog_compiler_static=
  8771. fi
  8772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8773. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8774. if test ${lt_cv_prog_compiler_c_o+y}
  8775. then :
  8776. printf %s "(cached) " >&6
  8777. else $as_nop
  8778. lt_cv_prog_compiler_c_o=no
  8779. $RM -r conftest 2>/dev/null
  8780. mkdir conftest
  8781. cd conftest
  8782. mkdir out
  8783. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8784. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8785. # Insert the option either (1) after the last *FLAGS variable, or
  8786. # (2) before a word containing "conftest.", or (3) at the end.
  8787. # Note that $ac_compile itself does not contain backslashes and begins
  8788. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8789. lt_compile=`echo "$ac_compile" | $SED \
  8790. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8791. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8792. -e 's:$: $lt_compiler_flag:'`
  8793. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8794. (eval "$lt_compile" 2>out/conftest.err)
  8795. ac_status=$?
  8796. cat out/conftest.err >&5
  8797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8798. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8799. then
  8800. # The compiler can only warn and ignore the option if not recognized
  8801. # So say no if there are warnings
  8802. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8803. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8804. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8805. lt_cv_prog_compiler_c_o=yes
  8806. fi
  8807. fi
  8808. chmod u+w . 2>&5
  8809. $RM conftest*
  8810. # SGI C++ compiler will create directory out/ii_files/ for
  8811. # template instantiation
  8812. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8813. $RM out/* && rmdir out
  8814. cd ..
  8815. $RM -r conftest
  8816. $RM conftest*
  8817. fi
  8818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8819. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8821. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8822. if test ${lt_cv_prog_compiler_c_o+y}
  8823. then :
  8824. printf %s "(cached) " >&6
  8825. else $as_nop
  8826. lt_cv_prog_compiler_c_o=no
  8827. $RM -r conftest 2>/dev/null
  8828. mkdir conftest
  8829. cd conftest
  8830. mkdir out
  8831. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8832. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8833. # Insert the option either (1) after the last *FLAGS variable, or
  8834. # (2) before a word containing "conftest.", or (3) at the end.
  8835. # Note that $ac_compile itself does not contain backslashes and begins
  8836. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8837. lt_compile=`echo "$ac_compile" | $SED \
  8838. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8839. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8840. -e 's:$: $lt_compiler_flag:'`
  8841. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8842. (eval "$lt_compile" 2>out/conftest.err)
  8843. ac_status=$?
  8844. cat out/conftest.err >&5
  8845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8846. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8847. then
  8848. # The compiler can only warn and ignore the option if not recognized
  8849. # So say no if there are warnings
  8850. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8851. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8852. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8853. lt_cv_prog_compiler_c_o=yes
  8854. fi
  8855. fi
  8856. chmod u+w . 2>&5
  8857. $RM conftest*
  8858. # SGI C++ compiler will create directory out/ii_files/ for
  8859. # template instantiation
  8860. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8861. $RM out/* && rmdir out
  8862. cd ..
  8863. $RM -r conftest
  8864. $RM conftest*
  8865. fi
  8866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8867. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8868. hard_links=nottested
  8869. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8870. # do not overwrite the value of need_locks provided by the user
  8871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8872. printf %s "checking if we can lock with hard links... " >&6; }
  8873. hard_links=yes
  8874. $RM conftest*
  8875. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8876. touch conftest.a
  8877. ln conftest.a conftest.b 2>&5 || hard_links=no
  8878. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8880. printf "%s\n" "$hard_links" >&6; }
  8881. if test no = "$hard_links"; then
  8882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8883. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8884. need_locks=warn
  8885. fi
  8886. else
  8887. need_locks=no
  8888. fi
  8889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8890. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8891. runpath_var=
  8892. allow_undefined_flag=
  8893. always_export_symbols=no
  8894. archive_cmds=
  8895. archive_expsym_cmds=
  8896. compiler_needs_object=no
  8897. enable_shared_with_static_runtimes=no
  8898. export_dynamic_flag_spec=
  8899. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8900. hardcode_automatic=no
  8901. hardcode_direct=no
  8902. hardcode_direct_absolute=no
  8903. hardcode_libdir_flag_spec=
  8904. hardcode_libdir_separator=
  8905. hardcode_minus_L=no
  8906. hardcode_shlibpath_var=unsupported
  8907. inherit_rpath=no
  8908. link_all_deplibs=unknown
  8909. module_cmds=
  8910. module_expsym_cmds=
  8911. old_archive_from_new_cmds=
  8912. old_archive_from_expsyms_cmds=
  8913. thread_safe_flag_spec=
  8914. whole_archive_flag_spec=
  8915. # include_expsyms should be a list of space-separated symbols to be *always*
  8916. # included in the symbol list
  8917. include_expsyms=
  8918. # exclude_expsyms can be an extended regexp of symbols to exclude
  8919. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8920. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8921. # as well as any symbol that contains 'd'.
  8922. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8923. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8924. # platforms (ab)use it in PIC code, but their linkers get confused if
  8925. # the symbol is explicitly referenced. Since portable code cannot
  8926. # rely on this symbol name, it's probably fine to never include it in
  8927. # preloaded symbol tables.
  8928. # Exclude shared library initialization/finalization symbols.
  8929. extract_expsyms_cmds=
  8930. case $host_os in
  8931. cygwin* | mingw* | pw32* | cegcc*)
  8932. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8933. # When not using gcc, we currently assume that we are using
  8934. # Microsoft Visual C++.
  8935. if test yes != "$GCC"; then
  8936. with_gnu_ld=no
  8937. fi
  8938. ;;
  8939. interix*)
  8940. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8941. with_gnu_ld=yes
  8942. ;;
  8943. openbsd* | bitrig*)
  8944. with_gnu_ld=no
  8945. ;;
  8946. esac
  8947. ld_shlibs=yes
  8948. # On some targets, GNU ld is compatible enough with the native linker
  8949. # that we're better off using the native interface for both.
  8950. lt_use_gnu_ld_interface=no
  8951. if test yes = "$with_gnu_ld"; then
  8952. case $host_os in
  8953. aix*)
  8954. # The AIX port of GNU ld has always aspired to compatibility
  8955. # with the native linker. However, as the warning in the GNU ld
  8956. # block says, versions before 2.19.5* couldn't really create working
  8957. # shared libraries, regardless of the interface used.
  8958. case `$LD -v 2>&1` in
  8959. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8960. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8961. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8962. *)
  8963. lt_use_gnu_ld_interface=yes
  8964. ;;
  8965. esac
  8966. ;;
  8967. *)
  8968. lt_use_gnu_ld_interface=yes
  8969. ;;
  8970. esac
  8971. fi
  8972. if test yes = "$lt_use_gnu_ld_interface"; then
  8973. # If archive_cmds runs LD, not CC, wlarc should be empty
  8974. wlarc='$wl'
  8975. # Set some defaults for GNU ld with shared library support. These
  8976. # are reset later if shared libraries are not supported. Putting them
  8977. # here allows them to be overridden if necessary.
  8978. runpath_var=LD_RUN_PATH
  8979. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8980. export_dynamic_flag_spec='$wl--export-dynamic'
  8981. # ancient GNU ld didn't support --whole-archive et. al.
  8982. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8983. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8984. else
  8985. whole_archive_flag_spec=
  8986. fi
  8987. supports_anon_versioning=no
  8988. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8989. *GNU\ gold*) supports_anon_versioning=yes ;;
  8990. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8991. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8992. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8993. *\ 2.11.*) ;; # other 2.11 versions
  8994. *) supports_anon_versioning=yes ;;
  8995. esac
  8996. # See if GNU ld supports shared libraries.
  8997. case $host_os in
  8998. aix[3-9]*)
  8999. # On AIX/PPC, the GNU linker is very broken
  9000. if test ia64 != "$host_cpu"; then
  9001. ld_shlibs=no
  9002. cat <<_LT_EOF 1>&2
  9003. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9004. *** to be unable to reliably create shared libraries on AIX.
  9005. *** Therefore, libtool is disabling shared libraries support. If you
  9006. *** really care for shared libraries, you may want to install binutils
  9007. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9008. *** You will then need to restart the configuration process.
  9009. _LT_EOF
  9010. fi
  9011. ;;
  9012. amigaos*)
  9013. case $host_cpu in
  9014. powerpc)
  9015. # see comment about AmigaOS4 .so support
  9016. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9017. archive_expsym_cmds=''
  9018. ;;
  9019. m68k)
  9020. 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)'
  9021. hardcode_libdir_flag_spec='-L$libdir'
  9022. hardcode_minus_L=yes
  9023. ;;
  9024. esac
  9025. ;;
  9026. beos*)
  9027. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9028. allow_undefined_flag=unsupported
  9029. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9030. # support --undefined. This deserves some investigation. FIXME
  9031. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9032. else
  9033. ld_shlibs=no
  9034. fi
  9035. ;;
  9036. cygwin* | mingw* | pw32* | cegcc*)
  9037. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9038. # as there is no search path for DLLs.
  9039. hardcode_libdir_flag_spec='-L$libdir'
  9040. export_dynamic_flag_spec='$wl--export-all-symbols'
  9041. allow_undefined_flag=unsupported
  9042. always_export_symbols=no
  9043. enable_shared_with_static_runtimes=yes
  9044. 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'
  9045. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9046. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9047. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9048. # If the export-symbols file already is a .def file, use it as
  9049. # is; otherwise, prepend EXPORTS...
  9050. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9051. cp $export_symbols $output_objdir/$soname.def;
  9052. else
  9053. echo EXPORTS > $output_objdir/$soname.def;
  9054. cat $export_symbols >> $output_objdir/$soname.def;
  9055. fi~
  9056. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9057. else
  9058. ld_shlibs=no
  9059. fi
  9060. ;;
  9061. haiku*)
  9062. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9063. link_all_deplibs=yes
  9064. ;;
  9065. os2*)
  9066. hardcode_libdir_flag_spec='-L$libdir'
  9067. hardcode_minus_L=yes
  9068. allow_undefined_flag=unsupported
  9069. shrext_cmds=.dll
  9070. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9071. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9072. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9073. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9074. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9075. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9076. emximp -o $lib $output_objdir/$libname.def'
  9077. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9078. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9079. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9080. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9081. prefix_cmds="$SED"~
  9082. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9083. prefix_cmds="$prefix_cmds -e 1d";
  9084. fi~
  9085. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9086. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9087. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9088. emximp -o $lib $output_objdir/$libname.def'
  9089. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9090. enable_shared_with_static_runtimes=yes
  9091. ;;
  9092. interix[3-9]*)
  9093. hardcode_direct=no
  9094. hardcode_shlibpath_var=no
  9095. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9096. export_dynamic_flag_spec='$wl-E'
  9097. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9098. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9099. # default) and relocated if they conflict, which is a slow very memory
  9100. # consuming and fragmenting process. To avoid this, we pick a random,
  9101. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9102. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9103. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9104. 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'
  9105. ;;
  9106. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9107. tmp_diet=no
  9108. if test linux-dietlibc = "$host_os"; then
  9109. case $cc_basename in
  9110. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9111. esac
  9112. fi
  9113. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9114. && test no = "$tmp_diet"
  9115. then
  9116. tmp_addflag=' $pic_flag'
  9117. tmp_sharedflag='-shared'
  9118. case $cc_basename,$host_cpu in
  9119. pgcc*) # Portland Group C compiler
  9120. 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'
  9121. tmp_addflag=' $pic_flag'
  9122. ;;
  9123. pgf77* | pgf90* | pgf95* | pgfortran*)
  9124. # Portland Group f77 and f90 compilers
  9125. 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'
  9126. tmp_addflag=' $pic_flag -Mnomain' ;;
  9127. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9128. tmp_addflag=' -i_dynamic' ;;
  9129. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9130. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9131. ifc* | ifort*) # Intel Fortran compiler
  9132. tmp_addflag=' -nofor_main' ;;
  9133. lf95*) # Lahey Fortran 8.1
  9134. whole_archive_flag_spec=
  9135. tmp_sharedflag='--shared' ;;
  9136. nagfor*) # NAGFOR 5.3
  9137. tmp_sharedflag='-Wl,-shared' ;;
  9138. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9139. tmp_sharedflag='-qmkshrobj'
  9140. tmp_addflag= ;;
  9141. nvcc*) # Cuda Compiler Driver 2.2
  9142. 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'
  9143. compiler_needs_object=yes
  9144. ;;
  9145. esac
  9146. case `$CC -V 2>&1 | sed 5q` in
  9147. *Sun\ C*) # Sun C 5.9
  9148. 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'
  9149. compiler_needs_object=yes
  9150. tmp_sharedflag='-G' ;;
  9151. *Sun\ F*) # Sun Fortran 8.3
  9152. tmp_sharedflag='-G' ;;
  9153. esac
  9154. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9155. if test yes = "$supports_anon_versioning"; then
  9156. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9157. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9158. echo "local: *; };" >> $output_objdir/$libname.ver~
  9159. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9160. fi
  9161. case $cc_basename in
  9162. tcc*)
  9163. export_dynamic_flag_spec='-rdynamic'
  9164. ;;
  9165. xlf* | bgf* | bgxlf* | mpixlf*)
  9166. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9167. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9168. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9169. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9170. if test yes = "$supports_anon_versioning"; then
  9171. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9172. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9173. echo "local: *; };" >> $output_objdir/$libname.ver~
  9174. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9175. fi
  9176. ;;
  9177. esac
  9178. else
  9179. ld_shlibs=no
  9180. fi
  9181. ;;
  9182. netbsd*)
  9183. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9184. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9185. wlarc=
  9186. else
  9187. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9188. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9189. fi
  9190. ;;
  9191. solaris*)
  9192. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9193. ld_shlibs=no
  9194. cat <<_LT_EOF 1>&2
  9195. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9196. *** create shared libraries on Solaris systems. Therefore, libtool
  9197. *** is disabling shared libraries support. We urge you to upgrade GNU
  9198. *** binutils to release 2.9.1 or newer. Another option is to modify
  9199. *** your PATH or compiler configuration so that the native linker is
  9200. *** used, and then restart.
  9201. _LT_EOF
  9202. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9203. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9204. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9205. else
  9206. ld_shlibs=no
  9207. fi
  9208. ;;
  9209. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9210. case `$LD -v 2>&1` in
  9211. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9212. ld_shlibs=no
  9213. cat <<_LT_EOF 1>&2
  9214. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9215. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9216. *** is disabling shared libraries support. We urge you to upgrade GNU
  9217. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9218. *** your PATH or compiler configuration so that the native linker is
  9219. *** used, and then restart.
  9220. _LT_EOF
  9221. ;;
  9222. *)
  9223. # For security reasons, it is highly recommended that you always
  9224. # use absolute paths for naming shared libraries, and exclude the
  9225. # DT_RUNPATH tag from executables and libraries. But doing so
  9226. # requires that you compile everything twice, which is a pain.
  9227. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9228. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9229. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9230. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9231. else
  9232. ld_shlibs=no
  9233. fi
  9234. ;;
  9235. esac
  9236. ;;
  9237. sunos4*)
  9238. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9239. wlarc=
  9240. hardcode_direct=yes
  9241. hardcode_shlibpath_var=no
  9242. ;;
  9243. *)
  9244. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9245. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9246. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9247. else
  9248. ld_shlibs=no
  9249. fi
  9250. ;;
  9251. esac
  9252. if test no = "$ld_shlibs"; then
  9253. runpath_var=
  9254. hardcode_libdir_flag_spec=
  9255. export_dynamic_flag_spec=
  9256. whole_archive_flag_spec=
  9257. fi
  9258. else
  9259. # PORTME fill in a description of your system's linker (not GNU ld)
  9260. case $host_os in
  9261. aix3*)
  9262. allow_undefined_flag=unsupported
  9263. always_export_symbols=yes
  9264. 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'
  9265. # Note: this linker hardcodes the directories in LIBPATH if there
  9266. # are no directories specified by -L.
  9267. hardcode_minus_L=yes
  9268. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9269. # Neither direct hardcoding nor static linking is supported with a
  9270. # broken collect2.
  9271. hardcode_direct=unsupported
  9272. fi
  9273. ;;
  9274. aix[4-9]*)
  9275. if test ia64 = "$host_cpu"; then
  9276. # On IA64, the linker does run time linking by default, so we don't
  9277. # have to do anything special.
  9278. aix_use_runtimelinking=no
  9279. exp_sym_flag='-Bexport'
  9280. no_entry_flag=
  9281. else
  9282. # If we're using GNU nm, then we don't want the "-C" option.
  9283. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9284. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9285. # weak defined symbols like other global defined symbols, whereas
  9286. # GNU nm marks them as "W".
  9287. # While the 'weak' keyword is ignored in the Export File, we need
  9288. # it in the Import File for the 'aix-soname' feature, so we have
  9289. # to replace the "-B" option with "-P" for AIX nm.
  9290. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9291. 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'
  9292. else
  9293. 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'
  9294. fi
  9295. aix_use_runtimelinking=no
  9296. # Test if we are trying to use run time linking or normal
  9297. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9298. # have runtime linking enabled, and use it for executables.
  9299. # For shared libraries, we enable/disable runtime linking
  9300. # depending on the kind of the shared library created -
  9301. # when "with_aix_soname,aix_use_runtimelinking" is:
  9302. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9303. # "aix,yes" lib.so shared, rtl:yes, for executables
  9304. # lib.a static archive
  9305. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9306. # lib.a(lib.so.V) shared, rtl:no, for executables
  9307. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9308. # lib.a(lib.so.V) shared, rtl:no
  9309. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9310. # lib.a static archive
  9311. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9312. for ld_flag in $LDFLAGS; do
  9313. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9314. aix_use_runtimelinking=yes
  9315. break
  9316. fi
  9317. done
  9318. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9319. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9320. # so we don't have lib.a shared libs to link our executables.
  9321. # We have to force runtime linking in this case.
  9322. aix_use_runtimelinking=yes
  9323. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9324. fi
  9325. ;;
  9326. esac
  9327. exp_sym_flag='-bexport'
  9328. no_entry_flag='-bnoentry'
  9329. fi
  9330. # When large executables or shared objects are built, AIX ld can
  9331. # have problems creating the table of contents. If linking a library
  9332. # or program results in "error TOC overflow" add -mminimal-toc to
  9333. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9334. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9335. archive_cmds=''
  9336. hardcode_direct=yes
  9337. hardcode_direct_absolute=yes
  9338. hardcode_libdir_separator=':'
  9339. link_all_deplibs=yes
  9340. file_list_spec='$wl-f,'
  9341. case $with_aix_soname,$aix_use_runtimelinking in
  9342. aix,*) ;; # traditional, no import file
  9343. svr4,* | *,yes) # use import file
  9344. # The Import File defines what to hardcode.
  9345. hardcode_direct=no
  9346. hardcode_direct_absolute=no
  9347. ;;
  9348. esac
  9349. if test yes = "$GCC"; then
  9350. case $host_os in aix4.[012]|aix4.[012].*)
  9351. # We only want to do this on AIX 4.2 and lower, the check
  9352. # below for broken collect2 doesn't work under 4.3+
  9353. collect2name=`$CC -print-prog-name=collect2`
  9354. if test -f "$collect2name" &&
  9355. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9356. then
  9357. # We have reworked collect2
  9358. :
  9359. else
  9360. # We have old collect2
  9361. hardcode_direct=unsupported
  9362. # It fails to find uninstalled libraries when the uninstalled
  9363. # path is not listed in the libpath. Setting hardcode_minus_L
  9364. # to unsupported forces relinking
  9365. hardcode_minus_L=yes
  9366. hardcode_libdir_flag_spec='-L$libdir'
  9367. hardcode_libdir_separator=
  9368. fi
  9369. ;;
  9370. esac
  9371. shared_flag='-shared'
  9372. if test yes = "$aix_use_runtimelinking"; then
  9373. shared_flag="$shared_flag "'$wl-G'
  9374. fi
  9375. # Need to ensure runtime linking is disabled for the traditional
  9376. # shared library, or the linker may eventually find shared libraries
  9377. # /with/ Import File - we do not want to mix them.
  9378. shared_flag_aix='-shared'
  9379. shared_flag_svr4='-shared $wl-G'
  9380. else
  9381. # not using gcc
  9382. if test ia64 = "$host_cpu"; then
  9383. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9384. # chokes on -Wl,-G. The following line is correct:
  9385. shared_flag='-G'
  9386. else
  9387. if test yes = "$aix_use_runtimelinking"; then
  9388. shared_flag='$wl-G'
  9389. else
  9390. shared_flag='$wl-bM:SRE'
  9391. fi
  9392. shared_flag_aix='$wl-bM:SRE'
  9393. shared_flag_svr4='$wl-G'
  9394. fi
  9395. fi
  9396. export_dynamic_flag_spec='$wl-bexpall'
  9397. # It seems that -bexpall does not export symbols beginning with
  9398. # underscore (_), so it is better to generate a list of symbols to export.
  9399. always_export_symbols=yes
  9400. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9401. # Warning - without using the other runtime loading flags (-brtl),
  9402. # -berok will link without error, but may produce a broken library.
  9403. allow_undefined_flag='-berok'
  9404. # Determine the default libpath from the value encoded in an
  9405. # empty executable.
  9406. if test set = "${lt_cv_aix_libpath+set}"; then
  9407. aix_libpath=$lt_cv_aix_libpath
  9408. else
  9409. if test ${lt_cv_aix_libpath_+y}
  9410. then :
  9411. printf %s "(cached) " >&6
  9412. else $as_nop
  9413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9414. /* end confdefs.h. */
  9415. int
  9416. main (void)
  9417. {
  9418. ;
  9419. return 0;
  9420. }
  9421. _ACEOF
  9422. if ac_fn_c_try_link "$LINENO"
  9423. then :
  9424. lt_aix_libpath_sed='
  9425. /Import File Strings/,/^$/ {
  9426. /^0/ {
  9427. s/^0 *\([^ ]*\) *$/\1/
  9428. p
  9429. }
  9430. }'
  9431. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9432. # Check for a 64-bit object if we didn't find anything.
  9433. if test -z "$lt_cv_aix_libpath_"; then
  9434. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9435. fi
  9436. fi
  9437. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9438. conftest$ac_exeext conftest.$ac_ext
  9439. if test -z "$lt_cv_aix_libpath_"; then
  9440. lt_cv_aix_libpath_=/usr/lib:/lib
  9441. fi
  9442. fi
  9443. aix_libpath=$lt_cv_aix_libpath_
  9444. fi
  9445. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9446. 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
  9447. else
  9448. if test ia64 = "$host_cpu"; then
  9449. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9450. allow_undefined_flag="-z nodefs"
  9451. 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"
  9452. else
  9453. # Determine the default libpath from the value encoded in an
  9454. # empty executable.
  9455. if test set = "${lt_cv_aix_libpath+set}"; then
  9456. aix_libpath=$lt_cv_aix_libpath
  9457. else
  9458. if test ${lt_cv_aix_libpath_+y}
  9459. then :
  9460. printf %s "(cached) " >&6
  9461. else $as_nop
  9462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9463. /* end confdefs.h. */
  9464. int
  9465. main (void)
  9466. {
  9467. ;
  9468. return 0;
  9469. }
  9470. _ACEOF
  9471. if ac_fn_c_try_link "$LINENO"
  9472. then :
  9473. lt_aix_libpath_sed='
  9474. /Import File Strings/,/^$/ {
  9475. /^0/ {
  9476. s/^0 *\([^ ]*\) *$/\1/
  9477. p
  9478. }
  9479. }'
  9480. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9481. # Check for a 64-bit object if we didn't find anything.
  9482. if test -z "$lt_cv_aix_libpath_"; then
  9483. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9484. fi
  9485. fi
  9486. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9487. conftest$ac_exeext conftest.$ac_ext
  9488. if test -z "$lt_cv_aix_libpath_"; then
  9489. lt_cv_aix_libpath_=/usr/lib:/lib
  9490. fi
  9491. fi
  9492. aix_libpath=$lt_cv_aix_libpath_
  9493. fi
  9494. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9495. # Warning - without using the other run time loading flags,
  9496. # -berok will link without error, but may produce a broken library.
  9497. no_undefined_flag=' $wl-bernotok'
  9498. allow_undefined_flag=' $wl-berok'
  9499. if test yes = "$with_gnu_ld"; then
  9500. # We only use this code for GNU lds that support --whole-archive.
  9501. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9502. else
  9503. # Exported symbols can be pulled into shared objects from archives
  9504. whole_archive_flag_spec='$convenience'
  9505. fi
  9506. archive_cmds_need_lc=yes
  9507. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9508. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9509. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9510. if test svr4 != "$with_aix_soname"; then
  9511. # This is similar to how AIX traditionally builds its shared libraries.
  9512. 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'
  9513. fi
  9514. if test aix != "$with_aix_soname"; then
  9515. 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'
  9516. else
  9517. # used by -dlpreopen to get the symbols
  9518. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9519. fi
  9520. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9521. fi
  9522. fi
  9523. ;;
  9524. amigaos*)
  9525. case $host_cpu in
  9526. powerpc)
  9527. # see comment about AmigaOS4 .so support
  9528. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9529. archive_expsym_cmds=''
  9530. ;;
  9531. m68k)
  9532. 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)'
  9533. hardcode_libdir_flag_spec='-L$libdir'
  9534. hardcode_minus_L=yes
  9535. ;;
  9536. esac
  9537. ;;
  9538. bsdi[45]*)
  9539. export_dynamic_flag_spec=-rdynamic
  9540. ;;
  9541. cygwin* | mingw* | pw32* | cegcc*)
  9542. # When not using gcc, we currently assume that we are using
  9543. # Microsoft Visual C++.
  9544. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9545. # no search path for DLLs.
  9546. case $cc_basename in
  9547. cl*)
  9548. # Native MSVC
  9549. hardcode_libdir_flag_spec=' '
  9550. allow_undefined_flag=unsupported
  9551. always_export_symbols=yes
  9552. file_list_spec='@'
  9553. # Tell ltmain to make .lib files, not .a files.
  9554. libext=lib
  9555. # Tell ltmain to make .dll files, not .so files.
  9556. shrext_cmds=.dll
  9557. # FIXME: Setting linknames here is a bad hack.
  9558. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9559. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9560. cp "$export_symbols" "$output_objdir/$soname.def";
  9561. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9562. else
  9563. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9564. fi~
  9565. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9566. linknames='
  9567. # The linker will not automatically build a static lib if we build a DLL.
  9568. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9569. enable_shared_with_static_runtimes=yes
  9570. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9571. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9572. # Don't use ranlib
  9573. old_postinstall_cmds='chmod 644 $oldlib'
  9574. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9575. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9576. case $lt_outputfile in
  9577. *.exe|*.EXE) ;;
  9578. *)
  9579. lt_outputfile=$lt_outputfile.exe
  9580. lt_tool_outputfile=$lt_tool_outputfile.exe
  9581. ;;
  9582. esac~
  9583. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9584. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9585. $RM "$lt_outputfile.manifest";
  9586. fi'
  9587. ;;
  9588. *)
  9589. # Assume MSVC wrapper
  9590. hardcode_libdir_flag_spec=' '
  9591. allow_undefined_flag=unsupported
  9592. # Tell ltmain to make .lib files, not .a files.
  9593. libext=lib
  9594. # Tell ltmain to make .dll files, not .so files.
  9595. shrext_cmds=.dll
  9596. # FIXME: Setting linknames here is a bad hack.
  9597. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9598. # The linker will automatically build a .lib file if we build a DLL.
  9599. old_archive_from_new_cmds='true'
  9600. # FIXME: Should let the user specify the lib program.
  9601. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9602. enable_shared_with_static_runtimes=yes
  9603. ;;
  9604. esac
  9605. ;;
  9606. darwin* | rhapsody*)
  9607. archive_cmds_need_lc=no
  9608. hardcode_direct=no
  9609. hardcode_automatic=yes
  9610. hardcode_shlibpath_var=unsupported
  9611. if test yes = "$lt_cv_ld_force_load"; then
  9612. 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\"`'
  9613. else
  9614. whole_archive_flag_spec=''
  9615. fi
  9616. link_all_deplibs=yes
  9617. allow_undefined_flag=$_lt_dar_allow_undefined
  9618. case $cc_basename in
  9619. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9620. *) _lt_dar_can_shared=$GCC ;;
  9621. esac
  9622. if test yes = "$_lt_dar_can_shared"; then
  9623. output_verbose_link_cmd=func_echo_all
  9624. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9625. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9626. 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"
  9627. 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"
  9628. else
  9629. ld_shlibs=no
  9630. fi
  9631. ;;
  9632. dgux*)
  9633. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9634. hardcode_libdir_flag_spec='-L$libdir'
  9635. hardcode_shlibpath_var=no
  9636. ;;
  9637. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9638. # support. Future versions do this automatically, but an explicit c++rt0.o
  9639. # does not break anything, and helps significantly (at the cost of a little
  9640. # extra space).
  9641. freebsd2.2*)
  9642. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9643. hardcode_libdir_flag_spec='-R$libdir'
  9644. hardcode_direct=yes
  9645. hardcode_shlibpath_var=no
  9646. ;;
  9647. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9648. freebsd2.*)
  9649. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9650. hardcode_direct=yes
  9651. hardcode_minus_L=yes
  9652. hardcode_shlibpath_var=no
  9653. ;;
  9654. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9655. freebsd* | dragonfly*)
  9656. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9657. hardcode_libdir_flag_spec='-R$libdir'
  9658. hardcode_direct=yes
  9659. hardcode_shlibpath_var=no
  9660. ;;
  9661. hpux9*)
  9662. if test yes = "$GCC"; then
  9663. 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'
  9664. else
  9665. 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'
  9666. fi
  9667. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9668. hardcode_libdir_separator=:
  9669. hardcode_direct=yes
  9670. # hardcode_minus_L: Not really in the search PATH,
  9671. # but as the default location of the library.
  9672. hardcode_minus_L=yes
  9673. export_dynamic_flag_spec='$wl-E'
  9674. ;;
  9675. hpux10*)
  9676. if test yes,no = "$GCC,$with_gnu_ld"; then
  9677. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9678. else
  9679. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9680. fi
  9681. if test no = "$with_gnu_ld"; then
  9682. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9683. hardcode_libdir_separator=:
  9684. hardcode_direct=yes
  9685. hardcode_direct_absolute=yes
  9686. export_dynamic_flag_spec='$wl-E'
  9687. # hardcode_minus_L: Not really in the search PATH,
  9688. # but as the default location of the library.
  9689. hardcode_minus_L=yes
  9690. fi
  9691. ;;
  9692. hpux11*)
  9693. if test yes,no = "$GCC,$with_gnu_ld"; then
  9694. case $host_cpu in
  9695. hppa*64*)
  9696. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9697. ;;
  9698. ia64*)
  9699. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9700. ;;
  9701. *)
  9702. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9703. ;;
  9704. esac
  9705. else
  9706. case $host_cpu in
  9707. hppa*64*)
  9708. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9709. ;;
  9710. ia64*)
  9711. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9712. ;;
  9713. *)
  9714. # Older versions of the 11.00 compiler do not understand -b yet
  9715. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9717. printf %s "checking if $CC understands -b... " >&6; }
  9718. if test ${lt_cv_prog_compiler__b+y}
  9719. then :
  9720. printf %s "(cached) " >&6
  9721. else $as_nop
  9722. lt_cv_prog_compiler__b=no
  9723. save_LDFLAGS=$LDFLAGS
  9724. LDFLAGS="$LDFLAGS -b"
  9725. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9726. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9727. # The linker can only warn and ignore the option if not recognized
  9728. # So say no if there are warnings
  9729. if test -s conftest.err; then
  9730. # Append any errors to the config.log.
  9731. cat conftest.err 1>&5
  9732. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9733. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9734. if diff conftest.exp conftest.er2 >/dev/null; then
  9735. lt_cv_prog_compiler__b=yes
  9736. fi
  9737. else
  9738. lt_cv_prog_compiler__b=yes
  9739. fi
  9740. fi
  9741. $RM -r conftest*
  9742. LDFLAGS=$save_LDFLAGS
  9743. fi
  9744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9745. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9746. if test yes = "$lt_cv_prog_compiler__b"; then
  9747. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9748. else
  9749. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9750. fi
  9751. ;;
  9752. esac
  9753. fi
  9754. if test no = "$with_gnu_ld"; then
  9755. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9756. hardcode_libdir_separator=:
  9757. case $host_cpu in
  9758. hppa*64*|ia64*)
  9759. hardcode_direct=no
  9760. hardcode_shlibpath_var=no
  9761. ;;
  9762. *)
  9763. hardcode_direct=yes
  9764. hardcode_direct_absolute=yes
  9765. export_dynamic_flag_spec='$wl-E'
  9766. # hardcode_minus_L: Not really in the search PATH,
  9767. # but as the default location of the library.
  9768. hardcode_minus_L=yes
  9769. ;;
  9770. esac
  9771. fi
  9772. ;;
  9773. irix5* | irix6* | nonstopux*)
  9774. if test yes = "$GCC"; then
  9775. 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'
  9776. # Try to use the -exported_symbol ld option, if it does not
  9777. # work, assume that -exports_file does not work either and
  9778. # implicitly export all symbols.
  9779. # This should be the same for all languages, so no per-tag cache variable.
  9780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9781. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9782. if test ${lt_cv_irix_exported_symbol+y}
  9783. then :
  9784. printf %s "(cached) " >&6
  9785. else $as_nop
  9786. save_LDFLAGS=$LDFLAGS
  9787. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9789. /* end confdefs.h. */
  9790. int foo (void) { return 0; }
  9791. _ACEOF
  9792. if ac_fn_c_try_link "$LINENO"
  9793. then :
  9794. lt_cv_irix_exported_symbol=yes
  9795. else $as_nop
  9796. lt_cv_irix_exported_symbol=no
  9797. fi
  9798. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9799. conftest$ac_exeext conftest.$ac_ext
  9800. LDFLAGS=$save_LDFLAGS
  9801. fi
  9802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9803. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9804. if test yes = "$lt_cv_irix_exported_symbol"; then
  9805. 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'
  9806. fi
  9807. else
  9808. 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'
  9809. 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'
  9810. fi
  9811. archive_cmds_need_lc='no'
  9812. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9813. hardcode_libdir_separator=:
  9814. inherit_rpath=yes
  9815. link_all_deplibs=yes
  9816. ;;
  9817. linux*)
  9818. case $cc_basename in
  9819. tcc*)
  9820. # Fabrice Bellard et al's Tiny C Compiler
  9821. ld_shlibs=yes
  9822. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9823. ;;
  9824. esac
  9825. ;;
  9826. netbsd*)
  9827. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9828. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9829. else
  9830. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9831. fi
  9832. hardcode_libdir_flag_spec='-R$libdir'
  9833. hardcode_direct=yes
  9834. hardcode_shlibpath_var=no
  9835. ;;
  9836. newsos6)
  9837. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9838. hardcode_direct=yes
  9839. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9840. hardcode_libdir_separator=:
  9841. hardcode_shlibpath_var=no
  9842. ;;
  9843. *nto* | *qnx*)
  9844. ;;
  9845. openbsd* | bitrig*)
  9846. if test -f /usr/libexec/ld.so; then
  9847. hardcode_direct=yes
  9848. hardcode_shlibpath_var=no
  9849. hardcode_direct_absolute=yes
  9850. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9851. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9852. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9853. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9854. export_dynamic_flag_spec='$wl-E'
  9855. else
  9856. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9857. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9858. fi
  9859. else
  9860. ld_shlibs=no
  9861. fi
  9862. ;;
  9863. os2*)
  9864. hardcode_libdir_flag_spec='-L$libdir'
  9865. hardcode_minus_L=yes
  9866. allow_undefined_flag=unsupported
  9867. shrext_cmds=.dll
  9868. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9869. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9870. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9871. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9872. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9873. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9874. emximp -o $lib $output_objdir/$libname.def'
  9875. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9876. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9877. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9878. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9879. prefix_cmds="$SED"~
  9880. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9881. prefix_cmds="$prefix_cmds -e 1d";
  9882. fi~
  9883. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9884. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9885. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9886. emximp -o $lib $output_objdir/$libname.def'
  9887. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9888. enable_shared_with_static_runtimes=yes
  9889. ;;
  9890. osf3*)
  9891. if test yes = "$GCC"; then
  9892. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9893. 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'
  9894. else
  9895. allow_undefined_flag=' -expect_unresolved \*'
  9896. 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'
  9897. fi
  9898. archive_cmds_need_lc='no'
  9899. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9900. hardcode_libdir_separator=:
  9901. ;;
  9902. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9903. if test yes = "$GCC"; then
  9904. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9905. 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'
  9906. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9907. else
  9908. allow_undefined_flag=' -expect_unresolved \*'
  9909. 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'
  9910. 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~
  9911. $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'
  9912. # Both c and cxx compiler support -rpath directly
  9913. hardcode_libdir_flag_spec='-rpath $libdir'
  9914. fi
  9915. archive_cmds_need_lc='no'
  9916. hardcode_libdir_separator=:
  9917. ;;
  9918. solaris*)
  9919. no_undefined_flag=' -z defs'
  9920. if test yes = "$GCC"; then
  9921. wlarc='$wl'
  9922. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9923. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9924. $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'
  9925. else
  9926. case `$CC -V 2>&1` in
  9927. *"Compilers 5.0"*)
  9928. wlarc=''
  9929. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9930. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9931. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9932. ;;
  9933. *)
  9934. wlarc='$wl'
  9935. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9936. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9937. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9938. ;;
  9939. esac
  9940. fi
  9941. hardcode_libdir_flag_spec='-R$libdir'
  9942. hardcode_shlibpath_var=no
  9943. case $host_os in
  9944. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9945. *)
  9946. # The compiler driver will combine and reorder linker options,
  9947. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9948. # but is careful enough not to reorder.
  9949. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9950. if test yes = "$GCC"; then
  9951. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9952. else
  9953. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9954. fi
  9955. ;;
  9956. esac
  9957. link_all_deplibs=yes
  9958. ;;
  9959. sunos4*)
  9960. if test sequent = "$host_vendor"; then
  9961. # Use $CC to link under sequent, because it throws in some extra .o
  9962. # files that make .init and .fini sections work.
  9963. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9964. else
  9965. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9966. fi
  9967. hardcode_libdir_flag_spec='-L$libdir'
  9968. hardcode_direct=yes
  9969. hardcode_minus_L=yes
  9970. hardcode_shlibpath_var=no
  9971. ;;
  9972. sysv4)
  9973. case $host_vendor in
  9974. sni)
  9975. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9976. hardcode_direct=yes # is this really true???
  9977. ;;
  9978. siemens)
  9979. ## LD is ld it makes a PLAMLIB
  9980. ## CC just makes a GrossModule.
  9981. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9982. reload_cmds='$CC -r -o $output$reload_objs'
  9983. hardcode_direct=no
  9984. ;;
  9985. motorola)
  9986. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9987. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9988. ;;
  9989. esac
  9990. runpath_var='LD_RUN_PATH'
  9991. hardcode_shlibpath_var=no
  9992. ;;
  9993. sysv4.3*)
  9994. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9995. hardcode_shlibpath_var=no
  9996. export_dynamic_flag_spec='-Bexport'
  9997. ;;
  9998. sysv4*MP*)
  9999. if test -d /usr/nec; then
  10000. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10001. hardcode_shlibpath_var=no
  10002. runpath_var=LD_RUN_PATH
  10003. hardcode_runpath_var=yes
  10004. ld_shlibs=yes
  10005. fi
  10006. ;;
  10007. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10008. no_undefined_flag='$wl-z,text'
  10009. archive_cmds_need_lc=no
  10010. hardcode_shlibpath_var=no
  10011. runpath_var='LD_RUN_PATH'
  10012. if test yes = "$GCC"; then
  10013. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10014. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10015. else
  10016. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10017. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10018. fi
  10019. ;;
  10020. sysv5* | sco3.2v5* | sco5v6*)
  10021. # Note: We CANNOT use -z defs as we might desire, because we do not
  10022. # link with -lc, and that would cause any symbols used from libc to
  10023. # always be unresolved, which means just about no library would
  10024. # ever link correctly. If we're not using GNU ld we use -z text
  10025. # though, which does catch some bad symbols but isn't as heavy-handed
  10026. # as -z defs.
  10027. no_undefined_flag='$wl-z,text'
  10028. allow_undefined_flag='$wl-z,nodefs'
  10029. archive_cmds_need_lc=no
  10030. hardcode_shlibpath_var=no
  10031. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10032. hardcode_libdir_separator=':'
  10033. link_all_deplibs=yes
  10034. export_dynamic_flag_spec='$wl-Bexport'
  10035. runpath_var='LD_RUN_PATH'
  10036. if test yes = "$GCC"; then
  10037. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10038. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10039. else
  10040. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10041. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10042. fi
  10043. ;;
  10044. uts4*)
  10045. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10046. hardcode_libdir_flag_spec='-L$libdir'
  10047. hardcode_shlibpath_var=no
  10048. ;;
  10049. *)
  10050. ld_shlibs=no
  10051. ;;
  10052. esac
  10053. if test sni = "$host_vendor"; then
  10054. case $host in
  10055. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10056. export_dynamic_flag_spec='$wl-Blargedynsym'
  10057. ;;
  10058. esac
  10059. fi
  10060. fi
  10061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10062. printf "%s\n" "$ld_shlibs" >&6; }
  10063. test no = "$ld_shlibs" && can_build_shared=no
  10064. with_gnu_ld=$with_gnu_ld
  10065. #
  10066. # Do we need to explicitly link libc?
  10067. #
  10068. case "x$archive_cmds_need_lc" in
  10069. x|xyes)
  10070. # Assume -lc should be added
  10071. archive_cmds_need_lc=yes
  10072. if test yes,yes = "$GCC,$enable_shared"; then
  10073. case $archive_cmds in
  10074. *'~'*)
  10075. # FIXME: we may have to deal with multi-command sequences.
  10076. ;;
  10077. '$CC '*)
  10078. # Test whether the compiler implicitly links with -lc since on some
  10079. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10080. # to ld, don't add -lc before -lgcc.
  10081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10082. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10083. if test ${lt_cv_archive_cmds_need_lc+y}
  10084. then :
  10085. printf %s "(cached) " >&6
  10086. else $as_nop
  10087. $RM conftest*
  10088. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10089. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10090. (eval $ac_compile) 2>&5
  10091. ac_status=$?
  10092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10093. test $ac_status = 0; } 2>conftest.err; then
  10094. soname=conftest
  10095. lib=conftest
  10096. libobjs=conftest.$ac_objext
  10097. deplibs=
  10098. wl=$lt_prog_compiler_wl
  10099. pic_flag=$lt_prog_compiler_pic
  10100. compiler_flags=-v
  10101. linker_flags=-v
  10102. verstring=
  10103. output_objdir=.
  10104. libname=conftest
  10105. lt_save_allow_undefined_flag=$allow_undefined_flag
  10106. allow_undefined_flag=
  10107. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10108. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10109. ac_status=$?
  10110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10111. test $ac_status = 0; }
  10112. then
  10113. lt_cv_archive_cmds_need_lc=no
  10114. else
  10115. lt_cv_archive_cmds_need_lc=yes
  10116. fi
  10117. allow_undefined_flag=$lt_save_allow_undefined_flag
  10118. else
  10119. cat conftest.err 1>&5
  10120. fi
  10121. $RM conftest*
  10122. fi
  10123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10124. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10125. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10126. ;;
  10127. esac
  10128. fi
  10129. ;;
  10130. esac
  10131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10132. printf %s "checking dynamic linker characteristics... " >&6; }
  10133. if test yes = "$GCC"; then
  10134. case $host_os in
  10135. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10136. *) lt_awk_arg='/^libraries:/' ;;
  10137. esac
  10138. case $host_os in
  10139. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10140. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10141. esac
  10142. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10143. case $lt_search_path_spec in
  10144. *\;*)
  10145. # if the path contains ";" then we assume it to be the separator
  10146. # otherwise default to the standard path separator (i.e. ":") - it is
  10147. # assumed that no part of a normal pathname contains ";" but that should
  10148. # okay in the real world where ";" in dirpaths is itself problematic.
  10149. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10150. ;;
  10151. *)
  10152. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10153. ;;
  10154. esac
  10155. # Ok, now we have the path, separated by spaces, we can step through it
  10156. # and add multilib dir if necessary...
  10157. lt_tmp_lt_search_path_spec=
  10158. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10159. # ...but if some path component already ends with the multilib dir we assume
  10160. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10161. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10162. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10163. lt_multi_os_dir=
  10164. ;;
  10165. esac
  10166. for lt_sys_path in $lt_search_path_spec; do
  10167. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10168. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10169. elif test -n "$lt_multi_os_dir"; then
  10170. test -d "$lt_sys_path" && \
  10171. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10172. fi
  10173. done
  10174. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10175. BEGIN {RS = " "; FS = "/|\n";} {
  10176. lt_foo = "";
  10177. lt_count = 0;
  10178. for (lt_i = NF; lt_i > 0; lt_i--) {
  10179. if ($lt_i != "" && $lt_i != ".") {
  10180. if ($lt_i == "..") {
  10181. lt_count++;
  10182. } else {
  10183. if (lt_count == 0) {
  10184. lt_foo = "/" $lt_i lt_foo;
  10185. } else {
  10186. lt_count--;
  10187. }
  10188. }
  10189. }
  10190. }
  10191. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10192. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10193. }'`
  10194. # AWK program above erroneously prepends '/' to C:/dos/paths
  10195. # for these hosts.
  10196. case $host_os in
  10197. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10198. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10199. esac
  10200. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10201. else
  10202. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10203. fi
  10204. library_names_spec=
  10205. libname_spec='lib$name'
  10206. soname_spec=
  10207. shrext_cmds=.so
  10208. postinstall_cmds=
  10209. postuninstall_cmds=
  10210. finish_cmds=
  10211. finish_eval=
  10212. shlibpath_var=
  10213. shlibpath_overrides_runpath=unknown
  10214. version_type=none
  10215. dynamic_linker="$host_os ld.so"
  10216. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10217. need_lib_prefix=unknown
  10218. hardcode_into_libs=no
  10219. # when you set need_version to no, make sure it does not cause -set_version
  10220. # flags to be left without arguments
  10221. need_version=unknown
  10222. case $host_os in
  10223. aix3*)
  10224. version_type=linux # correct to gnu/linux during the next big refactor
  10225. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10226. shlibpath_var=LIBPATH
  10227. # AIX 3 has no versioning support, so we append a major version to the name.
  10228. soname_spec='$libname$release$shared_ext$major'
  10229. ;;
  10230. aix[4-9]*)
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. need_lib_prefix=no
  10233. need_version=no
  10234. hardcode_into_libs=yes
  10235. if test ia64 = "$host_cpu"; then
  10236. # AIX 5 supports IA64
  10237. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10238. shlibpath_var=LD_LIBRARY_PATH
  10239. else
  10240. # With GCC up to 2.95.x, collect2 would create an import file
  10241. # for dependence libraries. The import file would start with
  10242. # the line '#! .'. This would cause the generated library to
  10243. # depend on '.', always an invalid library. This was fixed in
  10244. # development snapshots of GCC prior to 3.0.
  10245. case $host_os in
  10246. aix4 | aix4.[01] | aix4.[01].*)
  10247. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10248. echo ' yes '
  10249. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10250. :
  10251. else
  10252. can_build_shared=no
  10253. fi
  10254. ;;
  10255. esac
  10256. # Using Import Files as archive members, it is possible to support
  10257. # filename-based versioning of shared library archives on AIX. While
  10258. # this would work for both with and without runtime linking, it will
  10259. # prevent static linking of such archives. So we do filename-based
  10260. # shared library versioning with .so extension only, which is used
  10261. # when both runtime linking and shared linking is enabled.
  10262. # Unfortunately, runtime linking may impact performance, so we do
  10263. # not want this to be the default eventually. Also, we use the
  10264. # versioned .so libs for executables only if there is the -brtl
  10265. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10266. # To allow for filename-based versioning support, we need to create
  10267. # libNAME.so.V as an archive file, containing:
  10268. # *) an Import File, referring to the versioned filename of the
  10269. # archive as well as the shared archive member, telling the
  10270. # bitwidth (32 or 64) of that shared object, and providing the
  10271. # list of exported symbols of that shared object, eventually
  10272. # decorated with the 'weak' keyword
  10273. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10274. # it being seen by the linker.
  10275. # At run time we better use the real file rather than another symlink,
  10276. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10277. case $with_aix_soname,$aix_use_runtimelinking in
  10278. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10279. # soname into executable. Probably we can add versioning support to
  10280. # collect2, so additional links can be useful in future.
  10281. aix,yes) # traditional libtool
  10282. dynamic_linker='AIX unversionable lib.so'
  10283. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10284. # instead of lib<name>.a to let people know that these are not
  10285. # typical AIX shared libraries.
  10286. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10287. ;;
  10288. aix,no) # traditional AIX only
  10289. dynamic_linker='AIX lib.a(lib.so.V)'
  10290. # We preserve .a as extension for shared libraries through AIX4.2
  10291. # and later when we are not doing run time linking.
  10292. library_names_spec='$libname$release.a $libname.a'
  10293. soname_spec='$libname$release$shared_ext$major'
  10294. ;;
  10295. svr4,*) # full svr4 only
  10296. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10297. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10298. # We do not specify a path in Import Files, so LIBPATH fires.
  10299. shlibpath_overrides_runpath=yes
  10300. ;;
  10301. *,yes) # both, prefer svr4
  10302. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10303. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10304. # unpreferred sharedlib libNAME.a needs extra handling
  10305. 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"'
  10306. 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"'
  10307. # We do not specify a path in Import Files, so LIBPATH fires.
  10308. shlibpath_overrides_runpath=yes
  10309. ;;
  10310. *,no) # both, prefer aix
  10311. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10312. library_names_spec='$libname$release.a $libname.a'
  10313. soname_spec='$libname$release$shared_ext$major'
  10314. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10315. 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)'
  10316. 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"'
  10317. ;;
  10318. esac
  10319. shlibpath_var=LIBPATH
  10320. fi
  10321. ;;
  10322. amigaos*)
  10323. case $host_cpu in
  10324. powerpc)
  10325. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10326. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10327. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10328. ;;
  10329. m68k)
  10330. library_names_spec='$libname.ixlibrary $libname.a'
  10331. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10332. 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'
  10333. ;;
  10334. esac
  10335. ;;
  10336. beos*)
  10337. library_names_spec='$libname$shared_ext'
  10338. dynamic_linker="$host_os ld.so"
  10339. shlibpath_var=LIBRARY_PATH
  10340. ;;
  10341. bsdi[45]*)
  10342. version_type=linux # correct to gnu/linux during the next big refactor
  10343. need_version=no
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10347. shlibpath_var=LD_LIBRARY_PATH
  10348. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10349. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10350. # the default ld.so.conf also contains /usr/contrib/lib and
  10351. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10352. # libtool to hard-code these into programs
  10353. ;;
  10354. cygwin* | mingw* | pw32* | cegcc*)
  10355. version_type=windows
  10356. shrext_cmds=.dll
  10357. need_version=no
  10358. need_lib_prefix=no
  10359. case $GCC,$cc_basename in
  10360. yes,*)
  10361. # gcc
  10362. library_names_spec='$libname.dll.a'
  10363. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10364. postinstall_cmds='base_file=`basename \$file`~
  10365. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10366. dldir=$destdir/`dirname \$dlpath`~
  10367. test -d \$dldir || mkdir -p \$dldir~
  10368. $install_prog $dir/$dlname \$dldir/$dlname~
  10369. chmod a+x \$dldir/$dlname~
  10370. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10371. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10372. fi'
  10373. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10374. dlpath=$dir/\$dldll~
  10375. $RM \$dlpath'
  10376. shlibpath_overrides_runpath=yes
  10377. case $host_os in
  10378. cygwin*)
  10379. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10380. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10381. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10382. ;;
  10383. mingw* | cegcc*)
  10384. # MinGW DLLs use traditional 'lib' prefix
  10385. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10386. ;;
  10387. pw32*)
  10388. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10389. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10390. ;;
  10391. esac
  10392. dynamic_linker='Win32 ld.exe'
  10393. ;;
  10394. *,cl*)
  10395. # Native MSVC
  10396. libname_spec='$name'
  10397. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10398. library_names_spec='$libname.dll.lib'
  10399. case $build_os in
  10400. mingw*)
  10401. sys_lib_search_path_spec=
  10402. lt_save_ifs=$IFS
  10403. IFS=';'
  10404. for lt_path in $LIB
  10405. do
  10406. IFS=$lt_save_ifs
  10407. # Let DOS variable expansion print the short 8.3 style file name.
  10408. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10409. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10410. done
  10411. IFS=$lt_save_ifs
  10412. # Convert to MSYS style.
  10413. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10414. ;;
  10415. cygwin*)
  10416. # Convert to unix form, then to dos form, then back to unix form
  10417. # but this time dos style (no spaces!) so that the unix form looks
  10418. # like /cygdrive/c/PROGRA~1:/cygdr...
  10419. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10420. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10421. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10422. ;;
  10423. *)
  10424. sys_lib_search_path_spec=$LIB
  10425. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10426. # It is most probably a Windows format PATH.
  10427. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10428. else
  10429. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10430. fi
  10431. # FIXME: find the short name or the path components, as spaces are
  10432. # common. (e.g. "Program Files" -> "PROGRA~1")
  10433. ;;
  10434. esac
  10435. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10436. postinstall_cmds='base_file=`basename \$file`~
  10437. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10438. dldir=$destdir/`dirname \$dlpath`~
  10439. test -d \$dldir || mkdir -p \$dldir~
  10440. $install_prog $dir/$dlname \$dldir/$dlname'
  10441. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10442. dlpath=$dir/\$dldll~
  10443. $RM \$dlpath'
  10444. shlibpath_overrides_runpath=yes
  10445. dynamic_linker='Win32 link.exe'
  10446. ;;
  10447. *)
  10448. # Assume MSVC wrapper
  10449. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10450. dynamic_linker='Win32 ld.exe'
  10451. ;;
  10452. esac
  10453. # FIXME: first we should search . and the directory the executable is in
  10454. shlibpath_var=PATH
  10455. ;;
  10456. darwin* | rhapsody*)
  10457. dynamic_linker="$host_os dyld"
  10458. version_type=darwin
  10459. need_lib_prefix=no
  10460. need_version=no
  10461. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10462. soname_spec='$libname$release$major$shared_ext'
  10463. shlibpath_overrides_runpath=yes
  10464. shlibpath_var=DYLD_LIBRARY_PATH
  10465. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10466. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10467. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10468. ;;
  10469. dgux*)
  10470. version_type=linux # correct to gnu/linux during the next big refactor
  10471. need_lib_prefix=no
  10472. need_version=no
  10473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10474. soname_spec='$libname$release$shared_ext$major'
  10475. shlibpath_var=LD_LIBRARY_PATH
  10476. ;;
  10477. freebsd* | dragonfly*)
  10478. # DragonFly does not have aout. When/if they implement a new
  10479. # versioning mechanism, adjust this.
  10480. if test -x /usr/bin/objformat; then
  10481. objformat=`/usr/bin/objformat`
  10482. else
  10483. case $host_os in
  10484. freebsd[23].*) objformat=aout ;;
  10485. *) objformat=elf ;;
  10486. esac
  10487. fi
  10488. version_type=freebsd-$objformat
  10489. case $version_type in
  10490. freebsd-elf*)
  10491. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10492. soname_spec='$libname$release$shared_ext$major'
  10493. need_version=no
  10494. need_lib_prefix=no
  10495. ;;
  10496. freebsd-*)
  10497. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10498. need_version=yes
  10499. ;;
  10500. esac
  10501. shlibpath_var=LD_LIBRARY_PATH
  10502. case $host_os in
  10503. freebsd2.*)
  10504. shlibpath_overrides_runpath=yes
  10505. ;;
  10506. freebsd3.[01]* | freebsdelf3.[01]*)
  10507. shlibpath_overrides_runpath=yes
  10508. hardcode_into_libs=yes
  10509. ;;
  10510. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10511. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10512. shlibpath_overrides_runpath=no
  10513. hardcode_into_libs=yes
  10514. ;;
  10515. *) # from 4.6 on, and DragonFly
  10516. shlibpath_overrides_runpath=yes
  10517. hardcode_into_libs=yes
  10518. ;;
  10519. esac
  10520. ;;
  10521. haiku*)
  10522. version_type=linux # correct to gnu/linux during the next big refactor
  10523. need_lib_prefix=no
  10524. need_version=no
  10525. dynamic_linker="$host_os runtime_loader"
  10526. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10527. soname_spec='$libname$release$shared_ext$major'
  10528. shlibpath_var=LIBRARY_PATH
  10529. shlibpath_overrides_runpath=no
  10530. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10531. hardcode_into_libs=yes
  10532. ;;
  10533. hpux9* | hpux10* | hpux11*)
  10534. # Give a soname corresponding to the major version so that dld.sl refuses to
  10535. # link against other versions.
  10536. version_type=sunos
  10537. need_lib_prefix=no
  10538. need_version=no
  10539. case $host_cpu in
  10540. ia64*)
  10541. shrext_cmds='.so'
  10542. hardcode_into_libs=yes
  10543. dynamic_linker="$host_os dld.so"
  10544. shlibpath_var=LD_LIBRARY_PATH
  10545. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10546. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10547. soname_spec='$libname$release$shared_ext$major'
  10548. if test 32 = "$HPUX_IA64_MODE"; then
  10549. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10550. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10551. else
  10552. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10553. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10554. fi
  10555. ;;
  10556. hppa*64*)
  10557. shrext_cmds='.sl'
  10558. hardcode_into_libs=yes
  10559. dynamic_linker="$host_os dld.sl"
  10560. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10561. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10562. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10563. soname_spec='$libname$release$shared_ext$major'
  10564. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10565. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10566. ;;
  10567. *)
  10568. shrext_cmds='.sl'
  10569. dynamic_linker="$host_os dld.sl"
  10570. shlibpath_var=SHLIB_PATH
  10571. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10573. soname_spec='$libname$release$shared_ext$major'
  10574. ;;
  10575. esac
  10576. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10577. postinstall_cmds='chmod 555 $lib'
  10578. # or fails outright, so override atomically:
  10579. install_override_mode=555
  10580. ;;
  10581. interix[3-9]*)
  10582. version_type=linux # correct to gnu/linux during the next big refactor
  10583. need_lib_prefix=no
  10584. need_version=no
  10585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10586. soname_spec='$libname$release$shared_ext$major'
  10587. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10588. shlibpath_var=LD_LIBRARY_PATH
  10589. shlibpath_overrides_runpath=no
  10590. hardcode_into_libs=yes
  10591. ;;
  10592. irix5* | irix6* | nonstopux*)
  10593. case $host_os in
  10594. nonstopux*) version_type=nonstopux ;;
  10595. *)
  10596. if test yes = "$lt_cv_prog_gnu_ld"; then
  10597. version_type=linux # correct to gnu/linux during the next big refactor
  10598. else
  10599. version_type=irix
  10600. fi ;;
  10601. esac
  10602. need_lib_prefix=no
  10603. need_version=no
  10604. soname_spec='$libname$release$shared_ext$major'
  10605. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10606. case $host_os in
  10607. irix5* | nonstopux*)
  10608. libsuff= shlibsuff=
  10609. ;;
  10610. *)
  10611. case $LD in # libtool.m4 will add one of these switches to LD
  10612. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10613. libsuff= shlibsuff= libmagic=32-bit;;
  10614. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10615. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10616. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10617. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10618. *) libsuff= shlibsuff= libmagic=never-match;;
  10619. esac
  10620. ;;
  10621. esac
  10622. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10623. shlibpath_overrides_runpath=no
  10624. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10625. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10626. hardcode_into_libs=yes
  10627. ;;
  10628. # No shared lib support for Linux oldld, aout, or coff.
  10629. linux*oldld* | linux*aout* | linux*coff*)
  10630. dynamic_linker=no
  10631. ;;
  10632. linux*android*)
  10633. version_type=none # Android doesn't support versioned libraries.
  10634. need_lib_prefix=no
  10635. need_version=no
  10636. library_names_spec='$libname$release$shared_ext'
  10637. soname_spec='$libname$release$shared_ext'
  10638. finish_cmds=
  10639. shlibpath_var=LD_LIBRARY_PATH
  10640. shlibpath_overrides_runpath=yes
  10641. # This implies no fast_install, which is unacceptable.
  10642. # Some rework will be needed to allow for fast_install
  10643. # before this can be enabled.
  10644. hardcode_into_libs=yes
  10645. dynamic_linker='Android linker'
  10646. # Don't embed -rpath directories since the linker doesn't support them.
  10647. hardcode_libdir_flag_spec='-L$libdir'
  10648. ;;
  10649. # This must be glibc/ELF.
  10650. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10651. version_type=linux # correct to gnu/linux during the next big refactor
  10652. need_lib_prefix=no
  10653. need_version=no
  10654. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10655. soname_spec='$libname$release$shared_ext$major'
  10656. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10657. shlibpath_var=LD_LIBRARY_PATH
  10658. shlibpath_overrides_runpath=no
  10659. # Some binutils ld are patched to set DT_RUNPATH
  10660. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10661. then :
  10662. printf %s "(cached) " >&6
  10663. else $as_nop
  10664. lt_cv_shlibpath_overrides_runpath=no
  10665. save_LDFLAGS=$LDFLAGS
  10666. save_libdir=$libdir
  10667. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10668. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10670. /* end confdefs.h. */
  10671. int
  10672. main (void)
  10673. {
  10674. ;
  10675. return 0;
  10676. }
  10677. _ACEOF
  10678. if ac_fn_c_try_link "$LINENO"
  10679. then :
  10680. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10681. then :
  10682. lt_cv_shlibpath_overrides_runpath=yes
  10683. fi
  10684. fi
  10685. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10686. conftest$ac_exeext conftest.$ac_ext
  10687. LDFLAGS=$save_LDFLAGS
  10688. libdir=$save_libdir
  10689. fi
  10690. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10691. # This implies no fast_install, which is unacceptable.
  10692. # Some rework will be needed to allow for fast_install
  10693. # before this can be enabled.
  10694. hardcode_into_libs=yes
  10695. # Ideally, we could use ldconfig to report *all* directores which are
  10696. # searched for libraries, however this is still not possible. Aside from not
  10697. # being certain /sbin/ldconfig is available, command
  10698. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10699. # even though it is searched at run-time. Try to do the best guess by
  10700. # appending ld.so.conf contents (and includes) to the search path.
  10701. if test -f /etc/ld.so.conf; then
  10702. 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' ' '`
  10703. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10704. fi
  10705. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10706. # powerpc, because MkLinux only supported shared libraries with the
  10707. # GNU dynamic linker. Since this was broken with cross compilers,
  10708. # most powerpc-linux boxes support dynamic linking these days and
  10709. # people can always --disable-shared, the test was removed, and we
  10710. # assume the GNU/Linux dynamic linker is in use.
  10711. dynamic_linker='GNU/Linux ld.so'
  10712. ;;
  10713. netbsd*)
  10714. version_type=sunos
  10715. need_lib_prefix=no
  10716. need_version=no
  10717. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10718. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10719. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10720. dynamic_linker='NetBSD (a.out) ld.so'
  10721. else
  10722. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10723. soname_spec='$libname$release$shared_ext$major'
  10724. dynamic_linker='NetBSD ld.elf_so'
  10725. fi
  10726. shlibpath_var=LD_LIBRARY_PATH
  10727. shlibpath_overrides_runpath=yes
  10728. hardcode_into_libs=yes
  10729. ;;
  10730. newsos6)
  10731. version_type=linux # correct to gnu/linux during the next big refactor
  10732. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10733. shlibpath_var=LD_LIBRARY_PATH
  10734. shlibpath_overrides_runpath=yes
  10735. ;;
  10736. *nto* | *qnx*)
  10737. version_type=qnx
  10738. need_lib_prefix=no
  10739. need_version=no
  10740. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10741. soname_spec='$libname$release$shared_ext$major'
  10742. shlibpath_var=LD_LIBRARY_PATH
  10743. shlibpath_overrides_runpath=no
  10744. hardcode_into_libs=yes
  10745. dynamic_linker='ldqnx.so'
  10746. ;;
  10747. openbsd* | bitrig*)
  10748. version_type=sunos
  10749. sys_lib_dlsearch_path_spec=/usr/lib
  10750. need_lib_prefix=no
  10751. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10752. need_version=no
  10753. else
  10754. need_version=yes
  10755. fi
  10756. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10757. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10758. shlibpath_var=LD_LIBRARY_PATH
  10759. shlibpath_overrides_runpath=yes
  10760. ;;
  10761. os2*)
  10762. libname_spec='$name'
  10763. version_type=windows
  10764. shrext_cmds=.dll
  10765. need_version=no
  10766. need_lib_prefix=no
  10767. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10768. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10769. v=$($ECHO $release$versuffix | tr -d .-);
  10770. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10771. $ECHO $n$v`$shared_ext'
  10772. library_names_spec='${libname}_dll.$libext'
  10773. dynamic_linker='OS/2 ld.exe'
  10774. shlibpath_var=BEGINLIBPATH
  10775. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10776. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10777. postinstall_cmds='base_file=`basename \$file`~
  10778. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10779. dldir=$destdir/`dirname \$dlpath`~
  10780. test -d \$dldir || mkdir -p \$dldir~
  10781. $install_prog $dir/$dlname \$dldir/$dlname~
  10782. chmod a+x \$dldir/$dlname~
  10783. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10784. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10785. fi'
  10786. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10787. dlpath=$dir/\$dldll~
  10788. $RM \$dlpath'
  10789. ;;
  10790. osf3* | osf4* | osf5*)
  10791. version_type=osf
  10792. need_lib_prefix=no
  10793. need_version=no
  10794. soname_spec='$libname$release$shared_ext$major'
  10795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10796. shlibpath_var=LD_LIBRARY_PATH
  10797. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10798. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10799. ;;
  10800. rdos*)
  10801. dynamic_linker=no
  10802. ;;
  10803. solaris*)
  10804. version_type=linux # correct to gnu/linux during the next big refactor
  10805. need_lib_prefix=no
  10806. need_version=no
  10807. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10808. soname_spec='$libname$release$shared_ext$major'
  10809. shlibpath_var=LD_LIBRARY_PATH
  10810. shlibpath_overrides_runpath=yes
  10811. hardcode_into_libs=yes
  10812. # ldd complains unless libraries are executable
  10813. postinstall_cmds='chmod +x $lib'
  10814. ;;
  10815. sunos4*)
  10816. version_type=sunos
  10817. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10818. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10819. shlibpath_var=LD_LIBRARY_PATH
  10820. shlibpath_overrides_runpath=yes
  10821. if test yes = "$with_gnu_ld"; then
  10822. need_lib_prefix=no
  10823. fi
  10824. need_version=yes
  10825. ;;
  10826. sysv4 | sysv4.3*)
  10827. version_type=linux # correct to gnu/linux during the next big refactor
  10828. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10829. soname_spec='$libname$release$shared_ext$major'
  10830. shlibpath_var=LD_LIBRARY_PATH
  10831. case $host_vendor in
  10832. sni)
  10833. shlibpath_overrides_runpath=no
  10834. need_lib_prefix=no
  10835. runpath_var=LD_RUN_PATH
  10836. ;;
  10837. siemens)
  10838. need_lib_prefix=no
  10839. ;;
  10840. motorola)
  10841. need_lib_prefix=no
  10842. need_version=no
  10843. shlibpath_overrides_runpath=no
  10844. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10845. ;;
  10846. esac
  10847. ;;
  10848. sysv4*MP*)
  10849. if test -d /usr/nec; then
  10850. version_type=linux # correct to gnu/linux during the next big refactor
  10851. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10852. soname_spec='$libname$shared_ext.$major'
  10853. shlibpath_var=LD_LIBRARY_PATH
  10854. fi
  10855. ;;
  10856. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10857. version_type=sco
  10858. need_lib_prefix=no
  10859. need_version=no
  10860. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10861. soname_spec='$libname$release$shared_ext$major'
  10862. shlibpath_var=LD_LIBRARY_PATH
  10863. shlibpath_overrides_runpath=yes
  10864. hardcode_into_libs=yes
  10865. if test yes = "$with_gnu_ld"; then
  10866. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10867. else
  10868. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10869. case $host_os in
  10870. sco3.2v5*)
  10871. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10872. ;;
  10873. esac
  10874. fi
  10875. sys_lib_dlsearch_path_spec='/usr/lib'
  10876. ;;
  10877. tpf*)
  10878. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10879. version_type=linux # correct to gnu/linux during the next big refactor
  10880. need_lib_prefix=no
  10881. need_version=no
  10882. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10883. shlibpath_var=LD_LIBRARY_PATH
  10884. shlibpath_overrides_runpath=no
  10885. hardcode_into_libs=yes
  10886. ;;
  10887. uts4*)
  10888. version_type=linux # correct to gnu/linux during the next big refactor
  10889. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10890. soname_spec='$libname$release$shared_ext$major'
  10891. shlibpath_var=LD_LIBRARY_PATH
  10892. ;;
  10893. *)
  10894. dynamic_linker=no
  10895. ;;
  10896. esac
  10897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10898. printf "%s\n" "$dynamic_linker" >&6; }
  10899. test no = "$dynamic_linker" && can_build_shared=no
  10900. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10901. if test yes = "$GCC"; then
  10902. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10903. fi
  10904. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10905. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10906. fi
  10907. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10908. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10909. fi
  10910. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10911. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10912. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10913. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10914. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10915. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10917. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10918. hardcode_action=
  10919. if test -n "$hardcode_libdir_flag_spec" ||
  10920. test -n "$runpath_var" ||
  10921. test yes = "$hardcode_automatic"; then
  10922. # We can hardcode non-existent directories.
  10923. if test no != "$hardcode_direct" &&
  10924. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10925. # have to relink, otherwise we might link with an installed library
  10926. # when we should be linking with a yet-to-be-installed one
  10927. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10928. test no != "$hardcode_minus_L"; then
  10929. # Linking always hardcodes the temporary library directory.
  10930. hardcode_action=relink
  10931. else
  10932. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10933. hardcode_action=immediate
  10934. fi
  10935. else
  10936. # We cannot hardcode anything, or else we can only hardcode existing
  10937. # directories.
  10938. hardcode_action=unsupported
  10939. fi
  10940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10941. printf "%s\n" "$hardcode_action" >&6; }
  10942. if test relink = "$hardcode_action" ||
  10943. test yes = "$inherit_rpath"; then
  10944. # Fast installation is not supported
  10945. enable_fast_install=no
  10946. elif test yes = "$shlibpath_overrides_runpath" ||
  10947. test no = "$enable_shared"; then
  10948. # Fast installation is not necessary
  10949. enable_fast_install=needless
  10950. fi
  10951. if test yes != "$enable_dlopen"; then
  10952. enable_dlopen=unknown
  10953. enable_dlopen_self=unknown
  10954. enable_dlopen_self_static=unknown
  10955. else
  10956. lt_cv_dlopen=no
  10957. lt_cv_dlopen_libs=
  10958. case $host_os in
  10959. beos*)
  10960. lt_cv_dlopen=load_add_on
  10961. lt_cv_dlopen_libs=
  10962. lt_cv_dlopen_self=yes
  10963. ;;
  10964. mingw* | pw32* | cegcc*)
  10965. lt_cv_dlopen=LoadLibrary
  10966. lt_cv_dlopen_libs=
  10967. ;;
  10968. cygwin*)
  10969. lt_cv_dlopen=dlopen
  10970. lt_cv_dlopen_libs=
  10971. ;;
  10972. darwin*)
  10973. # if libdl is installed we need to link against it
  10974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10975. printf %s "checking for dlopen in -ldl... " >&6; }
  10976. if test ${ac_cv_lib_dl_dlopen+y}
  10977. then :
  10978. printf %s "(cached) " >&6
  10979. else $as_nop
  10980. ac_check_lib_save_LIBS=$LIBS
  10981. LIBS="-ldl $LIBS"
  10982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10983. /* end confdefs.h. */
  10984. /* Override any GCC internal prototype to avoid an error.
  10985. Use char because int might match the return type of a GCC
  10986. builtin and then its argument prototype would still apply. */
  10987. char dlopen ();
  10988. int
  10989. main (void)
  10990. {
  10991. return dlopen ();
  10992. ;
  10993. return 0;
  10994. }
  10995. _ACEOF
  10996. if ac_fn_c_try_link "$LINENO"
  10997. then :
  10998. ac_cv_lib_dl_dlopen=yes
  10999. else $as_nop
  11000. ac_cv_lib_dl_dlopen=no
  11001. fi
  11002. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11003. conftest$ac_exeext conftest.$ac_ext
  11004. LIBS=$ac_check_lib_save_LIBS
  11005. fi
  11006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11007. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11008. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11009. then :
  11010. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11011. else $as_nop
  11012. lt_cv_dlopen=dyld
  11013. lt_cv_dlopen_libs=
  11014. lt_cv_dlopen_self=yes
  11015. fi
  11016. ;;
  11017. tpf*)
  11018. # Don't try to run any link tests for TPF. We know it's impossible
  11019. # because TPF is a cross-compiler, and we know how we open DSOs.
  11020. lt_cv_dlopen=dlopen
  11021. lt_cv_dlopen_libs=
  11022. lt_cv_dlopen_self=no
  11023. ;;
  11024. *)
  11025. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11026. if test "x$ac_cv_func_shl_load" = xyes
  11027. then :
  11028. lt_cv_dlopen=shl_load
  11029. else $as_nop
  11030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11031. printf %s "checking for shl_load in -ldld... " >&6; }
  11032. if test ${ac_cv_lib_dld_shl_load+y}
  11033. then :
  11034. printf %s "(cached) " >&6
  11035. else $as_nop
  11036. ac_check_lib_save_LIBS=$LIBS
  11037. LIBS="-ldld $LIBS"
  11038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11039. /* end confdefs.h. */
  11040. /* Override any GCC internal prototype to avoid an error.
  11041. Use char because int might match the return type of a GCC
  11042. builtin and then its argument prototype would still apply. */
  11043. char shl_load ();
  11044. int
  11045. main (void)
  11046. {
  11047. return shl_load ();
  11048. ;
  11049. return 0;
  11050. }
  11051. _ACEOF
  11052. if ac_fn_c_try_link "$LINENO"
  11053. then :
  11054. ac_cv_lib_dld_shl_load=yes
  11055. else $as_nop
  11056. ac_cv_lib_dld_shl_load=no
  11057. fi
  11058. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11059. conftest$ac_exeext conftest.$ac_ext
  11060. LIBS=$ac_check_lib_save_LIBS
  11061. fi
  11062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11063. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11064. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11065. then :
  11066. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11067. else $as_nop
  11068. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11069. if test "x$ac_cv_func_dlopen" = xyes
  11070. then :
  11071. lt_cv_dlopen=dlopen
  11072. else $as_nop
  11073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11074. printf %s "checking for dlopen in -ldl... " >&6; }
  11075. if test ${ac_cv_lib_dl_dlopen+y}
  11076. then :
  11077. printf %s "(cached) " >&6
  11078. else $as_nop
  11079. ac_check_lib_save_LIBS=$LIBS
  11080. LIBS="-ldl $LIBS"
  11081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11082. /* end confdefs.h. */
  11083. /* Override any GCC internal prototype to avoid an error.
  11084. Use char because int might match the return type of a GCC
  11085. builtin and then its argument prototype would still apply. */
  11086. char dlopen ();
  11087. int
  11088. main (void)
  11089. {
  11090. return dlopen ();
  11091. ;
  11092. return 0;
  11093. }
  11094. _ACEOF
  11095. if ac_fn_c_try_link "$LINENO"
  11096. then :
  11097. ac_cv_lib_dl_dlopen=yes
  11098. else $as_nop
  11099. ac_cv_lib_dl_dlopen=no
  11100. fi
  11101. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11102. conftest$ac_exeext conftest.$ac_ext
  11103. LIBS=$ac_check_lib_save_LIBS
  11104. fi
  11105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11106. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11107. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11108. then :
  11109. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11110. else $as_nop
  11111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11112. printf %s "checking for dlopen in -lsvld... " >&6; }
  11113. if test ${ac_cv_lib_svld_dlopen+y}
  11114. then :
  11115. printf %s "(cached) " >&6
  11116. else $as_nop
  11117. ac_check_lib_save_LIBS=$LIBS
  11118. LIBS="-lsvld $LIBS"
  11119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11120. /* end confdefs.h. */
  11121. /* Override any GCC internal prototype to avoid an error.
  11122. Use char because int might match the return type of a GCC
  11123. builtin and then its argument prototype would still apply. */
  11124. char dlopen ();
  11125. int
  11126. main (void)
  11127. {
  11128. return dlopen ();
  11129. ;
  11130. return 0;
  11131. }
  11132. _ACEOF
  11133. if ac_fn_c_try_link "$LINENO"
  11134. then :
  11135. ac_cv_lib_svld_dlopen=yes
  11136. else $as_nop
  11137. ac_cv_lib_svld_dlopen=no
  11138. fi
  11139. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11140. conftest$ac_exeext conftest.$ac_ext
  11141. LIBS=$ac_check_lib_save_LIBS
  11142. fi
  11143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11144. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11145. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11146. then :
  11147. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11148. else $as_nop
  11149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11150. printf %s "checking for dld_link in -ldld... " >&6; }
  11151. if test ${ac_cv_lib_dld_dld_link+y}
  11152. then :
  11153. printf %s "(cached) " >&6
  11154. else $as_nop
  11155. ac_check_lib_save_LIBS=$LIBS
  11156. LIBS="-ldld $LIBS"
  11157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11158. /* end confdefs.h. */
  11159. /* Override any GCC internal prototype to avoid an error.
  11160. Use char because int might match the return type of a GCC
  11161. builtin and then its argument prototype would still apply. */
  11162. char dld_link ();
  11163. int
  11164. main (void)
  11165. {
  11166. return dld_link ();
  11167. ;
  11168. return 0;
  11169. }
  11170. _ACEOF
  11171. if ac_fn_c_try_link "$LINENO"
  11172. then :
  11173. ac_cv_lib_dld_dld_link=yes
  11174. else $as_nop
  11175. ac_cv_lib_dld_dld_link=no
  11176. fi
  11177. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11178. conftest$ac_exeext conftest.$ac_ext
  11179. LIBS=$ac_check_lib_save_LIBS
  11180. fi
  11181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11182. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11183. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11184. then :
  11185. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11186. fi
  11187. fi
  11188. fi
  11189. fi
  11190. fi
  11191. fi
  11192. ;;
  11193. esac
  11194. if test no = "$lt_cv_dlopen"; then
  11195. enable_dlopen=no
  11196. else
  11197. enable_dlopen=yes
  11198. fi
  11199. case $lt_cv_dlopen in
  11200. dlopen)
  11201. save_CPPFLAGS=$CPPFLAGS
  11202. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11203. save_LDFLAGS=$LDFLAGS
  11204. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11205. save_LIBS=$LIBS
  11206. LIBS="$lt_cv_dlopen_libs $LIBS"
  11207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11208. printf %s "checking whether a program can dlopen itself... " >&6; }
  11209. if test ${lt_cv_dlopen_self+y}
  11210. then :
  11211. printf %s "(cached) " >&6
  11212. else $as_nop
  11213. if test yes = "$cross_compiling"; then :
  11214. lt_cv_dlopen_self=cross
  11215. else
  11216. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11217. lt_status=$lt_dlunknown
  11218. cat > conftest.$ac_ext <<_LT_EOF
  11219. #line $LINENO "configure"
  11220. #include "confdefs.h"
  11221. #if HAVE_DLFCN_H
  11222. #include <dlfcn.h>
  11223. #endif
  11224. #include <stdio.h>
  11225. #ifdef RTLD_GLOBAL
  11226. # define LT_DLGLOBAL RTLD_GLOBAL
  11227. #else
  11228. # ifdef DL_GLOBAL
  11229. # define LT_DLGLOBAL DL_GLOBAL
  11230. # else
  11231. # define LT_DLGLOBAL 0
  11232. # endif
  11233. #endif
  11234. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11235. find out it does not work in some platform. */
  11236. #ifndef LT_DLLAZY_OR_NOW
  11237. # ifdef RTLD_LAZY
  11238. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11239. # else
  11240. # ifdef DL_LAZY
  11241. # define LT_DLLAZY_OR_NOW DL_LAZY
  11242. # else
  11243. # ifdef RTLD_NOW
  11244. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11245. # else
  11246. # ifdef DL_NOW
  11247. # define LT_DLLAZY_OR_NOW DL_NOW
  11248. # else
  11249. # define LT_DLLAZY_OR_NOW 0
  11250. # endif
  11251. # endif
  11252. # endif
  11253. # endif
  11254. #endif
  11255. /* When -fvisibility=hidden is used, assume the code has been annotated
  11256. correspondingly for the symbols needed. */
  11257. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11258. int fnord () __attribute__((visibility("default")));
  11259. #endif
  11260. int fnord () { return 42; }
  11261. int main ()
  11262. {
  11263. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11264. int status = $lt_dlunknown;
  11265. if (self)
  11266. {
  11267. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11268. else
  11269. {
  11270. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11271. else puts (dlerror ());
  11272. }
  11273. /* dlclose (self); */
  11274. }
  11275. else
  11276. puts (dlerror ());
  11277. return status;
  11278. }
  11279. _LT_EOF
  11280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11281. (eval $ac_link) 2>&5
  11282. ac_status=$?
  11283. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11284. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11285. (./conftest; exit; ) >&5 2>/dev/null
  11286. lt_status=$?
  11287. case x$lt_status in
  11288. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11289. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11290. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11291. esac
  11292. else :
  11293. # compilation failed
  11294. lt_cv_dlopen_self=no
  11295. fi
  11296. fi
  11297. rm -fr conftest*
  11298. fi
  11299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11300. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11301. if test yes = "$lt_cv_dlopen_self"; then
  11302. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11304. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11305. if test ${lt_cv_dlopen_self_static+y}
  11306. then :
  11307. printf %s "(cached) " >&6
  11308. else $as_nop
  11309. if test yes = "$cross_compiling"; then :
  11310. lt_cv_dlopen_self_static=cross
  11311. else
  11312. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11313. lt_status=$lt_dlunknown
  11314. cat > conftest.$ac_ext <<_LT_EOF
  11315. #line $LINENO "configure"
  11316. #include "confdefs.h"
  11317. #if HAVE_DLFCN_H
  11318. #include <dlfcn.h>
  11319. #endif
  11320. #include <stdio.h>
  11321. #ifdef RTLD_GLOBAL
  11322. # define LT_DLGLOBAL RTLD_GLOBAL
  11323. #else
  11324. # ifdef DL_GLOBAL
  11325. # define LT_DLGLOBAL DL_GLOBAL
  11326. # else
  11327. # define LT_DLGLOBAL 0
  11328. # endif
  11329. #endif
  11330. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11331. find out it does not work in some platform. */
  11332. #ifndef LT_DLLAZY_OR_NOW
  11333. # ifdef RTLD_LAZY
  11334. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11335. # else
  11336. # ifdef DL_LAZY
  11337. # define LT_DLLAZY_OR_NOW DL_LAZY
  11338. # else
  11339. # ifdef RTLD_NOW
  11340. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11341. # else
  11342. # ifdef DL_NOW
  11343. # define LT_DLLAZY_OR_NOW DL_NOW
  11344. # else
  11345. # define LT_DLLAZY_OR_NOW 0
  11346. # endif
  11347. # endif
  11348. # endif
  11349. # endif
  11350. #endif
  11351. /* When -fvisibility=hidden is used, assume the code has been annotated
  11352. correspondingly for the symbols needed. */
  11353. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11354. int fnord () __attribute__((visibility("default")));
  11355. #endif
  11356. int fnord () { return 42; }
  11357. int main ()
  11358. {
  11359. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11360. int status = $lt_dlunknown;
  11361. if (self)
  11362. {
  11363. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11364. else
  11365. {
  11366. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11367. else puts (dlerror ());
  11368. }
  11369. /* dlclose (self); */
  11370. }
  11371. else
  11372. puts (dlerror ());
  11373. return status;
  11374. }
  11375. _LT_EOF
  11376. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11377. (eval $ac_link) 2>&5
  11378. ac_status=$?
  11379. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11380. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11381. (./conftest; exit; ) >&5 2>/dev/null
  11382. lt_status=$?
  11383. case x$lt_status in
  11384. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11385. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11386. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11387. esac
  11388. else :
  11389. # compilation failed
  11390. lt_cv_dlopen_self_static=no
  11391. fi
  11392. fi
  11393. rm -fr conftest*
  11394. fi
  11395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11396. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11397. fi
  11398. CPPFLAGS=$save_CPPFLAGS
  11399. LDFLAGS=$save_LDFLAGS
  11400. LIBS=$save_LIBS
  11401. ;;
  11402. esac
  11403. case $lt_cv_dlopen_self in
  11404. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11405. *) enable_dlopen_self=unknown ;;
  11406. esac
  11407. case $lt_cv_dlopen_self_static in
  11408. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11409. *) enable_dlopen_self_static=unknown ;;
  11410. esac
  11411. fi
  11412. striplib=
  11413. old_striplib=
  11414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11415. printf %s "checking whether stripping libraries is possible... " >&6; }
  11416. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11417. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11418. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11420. printf "%s\n" "yes" >&6; }
  11421. else
  11422. # FIXME - insert some real tests, host_os isn't really good enough
  11423. case $host_os in
  11424. darwin*)
  11425. if test -n "$STRIP"; then
  11426. striplib="$STRIP -x"
  11427. old_striplib="$STRIP -S"
  11428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11429. printf "%s\n" "yes" >&6; }
  11430. else
  11431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11432. printf "%s\n" "no" >&6; }
  11433. fi
  11434. ;;
  11435. *)
  11436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11437. printf "%s\n" "no" >&6; }
  11438. ;;
  11439. esac
  11440. fi
  11441. # Report what library types will actually be built
  11442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11443. printf %s "checking if libtool supports shared libraries... " >&6; }
  11444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11445. printf "%s\n" "$can_build_shared" >&6; }
  11446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11447. printf %s "checking whether to build shared libraries... " >&6; }
  11448. test no = "$can_build_shared" && enable_shared=no
  11449. # On AIX, shared libraries and static libraries use the same namespace, and
  11450. # are all built from PIC.
  11451. case $host_os in
  11452. aix3*)
  11453. test yes = "$enable_shared" && enable_static=no
  11454. if test -n "$RANLIB"; then
  11455. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11456. postinstall_cmds='$RANLIB $lib'
  11457. fi
  11458. ;;
  11459. aix[4-9]*)
  11460. if test ia64 != "$host_cpu"; then
  11461. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11462. yes,aix,yes) ;; # shared object as lib.so file only
  11463. yes,svr4,*) ;; # shared object as lib.so archive member only
  11464. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11465. esac
  11466. fi
  11467. ;;
  11468. esac
  11469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11470. printf "%s\n" "$enable_shared" >&6; }
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11472. printf %s "checking whether to build static libraries... " >&6; }
  11473. # Make sure either enable_shared or enable_static is yes.
  11474. test yes = "$enable_shared" || enable_static=yes
  11475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11476. printf "%s\n" "$enable_static" >&6; }
  11477. fi
  11478. ac_ext=c
  11479. ac_cpp='$CPP $CPPFLAGS'
  11480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11483. CC=$lt_save_CC
  11484. ac_config_commands="$ac_config_commands libtool"
  11485. # Only expand once:
  11486. CFLAG_VISIBILITY=
  11487. HAVE_VISIBILITY=0
  11488. if test -n "$GCC"; then
  11489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  11490. printf %s "checking whether the -Werror option is usable... " >&6; }
  11491. if test ${gl_cv_cc_vis_werror+y}
  11492. then :
  11493. printf %s "(cached) " >&6
  11494. else $as_nop
  11495. gl_save_CFLAGS="$CFLAGS"
  11496. CFLAGS="$CFLAGS -Werror"
  11497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11498. /* end confdefs.h. */
  11499. int
  11500. main (void)
  11501. {
  11502. ;
  11503. return 0;
  11504. }
  11505. _ACEOF
  11506. if ac_fn_c_try_compile "$LINENO"
  11507. then :
  11508. gl_cv_cc_vis_werror=yes
  11509. else $as_nop
  11510. gl_cv_cc_vis_werror=no
  11511. fi
  11512. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11513. CFLAGS="$gl_save_CFLAGS"
  11514. fi
  11515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  11516. printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
  11517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  11518. printf %s "checking for simple visibility declarations... " >&6; }
  11519. if test ${gl_cv_cc_visibility+y}
  11520. then :
  11521. printf %s "(cached) " >&6
  11522. else $as_nop
  11523. gl_save_CFLAGS="$CFLAGS"
  11524. CFLAGS="$CFLAGS -fvisibility=hidden"
  11525. if test $gl_cv_cc_vis_werror = yes; then
  11526. CFLAGS="$CFLAGS -Werror"
  11527. fi
  11528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11529. /* end confdefs.h. */
  11530. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  11531. extern __attribute__((__visibility__("default"))) int exportedvar;
  11532. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  11533. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  11534. void dummyfunc (void) {}
  11535. int
  11536. main (void)
  11537. {
  11538. ;
  11539. return 0;
  11540. }
  11541. _ACEOF
  11542. if ac_fn_c_try_compile "$LINENO"
  11543. then :
  11544. gl_cv_cc_visibility=yes
  11545. else $as_nop
  11546. gl_cv_cc_visibility=no
  11547. fi
  11548. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11549. CFLAGS="$gl_save_CFLAGS"
  11550. fi
  11551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  11552. printf "%s\n" "$gl_cv_cc_visibility" >&6; }
  11553. if test $gl_cv_cc_visibility = yes; then
  11554. CFLAG_VISIBILITY="-fvisibility=hidden"
  11555. HAVE_VISIBILITY=1
  11556. fi
  11557. fi
  11558. printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
  11559. ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  11560. if test "x$ac_cv_header_sys_mkdev_h" = xyes
  11561. then :
  11562. printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  11563. fi
  11564. if test $ac_cv_header_sys_mkdev_h = no; then
  11565. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11566. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  11567. then :
  11568. printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  11569. fi
  11570. fi
  11571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11572. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11573. if test ${ac_cv_header_sys_wait_h+y}
  11574. then :
  11575. printf %s "(cached) " >&6
  11576. else $as_nop
  11577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11578. /* end confdefs.h. */
  11579. #include <sys/types.h>
  11580. #include <sys/wait.h>
  11581. #ifndef WEXITSTATUS
  11582. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11583. #endif
  11584. #ifndef WIFEXITED
  11585. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11586. #endif
  11587. int
  11588. main (void)
  11589. {
  11590. int s;
  11591. wait (&s);
  11592. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11593. ;
  11594. return 0;
  11595. }
  11596. _ACEOF
  11597. if ac_fn_c_try_compile "$LINENO"
  11598. then :
  11599. ac_cv_header_sys_wait_h=yes
  11600. else $as_nop
  11601. ac_cv_header_sys_wait_h=no
  11602. fi
  11603. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11604. fi
  11605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11606. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  11607. if test $ac_cv_header_sys_wait_h = yes; then
  11608. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11609. fi
  11610. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  11611. if test "x$ac_cv_header_stdint_h" = xyes
  11612. then :
  11613. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  11614. fi
  11615. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  11616. if test "x$ac_cv_header_fcntl_h" = xyes
  11617. then :
  11618. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  11619. fi
  11620. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  11621. if test "x$ac_cv_header_inttypes_h" = xyes
  11622. then :
  11623. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  11624. fi
  11625. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  11626. if test "x$ac_cv_header_unistd_h" = xyes
  11627. then :
  11628. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  11629. fi
  11630. ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  11631. if test "x$ac_cv_header_byteswap_h" = xyes
  11632. then :
  11633. printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
  11634. fi
  11635. ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
  11636. if test "x$ac_cv_header_spawn_h" = xyes
  11637. then :
  11638. printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
  11639. fi
  11640. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
  11641. if test "x$ac_cv_header_utime_h" = xyes
  11642. then :
  11643. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  11644. fi
  11645. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  11646. if test "x$ac_cv_header_wchar_h" = xyes
  11647. then :
  11648. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  11649. fi
  11650. ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
  11651. if test "x$ac_cv_header_wctype_h" = xyes
  11652. then :
  11653. printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
  11654. fi
  11655. ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  11656. if test "x$ac_cv_header_getopt_h" = xyes
  11657. then :
  11658. printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
  11659. fi
  11660. ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
  11661. if test "x$ac_cv_header_err_h" = xyes
  11662. then :
  11663. printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
  11664. fi
  11665. ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  11666. if test "x$ac_cv_header_xlocale_h" = xyes
  11667. then :
  11668. printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
  11669. fi
  11670. ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
  11671. if test "x$ac_cv_header_sys_bswap_h" = xyes
  11672. then :
  11673. printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
  11674. fi
  11675. ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  11676. if test "x$ac_cv_header_sys_mman_h" = xyes
  11677. then :
  11678. printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
  11679. fi
  11680. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  11681. if test "x$ac_cv_header_sys_stat_h" = xyes
  11682. then :
  11683. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  11684. fi
  11685. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  11686. if test "x$ac_cv_header_sys_types_h" = xyes
  11687. then :
  11688. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  11689. fi
  11690. ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
  11691. if test "x$ac_cv_header_sys_utime_h" = xyes
  11692. then :
  11693. printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
  11694. fi
  11695. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  11696. if test "x$ac_cv_header_sys_time_h" = xyes
  11697. then :
  11698. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  11699. fi
  11700. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11701. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  11702. then :
  11703. printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
  11704. fi
  11705. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  11706. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  11707. then :
  11708. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  11709. fi
  11710. if test "$enable_zlib" != "no"; then
  11711. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  11712. if test "x$ac_cv_header_zlib_h" = xyes
  11713. then :
  11714. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  11715. fi
  11716. fi
  11717. if test "$enable_bzlib" != "no"; then
  11718. ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  11719. if test "x$ac_cv_header_bzlib_h" = xyes
  11720. then :
  11721. printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
  11722. fi
  11723. fi
  11724. if test "$enable_xzlib" != "no"; then
  11725. ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  11726. if test "x$ac_cv_header_lzma_h" = xyes
  11727. then :
  11728. printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
  11729. fi
  11730. fi
  11731. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
  11732. "
  11733. if test "x$ac_cv_type_sig_t" = xyes
  11734. then :
  11735. printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h
  11736. fi
  11737. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11738. if test "x$ac_cv_type_off_t" = xyes
  11739. then :
  11740. else $as_nop
  11741. printf "%s\n" "#define off_t long int" >>confdefs.h
  11742. fi
  11743. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11744. if test "x$ac_cv_type_size_t" = xyes
  11745. then :
  11746. else $as_nop
  11747. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  11748. fi
  11749. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11750. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
  11751. then :
  11752. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
  11753. fi
  11754. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11755. "
  11756. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
  11757. then :
  11758. printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
  11759. fi
  11760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11761. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11762. if test ${ac_cv_struct_tm+y}
  11763. then :
  11764. printf %s "(cached) " >&6
  11765. else $as_nop
  11766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11767. /* end confdefs.h. */
  11768. #include <sys/types.h>
  11769. #include <time.h>
  11770. int
  11771. main (void)
  11772. {
  11773. struct tm tm;
  11774. int *p = &tm.tm_sec;
  11775. return !p;
  11776. ;
  11777. return 0;
  11778. }
  11779. _ACEOF
  11780. if ac_fn_c_try_compile "$LINENO"
  11781. then :
  11782. ac_cv_struct_tm=time.h
  11783. else $as_nop
  11784. ac_cv_struct_tm=sys/time.h
  11785. fi
  11786. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11787. fi
  11788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11789. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  11790. if test $ac_cv_struct_tm = sys/time.h; then
  11791. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11792. fi
  11793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  11794. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  11795. if test ${ac_cv_c_undeclared_builtin_options+y}
  11796. then :
  11797. printf %s "(cached) " >&6
  11798. else $as_nop
  11799. ac_save_CFLAGS=$CFLAGS
  11800. ac_cv_c_undeclared_builtin_options='cannot detect'
  11801. for ac_arg in '' -fno-builtin; do
  11802. CFLAGS="$ac_save_CFLAGS $ac_arg"
  11803. # This test program should *not* compile successfully.
  11804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11805. /* end confdefs.h. */
  11806. int
  11807. main (void)
  11808. {
  11809. (void) strchr;
  11810. ;
  11811. return 0;
  11812. }
  11813. _ACEOF
  11814. if ac_fn_c_try_compile "$LINENO"
  11815. then :
  11816. else $as_nop
  11817. # This test program should compile successfully.
  11818. # No library function is consistently available on
  11819. # freestanding implementations, so test against a dummy
  11820. # declaration. Include always-available headers on the
  11821. # off chance that they somehow elicit warnings.
  11822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11823. /* end confdefs.h. */
  11824. #include <float.h>
  11825. #include <limits.h>
  11826. #include <stdarg.h>
  11827. #include <stddef.h>
  11828. extern void ac_decl (int, char *);
  11829. int
  11830. main (void)
  11831. {
  11832. (void) ac_decl (0, (char *) 0);
  11833. (void) ac_decl;
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. if ac_fn_c_try_compile "$LINENO"
  11839. then :
  11840. if test x"$ac_arg" = x
  11841. then :
  11842. ac_cv_c_undeclared_builtin_options='none needed'
  11843. else $as_nop
  11844. ac_cv_c_undeclared_builtin_options=$ac_arg
  11845. fi
  11846. break
  11847. fi
  11848. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11849. fi
  11850. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11851. done
  11852. CFLAGS=$ac_save_CFLAGS
  11853. fi
  11854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  11855. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  11856. case $ac_cv_c_undeclared_builtin_options in #(
  11857. 'cannot detect') :
  11858. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11859. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11860. as_fn_error $? "cannot make $CC report undeclared builtins
  11861. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  11862. 'none needed') :
  11863. ac_c_undeclared_builtin_options='' ;; #(
  11864. *) :
  11865. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  11866. esac
  11867. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11868. #include <$ac_cv_struct_tm>
  11869. "
  11870. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
  11871. then :
  11872. printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
  11873. fi
  11874. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11875. printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
  11876. else
  11877. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11878. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  11879. if test "x$ac_cv_have_decl_tzname" = xyes
  11880. then :
  11881. ac_have_decl=1
  11882. else $as_nop
  11883. ac_have_decl=0
  11884. fi
  11885. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
  11886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11887. printf %s "checking for tzname... " >&6; }
  11888. if test ${ac_cv_var_tzname+y}
  11889. then :
  11890. printf %s "(cached) " >&6
  11891. else $as_nop
  11892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11893. /* end confdefs.h. */
  11894. #include <time.h>
  11895. #if !HAVE_DECL_TZNAME
  11896. extern char *tzname[];
  11897. #endif
  11898. int
  11899. main (void)
  11900. {
  11901. return tzname[0][0];
  11902. ;
  11903. return 0;
  11904. }
  11905. _ACEOF
  11906. if ac_fn_c_try_link "$LINENO"
  11907. then :
  11908. ac_cv_var_tzname=yes
  11909. else $as_nop
  11910. ac_cv_var_tzname=no
  11911. fi
  11912. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11913. conftest$ac_exeext conftest.$ac_ext
  11914. fi
  11915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11916. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  11917. if test $ac_cv_var_tzname = yes; then
  11918. printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
  11919. fi
  11920. fi
  11921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11922. printf %s "checking for tm_zone in struct tm... " >&6; }
  11923. if test ${ac_cv_struct_tm_zone+y}
  11924. then :
  11925. printf %s "(cached) " >&6
  11926. else $as_nop
  11927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11928. /* end confdefs.h. */
  11929. #include <sys/types.h>
  11930. #include <$ac_cv_struct_tm>
  11931. int
  11932. main (void)
  11933. {
  11934. struct tm tm; tm.tm_zone;
  11935. ;
  11936. return 0;
  11937. }
  11938. _ACEOF
  11939. if ac_fn_c_try_compile "$LINENO"
  11940. then :
  11941. ac_cv_struct_tm_zone=yes
  11942. else $as_nop
  11943. ac_cv_struct_tm_zone=no
  11944. fi
  11945. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11946. fi
  11947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11948. printf "%s\n" "$ac_cv_struct_tm_zone" >&6; }
  11949. if test "$ac_cv_struct_tm_zone" = yes; then
  11950. printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
  11951. fi
  11952. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11953. # consider it declared and we won't give our own extern.
  11954. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11955. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  11956. if test "x$ac_cv_have_decl_tzname" = xyes
  11957. then :
  11958. ac_have_decl=1
  11959. else $as_nop
  11960. ac_have_decl=0
  11961. fi
  11962. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
  11963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11964. printf %s "checking for tzname... " >&6; }
  11965. if test ${ac_cv_var_tzname+y}
  11966. then :
  11967. printf %s "(cached) " >&6
  11968. else $as_nop
  11969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11970. /* end confdefs.h. */
  11971. #include <time.h>
  11972. int
  11973. main (void)
  11974. {
  11975. #if !HAVE_DECL_TZNAME
  11976. extern char *tzname[];
  11977. #endif
  11978. return tzname[0][0];
  11979. ;
  11980. return 0;
  11981. }
  11982. _ACEOF
  11983. if ac_fn_c_try_link "$LINENO"
  11984. then :
  11985. ac_cv_var_tzname=yes
  11986. else $as_nop
  11987. ac_cv_var_tzname=no
  11988. fi
  11989. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11990. conftest$ac_exeext conftest.$ac_ext
  11991. fi
  11992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11993. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  11994. if test $ac_cv_var_tzname = yes; then
  11995. printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
  11996. fi
  11997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11998. printf %s "checking for tm_isdst in struct tm... " >&6; }
  11999. if test ${ac_cv_struct_tm_isdst+y}
  12000. then :
  12001. printf %s "(cached) " >&6
  12002. else $as_nop
  12003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12004. /* end confdefs.h. */
  12005. #include <sys/types.h>
  12006. #include <$ac_cv_struct_tm>
  12007. int
  12008. main (void)
  12009. {
  12010. struct tm tm; tm.tm_isdst;
  12011. ;
  12012. return 0;
  12013. }
  12014. _ACEOF
  12015. if ac_fn_c_try_compile "$LINENO"
  12016. then :
  12017. ac_cv_struct_tm_isdst=yes
  12018. else $as_nop
  12019. ac_cv_struct_tm_isdst=no
  12020. fi
  12021. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12022. fi
  12023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  12024. printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; }
  12025. if test "$ac_cv_struct_tm_isdst" = yes; then
  12026. printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h
  12027. fi
  12028. ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  12029. #include <stdlib.h>
  12030. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  12031. if test "x$ac_cv_have_decl_daylight" = xyes
  12032. then :
  12033. ac_have_decl=1
  12034. else $as_nop
  12035. ac_have_decl=0
  12036. fi
  12037. printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
  12038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  12039. printf %s "checking for daylight... " >&6; }
  12040. if test ${ac_cv_var_daylight+y}
  12041. then :
  12042. printf %s "(cached) " >&6
  12043. else $as_nop
  12044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12045. /* end confdefs.h. */
  12046. #include <time.h>
  12047. int
  12048. main (void)
  12049. {
  12050. #if !HAVE_DECL_DAYLIGHT
  12051. extern int daylight;
  12052. #endif
  12053. atoi(daylight);
  12054. ;
  12055. return 0;
  12056. }
  12057. _ACEOF
  12058. if ac_fn_c_try_link "$LINENO"
  12059. then :
  12060. ac_cv_var_daylight=yes
  12061. else $as_nop
  12062. ac_cv_var_daylight=no
  12063. fi
  12064. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12065. conftest$ac_exeext conftest.$ac_ext
  12066. fi
  12067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  12068. printf "%s\n" "$ac_cv_var_daylight" >&6; }
  12069. if test $ac_cv_var_daylight = yes; then
  12070. printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
  12071. fi
  12072. # Check whether --enable-largefile was given.
  12073. if test ${enable_largefile+y}
  12074. then :
  12075. enableval=$enable_largefile;
  12076. fi
  12077. if test "$enable_largefile" != no; then
  12078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12079. printf %s "checking for special C compiler options needed for large files... " >&6; }
  12080. if test ${ac_cv_sys_largefile_CC+y}
  12081. then :
  12082. printf %s "(cached) " >&6
  12083. else $as_nop
  12084. ac_cv_sys_largefile_CC=no
  12085. if test "$GCC" != yes; then
  12086. ac_save_CC=$CC
  12087. while :; do
  12088. # IRIX 6.2 and later do not support large files by default,
  12089. # so use the C compiler's -n32 option if that helps.
  12090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12091. /* end confdefs.h. */
  12092. #include <sys/types.h>
  12093. /* Check that off_t can represent 2**63 - 1 correctly.
  12094. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12095. since some C++ compilers masquerading as C compilers
  12096. incorrectly reject 9223372036854775807. */
  12097. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12098. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12099. && LARGE_OFF_T % 2147483647 == 1)
  12100. ? 1 : -1];
  12101. int
  12102. main (void)
  12103. {
  12104. ;
  12105. return 0;
  12106. }
  12107. _ACEOF
  12108. if ac_fn_c_try_compile "$LINENO"
  12109. then :
  12110. break
  12111. fi
  12112. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12113. CC="$CC -n32"
  12114. if ac_fn_c_try_compile "$LINENO"
  12115. then :
  12116. ac_cv_sys_largefile_CC=' -n32'; break
  12117. fi
  12118. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12119. break
  12120. done
  12121. CC=$ac_save_CC
  12122. rm -f conftest.$ac_ext
  12123. fi
  12124. fi
  12125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12126. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  12127. if test "$ac_cv_sys_largefile_CC" != no; then
  12128. CC=$CC$ac_cv_sys_largefile_CC
  12129. fi
  12130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12131. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12132. if test ${ac_cv_sys_file_offset_bits+y}
  12133. then :
  12134. printf %s "(cached) " >&6
  12135. else $as_nop
  12136. while :; do
  12137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12138. /* end confdefs.h. */
  12139. #include <sys/types.h>
  12140. /* Check that off_t can represent 2**63 - 1 correctly.
  12141. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12142. since some C++ compilers masquerading as C compilers
  12143. incorrectly reject 9223372036854775807. */
  12144. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12145. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12146. && LARGE_OFF_T % 2147483647 == 1)
  12147. ? 1 : -1];
  12148. int
  12149. main (void)
  12150. {
  12151. ;
  12152. return 0;
  12153. }
  12154. _ACEOF
  12155. if ac_fn_c_try_compile "$LINENO"
  12156. then :
  12157. ac_cv_sys_file_offset_bits=no; break
  12158. fi
  12159. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12161. /* end confdefs.h. */
  12162. #define _FILE_OFFSET_BITS 64
  12163. #include <sys/types.h>
  12164. /* Check that off_t can represent 2**63 - 1 correctly.
  12165. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12166. since some C++ compilers masquerading as C compilers
  12167. incorrectly reject 9223372036854775807. */
  12168. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12169. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12170. && LARGE_OFF_T % 2147483647 == 1)
  12171. ? 1 : -1];
  12172. int
  12173. main (void)
  12174. {
  12175. ;
  12176. return 0;
  12177. }
  12178. _ACEOF
  12179. if ac_fn_c_try_compile "$LINENO"
  12180. then :
  12181. ac_cv_sys_file_offset_bits=64; break
  12182. fi
  12183. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12184. ac_cv_sys_file_offset_bits=unknown
  12185. break
  12186. done
  12187. fi
  12188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12189. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  12190. case $ac_cv_sys_file_offset_bits in #(
  12191. no | unknown) ;;
  12192. *)
  12193. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  12194. ;;
  12195. esac
  12196. rm -rf conftest*
  12197. if test $ac_cv_sys_file_offset_bits = unknown; then
  12198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12199. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  12200. if test ${ac_cv_sys_large_files+y}
  12201. then :
  12202. printf %s "(cached) " >&6
  12203. else $as_nop
  12204. while :; do
  12205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12206. /* end confdefs.h. */
  12207. #include <sys/types.h>
  12208. /* Check that off_t can represent 2**63 - 1 correctly.
  12209. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12210. since some C++ compilers masquerading as C compilers
  12211. incorrectly reject 9223372036854775807. */
  12212. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12213. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12214. && LARGE_OFF_T % 2147483647 == 1)
  12215. ? 1 : -1];
  12216. int
  12217. main (void)
  12218. {
  12219. ;
  12220. return 0;
  12221. }
  12222. _ACEOF
  12223. if ac_fn_c_try_compile "$LINENO"
  12224. then :
  12225. ac_cv_sys_large_files=no; break
  12226. fi
  12227. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12229. /* end confdefs.h. */
  12230. #define _LARGE_FILES 1
  12231. #include <sys/types.h>
  12232. /* Check that off_t can represent 2**63 - 1 correctly.
  12233. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12234. since some C++ compilers masquerading as C compilers
  12235. incorrectly reject 9223372036854775807. */
  12236. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12237. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12238. && LARGE_OFF_T % 2147483647 == 1)
  12239. ? 1 : -1];
  12240. int
  12241. main (void)
  12242. {
  12243. ;
  12244. return 0;
  12245. }
  12246. _ACEOF
  12247. if ac_fn_c_try_compile "$LINENO"
  12248. then :
  12249. ac_cv_sys_large_files=1; break
  12250. fi
  12251. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12252. ac_cv_sys_large_files=unknown
  12253. break
  12254. done
  12255. fi
  12256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12257. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  12258. case $ac_cv_sys_large_files in #(
  12259. no | unknown) ;;
  12260. *)
  12261. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  12262. ;;
  12263. esac
  12264. rm -rf conftest*
  12265. fi
  12266. fi
  12267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12268. printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12269. if test ${ac_cv_sys_largefile_source+y}
  12270. then :
  12271. printf %s "(cached) " >&6
  12272. else $as_nop
  12273. while :; do
  12274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12275. /* end confdefs.h. */
  12276. #include <sys/types.h> /* for off_t */
  12277. #include <stdio.h>
  12278. int
  12279. main (void)
  12280. {
  12281. int (*fp) (FILE *, off_t, int) = fseeko;
  12282. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12283. ;
  12284. return 0;
  12285. }
  12286. _ACEOF
  12287. if ac_fn_c_try_link "$LINENO"
  12288. then :
  12289. ac_cv_sys_largefile_source=no; break
  12290. fi
  12291. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12292. conftest$ac_exeext conftest.$ac_ext
  12293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12294. /* end confdefs.h. */
  12295. #define _LARGEFILE_SOURCE 1
  12296. #include <sys/types.h> /* for off_t */
  12297. #include <stdio.h>
  12298. int
  12299. main (void)
  12300. {
  12301. int (*fp) (FILE *, off_t, int) = fseeko;
  12302. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12303. ;
  12304. return 0;
  12305. }
  12306. _ACEOF
  12307. if ac_fn_c_try_link "$LINENO"
  12308. then :
  12309. ac_cv_sys_largefile_source=1; break
  12310. fi
  12311. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12312. conftest$ac_exeext conftest.$ac_ext
  12313. ac_cv_sys_largefile_source=unknown
  12314. break
  12315. done
  12316. fi
  12317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12318. printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
  12319. case $ac_cv_sys_largefile_source in #(
  12320. no | unknown) ;;
  12321. *)
  12322. printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
  12323. ;;
  12324. esac
  12325. rm -rf conftest*
  12326. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12327. # in glibc 2.1.3, but that breaks too many other things.
  12328. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12329. if test $ac_cv_sys_largefile_source != unknown; then
  12330. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  12331. fi
  12332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  12333. printf %s "checking for mbstate_t... " >&6; }
  12334. if test ${ac_cv_type_mbstate_t+y}
  12335. then :
  12336. printf %s "(cached) " >&6
  12337. else $as_nop
  12338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12339. /* end confdefs.h. */
  12340. $ac_includes_default
  12341. # include <wchar.h>
  12342. int
  12343. main (void)
  12344. {
  12345. mbstate_t x; return sizeof x;
  12346. ;
  12347. return 0;
  12348. }
  12349. _ACEOF
  12350. if ac_fn_c_try_compile "$LINENO"
  12351. then :
  12352. ac_cv_type_mbstate_t=yes
  12353. else $as_nop
  12354. ac_cv_type_mbstate_t=no
  12355. fi
  12356. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12357. fi
  12358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  12359. printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
  12360. if test $ac_cv_type_mbstate_t = yes; then
  12361. printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
  12362. else
  12363. printf "%s\n" "#define mbstate_t int" >>confdefs.h
  12364. fi
  12365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  12366. printf %s "checking for struct option in getopt... " >&6; }
  12367. if test ${ac_cv_struct_option_getopt_h+y}
  12368. then :
  12369. printf %s "(cached) " >&6
  12370. else $as_nop
  12371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12372. /* end confdefs.h. */
  12373. #include <getopt.h>
  12374. int
  12375. main (void)
  12376. {
  12377. struct option op; op.name;
  12378. ;
  12379. return 0;
  12380. }
  12381. _ACEOF
  12382. if ac_fn_c_try_compile "$LINENO"
  12383. then :
  12384. ac_cv_struct_option_getopt_h=yes
  12385. else $as_nop
  12386. ac_cv_struct_option_getopt_h=no
  12387. fi
  12388. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12389. fi
  12390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  12391. printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; }
  12392. if test "$ac_cv_struct_option_getopt_h" = yes; then
  12393. printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  12394. fi
  12395. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  12396. "
  12397. if test "x$ac_cv_type_pid_t" = xyes
  12398. then :
  12399. else $as_nop
  12400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12401. /* end confdefs.h. */
  12402. #if defined _WIN64 && !defined __CYGWIN__
  12403. LLP64
  12404. #endif
  12405. int
  12406. main (void)
  12407. {
  12408. ;
  12409. return 0;
  12410. }
  12411. _ACEOF
  12412. if ac_fn_c_try_compile "$LINENO"
  12413. then :
  12414. ac_pid_type='int'
  12415. else $as_nop
  12416. ac_pid_type='__int64'
  12417. fi
  12418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12419. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  12420. fi
  12421. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  12422. case $ac_cv_c_uint8_t in #(
  12423. no|yes) ;; #(
  12424. *)
  12425. printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
  12426. printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
  12427. ;;
  12428. esac
  12429. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  12430. case $ac_cv_c_uint16_t in #(
  12431. no|yes) ;; #(
  12432. *)
  12433. printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
  12434. ;;
  12435. esac
  12436. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  12437. case $ac_cv_c_uint32_t in #(
  12438. no|yes) ;; #(
  12439. *)
  12440. printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
  12441. printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
  12442. ;;
  12443. esac
  12444. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  12445. case $ac_cv_c_int32_t in #(
  12446. no|yes) ;; #(
  12447. *)
  12448. printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
  12449. ;;
  12450. esac
  12451. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  12452. case $ac_cv_c_uint64_t in #(
  12453. no|yes) ;; #(
  12454. *)
  12455. printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
  12456. printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
  12457. ;;
  12458. esac
  12459. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  12460. case $ac_cv_c_int64_t in #(
  12461. no|yes) ;; #(
  12462. *)
  12463. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
  12464. ;;
  12465. esac
  12466. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  12467. if test "x$ac_cv_type_intptr_t" = xyes
  12468. then :
  12469. printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
  12470. else $as_nop
  12471. for ac_type in 'int' 'long int' 'long long int'; do
  12472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12473. /* end confdefs.h. */
  12474. $ac_includes_default
  12475. int
  12476. main (void)
  12477. {
  12478. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12479. test_array [0] = 0;
  12480. return test_array [0];
  12481. ;
  12482. return 0;
  12483. }
  12484. _ACEOF
  12485. if ac_fn_c_try_compile "$LINENO"
  12486. then :
  12487. printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
  12488. ac_type=
  12489. fi
  12490. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12491. test -z "$ac_type" && break
  12492. done
  12493. fi
  12494. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  12495. if test "x$ac_cv_type_uintptr_t" = xyes
  12496. then :
  12497. printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
  12498. else $as_nop
  12499. for ac_type in 'unsigned int' 'unsigned long int' \
  12500. 'unsigned long long int'; do
  12501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12502. /* end confdefs.h. */
  12503. $ac_includes_default
  12504. int
  12505. main (void)
  12506. {
  12507. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12508. test_array [0] = 0;
  12509. return test_array [0];
  12510. ;
  12511. return 0;
  12512. }
  12513. _ACEOF
  12514. if ac_fn_c_try_compile "$LINENO"
  12515. then :
  12516. printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
  12517. ac_type=
  12518. fi
  12519. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12520. test -z "$ac_type" && break
  12521. done
  12522. fi
  12523. ac_func=
  12524. for ac_item in $ac_func_c_list
  12525. do
  12526. if test $ac_func; then
  12527. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  12528. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  12529. echo "#define $ac_item 1" >> confdefs.h
  12530. fi
  12531. ac_func=
  12532. else
  12533. ac_func=$ac_item
  12534. fi
  12535. done
  12536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12537. printf %s "checking for working mmap... " >&6; }
  12538. if test ${ac_cv_func_mmap_fixed_mapped+y}
  12539. then :
  12540. printf %s "(cached) " >&6
  12541. else $as_nop
  12542. if test "$cross_compiling" = yes
  12543. then :
  12544. case "$host_os" in # ((
  12545. # Guess yes on platforms where we know the result.
  12546. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  12547. # If we don't know, assume the worst.
  12548. *) ac_cv_func_mmap_fixed_mapped=no ;;
  12549. esac
  12550. else $as_nop
  12551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12552. /* end confdefs.h. */
  12553. $ac_includes_default
  12554. /* malloc might have been renamed as rpl_malloc. */
  12555. #undef malloc
  12556. /* Thanks to Mike Haertel and Jim Avera for this test.
  12557. Here is a matrix of mmap possibilities:
  12558. mmap private not fixed
  12559. mmap private fixed at somewhere currently unmapped
  12560. mmap private fixed at somewhere already mapped
  12561. mmap shared not fixed
  12562. mmap shared fixed at somewhere currently unmapped
  12563. mmap shared fixed at somewhere already mapped
  12564. For private mappings, we should verify that changes cannot be read()
  12565. back from the file, nor mmap's back from the file at a different
  12566. address. (There have been systems where private was not correctly
  12567. implemented like the infamous i386 svr4.0, and systems where the
  12568. VM page cache was not coherent with the file system buffer cache
  12569. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12570. For shared mappings, we should conversely verify that changes get
  12571. propagated back to all the places they're supposed to be.
  12572. Grep wants private fixed already mapped.
  12573. The main things grep needs to know about mmap are:
  12574. * does it exist and is it safe to write into the mmap'd area
  12575. * how to use it (BSD variants) */
  12576. #include <fcntl.h>
  12577. #include <sys/mman.h>
  12578. /* This mess was copied from the GNU getpagesize.h. */
  12579. #ifndef HAVE_GETPAGESIZE
  12580. # ifdef _SC_PAGESIZE
  12581. # define getpagesize() sysconf(_SC_PAGESIZE)
  12582. # else /* no _SC_PAGESIZE */
  12583. # ifdef HAVE_SYS_PARAM_H
  12584. # include <sys/param.h>
  12585. # ifdef EXEC_PAGESIZE
  12586. # define getpagesize() EXEC_PAGESIZE
  12587. # else /* no EXEC_PAGESIZE */
  12588. # ifdef NBPG
  12589. # define getpagesize() NBPG * CLSIZE
  12590. # ifndef CLSIZE
  12591. # define CLSIZE 1
  12592. # endif /* no CLSIZE */
  12593. # else /* no NBPG */
  12594. # ifdef NBPC
  12595. # define getpagesize() NBPC
  12596. # else /* no NBPC */
  12597. # ifdef PAGESIZE
  12598. # define getpagesize() PAGESIZE
  12599. # endif /* PAGESIZE */
  12600. # endif /* no NBPC */
  12601. # endif /* no NBPG */
  12602. # endif /* no EXEC_PAGESIZE */
  12603. # else /* no HAVE_SYS_PARAM_H */
  12604. # define getpagesize() 8192 /* punt totally */
  12605. # endif /* no HAVE_SYS_PARAM_H */
  12606. # endif /* no _SC_PAGESIZE */
  12607. #endif /* no HAVE_GETPAGESIZE */
  12608. int
  12609. main (void)
  12610. {
  12611. char *data, *data2, *data3;
  12612. const char *cdata2;
  12613. int i, pagesize;
  12614. int fd, fd2;
  12615. pagesize = getpagesize ();
  12616. /* First, make a file with some known garbage in it. */
  12617. data = (char *) malloc (pagesize);
  12618. if (!data)
  12619. return 1;
  12620. for (i = 0; i < pagesize; ++i)
  12621. *(data + i) = rand ();
  12622. umask (0);
  12623. fd = creat ("conftest.mmap", 0600);
  12624. if (fd < 0)
  12625. return 2;
  12626. if (write (fd, data, pagesize) != pagesize)
  12627. return 3;
  12628. close (fd);
  12629. /* Next, check that the tail of a page is zero-filled. File must have
  12630. non-zero length, otherwise we risk SIGBUS for entire page. */
  12631. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12632. if (fd2 < 0)
  12633. return 4;
  12634. cdata2 = "";
  12635. if (write (fd2, cdata2, 1) != 1)
  12636. return 5;
  12637. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12638. if (data2 == MAP_FAILED)
  12639. return 6;
  12640. for (i = 0; i < pagesize; ++i)
  12641. if (*(data2 + i))
  12642. return 7;
  12643. close (fd2);
  12644. if (munmap (data2, pagesize))
  12645. return 8;
  12646. /* Next, try to mmap the file at a fixed address which already has
  12647. something else allocated at it. If we can, also make sure that
  12648. we see the same garbage. */
  12649. fd = open ("conftest.mmap", O_RDWR);
  12650. if (fd < 0)
  12651. return 9;
  12652. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12653. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12654. return 10;
  12655. for (i = 0; i < pagesize; ++i)
  12656. if (*(data + i) != *(data2 + i))
  12657. return 11;
  12658. /* Finally, make sure that changes to the mapped area do not
  12659. percolate back to the file as seen by read(). (This is a bug on
  12660. some variants of i386 svr4.0.) */
  12661. for (i = 0; i < pagesize; ++i)
  12662. *(data2 + i) = *(data2 + i) + 1;
  12663. data3 = (char *) malloc (pagesize);
  12664. if (!data3)
  12665. return 12;
  12666. if (read (fd, data3, pagesize) != pagesize)
  12667. return 13;
  12668. for (i = 0; i < pagesize; ++i)
  12669. if (*(data + i) != *(data3 + i))
  12670. return 14;
  12671. close (fd);
  12672. free (data);
  12673. free (data3);
  12674. return 0;
  12675. }
  12676. _ACEOF
  12677. if ac_fn_c_try_run "$LINENO"
  12678. then :
  12679. ac_cv_func_mmap_fixed_mapped=yes
  12680. else $as_nop
  12681. ac_cv_func_mmap_fixed_mapped=no
  12682. fi
  12683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12684. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12685. fi
  12686. fi
  12687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12688. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12689. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12690. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  12691. fi
  12692. rm -f conftest.mmap conftest.txt
  12693. if test "x$ac_cv_func_fork" = xyes; then
  12694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12695. printf %s "checking for working fork... " >&6; }
  12696. if test ${ac_cv_func_fork_works+y}
  12697. then :
  12698. printf %s "(cached) " >&6
  12699. else $as_nop
  12700. if test "$cross_compiling" = yes
  12701. then :
  12702. ac_cv_func_fork_works=cross
  12703. else $as_nop
  12704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12705. /* end confdefs.h. */
  12706. $ac_includes_default
  12707. int
  12708. main (void)
  12709. {
  12710. /* By Ruediger Kuhlmann. */
  12711. return fork () < 0;
  12712. ;
  12713. return 0;
  12714. }
  12715. _ACEOF
  12716. if ac_fn_c_try_run "$LINENO"
  12717. then :
  12718. ac_cv_func_fork_works=yes
  12719. else $as_nop
  12720. ac_cv_func_fork_works=no
  12721. fi
  12722. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12723. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12724. fi
  12725. fi
  12726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12727. printf "%s\n" "$ac_cv_func_fork_works" >&6; }
  12728. else
  12729. ac_cv_func_fork_works=$ac_cv_func_fork
  12730. fi
  12731. if test "x$ac_cv_func_fork_works" = xcross; then
  12732. case $host in
  12733. *-*-amigaos* | *-*-msdosdjgpp*)
  12734. # Override, as these systems have only a dummy fork() stub
  12735. ac_cv_func_fork_works=no
  12736. ;;
  12737. *)
  12738. ac_cv_func_fork_works=yes
  12739. ;;
  12740. esac
  12741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12742. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12743. fi
  12744. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12745. if test "x$ac_cv_func_vfork" = xyes; then
  12746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12747. printf %s "checking for working vfork... " >&6; }
  12748. if test ${ac_cv_func_vfork_works+y}
  12749. then :
  12750. printf %s "(cached) " >&6
  12751. else $as_nop
  12752. if test "$cross_compiling" = yes
  12753. then :
  12754. ac_cv_func_vfork_works=cross
  12755. else $as_nop
  12756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12757. /* end confdefs.h. */
  12758. /* Thanks to Paul Eggert for this test. */
  12759. $ac_includes_default
  12760. #include <signal.h>
  12761. #include <sys/wait.h>
  12762. #ifdef HAVE_VFORK_H
  12763. # include <vfork.h>
  12764. #endif
  12765. static void
  12766. do_nothing (int sig)
  12767. {
  12768. (void) sig;
  12769. }
  12770. /* On some sparc systems, changes by the child to local and incoming
  12771. argument registers are propagated back to the parent. The compiler
  12772. is told about this with #include <vfork.h>, but some compilers
  12773. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12774. static variable whose address is put into a register that is
  12775. clobbered by the vfork. */
  12776. static void
  12777. sparc_address_test (int arg)
  12778. {
  12779. static pid_t child;
  12780. if (!child) {
  12781. child = vfork ();
  12782. if (child < 0) {
  12783. perror ("vfork");
  12784. _exit(2);
  12785. }
  12786. if (!child) {
  12787. arg = getpid();
  12788. write(-1, "", 0);
  12789. _exit (arg);
  12790. }
  12791. }
  12792. }
  12793. int
  12794. main (void)
  12795. {
  12796. pid_t parent = getpid ();
  12797. pid_t child;
  12798. sparc_address_test (0);
  12799. /* On Solaris 2.4, changes by the child to the signal handler
  12800. also munge signal handlers in the parent. To detect this,
  12801. start by putting the parent's handler in a known state. */
  12802. signal (SIGTERM, SIG_DFL);
  12803. child = vfork ();
  12804. if (child == 0) {
  12805. /* Here is another test for sparc vfork register problems. This
  12806. test uses lots of local variables, at least as many local
  12807. variables as main has allocated so far including compiler
  12808. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12809. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12810. reuse the register of parent for one of the local variables,
  12811. since it will think that parent can't possibly be used any more
  12812. in this routine. Assigning to the local variable will thus
  12813. munge parent in the parent process. */
  12814. pid_t
  12815. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12816. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12817. /* Convince the compiler that p..p7 are live; otherwise, it might
  12818. use the same hardware register for all 8 local variables. */
  12819. if (p != p1 || p != p2 || p != p3 || p != p4
  12820. || p != p5 || p != p6 || p != p7)
  12821. _exit(1);
  12822. /* Alter the child's signal handler. */
  12823. if (signal (SIGTERM, do_nothing) != SIG_DFL)
  12824. _exit(1);
  12825. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12826. from child file descriptors. If the child closes a descriptor
  12827. before it execs or exits, this munges the parent's descriptor
  12828. as well. Test for this by closing stdout in the child. */
  12829. _exit(close(fileno(stdout)) != 0);
  12830. } else {
  12831. int status;
  12832. struct stat st;
  12833. while (wait(&status) != child)
  12834. ;
  12835. return (
  12836. /* Was there some problem with vforking? */
  12837. child < 0
  12838. /* Did the child munge the parent's signal handler? */
  12839. || signal (SIGTERM, SIG_DFL) != SIG_DFL
  12840. /* Did the child fail? (This shouldn't happen.) */
  12841. || status
  12842. /* Did the vfork/compiler bug occur? */
  12843. || parent != getpid()
  12844. /* Did the file descriptor bug occur? */
  12845. || fstat(fileno(stdout), &st) != 0
  12846. );
  12847. }
  12848. }
  12849. _ACEOF
  12850. if ac_fn_c_try_run "$LINENO"
  12851. then :
  12852. ac_cv_func_vfork_works=yes
  12853. else $as_nop
  12854. ac_cv_func_vfork_works=no
  12855. fi
  12856. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12857. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12858. fi
  12859. fi
  12860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12861. printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
  12862. fi;
  12863. if test "x$ac_cv_func_fork_works" = xcross; then
  12864. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12866. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12867. fi
  12868. if test "x$ac_cv_func_vfork_works" = xyes; then
  12869. printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12870. else
  12871. printf "%s\n" "#define vfork fork" >>confdefs.h
  12872. fi
  12873. if test "x$ac_cv_func_fork_works" = xyes; then
  12874. printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12875. fi
  12876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12877. printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12878. if test ${ac_cv_func_mbrtowc+y}
  12879. then :
  12880. printf %s "(cached) " >&6
  12881. else $as_nop
  12882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12883. /* end confdefs.h. */
  12884. #include <wchar.h>
  12885. int
  12886. main (void)
  12887. {
  12888. wchar_t wc;
  12889. char const s[] = "";
  12890. size_t n = 1;
  12891. mbstate_t state;
  12892. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12893. ;
  12894. return 0;
  12895. }
  12896. _ACEOF
  12897. if ac_fn_c_try_link "$LINENO"
  12898. then :
  12899. ac_cv_func_mbrtowc=yes
  12900. else $as_nop
  12901. ac_cv_func_mbrtowc=no
  12902. fi
  12903. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12904. conftest$ac_exeext conftest.$ac_ext
  12905. fi
  12906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12907. printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
  12908. if test $ac_cv_func_mbrtowc = yes; then
  12909. printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
  12910. fi
  12911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12912. printf %s "checking for gcc compiler warnings... " >&6; }
  12913. # Check whether --enable-warnings was given.
  12914. if test ${enable_warnings+y}
  12915. then :
  12916. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12918. printf "%s\n" "no" >&6; }
  12919. WARNINGS=
  12920. else
  12921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12922. printf "%s\n" "yes" >&6; }
  12923. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12924. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12925. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12926. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12927. fi
  12928. else $as_nop
  12929. if test "$GCC" = yes; then
  12930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12931. printf "%s\n" "yes" >&6; }
  12932. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12933. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12934. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12935. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12936. else
  12937. WARNINGS=
  12938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12939. printf "%s\n" "no" >&6; }
  12940. fi
  12941. fi
  12942. ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
  12943. if test "x$ac_cv_func_strndup" = xyes
  12944. then :
  12945. printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
  12946. fi
  12947. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  12948. if test "x$ac_cv_func_mkstemp" = xyes
  12949. then :
  12950. printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
  12951. fi
  12952. ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
  12953. if test "x$ac_cv_func_mkostemp" = xyes
  12954. then :
  12955. printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
  12956. fi
  12957. ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
  12958. if test "x$ac_cv_func_utimes" = xyes
  12959. then :
  12960. printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
  12961. fi
  12962. ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
  12963. if test "x$ac_cv_func_utime" = xyes
  12964. then :
  12965. printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
  12966. fi
  12967. ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
  12968. if test "x$ac_cv_func_wcwidth" = xyes
  12969. then :
  12970. printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
  12971. fi
  12972. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  12973. if test "x$ac_cv_func_strtof" = xyes
  12974. then :
  12975. printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
  12976. fi
  12977. ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  12978. if test "x$ac_cv_func_newlocale" = xyes
  12979. then :
  12980. printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
  12981. fi
  12982. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  12983. if test "x$ac_cv_func_uselocale" = xyes
  12984. then :
  12985. printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
  12986. fi
  12987. ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
  12988. if test "x$ac_cv_func_freelocale" = xyes
  12989. then :
  12990. printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h
  12991. fi
  12992. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  12993. if test "x$ac_cv_func_memmem" = xyes
  12994. then :
  12995. printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h
  12996. fi
  12997. ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
  12998. if test "x$ac_cv_func_pipe2" = xyes
  12999. then :
  13000. printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
  13001. fi
  13002. ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
  13003. if test "x$ac_cv_func_posix_spawnp" = xyes
  13004. then :
  13005. printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
  13006. fi
  13007. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  13008. if test "x$ac_cv_func_getopt_long" = xyes
  13009. then :
  13010. printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  13011. else $as_nop
  13012. case " $LIBOBJS " in
  13013. *" getopt_long.$ac_objext "* ) ;;
  13014. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  13015. ;;
  13016. esac
  13017. fi
  13018. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  13019. if test "x$ac_cv_func_asprintf" = xyes
  13020. then :
  13021. printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
  13022. else $as_nop
  13023. case " $LIBOBJS " in
  13024. *" asprintf.$ac_objext "* ) ;;
  13025. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  13026. ;;
  13027. esac
  13028. fi
  13029. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  13030. if test "x$ac_cv_func_vasprintf" = xyes
  13031. then :
  13032. printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
  13033. else $as_nop
  13034. case " $LIBOBJS " in
  13035. *" vasprintf.$ac_objext "* ) ;;
  13036. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  13037. ;;
  13038. esac
  13039. fi
  13040. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  13041. if test "x$ac_cv_func_strlcpy" = xyes
  13042. then :
  13043. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  13044. else $as_nop
  13045. case " $LIBOBJS " in
  13046. *" strlcpy.$ac_objext "* ) ;;
  13047. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  13048. ;;
  13049. esac
  13050. fi
  13051. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  13052. if test "x$ac_cv_func_strlcat" = xyes
  13053. then :
  13054. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  13055. else $as_nop
  13056. case " $LIBOBJS " in
  13057. *" strlcat.$ac_objext "* ) ;;
  13058. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  13059. ;;
  13060. esac
  13061. fi
  13062. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  13063. if test "x$ac_cv_func_getline" = xyes
  13064. then :
  13065. printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
  13066. else $as_nop
  13067. case " $LIBOBJS " in
  13068. *" getline.$ac_objext "* ) ;;
  13069. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  13070. ;;
  13071. esac
  13072. fi
  13073. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  13074. if test "x$ac_cv_func_ctime_r" = xyes
  13075. then :
  13076. printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
  13077. else $as_nop
  13078. case " $LIBOBJS " in
  13079. *" ctime_r.$ac_objext "* ) ;;
  13080. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  13081. ;;
  13082. esac
  13083. fi
  13084. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13085. if test "x$ac_cv_func_asctime_r" = xyes
  13086. then :
  13087. printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h
  13088. else $as_nop
  13089. case " $LIBOBJS " in
  13090. *" asctime_r.$ac_objext "* ) ;;
  13091. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  13092. ;;
  13093. esac
  13094. fi
  13095. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13096. if test "x$ac_cv_func_localtime_r" = xyes
  13097. then :
  13098. printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  13099. else $as_nop
  13100. case " $LIBOBJS " in
  13101. *" localtime_r.$ac_objext "* ) ;;
  13102. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  13103. ;;
  13104. esac
  13105. fi
  13106. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  13107. if test "x$ac_cv_func_gmtime_r" = xyes
  13108. then :
  13109. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  13110. else $as_nop
  13111. case " $LIBOBJS " in
  13112. *" gmtime_r.$ac_objext "* ) ;;
  13113. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  13114. ;;
  13115. esac
  13116. fi
  13117. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  13118. if test "x$ac_cv_func_pread" = xyes
  13119. then :
  13120. printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
  13121. else $as_nop
  13122. case " $LIBOBJS " in
  13123. *" pread.$ac_objext "* ) ;;
  13124. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  13125. ;;
  13126. esac
  13127. fi
  13128. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  13129. if test "x$ac_cv_func_strcasestr" = xyes
  13130. then :
  13131. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  13132. else $as_nop
  13133. case " $LIBOBJS " in
  13134. *" strcasestr.$ac_objext "* ) ;;
  13135. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  13136. ;;
  13137. esac
  13138. fi
  13139. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  13140. if test "x$ac_cv_func_fmtcheck" = xyes
  13141. then :
  13142. printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h
  13143. else $as_nop
  13144. case " $LIBOBJS " in
  13145. *" fmtcheck.$ac_objext "* ) ;;
  13146. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  13147. ;;
  13148. esac
  13149. fi
  13150. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  13151. if test "x$ac_cv_func_dprintf" = xyes
  13152. then :
  13153. printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
  13154. else $as_nop
  13155. case " $LIBOBJS " in
  13156. *" dprintf.$ac_objext "* ) ;;
  13157. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  13158. ;;
  13159. esac
  13160. fi
  13161. if test "$enable_zlib" != "no"; then
  13162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  13163. printf %s "checking for gzopen in -lz... " >&6; }
  13164. if test ${ac_cv_lib_z_gzopen+y}
  13165. then :
  13166. printf %s "(cached) " >&6
  13167. else $as_nop
  13168. ac_check_lib_save_LIBS=$LIBS
  13169. LIBS="-lz $LIBS"
  13170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13171. /* end confdefs.h. */
  13172. /* Override any GCC internal prototype to avoid an error.
  13173. Use char because int might match the return type of a GCC
  13174. builtin and then its argument prototype would still apply. */
  13175. char gzopen ();
  13176. int
  13177. main (void)
  13178. {
  13179. return gzopen ();
  13180. ;
  13181. return 0;
  13182. }
  13183. _ACEOF
  13184. if ac_fn_c_try_link "$LINENO"
  13185. then :
  13186. ac_cv_lib_z_gzopen=yes
  13187. else $as_nop
  13188. ac_cv_lib_z_gzopen=no
  13189. fi
  13190. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13191. conftest$ac_exeext conftest.$ac_ext
  13192. LIBS=$ac_check_lib_save_LIBS
  13193. fi
  13194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  13195. printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
  13196. if test "x$ac_cv_lib_z_gzopen" = xyes
  13197. then :
  13198. printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
  13199. LIBS="-lz $LIBS"
  13200. fi
  13201. fi
  13202. if test "$enable_bzlib" != "no"; then
  13203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
  13204. printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
  13205. if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
  13206. then :
  13207. printf %s "(cached) " >&6
  13208. else $as_nop
  13209. ac_check_lib_save_LIBS=$LIBS
  13210. LIBS="-lbz2 $LIBS"
  13211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13212. /* end confdefs.h. */
  13213. /* Override any GCC internal prototype to avoid an error.
  13214. Use char because int might match the return type of a GCC
  13215. builtin and then its argument prototype would still apply. */
  13216. char BZ2_bzCompressInit ();
  13217. int
  13218. main (void)
  13219. {
  13220. return BZ2_bzCompressInit ();
  13221. ;
  13222. return 0;
  13223. }
  13224. _ACEOF
  13225. if ac_fn_c_try_link "$LINENO"
  13226. then :
  13227. ac_cv_lib_bz2_BZ2_bzCompressInit=yes
  13228. else $as_nop
  13229. ac_cv_lib_bz2_BZ2_bzCompressInit=no
  13230. fi
  13231. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13232. conftest$ac_exeext conftest.$ac_ext
  13233. LIBS=$ac_check_lib_save_LIBS
  13234. fi
  13235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
  13236. printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
  13237. if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
  13238. then :
  13239. printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
  13240. LIBS="-lbz2 $LIBS"
  13241. fi
  13242. fi
  13243. if test "$enable_xzlib" != "no"; then
  13244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
  13245. printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
  13246. if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
  13247. then :
  13248. printf %s "(cached) " >&6
  13249. else $as_nop
  13250. ac_check_lib_save_LIBS=$LIBS
  13251. LIBS="-llzma $LIBS"
  13252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13253. /* end confdefs.h. */
  13254. /* Override any GCC internal prototype to avoid an error.
  13255. Use char because int might match the return type of a GCC
  13256. builtin and then its argument prototype would still apply. */
  13257. char lzma_stream_decoder ();
  13258. int
  13259. main (void)
  13260. {
  13261. return lzma_stream_decoder ();
  13262. ;
  13263. return 0;
  13264. }
  13265. _ACEOF
  13266. if ac_fn_c_try_link "$LINENO"
  13267. then :
  13268. ac_cv_lib_lzma_lzma_stream_decoder=yes
  13269. else $as_nop
  13270. ac_cv_lib_lzma_lzma_stream_decoder=no
  13271. fi
  13272. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13273. conftest$ac_exeext conftest.$ac_ext
  13274. LIBS=$ac_check_lib_save_LIBS
  13275. fi
  13276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
  13277. printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
  13278. if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
  13279. then :
  13280. printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
  13281. LIBS="-llzma $LIBS"
  13282. fi
  13283. fi
  13284. if test "$enable_libseccomp" != "no"; then
  13285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  13286. printf %s "checking for seccomp_init in -lseccomp... " >&6; }
  13287. if test ${ac_cv_lib_seccomp_seccomp_init+y}
  13288. then :
  13289. printf %s "(cached) " >&6
  13290. else $as_nop
  13291. ac_check_lib_save_LIBS=$LIBS
  13292. LIBS="-lseccomp $LIBS"
  13293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13294. /* end confdefs.h. */
  13295. /* Override any GCC internal prototype to avoid an error.
  13296. Use char because int might match the return type of a GCC
  13297. builtin and then its argument prototype would still apply. */
  13298. char seccomp_init ();
  13299. int
  13300. main (void)
  13301. {
  13302. return seccomp_init ();
  13303. ;
  13304. return 0;
  13305. }
  13306. _ACEOF
  13307. if ac_fn_c_try_link "$LINENO"
  13308. then :
  13309. ac_cv_lib_seccomp_seccomp_init=yes
  13310. else $as_nop
  13311. ac_cv_lib_seccomp_seccomp_init=no
  13312. fi
  13313. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13314. conftest$ac_exeext conftest.$ac_ext
  13315. LIBS=$ac_check_lib_save_LIBS
  13316. fi
  13317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  13318. printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  13319. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
  13320. then :
  13321. printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
  13322. LIBS="-lseccomp $LIBS"
  13323. fi
  13324. fi
  13325. if test "$MINGW" = 1; then
  13326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  13327. printf %s "checking for regexec in -lgnurx... " >&6; }
  13328. if test ${ac_cv_lib_gnurx_regexec+y}
  13329. then :
  13330. printf %s "(cached) " >&6
  13331. else $as_nop
  13332. ac_check_lib_save_LIBS=$LIBS
  13333. LIBS="-lgnurx $LIBS"
  13334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13335. /* end confdefs.h. */
  13336. /* Override any GCC internal prototype to avoid an error.
  13337. Use char because int might match the return type of a GCC
  13338. builtin and then its argument prototype would still apply. */
  13339. char regexec ();
  13340. int
  13341. main (void)
  13342. {
  13343. return regexec ();
  13344. ;
  13345. return 0;
  13346. }
  13347. _ACEOF
  13348. if ac_fn_c_try_link "$LINENO"
  13349. then :
  13350. ac_cv_lib_gnurx_regexec=yes
  13351. else $as_nop
  13352. ac_cv_lib_gnurx_regexec=no
  13353. fi
  13354. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13355. conftest$ac_exeext conftest.$ac_ext
  13356. LIBS=$ac_check_lib_save_LIBS
  13357. fi
  13358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  13359. printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; }
  13360. if test "x$ac_cv_lib_gnurx_regexec" = xyes
  13361. then :
  13362. printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h
  13363. LIBS="-lgnurx $LIBS"
  13364. else $as_nop
  13365. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  13366. fi
  13367. fi
  13368. if test "$cross_compiling" = yes; then
  13369. IS_CROSS_COMPILE_TRUE=
  13370. IS_CROSS_COMPILE_FALSE='#'
  13371. else
  13372. IS_CROSS_COMPILE_TRUE='#'
  13373. IS_CROSS_COMPILE_FALSE=
  13374. fi
  13375. if test "$enable_zlib" = "yes"; then
  13376. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  13377. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  13378. fi
  13379. fi
  13380. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  13381. printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h
  13382. fi
  13383. if test "$enable_bzlib" = "yes"; then
  13384. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
  13385. as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
  13386. fi
  13387. fi
  13388. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
  13389. printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h
  13390. fi
  13391. if test "$enable_xzlib" = "yes"; then
  13392. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
  13393. as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
  13394. fi
  13395. fi
  13396. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
  13397. printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h
  13398. fi
  13399. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
  13400. cat >confcache <<\_ACEOF
  13401. # This file is a shell script that caches the results of configure
  13402. # tests run on this system so they can be shared between configure
  13403. # scripts and configure runs, see configure's option --config-cache.
  13404. # It is not useful on other systems. If it contains results you don't
  13405. # want to keep, you may remove or edit it.
  13406. #
  13407. # config.status only pays attention to the cache file if you give it
  13408. # the --recheck option to rerun configure.
  13409. #
  13410. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13411. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13412. # following values.
  13413. _ACEOF
  13414. # The following way of writing the cache mishandles newlines in values,
  13415. # but we know of no workaround that is simple, portable, and efficient.
  13416. # So, we kill variables containing newlines.
  13417. # Ultrix sh set writes to stderr and can't be redirected directly,
  13418. # and sets the high bit in the cache file unless we assign to the vars.
  13419. (
  13420. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13421. eval ac_val=\$$ac_var
  13422. case $ac_val in #(
  13423. *${as_nl}*)
  13424. case $ac_var in #(
  13425. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13426. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13427. esac
  13428. case $ac_var in #(
  13429. _ | IFS | as_nl) ;; #(
  13430. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13431. *) { eval $ac_var=; unset $ac_var;} ;;
  13432. esac ;;
  13433. esac
  13434. done
  13435. (set) 2>&1 |
  13436. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13437. *${as_nl}ac_space=\ *)
  13438. # `set' does not quote correctly, so add quotes: double-quote
  13439. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13440. sed -n \
  13441. "s/'/'\\\\''/g;
  13442. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13443. ;; #(
  13444. *)
  13445. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13446. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13447. ;;
  13448. esac |
  13449. sort
  13450. ) |
  13451. sed '
  13452. /^ac_cv_env_/b end
  13453. t clear
  13454. :clear
  13455. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  13456. t end
  13457. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13458. :end' >>confcache
  13459. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13460. if test -w "$cache_file"; then
  13461. if test "x$cache_file" != "x/dev/null"; then
  13462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13463. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  13464. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13465. cat confcache >"$cache_file"
  13466. else
  13467. case $cache_file in #(
  13468. */* | ?:*)
  13469. mv -f confcache "$cache_file"$$ &&
  13470. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13471. *)
  13472. mv -f confcache "$cache_file" ;;
  13473. esac
  13474. fi
  13475. fi
  13476. else
  13477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13478. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  13479. fi
  13480. fi
  13481. rm -f confcache
  13482. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13483. # Let make expand exec_prefix.
  13484. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13485. DEFS=-DHAVE_CONFIG_H
  13486. ac_libobjs=
  13487. ac_ltlibobjs=
  13488. U=
  13489. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13490. # 1. Remove the extension, and $U if already installed.
  13491. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13492. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  13493. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13494. # will be set to the directory where LIBOBJS objects are built.
  13495. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13496. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13497. done
  13498. LIBOBJS=$ac_libobjs
  13499. LTLIBOBJS=$ac_ltlibobjs
  13500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13501. printf %s "checking that generated files are newer than configure... " >&6; }
  13502. if test -n "$am_sleep_pid"; then
  13503. # Hide warnings about reused PIDs.
  13504. wait $am_sleep_pid 2>/dev/null
  13505. fi
  13506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13507. printf "%s\n" "done" >&6; }
  13508. if test -n "$EXEEXT"; then
  13509. am__EXEEXT_TRUE=
  13510. am__EXEEXT_FALSE='#'
  13511. else
  13512. am__EXEEXT_TRUE='#'
  13513. am__EXEEXT_FALSE=
  13514. fi
  13515. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  13516. as_fn_error $? "conditional \"MINGW\" was never defined.
  13517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13518. fi
  13519. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  13520. as_fn_error $? "conditional \"FSECT5\" was never defined.
  13521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13522. fi
  13523. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13524. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13526. fi
  13527. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13528. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13530. fi
  13531. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  13532. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  13533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13534. fi
  13535. : "${CONFIG_STATUS=./config.status}"
  13536. ac_write_fail=0
  13537. ac_clean_files_save=$ac_clean_files
  13538. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13540. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  13541. as_write_fail=0
  13542. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13543. #! $SHELL
  13544. # Generated by $as_me.
  13545. # Run this file to recreate the current configuration.
  13546. # Compiler output produced by configure, useful for debugging
  13547. # configure, is in config.log if it exists.
  13548. debug=false
  13549. ac_cs_recheck=false
  13550. ac_cs_silent=false
  13551. SHELL=\${CONFIG_SHELL-$SHELL}
  13552. export SHELL
  13553. _ASEOF
  13554. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13555. ## -------------------- ##
  13556. ## M4sh Initialization. ##
  13557. ## -------------------- ##
  13558. # Be more Bourne compatible
  13559. DUALCASE=1; export DUALCASE # for MKS sh
  13560. as_nop=:
  13561. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  13562. then :
  13563. emulate sh
  13564. NULLCMD=:
  13565. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13566. # is contrary to our usage. Disable this feature.
  13567. alias -g '${1+"$@"}'='"$@"'
  13568. setopt NO_GLOB_SUBST
  13569. else $as_nop
  13570. case `(set -o) 2>/dev/null` in #(
  13571. *posix*) :
  13572. set -o posix ;; #(
  13573. *) :
  13574. ;;
  13575. esac
  13576. fi
  13577. # Reset variables that may have inherited troublesome values from
  13578. # the environment.
  13579. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  13580. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  13581. # side effect of setting IFS to empty, thus disabling word splitting.)
  13582. # Quoting is to prevent editors from complaining about space-tab.
  13583. as_nl='
  13584. '
  13585. export as_nl
  13586. IFS=" "" $as_nl"
  13587. PS1='$ '
  13588. PS2='> '
  13589. PS4='+ '
  13590. # Ensure predictable behavior from utilities with locale-dependent output.
  13591. LC_ALL=C
  13592. export LC_ALL
  13593. LANGUAGE=C
  13594. export LANGUAGE
  13595. # We cannot yet rely on "unset" to work, but we need these variables
  13596. # to be unset--not just set to an empty or harmless value--now, to
  13597. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  13598. # also avoids known problems related to "unset" and subshell syntax
  13599. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  13600. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  13601. do eval test \${$as_var+y} \
  13602. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13603. done
  13604. # Ensure that fds 0, 1, and 2 are open.
  13605. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  13606. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  13607. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  13608. # The user is always right.
  13609. if ${PATH_SEPARATOR+false} :; then
  13610. PATH_SEPARATOR=:
  13611. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13612. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13613. PATH_SEPARATOR=';'
  13614. }
  13615. fi
  13616. # Find who we are. Look in the path if we contain no directory separator.
  13617. as_myself=
  13618. case $0 in #((
  13619. *[\\/]* ) as_myself=$0 ;;
  13620. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13621. for as_dir in $PATH
  13622. do
  13623. IFS=$as_save_IFS
  13624. case $as_dir in #(((
  13625. '') as_dir=./ ;;
  13626. */) ;;
  13627. *) as_dir=$as_dir/ ;;
  13628. esac
  13629. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  13630. done
  13631. IFS=$as_save_IFS
  13632. ;;
  13633. esac
  13634. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13635. # in which case we are not to be found in the path.
  13636. if test "x$as_myself" = x; then
  13637. as_myself=$0
  13638. fi
  13639. if test ! -f "$as_myself"; then
  13640. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13641. exit 1
  13642. fi
  13643. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13644. # ----------------------------------------
  13645. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13646. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13647. # script with STATUS, using 1 if that was 0.
  13648. as_fn_error ()
  13649. {
  13650. as_status=$1; test $as_status -eq 0 && as_status=1
  13651. if test "$4"; then
  13652. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13654. fi
  13655. printf "%s\n" "$as_me: error: $2" >&2
  13656. as_fn_exit $as_status
  13657. } # as_fn_error
  13658. # as_fn_set_status STATUS
  13659. # -----------------------
  13660. # Set $? to STATUS, without forking.
  13661. as_fn_set_status ()
  13662. {
  13663. return $1
  13664. } # as_fn_set_status
  13665. # as_fn_exit STATUS
  13666. # -----------------
  13667. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13668. as_fn_exit ()
  13669. {
  13670. set +e
  13671. as_fn_set_status $1
  13672. exit $1
  13673. } # as_fn_exit
  13674. # as_fn_unset VAR
  13675. # ---------------
  13676. # Portably unset VAR.
  13677. as_fn_unset ()
  13678. {
  13679. { eval $1=; unset $1;}
  13680. }
  13681. as_unset=as_fn_unset
  13682. # as_fn_append VAR VALUE
  13683. # ----------------------
  13684. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13685. # advantage of any shell optimizations that allow amortized linear growth over
  13686. # repeated appends, instead of the typical quadratic growth present in naive
  13687. # implementations.
  13688. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  13689. then :
  13690. eval 'as_fn_append ()
  13691. {
  13692. eval $1+=\$2
  13693. }'
  13694. else $as_nop
  13695. as_fn_append ()
  13696. {
  13697. eval $1=\$$1\$2
  13698. }
  13699. fi # as_fn_append
  13700. # as_fn_arith ARG...
  13701. # ------------------
  13702. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13703. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13704. # must be portable across $(()) and expr.
  13705. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  13706. then :
  13707. eval 'as_fn_arith ()
  13708. {
  13709. as_val=$(( $* ))
  13710. }'
  13711. else $as_nop
  13712. as_fn_arith ()
  13713. {
  13714. as_val=`expr "$@" || test $? -eq 1`
  13715. }
  13716. fi # as_fn_arith
  13717. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13718. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13719. as_expr=expr
  13720. else
  13721. as_expr=false
  13722. fi
  13723. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13724. as_basename=basename
  13725. else
  13726. as_basename=false
  13727. fi
  13728. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13729. as_dirname=dirname
  13730. else
  13731. as_dirname=false
  13732. fi
  13733. as_me=`$as_basename -- "$0" ||
  13734. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13735. X"$0" : 'X\(//\)$' \| \
  13736. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13737. printf "%s\n" X/"$0" |
  13738. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13739. s//\1/
  13740. q
  13741. }
  13742. /^X\/\(\/\/\)$/{
  13743. s//\1/
  13744. q
  13745. }
  13746. /^X\/\(\/\).*/{
  13747. s//\1/
  13748. q
  13749. }
  13750. s/.*/./; q'`
  13751. # Avoid depending upon Character Ranges.
  13752. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13753. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13754. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13755. as_cr_digits='0123456789'
  13756. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13757. # Determine whether it's possible to make 'echo' print without a newline.
  13758. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  13759. # for compatibility with existing Makefiles.
  13760. ECHO_C= ECHO_N= ECHO_T=
  13761. case `echo -n x` in #(((((
  13762. -n*)
  13763. case `echo 'xy\c'` in
  13764. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13765. xy) ECHO_C='\c';;
  13766. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13767. ECHO_T=' ';;
  13768. esac;;
  13769. *)
  13770. ECHO_N='-n';;
  13771. esac
  13772. # For backward compatibility with old third-party macros, we provide
  13773. # the shell variables $as_echo and $as_echo_n. New code should use
  13774. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  13775. as_echo='printf %s\n'
  13776. as_echo_n='printf %s'
  13777. rm -f conf$$ conf$$.exe conf$$.file
  13778. if test -d conf$$.dir; then
  13779. rm -f conf$$.dir/conf$$.file
  13780. else
  13781. rm -f conf$$.dir
  13782. mkdir conf$$.dir 2>/dev/null
  13783. fi
  13784. if (echo >conf$$.file) 2>/dev/null; then
  13785. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13786. as_ln_s='ln -s'
  13787. # ... but there are two gotchas:
  13788. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13789. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13790. # In both cases, we have to default to `cp -pR'.
  13791. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13792. as_ln_s='cp -pR'
  13793. elif ln conf$$.file conf$$ 2>/dev/null; then
  13794. as_ln_s=ln
  13795. else
  13796. as_ln_s='cp -pR'
  13797. fi
  13798. else
  13799. as_ln_s='cp -pR'
  13800. fi
  13801. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13802. rmdir conf$$.dir 2>/dev/null
  13803. # as_fn_mkdir_p
  13804. # -------------
  13805. # Create "$as_dir" as a directory, including parents if necessary.
  13806. as_fn_mkdir_p ()
  13807. {
  13808. case $as_dir in #(
  13809. -*) as_dir=./$as_dir;;
  13810. esac
  13811. test -d "$as_dir" || eval $as_mkdir_p || {
  13812. as_dirs=
  13813. while :; do
  13814. case $as_dir in #(
  13815. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13816. *) as_qdir=$as_dir;;
  13817. esac
  13818. as_dirs="'$as_qdir' $as_dirs"
  13819. as_dir=`$as_dirname -- "$as_dir" ||
  13820. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13821. X"$as_dir" : 'X\(//\)[^/]' \| \
  13822. X"$as_dir" : 'X\(//\)$' \| \
  13823. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13824. printf "%s\n" X"$as_dir" |
  13825. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13826. s//\1/
  13827. q
  13828. }
  13829. /^X\(\/\/\)[^/].*/{
  13830. s//\1/
  13831. q
  13832. }
  13833. /^X\(\/\/\)$/{
  13834. s//\1/
  13835. q
  13836. }
  13837. /^X\(\/\).*/{
  13838. s//\1/
  13839. q
  13840. }
  13841. s/.*/./; q'`
  13842. test -d "$as_dir" && break
  13843. done
  13844. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13845. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13846. } # as_fn_mkdir_p
  13847. if mkdir -p . 2>/dev/null; then
  13848. as_mkdir_p='mkdir -p "$as_dir"'
  13849. else
  13850. test -d ./-p && rmdir ./-p
  13851. as_mkdir_p=false
  13852. fi
  13853. # as_fn_executable_p FILE
  13854. # -----------------------
  13855. # Test if FILE is an executable regular file.
  13856. as_fn_executable_p ()
  13857. {
  13858. test -f "$1" && test -x "$1"
  13859. } # as_fn_executable_p
  13860. as_test_x='test -x'
  13861. as_executable_p=as_fn_executable_p
  13862. # Sed expression to map a string onto a valid CPP name.
  13863. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13864. # Sed expression to map a string onto a valid variable name.
  13865. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13866. exec 6>&1
  13867. ## ----------------------------------- ##
  13868. ## Main body of $CONFIG_STATUS script. ##
  13869. ## ----------------------------------- ##
  13870. _ASEOF
  13871. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13873. # Save the log message, to keep $0 and so on meaningful, and to
  13874. # report actual input values of CONFIG_FILES etc. instead of their
  13875. # values after options handling.
  13876. ac_log="
  13877. This file was extended by file $as_me 5.43, which was
  13878. generated by GNU Autoconf 2.71. Invocation command line was
  13879. CONFIG_FILES = $CONFIG_FILES
  13880. CONFIG_HEADERS = $CONFIG_HEADERS
  13881. CONFIG_LINKS = $CONFIG_LINKS
  13882. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13883. $ $0 $@
  13884. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13885. "
  13886. _ACEOF
  13887. case $ac_config_files in *"
  13888. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13889. esac
  13890. case $ac_config_headers in *"
  13891. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13892. esac
  13893. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13894. # Files that config.status was made for.
  13895. config_files="$ac_config_files"
  13896. config_headers="$ac_config_headers"
  13897. config_commands="$ac_config_commands"
  13898. _ACEOF
  13899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13900. ac_cs_usage="\
  13901. \`$as_me' instantiates files and other configuration actions
  13902. from templates according to the current configuration. Unless the files
  13903. and actions are specified as TAGs, all are instantiated by default.
  13904. Usage: $0 [OPTION]... [TAG]...
  13905. -h, --help print this help, then exit
  13906. -V, --version print version number and configuration settings, then exit
  13907. --config print configuration, then exit
  13908. -q, --quiet, --silent
  13909. do not print progress messages
  13910. -d, --debug don't remove temporary files
  13911. --recheck update $as_me by reconfiguring in the same conditions
  13912. --file=FILE[:TEMPLATE]
  13913. instantiate the configuration file FILE
  13914. --header=FILE[:TEMPLATE]
  13915. instantiate the configuration header FILE
  13916. Configuration files:
  13917. $config_files
  13918. Configuration headers:
  13919. $config_headers
  13920. Configuration commands:
  13921. $config_commands
  13922. Report bugs to <christos@astron.com>."
  13923. _ACEOF
  13924. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  13925. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  13926. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13927. ac_cs_config='$ac_cs_config_escaped'
  13928. ac_cs_version="\\
  13929. file config.status 5.43
  13930. configured by $0, generated by GNU Autoconf 2.71,
  13931. with options \\"\$ac_cs_config\\"
  13932. Copyright (C) 2021 Free Software Foundation, Inc.
  13933. This config.status script is free software; the Free Software Foundation
  13934. gives unlimited permission to copy, distribute and modify it."
  13935. ac_pwd='$ac_pwd'
  13936. srcdir='$srcdir'
  13937. INSTALL='$INSTALL'
  13938. MKDIR_P='$MKDIR_P'
  13939. AWK='$AWK'
  13940. test -n "\$AWK" || AWK=awk
  13941. _ACEOF
  13942. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13943. # The default lists apply if the user does not specify any file.
  13944. ac_need_defaults=:
  13945. while test $# != 0
  13946. do
  13947. case $1 in
  13948. --*=?*)
  13949. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13950. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13951. ac_shift=:
  13952. ;;
  13953. --*=)
  13954. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13955. ac_optarg=
  13956. ac_shift=:
  13957. ;;
  13958. *)
  13959. ac_option=$1
  13960. ac_optarg=$2
  13961. ac_shift=shift
  13962. ;;
  13963. esac
  13964. case $ac_option in
  13965. # Handling of the options.
  13966. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13967. ac_cs_recheck=: ;;
  13968. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13969. printf "%s\n" "$ac_cs_version"; exit ;;
  13970. --config | --confi | --conf | --con | --co | --c )
  13971. printf "%s\n" "$ac_cs_config"; exit ;;
  13972. --debug | --debu | --deb | --de | --d | -d )
  13973. debug=: ;;
  13974. --file | --fil | --fi | --f )
  13975. $ac_shift
  13976. case $ac_optarg in
  13977. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13978. '') as_fn_error $? "missing file argument" ;;
  13979. esac
  13980. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13981. ac_need_defaults=false;;
  13982. --header | --heade | --head | --hea )
  13983. $ac_shift
  13984. case $ac_optarg in
  13985. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13986. esac
  13987. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13988. ac_need_defaults=false;;
  13989. --he | --h)
  13990. # Conflict between --help and --header
  13991. as_fn_error $? "ambiguous option: \`$1'
  13992. Try \`$0 --help' for more information.";;
  13993. --help | --hel | -h )
  13994. printf "%s\n" "$ac_cs_usage"; exit ;;
  13995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13996. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13997. ac_cs_silent=: ;;
  13998. # This is an error.
  13999. -*) as_fn_error $? "unrecognized option: \`$1'
  14000. Try \`$0 --help' for more information." ;;
  14001. *) as_fn_append ac_config_targets " $1"
  14002. ac_need_defaults=false ;;
  14003. esac
  14004. shift
  14005. done
  14006. ac_configure_extra_args=
  14007. if $ac_cs_silent; then
  14008. exec 6>/dev/null
  14009. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14010. fi
  14011. _ACEOF
  14012. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14013. if \$ac_cs_recheck; then
  14014. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14015. shift
  14016. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  14017. CONFIG_SHELL='$SHELL'
  14018. export CONFIG_SHELL
  14019. exec "\$@"
  14020. fi
  14021. _ACEOF
  14022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14023. exec 5>>config.log
  14024. {
  14025. echo
  14026. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14027. ## Running $as_me. ##
  14028. _ASBOX
  14029. printf "%s\n" "$ac_log"
  14030. } >&5
  14031. _ACEOF
  14032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14033. #
  14034. # INIT-COMMANDS
  14035. #
  14036. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  14037. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14038. # if CDPATH is set.
  14039. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14040. sed_quote_subst='$sed_quote_subst'
  14041. double_quote_subst='$double_quote_subst'
  14042. delay_variable_subst='$delay_variable_subst'
  14043. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14044. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14045. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14046. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14047. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14048. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14049. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14050. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14051. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14052. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14053. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14054. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14055. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14056. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14057. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14058. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14059. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14060. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14061. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14062. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14063. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14064. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14065. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14066. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14067. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14068. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14069. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14070. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14071. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14072. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14073. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14074. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14075. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14076. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14077. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14078. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14079. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14080. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14081. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14082. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14083. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14084. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14085. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14086. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14087. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14088. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14089. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14090. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14091. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14092. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14093. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14094. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14095. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14096. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14097. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14098. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14099. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  14100. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14101. 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"`'
  14102. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  14103. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14104. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14105. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  14106. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14107. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14108. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14109. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14110. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14111. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14112. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14113. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14114. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14115. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14116. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14117. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14118. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14119. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14120. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14121. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14122. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14123. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14124. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14125. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14126. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14127. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14128. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14129. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14130. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14131. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14132. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14133. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14134. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14135. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14136. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14137. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14138. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14139. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14140. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14141. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14142. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14143. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14144. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14145. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14146. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14147. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14148. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14149. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14150. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14151. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14152. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14153. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14154. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14155. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14156. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14157. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14158. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14159. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14160. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14161. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14162. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14163. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14164. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14165. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14166. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14167. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14168. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14169. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14170. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  14171. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  14172. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14173. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14174. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14175. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14176. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14177. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14178. LTCC='$LTCC'
  14179. LTCFLAGS='$LTCFLAGS'
  14180. compiler='$compiler_DEFAULT'
  14181. # A function that is used when there is no print builtin or printf.
  14182. func_fallback_echo ()
  14183. {
  14184. eval 'cat <<_LTECHO_EOF
  14185. \$1
  14186. _LTECHO_EOF'
  14187. }
  14188. # Quote evaled strings.
  14189. for var in SHELL \
  14190. ECHO \
  14191. PATH_SEPARATOR \
  14192. SED \
  14193. GREP \
  14194. EGREP \
  14195. FGREP \
  14196. LD \
  14197. NM \
  14198. LN_S \
  14199. lt_SP2NL \
  14200. lt_NL2SP \
  14201. reload_flag \
  14202. OBJDUMP \
  14203. deplibs_check_method \
  14204. file_magic_cmd \
  14205. file_magic_glob \
  14206. want_nocaseglob \
  14207. DLLTOOL \
  14208. sharedlib_from_linklib_cmd \
  14209. AR \
  14210. AR_FLAGS \
  14211. archiver_list_spec \
  14212. STRIP \
  14213. RANLIB \
  14214. CC \
  14215. CFLAGS \
  14216. compiler \
  14217. lt_cv_sys_global_symbol_pipe \
  14218. lt_cv_sys_global_symbol_to_cdecl \
  14219. lt_cv_sys_global_symbol_to_import \
  14220. lt_cv_sys_global_symbol_to_c_name_address \
  14221. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14222. lt_cv_nm_interface \
  14223. nm_file_list_spec \
  14224. lt_cv_truncate_bin \
  14225. lt_prog_compiler_no_builtin_flag \
  14226. lt_prog_compiler_pic \
  14227. lt_prog_compiler_wl \
  14228. lt_prog_compiler_static \
  14229. lt_cv_prog_compiler_c_o \
  14230. need_locks \
  14231. MANIFEST_TOOL \
  14232. DSYMUTIL \
  14233. NMEDIT \
  14234. LIPO \
  14235. OTOOL \
  14236. OTOOL64 \
  14237. shrext_cmds \
  14238. export_dynamic_flag_spec \
  14239. whole_archive_flag_spec \
  14240. compiler_needs_object \
  14241. with_gnu_ld \
  14242. allow_undefined_flag \
  14243. no_undefined_flag \
  14244. hardcode_libdir_flag_spec \
  14245. hardcode_libdir_separator \
  14246. exclude_expsyms \
  14247. include_expsyms \
  14248. file_list_spec \
  14249. variables_saved_for_relink \
  14250. libname_spec \
  14251. library_names_spec \
  14252. soname_spec \
  14253. install_override_mode \
  14254. finish_eval \
  14255. old_striplib \
  14256. striplib; do
  14257. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14258. *[\\\\\\\`\\"\\\$]*)
  14259. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14260. ;;
  14261. *)
  14262. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14263. ;;
  14264. esac
  14265. done
  14266. # Double-quote double-evaled strings.
  14267. for var in reload_cmds \
  14268. old_postinstall_cmds \
  14269. old_postuninstall_cmds \
  14270. old_archive_cmds \
  14271. extract_expsyms_cmds \
  14272. old_archive_from_new_cmds \
  14273. old_archive_from_expsyms_cmds \
  14274. archive_cmds \
  14275. archive_expsym_cmds \
  14276. module_cmds \
  14277. module_expsym_cmds \
  14278. export_symbols_cmds \
  14279. prelink_cmds \
  14280. postlink_cmds \
  14281. postinstall_cmds \
  14282. postuninstall_cmds \
  14283. finish_cmds \
  14284. sys_lib_search_path_spec \
  14285. configure_time_dlsearch_path \
  14286. configure_time_lt_sys_library_path; do
  14287. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14288. *[\\\\\\\`\\"\\\$]*)
  14289. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14290. ;;
  14291. *)
  14292. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14293. ;;
  14294. esac
  14295. done
  14296. ac_aux_dir='$ac_aux_dir'
  14297. # See if we are running on zsh, and set the options that allow our
  14298. # commands through without removal of \ escapes INIT.
  14299. if test -n "\${ZSH_VERSION+set}"; then
  14300. setopt NO_GLOB_SUBST
  14301. fi
  14302. PACKAGE='$PACKAGE'
  14303. VERSION='$VERSION'
  14304. RM='$RM'
  14305. ofile='$ofile'
  14306. _ACEOF
  14307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14308. # Handling of arguments.
  14309. for ac_config_target in $ac_config_targets
  14310. do
  14311. case $ac_config_target in
  14312. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14313. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14314. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14315. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14316. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14317. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  14318. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  14319. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14320. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  14321. "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
  14322. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14323. esac
  14324. done
  14325. # If the user did not use the arguments to specify the items to instantiate,
  14326. # then the envvar interface is used. Set only those that are not.
  14327. # We use the long form for the default assignment because of an extremely
  14328. # bizarre bug on SunOS 4.1.3.
  14329. if $ac_need_defaults; then
  14330. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  14331. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  14332. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  14333. fi
  14334. # Have a temporary directory for convenience. Make it in the build tree
  14335. # simply because there is no reason against having it here, and in addition,
  14336. # creating and moving files from /tmp can sometimes cause problems.
  14337. # Hook for its removal unless debugging.
  14338. # Note that there is a small window in which the directory will not be cleaned:
  14339. # after its creation but before its name has been assigned to `$tmp'.
  14340. $debug ||
  14341. {
  14342. tmp= ac_tmp=
  14343. trap 'exit_status=$?
  14344. : "${ac_tmp:=$tmp}"
  14345. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14346. ' 0
  14347. trap 'as_fn_exit 1' 1 2 13 15
  14348. }
  14349. # Create a (secure) tmp directory for tmp files.
  14350. {
  14351. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14352. test -d "$tmp"
  14353. } ||
  14354. {
  14355. tmp=./conf$$-$RANDOM
  14356. (umask 077 && mkdir "$tmp")
  14357. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14358. ac_tmp=$tmp
  14359. # Set up the scripts for CONFIG_FILES section.
  14360. # No need to generate them if there are no CONFIG_FILES.
  14361. # This happens for instance with `./config.status config.h'.
  14362. if test -n "$CONFIG_FILES"; then
  14363. ac_cr=`echo X | tr X '\015'`
  14364. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14365. # But we know of no other shell where ac_cr would be empty at this
  14366. # point, so we can use a bashism as a fallback.
  14367. if test "x$ac_cr" = x; then
  14368. eval ac_cr=\$\'\\r\'
  14369. fi
  14370. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14371. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14372. ac_cs_awk_cr='\\r'
  14373. else
  14374. ac_cs_awk_cr=$ac_cr
  14375. fi
  14376. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14377. _ACEOF
  14378. {
  14379. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14380. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14381. echo "_ACEOF"
  14382. } >conf$$subs.sh ||
  14383. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14384. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14385. ac_delim='%!_!# '
  14386. for ac_last_try in false false false false false :; do
  14387. . ./conf$$subs.sh ||
  14388. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14389. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14390. if test $ac_delim_n = $ac_delim_num; then
  14391. break
  14392. elif $ac_last_try; then
  14393. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14394. else
  14395. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14396. fi
  14397. done
  14398. rm -f conf$$subs.sh
  14399. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14400. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14401. _ACEOF
  14402. sed -n '
  14403. h
  14404. s/^/S["/; s/!.*/"]=/
  14405. p
  14406. g
  14407. s/^[^!]*!//
  14408. :repl
  14409. t repl
  14410. s/'"$ac_delim"'$//
  14411. t delim
  14412. :nl
  14413. h
  14414. s/\(.\{148\}\)..*/\1/
  14415. t more1
  14416. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14417. p
  14418. n
  14419. b repl
  14420. :more1
  14421. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14422. p
  14423. g
  14424. s/.\{148\}//
  14425. t nl
  14426. :delim
  14427. h
  14428. s/\(.\{148\}\)..*/\1/
  14429. t more2
  14430. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14431. p
  14432. b
  14433. :more2
  14434. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14435. p
  14436. g
  14437. s/.\{148\}//
  14438. t delim
  14439. ' <conf$$subs.awk | sed '
  14440. /^[^""]/{
  14441. N
  14442. s/\n//
  14443. }
  14444. ' >>$CONFIG_STATUS || ac_write_fail=1
  14445. rm -f conf$$subs.awk
  14446. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14447. _ACAWK
  14448. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14449. for (key in S) S_is_set[key] = 1
  14450. FS = ""
  14451. }
  14452. {
  14453. line = $ 0
  14454. nfields = split(line, field, "@")
  14455. substed = 0
  14456. len = length(field[1])
  14457. for (i = 2; i < nfields; i++) {
  14458. key = field[i]
  14459. keylen = length(key)
  14460. if (S_is_set[key]) {
  14461. value = S[key]
  14462. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14463. len += length(value) + length(field[++i])
  14464. substed = 1
  14465. } else
  14466. len += 1 + keylen
  14467. }
  14468. print line
  14469. }
  14470. _ACAWK
  14471. _ACEOF
  14472. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14473. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14474. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14475. else
  14476. cat
  14477. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14478. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14479. _ACEOF
  14480. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14481. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14482. # trailing colons and then remove the whole line if VPATH becomes empty
  14483. # (actually we leave an empty line to preserve line numbers).
  14484. if test "x$srcdir" = x.; then
  14485. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14486. h
  14487. s///
  14488. s/^/:/
  14489. s/[ ]*$/:/
  14490. s/:\$(srcdir):/:/g
  14491. s/:\${srcdir}:/:/g
  14492. s/:@srcdir@:/:/g
  14493. s/^:*//
  14494. s/:*$//
  14495. x
  14496. s/\(=[ ]*\).*/\1/
  14497. G
  14498. s/\n//
  14499. s/^[^=]*=[ ]*$//
  14500. }'
  14501. fi
  14502. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14503. fi # test -n "$CONFIG_FILES"
  14504. # Set up the scripts for CONFIG_HEADERS section.
  14505. # No need to generate them if there are no CONFIG_HEADERS.
  14506. # This happens for instance with `./config.status Makefile'.
  14507. if test -n "$CONFIG_HEADERS"; then
  14508. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14509. BEGIN {
  14510. _ACEOF
  14511. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14512. # here-document in config.status, that substitutes the proper values into
  14513. # config.h.in to produce config.h.
  14514. # Create a delimiter string that does not exist in confdefs.h, to ease
  14515. # handling of long lines.
  14516. ac_delim='%!_!# '
  14517. for ac_last_try in false false :; do
  14518. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14519. if test -z "$ac_tt"; then
  14520. break
  14521. elif $ac_last_try; then
  14522. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14523. else
  14524. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14525. fi
  14526. done
  14527. # For the awk script, D is an array of macro values keyed by name,
  14528. # likewise P contains macro parameters if any. Preserve backslash
  14529. # newline sequences.
  14530. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14531. sed -n '
  14532. s/.\{148\}/&'"$ac_delim"'/g
  14533. t rset
  14534. :rset
  14535. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14536. t def
  14537. d
  14538. :def
  14539. s/\\$//
  14540. t bsnl
  14541. s/["\\]/\\&/g
  14542. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14543. D["\1"]=" \3"/p
  14544. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14545. d
  14546. :bsnl
  14547. s/["\\]/\\&/g
  14548. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14549. D["\1"]=" \3\\\\\\n"\\/p
  14550. t cont
  14551. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14552. t cont
  14553. d
  14554. :cont
  14555. n
  14556. s/.\{148\}/&'"$ac_delim"'/g
  14557. t clear
  14558. :clear
  14559. s/\\$//
  14560. t bsnlc
  14561. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14562. d
  14563. :bsnlc
  14564. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14565. b cont
  14566. ' <confdefs.h | sed '
  14567. s/'"$ac_delim"'/"\\\
  14568. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14569. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14570. for (key in D) D_is_set[key] = 1
  14571. FS = ""
  14572. }
  14573. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14574. line = \$ 0
  14575. split(line, arg, " ")
  14576. if (arg[1] == "#") {
  14577. defundef = arg[2]
  14578. mac1 = arg[3]
  14579. } else {
  14580. defundef = substr(arg[1], 2)
  14581. mac1 = arg[2]
  14582. }
  14583. split(mac1, mac2, "(") #)
  14584. macro = mac2[1]
  14585. prefix = substr(line, 1, index(line, defundef) - 1)
  14586. if (D_is_set[macro]) {
  14587. # Preserve the white space surrounding the "#".
  14588. print prefix "define", macro P[macro] D[macro]
  14589. next
  14590. } else {
  14591. # Replace #undef with comments. This is necessary, for example,
  14592. # in the case of _POSIX_SOURCE, which is predefined and required
  14593. # on some systems where configure will not decide to define it.
  14594. if (defundef == "undef") {
  14595. print "/*", prefix defundef, macro, "*/"
  14596. next
  14597. }
  14598. }
  14599. }
  14600. { print }
  14601. _ACAWK
  14602. _ACEOF
  14603. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14604. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14605. fi # test -n "$CONFIG_HEADERS"
  14606. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14607. shift
  14608. for ac_tag
  14609. do
  14610. case $ac_tag in
  14611. :[FHLC]) ac_mode=$ac_tag; continue;;
  14612. esac
  14613. case $ac_mode$ac_tag in
  14614. :[FHL]*:*);;
  14615. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14616. :[FH]-) ac_tag=-:-;;
  14617. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14618. esac
  14619. ac_save_IFS=$IFS
  14620. IFS=:
  14621. set x $ac_tag
  14622. IFS=$ac_save_IFS
  14623. shift
  14624. ac_file=$1
  14625. shift
  14626. case $ac_mode in
  14627. :L) ac_source=$1;;
  14628. :[FH])
  14629. ac_file_inputs=
  14630. for ac_f
  14631. do
  14632. case $ac_f in
  14633. -) ac_f="$ac_tmp/stdin";;
  14634. *) # Look for the file first in the build tree, then in the source tree
  14635. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14636. # because $ac_f cannot contain `:'.
  14637. test -f "$ac_f" ||
  14638. case $ac_f in
  14639. [\\/$]*) false;;
  14640. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14641. esac ||
  14642. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14643. esac
  14644. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14645. as_fn_append ac_file_inputs " '$ac_f'"
  14646. done
  14647. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14648. # use $as_me), people would be surprised to read:
  14649. # /* config.h. Generated by config.status. */
  14650. configure_input='Generated from '`
  14651. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14652. `' by configure.'
  14653. if test x"$ac_file" != x-; then
  14654. configure_input="$ac_file. $configure_input"
  14655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14656. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  14657. fi
  14658. # Neutralize special characters interpreted by sed in replacement strings.
  14659. case $configure_input in #(
  14660. *\&* | *\|* | *\\* )
  14661. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  14662. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14663. *) ac_sed_conf_input=$configure_input;;
  14664. esac
  14665. case $ac_tag in
  14666. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14667. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14668. esac
  14669. ;;
  14670. esac
  14671. ac_dir=`$as_dirname -- "$ac_file" ||
  14672. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14673. X"$ac_file" : 'X\(//\)[^/]' \| \
  14674. X"$ac_file" : 'X\(//\)$' \| \
  14675. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14676. printf "%s\n" X"$ac_file" |
  14677. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14678. s//\1/
  14679. q
  14680. }
  14681. /^X\(\/\/\)[^/].*/{
  14682. s//\1/
  14683. q
  14684. }
  14685. /^X\(\/\/\)$/{
  14686. s//\1/
  14687. q
  14688. }
  14689. /^X\(\/\).*/{
  14690. s//\1/
  14691. q
  14692. }
  14693. s/.*/./; q'`
  14694. as_dir="$ac_dir"; as_fn_mkdir_p
  14695. ac_builddir=.
  14696. case "$ac_dir" in
  14697. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14698. *)
  14699. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  14700. # A ".." for each directory in $ac_dir_suffix.
  14701. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14702. case $ac_top_builddir_sub in
  14703. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14704. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14705. esac ;;
  14706. esac
  14707. ac_abs_top_builddir=$ac_pwd
  14708. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14709. # for backward compatibility:
  14710. ac_top_builddir=$ac_top_build_prefix
  14711. case $srcdir in
  14712. .) # We are building in place.
  14713. ac_srcdir=.
  14714. ac_top_srcdir=$ac_top_builddir_sub
  14715. ac_abs_top_srcdir=$ac_pwd ;;
  14716. [\\/]* | ?:[\\/]* ) # Absolute name.
  14717. ac_srcdir=$srcdir$ac_dir_suffix;
  14718. ac_top_srcdir=$srcdir
  14719. ac_abs_top_srcdir=$srcdir ;;
  14720. *) # Relative name.
  14721. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14722. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14723. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14724. esac
  14725. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14726. case $ac_mode in
  14727. :F)
  14728. #
  14729. # CONFIG_FILE
  14730. #
  14731. case $INSTALL in
  14732. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14733. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14734. esac
  14735. ac_MKDIR_P=$MKDIR_P
  14736. case $MKDIR_P in
  14737. [\\/$]* | ?:[\\/]* ) ;;
  14738. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14739. esac
  14740. _ACEOF
  14741. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14742. # If the template does not know about datarootdir, expand it.
  14743. # FIXME: This hack should be removed a few years after 2.60.
  14744. ac_datarootdir_hack=; ac_datarootdir_seen=
  14745. ac_sed_dataroot='
  14746. /datarootdir/ {
  14747. p
  14748. q
  14749. }
  14750. /@datadir@/p
  14751. /@docdir@/p
  14752. /@infodir@/p
  14753. /@localedir@/p
  14754. /@mandir@/p'
  14755. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14756. *datarootdir*) ac_datarootdir_seen=yes;;
  14757. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14759. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14760. _ACEOF
  14761. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14762. ac_datarootdir_hack='
  14763. s&@datadir@&$datadir&g
  14764. s&@docdir@&$docdir&g
  14765. s&@infodir@&$infodir&g
  14766. s&@localedir@&$localedir&g
  14767. s&@mandir@&$mandir&g
  14768. s&\\\${datarootdir}&$datarootdir&g' ;;
  14769. esac
  14770. _ACEOF
  14771. # Neutralize VPATH when `$srcdir' = `.'.
  14772. # Shell code in configure.ac might set extrasub.
  14773. # FIXME: do we really want to maintain this feature?
  14774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14775. ac_sed_extra="$ac_vpsub
  14776. $extrasub
  14777. _ACEOF
  14778. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14779. :t
  14780. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14781. s|@configure_input@|$ac_sed_conf_input|;t t
  14782. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14783. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14784. s&@srcdir@&$ac_srcdir&;t t
  14785. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14786. s&@top_srcdir@&$ac_top_srcdir&;t t
  14787. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14788. s&@builddir@&$ac_builddir&;t t
  14789. s&@abs_builddir@&$ac_abs_builddir&;t t
  14790. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14791. s&@INSTALL@&$ac_INSTALL&;t t
  14792. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14793. $ac_datarootdir_hack
  14794. "
  14795. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14796. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14797. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14798. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14799. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14800. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14802. which seems to be undefined. Please make sure it is defined" >&5
  14803. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14804. which seems to be undefined. Please make sure it is defined" >&2;}
  14805. rm -f "$ac_tmp/stdin"
  14806. case $ac_file in
  14807. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14808. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14809. esac \
  14810. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14811. ;;
  14812. :H)
  14813. #
  14814. # CONFIG_HEADER
  14815. #
  14816. if test x"$ac_file" != x-; then
  14817. {
  14818. printf "%s\n" "/* $configure_input */" >&1 \
  14819. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14820. } >"$ac_tmp/config.h" \
  14821. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14822. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14824. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  14825. else
  14826. rm -f "$ac_file"
  14827. mv "$ac_tmp/config.h" "$ac_file" \
  14828. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14829. fi
  14830. else
  14831. printf "%s\n" "/* $configure_input */" >&1 \
  14832. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14833. || as_fn_error $? "could not create -" "$LINENO" 5
  14834. fi
  14835. # Compute "$ac_file"'s index in $config_headers.
  14836. _am_arg="$ac_file"
  14837. _am_stamp_count=1
  14838. for _am_header in $config_headers :; do
  14839. case $_am_header in
  14840. $_am_arg | $_am_arg:* )
  14841. break ;;
  14842. * )
  14843. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14844. esac
  14845. done
  14846. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14847. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14848. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14849. X"$_am_arg" : 'X\(//\)$' \| \
  14850. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14851. printf "%s\n" X"$_am_arg" |
  14852. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14853. s//\1/
  14854. q
  14855. }
  14856. /^X\(\/\/\)[^/].*/{
  14857. s//\1/
  14858. q
  14859. }
  14860. /^X\(\/\/\)$/{
  14861. s//\1/
  14862. q
  14863. }
  14864. /^X\(\/\).*/{
  14865. s//\1/
  14866. q
  14867. }
  14868. s/.*/./; q'`/stamp-h$_am_stamp_count
  14869. ;;
  14870. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14871. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  14872. ;;
  14873. esac
  14874. case $ac_file$ac_mode in
  14875. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14876. # Older Autoconf quotes --file arguments for eval, but not when files
  14877. # are listed without --file. Let's play safe and only enable the eval
  14878. # if we detect the quoting.
  14879. # TODO: see whether this extra hack can be removed once we start
  14880. # requiring Autoconf 2.70 or later.
  14881. case $CONFIG_FILES in #(
  14882. *\'*) :
  14883. eval set x "$CONFIG_FILES" ;; #(
  14884. *) :
  14885. set x $CONFIG_FILES ;; #(
  14886. *) :
  14887. ;;
  14888. esac
  14889. shift
  14890. # Used to flag and report bootstrapping failures.
  14891. am_rc=0
  14892. for am_mf
  14893. do
  14894. # Strip MF so we end up with the name of the file.
  14895. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  14896. # Check whether this is an Automake generated Makefile which includes
  14897. # dependency-tracking related rules and includes.
  14898. # Grep'ing the whole file directly is not great: AIX grep has a line
  14899. # limit of 2048, but all sed's we know have understand at least 4000.
  14900. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14901. || continue
  14902. am_dirpart=`$as_dirname -- "$am_mf" ||
  14903. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14904. X"$am_mf" : 'X\(//\)[^/]' \| \
  14905. X"$am_mf" : 'X\(//\)$' \| \
  14906. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14907. printf "%s\n" X"$am_mf" |
  14908. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14909. s//\1/
  14910. q
  14911. }
  14912. /^X\(\/\/\)[^/].*/{
  14913. s//\1/
  14914. q
  14915. }
  14916. /^X\(\/\/\)$/{
  14917. s//\1/
  14918. q
  14919. }
  14920. /^X\(\/\).*/{
  14921. s//\1/
  14922. q
  14923. }
  14924. s/.*/./; q'`
  14925. am_filepart=`$as_basename -- "$am_mf" ||
  14926. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14927. X"$am_mf" : 'X\(//\)$' \| \
  14928. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14929. printf "%s\n" X/"$am_mf" |
  14930. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14931. s//\1/
  14932. q
  14933. }
  14934. /^X\/\(\/\/\)$/{
  14935. s//\1/
  14936. q
  14937. }
  14938. /^X\/\(\/\).*/{
  14939. s//\1/
  14940. q
  14941. }
  14942. s/.*/./; q'`
  14943. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14944. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14945. | $MAKE -f - am--depfiles" >&5
  14946. (cd "$am_dirpart" \
  14947. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14948. | $MAKE -f - am--depfiles) >&5 2>&5
  14949. ac_status=$?
  14950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14951. (exit $ac_status); } || am_rc=$?
  14952. done
  14953. if test $am_rc -ne 0; then
  14954. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14955. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  14956. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14957. for automatic dependency tracking. If GNU make was not used, consider
  14958. re-running the configure script with MAKE=\"gmake\" (or whatever is
  14959. necessary). You can also try re-running configure with the
  14960. '--disable-dependency-tracking' option to at least be able to build
  14961. the package (albeit without support for automatic dependency tracking).
  14962. See \`config.log' for more details" "$LINENO" 5; }
  14963. fi
  14964. { am_dirpart=; unset am_dirpart;}
  14965. { am_filepart=; unset am_filepart;}
  14966. { am_mf=; unset am_mf;}
  14967. { am_rc=; unset am_rc;}
  14968. rm -f conftest-deps.mk
  14969. }
  14970. ;;
  14971. "libtool":C)
  14972. # See if we are running on zsh, and set the options that allow our
  14973. # commands through without removal of \ escapes.
  14974. if test -n "${ZSH_VERSION+set}"; then
  14975. setopt NO_GLOB_SUBST
  14976. fi
  14977. cfgfile=${ofile}T
  14978. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14979. $RM "$cfgfile"
  14980. cat <<_LT_EOF >> "$cfgfile"
  14981. #! $SHELL
  14982. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14983. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14984. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14985. # Provide generalized library-building support services.
  14986. # Written by Gordon Matzigkeit, 1996
  14987. # Copyright (C) 2014 Free Software Foundation, Inc.
  14988. # This is free software; see the source for copying conditions. There is NO
  14989. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14990. # GNU Libtool is free software; you can redistribute it and/or modify
  14991. # it under the terms of the GNU General Public License as published by
  14992. # the Free Software Foundation; either version 2 of of the License, or
  14993. # (at your option) any later version.
  14994. #
  14995. # As a special exception to the GNU General Public License, if you
  14996. # distribute this file as part of a program or library that is built
  14997. # using GNU Libtool, you may include this file under the same
  14998. # distribution terms that you use for the rest of that program.
  14999. #
  15000. # GNU Libtool is distributed in the hope that it will be useful, but
  15001. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15002. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15003. # GNU General Public License for more details.
  15004. #
  15005. # You should have received a copy of the GNU General Public License
  15006. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15007. # The names of the tagged configurations supported by this script.
  15008. available_tags=''
  15009. # Configured defaults for sys_lib_dlsearch_path munging.
  15010. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15011. # ### BEGIN LIBTOOL CONFIG
  15012. # Which release of libtool.m4 was used?
  15013. macro_version=$macro_version
  15014. macro_revision=$macro_revision
  15015. # Whether or not to build static libraries.
  15016. build_old_libs=$enable_static
  15017. # What type of objects to build.
  15018. pic_mode=$pic_mode
  15019. # Whether or not to build shared libraries.
  15020. build_libtool_libs=$enable_shared
  15021. # Whether or not to optimize for fast installation.
  15022. fast_install=$enable_fast_install
  15023. # Shared archive member basename,for filename based shared library versioning on AIX.
  15024. shared_archive_member_spec=$shared_archive_member_spec
  15025. # Shell to use when invoking shell scripts.
  15026. SHELL=$lt_SHELL
  15027. # An echo program that protects backslashes.
  15028. ECHO=$lt_ECHO
  15029. # The PATH separator for the build system.
  15030. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15031. # The host system.
  15032. host_alias=$host_alias
  15033. host=$host
  15034. host_os=$host_os
  15035. # The build system.
  15036. build_alias=$build_alias
  15037. build=$build
  15038. build_os=$build_os
  15039. # A sed program that does not truncate output.
  15040. SED=$lt_SED
  15041. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15042. Xsed="\$SED -e 1s/^X//"
  15043. # A grep program that handles long lines.
  15044. GREP=$lt_GREP
  15045. # An ERE matcher.
  15046. EGREP=$lt_EGREP
  15047. # A literal string matcher.
  15048. FGREP=$lt_FGREP
  15049. # A BSD- or MS-compatible name lister.
  15050. NM=$lt_NM
  15051. # Whether we need soft or hard links.
  15052. LN_S=$lt_LN_S
  15053. # What is the maximum length of a command?
  15054. max_cmd_len=$max_cmd_len
  15055. # Object file suffix (normally "o").
  15056. objext=$ac_objext
  15057. # Executable file suffix (normally "").
  15058. exeext=$exeext
  15059. # whether the shell understands "unset".
  15060. lt_unset=$lt_unset
  15061. # turn spaces into newlines.
  15062. SP2NL=$lt_lt_SP2NL
  15063. # turn newlines into spaces.
  15064. NL2SP=$lt_lt_NL2SP
  15065. # convert \$build file names to \$host format.
  15066. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15067. # convert \$build files to toolchain format.
  15068. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15069. # An object symbol dumper.
  15070. OBJDUMP=$lt_OBJDUMP
  15071. # Method to check whether dependent libraries are shared objects.
  15072. deplibs_check_method=$lt_deplibs_check_method
  15073. # Command to use when deplibs_check_method = "file_magic".
  15074. file_magic_cmd=$lt_file_magic_cmd
  15075. # How to find potential files when deplibs_check_method = "file_magic".
  15076. file_magic_glob=$lt_file_magic_glob
  15077. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15078. want_nocaseglob=$lt_want_nocaseglob
  15079. # DLL creation program.
  15080. DLLTOOL=$lt_DLLTOOL
  15081. # Command to associate shared and link libraries.
  15082. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15083. # The archiver.
  15084. AR=$lt_AR
  15085. # Flags to create an archive.
  15086. AR_FLAGS=$lt_AR_FLAGS
  15087. # How to feed a file listing to the archiver.
  15088. archiver_list_spec=$lt_archiver_list_spec
  15089. # A symbol stripping program.
  15090. STRIP=$lt_STRIP
  15091. # Commands used to install an old-style archive.
  15092. RANLIB=$lt_RANLIB
  15093. old_postinstall_cmds=$lt_old_postinstall_cmds
  15094. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15095. # Whether to use a lock for old archive extraction.
  15096. lock_old_archive_extraction=$lock_old_archive_extraction
  15097. # A C compiler.
  15098. LTCC=$lt_CC
  15099. # LTCC compiler flags.
  15100. LTCFLAGS=$lt_CFLAGS
  15101. # Take the output of nm and produce a listing of raw symbols and C names.
  15102. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15103. # Transform the output of nm in a proper C declaration.
  15104. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15105. # Transform the output of nm into a list of symbols to manually relocate.
  15106. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15107. # Transform the output of nm in a C name address pair.
  15108. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15109. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15110. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15111. # The name lister interface.
  15112. nm_interface=$lt_lt_cv_nm_interface
  15113. # Specify filename containing input files for \$NM.
  15114. nm_file_list_spec=$lt_nm_file_list_spec
  15115. # The root where to search for dependent libraries,and where our libraries should be installed.
  15116. lt_sysroot=$lt_sysroot
  15117. # Command to truncate a binary pipe.
  15118. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15119. # The name of the directory that contains temporary libtool files.
  15120. objdir=$objdir
  15121. # Used to examine libraries when file_magic_cmd begins with "file".
  15122. MAGIC_CMD=$MAGIC_CMD
  15123. # Must we lock files when doing compilation?
  15124. need_locks=$lt_need_locks
  15125. # Manifest tool.
  15126. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15127. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15128. DSYMUTIL=$lt_DSYMUTIL
  15129. # Tool to change global to local symbols on Mac OS X.
  15130. NMEDIT=$lt_NMEDIT
  15131. # Tool to manipulate fat objects and archives on Mac OS X.
  15132. LIPO=$lt_LIPO
  15133. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15134. OTOOL=$lt_OTOOL
  15135. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15136. OTOOL64=$lt_OTOOL64
  15137. # Old archive suffix (normally "a").
  15138. libext=$libext
  15139. # Shared library suffix (normally ".so").
  15140. shrext_cmds=$lt_shrext_cmds
  15141. # The commands to extract the exported symbol list from a shared archive.
  15142. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15143. # Variables whose values should be saved in libtool wrapper scripts and
  15144. # restored at link time.
  15145. variables_saved_for_relink=$lt_variables_saved_for_relink
  15146. # Do we need the "lib" prefix for modules?
  15147. need_lib_prefix=$need_lib_prefix
  15148. # Do we need a version for libraries?
  15149. need_version=$need_version
  15150. # Library versioning type.
  15151. version_type=$version_type
  15152. # Shared library runtime path variable.
  15153. runpath_var=$runpath_var
  15154. # Shared library path variable.
  15155. shlibpath_var=$shlibpath_var
  15156. # Is shlibpath searched before the hard-coded library search path?
  15157. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15158. # Format of library name prefix.
  15159. libname_spec=$lt_libname_spec
  15160. # List of archive names. First name is the real one, the rest are links.
  15161. # The last name is the one that the linker finds with -lNAME
  15162. library_names_spec=$lt_library_names_spec
  15163. # The coded name of the library, if different from the real name.
  15164. soname_spec=$lt_soname_spec
  15165. # Permission mode override for installation of shared libraries.
  15166. install_override_mode=$lt_install_override_mode
  15167. # Command to use after installation of a shared archive.
  15168. postinstall_cmds=$lt_postinstall_cmds
  15169. # Command to use after uninstallation of a shared archive.
  15170. postuninstall_cmds=$lt_postuninstall_cmds
  15171. # Commands used to finish a libtool library installation in a directory.
  15172. finish_cmds=$lt_finish_cmds
  15173. # As "finish_cmds", except a single script fragment to be evaled but
  15174. # not shown.
  15175. finish_eval=$lt_finish_eval
  15176. # Whether we should hardcode library paths into libraries.
  15177. hardcode_into_libs=$hardcode_into_libs
  15178. # Compile-time system search path for libraries.
  15179. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15180. # Detected run-time system search path for libraries.
  15181. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  15182. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  15183. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  15184. # Whether dlopen is supported.
  15185. dlopen_support=$enable_dlopen
  15186. # Whether dlopen of programs is supported.
  15187. dlopen_self=$enable_dlopen_self
  15188. # Whether dlopen of statically linked programs is supported.
  15189. dlopen_self_static=$enable_dlopen_self_static
  15190. # Commands to strip libraries.
  15191. old_striplib=$lt_old_striplib
  15192. striplib=$lt_striplib
  15193. # The linker used to build libraries.
  15194. LD=$lt_LD
  15195. # How to create reloadable object files.
  15196. reload_flag=$lt_reload_flag
  15197. reload_cmds=$lt_reload_cmds
  15198. # Commands used to build an old-style archive.
  15199. old_archive_cmds=$lt_old_archive_cmds
  15200. # A language specific compiler.
  15201. CC=$lt_compiler
  15202. # Is the compiler the GNU compiler?
  15203. with_gcc=$GCC
  15204. # Compiler flag to turn off builtin functions.
  15205. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15206. # Additional compiler flags for building library objects.
  15207. pic_flag=$lt_lt_prog_compiler_pic
  15208. # How to pass a linker flag through the compiler.
  15209. wl=$lt_lt_prog_compiler_wl
  15210. # Compiler flag to prevent dynamic linking.
  15211. link_static_flag=$lt_lt_prog_compiler_static
  15212. # Does compiler simultaneously support -c and -o options?
  15213. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15214. # Whether or not to add -lc for building shared libraries.
  15215. build_libtool_need_lc=$archive_cmds_need_lc
  15216. # Whether or not to disallow shared libs when runtime libs are static.
  15217. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15218. # Compiler flag to allow reflexive dlopens.
  15219. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15220. # Compiler flag to generate shared objects directly from archives.
  15221. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15222. # Whether the compiler copes with passing no objects directly.
  15223. compiler_needs_object=$lt_compiler_needs_object
  15224. # Create an old-style archive from a shared archive.
  15225. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15226. # Create a temporary old-style archive to link instead of a shared archive.
  15227. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15228. # Commands used to build a shared archive.
  15229. archive_cmds=$lt_archive_cmds
  15230. archive_expsym_cmds=$lt_archive_expsym_cmds
  15231. # Commands used to build a loadable module if different from building
  15232. # a shared archive.
  15233. module_cmds=$lt_module_cmds
  15234. module_expsym_cmds=$lt_module_expsym_cmds
  15235. # Whether we are building with GNU ld or not.
  15236. with_gnu_ld=$lt_with_gnu_ld
  15237. # Flag that allows shared libraries with undefined symbols to be built.
  15238. allow_undefined_flag=$lt_allow_undefined_flag
  15239. # Flag that enforces no undefined symbols.
  15240. no_undefined_flag=$lt_no_undefined_flag
  15241. # Flag to hardcode \$libdir into a binary during linking.
  15242. # This must work even if \$libdir does not exist
  15243. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15244. # Whether we need a single "-rpath" flag with a separated argument.
  15245. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15246. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15247. # DIR into the resulting binary.
  15248. hardcode_direct=$hardcode_direct
  15249. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15250. # DIR into the resulting binary and the resulting library dependency is
  15251. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  15252. # library is relocated.
  15253. hardcode_direct_absolute=$hardcode_direct_absolute
  15254. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15255. # into the resulting binary.
  15256. hardcode_minus_L=$hardcode_minus_L
  15257. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15258. # into the resulting binary.
  15259. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15260. # Set to "yes" if building a shared library automatically hardcodes DIR
  15261. # into the library and all subsequent libraries and executables linked
  15262. # against it.
  15263. hardcode_automatic=$hardcode_automatic
  15264. # Set to yes if linker adds runtime paths of dependent libraries
  15265. # to runtime path list.
  15266. inherit_rpath=$inherit_rpath
  15267. # Whether libtool must link a program against all its dependency libraries.
  15268. link_all_deplibs=$link_all_deplibs
  15269. # Set to "yes" if exported symbols are required.
  15270. always_export_symbols=$always_export_symbols
  15271. # The commands to list exported symbols.
  15272. export_symbols_cmds=$lt_export_symbols_cmds
  15273. # Symbols that should not be listed in the preloaded symbols.
  15274. exclude_expsyms=$lt_exclude_expsyms
  15275. # Symbols that must always be exported.
  15276. include_expsyms=$lt_include_expsyms
  15277. # Commands necessary for linking programs (against libraries) with templates.
  15278. prelink_cmds=$lt_prelink_cmds
  15279. # Commands necessary for finishing linking programs.
  15280. postlink_cmds=$lt_postlink_cmds
  15281. # Specify filename containing input files.
  15282. file_list_spec=$lt_file_list_spec
  15283. # How to hardcode a shared library path into an executable.
  15284. hardcode_action=$hardcode_action
  15285. # ### END LIBTOOL CONFIG
  15286. _LT_EOF
  15287. cat <<'_LT_EOF' >> "$cfgfile"
  15288. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  15289. # func_munge_path_list VARIABLE PATH
  15290. # -----------------------------------
  15291. # VARIABLE is name of variable containing _space_ separated list of
  15292. # directories to be munged by the contents of PATH, which is string
  15293. # having a format:
  15294. # "DIR[:DIR]:"
  15295. # string "DIR[ DIR]" will be prepended to VARIABLE
  15296. # ":DIR[:DIR]"
  15297. # string "DIR[ DIR]" will be appended to VARIABLE
  15298. # "DIRP[:DIRP]::[DIRA:]DIRA"
  15299. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  15300. # "DIRA[ DIRA]" will be appended to VARIABLE
  15301. # "DIR[:DIR]"
  15302. # VARIABLE will be replaced by "DIR[ DIR]"
  15303. func_munge_path_list ()
  15304. {
  15305. case x$2 in
  15306. x)
  15307. ;;
  15308. *:)
  15309. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  15310. ;;
  15311. x:*)
  15312. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  15313. ;;
  15314. *::*)
  15315. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  15316. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  15317. ;;
  15318. *)
  15319. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  15320. ;;
  15321. esac
  15322. }
  15323. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  15324. func_cc_basename ()
  15325. {
  15326. for cc_temp in $*""; do
  15327. case $cc_temp in
  15328. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15329. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15330. \-*) ;;
  15331. *) break;;
  15332. esac
  15333. done
  15334. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15335. }
  15336. # ### END FUNCTIONS SHARED WITH CONFIGURE
  15337. _LT_EOF
  15338. case $host_os in
  15339. aix3*)
  15340. cat <<\_LT_EOF >> "$cfgfile"
  15341. # AIX sometimes has problems with the GCC collect2 program. For some
  15342. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15343. # vanish in a puff of smoke.
  15344. if test set != "${COLLECT_NAMES+set}"; then
  15345. COLLECT_NAMES=
  15346. export COLLECT_NAMES
  15347. fi
  15348. _LT_EOF
  15349. ;;
  15350. esac
  15351. ltmain=$ac_aux_dir/ltmain.sh
  15352. # We use sed instead of cat because bash on DJGPP gets confused if
  15353. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15354. # text mode, it properly converts lines to CR/LF. This bash problem
  15355. # is reportedly fixed, but why not run on old versions too?
  15356. sed '$q' "$ltmain" >> "$cfgfile" \
  15357. || (rm -f "$cfgfile"; exit 1)
  15358. mv -f "$cfgfile" "$ofile" ||
  15359. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15360. chmod +x "$ofile"
  15361. ;;
  15362. esac
  15363. done # for ac_tag
  15364. as_fn_exit 0
  15365. _ACEOF
  15366. ac_clean_files=$ac_clean_files_save
  15367. test $ac_write_fail = 0 ||
  15368. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15369. # configure is writing to config.log, and then calls config.status.
  15370. # config.status does its own redirection, appending to config.log.
  15371. # Unfortunately, on DOS this fails, as config.log is still kept open
  15372. # by configure, so config.status won't be able to write to it; its
  15373. # output is simply discarded. So we exec the FD to /dev/null,
  15374. # effectively closing config.log, so it can be properly (re)opened and
  15375. # appended to by config.status. When coming back to configure, we
  15376. # need to make the FD available again.
  15377. if test "$no_create" != yes; then
  15378. ac_cs_success=:
  15379. ac_config_status_args=
  15380. test "$silent" = yes &&
  15381. ac_config_status_args="$ac_config_status_args --quiet"
  15382. exec 5>/dev/null
  15383. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15384. exec 5>>config.log
  15385. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15386. # would make configure fail if this is the last instruction.
  15387. $ac_cs_success || as_fn_exit 1
  15388. fi
  15389. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15391. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15392. fi